žA240905 95 292 214 214 214 164 164 164 494 125 193 175 135 280 226 232 232 369 300 875 309 133 566 397 204 207 206 369 123 143 189 137 261 194 577 218 319 265 163 206 179 132 3495 353 229 237 233 277 150 149 196 541 185 383 383 570 570 137 276 143 151 333 465 702 635 172 861 244 256 285 308 241 194 439 506 298 298 343 212 653 448 375 317 317 340 250 222 160 185 149 233 598 225 1238 310 155 K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-09-25T01:28:15.653576Z K 7 svn:log V 196 MFC r240466: Define missing DEBUGOUT# macros. DEBUGOUT[45] are not yet used but are being defined pre-emptively to avoid future build breakage PR: kern/168967 Approved by: cperciva (implicit) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-09-25T01:31:23.638141Z K 7 svn:log V 118 MFC r240470: Remove scripts and tools which only functioned when src was using CVS Approved by: cperciva (implicit) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-09-25T01:31:24.599391Z K 7 svn:log V 118 MFC r240470: Remove scripts and tools which only functioned when src was using CVS Approved by: cperciva (implicit) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-09-25T01:31:30.846478Z K 7 svn:log V 118 MFC r240470: Remove scripts and tools which only functioned when src was using CVS Approved by: cperciva (implicit) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-09-25T01:33:22.365880Z K 7 svn:log V 69 MFC r240480: Belatedly add myself Approved by: cperciva (implicit) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-09-25T01:33:22.562450Z K 7 svn:log V 69 MFC r240480: Belatedly add myself Approved by: cperciva (implicit) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-09-25T01:33:23.465831Z K 7 svn:log V 69 MFC r240480: Belatedly add myself Approved by: cperciva (implicit) END K 10 svn:author V 4 neel K 8 svn:date V 27 2012-09-25T02:33:25.491132Z K 7 svn:log V 400 Add an explicit exit code 'SPINUP_AP' to tell the controlling process that an AP needs to be activated by spinning up an execution context for it. The local apic emulation is now completely done in the hypervisor and it will detect writes to the ICR_LO register that try to bring up the AP. In response to such writes it will return to userspace with an exit code of SPINUP_AP. Reviewed by: grehan END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-09-25T03:59:10.416476Z K 7 svn:log V 33 Eliminate an unused declaration. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-09-25T05:56:59.376913Z K 7 svn:log V 98 Call ath_tx_tid_unsched() after the node has been flushed, so the state can be printed correctly. END K 10 svn:author V 2 ed K 8 svn:date V 27 2012-09-25T10:41:30.056128Z K 7 svn:log V 84 Vendor import NetBSD's libedit of "2012/09/25 10:41:11 UTC". Obtained from: NetBSD END K 10 svn:author V 2 ed K 8 svn:date V 27 2012-09-25T10:42:13.576258Z K 7 svn:log V 44 "Tag" the "2012/09/25 10:41:11 UTC" import. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-09-25T10:52:49.055771Z K 7 svn:log V 187 Reduce delays in several wait loops from 10ms to 10us, same is it is done in Linux. This substantially increases graphics performance on Ivy Bridge. Submitted by: avg@ Reviewed by: kib@ END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-09-25T12:45:41.367119Z K 7 svn:log V 129 Fix panic introduced by me in r240835, when zero weight was passed to wtab_alloc(). Reported by: Kim Culhan END K 10 svn:author V 4 tijl K 8 svn:date V 27 2012-09-25T13:32:05.408199Z K 7 svn:log V 138 MFC r240701: Fix a panic when trying to play invalid audio tracks. PR: kern/167340 Reported by: Michael L. Semon END K 10 svn:author V 4 tijl K 8 svn:date V 27 2012-09-25T13:34:09.769930Z K 7 svn:log V 138 MFC r240701: Fix a panic when trying to play invalid audio tracks. PR: kern/167340 Reported by: Michael L. Semon END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-09-25T14:55:46.651332Z K 7 svn:log V 276 Add optional entropy harvesting for software interrupts in swi_sched() as controlled by kern.random.sys.harvest.swi. SWI harvesting feeds into the interrupt FIFO and each event is estimated as providing a single bit of entropy. Reviewed by: markm, obrien MFC after: 2 weeks END K 10 svn:author V 4 neel K 8 svn:date V 27 2012-09-25T19:08:51.986495Z K 7 svn:log V 206 Add ioctls to control the X2APIC capability exposed by the virtual machine to the guest. At the moment this simply sets the state in the 'vcpu' instance but there is no code that acts upon these settings. END K 10 svn:author V 6 rstone K 8 svn:date V 27 2012-09-25T19:12:12.336224Z K 7 svn:log V 779 Some aac(4) adapters will always report that a direct access device is offline in response to a INQUIRY command that does not retreive vital product data(I personally have observed the behaviour on an Adaptec 2405 and a 5805). Force the peripheral qualifier to "connected" so that upper layers correctly recognize that a disk is present. This bug was uncovered by r216236. Prior to that fix, aac(4) was accidentally clearing the peripheral qualifier for all inquiry commands. This fixes an issue where passthrough devices were not created for disks behind aac(4) controllers suffering from the bug. I have verified that if a disk is not present that we still properly detect that and not create the passthrough device. Sponsored by: Sandvine Incorporated MFC after: 1 week END K 10 svn:author V 3 gnn K 8 svn:date V 27 2012-09-25T19:16:28.974831Z K 7 svn:log V 216 Change the module name for the I/O provider to "kernel" from "genunix" This will requires us to modify externally created DTrace scripts but makes logical sense for FreeBSD. Requested by: rpaulo MFC after: 2 weeks END K 10 svn:author V 6 brooks K 8 svn:date V 27 2012-09-25T20:27:42.167799Z K 7 svn:log V 38 Virgin import of NetBSD's install(1). END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-09-25T20:41:43.102859Z K 7 svn:log V 470 Oops - don't do the clrdmask check in ath_tx_xmit_normal() - the wrong lock may be held. Kim reported that the TID lock wasn't held when ath_tx_update_clrdmask() was called. Well, the underlying hardware TXQ for that TID. I'm betting it's the cabq stuff. ath_tx_xmit_normal() can be called for both real and software cabq. For software cabq, the real destination txq is different to the txq. So, the lock check will fail. Reported by: Kim Culhan END K 10 svn:author V 3 pjd K 8 svn:date V 27 2012-09-25T20:48:49.665370Z K 7 svn:log V 304 O_EXEC flag is not part of the O_ACCMODE mask, check it separately. If O_EXEC is provided don't require CAP_READ/CAP_WRITE, as O_EXEC is mutually exclusive to O_RDONLY/O_WRONLY/O_RDWR. Without this change CAP_FEXECVE capability right is not enforced. Sponsored by: FreeBSD Foundation MFC after: 3 days END K 10 svn:author V 3 pjd K 8 svn:date V 27 2012-09-25T20:58:15.104619Z K 7 svn:log V 111 Require CAP_CREATE on directory descriptor for linkat(2). Sponsored by: FreeBSD Foundation MFC after: 2 weeks END K 10 svn:author V 3 pjd K 8 svn:date V 27 2012-09-25T20:59:12.927503Z K 7 svn:log V 114 Require CAP_CREATE on directory descriptor for symlinkat(2). Sponsored by: FreeBSD Foundation MFC after: 2 weeks END K 10 svn:author V 3 pjd K 8 svn:date V 27 2012-09-25T21:00:36.678494Z K 7 svn:log V 113 Require CAP_DELETE on directory descriptor for unlinkat(2). Sponsored by: FreeBSD Foundation MFC after: 2 weeks END K 10 svn:author V 3 pjd K 8 svn:date V 27 2012-09-25T21:11:40.832216Z K 7 svn:log V 276 We cannot open file for reading and executing (O_RDONLY | O_EXEC). Well, in theory we can pass those two flags, because O_RDONLY is 0, but we won't be able to read from a descriptor opened with O_EXEC. Update the comment. Sponsored by: FreeBSD Foundation MFC after: 2 weeks END K 10 svn:author V 6 emaste K 8 svn:date V 27 2012-09-25T21:19:17.996492Z K 7 svn:log V 28 Remove an incorrect comment END K 10 svn:author V 6 brooks K 8 svn:date V 27 2012-09-25T21:25:47.441629Z K 7 svn:log V 48 Shim more function names for install's benefit. END K 10 svn:author V 6 brooks K 8 svn:date V 27 2012-09-25T21:26:44.928417Z K 7 svn:log V 94 Initialize the name variable to work around older gcc's weak uninitialized variable checking. END K 10 svn:author V 6 brooks K 8 svn:date V 27 2012-09-25T21:27:37.124652Z K 7 svn:log V 42 s/__dead/__dead2/ Add a NO_SHA384 option. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2012-09-25T21:31:17.495141Z K 7 svn:log V 168 vn_write() always expects FOF_OFFSET flag, which is asserted at the begining, so there is no need to check for it. Sponsored by: FreeBSD Foundation MFC after: 2 weeks END K 10 svn:author V 6 brooks K 8 svn:date V 27 2012-09-25T21:33:36.852246Z K 7 svn:log V 99 Hook NetBSD's install up to the build. For now it is installed as ninstall and without a manpage. END K 10 svn:author V 6 emaste K 8 svn:date V 27 2012-09-25T22:10:14.587271Z K 7 svn:log V 481 Avoid INVARIANTS panic destroying an in-use tap(4) The requirement (implied by the KASSERT in tap_destroy) that the tap is closed isn't valid; destroy_dev will block in devdrn while other threads are in d_* functions. Note: if_tun had the same issue, addressed in SVN revisions r186391, r186483 and r186497. The use of the condvar there appears to be redundant with the functionality provided by destroy_dev. Sponsored by: ADARA Networks Reviewed by: dwhite MFC after: 2 weeks END K 10 svn:author V 3 ray K 8 svn:date V 27 2012-09-25T22:12:07.930218Z K 7 svn:log V 125 Add more SPI flash IDs. Submitted by: Luiz Otavio O Souza. Submitted by: ZRouter.org project. Approved by: adrian (menthor) END K 10 svn:author V 3 pjd K 8 svn:date V 27 2012-09-25T22:15:59.529881Z K 7 svn:log V 226 Fix freebsd32_kmq_timedreceive() and freebsd32_kmq_timedsend() to use getmq_read() and getmq_write() respectively, just like sys_kmq_timedreceive() and sys_kmq_timedsend(). Sponsored by: FreeBSD Foundation MFC after: 2 weeks END K 10 svn:author V 4 neel K 8 svn:date V 27 2012-09-25T22:31:35.012501Z K 7 svn:log V 171 Add support for trapping MMIO writes to local apic registers and emulating them. The default behavior is still to present the local apic to the guest in the x2apic mode. END K 10 svn:author V 6 emaste K 8 svn:date V 27 2012-09-25T23:41:45.775692Z K 7 svn:log V 68 Revert part of an earlier patch attempt that snuck in with r240938. END K 10 svn:author V 4 neel K 8 svn:date V 27 2012-09-26T00:06:17.438120Z K 7 svn:log V 112 Add an option "-a" to present the local apic in the XAPIC mode instead of the default X2APIC mode to the guest. END K 10 svn:author V 6 emaste K 8 svn:date V 27 2012-09-26T00:25:09.807451Z K 7 svn:log V 84 Add regression test for kern/172075. Sponsored by: ADARA Networks PR: kern/172075 END K 10 svn:author V 6 emaste K 8 svn:date V 27 2012-09-26T01:09:19.388661Z K 7 svn:log V 37 Correct misspelling in debug output. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-09-26T03:45:42.930882Z K 7 svn:log V 3398 Map the non-QoS TID to the voice queue, in order to ensure important things like EAPOL frames make it out. After a whole bunch of hacking/testing, I discovered that they weren't being early-dropped by the stack (but I should look at ensuring that later..) but were even making to the hardware transmit queue. They were mostly even being received by the remote end. However, the remote end was completely ignoring them. This didn't happen under 150-170MBit TCP tests as I'm guessing the TX queue stayed very busy and the STA didn't do any scanning. However, when doing 100Mbit/s of TCP traffic, the STA would do background scanning - which involves it coming in and out of powersave mode with the AP. Now, this is a total and utter hack around the real problems, which are: * I need to implement proper power save handling and integrate it into the filtered frames support, so the driver/stack doesn't send frames whilst the station is actually in sleep; * .. but frames were actually making it to the STA (macbook pro) and the AP did receive an ACK; but a tcpdump on the receiving side showed the EAPOL frame never made it. So the stack was dropping it for some reason; * Importantly - the EAPOL frames are currently going into the non-QoS TID, which maps to the BE queue and is susceptible to that queue being busy doing other things, but; * There's other traffic going on in the non-QoS TID from other contexts when scanning is going on and it's possible there's some races causing sequence number/IV issues, but; * Importantly importantlly, I think the interaction with TID 16 multicast traffic in power save mode is causing issues - since I -believe- the sequence number space being used by the EAPOL frames on TID 16 overlaps with the multicast frames that have sequence numbers allocated and are then stuffed on the cabq. Since with EAPOL frames being in TID 16 and queued to the BE queue, it's going to be waiting to be serviced with all of the aggregate traffic going on - and if the CABQ gets emptied beforehand, those TID 16 multicast frames with sequence numbers will go out beforehand. Now, there's quite likely a bunch of "stuff happening slightly out of sequence" going on due to the nature of the TX path (read: lots of overlapping and concurrent ath_start() and ath_raw_xmit() calls going on, sigh) but I thought I had caught them all and stuffed each TID TX behind a lock (that lasted as long as it needed to in order to get the frame onto the relevant destination queue - thus keeping things in order.) Unfortunately the last problem is the big one and I'm going to stare at it some more. If it _is_ So this is a work around for now to ensure that EAPOL frames actually make it out before any other stuff in the non-QoS TID and HOPEFULLY before the CABQ gets active. I'm now going to spend a little time in the TX path figuring out exactly why the sender is rejecting things. There's two (well, three if you count EAPOL contents invalid) possibilities: * The sequence number is out of order (ie, something else like the multicast traffic on CABQ) is going out first on TID 16; * The CCMP IV is out of order (similar to above - but less likely, as the TX key for multicast traffic is different to unicast traffic); * EAPOL contents strangely invalid. AP: Ubiquiti RSPRO, AR9160/AR9220 NICs STA: Macbook Pro, Broadcom 11n NIC END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-09-26T03:54:55.195989Z K 7 svn:log V 260 MFC r240862 Address a race condition that was introduced in r238212. Unless the page queues lock is acquired before the page lock is released, there is no guarantee that the page will still be in that same page queue when vm_page_requeue() is called. END K 10 svn:author V 5 trasz K 8 svn:date V 27 2012-09-26T07:09:15.594674Z K 7 svn:log V 134 Fix panic in CTL caused by trying to free invalid pointers passed by the userland process via the IOCTL interface. Reviewed by: ken@ END K 10 svn:author V 2 mm K 8 svn:date V 27 2012-09-26T08:57:12.927432Z K 7 svn:log V 145 Update vendor/illumos/dist and vendor-sys/illumos/dist to illumos-gate 13836:37bf491c434c (illumos ZFS issues #2678, #2811, #3139, #3189, #3208) END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-09-26T09:22:28.308380Z K 7 svn:log V 140 MFC r240135: Add support for new Intel on-CPU Bull Mountain random number generator. MFC r240455: Rename the IVY_RNG option to RDRAND_RNG. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-09-26T09:25:11.985765Z K 7 svn:log V 184 Make the updates of the tid ring buffer' head and tail pointers explicit by moving them into separate statements from the buffer element accesses. Requested by: jhb MFC after: 3 days END K 10 svn:author V 6 andrew K 8 svn:date V 27 2012-09-26T09:25:31.008860Z K 7 svn:log V 55 Start to clean up the lpc initarm as it also uses FDT. END K 10 svn:author V 6 andrew K 8 svn:date V 27 2012-09-26T09:27:38.120468Z K 7 svn:log V 54 Use arm_dump_avail_init to build the dump_avail array END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2012-09-26T09:29:48.749230Z K 7 svn:log V 101 Teach getent(1) to look up a hostname and find IPv6 addresses. PR: bin/161548 Submitted by: matthew END K 10 svn:author V 2 mm K 8 svn:date V 27 2012-09-26T09:37:58.309052Z K 7 svn:log V 449 Merge recent vendor changes in ZFS. Illumos issued covered: 2811 missing implementation: zfs send -r 3139 zdb dies when it tries to determine path of unlinked file 3189 kernel panic in ZFS test suite during hotspare_onoffline_004_neg 3208 moving zpool cross-endian results in incorrect user/group accounting References: https://www.illumos.org/issues/ + [issue_id] Obtained from: illumos (vendor/illumos, vendor/illumos-sys) MFC after: 2 weeks END K 10 svn:author V 6 andrew K 8 svn:date V 27 2012-09-26T10:07:53.196592Z K 7 svn:log V 90 Create the new initarm_ functions to reduce the diff to the other FDT versions of initarm END K 10 svn:author V 2 mm K 8 svn:date V 27 2012-09-26T10:58:15.045084Z K 7 svn:log V 291 MFC r236248-r236250: MFC r236248 (pjd): Remove unused variable. MFC r236249 (pjd): Eliminate 'where' argument, we don't use it. MFC r236250 (pjd): Tighten up the assertion: because size can't be 0 and even if sm_space is equal to sm_size, any 'sm_space - size' will be less than sm_size. END K 10 svn:author V 2 mm K 8 svn:date V 27 2012-09-26T11:12:09.401886Z K 7 svn:log V 291 MFC r236248-r236250: MFC r236248 (pjd): Remove unused variable. MFC r236249 (pjd): Eliminate 'where' argument, we don't use it. MFC r236250 (pjd): Tighten up the assertion: because size can't be 0 and even if sm_space is equal to sm_size, any 'sm_space - size' will be less than sm_size. END K 10 svn:author V 2 mm K 8 svn:date V 27 2012-09-26T12:36:09.750678Z K 7 svn:log V 478 MFC r226940 (rmh): Fix a few gratuitous library dependencies. Some of the ZFS utilities are linked with libraries they don't use: - zinject doesn't use libavl - ztest doesn't use libz - zdb uses neither libavl nor libz - zfs uses neither libbsdxml nor libm, nor libsbuf - zpool uses neither libbsdxml nor libm, nor libsbuf In addition, libzfs needs libm because it uses pow(), however it isn't linked with -lm. This went unnoticed because all its users had -lm before. END K 10 svn:author V 2 mm K 8 svn:date V 27 2012-09-26T12:36:22.527879Z K 7 svn:log V 478 MFC r226940 (rmh): Fix a few gratuitous library dependencies. Some of the ZFS utilities are linked with libraries they don't use: - zinject doesn't use libavl - ztest doesn't use libz - zdb uses neither libavl nor libz - zfs uses neither libbsdxml nor libm, nor libsbuf - zpool uses neither libbsdxml nor libm, nor libsbuf In addition, libzfs needs libm because it uses pow(), however it isn't linked with -lm. This went unnoticed because all its users had -lm before. END K 10 svn:author V 4 zont K 8 svn:date V 27 2012-09-26T13:57:16.981230Z K 7 svn:log V 44 MFC r240463: - Fix a typo in debug message. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-09-26T14:14:06.650520Z K 7 svn:log V 183 Grab the mfi_config_lock while performing a MFI_DCMD_CFG_FOREIGN_IMPORT request on behalf of a user utility. Submitted by: Steven Hartland killing multiplay co uk MFC after: 1 week END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-09-26T14:17:14.205656Z K 7 svn:log V 51 Remove FreeBSD 4.x compat shims. Verified by md5. END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2012-09-26T14:29:15.040357Z K 7 svn:log V 54 Ready for 9.1-RC2 builds. Approved by: re (implicit) END K 10 svn:author V 9 jimharris K 8 svn:date V 27 2012-09-26T16:46:44.033074Z K 7 svn:log V 234 Create led(4) device nodes mapped to isci(4) SGPIO locate LEDs. Device nodes are in the format /dev/led/isci.busX.portY.locate. Sponsored by: Intel Requested by: Paul Maulberger MFC after: 1 week END K 10 svn:author V 6 brooks K 8 svn:date V 27 2012-09-26T17:25:15.123958Z K 7 svn:log V 369 Add a COMPILER_FEATURES variable that is set in bsd.compiler.mk. When the compiler is clang add c++11 to COMPILER_FEATURES. When the compiler supports c++11, default to building libc++. This will not impact the compliation of programs, but will make it easier for users with clang compiled systems to test libc++ by passing -stdlib=libc++ to their c++ compliations. END K 10 svn:author V 3 gjb K 8 svn:date V 27 2012-09-26T18:04:16.817149Z K 7 svn:log V 609 - Allow cross-architecture builds with 'generate-release.sh', which is set by specifying '-a '. (Only supported for i386 on amd64 and powerpc on powerpc64 currently). - Change how textproc/docproj is installed: o Attempt to install from pkg(8); o Fall back to pkg_add(1) if pkg(8) installation is not successful; o Fall back to installing from ports as last resort. - Ensure the script is run by root[1]. - Get OSVERSION from param.h[1]. Provided by: glebius [1] Reviewed by: nwhitehorn, kensmith Approved by: kensmith MFC After: 2 weeks X-Needs-MFC: r240586, r240587, r240588 END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-09-26T18:11:43.860110Z K 7 svn:log V 542 Merge similar fixes from 223198 from igb to ixgbe: - Use a dedicated task to handle deferred transmits from the if_transmit method instead of reusing the existing per-queue interrupt task. Reusing the per-queue interrupt task could result in both an interrupt thread and the taskqueue thread trying to handle received packets on a single queue resulting in out-of-order packet processing and lock contention. - Don't define ixgbe_start() at all where if_transmit is used. Tested by: Vijay Singh Reviewed by: jfv MFC after: 2 weeks END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-09-26T18:59:20.463966Z K 7 svn:log V 75 Make sure the DWC OTG host mode channels are given enough time to disable. END K 10 svn:author V 4 tijl K 8 svn:date V 27 2012-09-26T19:49:22.914826Z K 7 svn:log V 767 - Make C11 atomic macros usable in expressions: - Replace do-while statements with void expressions. - Wrap __asm statements in statement expressions. - Make the macros function-like: - Evaluate all arguments exactly once. - Make sure there's a sequence point between evaluation of the arguments and the function body. Arguments should be evaluated before any memory barriers. - Fix use of __atomic_is_lock_free built-in. It requires the address of an atomic variable as second argument. Use this built-in on clang as well because clang's __c11_atomic_is_lock_free only takes the size of the variable into account. - In atomic_exchange_explicit put the barrier before instead of after the __sync_lock_test_and_set call. Reviewed by: theraven END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-09-26T20:09:48.508752Z K 7 svn:log V 147 - In the bridge_enqueue() do success/error accounting for each fragment, not only once. - In the GRAB_OUR_PACKETS() macro do increase if_ibytes. END K 10 svn:author V 6 dteske K 8 svn:date V 27 2012-09-26T20:14:04.552220Z K 7 svn:log V 160 Add new DEBUG kernel distribution. Submitted by: Rick Miller Reviewed by: adrian (co-mentor) Approved by: adrian (co-mentor) END K 10 svn:author V 6 jilles K 8 svn:date V 27 2012-09-26T20:16:15.604589Z K 7 svn:log V 189 find: Do not pass fd to save current directory to child processes. This removes one of the two wrongly passed file descriptors. The other one appears to be from fts(3). MFC after: 1 week END K 10 svn:author V 6 jilles K 8 svn:date V 27 2012-09-26T20:47:39.516227Z K 7 svn:log V 212 atrun: Do not assume that MAXLOGNAME <= 100. The reserved space for fmt was exactly sufficient for a two-digit value of MAXLOGNAME - 1. PR: bin/171815 Submitted by: Jeremy Huddleston Sequoia MFC after: 1 week END K 10 svn:author V 6 emaste K 8 svn:date V 27 2012-09-26T21:55:13.732305Z K 7 svn:log V 145 Add missing mtx_destroy This is a direct commit to stable/9 as the locking is somewhat different in HEAD due to the VALE bridge work (r238812). END K 10 svn:author V 6 emaste K 8 svn:date V 27 2012-09-26T22:13:03.400064Z K 7 svn:log V 99 MFC part of r239149: Comment out the knlist_destroy for now as there is currently no knlist_init. END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2012-09-26T23:07:00.837748Z K 7 svn:log V 341 MFC: r240289 Add a simple printf() based debug facility to the new nfs client. Use it for a printf() that can be harmlessly generated for mmap()'d files. It will be used extensively for the NFSv4.1 client. Debugging printf()s are enabled by setting vfs.nfs.debuglevel to a non-zero value. The higher the value, the more debugging printf()s. END K 10 svn:author V 4 neel K 8 svn:date V 27 2012-09-27T00:27:58.479197Z K 7 svn:log V 412 Intel VT-x provides the length of the instruction at the time of the nested page table fault. Use this when fetching the instruction bytes from the guest memory. Also modify the lapic_mmio() API so that a decoded instruction is fed into it instead of having it fetch the instruction bytes from the guest. This is useful for hardware assists like SVM that provide the faulting instruction as part of the vmexit. END K 10 svn:author V 3 pfg K 8 svn:date V 27 2012-09-27T04:05:39.806181Z K 7 svn:log V 205 MFC 240880: Revert a change from Bull's NFSv4 libtirpc implementation: libtirpc: be sure to free cl_netid and cl_tp This change is causing rpc.lockd to exit after startup. Reported by: David Wolfskill END K 10 svn:author V 3 pfg K 8 svn:date V 27 2012-09-27T04:06:20.905228Z K 7 svn:log V 205 MFC 240880: Revert a change from Bull's NFSv4 libtirpc implementation: libtirpc: be sure to free cl_netid and cl_tp This change is causing rpc.lockd to exit after startup. Reported by: David Wolfskill END K 10 svn:author V 7 sobomax K 8 svn:date V 27 2012-09-27T04:28:55.704186Z K 7 svn:log V 246 Add 32-bit ABI compat shims. Those are necessary for i386 binary-only tools like sysutils/hpacucli (HP P4xx RAID controller management suite) working on amd64 systems. PR: 139271 Submitted by: Kazumi MORINAGA, Eugene Grosbein MFC after: 1 week END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2012-09-27T05:26:29.830532Z K 7 svn:log V 117 Initialize the num variable to avoid uninitialized data. This fixes the bug introduced by r238378. Reviewed by: pfg END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-09-27T05:39:42.118186Z K 7 svn:log V 560 Implementing pmap_kextract(va) as pmap_extract(kernel_pmap, va) is problematic because some callers to pmap_kextract() expect its implementation to be lock-less. In particular, uma_dbg_alloc() implicitly requires this. Otherwise, lock-order reversals occur between pmap locks and UMA zone locks. So, this change introduces a lock-less implementation of pmap_kextract(). Disable recursion on the pvh global lock in the new armv6 pmap. While recursion on this locks occurs in the old arm pmap, it thankfully doesn't occur in the armv6 pmap. Tested by: jmg END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-09-27T06:05:54.812331Z K 7 svn:log V 352 Track the last ANI TX/RX sample correctly. This doesn't specifically fix the issue(s) i'm seeing in this 2GHz environment (where setting/increasing spur immunity causes OFDM restart errors to skyrocket through the roof; but leaving it at 0 would leave the environment cleaner..) Pointy-hat-to: me, for committing this broken code in the first place. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-09-27T07:13:21.496667Z K 7 svn:log V 278 Fix bug in TCP_KEEPCNT setting, which slipped in in the last round of reviewing of r231025. Unlike other options from this family TCP_KEEPCNT doesn't specify time interval, but a count, thus parameter supplied doesn't need to be multiplied by hz. Reported & tested by: amdmi3 END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-09-27T08:04:59.770804Z K 7 svn:log V 224 MFC r240884: Fix panic caused by wrong pointer dereference, left after pin sense rewrite at r230551. Also while there, make sense polling use reported for each node separately instead of reporting accumulated total status. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-09-27T08:06:03.346957Z K 7 svn:log V 224 MFC r240884: Fix panic caused by wrong pointer dereference, left after pin sense rewrite at r230551. Also while there, make sense polling use reported for each node separately instead of reporting accumulated total status. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-09-27T08:24:34.107016Z K 7 svn:log V 247 MFC r240884: Fix panic caused by wrong pointer dereference, left after pin sense rewrite at r230551. Also while there, make sense polling use reported for each node separately instead of reporting accumulated total status. Approved by: re (kib) END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-09-27T09:00:22.566154Z K 7 svn:log V 157 MFC r240741: Plug the accounting leak for the wired pages when msync(MS_INVALIDATE) is performed on the vnode mapping which is wired in other address space. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-09-27T10:30:11.905151Z K 7 svn:log V 125 Fix several build failures for !COMPAT_FREEBSD32 and !COMPAT_FREEBSD* kernels introduced by r240981. Pointy hat to: sobomax END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-09-27T10:41:34.329791Z K 7 svn:log V 68 MFC r229887 (by jkim): Enable hardware RNG for VIA Nano processors. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-09-27T10:46:22.964190Z K 7 svn:log V 89 Fix zillions of style(9) and spacing bugs introduced by r240981. Pointy hat to: sobomax END K 10 svn:author V 5 trasz K 8 svn:date V 27 2012-09-27T10:51:38.204609Z K 7 svn:log V 55 Remove useless NULL checks after M_WAITOK allocations. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-09-27T10:56:25.876896Z K 7 svn:log V 140 MFC r240135: Add support for new Intel on-CPU Bull Mountain random number generator. MFC r240455: Rename the IVY_RNG option to RDRAND_RNG. END K 10 svn:author V 6 emaste K 8 svn:date V 27 2012-09-27T13:37:30.996699Z K 7 svn:log V 502 MFC part of r238812 and remainder of r239149 From r238812, move mtx_init of per-ring locks into NIOCREGIF ioctl handler. (Otherwise they're overwritten with zeros in netmap_if_new.) From r239149: Improve lock and unlock symmetry - Move destruction of per-ring locks to netmap_dtor_locked to mirror the initialization that happens in NIOCREGIF. Otherwise unloading a netmap- capable interface that was never put into netmap mode would try to mtx_destroy an uninitialized mutex, and panic. END K 10 svn:author V 6 brooks K 8 svn:date V 27 2012-09-27T14:29:18.839571Z K 7 svn:log V 129 Implement a wrapper around sys/cdefs.h to define NetBSD's __dead. This reduces the number of patches required to mtree's source. END K 10 svn:author V 7 trociny K 8 svn:date V 27 2012-09-27T14:55:15.014344Z K 7 svn:log V 1140 Kernel and modules have "set_vnet" linker set, where virtualized global variables are placed. When a module is loaded by link_elf linker its variables from "set_vnet" linker set are copied to the kernel "set_vnet" ("modspace") and all references to these variables inside the module are relocated accordingly. The issue is when a module is loaded that has references to global variables from another, previously loaded module: these references are not relocated so an invalid address is used when the module tries to access the variable. The example is V_layer3_chain, defined in ipfw module and accessed from ipfw_nat. The same issue is with DPCPU variables, which use "set_pcpu" linker set. Fix this making the link_elf linker on a module load recognize "external" DPCPU/VNET variables defined in the previously loaded modules and relocate them accordingly. For this set_pcpu_list and set_vnet_list are used, where the addresses of modules' "set_pcpu" and "set_vnet" linker sets are stored. Note, archs that use link_elf_obj (amd64) were not affected by this issue. Reviewed by: jhb, julian, zec (initial version) MFC after: 1 month END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-09-27T15:23:38.792983Z K 7 svn:log V 212 Make sure we record NAK tokens in the TD structure for IN direction. Improve host channel disabling. Wait two times 125us for channel to be disabled. The DWC OTG doesn't like when channels are re-used too early. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-09-27T15:45:24.048558Z K 7 svn:log V 58 Make sure the "wMaxPacketSize" limitations are respected. END