ƒ³T251000 172 221 191 249 376 275 280 171 171 140 140 687 687 115 389 3005 150 144 285 199 154 181 144 186 913 508 409 409 99 99 320 197 209 154 1197 119 200 116 349 368 237 234 307 152 832 620 889 148 1025 136 154 148 367 104 331 140 150 135 304 152 244 99 461 121 273 273 201 419 222 682 260 915 222 261 956 372 189 245 502 336 558 99 234 99 160 345 164 215 302 371 308 143 333 172 172 254 254 414 414 221 144 248 294 141 322 160 146 302 239 296 232 452 452 276 276 165 211 246 206 288 155 126 291 156 220 216 128 115 128 115 136 127 174 181 431 151 125 115 112 122 1115 290 248 479 118 732 446 863 1822 1822 228 235 465 146 190 112 112 163 136 136 408 203 178 202 202 270 138 571 351 257 117 179 453 K 10 svn:author V 6 eadler K 8 svn:date V 27 2013-05-26T14:54:06.619181Z K 7 svn:log V 125 Remove backwards compat layer which was added in r71419 (in 2001). This change is not intended for MFC. Reviewed by: peter END K 10 svn:author V 3 des K 8 svn:date V 27 2013-05-26T16:48:51.020744Z K 7 svn:log V 99 MFH (r243149): fix indentation MFH (r249431): use CONNECT to proxy HTTPS over HTTP PR: bin/80176 END K 10 svn:author V 3 des K 8 svn:date V 27 2013-05-26T17:00:15.064195Z K 7 svn:log V 156 MFH (r230478): fix a couple of nits in r230307 (r231248) MFH (r243149): fix indentation MFH (r249431): use CONNECT to proxy HTTPS over HTTP PR: bin/80176 END K 10 svn:author V 7 trociny K 8 svn:date V 27 2013-05-26T18:26:29.379088Z K 7 svn:log V 279 MFC r250147: procstat_getpathname: for kvm method, instead of returning the error that the method is not supported, return an empty string. This looks more handy for callers like procstat(1), which will not abort after the failed call and still output some useful information. END K 10 svn:author V 7 trociny K 8 svn:date V 27 2013-05-26T18:28:36.039910Z K 7 svn:log V 178 r250503 Get rid of libl dependency. We needed it only to provide yywrap. But yywrap is not necessary when parsing a single hast.conf file. Suggested by: kib Reviewed by: pjd END K 10 svn:author V 7 trociny K 8 svn:date V 27 2013-05-26T18:30:07.005349Z K 7 svn:log V 183 MFC r250503: Get rid of libl dependency. We needed it only to provide yywrap. But yywrap is not necessary when parsing a single hast.conf file. Suggested by: kib Reviewed by: pjd END K 10 svn:author V 7 trociny K 8 svn:date V 27 2013-05-26T18:35:52.712137Z K 7 svn:log V 75 MFC r250379, r250503: HAST module for bsnmpd(1). Reviewed by: harti, pjd END K 10 svn:author V 7 trociny K 8 svn:date V 27 2013-05-26T18:37:20.317126Z K 7 svn:log V 75 MFC r250379, r250503: HAST module for bsnmpd(1). Reviewed by: harti, pjd END K 10 svn:author V 7 trociny K 8 svn:date V 27 2013-05-26T18:38:46.126382Z K 7 svn:log V 44 MFC r250380: Register OID for HAST module. END K 10 svn:author V 7 trociny K 8 svn:date V 27 2013-05-26T18:39:33.799398Z K 7 svn:log V 44 MFC r250380: Register OID for HAST module. END K 10 svn:author V 7 trociny K 8 svn:date V 27 2013-05-26T18:54:05.062541Z K 7 svn:log V 590 MFC r250405: Move snmp_hast manual to section 3, where all other manual pages for bsnmp modules are located. Section 3 (Library Functions) looks wrong for this manual page, which contains only module description, that is why initially it was located to section 8 (System Manager's Manual). On the other hand manual pages for all other bsnmpd modules are already located in the section 3, and having all pages in one section looks more consistent. Also, currently, similarly to manuals for other modules, snmp_hast manual contains LIBRARY section, which is not good style for section 8. END K 10 svn:author V 7 trociny K 8 svn:date V 27 2013-05-26T18:54:50.354955Z K 7 svn:log V 590 MFC r250405: Move snmp_hast manual to section 3, where all other manual pages for bsnmp modules are located. Section 3 (Library Functions) looks wrong for this manual page, which contains only module description, that is why initially it was located to section 8 (System Manager's Manual). On the other hand manual pages for all other bsnmpd modules are already located in the section 3, and having all pages in one section looks more consistent. Also, currently, similarly to manuals for other modules, snmp_hast manual contains LIBRARY section, which is not good style for section 8. END K 10 svn:author V 8 schweikh K 8 svn:date V 27 2013-05-26T18:57:59.825479Z K 7 svn:log V 18 s/recieve/receive END K 10 svn:author V 6 marcel K 8 svn:date V 27 2013-05-26T22:11:13.611285Z K 7 svn:log V 293 Unbreak ia64 tinderbox: 64-bit support was made conditional upon __amd64__, and thus limited. Eliminate 2 trivial conditionals by casting the 64-bit integral, holding an address, via (uintptr_t) to (void *) and replace the last remaining check for __amd64__ with a check for __LP64__ instead. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2013-05-26T22:23:39.658039Z K 7 svn:log V 2908 Migrate ath(4) to now use if_transmit instead of the legacy if_start and if queue mechanism; also fix up (non-11n) TX fragment handling. This may result in a bit of a performance drop for now but I plan on debugging and resolving this at a later stage. Whilst here, fix the transmit path so fragment transmission works. The TX fragmentation handling is a bit more special. In order to correctly transmit TX fragments, there's a bunch of corner cases that need to be handled: * They must be transmitted back to back, in the same order.. * .. ie, you need to hold the TX lock whilst transmitting this set of fragments rather than interleaving it with other MSDUs destined to other nodes; * The length of the next fragment is required when transmitting, in order to correctly set the NAV field in the current frame to the length of the next frame; which requires .. * .. that we know the transmit duration of the next frame, which .. * .. requires us to set the rate of all fragments to the same length, or make the decision up-front, etc. To facilitate this, I've added a new ath_buf field to describe the length of the next fragment. This avoids having to keep the mbuf chain together. This used to work before my 11n TX path work because the ath_tx_start() routine would be handed a single mbuf with m_nextpkt pointing to the next frame, and that would be maintained all the way up to when the duration calculation was done. This doesn't hold true any longer - the actual queuing may occur at any point in the future (think ath_node TID software queuing) so this information needs to be maintained. Right now this does work for non-11n frames but it doesn't at all enforce the same rate control decision for all frames in the fragment. I plan on fixing this in a followup commit. RTS/CTS has the same issue, I'll look at fixing this in a subsequent commit. Finaly, 11n fragment support requires the driver to have fully decided what the rate scenario setup is - including 20/40MHz, short/long GI, STBC, LDPC, number of streams, etc. Right now that decision is (currently) made _after_ the NAV field value is updated. I'll fix all of this in subsequent commits. Tested: * AR5416, STA, transmitting 11abg fragments * AR5416, STA, 11n fragments work but the NAV field is incorrect for the reasons above. TODO: * It would be nice to be able to queue mbufs per-node and per-TID so we can only queue ath_buf entries when it's time to assemble frames to send to the hardware. But honestly, we should just do that level of software queue management in net80211 rather than ath(4), so I'm going to leave this alone for now. * More thorough AP, mesh and adhoc testing. * Ensure that net80211 doesn't hand us fragmented frames when A-MPDU has been negotiated, as we can't do software retransmission of fragments. * .. set CLRDMASK when transmitting fragments, just to ensure. END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2013-05-27T00:06:24.067003Z K 7 svn:log V 56 Add clock definitions for LCD controller and PWM module END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2013-05-27T00:09:04.562055Z K 7 svn:log V 50 Add SCM registers definitions for AM335x platform END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2013-05-27T00:13:27.639182Z K 7 svn:log V 190 Add PWM module driver for AM335x. Only eCAS subsystem is supported Export function to configure eCAS submodule from another drivers. It's used to control LCD panel backlight on AM335x EVM. END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2013-05-27T00:23:01.920614Z K 7 svn:log V 104 AM335x LCD controller driver with syscons support Limitations: - Raster mode only - 24 and 32 bpp only END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2013-05-27T00:23:59.294078Z K 7 svn:log V 60 Add PWM and LCDC nodes to base DTS for AM335x-based devices END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2013-05-27T00:26:29.267804Z K 7 svn:log V 87 Add DTS for AM335x EVM with properly muxed PWM and LCD pins, and LCD panel description END K 10 svn:author V 5 jamie K 8 svn:date V 27 2013-05-27T03:09:26.871783Z K 7 svn:log V 50 MFC r250968: Mention the "nojailvnet" keyword. END K 10 svn:author V 4 gber K 8 svn:date V 27 2013-05-27T06:24:31.553453Z K 7 svn:log V 93 Fix ONFI chip detection. Submitted by: Alexander Fedorov END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2013-05-27T06:32:07.058208Z K 7 svn:log V 815 Workaround for for a problem seen with ATI Technologies EHCI controller hardware most likely present on UHCI chipsets aswell. The bug manifests itself when issuing isochronous transfers and bulk transfers towards the same device simultaneously. From time to time it happens that either the completion IRQ was missing or that the completion IRQ was happening before the ITD/SITD was completely written back to memory. The workaround assumes that double buffered isochronous transfers are used, and that a second interrupt is generated at the beginning of the next isochronous transfer to complete the previous one. Possibly skipping the interrupt at the last isochronous frame is possible, but will then break single buffered isochronous transfers. For now we can live with some extra interrupts. MFC after: 1 week END K 10 svn:author V 3 das K 8 svn:date V 27 2013-05-27T08:50:10.587585Z K 7 svn:log V 415 Fix some regressions caused by the switch from gcc to clang. The fixes are workarounds for various symptoms of the problem described in clang bugs 3929, 8100, 8241, 10409, and 12958. The regression tests did their job: they failed, someone brought it up on the mailing lists, and then the issue got ignored for 6 months. Oops. There may still be some regressions for functions we don't have test coverage for yet. END K 10 svn:author V 5 marck K 8 svn:date V 27 2013-05-27T13:49:55.894486Z K 7 svn:log V 314 Preparation for MFC revs r248291 and r249741: Add 'list' command, for now the exact equivalent of 'status', so users of the latter could change their scripts. This is direct commit to stable, and is temporary. Requested by: Pete French Approved by: trociny 2B cleaned after: 6 weeks END K 10 svn:author V 5 marck K 8 svn:date V 27 2013-05-27T13:51:57.014339Z K 7 svn:log V 314 Preparation for MFC revs r248291 and r249741: Add 'list' command, for now the exact equivalent of 'status', so users of the latter could change their scripts. This is direct commit to stable, and is temporary. Requested by: Pete French Approved by: trociny 2B cleaned after: 6 weeks END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-05-27T15:47:10.146871Z K 7 svn:log V 4 MFC END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-05-27T15:51:03.234923Z K 7 svn:log V 4 MFC END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-05-27T16:12:39.617393Z K 7 svn:log V 223 Rework vm_page_sleep_if_busy() in order to acquire the page lock iff it requires to sleep. This saves some further page_lock acquisitions that were added during the development. Sponsored by: EMC / Isilon storage division END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-05-27T16:16:28.099550Z K 7 svn:log V 100 Fixup vm_page_sleep_if_busy() locking for this branch. Sponsored by: EMC / Isilon storage division END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-05-27T16:23:48.538903Z K 7 svn:log V 112 Use vm_page_sleep_if_busy() in 2 places where it is not used yet. Sponsored by: EMC / Isilon storage division END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-05-27T16:29:53.843329Z K 7 svn:log V 58 Fix brain-o. Sponsored by: EMC / Isilon storage division END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-05-27T18:26:08.471779Z K 7 svn:log V 1103 When handling an exception from the attempt from loading the faulting context on return from the trap handler, re-enable the interrupts on i386 and amd64. The trap return path have to disable interrupts since the sequence of loading the machine state is not atomic. The trap() function which transfers the control to the special handler would enable the interrupt, but an iret loads the previous eflags with PSL_I clear. Then, the special handler calls trap() on its own, which now sees the original eflags with PSL_I set and does not enable interrupts. The end result is that signal delivery and process exiting code could be executed with interrupts disabled, which is generally wrong and triggers several assertions. For amd64, the interrupts are enabled conditionally based on PSL_I in the eflags of the outer frame, as it is already done for doreti_iret_fault. For i386, the interrupts are enabled unconditionally, the ast loop could have opened a window with interrupts enabled just before the iret anyway. Reported and tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week END K 10 svn:author V 2 ed K 8 svn:date V 27 2013-05-27T18:27:12.071889Z K 7 svn:log V 28 Import compiler-rt r182741. END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-05-27T18:29:20.407567Z K 7 svn:log V 107 When reporting the fault details, also print %rsp. Sponsored by: The FreeBSD Foundation MFC after: 1 week END K 10 svn:author V 2 ed K 8 svn:date V 27 2013-05-27T18:29:31.227618Z K 7 svn:log V 25 Tag compiler-rt r182741. END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-05-27T18:31:15.561008Z K 7 svn:log V 256 The ia32_get_mcontext() does not need to set PCB_FULL_IRET. The usermode context state is not changed by the get operation, and get_mcontext() does not require full iret as well. Tested by: dim, pgj Sponsored by: The FreeBSD Foundation MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-05-27T18:36:46.350875Z K 7 svn:log V 275 The _MC_HASFPXSTATE and _MC_IA32_HASFPXSTATE flags have the same bit value on purpose, but the ia32 context handling code is logically more correct to use the _MC_IA32_HASFPXSTATE name for the flag. Tested by: dim, pgj Sponsored by: The FreeBSD Foundation MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-05-27T18:39:39.141046Z K 7 svn:log V 144 Use slightly more idiomatic expression to get the address of array. Tested by: dim, pgj Sponsored by: The FreeBSD Foundation MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-05-27T18:45:45.162132Z K 7 svn:log V 141 Partially apply the capitalization of the heading word of the sequence and fix typo. Sponsored by: The FreeBSD Foundation MFC after: 1 week END K 10 svn:author V 5 kargl K 8 svn:date V 27 2013-05-27T20:43:16.307266Z K 7 svn:log V 212 * Update polynomial coefficients. * Use ENTERI/RETURNI to allow the use of FP_PE on i386 target. Reviewed by: das (and bde a long time ago) Approved by: das (mentor) Obtained from: bde (polynomial coefficients) END K 10 svn:author V 6 jilles K 8 svn:date V 27 2013-05-27T21:37:19.398232Z K 7 svn:log V 57 cap_rights_limit(2): CAP_ACCEPT also permits accept4(2). END K 10 svn:author V 8 mckusick K 8 svn:date V 27 2013-05-27T22:18:04.609963Z K 7 svn:log V 734 MFC of 250708: Clean up trailing whitespace. Submitted by: Andy Kosela MFC of 250710: When running the -m option to generate a newfs(8) command suitable for recreating the filesystem, check for and output the -i, -k, and -l options if appropriate. Note the remaining deficiencies of the -m option in the dumpfs(8) manual page. Specifically that newfs(8) options -E, -R, -S, and -T options are not handled and that -p is not useful so is omitted. Also document that newfs(8) options -n and -r are neither checked for nor output but should be. The -r flag is needed if the filesystem uses gjournal(8). PR: bin/163992 Reported by: Dieter Submitted by: Andy Kosela END K 10 svn:author V 3 gad K 8 svn:date V 27 2013-05-27T22:19:01.871277Z K 7 svn:log V 527 Change the closeallfds() routine to use closefrom() when it is available (closefrom() was added to FreeBSD in 8.0-release). The selection is made at compile-time, as I still compile a FreeBSD-based version of lpr&friends on other platforms. While testing I out that (at least on my system) lpd has been closing 11095 fd's, when there are only 6 fd's open. The old code took 120 times more clocktime than calling closefrom(). (although that was still less than 2/1000-ths of a second!) Reviewed by: jilles MFC after: 2 weeks END K 10 svn:author V 8 mckusick K 8 svn:date V 27 2013-05-27T22:41:43.962418Z K 7 svn:log V 791 MFC of 250708: Clean up trailing whitespace. Submitted by: Andy Kosela MFC of 250710: (delete addition of -k which does not exist in 8-stable) When running the -m option to generate a newfs(8) command suitable for recreating the filesystem, check for and output the -i, -k, and -l options if appropriate. Note the remaining deficiencies of the -m option in the dumpfs(8) manual page. Specifically that newfs(8) options -E, -R, -S, and -T options are not handled and that -p is not useful so is omitted. Also document that newfs(8) options -n and -r are neither checked for nor output but should be. The -r flag is needed if the filesystem uses gjournal(8). PR: bin/163992 Reported by: Dieter Submitted by: Andy Kosela END K 10 svn:author V 5 kargl K 8 svn:date V 27 2013-05-27T22:45:05.056465Z K 7 svn:log V 54 Style(9) Approved by: das (implicit) Reported by: jh END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-05-28T04:54:16.669298Z K 7 svn:log V 932 The getcontext() from the __fillcontextx() call in the check_deferred_signal() returns twice, since handle_signal() emulates the return from the normal signal handler by sigreturn(2)ing the passed context. Second return is performed on the destroyed stack frame, because __fillcontextx() has already returned. This causes undefined and bad behaviour, usually the victim thread gets SIGSEGV. Avoid nested frame and the need to return from it by doing direct call to getcontext() in the check_deferred_signal() and using a new private libc helper __fillcontextx2() to complement the context with the extended CPU state if the deferred signal is still present. The __fillcontextx() is now unused, but is kept to allow older libthr.so to be used with the new libc. Mark __fillcontextx() as returning twice [1]. Reported by: pgj Pointy hat to: kib Discussed with: dim Tested by: pgj, dim Suggested by: jilles [1] MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-05-28T05:22:45.157041Z K 7 svn:log V 44 MFC r250849: Add ddb command 'show pginfo'. END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-05-28T05:25:10.722991Z K 7 svn:log V 62 MFC r250850: Add amd64-specific ddb command 'show phys2dmap'. END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-05-28T05:36:18.182483Z K 7 svn:log V 56 MFC r250851: Fix the hardware watchpoints on SMP amd64. END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-05-28T05:51:00.796113Z K 7 svn:log V 274 MFC r250853: Fix the wait6(2) on 32bit architectures and for the compat32, by using the right type for the argument in syscalls.master. Also fix the posix_fallocate(2) and posix_fadvise(2) compat32 syscalls on the architectures which require padding of the 64bit argument. END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-05-28T05:52:03.221802Z K 7 svn:log V 12 Regenerate. END K 10 svn:author V 4 tijl K 8 svn:date V 27 2013-05-28T08:50:50.942986Z K 7 svn:log V 237 Fix cexp regression tests that have an infinite real part. The signs of the result depend on the cosine and sine of the imaginary part. Small values are used in the new tests such that cosine and sine are well defined. Reviewed by: das END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2013-05-28T09:25:58.617169Z K 7 svn:log V 45 Remove redundant checks. MFC after: 2 weeks END K 10 svn:author V 3 des K 8 svn:date V 27 2013-05-28T09:26:48.528118Z K 7 svn:log V 58 If stdin is not a tty, abort rather than prompt the user. END K 10 svn:author V 4 joel K 8 svn:date V 27 2013-05-28T09:33:46.131901Z K 7 svn:log V 42 mdoc: silence a few mandoc lint warnings. END K 10 svn:author V 3 des K 8 svn:date V 27 2013-05-28T09:51:27.602071Z K 7 svn:log V 211 A missing $ caused the script to look in the wrong place when trying to determine whether this was a first or subsequent run - but only when backing up a non-root dataset. Also, use [ -t 0 ] instead of tty(1). END K 10 svn:author V 3 des K 8 svn:date V 27 2013-05-28T09:52:28.156178Z K 7 svn:log V 60 During buildkernel, print a banner before building modules. END K 10 svn:author V 5 markj K 8 svn:date V 27 2013-05-28T13:54:26.909318Z K 7 svn:log V 149 - Fix wording. [1] - Improve the descriptions in the FILES section. [2] Reported by: Jason McIntyre [1] Obtained from: NetBSD [2] MFC after: 3 days END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-05-28T14:32:02.323167Z K 7 svn:log V 4 MFC END K 10 svn:author V 3 smh K 8 svn:date V 27 2013-05-28T14:44:37.040605Z K 7 svn:log V 368 Added missing SCSI quirks from r241784 Re-ordered SSD quirks alphabetically so they are easier to maintain. Removed my email and PR reference from comments on each quirk. Added quirks for more SSDs: * Crucial M4 * Corsair Force GT * Intel 520 Series * Kingston E100 Series * Samsung 830 Series Reviewed by: pjd (mentor) Approved by: pjd (mentor) MFC after: 1 week END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-05-28T15:04:58.036746Z K 7 svn:log V 25 Merge from vmcontention. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2013-05-28T18:13:08.699123Z K 7 svn:log V 180 MFC 247332: Add a quirk to disable this driver for certain older laptops with an ICH2 southbridge and an Intel 82815_MC host bridge where the host bridge's revision is less than 5 END K 10 svn:author V 3 jhb K 8 svn:date V 27 2013-05-28T18:43:58.134073Z K 7 svn:log V 180 MFC 247332: Add a quirk to disable this driver for certain older laptops with an ICH2 southbridge and an Intel 82815_MC host bridge where the host bridge's revision is less than 5 END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2013-05-28T18:51:30.206719Z K 7 svn:log V 103 Revert r251023 until a more proper solution is found for ATI based USB controllers. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2013-05-28T20:11:28.428519Z K 7 svn:log V 326 Fix warnings from newer clang versions about constexpr member functions not being implicitly const in libc++'s header. The warnings have been introduced because of new language rules recently adopted by the C++ WG. More info: MFC after: 3 days END K 10 svn:author V 6 emaste K 8 svn:date V 27 2013-05-28T20:37:48.066519Z K 7 svn:log V 126 Remove the advertising clause from the Regents of the University of California's license, per the letter dated July 22, 1999. END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-05-28T20:53:26.243790Z K 7 svn:log V 586 MFC: r245926, r245931 - Improve some comments. - Make bge_lookup_{rev,vendor}() static. - Factor out chip identification rather than duplicating the code. - Sanitize bge_probe() a bit (don't hardcode buffer sizes, allow bge_lookup_vendor() to return NULL so the excessive panic() can be removed there, etc.) and return BUS_PROBE_DEFAULT rather than hardcoding 0. - According to the Linux tg3 driver, BCM57791 and BCM57795 aren't capable of Gigabit Ethernet. - Check the return value of taskqueue_start_threads(). - Mention NetLink controllers in the fallback description, too. END K 10 svn:author V 6 emaste K 8 svn:date V 27 2013-05-28T20:57:40.687892Z K 7 svn:log V 164 Renumber clauses to reduce diffs to other versions NetBSD, OpenBSD, and Android's Bionic number the clauses 1 through 3, so follow suit to make comparison easier. END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-05-28T20:58:57.077324Z K 7 svn:log V 819 MFC: r247570, r247591 - Make tables, device ID strings etc const. This includes #ifdef'ing 0 aac_command_status_table, which is actually unused since r111532. While at it, make aac_if a pointer to the now const interface tables instead of copying them over to the softc (this alone already reduces the size of aac.ko on amd64 by ~1 KiB). - Remove redundant softc members. - Use DEVMETHOD_END. - Use NULL instead of 0 for pointers. - Remove redundant bzero(9)'ing of the softc. - Use pci_enable_busmaster(9) instead of duplicating it. - Remove redundant checking for PCIM_CMD_MEMEN (resource allocation will just fail). - Canonicalize the error messages in case of resource allocation failures. - Add support for using MSI instead of INTx, controllable via the tunable hw.aac.enable_msi (defaulting to on). END K 10 svn:author V 6 emaste K 8 svn:date V 27 2013-05-28T21:05:06.517822Z K 7 svn:log V 126 Remove the advertising clause from the Regents of the University of California's license, per the letter dated July 22, 1999. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-05-28T21:21:46.590699Z K 7 svn:log V 168 MFp4 @229085: Rearrange the code so we don't call ioctl(TIOCGWINSZ) if the -s option is given, as the result won't be used then. Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-05-28T21:25:28.994266Z K 7 svn:log V 863 MFp4 @229086: Make use of Capsicum to protect kdump(1), as it might be used to parse data from untrusted sources: - Sandbox kdump(1) using capability mode. - Limit stdin descriptor (where opened file is moved to) to only CAP_READ and CAP_FSTAT rights. - Limit stdout descriptor to only CAP_WRITE, CAP_FSTAT and CAP_IOCTL. Plus limit allowed ioctls to TIOCGETA only, which is needed for isatty() to work. - Limit stderr descriptor to only CAP_WRITE and CAP_FSTAT. In addition if the -s option is not given, grant CAP_IOCTL right, but allow for TIOCGWINSZ ioctl only, as we need screen width to dump the data. - Before entering capability mode call catopen("libc", NL_CAT_LOCALE), which opens message catalogs and caches data, so that strerror(3) and strsignal(3) can work in a sandbox. Sponsored by: The FreeBSD Foundation Discussed with: rwatson END K 10 svn:author V 5 peter K 8 svn:date V 27 2013-05-28T21:29:05.930577Z K 7 svn:log V 277 Temporarily revert r251058 - it breaks documented use of makeoptions including the tinderbox. http://tinderbox.freebsd.org/tinderbox-head-build-HEAD-i386-i386.full make: don't know how to make modules-all. Stop make: stopped in /obj/i386.i386/src/sys/PAE *** Error code 2 END K 10 svn:author V 3 gjb K 8 svn:date V 27 2013-05-28T21:57:55.494331Z K 7 svn:log V 97 Update comments to reflect use of svn/svnup to keep the src/ tree up to date. MFC after: 3 days END K 10 svn:author V 7 davidcs K 8 svn:date V 27 2013-05-28T22:00:37.714078Z K 7 svn:log V 148 Avoid reading back certain registers following a write. This is an optimization. Submitted by: David C Somayajulu Approved by: George Neville Neil END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-05-28T22:07:23.183438Z K 7 svn:log V 405 o Change the locking scheme for swp_bcount. It can now be accessed with a write lock on the object containing it OR with a read lock on the object containing it along with the swhash_mtx. o Remove some duplicate assertions for swap_pager_freespace() and swap_pager_unswapped() but keep the object locking references for documentation. Sponsored by: EMC / Isilon storage division Reviewed by: alc END K 10 svn:author V 6 jilles K 8 svn:date V 27 2013-05-28T22:07:31.725419Z K 7 svn:log V 240 sleep: Improve nanosleep() error handling: * Work around kernel bugs that cause a spurious [EINTR] return if a debugger (such as truss(1)) is attached. * Write an error message if an error other than [EINTR] occurs. PR: bin/178664 END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2013-05-28T22:36:01.854532Z K 7 svn:log V 460 Post-r248567, there were times when the client would return a truncated directory for some NFS servers. This turned out to be because the size of a directory reported by an NFS server can be smaller that the ufs-like directory created from the RPC XDR in the client. This patch fixes the problem by changing r248567 so that vnode_pager_setsize() is only done for regular files. Reported and tested by: hartmut.brandt@dlr.de Reviewed by: kib MFC after: 1 week END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-05-28T23:23:56.291440Z K 7 svn:log V 4 MFC END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-05-28T23:33:03.934155Z K 7 svn:log V 138 MFC: r249199 Unbreak ATA_NO_48BIT_DMA with ATA_CAM by treating 48-bit DMA as an optional property with PATA transport. Reviewed by: mav END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-05-28T23:38:06.214531Z K 7 svn:log V 4 MFC END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-05-28T23:43:11.654420Z K 7 svn:log V 65 MFC: r249234 Add some missing newlines and static declarations. END K 10 svn:author V 3 gjb K 8 svn:date V 27 2013-05-28T23:43:47.198675Z K 7 svn:log V 252 r245757 introduced warning output if update method is set to CVS_UPDATE or SUP_UPDATE. CVS exporter for head/ is turned off for nearly one month now. It is finally time to swing the ax at these update methods. Reviewed by: eadler MFC after: 1 month END K 10 svn:author V 3 gjb K 8 svn:date V 27 2013-05-28T23:46:13.344633Z K 7 svn:log V 72 Fix typo introduced in r251084. MFC after: 1 month X-MFC-With: r251084 END K 10 svn:author V 3 gjb K 8 svn:date V 27 2013-05-28T23:52:01.864849Z K 7 svn:log V 122 Remove references to CVS_UPDATE and SUP_UPDATE to catch up with r251084. MFC after: 1 month X-MFC-With: r251084, r251085 END K 10 svn:author V 8 bdrewery K 8 svn:date V 27 2013-05-29T00:18:12.322649Z K 7 svn:log V 204 MFH r250595: The HPN patch added a new BUG bit for SSH_BUG_LARGEWINDOW and the update to 6.1 added SSH_BUG_DYNAMIC_RPORT with the same value. Fix the HPN SSH_BUG_LARGEWINDOW bit so it is unique. END K 10 svn:author V 3 des K 8 svn:date V 27 2013-05-29T00:19:58.834933Z K 7 svn:log V 278 Revert a local change that sets the default for UsePrivilegeSeparation to "sandbox" instead of "yes". In sandbox mode, the privsep child is unable to load additional libraries and will therefore crash when trying to take advantage of crypto offloading on CPUs that support it. END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2013-05-29T00:32:49.353779Z K 7 svn:log V 210 Add a patch analygous to r248567, r248581, r251079 to the old NFS client to avoid the panic reported in the PR by doing the vnode_pager_setsize() call after unlocking the mutex. PR: 177335 MFC after: 2 weeks END K 10 svn:author V 6 adrian K 8 svn:date V 27 2013-05-29T01:40:13.651871Z K 7 svn:log V 48 Shuffle around the cleanup unpause calls a bit. END K 10 svn:author V 6 emaste K 8 svn:date V 27 2013-05-29T01:54:10.002964Z K 7 svn:log V 237 Remove clause 3 and 4 from TNF licenses Per the NetBSD Foundation statement Third parties are encouraged to change the license on any files which have a 4-clause license contributed to the NetBSD Foundation to a 2-clause license. END K 10 svn:author V 3 mav K 8 svn:date V 27 2013-05-29T04:09:32.463240Z K 7 svn:log V 80 MFC r250900: Fix NULL-dereference kernel panic in case of mps_attach() failure. END K 10 svn:author V 3 mav K 8 svn:date V 27 2013-05-29T04:10:57.092467Z K 7 svn:log V 80 MFC r250900: Fix NULL-dereference kernel panic in case of mps_attach() failure. END K 10 svn:author V 3 mav K 8 svn:date V 27 2013-05-29T04:12:53.368705Z K 7 svn:log V 161 MFC r250819: Fix vdc->Secondary_Element_Count metadata field access from 16 to 8 bit. In some cases it could cause kernel panic during failed drive replacement. END K 10 svn:author V 3 mav K 8 svn:date V 27 2013-05-29T04:14:41.352167Z K 7 svn:log V 161 MFC r250819: Fix vdc->Secondary_Element_Count metadata field access from 16 to 8 bit. In some cases it could cause kernel panic during failed drive replacement. END K 10 svn:author V 3 mav K 8 svn:date V 27 2013-05-29T04:17:05.793529Z K 7 svn:log V 321 MFC r250508: Disable sending Early R_OK on SiI3726/SiI3826 port multipliers. With "cached read" HDD testing and multiple ports busy on a SATA host controller, 3726/3826 PMP will very rarely drop a deferred R_OK that was intended for the host. Symptom will be all 5 drives under test will timeout, get reset, and recover. END K 10 svn:author V 3 mav K 8 svn:date V 27 2013-05-29T04:18:02.485554Z K 7 svn:log V 321 MFC r250508: Disable sending Early R_OK on SiI3726/SiI3826 port multipliers. With "cached read" HDD testing and multiple ports busy on a SATA host controller, 3726/3826 PMP will very rarely drop a deferred R_OK that was intended for the host. Symptom will be all 5 drives under test will timeout, get reset, and recover. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2013-05-29T04:21:42.103017Z K 7 svn:log V 125 Fix a false -> AH_FALSE. Now, why this hasn't tripped _any_ tinderbox builds yet, I dunno. It's been like this for a while. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2013-05-29T05:10:11.151704Z K 7 svn:log V 49 Turn the reassociate debug print into a DPRINTF. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-05-29T07:17:51.564041Z K 7 svn:log V 155 Release Steven Hartland (smh) from mentorship. He is ready to face the world on his own. Kids, they grow up so fast... :) Discussed with: avg (co-mentor) END K 10 svn:author V 3 des K 8 svn:date V 27 2013-05-29T12:40:28.836369Z K 7 svn:log V 201 Forced commit to note that the sandbox issue was not about libraries, as I erroneously stated in the commit log, but about a CRIOGET ioctl failing due to a preceding setrlimit(RLIMIT_NOFILES, 0) call. END K 10 svn:author V 5 crees K 8 svn:date V 27 2013-05-29T13:36:33.127343Z K 7 svn:log V 47 Add my entry. Approved by: bcr, gjb (mentors) END K 10 svn:author V 6 marcel K 8 svn:date V 27 2013-05-29T16:51:03.161542Z K 7 svn:log V 226 Don't assign the copyright to the FreeBSD foundation for the years this file is in FreeBSD. There's formality to this that hasn't happened and Juniper is perfectly fine with being the holder. Discussed with: eadler, imp, jhb END K 10 svn:author V 3 des K 8 svn:date V 27 2013-05-29T16:55:33.221575Z K 7 svn:log V 68 MF9 (r248915): remove harmless duplicate entry for VersionAddendum. END K 10 svn:author V 3 des K 8 svn:date V 27 2013-05-29T17:04:43.777267Z K 7 svn:log V 54 Add a "which" command which shows eligible revisions. END K 10 svn:author V 8 bdrewery K 8 svn:date V 27 2013-05-29T17:31:34.804512Z K 7 svn:log V 204 MFH r250595: The HPN patch added a new BUG bit for SSH_BUG_LARGEWINDOW and the update to 6.1 added SSH_BUG_DYNAMIC_RPORT with the same value. Fix the HPN SSH_BUG_LARGEWINDOW bit so it is unique. END K 10 svn:author V 5 crees K 8 svn:date V 27 2013-05-29T19:16:59.872909Z K 7 svn:log V 144 Make the instruction order for buildworld agree with UPDATING and the Handbook. Reviewed by: imp, bdrewery, netchild Approved by: gjb (mentor) END K 10 svn:author V 6 marcel K 8 svn:date V 27 2013-05-29T19:41:36.500893Z K 7 svn:log V 200 Modify atf::fs::path::get_process_helpers_path API to properly handle pathing with detail/ tests. Based on patch pushed upstream to ATF project. Obtained from: Garrett Cooper END K 10 svn:author V 6 eadler K 8 svn:date V 27 2013-05-29T20:36:51.930799Z K 7 svn:log V 136 Add support for tethering on the iPhone 4S PR: usb/179078 Submitted by: Christopher Sean Hilton MFC After: 1 week END K 10 svn:author V 5 markj K 8 svn:date V 27 2013-05-29T21:07:24.669618Z K 7 svn:log V 357 MFC r250545: Some filesystems (NFS in particular) do not fill out the d_type field when returning directory entries through readdir(3). In this case we need to obtain the file type ourselves; otherwise newsyslog -t will not be able to find archived log files and will fail to both delete old log files and to do interval-based rotations properly. END K 10 svn:author V 5 markj K 8 svn:date V 27 2013-05-29T21:08:23.294715Z K 7 svn:log V 357 MFC r250545: Some filesystems (NFS in particular) do not fill out the d_type field when returning directory entries through readdir(3). In this case we need to obtain the file type ourselves; otherwise newsyslog -t will not be able to find archived log files and will fail to both delete old log files and to do interval-based rotations properly. END K 10 svn:author V 5 markj K 8 svn:date V 27 2013-05-29T22:29:33.152270Z K 7 svn:log V 181 Revert my previous merge. There's a variable name difference between head and stable (dirfd vs. dir_fd) and I managed to get it wrong again when I did the MFC, even after I tested. END K 10 svn:author V 5 markj K 8 svn:date V 27 2013-05-29T22:30:29.739433Z K 7 svn:log V 181 Revert my previous merge. There's a variable name difference between head and stable (dirfd vs. dir_fd) and I managed to get it wrong again when I did the MFC, even after I tested. END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-05-29T23:56:49.460253Z K 7 svn:log V 70 Fix a typo in r249213; the second bus_if.h should have been isa_if.h. END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-05-30T00:11:22.876329Z K 7 svn:log V 115 - Remove pointless returns. - Make cm_data a void pointer and cm_flags unsigned as appropriate. MFC after: 3 days END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-05-30T00:22:07.092663Z K 7 svn:log V 150 Allow unmapped I/O via aacd(4). It shouldn't be too hard to add the same support for aacp(4), I'm lacking the necessary hardware for testing, though. END K 10 svn:author V 6 brooks K 8 svn:date V 27 2013-05-30T01:19:02.638621Z K 7 svn:log V 110 MFP4 @222836 Add support for partitioning CFI disks from FDT using geom_flashmap. Sponsored by: DARPA, AFRL END K 10 svn:author V 6 brooks K 8 svn:date V 27 2013-05-30T01:22:50.131433Z K 7 svn:log V 192 MFP4 @217311 Intel and Sharp flash power on with their blocks in a "locked" state. Unlocked them before attempting to perform an erase or write action and relock when the action is complete. END K 10 svn:author V 3 das K 8 svn:date V 27 2013-05-30T04:46:36.671334Z K 7 svn:log V 63 Basic tests for complex inverse trig and hyperbolic functions. END K 10 svn:author V 3 das K 8 svn:date V 27 2013-05-30T04:47:03.245231Z K 7 svn:log V 34 Fix some harmless bugs in a test. END K 10 svn:author V 3 das K 8 svn:date V 27 2013-05-30T04:49:26.867829Z K 7 svn:log V 198 I'm happy to finally commit stephen@'s implementations of cacos, cacosh, casin, casinh, catan, and catanh. Thanks to stephen@ and bde@ for working on these. Submitted by: stephen@ Reviewed by: bde END K 10 svn:author V 3 das K 8 svn:date V 27 2013-05-30T05:27:36.681639Z K 7 svn:log V 64 After many high-quality commits, release kargl@ from captivity. END K 10 svn:author V 2 ed K 8 svn:date V 27 2013-05-30T06:20:23.272369Z K 7 svn:log V 128 Use #ifdef instead of #if defined. This makes these tests a bit more consistent with the tests done at the bottom of the file. END K 10 svn:author V 2 ed K 8 svn:date V 27 2013-05-30T06:20:50.419160Z K 7 svn:log V 124 Add __sync_synchronize(). This function can easily be implemented on top of the mb() macro provided by . END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-05-30T06:41:26.012989Z K 7 svn:log V 32 Vendor import of libpcap 1.4.0. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-05-30T06:42:10.562339Z K 7 svn:log V 19 Tag libpcap 1.4.0. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-05-30T06:46:26.054390Z K 7 svn:log V 32 Vendor import of tcpdump 4.4.0. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-05-30T06:46:52.889300Z K 7 svn:log V 19 Tag tcpdump 4.4.0. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-05-30T08:02:00.244436Z K 7 svn:log V 40 MFV: libpcap 1.4.0. MFC after: 4 weeks END K 10 svn:author V 5 luigi K 8 svn:date V 27 2013-05-30T11:08:16.217054Z K 7 svn:log V 33 remove use of deprecated ioctl() END K 10 svn:author V 5 luigi K 8 svn:date V 27 2013-05-30T11:09:41.277376Z K 7 svn:log V 80 add a compile-time option to copy packets instead of doing the buffer swapping. END K 10 svn:author V 5 luigi K 8 svn:date V 27 2013-05-30T11:10:42.504663Z K 7 svn:log V 87 add support for rate-limiting in the sender (-R ...) Obtained from: Giuseppe Lettieri END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-05-30T12:16:55.041618Z K 7 svn:log V 335 - Merge from r249476: Ensure that PCI bus BUS_GET_DMA_TAG() method sees the actual PCI device which makes the request for DMA tag, instead of some descendant of the PCI device, by creating a pass-through trampoline. - Sprinkle const on tables. - Use NULL instead of 0 for pointers. - Take advantage of nitems(). MFC after: 1 week END K 10 svn:author V 3 des K 8 svn:date V 27 2013-05-30T12:25:37.654306Z K 7 svn:log V 59 MFH (r248617): retire the mislabeled ENABLE_SUID_SSH knob. END K 10 svn:author V 3 des K 8 svn:date V 27 2013-05-30T12:25:58.822009Z K 7 svn:log V 33 Pull in OpenSSH 6.2p2 from head. END K 10 svn:author V 4 bapt K 8 svn:date V 27 2013-05-30T13:10:38.357167Z K 7 svn:log V 22 Import byacc 20130304 END K 10 svn:author V 4 bapt K 8 svn:date V 27 2013-05-30T13:11:56.685481Z K 7 svn:log V 19 Tag byacc 20130304 END K 10 svn:author V 5 luigi K 8 svn:date V 27 2013-05-30T13:41:19.554262Z K 7 svn:log V 28 clarify usage of NETMAP_BUF END K 10 svn:author V 5 luigi K 8 svn:date V 27 2013-05-30T14:07:14.039189Z K 7 svn:log V 1019 Bring in a number of new features, mostly implemented by Michio Honda: - the VALE switch now support up to 254 destinations per switch, unicast or broadcast (multicast goes to all ports). - we can attach hw interfaces and the host stack to a VALE switch, which means we will be able to use it more or less as a native bridge (minor tweaks still necessary). A 'vale-ctl' program is supplied in tools/tools/netmap to attach/detach ports the switch, and list current configuration. - the lookup function in the VALE switch can be reassigned to something else, similar to the pf hooks. This will enable attaching the firewall, or other processing functions (e.g. in-kernel openvswitch) directly on the netmap port. The internal API used by device drivers does not change. Userspace applications should be recompiled because we bump NETMAP_API as we now use some fields in the struct nmreq that were previously ignored -- otherwise, data structures are the same. Manpages will be committed separately. END K 10 svn:author V 6 brooks K 8 svn:date V 27 2013-05-30T14:09:58.499558Z K 7 svn:log V 194 Always define INSTALL_DDIR and define it such that it contains no extra / characters rather than removing them later on. This should fix release builds. PR: conf/178963 Reviewed by: gjb, hrs END K 10 svn:author V 6 brooks K 8 svn:date V 27 2013-05-30T15:25:54.090684Z K 7 svn:log V 152 Restore (at least temporarily) SHARED=symlinks in the build includes stage of buildworld. This was accidentally included in r251140. Reported by: jhb END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-05-30T16:09:56.164482Z K 7 svn:log V 383 - As a follow-up to r247565, make firmware images that do not require patching at runtime actually const. - Remove pointless softc members by employing the corresponding constants directly. - Remove pointless returns. - Remove unnecessary inclusion of opt_device_polling.h. - Replace an outdated and now bogus comment in bce_tick() with the appropriate one. MFC after: 1 week END K 10 svn:author V 4 bapt K 8 svn:date V 27 2013-05-30T16:16:28.566543Z K 7 svn:log V 25 Update byacc to 20130304 END K 10 svn:author V 6 scottl K 8 svn:date V 27 2013-05-30T16:51:48.435170Z K 7 svn:log V 636 MFC r248282, in a modified fashion. From the original changelog: Add currently unused flag argument to the cluster_read(), cluster_write() and cluster_wbuild() functions. The flags to be allowed are a subset of the GB_* flags for getblk(). This merge adds a cluster_*_gb() API variant instead of changing the ABI with an added argument to the existing API. Most API consumers that were changed in the original rev have been left un-changed in this merge to reduce churn. The mergeinfo is recorded though for future merging convenience. This is effectively a no-op for the moment. Submitted by: kib, FF Obtained from: Netflix END K 10 svn:author V 6 scottl K 8 svn:date V 27 2013-05-30T17:17:22.434011Z K 7 svn:log V 350 MFC r248504: Add a convenience macro bread_gb() to wrap a call to breadn_flags(). Comparing with bread(), it adds an argument to pass the flags to getblk(). The API implementation of bread() and friends is different in FreeBSD 9, so this merge is a little more complicated than the original commit. Submitted by: kib, FF Obtained from: Netflix END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-05-30T17:24:36.547162Z K 7 svn:log V 767 - Do supply arguments as pointers to bce_get_{pg,rx}_buf() that are not altered or actually needed there any longer. - Honor errors passed to the DMA mapping callbacks. - In bce_get_rx_buf(), do not reserve stack space for more DMA segments than actually necessary. - In bce_get_pg_buf(), take advantage of bus_dmamap_load_mbuf_sg(9). - In bce_rx_intr(), remove a pointless check for an empty mbuf pointer which can only happen in case of a severe programming error. Moreover, recovering from that situation would require way more actions with header splitting enabled (which it is by default). - Fix VLAN tagging in the RX path; do not attach the VLAN tag twice if the firmware has been told to keep it. [1] Obtained from: OpenBSD [1] MFC after: 1 week END K 10 svn:author V 3 jhb K 8 svn:date V 27 2013-05-30T19:14:34.685856Z K 7 svn:log V 1728 MFC 246417,247116,248584: Rework the handling of stop signals in the NFS client. The changes in 195702, 195703, and 195821 prevented a thread from suspending while holding locks inside of NFS by forcing the thread to fail sleeps with EINTR or ERESTART but defer the thread suspension to the user boundary. However, this had the effect that stopping a process during an NFS request could abort the request and trigger EINTR errors that were visible to userland processes (previously the thread would have suspended and completed the request once it was resumed). This change instead effectively masks stop signals while in the NFS client. It uses the existing TDF_SBDRY flag to effect this since SIGSTOP cannot be masked directly. Instead of setting PBDRY on individual sleeps, change the VFS_*() and VOP_*() methods to defer stop signals for filesystems which request this behavior via a new VFCF_SBDRY flag. Note that this has to be a VFC flag rather than a MNTK flag so that it works properly with VFS_MOUNT() when the mount is not yet fully constructed. For now, only the NFS clients set this new flag in VFS_SET(). A few other related changes: - Add an assertion to ensure that TDF_SBDRY doesn't leak to userland. - When a lookup request uses VOP_READLINK() to follow a symlink, mark the request as being on behalf of the thread performing the lookup (cnp_thread) rather than using a NULL thread pointer. This causes NFS to properly handle signals during this VOP on an interruptible mount. - Ignore thread suspend requests due to SIGSTOP if stop signals are currently deferred. This can occur if a process is stopped via SIGSTOP while a thread is running or runnable but before it has set TDF_SBDRY. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2013-05-30T19:24:29.007620Z K 7 svn:log V 1728 MFC 246417,247116,248584: Rework the handling of stop signals in the NFS client. The changes in 195702, 195703, and 195821 prevented a thread from suspending while holding locks inside of NFS by forcing the thread to fail sleeps with EINTR or ERESTART but defer the thread suspension to the user boundary. However, this had the effect that stopping a process during an NFS request could abort the request and trigger EINTR errors that were visible to userland processes (previously the thread would have suspended and completed the request once it was resumed). This change instead effectively masks stop signals while in the NFS client. It uses the existing TDF_SBDRY flag to effect this since SIGSTOP cannot be masked directly. Instead of setting PBDRY on individual sleeps, change the VFS_*() and VOP_*() methods to defer stop signals for filesystems which request this behavior via a new VFCF_SBDRY flag. Note that this has to be a VFC flag rather than a MNTK flag so that it works properly with VFS_MOUNT() when the mount is not yet fully constructed. For now, only the NFS clients set this new flag in VFS_SET(). A few other related changes: - Add an assertion to ensure that TDF_SBDRY doesn't leak to userland. - When a lookup request uses VOP_READLINK() to follow a symlink, mark the request as being on behalf of the thread performing the lookup (cnp_thread) rather than using a NULL thread pointer. This causes NFS to properly handle signals during this VOP on an interruptible mount. - Ignore thread suspend requests due to SIGSTOP if stop signals are currently deferred. This can occur if a process is stopped via SIGSTOP while a thread is running or runnable but before it has set TDF_SBDRY. END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-05-30T19:51:33.968824Z K 7 svn:log V 135 Assert that OBJ_TMPFS flag on the vm object for the tmpfs node is cleared when the tmpfs node is going away. Tested by: bdrewery, pho END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-05-30T19:53:31.190789Z K 7 svn:log V 142 Remove the capitalization in the assertion message. Print the address of the object to get useful information from optimizated kernels dump. END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-05-30T20:00:19.816635Z K 7 svn:log V 372 After the object lock was dropped, the object' reference count could change. Retest the ref_count and return from the function to not execute the further code which assumes that ref_count == 1 if it is not. Also, do not leak vnode lock if other thread cleared OBJ_TMPFS flag meantime. Reported by: bdrewery Tested by: bdrewery, pho Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 jhb K 8 svn:date V 27 2013-05-30T20:09:21.386733Z K 7 svn:log V 54 MFC 249567: mdoc: remove superfluous paragraph macro. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2013-05-30T20:11:31.866297Z K 7 svn:log V 98 MFC 249566-249567: Document that sem_wait() can fail with EINTR if it is interrupted by a signal. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-05-30T20:40:16.670123Z K 7 svn:log V 16 MFC: less v458. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-05-30T20:42:51.015263Z K 7 svn:log V 16 MFC: less v458. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-05-30T20:45:57.556837Z K 7 svn:log V 67 MFC r250666: Constify parameters, no functional or binary change. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-05-30T20:46:56.264332Z K 7 svn:log V 40 MFC r250718: Constify string pointers. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-05-30T20:51:22.174197Z K 7 svn:log V 40 MFV: tcpdump 4.4.0. MFC after: 4 weeks END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-05-30T20:54:17.738514Z K 7 svn:log V 312 - Checking for spurious interrupts is only necessary when using INTx. Actually, this may be further optimized for controller variants supporting one-shot MSIs but I'm lacking the necessary hardware for testing. - Add some missing synchronization of the statistics and status DMA maps. MFC after: 1 week END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-05-30T21:24:33.870298Z K 7 svn:log V 106 Convert Makefile to have only one file for each line, while I'm there, sort SRCS to ease future upgrades. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-05-30T21:25:55.745041Z K 7 svn:log V 82 Diff reduction against tcpdump revision 949a22064d3534eddeb8aa2b9c36a50e45fe16fa. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-05-30T21:49:43.118357Z K 7 svn:log V 105 MFC r250050: Add missing braces. Submitted by: Sascha Wildner Obtained from: DragonFly END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-05-30T21:50:25.075065Z K 7 svn:log V 105 MFC r250050: Add missing braces. Submitted by: Sascha Wildner Obtained from: DragonFly END K 10 svn:author V 6 scottl K 8 svn:date V 27 2013-05-30T21:54:48.537283Z K 7 svn:log V 174 MFC 241492, 241588, 241589, 241590, 241592, 241593, 241603, 241605 Modernize and lock the aha, ahb, adv, adw, bt, and dpt drivers. Submitted by: jhb Obtained from: Netflix END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-05-30T21:56:53.494746Z K 7 svn:log V 42 MFC r241031 (des): Slight stylification. END K 10 svn:author V 5 markj K 8 svn:date V 27 2013-05-30T21:57:40.253724Z K 7 svn:log V 476 Add macros which allow one to define SDT probes with six or seven arguments; they are needed when porting some of the Solaris providers (ip, iscsi, and tcp in particular). dtrace_probe() only takes five arguments from the probe site, so we need to add the appropriate cast to allow for more than five arguments. The extra arguments are later copied out of dtrace_probe()'s stack frame by dtrace_getarg() (or the provider-specific getarg method) as needed. MFC after: 1 week END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-05-30T21:59:29.846971Z K 7 svn:log V 258 If the -r option is given we cannot enter capability mode. The option tells kdump to convert numeric UIDs and GIDs into user and group names plus to convert times and dates into locallized versions. This all needs opening various files at various occasions. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-05-30T22:01:06.696835Z K 7 svn:log V 160 MFC r249035: Replace access to /dev/random with the kernel pseudo-random number source sysctl(KERN_ARND) and remove the fallback code. Obtained from: OpenBSD END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-05-31T00:21:05.967892Z K 7 svn:log V 21 Remove unused files. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-05-31T00:31:45.708435Z K 7 svn:log V 83 Revert files with no local changes to their vendor state to ease future upgrading. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2013-05-31T00:43:41.773560Z K 7 svn:log V 359 - Convert the bufobj lock to rwlock. - Use a shared bufobj lock in getblk() and inmem(). - Convert softdep's lk to rwlock to match the bufobj lock. - Move INFREECNT to b_flags and protect it with the buf lock. - Remove unnecessary locking around bremfree() and BKGRDINPROG. Sponsored by: EMC / Isilon Storage Division Discussed with: mckusick, kib, mdf END