ƒ»224512 122 519 104 1087 212 461 326 672 496 179 283 499 374 245 230 403 646 386 183 156 285 477 209 754 327 1199 1128 168 219 128 786 227 165 168 164 159 169 169 196 940 254 287 177 814 260 198 130 163 134 261 9283 1264 4323 266 521 267 186 127 465 158 344 164 233 120 191 127 118 166 265 180 359 356 268 150 190 95 220 1965 147 127 121 181 127 121 201 247 124 124 98 337 285 124 367 724 387 724 203 376 223 240 1450 348 687 462 278 183 251 321 163 156 404 377 386 232 1453 363 124 208 452 1040 102 324 306 K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-07-30T13:25:11.507714Z K 7 svn:log V 423 Bring over AR5416 specific RX filter get/set routines. This in particular fixes radar PHY handling - on the AR5212 NIC, one enables the AR_PHY_ERR_RADAR bit in AR_PHY_ERR; the AR5416 and later also needs a bit set in AR_RX_FILTER. A follow-up commit is needed to convert the AR5416 ANI code to use this particular method, as it's currently using the AR5212 methods directly. Obtained from: Atheros Approved by: re (kib) END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-07-30T13:28:11.900060Z K 7 svn:log V 12 MFC@r224512 END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-07-30T13:30:24.980192Z K 7 svn:log V 991 Fix ANI handling to work correctly when (trying) to receive radar errors. * Teach the AR5212/AR5416 ANI code to use the RX filter methods, rather than calling the RX filter routines directly. * Make HAL_ANI_PRESENT and HAL_ANI_MODE unconditionally available, regardless of whether ah_ani_function is masking it. * (Mostly) fully disable ANI if interference mitigation is disabled. When disabled, the ANI code doesn't touch any ANI/PHY registers, leaving them the default value. This is in line with what the Atheros reference driver does. * Correctly set the ANI parameters during ANI reset, rather than when ANI is enabled. In this way, if ANI is disabled or enabled whilst the NIC is not active (and there's no current channel), bogus parameters or a NULL pointer deference doesn't occur. There's still some lingering issues - notably, the MIB events/interrupts aren't fully disabled, so MIB interrupts still occur. I'll worry about that later. Approved by: re (kib) END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-07-30T13:31:27.629670Z K 7 svn:log V 116 Fix the initial calibration sample count when doing ADC calibrations. Obtained from: Atheros Approved by: re (kib) END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-07-30T13:33:05.256600Z K 7 svn:log V 369 Introduce a tunable to disable the time consuming parts of bootup memtesting, which can easily save seconds to minutes of boot time. The tunable name is kept general to allow reusing the code in alternate frameworks. Requested by: many Discussed on: arch (a while a go) Obtained from: Sandvine Incorporated Reviewed by: sbruno Approved by: re (kib) MFC after: 2 weeks END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-07-30T13:34:57.792166Z K 7 svn:log V 230 Fix AR5416 radar parameter initialisation. * I messed up the order of parameter true/false; oops! * AR_PHY_RADAR_1 was being written at the wrong place, and was writing potential garbage to the hardware. Approved by: re (kib) END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-07-30T13:37:38.425399Z K 7 svn:log V 576 Prepare for embedded use of the AR9285/AR9287. Calibration/PCI data that's written to flash (rather than EEPROM attached to the NIC) is typically already in host-endian. The existing checks end up swapping 16 bit words incorrectly - the correct solution would be to read the magic value and determine the EEPROM endianness from that. (This is what Linux does.) This doesn't completely enable embedded use of the AR9285/AR9287 - notably, the EEPROM read methods need to be made generic and available to all EEPROM drivers. I'll worry about that later. Approved by: re (kib) END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-07-30T13:45:12.580657Z K 7 svn:log V 400 Introduce the FRAC_5G EEPROM parameter. This seems to indicate whether to program the NIC for fractional 5ghz mode (ie, 5mhz spaced channels, rather than 10 or 20mhz spacing) or not. The default (0) seems to mean "only program fractional mode if needed". A different value (eg 1) seems to always enable fractional 5ghz mode regardless of the frequency. Obtained from: Atheros Approved by: re (kib) END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-07-30T13:46:41.625504Z K 7 svn:log V 84 Fix incorrect error reporting during the dfs ioctl function. Approved by: re (kib) END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-07-30T14:12:37.314068Z K 7 svn:log V 190 Fix the devmtx lock leak from make_dev(9) when the old device cloning failed due to invalid or duplicated path being generated. Reviewed by: jh Approved by: re (kensmith) MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-07-30T14:13:57.807020Z K 7 svn:log V 406 Fix a race in the device pager allocation. If another thread won and allocated the device pager for the given handle, then the object fictitious pages list and the object membership in the global object list still need to be initialized. Otherwise, dev_pager_dealloc() will traverse uninitialized pointers. Reported and tested by: pho Reviewed by: jhb Approved by: re (kensmith) MFC after: 1 week END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-07-30T17:27:29.152562Z K 7 svn:log V 282 Fix invalid assertion of C++ external static data member declarations as anonymous namespaces are local to the current translation. GCC PR: c++/33094 Reviewed by: uqs Approved by: re (kib) Obtained from: gcc (branches/redhat/gcc-4_1-branch, rev. 129554, GPLv2) MFC after: 1 week END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-07-30T17:40:11.719191Z K 7 svn:log V 153 Fix accidential dos-style endings to unix-style line endings from last commit (r224523) to match the version approved by re@ Approved by: re (implicit) END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-07-30T17:44:06.581948Z K 7 svn:log V 138 Fix wrong initialization of "cmd" for calling the jail/unjail ioctl. Reviewed by: pjd@, delphij@ Approved by: re (kib) MFC after: 3 days END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-07-30T19:00:31.196127Z K 7 svn:log V 311 Fix serious bug in ZIL that can lead to pool corruption in the case of a held dataset during remount. Detailed description is available at: https://www.illumos.org/issues/883 illumos-gate revision: 13380:161b964a0e10 Reviewed by: pjd Approved by: re (kib) Obtained from: Illumos (Bug #883) MFC after: 3 days END K 10 svn:author V 3 avg K 8 svn:date V 27 2011-07-30T20:29:39.881495Z K 7 svn:log V 553 smp_rendezvous: master cpu should wait until all slaves are fully done This is a followup to r222032 and a reimplementation of it. While that revision fixed the race for the smp_rv_waiters[2] exit sentinel, it still left a possibility for a target CPU to access stale or wrong smp_rv_func_arg in smp_rv_teardown_func. To fix this race the slave CPUs signal when they are really fully done with the rendezvous and the master CPU waits until all slaves are done. Diagnosed by: kib Reviewed by: jhb, mlaier, neel Approved by: re (kib) MFC after: 2 weeks END K 10 svn:author V 3 avg K 8 svn:date V 27 2011-07-30T20:42:14.303135Z K 7 svn:log V 293 update smp related documentation after recent changes Remove references to machdep.hlt_logical_cpus and machdep.hlt_cpus sysctls and tunables. Document machdep.hyperthreading_allowed and hint.lapic.X.disabled tunables. Prompted by: ru Proofreading: bf Reviewed by: jhb Approved by: re (kib) END K 10 svn:author V 3 avg K 8 svn:date V 27 2011-07-30T21:09:45.216760Z K 7 svn:log V 91 fix a typo/tautology in the release documentation Approved by: re (kib) MFC after: 1 week END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-07-30T21:28:34.128675Z K 7 svn:log V 64 Host mergeinfo for 219400 up to sys/ and out of sys/geom/label. END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-07-30T21:42:53.352386Z K 7 svn:log V 192 Higher-priority initialization request can eat request scheduling done from adaclose(). Add immediate_priority check into adaschedule() to restore it. Approved by: re (kib) MFC after: 1 week END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-07-30T22:57:38.828428Z K 7 svn:log V 379 The new NFS client failed to vput() the new vnode if a setattr failed after the file was created in nfs_create(). This would probably only happen during a forced dismount. The old NFS client does have a vput() for this case. Detected by pho during recent testing, where an open syscall returned with a vnode still locked. Tested by: pho Approved by: re (kib) MFC after: 2 weeks END K 10 svn:author V 4 joel K 8 svn:date V 27 2011-07-30T23:09:52.801979Z K 7 svn:log V 115 Add a better description, a few examples and a couple of minor fixes. Reviewed by: brueffer Approved by: re (kib) END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-07-30T23:42:15.707760Z K 7 svn:log V 656 MFC: r224117 The new NFSv4 client handled NFSERR_GRACE as a fatal error for the remove and rename operations. Some NFSv4 servers will report NFSERR_GRACE for these operations. This patch changes the behaviour of the client so that it handles NFSERR_GRACE like NFSERR_DELAY for non-state related operations like remove and rename. It also exempts the delegreturn operation from handling within newnfs_request() for NFSERR_DELAY/NFSERR_GRACE so that it can handle NFSERR_GRACE in the same manner as before. This problem was resolved thanks to discussion with bfields at fieldses.org. The problem was identified at the recent NFSv4 ineroperability bakeathon. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2011-07-31T03:00:00.064034Z K 7 svn:log V 230 Backout r223115 which potentially caused a POLA violation, by restoring historic behavior (create the default base directory in pw.conf) before I came up with a better fix for this. Requested by: nwhitehorn Approved by: re (kib) END K 10 svn:author V 7 rodrigc K 8 svn:date V 27 2011-07-31T03:12:20.142232Z K 7 svn:log V 1101 In the old TFTP server, there was an undocumented behavior where the block counter would rollover to 0 if a file larger than 65535 blocks was transferred. With the default block size of 512 octets per block, this is a file size of approximately 32 megabytes. The new TFTP server code would report an error and stop transferring the file if a file was larger than 65535 blocks. This patch restores the old TFTP server's behavior to the new TFTP server code. If a TFTP client transfers a file larger than 65535 blocks, and does *not* specify the "rollover" option, then automatically rollover the block counter to 0 every time we reach 65535 blocks. This restores interoperability with the FreeBSD 6 TFTP client. Without this change, if a FreeBSD 6 TFTP client tried to retrieve a file larger than 65535 blocks from a FreeBSD 9 TFTP server , the transfer would fail. The same file could be retrieved successfully if the same FreeBSD 6 TFTP client was used against a FreeBSD 6 TFTP server. Approved by: re (kib) Tested by: Pawan Gupta , Obtained from: Juniper Networks END K 10 svn:author V 7 rodrigc K 8 svn:date V 27 2011-07-31T03:18:36.056076Z K 7 svn:log V 1030 Pull in some wording to the tftpd.8 man page from NetBSD, with some slight changes: ========================================================================================= http://cvsweb.netbsd.org/bsdweb.cgi/src/libexec/tftpd/tftpd.8?only_with_tag=MAIN#rev1.22 Revision 1.22 or diffs], Fri Jan 8 21:05:14 2010 UTC (18 months, 2 weeks ago) by christos Patrick Welche - add -p pathsep option - make wrap to zero work, but produce a warning While here: - fix gcc warnings, in particular variable clobbered warnings (compiling with fewer warnings does not really fix the problem) ========================================================================================= These wording changes clarify the default rollover behavior as a "kludge". Also, the block numbers and octet counts for 65535 blocks and 32767 blocks are more accurate than the existing documented numbers. Requested by: Pawan Gupta Obtained from: Juniper Networks Approved by: re (kib) END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-07-31T03:33:02.706151Z K 7 svn:log V 73 Add some more phyerr bits. Obtained from: Atheros Approved by: re (kib) END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-07-31T05:01:42.710022Z K 7 svn:log V 123 Add extra flags for the radar event API. (They're not used by any public code at the current time.) Approved by: re (kib) END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-07-31T05:59:33.584692Z K 7 svn:log V 33 Fix typo! Approved by: re (kib) END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-07-31T08:01:41.013896Z K 7 svn:log V 690 Implement the 4KB split transaction workaround for Merlin (AR9280). The AR9280 apparently has an issue with descriptors which straddle a page boundary (4k). I'm not yet sure whether I should use PAGE_SIZE in the calculations or whether I should use 4096; the reference code uses 4096. This patch fiddles with descriptor allocation so a descriptor entry doesn't straddle a 4kb address boundary. The descriptor memory allocation is made larger to contain extra descriptors and then the descriptor address is advanced to the next 4kb boundary where needed. I've tested this both on Merlin (AR9280) and non-Merlin (in this case, AR9160.) Obtained from: Linux, Atheros Approved by: re (kib) END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-07-31T08:13:25.226614Z K 7 svn:log V 131 Remove two debugging printf()s which snuck in during the testing of the last commit. Approved by: re (kib) Pointy-hat-to: adrian@ END K 10 svn:author V 5 marck K 8 svn:date V 27 2011-07-31T08:52:24.981874Z K 7 svn:log V 71 MFC r224140: Correct small typo in a do{}while(0) Approved by: kib END K 10 svn:author V 5 marck K 8 svn:date V 27 2011-07-31T08:53:59.524656Z K 7 svn:log V 74 MFC r224140: Correct small typo in a do{}while(0) Approved by: kib END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-07-31T13:35:25.734278Z K 7 svn:log V 72 Teach descriptor parser to work with several item types simultaneously. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-07-31T13:49:15.693429Z K 7 svn:log V 63 Don't leak kld_sx lock in kldunloadf(). Approved by: re (kib) END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-07-31T14:38:25.930039Z K 7 svn:log V 77 Do not block zero report id. It is correct value for devices with single ID. END K 10 svn:author V 3 gjb K 8 svn:date V 27 2011-07-31T15:23:21.450023Z K 7 svn:log V 77 mdoc(7) fix for the pcm(4) manual Spotted by: manlint Approved by: re (kib) END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-07-31T16:08:29.235318Z K 7 svn:log V 103 Tune USB_GET_REPORT/USB_SET_REPORT IOCTLs to work with multiple report, possibly with different sizes. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-07-31T16:16:25.054262Z K 7 svn:log V 844 Disable the RXORN/RXEOL interrupts if RXEOL occurs, preventing an interrupt storm. This is easily triggered by flipping on and off tcpdump -y IEEE802_11_RADIO w/ witness enabled. This causes a whole lot of console IO and when you're attached to a serial console (eg on my AR7161 embedded board), the RX interrupt doesn't get called quickly enough and the RX queue fills up. This wasn't a problem in the past because of the self-linked RX descriptor trick - the RX would never hit the "end" of the RX descriptor list. However this isn't possible for 802.11n (see previous commit history for why.) Both Linux ath9k and the Atheros reference driver code do this; I'm just looking now for where they then restart the PCU receive. Right now the RX will just stop until the interface is reset. Obtained from: Linux, Atheros Approved by: re (kib) END K 10 svn:author V 6 marcel K 8 svn:date V 27 2011-07-31T18:26:47.781353Z K 7 svn:log V 158 Fix r224187: .word defines a 16-bit object and size_t is defined as a 32-bit intergal. Use .long to define sintrcnt and sintrname. Approved by: re (blanket) END K 10 svn:author V 6 marcel K 8 svn:date V 27 2011-07-31T18:30:38.327449Z K 7 svn:log V 191 Fix r222813: we need to include sys/cpuset.h. because the PIC interface uses cpuset_t. While here, fix the redundant inclusion of sys/bus.h and order the includes. Approved by: re (blanket) END K 10 svn:author V 6 marcel K 8 svn:date V 27 2011-07-31T18:34:38.165264Z K 7 svn:log V 82 Apply r221124 to Book-E: switch to the new NFS client. Approved by: re (blanket) END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-07-31T20:06:11.812757Z K 7 svn:log V 716 Fix rename in the new NFS server so that it does not require a recursive vnode lock on the directory for the case where the new file name is in the same directory as the old one. The patch handles this as a special case, recognized by the new directory having the same file handle as the old one and just VREF()s the old dir vnode for this case, instead of doing a second VFS_FHTOVP() to get it. This is required so that the server will work for file systems like msdosfs, that do not support recursive vnode locking. This problem was discovered during recent testing by pho@ when exporting an msdosfs file system via the new NFS server. Tested by: pho Reviewed by: zkirsch Approved by: re (kib) MFC after: 2 weeks END K 10 svn:author V 3 gjb K 8 svn:date V 27 2011-07-31T21:04:47.148212Z K 7 svn:log V 167 Update vfs_getopt(9) to reflect 32-bit to 64-bit change from r224290. PR: 159324 Submitted by: Brandon Gooch (jamesbrandongooch % gmail ! com) Approved by: re (kib) END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-07-31T23:09:11.679680Z K 7 svn:log V 103 MFC r224076: Handle the MK_BIND_XML option more intelligently MFC r224129: Fixes for WITH_BIND_LIBS END K 10 svn:author V 7 linimon K 8 svn:date V 27 2011-08-01T02:56:02.469111Z K 7 svn:log V 34 Touch up some of the debug stuff. END K 10 svn:author V 7 linimon K 8 svn:date V 27 2011-08-01T02:57:01.745229Z K 7 svn:log V 67 Make the error handling tell us more about the exceptions, if any. END K 10 svn:author V 7 linimon K 8 svn:date V 27 2011-08-01T02:57:46.716191Z K 7 svn:log V 38 Split the debug stuff into two knobs. END K 10 svn:author V 3 art K 8 svn:date V 27 2011-08-01T04:29:04.933830Z K 7 svn:log V 168 Create dummy opt_compat.h for i386 build to fix buildworld breakage when MODULES_WITH_WORLD is set. PR: 157529 Submitted by: Eugene Grosbein Approved by: avg (mentor) END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-08-01T07:59:02.693244Z K 7 svn:log V 9190 Sync libarchive with 9-CURRENT: MFC on lib/libarchive: 196961,200351,201077,201079-201097,201099-201112,201155-201157, 201159-201163,201165,201167-201171,201246-201250,201253,202868-202869, 202871-202873,203952,208027,208169,208184,208263,208291,210825,213573, 214822,214867,214905,216258,221472,224152 MFC 196961 (kientzle): Update tests to match r195873, which corrected how hardlinked files on iso9660 images were returned. While I'm poking around, update some comments around this area to try to clarify what's going on and what still remains to be improved. MFC 200351 (kientzle): Merge two cpio fixes from libarchive.googlecode.com: 1) Avoid an infinite loop in the header resync for certain malformed archives. 2) Don't try to match hardlinks if the nlinks count is < 2. This reduces the likelihood of a false hardlink match due to ino truncation. MFC 201077 (kientzle): Update format manpages for libarchive. MFC 201079 (kientzle): Update the hard-coded configuration for libarchive. MFC 201080 (kientzle): Remove some unused variables and dead assignments. MFC 201081 (kientzle): Remove a dead assignment. MFC 201082 (kientzle): Catch certain gzip failures at close time. MFC 201083 (kientzle): Compatibility fix for some older systems with non-POSIX getgrnam_r/getpwnam_r and a minor style fix for the hash function. MFC 201084 (kientzle): Sync with googlecode some changes that have no impact on FreeBSD. MFC 201085 (kientzle): Compatibility: I found some more compilers that don't like 'inline' keyword. Protection: Discourage people from using this header outside libarchive. MFC 201086 (kientzle): Discourage people from using this header outside of libarchive. MFC 201087 (kientzle): Enforce this as an internal-only header. MFC 201088 (kientzle): Allow more formats to be active at a time; discourage outside use. MFC 201089 (kientzle): Portability: terminate abnormally via abort() instead of segfault, watch the return value from write(), and avoid signed arithmetic on unsigned values. MFC 201091 (kientzle): Remove dead assignment. MFC 201092 (kientzle): Discourage outside use of this internal header. MFC 201093 (kientzle): Portability: Set the file descriptor to binary mode on Win32 MFC 201094 (kientzle): Eliminate an unused assignment. MFC 201095 (kientzle): Remove an unused variable and an unnecessary increment. MFC 201096 (kientzle): Various portability fixes, plus: * New "ino64" field. * New UTF8 interfaces for hardlink/symlink updates MFC 201097 (kientzle): Portability fixes. MFC 201099 (kientzle): Use new ino64 interface. MFC 201110 (kientzle): Clarify an example so Linux folks won't keep getting confused by this point. MFC 201111 (kientzle): Remove some dead assignments, fix some declarations. MFC 201112 (kientzle): Portability. MFC 201155 (kientzle): 64-bit ino support and discourage bad use of this header. MFC 201156 (kientzle): Various style and portability fixes, including: * Enforce option interface can only be used before the archive is opened * Correctly handle large skips on platforms with 32-bit off_t * Use int64_t instead of off_t MFC 201157 (kientzle): Catch decompression failures earlier. In particular, this gives immediate feedback if we fail to fork an external decompression program. MFC 201159 (kientzle): Various fixes when creating objects on disk: * Write xattrs last instead of first (required on platforms that use system xattrs for security attributes) * Better handling of chdir() failures * Don't bother trying to shorten files via seek()/write() * Fix build on systems that lack link()/symlink()/mknod() * Prefer futimens()/utimensat() when they're present MFC 201160 (kientzle): Various style fixes to the 'newc' cpio writer: * Warn about truncation of ino * Use a macro to hide the somewhat obscure pad-to-multiple-of-4 calculation * Eliminate some unused variables MFC 201161 (kientzle): Style fixes to tar reader: For portability, prefer int64_t to off_t. Improve numeric overflow handling when parsing. Fix some variable types. Eliminate some unused results. MFC 201162 (kientzle): Style and portability fixes for pax writer. Mostly very routine, except for: * Use ino64 where appropriate * Don't pass atime or nsec to ustar formatter MFC 201163 (kientzle): Be a little more skeptical of dev/ino matches when reading cpio files. This eliminates some false-positives in the hardlink detection logic. MFC 201165 (kientzle): Minor style fixes plus a fix for an obscure crash on certain malformed mtree files. MFC 201167 (kientzle): If we're linking against liblzma, allow the decompressor to use up to 1<<30 bytes of memory, which is required for some streams. Also, try to make the taster more discriminating about raw lzma streams. The detection here is still really weak, though; please use xz instead of lzma. MFC 201168 (kientzle): Zip write support for libarchive. The initial implementation was developed by Anselm Strauss as part of Google Summer of Code 2008, then completed by Joerg Sonnenberger. MFC 201169 (kientzle): Clear extraneous error messages. MFC 201170 (kientzle): Essentially eliminate problems with false hardlinks in POSIX cpio archives by generating synthetic ino values and mapping values from disk into the new values. MFC 201171 (kientzle): Rationalize the support for cryptographic hashes. MFC 201246 (kientzle): Merge Michihiro NAKAJIMA's significant work on the ISO9660 reader from googlecode: * Support for zisofs compressed entries * Support for relocated deep directories * Direct calculation of link counts for accurate nlink values even on images that lack Rockridge extensions * Faster handling of the internal file lists. * Better detection of ISO variants MFC 201247 (kientzle): A raft of test changes and improvements from the Googlecode repository. In particular, this includes tests for the new features I've merged over the last few days. MFC 201248 (kientzle): UU decoder. Now that libarchive can recursively taste input streams, you can do things like this: tar xvf archive.tar.gz.uu MFC 201249 (kientzle): Libarchive in FreeBSD is now synced up with 2.7.901a from libarchive.googlecode.com MFC 201250 (kientzle): Reserve constants for RPM unwrapper and XAR reader. MFC 201253 (kientzle): Remove some test files that are no longer used. MFC 202868 (kientzle): Fix a memory leak when a filter fails to initialize. MFC 202869 (kientzle): Initialize the allocated 'struct zip'. MFC 202871 (kientzle): If we can't stat a file, return the correct ARCHIVE_FAILED (this entry can't be processed any further) and a suitable error string. In particular, this improves the error-reporting when cpio -o is given a nonexistent filename. MFC 202872 (kientzle): Use a simpler memory-management strategy for the file objects. Instead of trying to reference-count them and free them as soon as they are no longer needed, we now just keep them around and free them all when we release the archive object. This fixes a number of minor memory leaks, especially when reading damaged archives. MFC 202873 (kientzle): Don't try to hardlink block or character device nodes that come out of cpio archives. MFC 203952 (uqs): Add missing newline in last line of file. Uncovered via: fromcvs vs. svn MFC 208027 (uqs): mdoc: move CAVEATS, BUGS and SECURITY CONSIDERATIONS sections to the bottom of the manpages and order them consistently. GNU groff doesn't care about the ordering, and doesn't even mention CAVEATS and SECURITY CONSIDERATIONS as common sections and where to put them. Found by: mdocml lint run MFC 208169 (kientzle): Reorganize slightly in preparation for making lzma and bz2 support conditional. MFC 208184 (delphij): Fix build. MFC 208263 (kientzle): Retry reads that fail with EINTR. This fixes a problem with bsdtar failing on SIGINT. MFC 208291 (uqs): mdoc: consistently spell our email addresses MFC 210825 (joel): Fix typo. MFC 213573 (uqs): mdoc: drop redundant .Pp and .LP calls They have no effect when coming in pairs, or before .Bl/.Bd MFC 214822 (kientzle): Clarify the naming: Methods that free an object should be called "free". Retain the old "finish" names to preserve source compatibility for now. MFC 214867 (uqs): Fix manpage markup. MFC 214905 (kientzle): If the Zip reader doesn't see a PK signature block because there's inter-entry garbage, just scan forward to find the next one. This allows us to handle a lot of Zip archives that have been modified in-place. Thanks to: Gleb Kurtsou for sending me a sample archive MFC 216258 (kientzle): Don't write data into an empty "file." In particular, this check avoids a warning when extracting directory entries from certain GNU tar archives that store directory contents. MFC 221472 (obrien): libarchive is mixing libmd and libcrypto -- correct to use one or the other. [mixing the two can be quite bad -- they define the same context structures, but with differing structure members (and sizes)] MFC 224152 (mm): - Update libarchive to 2.8.4 - Add support for extracting xar and rpm archives - Add libarchive_fe subdir (common code for tar and cpio) END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-08-01T07:59:54.407187Z K 7 svn:log V 1171 Sync bsdcpio with 9-CURRENT: MFC on usr.bin/cpio: 203183,204329,207792,211054,211397,212263,224154-224155 MFC 203183 (kientzle): Support -V option to print a dot for each file processed. Also, change the existing -vi behavior to send the filenames to stderr rather than stdout, as GNU cpio does. PR: bin/141175 Submitted by: Philip Kizer MFC 204329 (ru): Fixed dependencies (make checkdpadd). MFC 207792 (kientzle): bsdcpio 2.8.3 MFC 211054 (kientzle): Fix -R when used with -p. Previously, the uname and gname weren't overwritten, so the disk restore would use those to lookup the original uid/gid again. Clearing the uname and gname prevents this. Reported by: swell.k MFC 211397 (joel): Fix typos, spelling, formatting and mdoc mistakes found by Nobuyuki while translating these manual pages. Minor corrections by me. Submitted by: Nobuyuki Koganemaru MFC 212263 (gjb): Fix typo in bsdcpio manual: s/libarchive_formats/libarchive-formats MFC 224154 (mm): Update bsdcpio to 2.8.4 Use common code from lib/libarchive/libarchive_fe MFC 224155 (mm): Append to CPIO_SRCS instead of using TAR_SRCS, the variable name is misleading END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-08-01T08:00:46.615644Z K 7 svn:log V 4230 Sync bsdtar with 9-CURRENT: MFC on usr.bin/bsdtar: 203569,203571,203586-203590,203593-203594,204329,205076,206463-206466, 206484-206485,206487,207786,207790-207791,208028,209152,210720,213469, 223541,223573,224153,224158 MFC 203569 (kientzle): bsdtar doesn't actually know what compression is supported by libarchive and it should not pretend that it does. It should just pass along the user's request and handle an error if it's not supported. MFC 203571 (kientzle): Fill in some missing error handling, be a little more careful about error reporting, prefer int64_t to off_t. MFC 203586 (kientzle): Trim out some unused configuration variables, remove some unused headers, etc. MFC 203587 (kientzle): Minor code rework. MFC 203588 (kientzle): Restructure the logic that determines when we're crossing a mount point. In particular, this carves out a place for detecting and excluding synthetic or network filesystems. MFC 203589 (kientzle): Various portability workarounds for non-FreeBSD platforms. MFC 203590 (kientzle): Style & Portability: Use archive_entry methods to examine file information, change some functions to static, remove some unused headers. MFC 203593 (kientzle): Merge a bunch of refactoring from Joerg Sonnenberger to isolate common code used by tar and cpio (and useful to other libarchive clients). The functions here are prefixed with "lafe" (libarchive front-end) to indicate their use. MFC 203594 (kientzle): Simplify, remove unnecessary code. MFC 204329 (ru) Fixed dependencies (make checkdpadd). MFC 205076 (uqs): Fix several typos in macros or macro misusage. Found by: make manlint MFC 206463 (kientzle): Correct the markup for the -s option, document the iso9660:rockridge and mtree:indent options MFC 206464 (kientzle): Remove an unnecessary include and conditionalize some code. MFC 206465 (kientzle): Consistently specify O_BINARY when opening files. MFC 206466 (kientzle): Fix -X. MFC 206484 (kientzle): Diff reduction against bsdtar 2.8.3 MFC 206485 (kientzle): Diff reduction against bsdtar 2.8.3 MFC 206487 (kientzle): If a file is specifically both included and excluded, then: * It is not extracted (because it is excluded) * If it's not present in the archive, then an error is reported (because the file was requested and not found) * If it is present in the archive, no error is reported. Previously, this would always report an error because the exclusion prevented the entry from matching the inclusion. Also, tar is now more reluctant to report unmatched inclusions. Previously, "tar x file1 'file*'" against an archive that contained a single entry "file1" would match file1 and then report an error for the second pattern because it wasn't matched. It now considers both inclusions to be matched and reports no error. MFC 207786 (kientzle): Various manpage updates, including many long-option synonyms that were previously undocumented. MFC 207790 (kientzle): Config updates. MFC 207791 (kientzle) FreeBSD is now using bsdtar 2.8.3. MFC 208028 (uqs): mdoc: move remaining sections into consistent order This pertains mostly to FILES, HISTORY, EXIT STATUS and AUTHORS sections. Found by: mdocml lint run MFC 209152 (kientzle): If the compressed data is larger than the uncompressed, report the compression ratio as 0% instead of displaying nonsense triggered by numeric overflow. This is common when dealing with uncompressed files when the I/O blocking causes there to be small transient differences in the accounting. Thanks to: Boris Samorodov MFC 210720 (joel): Fix typos. MFC 213469 (kientzle): Recognize both ! and ^ as markers for negated character classes. Submitted by: Mykola Dzham MFC 223541 (kientzle): If there is a read error reading Y/N confirmation from the keyboard, exit immediately with an error. If there is an error opening or reading a file to put into the archive, set the return value for a deferred error exit. MFC 223573 (kientzle): The --newer-than test should descend into old directories to look for new files. MFC 224153 (mm): Update bsdtar to 2.8.4 Use common code from lib/libarchive/libarchive_fe MFC 224158 (mm): Fix accidential commit part: Include "bsdtar_platform.h" instead of "lafe_platform.h" END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-08-01T08:14:16.188460Z K 7 svn:log V 174 MFC 224174: Resurrect the ZFS "aclmode" property Change default of "aclmode" to "discard". Illumos-gate changeset: 13370:8c04143bd318 Obtained from: Illumos (Feature #742) END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-08-01T08:17:54.428281Z K 7 svn:log V 429 MFC 224177: ZFS tries to allocate blocks evenly across all devices. This means when devices are imbalanced zfs will lots of CPU searching for space on devices which tend to be pretty full. It should instead fail quickly on the full devices and move onto devices which have more availability. New loader tunable: vfs.zfs.mg_alloc_failures (min = 8) Illumos-gate changeset: 13379:4df42cc92254 Obtained from: Illumos (Bug #1051) END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-08-01T08:22:40.526119Z K 7 svn:log V 175 Correctly link bsdcpio and bsdtar against libmd and libcrpyto by applying the change from r221472 (libarchive). Reviewed by: kientzle Approved by: re (kib) MFC after: 3 days END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-08-01T08:34:00.073418Z K 7 svn:log V 94 Add hid_get_report()/hid_set_report() functions to the libusbhid, wrapping respective IOCTLs. END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-08-01T08:52:05.469954Z K 7 svn:log V 35 Fix markup. Approved by: re (hrs) END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2011-08-01T09:43:35.324248Z K 7 svn:log V 368 Get rid of MAXCPU knowledge used for internal needs only. Switch to dynamic memory allocation to hold per-CPU memory types data (sized to mp_maxid for UMA, and to mp_maxcpus for malloc to match the kernel). That fixes libmemstat with arbitrary large MAXCPU values and therefore eliminates MEMSTAT_ERROR_TOOMANYCPUS error type. Reviewed by: jhb Approved by: re (kib) END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-08-01T10:57:54.353133Z K 7 svn:log V 66 Return error code via errno in new functions same as in some old. END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2011-08-01T11:24:55.360824Z K 7 svn:log V 247 Add missing MODULE_VERSION() definition to protect against duplicating module loads. PR: kern/159345 Reported by: Eugene Grosbein Tested by: Eugene Grosbein Approved by: re (kib) MFC after: 1 week END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-08-01T12:04:12.313740Z K 7 svn:log V 72 Refactor usbhidctl to support items writing and and few other features. END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-08-01T13:17:59.438674Z K 7 svn:log V 140 Concatenate names of all collections on a stack to item name, not only the last one. This makes names match with ones used by usbhidaction. END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-08-01T13:40:48.191475Z K 7 svn:log V 28 Fix bug in previous change. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-08-01T13:41:38.709782Z K 7 svn:log V 95 Add missing break; in r223593. Submitted by: sem Pointy hat to: glebius Approved by: re (kib) END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-08-01T13:46:47.822880Z K 7 svn:log V 35 Add SYNTAX section to manual page. END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-08-01T13:54:48.470794Z K 7 svn:log V 26 Remove inaccurate detail. END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-08-01T14:13:08.398627Z K 7 svn:log V 74 Add support for # in item name and substring matches following usbhidctl. END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-08-01T14:50:31.400434Z K 7 svn:log V 173 Fix integer overflow in txg_delay() by initializing the variable "timeout" as clock_t. Filed as Illumos Bug #1313 Reviewed by: avg Approved by: re (kib) MFC after: 3 days END K 10 svn:author V 4 joel K 8 svn:date V 27 2011-08-01T15:56:40.627930Z K 7 svn:log V 87 I've rewritten most of this file so assign the copyright to me. Approved by: re (kib) END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-08-01T19:07:03.571574Z K 7 svn:log V 266 Fix the LK_NOSHARE lockmgr flag interaction with LK_UPGRADE and LK_DOWNGRADE lock ops. Namely, the ops should be NOP since LK_NOSHARE locks are always exclusive. Reported by: rmacklem Reviewed by: attilio Tested by: pho Approved by: re (kensmith) MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-08-01T19:12:15.638416Z K 7 svn:log V 263 Implement the linprocfs swaps file, providing information about the configured swap devices in the Linux-compatible format. Based on the submission by: Robert Millan PR: kern/159281 Reviewed by: bde Approved by: re (kensmith) MFC after: 2 weeks END K 10 svn:author V 7 delphij K 8 svn:date V 27 2011-08-01T21:12:41.530395Z K 7 svn:log V 171 Add PCI ID for RocketRAID 4321 and 4322. A FreeNAS user have tested the change on RocketRAID 4322. Sponsored by: iXsystems, Inc. MFC after: 3 days Approved by: re (kib) END K 10 svn:author V 3 uqs K 8 svn:date V 27 2011-08-01T22:21:18.330264Z K 7 svn:log V 58 Fix broken mdoc. Found by: manlint Approved by: re (kib) END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-08-01T22:36:28.902398Z K 7 svn:log V 96 Avoid duplicate word in a composite sentence Submitted by: Dan Allen END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-08-02T00:46:25.395155Z K 7 svn:log V 4 MFC END K 10 svn:author V 3 gjb K 8 svn:date V 27 2011-08-02T01:48:45.707727Z K 7 svn:log V 127 Provide a more user friendly URL to the IETF site in gif(4). Pointed out by: dougb MFC after: 3 days Approved by: re (hrs) END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-08-02T02:46:03.674404Z K 7 svn:log V 1868 Fix a corner case in RXEOL handling which was likely introduced by yours truly. Before 802.11n, the RX descriptor list would employ the "self-linked tail descriptor" trick which linked the last descriptor back to itself. This way, the RX engine would never hit the "end" of the list and stop processing RX (and assert RXEOL) as it never hit a descriptor whose next pointer was 0. It would just keep overwriting the last descriptor until the software freed up some more RX descriptors and chained them onto the end. For 802.11n, this needs to stop as a self-linked RX descriptor tickles the block-ack logic into ACK'ing whatever frames are received into that self-linked descriptor - so in very busy periods, you could end up with A-MPDU traffic that is ACKed but never received by the 802.11 stack. This would cause some confusion as the ADDBA windows would suddenly be out of sync. So when that occured here, the last descriptor would be hit and the PCU logic would stop. It would only start again when the RX descriptor list was updated and the PCU RX engine was re-tickled. That wasn't being done, so RXEOL would be continuously asserted and no RX would continue. This patch introduces a new flag - sc->sc_kickpcu - which when set, signals the RX task to kick the PCU after its processed whatever packets it can. This way completed packets aren't discarded. In case some other task gets called which resets the hardware, don't update sc->sc_imask - instead, just update the hardware interrupt mask directly and let either ath_rx_proc() or ath_reset() restore the imask to its former setting. Note: this bug was only triggered when doing a whole lot of frame snooping with serial console IO in the RX task. This would defer interrupt processing enough to cause an RX descriptor overflow. It doesn't happen in normal conditions. Approved by: re (kib, blanket) END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-08-02T05:16:44.662158Z K 7 svn:log V 53 Update for the new test infrastructure in 9.6-ESV-R5 END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-08-02T05:18:50.508513Z K 7 svn:log V 33 Vendor import of BIND 9.6-ESV-R5 END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-08-02T05:19:43.994388Z K 7 svn:log V 27 Tag the 9.6-ESV-R5 release END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-08-02T05:45:14.230364Z K 7 svn:log V 87 Non-functional changes related to version 9.6-ESV-R5 (format of time stamp in CVS $Id) END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-08-02T07:40:29.934811Z K 7 svn:log V 33 Vendor import of BIND 9.4-ESV-R5 END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-08-02T07:41:39.789777Z K 7 svn:log V 27 Tag the 9.4-ESV-R5 release END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-08-02T07:55:50.161657Z K 7 svn:log V 106 Non-functional changes related to version 9.4-ESV-R5 (format of time stamp in CVS $Id, copyright updates) END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-08-02T08:07:59.603641Z K 7 svn:log V 152 Update to version 9.6-ESV-R5 which contains various bug fixes and improvements: ftp://ftp.isc.org/isc/bind9/9.6-ESV-R5/RELEASE-NOTES-BIND-9.6-ESV.html END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-08-02T08:08:31.352118Z K 7 svn:log V 30 Update for version 9.6-ESV-R5 END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-08-02T08:09:12.351335Z K 7 svn:log V 30 Update for version 9.6-ESV-R5 END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-08-02T08:31:23.491338Z K 7 svn:log V 4 MFC END K 10 svn:author V 3 uqs K 8 svn:date V 27 2011-08-02T09:06:04.320278Z K 7 svn:log V 244 MFH r223715 - Fix typo in check_for_nested_with_variably_modified - Implement -Wvariable-decl. - Port -Wtrampolines support from gcc3. (all three also via OpenBSD) PR: gnu/127136, gnu/157019 Submitted by: Henning Petersen, Pedro Giffuni END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-08-02T09:42:58.262352Z K 7 svn:log V 190 Update to version 9.4-ESV-R5 which contains various bug fixes and improvements See RELEASE-NOTES-BIND-9.4-ESV.* for details This is expected to be the final release of the BIND 9.4 branch END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-08-02T09:43:27.581515Z K 7 svn:log V 30 Update for version 9.4-ESV-R5 END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-08-02T11:07:47.887749Z K 7 svn:log V 274 Do not force AHCI mode on NVIDIA MCP89 SATA controllers. Recent Apple Mac with this chipset does not initialize AHCI mode unless it is started from EFI loader. However, legacy ATA mode works. Submitted by: jkim@ (original version) Approved by: re (kib) MFC after: 1 week END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-08-02T11:24:42.383935Z K 7 svn:log V 626 Fix a LOR in the NFS client which could cause a deadlock. This was reported to the mailing list freebsd-net@freebsd.org on July 21, 2011 under the subject "LOR with nfsclient sillyrename". The LOR occurred when nfs_inactive() called vrele(sp->s_dvp) while holding the vnode lock on the file in s_dvp. This patch modifies the client so that it performs the vrele(sp->s_dvp) as a separate task to avoid the LOR. This fix was discussed with jhb@ and kib@, who both proposed variations of it. Tested by: pho, jlott at averesystems.com Submitted by: jhb (earlier version) Reviewed by: kib Approved by: re (kib) MFC after: 2 weeks END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-08-02T11:28:33.150980Z K 7 svn:log V 295 Fix panic in zfs_read() if IO_SYNC flag supplied by checking for zfsvfs->z_log before calling zil_commit(). [1] Do not call zfs_read() from zfs_getextattr() with the IO_SYNC flag. Submitted by: Alexander Zagrebin [1] Reviewed by: pjd@ Approved by: re (kib) MFC after: 3 days END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-08-02T11:28:42.753744Z K 7 svn:log V 626 Fix a LOR in the NFS client which could cause a deadlock. This was reported to the mailing list freebsd-net@freebsd.org on July 21, 2011 under the subject "LOR with nfsclient sillyrename". The LOR occurred when nfs_inactive() called vrele(sp->s_dvp) while holding the vnode lock on the file in s_dvp. This patch modifies the client so that it performs the vrele(sp->s_dvp) as a separate task to avoid the LOR. This fix was discussed with jhb@ and kib@, who both proposed variations of it. Tested by: pho, jlott at averesystems.com Submitted by: jhb (earlier version) Reviewed by: kib Approved by: re (kib) MFC after: 2 weeks END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-08-02T11:33:19.903760Z K 7 svn:log V 111 MFC r224525: Fix wrong initialization of "cmd" for calling the jail/unjail ioctl. Reviewed by: pjd@, delphij@ END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-08-02T11:34:59.389619Z K 7 svn:log V 284 MFC r224526: Fix serious bug in ZIL that can lead to pool corruption in the case of a held dataset during remount. Detailed description is available at: https://www.illumos.org/issues/883 illumos-gate revision: 13380:161b964a0e10 Reviewed by: pjd Obtained from: Illumos (Bug #883) END K 10 svn:author V 3 gjb K 8 svn:date V 27 2011-08-02T11:35:28.070004Z K 7 svn:log V 130 Provide a more user friendly URL to the IETF site in faithd(8). Pointed out by: dougb Approved by: re (kib) MFC after: 3 days END K 10 svn:author V 7 trociny K 8 svn:date V 27 2011-08-02T12:43:40.503715Z K 7 svn:log V 143 MFC r223976: When exiting with error because of an invalid command line argument use errx(3), not err(3), and the exit code from sysexits(3). END K 10 svn:author V 6 marcel K 8 svn:date V 27 2011-08-02T15:35:43.490710Z K 7 svn:log V 1353 Add support for Juniper's loader. The difference between FreeBSD's and Juniper's loader is that Juniper's loader maps all of the kernel and preloaded modules at the right virtual address before jumping into the kernel. FreeBSD's loader simply maps 16MB using the physical address and expects the kernel to jump through hoops to relocate itself to it's virtual address. The problem with the FreeBSD loader's approach is that it typically maps too much or too little. There's no harm if it's too much (other than wasting space), but if it's too little then the kernel will simply not boot, because the first thing the kernel needs is the bootinfo structure, which is never mapped in that case. The page fault that early is fatal. The changes constitute: 1. Do not remap the kernel in locore.S. We're mapped where we need to be so we can pretty much call into C code after setting up the stack. 2. With kernload and kernload_ap not set in locore.S, we need to set them in pmap.c: kernload gets defined when we preserve the TLB1. Here we also determine the size of the kernel mapped. kernload_ap is set first thing in the pmap_bootstrap() method. 3. Fix tlb1_map_region() and its use to properly externd the mapped kernel size to include low-level data structures. Approved by: re (blanket) Obtained from: Juniper Networks, Inc END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-08-02T17:49:27.773643Z K 7 svn:log V 251 Fix for arm and mips case the size of storage for sintrcnt/sintrnames. It seems that "info as" is not much precise on what expect by pseudo-op .word, by the way. No MFC is previewed for this patch. Tested by: andreast, pluknet Approved by: re (kib) END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-08-02T18:12:19.773236Z K 7 svn:log V 594 Corrections for the iBCS2 support that seems to regressed from 4.x times. In particular: - fix format specifiers in the DPRINTFs; - do not use kernel_map for temporal mapping backed by the vnode, this cannot work since kernel map is a system map. Use exec_map instead. - ignore error code from an attempt to insert the hole. If supposed hole is located at the region already populated by .bss, it is not an error. - correctly translate vm error codes to errno, when appropriate. Reported and tested by: Rich Naill Approved by: re (kensmith) MFC after: 1 week END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-08-02T19:13:56.524005Z K 7 svn:log V 370 For mount, discover f_mntonname from supplied path argument using vn_fullpath_global(). This fixes f_mntonname if mounting inside chroot, jail or with relative path as argument. For unmount in jail, use vn_fullpath_global() to discover global path from supplied path argument. This fixes unmount in jail. Reviewed by: pjd, kib Approved by: re (kib) MFC after: 2 weeks END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-08-02T19:44:40.450640Z K 7 svn:log V 186 Always disable mount and unmount for jails with enforce_statfs==2. A working statfs(2) is required for umount(8) in jail. Reviewed by: pjd, kib Approved by: re (kib) MFC after: 2 weeks END K 10 svn:author V 6 marcel K 8 svn:date V 27 2011-08-02T23:06:59.121475Z K 7 svn:log V 88 There's no ':' after GLOBAL(). Missed due to no SMP testing. Approved by: re (blanket) END K 10 svn:author V 6 marcel K 8 svn:date V 27 2011-08-02T23:33:44.234653Z K 7 svn:log V 155 It's invalid to use GLOBAL() for kernload_ap, as the macro switches to the .data section. We need kernload_ap in the boot page. Approved by: re (blanket) END K 10 svn:author V 6 marcel K 8 svn:date V 27 2011-08-02T23:49:23.419969Z K 7 svn:log V 225 Cross a T and dot an I: o Fix awkward use of braces in combination with mis-indentation. A mistake, that happened to yield the right behaviour? o Fix typo in comment. No functional change. Approved by: re (blanket) END K 10 svn:author V 3 hrs K 8 svn:date V 27 2011-08-03T01:33:34.082660Z K 7 svn:log V 71 s/cmsg_/cm_/ to avoid conflict with CMSG_* symbols for struct cmsghdr. END K 10 svn:author V 3 hrs K 8 svn:date V 27 2011-08-03T02:02:23.066153Z K 7 svn:log V 64 Ignore an interface that never sent RAs for graceful shut-down. END K 10 svn:author V 7 linimon K 8 svn:date V 27 2011-08-03T03:52:15.619544Z K 7 svn:log V 307 No need to compile pnohang for every port build; cache it. While here, try to add some more debugging. (The problem that was triggering the mount-fails was 'path too long' for certain build names; I cannot figure out why this is triggered. From a cursory reading of the mount(8) command, it should not.) END K 10 svn:author V 2 ae K 8 svn:date V 27 2011-08-03T04:27:47.298229Z K 7 svn:log V 285 MFC r223753: ARP code reuses mbuf from ARP request to make a reply, but it does not reset rcvif to NULL. Since rcvif is not NULL, ipfw(4) supposes that ARP replies were received on specified interface. Reset rcvif to NULL for ARP replies to fix this issue. PR: kern/131817 END K 10 svn:author V 2 ae K 8 svn:date V 27 2011-08-03T04:28:16.294683Z K 7 svn:log V 294 MFC r223753: ARP code reuses mbuf from ARP request to make a reply, but it does not reset rcvif to NULL. Since rcvif is not NULL, ipfw(4) supposes that ARP replies were received on specified interface. Reset rcvif to NULL for ARP replies to fix this issue. PR: kern/131817 END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-08-03T06:51:14.284214Z K 7 svn:log V 136 Remove the EEPROM minor >= 19 check for txgaintype; that's only needed for Merlin / v14 eeprom formats. Approved by: re (kib, blanket) END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-08-03T07:00:55.748823Z K 7 svn:log V 1356 Do a majorish rework of the software TX queue handling. * Eliminate the per-node lock, it was annoying and is mostly unneeded just for now * Eliminate the per-node list of active TX nodes * Add a per-TID list of active TX nodes, linked off of the hardware ath_txq * Sprinkle lots of lock assertions around to make sure I've got things locked in the right places. The major locking change here is inspired by what the older reference code does. Here, the locking for the per-TID stuff is hidden behind that hardware TXQ, rather than having per-node and per-TID locks. It's more coarse grained but it'll be enough to get the code bootstrapped. I'll worry about more fine-grained locking later on once the rest of this first pass has been completed. Note - the freebsd TX processq function only locks the hardware TXQ as long as it needs to add/remove buffers from it. The reference code grabs the lock and holds it for as long as the processing takes. This means that the completion function also hides behind the same lock as the setup/queue functions. I'll likely do that in a subsequent commit. Note - I'm not properly pausing or unpausing the tid when ADDBA is in progress, I'm just not TX'ing on it. I'll worry about the pause/unpause later on. This just means that extra CPU is burnt during ADDBA exchange. Obtained from: Atheros END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-08-03T07:36:10.054619Z K 7 svn:log V 267 Since the hardware TXQ lock now protects all the node TIDs that are behind it, the completion functions also need protecting by the same lock. So, shuffle the TXQ lock to protect the whole loop, including the TXQ dequeue, completion check/function, and txq schedule. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-08-03T07:44:15.158618Z K 7 svn:log V 29 Remove a now unused function END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-08-03T08:55:50.927199Z K 7 svn:log V 112 Implement TID TX queue pause and unpause. This is needed for a clean implementation of ADDBA packet buffering. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-08-03T09:21:52.537033Z K 7 svn:log V 356 * Rename the tid schedule function, it doesn't schedule the node anymore, just that tid Fix a LOR that I introduced: * Remove the locking requirement for ath_tx_tid_free_pkts - it should only occur in one place - when the ieee80211_node is being freed (and thus the IEEE80211_NODE_LOCK is held.) There's still another LOR which needs sorting out. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-08-03T09:32:57.684428Z K 7 svn:log V 944 Revert the previous commit - it meant a LOR was unavoidable between the TXQ lock and the IEEE80211_NODE_LOCK. Eg: 1st 0xc086c6cc ath1_node_lock (ath1_node_lock) @ /data/freebsd/mips/if_ath_tx/src/sys/net80211/ieee80211_node.c:1702 2nd 0x80a02738 ath1_txq1 (ath1_txq1) @ /data/freebsd/mips/if_ath_tx/src/sys/dev/ath/if_ath_tx.c:1631 1st 0x80a027c8 ath1_txq3 (ath1_txq3) @ /data/freebsd/mips/if_ath_tx/src/sys/dev/ath/if_ath.c:4147 2nd 0xc086c6cc ath1_node_lock (ath1_node_lock) @ /data/freebsd/mips/if_ath_tx/src/sys/net80211/ieee80211_node.c:1702 I'm going to do some digging to see whether this is a false LOR - ie, whether it's possible for the LOR to involve the same node AND TXQ. For now, this means completion functions need to do their own TXQ locking if they're going to fiddle with TID state. This introduces a few potential race conditions - which is why I'd like to hold this lock across the completion function if possible. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-08-03T09:42:48.016694Z K 7 svn:log V 8 Ooops.. END K 10 svn:author V 3 avg K 8 svn:date V 27 2011-08-03T09:55:59.734231Z K 7 svn:log V 231 fix a serious bug in libproc's proc_attach proc_attach always frees any struct proc_handle data that it allocates, but that is supposed to be done only in error conditions. PR: bin/158431 Approved by: re (kib) MFC after: 1 week END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-08-03T13:36:14.364245Z K 7 svn:log V 210 * Fix a clash in structure naming which occurs with (closed source) radar detection code. This is just to make porting the atheros radar code easier. * add a missing space. Approved by: re (kib, blanket) END