éH239912 88 240 467 532 737 737 449 449 153 564 564 243 1402 371 367 268 122 174 291 355 137 137 99 204 158 213 238 139 298 705 229 151 226 315 450 163 291 148 145 107 363 121 105 1000 438 291 411 111 354 434 197 507 2005 206 176 571 105 121 121 109 198 239 127 155 121 232 232 131 131 554 554 367 367 175 175 183 178 381 951 149 605 183 190 154 204 138 396 185 1091 K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-08-30T17:37:01.607984Z K 7 svn:log V 147 Use callout(9) rather than timeout(9). Note that the periodic timer in amr(4) is never started, so this should be even more of a NOP than normal. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-08-30T17:47:39.957720Z K 7 svn:log V 374 Attach interrupt handlers during attach instead of during the first time the interface is brought up. Without this, the boot time interrupt round-robin assignment does not think the allocated interrupt resources are active and leaves them assigned to CPU 0. While here, add descriptive tags to each interrupt handler when MSI-X is used. Reviewed by: np MFC after: 1 week END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-08-30T18:03:03.171798Z K 7 svn:log V 439 MFC 238311: Add a clts() wrapper around the 'clts' instruction to on x86 and use that to implement stop_emulating() in the fpu/npx code. Reimplement start_emulating() in the non-XEN case by using load_cr0() and rcr0() instead of the 'lmsw' and 'smsw' instructions. Intel explicitly discourages the use of 'lmsw' and 'smsw' on 80386 and later processors in the description of these instructions in Volume 2 of the ADM. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-08-30T18:29:49.691104Z K 7 svn:log V 644 MFC 238424: Make the interval timings for EVFILT_TIMER more accurate. tvtohz() always adds an extra tick to account for the current partial clock tick. However, that is not appropriate for a repeating timer when the exact tvtohz() value should be used for subsequent intervals. Fix repeating callouts for EVFILT_TIMER by subtracting 1 tick from the tvtohz() result similar to the fix used in realitexpire() for interval timers. While here, update a few comments to note that if the EVFILT_TIMER code were to move out of kern_event.c, it should move to kern_time.c (where the interval timer code it mimics lives) rather than kern_timeout.c. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-08-30T18:30:08.194874Z K 7 svn:log V 644 MFC 238424: Make the interval timings for EVFILT_TIMER more accurate. tvtohz() always adds an extra tick to account for the current partial clock tick. However, that is not appropriate for a repeating timer when the exact tvtohz() value should be used for subsequent intervals. Fix repeating callouts for EVFILT_TIMER by subtracting 1 tick from the tvtohz() result similar to the fix used in realitexpire() for interval timers. While here, update a few comments to note that if the EVFILT_TIMER code were to move out of kern_event.c, it should move to kern_time.c (where the interval timer code it mimics lives) rather than kern_timeout.c. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-08-30T19:46:38.254540Z K 7 svn:log V 356 MFC 239103: Explicitly enable busmastering on PCI-PCI bridges. Transactions initiated on the secondary side of a bridge will not be propagated to the primary bus unless this is enabled. Busmastering is not enabled by default (we have relied on firmware to set this bit to date). The OS needs to set it for any bridges not configured by system firmware. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-08-30T19:47:15.820670Z K 7 svn:log V 356 MFC 239103: Explicitly enable busmastering on PCI-PCI bridges. Transactions initiated on the secondary side of a bridge will not be propagated to the primary bus unless this is enabled. Busmastering is not enabled by default (we have relied on firmware to set this bit to date). The OS needs to set it for any bridges not configured by system firmware. END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-08-30T20:31:53.803637Z K 7 svn:log V 59 Add PrimeCell UART (PL011) driver Obtained from: Semihalf END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-08-30T20:42:42.766504Z K 7 svn:log V 471 MFC 239128: Don't try to stop the IPMI watchdog timer if it is not running. Starting or stopping the IPMI watchdog is rather expensive with the current implementation as all IPMI requests are bounced via thread. This is not viable during shutdown or dumps, and this avoids headache in the common case that the watchdog is not enabled. The IPMI watchdog should probably be reworked to not use a separate thread to fix this in the case when the watchdog timer is enabled. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-08-30T20:43:01.110180Z K 7 svn:log V 471 MFC 239128: Don't try to stop the IPMI watchdog timer if it is not running. Starting or stopping the IPMI watchdog is rather expensive with the current implementation as all IPMI requests are bounced via thread. This is not viable during shutdown or dumps, and this avoids headache in the common case that the watchdog is not enabled. The IPMI watchdog should probably be reworked to not use a separate thread to fix this in the case when the watchdog timer is enabled. END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-08-30T20:59:37.164116Z K 7 svn:log V 148 Add barebone Raspberry Pi port. Supported parts: - Interrupts controller - Watchdog - System timer - Framebuffer (hardcoded resolution/bpp) END K 10 svn:author V 7 attilio K 8 svn:date V 27 2012-08-30T21:22:47.091979Z K 7 svn:log V 1304 Post r222812 KTR_CPUMASK started being initialized only as a tunable handler and not more statically. Unfortunately, it seems that this is not ideal for new platform bringup and boot low level development (which needs ktr_cpumask to be effective before tunables can be setup). Because of this, add a way to statically initialize cpusets, by passing an list of initializers, divided by commas. Also, provide a way to enforce an all-set mask, for above mentioned initializers. This imposes some differences on how KTR_CPUMASK is setup now as a kernel option, and in particular this makes the words specifications backward wrt. what is currently in -CURRENT. In order to avoid mismatches between KTR_CPUMASK definition and other way to setup the mask (tunable, sysctl) and to print it, change the ordering how cpusetobj_print() and cpusetobj_scan() acquire the words belonging to the set. Please give a look to sys/conf/NOTES in order to understand how the new format is supposed to work. Also, ktr manpages will be updated shortly by gjb which volountereed for this. This patch won't be merged because it changes a POLA (at least from the theoretical standpoint) and this is however a patch that proves to be effective only in development environments. Requested by: rpaulo Reviewed by: jeff, rpaulo END K 10 svn:author V 7 attilio K 8 svn:date V 27 2012-08-30T22:05:51.136160Z K 7 svn:log V 274 Fixup to r238693: even if vfs_setscanopt() will fail, we will always return 0 forcing a wrong recognition of the success of the operation. Also, we expect exactly 1 object to be scanned, so if it is more than one also fail the operation. Reported by: Gustau Perez i Querol END K 10 svn:author V 7 attilio K 8 svn:date V 27 2012-08-30T22:15:51.741479Z K 7 svn:log V 270 The current fifo support is completely broken. As this is not really a needed feature in several filesystems and it requires quite a bit of work to get fixed, remove the completely half-backed support (which can of course results in panic). In collabouration with: pho END K 10 svn:author V 7 attilio K 8 svn:date V 27 2012-08-30T22:18:25.159341Z K 7 svn:log V 171 There is no need to bump nlookup when links are created. This can, instead, bring to miscalculation in nlookup counters which will dump ntfs. In collabouration with: pho END K 10 svn:author V 3 des K 8 svn:date V 27 2012-08-30T22:56:32.430008Z K 7 svn:log V 30 The error syntax has changed. END K 10 svn:author V 8 jhibbits K 8 svn:date V 27 2012-08-30T23:50:11.298779Z K 7 svn:log V 77 MFC r239027 Add backlight support for nVidia-based PowerBooks/iBooks/iMacs. END K 10 svn:author V 8 jhibbits K 8 svn:date V 27 2012-08-30T23:54:49.699042Z K 7 svn:log V 193 MFC r239548: phandle_t is unsigned, and OF_finddevice() returns (phandle_t)(-1) on failure, so check for that instead of 0. While here, provide a better description for ATI backlight driver. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2012-08-31T00:11:30.488476Z K 7 svn:log V 258 Mimic Linux behaviour and disable signals delivery for fuse libs user while waiting for deamon notifications. Otherwise the fuse libs user gets interrupted by spourious signals sent by the deamon. In collaboration with: pho Tested by: Gustau Perez i Querol END K 10 svn:author V 7 delphij K 8 svn:date V 27 2012-08-31T00:33:09.191750Z K 7 svn:log V 41 MFC r238964: Teach md5(1) about sha512. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2012-08-31T00:34:48.750622Z K 7 svn:log V 41 MFC r238964: Teach md5(1) about sha512. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2012-08-31T00:39:04.609961Z K 7 svn:log V 4 MFC END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-08-31T02:59:44.648057Z K 7 svn:log V 111 Replace all uses of the vm page queues lock by a r/w lock that is private to this pmap. Tested by: Ian Lepore END K 10 svn:author V 5 maxim K 8 svn:date V 27 2012-08-31T06:34:46.851311Z K 7 svn:log V 64 MFC r230617: allow to build ifmcstat(8) without kvm(3) support. END K 10 svn:author V 5 maxim K 8 svn:date V 27 2012-08-31T06:38:43.684447Z K 7 svn:log V 118 MFC r228700: convert IPv6 read-only stats sysctls to the read-write ones. Teach netstat(1) -z to reset these sysctls. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2012-08-31T06:42:51.852457Z K 7 svn:log V 141 Revert 239931 and 239932 until I figure out why it breaks on stable branches but not on -HEAD. Noticed by: tinderbox Pointy hat to: delphij END K 10 svn:author V 2 ed K 8 svn:date V 27 2012-08-31T08:48:53.851872Z K 7 svn:log V 48 Use better variable naming. MFC after: 1 month END K 10 svn:author V 6 scottl K 8 svn:date V 27 2012-08-31T09:42:46.916940Z K 7 svn:log V 202 Essentially revert r239912. The amr_periodic function hadn't been armed in over 10 years and was dead code; the previous revision exposed it as such to CLANG. The solution is to cull the whole thing. END K 10 svn:author V 6 scottl K 8 svn:date V 27 2012-08-31T10:07:38.115179Z K 7 svn:log V 609 Heavily optimize the case of small RX packets of 160 bytes or less. For this case, allocate a plain mbuf and copy the frame into it, then send the copy up the stack, leaving the original mbuf+cluster in place in the receive ring for immediate re-use. This saves a trip through 2 of the 3 zones of the compound mbuf allocator, a trip through busdma, and a trip through the 1 of the 3 mbuf destructors. For our load at Netflix, this can lower CPU consumption by as much as 20%. The copy algorithm is based on investigative work from Luigi Rizzo earlier in the year. Reviewed by: jfv Obtained from: Netflix END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-08-31T11:15:01.181721Z K 7 svn:log V 133 Add a global MD macro for the VIS block size instead of duplicating it and using magic values all over the place. MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-08-31T11:20:12.787852Z K 7 svn:log V 59 MFC r238450: Add support for the XSAVEOPT instruction use. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-08-31T11:29:39.942017Z K 7 svn:log V 133 MFC r238597: Add stmxcsr. MFC r238914, only amd64 part, do not record mi: Change (unused) prototype for stmxcsr() to match reality. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-08-31T11:33:54.540463Z K 7 svn:log V 222 MFC r238598: On AMD64, provide siginfo.si_code for floating point errors when error occurs using the SSE math processor. Update comments describing the handling of the exception status bits in coprocessors control words. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-08-31T11:48:04.896834Z K 7 svn:log V 357 MFC r238623: Introduce curpcb magic variable, similar to curthread, which is MD amd64. It is implemented as __pure2 inline with non-volatile asm read from pcpu, which allows a compiler to cache its results. Convert most PCPU_GET(pcb) and curthread->td_pcb accesses into curpcb. MFC r238723: Forcibly shut up clang warning about NULL pointer dereference. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-08-31T12:01:35.574382Z K 7 svn:log V 71 MFC r238668: Stop clearing x87 exceptions in the #MF handler on amd64. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-08-31T12:04:29.545155Z K 7 svn:log V 198 MFC r238669: Force clean FPU state in PCB user FPU save area by performing getfpuregs(9) before accessing user FPU save area in ptrace_machdep.c for PT_I386_{GET,SET}XMMREGS and PT_{GET,SET}XSTATE. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-08-31T12:06:32.772956Z K 7 svn:log V 56 MFC r238670: Stop caching curpcb in the local variable. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-08-31T12:08:31.046327Z K 7 svn:log V 53 MFC r238671: Constently use 2-space sentence breaks. END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2012-08-31T14:06:33.232174Z K 7 svn:log V 12 IFC @239949 END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-08-31T14:35:01.029667Z K 7 svn:log V 270 Add a -h flag similar to the -h flag for ln to force mv(1) to treat a symbolic link to a directory for the target as a symbolic link instead of a directory. This makes it possible to atomically update a symbolic link using rename(). Reviewed by: gj MFC after: 2 weeks END K 10 svn:author V 4 joel K 8 svn:date V 27 2012-08-31T16:57:16.926694Z K 7 svn:log V 28 Remove trailing whitespace. END K 10 svn:author V 4 joel K 8 svn:date V 27 2012-08-31T17:18:41.308324Z K 7 svn:log V 12 Mdoc fixes. END K 10 svn:author V 2 ed K 8 svn:date V 27 2012-08-31T18:26:39.455232Z K 7 svn:log V 908 Relicense ac(8). Though the license of the original ac(8) source code provides many liberties, we are already somewhat violating it. The license requires us to clearly comment any modifications to the source code, as the original authors of course do not want to get bug reports for modified versions of ac(8). This is something we have not done consistently. The need for such a license clause has become less over time. It is very unlikely that end users will contact the original authors, as the copyright is from 1994. I contacted both the copyright holders. They responded in a timely fashion and were more than willing to relicense it to a 2-clause BSD license. To address any concerns about bug reports going to the original authors instead of me, add my own name and email address to the copyright statements as well. MFC after: 1 month Special thanks to: Christopher Demetriou and Simon Gerraty END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-08-31T20:54:30.036152Z K 7 svn:log V 345 Add common rules for building firmware object files (NORMAL_FW to run uudecode, and NORMAL_FWO to use ld to build the .fwo file) and use those instead of explicit ld/uudecode invocations in sys/conf/files. Apart from increasing readability, this makes it possible to adjust the flags used for firmware objects in one place. MFC after: 2 weeks END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-08-31T21:10:38.631075Z K 7 svn:log V 198 The implied source variable (.IMPSRC) didn't actually work in my previous commit. Change this to use .ALLSRC instead, but be careful to only use the .fw file for NORMAL_FWO to ignore opt_global.h. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-08-31T21:27:23.904974Z K 7 svn:log V 318 Similar to how r171350 fixed linking of kernel modules containing firmware objects by adding --no-warn-mismatch to the linker flags, add --no-warn-mismatch when linking firmware objects (*.fwo) as well as to the link of the main kernel file. This permits firmware modules to be statically linked into an ia64 kernel. END K 10 svn:author V 4 joel K 8 svn:date V 27 2012-08-31T21:44:12.956896Z K 7 svn:log V 18 Minor mdoc fixes. END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-08-31T21:45:49.444178Z K 7 svn:log V 261 Work around several warnings from clang in the xfs filesystem, when linking it statically into the kernel. With our gcc in base there are no warnings, so also remove the WERROR= from the module makefile. Noted by: Eir Nym MFC after: 1 week END K 10 svn:author V 2 ed K 8 svn:date V 27 2012-08-31T22:22:14.840547Z K 7 svn:log V 342 Properly enable Clang-style atomics when available. In addition to testing against cxx_atomic, we must check c_atomic. The former is only set when building C++ code. Also use __has_extension instead of __has_feature. This allows us to use the atomics outside of C11. Reported by: Ariane van der Steldt PR: threads/170073 END K 10 svn:author V 2 ed K 8 svn:date V 27 2012-08-31T22:37:08.701631Z K 7 svn:log V 105 Also relicense the ac(8) man page. MFC after: 1 month Discussed with: Simon Gerraty and Chris Demetriou END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-08-31T23:28:41.027158Z K 7 svn:log V 414 Fix a twelve year old bug in readelf: when process_dynamic_segment() encounters a DT_RUNPATH entry, the global dynamic_info[] array is overrun, causing some other global variable to be overwritten. In my testcase, this was the section_headers variable, leading to segfaults or jemalloc assertions when it was freed later on. Thanks to Koop Mast for providing samples of a few "bad" .so files. MFC after: 1 week END K 10 svn:author V 3 pfg K 8 svn:date V 27 2012-09-01T02:56:17.572387Z K 7 svn:log V 1911 Bring some changes from Bull's NFSv4 libtirpc implementation. We especifically ignored the glibc compatibility changes but this should help interaction with Solaris and Linux. ____ Fixed infinite loop in svc_run() author Steve Dickson Tue, 10 Jun 2008 12:35:52 -0500 (13:35 -0400) Fixed infinite loop in svc_run() ____ __rpc_taddr2uaddr_af() assumes the netbuf to always have a non-zero data. This is a bad assumption and can lead to a seg-fault. This patch adds a check for zero length and returns NULL when found. author Steve Dickson Mon, 27 Oct 2008 11:46:54 -0500 (12:46 -0400) ____ Changed clnt_spcreateerror() to return clearer and more concise error messages. author Steve Dickson Thu, 20 Nov 2008 08:55:31 -0500 (08:55 -0500) ____ Converted all uid and gid variables of the type uid_t and gid_t. author Steve Dickson Wed, 28 Jan 2009 12:44:46 -0500 (12:44 -0500) ____ libtirpc: set r_netid and r_owner in __rpcb_findaddr_timed These fields in the rpcbind GETADDR call are being passed uninitialized to CLNT_CALL. In the case of x86_64 at least, this usually leads to a segfault. On x86, it sometimes causes segfaults and other times causes garbage to be sent on the wire. rpcbind generally ignores the r_owner field for calls that come in over the wire, so it really doesn't matter what we send in that slot. We just need to send something. The reference implementation from Sun seems to send a blank string. Have ours follow suit. author Jeff Layton Fri, 13 Mar 2009 11:44:16 -0500 (12:44 -0400) ____ libtirpc: be sure to free cl_netid and cl_tp When creating a client with clnt_tli_create, it uses strdup to copy strings for these fields if nconf is passed in. clnt_dg_destroy frees these strings already. Make sure clnt_vc_destroy frees them in the same way. author Jeff Layton Fri, 13 Mar 2009 11:47:36 -0500 (12:47 -0400) Obtained from: Bull GNU/Linux NFSv4 Project MFC after: 3 weeks END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-09-01T03:46:28.413946Z K 7 svn:log V 113 Introduce a new software PTE flag that indicates whether the mapping is for a managed page. Tested by: jchandra END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-09-01T05:35:48.627536Z K 7 svn:log V 84 MFC r239375: Add drm and i915 ioctl translations for 32 bit process on 64 bit host. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-09-01T05:43:30.321910Z K 7 svn:log V 475 Fix the PHY / CRC error bug in the AR5212 HAL, which apparently also pops up on (at least) the AR5413. The 30 second summary - if a CRC error frame comes in during PHY error processing, that CRC bit will be set for all subsequent frames until a non-CRC error frame is processed. So to allow for accurate PHY error processing (Radar, and ANI on the AR5212 HAL chips) just tag the frame as being both CRC and PHY - let the driver decide what to do with it. PR: kern/169362 END K 10 svn:author V 4 joel K 8 svn:date V 27 2012-09-01T06:07:27.702638Z K 7 svn:log V 12 Mdoc fixes. END K 10 svn:author V 4 joel K 8 svn:date V 27 2012-09-01T06:12:14.876610Z K 7 svn:log V 28 Remove trailing whitespace. END K 10 svn:author V 4 joel K 8 svn:date V 27 2012-09-01T06:23:13.138341Z K 7 svn:log V 28 Remove trailing whitespace. END K 10 svn:author V 4 joel K 8 svn:date V 27 2012-09-01T07:11:25.789897Z K 7 svn:log V 16 Minor mdoc fix. END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2012-09-01T07:35:16.759850Z K 7 svn:log V 102 The dtnfsclient module dependency should only be added if the old NFS client support was compiled in. END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2012-09-01T08:14:21.112015Z K 7 svn:log V 143 Finish porting execsnoop to FreeBSD. This includes replacing the zonename with a jail ID and removing the project ID from the list of options. END K 10 svn:author V 2 ed K 8 svn:date V 27 2012-09-01T08:45:19.468494Z K 7 svn:log V 36 Fix whitespace. MFC after: 1 month END K 10 svn:author V 2 ed K 8 svn:date V 27 2012-09-01T08:45:58.755501Z K 7 svn:log V 64 While there, remove an unneeded blank line. MFC after: 1 month END K 10 svn:author V 7 trociny K 8 svn:date V 27 2012-09-01T09:55:35.732354Z K 7 svn:log V 25 MFC r238086: Fix style. END K 10 svn:author V 7 trociny K 8 svn:date V 27 2012-09-01T09:58:09.266278Z K 7 svn:log V 135 MFC r238084: Don't check for ifp != NULL before KASSERT, as ifp may not be NULL here (it is dereferenced below). Discussed with: jhb END K 10 svn:author V 7 trociny K 8 svn:date V 27 2012-09-01T10:00:37.105436Z K 7 svn:log V 135 MFC r238084: Don't check for ifp != NULL before KASSERT, as ifp may not be NULL here (it is dereferenced below). Discussed with: jhb END K 10 svn:author V 7 trociny K 8 svn:date V 27 2012-09-01T10:18:09.049992Z K 7 svn:log V 35 MFC r238085: Fix KASSERT message. END K 10 svn:author V 7 trociny K 8 svn:date V 27 2012-09-01T10:21:56.135487Z K 7 svn:log V 35 MFC r238085: Fix KASSERT message. END K 10 svn:author V 7 trociny K 8 svn:date V 27 2012-09-01T10:27:18.158743Z K 7 svn:log V 457 MFC r238309: In epair_clone_destroy(), when destroying the second half, we have to switch to its vnet before calling ether_ifdetach(). Otherwise if the second half resides in a different vnet, if_detach() silently fails leaving a stale pointer in V_ifnet list, and the system crashes trying to access this pointer later. Another solution could be not to allow to destroy epair unless both ends are in the home vnet. Discussed with: bz Tested by: delphij END K 10 svn:author V 7 trociny K 8 svn:date V 27 2012-09-01T10:28:20.716885Z K 7 svn:log V 457 MFC r238309: In epair_clone_destroy(), when destroying the second half, we have to switch to its vnet before calling ether_ifdetach(). Otherwise if the second half resides in a different vnet, if_detach() silently fails leaving a stale pointer in V_ifnet list, and the system crashes trying to access this pointer later. Another solution could be not to allow to destroy epair unless both ends are in the home vnet. Discussed with: bz Tested by: delphij END K 10 svn:author V 7 trociny K 8 svn:date V 27 2012-09-01T10:32:40.249857Z K 7 svn:log V 270 MFC r239075: In tcp timers, check INP_DROPPED flag a little later, after callout_deactivate(), so if INP_DROPPED is set we return with the timer active flag cleared. For me this fixes negative keep timer values reported by `netstat -x' for connections in CLOSE state. END K 10 svn:author V 7 trociny K 8 svn:date V 27 2012-09-01T10:33:53.961332Z K 7 svn:log V 270 MFC r239075: In tcp timers, check INP_DROPPED flag a little later, after callout_deactivate(), so if INP_DROPPED is set we return with the timer active flag cleared. For me this fixes negative keep timer values reported by `netstat -x' for connections in CLOSE state. END K 10 svn:author V 7 trociny K 8 svn:date V 27 2012-09-01T10:37:41.330729Z K 7 svn:log V 79 MFC r239383: In ip6_ctloutput() guard inp_flags modifications with INP_WLOCK. END K 10 svn:author V 7 trociny K 8 svn:date V 27 2012-09-01T10:39:01.229182Z K 7 svn:log V 79 MFC r239383: In ip6_ctloutput() guard inp_flags modifications with INP_WLOCK. END K 10 svn:author V 2 ed K 8 svn:date V 27 2012-09-01T10:48:38.015053Z K 7 svn:log V 92 Remove unneeded struct timezone. We're only interested in a timestamp -- not the timezone. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2012-09-01T10:52:19.114550Z K 7 svn:log V 86 Allow to pass providers with /dev/ prefix to g_provider_by_name(). MFC after: 3 days END K 10 svn:author V 2 ed K 8 svn:date V 27 2012-09-01T10:56:15.207848Z K 7 svn:log V 289 Rework time handling. After I made the previous commit, I noticed the code does some things it shouldn't. It casts a struct timeval to a time_t, assuming tv_sec is the first member. Also, we are not interested in microseconds, so it is better to just call time(NULL). MFC after: 1 month END K 10 svn:author V 3 pjd K 8 svn:date V 27 2012-09-01T11:21:56.847278Z K 7 svn:log V 858 Fix panic in procdesc that can be triggered in the following scenario: 1. Process A pdfork(2)s process B. 2. Process A passes process descriptor of B to unrelated process C. 3. Hit CTRL+C to terminate process A. Process B is also terminated with SIGINT. 4. init(8) collects status of process B. 5. Process C closes process descriptor associated with process B. When we have such order of events, init(8), by collecting status of process B, will call procdesc_reap(). This function sets pd_proc to NULL. Now when process C calls close on this process descriptor, procdesc_close() is called. Unfortunately procdesc_close() assumes that pd_proc points at a valid proc structure, but it was set to NULL earlier, so the kernel panics. The patch also adds setting 'p->p_procdesc' to NULL in procdesc_reap(), which I think should be done. MFC after: 1 week END K 10 svn:author V 5 trasz K 8 svn:date V 27 2012-09-01T11:24:02.761158Z K 7 svn:log V 55 Improve description for "rctl -l". MFC after: 2 weeks END K 10 svn:author V 2 ed K 8 svn:date V 27 2012-09-01T14:45:15.018775Z K 7 svn:log V 513 Rework all non-contributed files that use `struct timezone'. This structure is not part of POSIX. According to POSIX, gettimeofday() has the following prototype: int gettimeofday(struct timeval *restrict tp, void *restrict tzp); Also, POSIX states that gettimeofday() shall return 0 (as long as tzp is not used). Remove dead error handling code. Also use NULL for a nul-pointer instead of integer 0. While there, change all pieces of code that only use tv_sec to use time(3), as this provides less overhead. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-09-01T15:50:52.027764Z K 7 svn:log V 91 MFC r238675: Force clean FPU state in PCB user FPU save area for PT_I386_{GET,SET}XMMREGS. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-09-01T15:53:26.725937Z K 7 svn:log V 98 MFC r238676: Add stmxcsr. MFC r238914: Change (unused) prototype for stmxcsr() to match reality. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-09-01T15:55:14.525624Z K 7 svn:log V 62 MFC r238677: Stop clearing x87 exceptions in the #MF handler. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-09-01T15:57:12.166168Z K 7 svn:log V 111 MFC r238678: Provide siginfo.si_code for floating point errors when error occurs using the SSE math processor. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-09-01T15:59:09.893194Z K 7 svn:log V 46 MFC r238792: Introduce curpcb magic variable. END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-09-01T23:33:49.306563Z K 7 svn:log V 300 Mark the ipfw interface type as not being ether. This fixes an issue where uuidgen tried to obtain a ipfw device's mac address which was always zero. PR: 170460 Submitted by: wxs Reviewed by: bdrewery Reviewed by: delphij Approved by: cperciva MFC after: 1 week END K 10 svn:author V 6 andrew K 8 svn:date V 27 2012-09-02T01:48:47.061099Z K 7 svn:log V 90 Fix a logic inversion in an assert to allow us to use dts files that include other files. END K 10 svn:author V 6 avatar K 8 svn:date V 27 2012-09-02T03:36:57.897537Z K 7 svn:log V 995 MFC r238980: Just like the other file systems found in /sys/fs, g_vfs_open() should be paried with g_vfs_close(). Though g_vfs_close() is a wrapper around g_wither_geom_close(), r206130 added the following test in g_vfs_open(): if (bo->bo_private != vp) return (EBUSY); Which will cause a 'Device busy' error inside reiserfs_mountfs() if the same file system is re-mounted again after umount or mounting failure: (case 1, /dev/ad4s3 is not a valid REISERFS partition) # mount -t reiserfs -o ro /dev/ad4s3 /mnt mount: /dev/ad4s3: Invalid argument # mount -t msdosfs -o ro /dev/ad4s3 /mnt mount: /dev/ad4s3: Device busy (case 2, /dev/ad4s3 is a valid REISERFS partition) # mount -t reiserfs -o ro /dev/ad4s3 /mnt # umount /mnt # mount -t reiserfs -o ro /dev/ad4s3 /mnt mount: /dev/ad4s3: Device busy On the other hand, g_vfs_close() 'fixed' the above cases by doing an extra step to keep 'sc->sc_bo->bo_private' and 'cp->private' pointers synchronised. Reviewed by: kib END