Ħ247505 160 176 518 125 114 134 97 315 151 125 117 144 357 357 103 498 145 271 103 376 2206 411 411 211 246 541 125 140 284 168 139 186 98 132 130 130 744 122 119 122 118 119 254 420 420 540 200 104 106 312 312 230 230 1091 339 339 891 297 290 290 178 492 191 191 224 224 912 1006 160 491 261 248 927 316 255 555 248 159 115 127 120 344 122 437 237 181 162 162 291 122 293 254 269 131 593 203 940 462 4691 287 113 150 186 260 170 205 412 306 152 137 135 294 537 517 121 696 370 431 480 99 120 410 218 99 363 5182 115 231 464 153 285 232 161 161 173 173 234 147 205 166 179 179 206 159 158 169 157 157 448 448 200 200 228 228 257 328 191 546 227 165 170 K 10 svn:author V 3 jfv K 8 svn:date V 27 2013-02-28T22:48:00.123087Z K 7 svn:log V 84 Change the ixgbe module name to if_ixgbe to conform to the usual naming convention. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2013-02-28T23:31:23.114925Z K 7 svn:log V 422 Don't enable the HT flags for legacy rates. I stumbled across this whilst trying to debug another weird hang reported on the freebsd-wireless list. Whilst here, add in the STBC check to ath_rateseries_setup(). Whilst here, fix the short preamble flag to be set only for legacy rates. Whilst here, comment that we should be using the full set of decisions made by ath_rateseries_setup() rather than recalculating them! END K 10 svn:author V 6 adrian K 8 svn:date V 27 2013-02-28T23:39:22.311818Z K 7 svn:log V 30 Oops - fix an incorrect test. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2013-02-28T23:39:38.499892Z K 7 svn:log V 19 Add missing flags. END K 10 svn:author V 3 gjb K 8 svn:date V 27 2013-02-28T23:45:41.278977Z K 7 svn:log V 42 Minor wordsmithing. X-MFC-Needs: r245617 END K 10 svn:author V 5 benno K 8 svn:date V 27 2013-03-01T00:15:58.257108Z K 7 svn:log V 4 MFH END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-03-01T00:46:41.573570Z K 7 svn:log V 218 MFC r247334: Correct a typo introduced in r153575, which gives inverted logic when handling blocking semantics when seeding. PR: kern/143298 Submitted by: James Juran Reviewed by: markm END K 10 svn:author V 3 des K 8 svn:date V 27 2013-03-01T00:52:57.595942Z K 7 svn:log V 59 MFH (r240107,240111,240361): warn against using weak PRNGs END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-03-01T00:56:57.132450Z K 7 svn:log V 29 MFC r247296: libexpat 2.1.0. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-03-01T00:58:44.802244Z K 7 svn:log V 21 MFC: libexpat 2.1.0. END K 10 svn:author V 3 des K 8 svn:date V 27 2013-03-01T01:02:26.120148Z K 7 svn:log V 52 MFH (r245527): add OPENSSH_NONE_CIPHER build option END K 10 svn:author V 3 jhb K 8 svn:date V 27 2013-03-01T01:02:28.916569Z K 7 svn:log V 264 MFC 245610,245633,245635: Include the thread name along with the command name when displaying the command name of a thread from a multi-threaded process that doesn't have an available argument list (such as kernel processes) and threads display is enabled via -H. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2013-03-01T01:02:44.928804Z K 7 svn:log V 264 MFC 245610,245633,245635: Include the thread name along with the command name when displaying the command name of a thread from a multi-threaded process that doesn't have an available argument list (such as kernel processes) and threads display is enabled via -H. END K 10 svn:author V 3 des K 8 svn:date V 27 2013-03-01T01:03:27.800598Z K 7 svn:log V 11 Regenerate END K 10 svn:author V 7 ganbold K 8 svn:date V 27 2013-03-01T01:42:31.924788Z K 7 svn:log V 401 Add support for A10 uart. A10 uart is derived from Synopsys DesignWare uart and requires to read Uart Status Register when IIR_BUSY has detected. Also this change includes FDT check, where it checks device specific properties defined in dts and sets the busy_detect variable. broken_txfifo is also needed to be set in order to make it work for A10 uart case. Reviewed by: marcel@ Approved by: gonzo@ END K 10 svn:author V 7 ganbold K 8 svn:date V 27 2013-03-01T01:47:11.794054Z K 7 svn:log V 49 Enable uart driver for A10. Approved by: gonzo@ END K 10 svn:author V 3 des K 8 svn:date V 27 2013-03-01T02:06:04.246685Z K 7 svn:log V 178 Pull in OpenSSH 6.1 from head. Although ECC-based algorithms are now supported, the order of preference has been changed so that RSA and DSA are still the preferred algorithms. END K 10 svn:author V 3 des K 8 svn:date V 27 2013-03-01T02:09:06.268965Z K 7 svn:log V 11 Regenerate END K 10 svn:author V 4 neel K 8 svn:date V 27 2013-03-01T02:26:28.993168Z K 7 svn:log V 282 Specify the length of the mapping requested from 'paddr_guest2host()'. This seems prudent to do in its own right but it also opens up the possibility of not having to mmap the entire guest address space in the 'bhyve' process context. Discussed with: grehan Obtained from: NetApp END K 10 svn:author V 3 mav K 8 svn:date V 27 2013-03-01T02:59:56.492969Z K 7 svn:log V 2112 Add statistics to better diagnose and tune callout subsystem parameters. Setting kern.callout_stat sysctl dumps to console statistics for callouts scheduled at that moment alike to this: Scheduled callouts statistic snapshot: Callouts: 69 Buckets/CPU: 32768 Bucket size: 0.000976s C/Bk: med 0 avg 0.000526 max 10 Time: med 1.000000s avg 1580.594786s max 84945.674598s Prec: med 0.250000s avg 106.280672s max 5379.937129s Distribution: buckets time tcum prec pcum 0.007812s 2**3 0 0 2 2 0.015625s 2**4 0 0 2 4 0.031250s 2**5 13 13 3 7 0.062500s 2**6 2 15 15 22 0.125000s 2**7 4 19 1 23 0.250000s 2**8 1 20 13 36 0.500000s 2**9 11 31 11 47 1.000000s 2**10 8 39 1 48 2.000000s 2**11 4 43 3 51 4.000000s 2**12 3 46 4 55 8.000000s 2**13 5 51 1 56 16.000000s 2**14 0 51 2 58 32.000000s 2**15 3 54 1 59 64.000000s 2**16 4 58 2 61 128.000000s 2**17 1 59 3 64 256.000000s 2**18 0 59 2 66 512.000000s 2**19 1 60 2 68 1024.000000s 2**20 4 64 0 68 2048.000000s 2**21 2 66 0 68 4096.000000s 2**22 0 66 1 69 8192.000000s 2**23 2 68 0 69 65536.000000s 2**26 1 69 0 69 It would be very interesting to analyze such dumps from systems with heavy load of different kinds to see how well callout subsystem is tuned for them by default. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2013-03-01T03:04:57.620327Z K 7 svn:log V 318 MFC 245823,245824,246210 - Use decimal values for UDP, TCP, and UNIX domain socket options rather than hex to avoid implying that these constants should be treated as bit masks. - Add placeholder constants to reserve a portion of the socket option name space for use by downstream vendors to add custom options. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2013-03-01T03:05:08.156236Z K 7 svn:log V 318 MFC 245823,245824,246210 - Use decimal values for UDP, TCP, and UNIX domain socket options rather than hex to avoid implying that these constants should be treated as bit masks. - Add placeholder constants to reserve a portion of the socket option name space for use by downstream vendors to add custom options. END K 10 svn:author V 6 brooks K 8 svn:date V 27 2013-03-01T03:25:43.165220Z K 7 svn:log V 115 Provide slightly more helpful feedback when we can't figure out what compiler the user is using. PR: misc/173914 END K 10 svn:author V 6 adrian K 8 svn:date V 27 2013-03-01T04:21:22.156757Z K 7 svn:log V 150 Migrate ic->ic_raw_xmit() to a VAP method. It still calls ic->ic_raw_xmit() for now but it does make it easier to convert into a queue method later. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2013-03-01T04:51:44.128168Z K 7 svn:log V 445 Defer the main frame TX through a per-vap task. The task runs in the ieee80211com task, so vaps are still serialised with each other as well as the rest of the ic state. This doesn't serialise the raw xmit path or any of the raw xmit state setup. It also doesn't touch the other paths (fast frames deferred handling/flush; ageq and power save handling; mesh TX handling.) These will come next. Tested: * AR5416, STA mode * AR9280, STA mode END K 10 svn:author V 3 pho K 8 svn:date V 27 2013-03-01T06:56:43.299961Z K 7 svn:log V 33 Added two "umount -f" scenarios. END K 10 svn:author V 5 benno K 8 svn:date V 27 2013-03-01T06:57:45.430582Z K 7 svn:log V 46 Remove some things that are no longer needed. END K 10 svn:author V 5 benno K 8 svn:date V 27 2013-03-01T07:00:11.344658Z K 7 svn:log V 189 Build both 32- and 64-bit ELF loaders on both amd64 and i386. This is needed because otherwise we don't build the 32-bit ELF loader for the i386 loader code used to boot amd64 under BIOS. END K 10 svn:author V 5 benno K 8 svn:date V 27 2013-03-01T07:01:24.389686Z K 7 svn:log V 74 Build the amd64 loader stuff as well as the i386 stuff if we're on amd64. END K 10 svn:author V 2 ru K 8 svn:date V 27 2013-03-01T07:39:14.400699Z K 7 svn:log V 48 Fixed documented prototype of kinfo_getproc(3). END K 10 svn:author V 3 alc K 8 svn:date V 27 2013-03-01T08:30:31.041911Z K 7 svn:log V 94 Copy the definition of VM_MAX_AUTOTUNE_MAXUSERS from i386. (See r242847.) Tested by: andrew END K 10 svn:author V 6 adrian K 8 svn:date V 27 2013-03-01T08:38:57.331076Z K 7 svn:log V 4 MFH END K 10 svn:author V 3 des K 8 svn:date V 27 2013-03-01T09:39:29.815135Z K 7 svn:log V 40 Fix a few instances of broken mergeinfo END K 10 svn:author V 3 des K 8 svn:date V 27 2013-03-01T09:39:53.200493Z K 7 svn:log V 38 MFH (r238602): add -g (gigabyte) flag END K 10 svn:author V 3 des K 8 svn:date V 27 2013-03-01T09:40:02.948007Z K 7 svn:log V 38 MFH (r238602): add -g (gigabyte) flag END K 10 svn:author V 2 mm K 8 svn:date V 27 2013-03-01T09:42:58.981755Z K 7 svn:log V 652 Fix the zfs_ioctl compat layer to support zfs_cmd size change introduced in r247265 (ZFS deadman thread). Both new utilities now support the old kernel and new kernel properly detects old utilities. For future backwards compatibility, the vfs.zfs.version.ioctl read-only sysctl has been introduced. With this sysctl zfs utilities will be able to detect the ioctl interface version of the currently loaded zfs module. As a side effect, the zfs utilities between r247265 and this revision don't support the old kernel module. If you are using HEAD newer or equal than r247265, install the new kernel module (or whole kernel) first. MFC after: 10 days END K 10 svn:author V 3 des K 8 svn:date V 27 2013-03-01T09:49:55.201390Z K 7 svn:log V 30 MFH (r240278): document -quit END K 10 svn:author V 3 des K 8 svn:date V 27 2013-03-01T09:50:45.134343Z K 7 svn:log V 27 More misapplied mergeinfo. END K 10 svn:author V 3 des K 8 svn:date V 27 2013-03-01T10:23:36.692818Z K 7 svn:log V 30 MFH (r240278): document -quit END K 10 svn:author V 3 des K 8 svn:date V 27 2013-03-01T10:33:31.244616Z K 7 svn:log V 26 MFH (r246328): sort knobs END K 10 svn:author V 3 mav K 8 svn:date V 27 2013-03-01T11:03:13.936455Z K 7 svn:log V 27 Print also number of CPUs. END K 10 svn:author V 3 mav K 8 svn:date V 27 2013-03-01T13:27:32.199302Z K 7 svn:log V 161 Convert callwheel from array of TAILQs to array of LISTs. This in half reduces memory and possibly cache usage. Benchmarks show small performance improvement. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2013-03-01T14:54:26.942034Z K 7 svn:log V 327 MFC 245577,245640: Don't attempt to use clflush on the local APIC register window. Various CPUs exhibit bad behavior if this is done (Intel Errata AAJ3, hangs on Pentium-M, and trashing of the local APIC registers on a VIA C7). The local APIC is implicitly mapped UC already via MTRRs, so the clflush isn't necessary anyway. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2013-03-01T14:54:37.915447Z K 7 svn:log V 327 MFC 245577,245640: Don't attempt to use clflush on the local APIC register window. Various CPUs exhibit bad behavior if this is done (Intel Errata AAJ3, hangs on Pentium-M, and trashing of the local APIC registers on a VIA C7). The local APIC is implicitly mapped UC already via MTRRs, so the clflush isn't necessary anyway. END K 10 svn:author V 3 mav K 8 svn:date V 27 2013-03-01T15:09:23.638178Z K 7 svn:log V 447 Change CC_HASH_SHIFT from 10 to 8, changing callwheel bucket size from 1ms to 4ms. This allows to reduce time consumed by callout_process() on linear travense through the array of empty buckets on systems with few callouts. On systems with many callouts result depends on callouts time and precision: smaller CC_HASH_SHIFT value improves handling of long callouts, while bigger value improves handling of short and precise (not aggregable) ones. END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2013-03-01T15:45:57.741829Z K 7 svn:log V 105 Assign the len field of the netbuf structure to the current length of a sockaddr. Obtained from: NetBSD END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2013-03-01T15:48:31.328038Z K 7 svn:log V 10 Fix typo. END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2013-03-01T15:59:14.966095Z K 7 svn:log V 11 IFC@247551 END K 10 svn:author V 3 jhb K 8 svn:date V 27 2013-03-01T16:18:40.948906Z K 7 svn:log V 219 MFC 246035: - Compute the correct size to reallocate when doubling the size of the array of loaded objects to avoid a buffer overrun. - Use reallocf() to avoid leaking memory if the realloc() fails. PR: kern/175648 END K 10 svn:author V 3 jhb K 8 svn:date V 27 2013-03-01T16:19:09.437607Z K 7 svn:log V 219 MFC 246035: - Compute the correct size to reallocate when doubling the size of the array of loaded objects to avoid a buffer overrun. - Use reallocf() to avoid leaking memory if the realloc() fails. PR: kern/175648 END K 10 svn:author V 3 jhb K 8 svn:date V 27 2013-03-01T17:10:43.931718Z K 7 svn:log V 137 MFC 246037: Mark 'ticks', 'time_second', and 'time_uptime' as volatile to prevent the compiler from caching their values in tight loops. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2013-03-01T17:10:52.060982Z K 7 svn:log V 137 MFC 246037: Mark 'ticks', 'time_second', and 'time_uptime' as volatile to prevent the compiler from caching their values in tight loops. END K 10 svn:author V 3 dim K 8 svn:date V 27 2013-03-01T17:37:57.630668Z K 7 svn:log V 998 MFC r247166: Pull in r172354 from upstream clang trunk: Refactor the x86 CPU name logic in the driver and pass -march and -mcpu flag information down from the Clang driver into the Gold linker plugin for LTO. This allows specifying -march on the linker commandline and should hopefully have it pass all the way through to the LTO optimizer. Fixes PR14697. Pull in r175919 from upstream clang trunk: Driver: Pass down the -march setting down to -cc1as on x86 too. The assembler historically didn't make use of any target features, but this has changed when support for old CPUs that don't support long nops was added. This should fix the long nops that still occurred in crt*.o, and possibly other object files, if the system was compiled for a CPU that does not support those, such as Geode. Note that gcc on i386 also does not pass through any -march, -mcpu or -mtune setting to gas, but this has not caused any trouble yet, because gas defaults to i386. Reported by: lev END K 10 svn:author V 3 jhb K 8 svn:date V 27 2013-03-01T18:39:46.929616Z K 7 svn:log V 246 MFC 245849: Don't assume that all Linux TCP-level socket options are identical to FreeBSD TCP-level socket options (only the first two are). Instead, using a mapping function and fail unsupported options as we do for other socket option levels. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2013-03-01T18:39:55.446390Z K 7 svn:log V 246 MFC 245849: Don't assume that all Linux TCP-level socket options are identical to FreeBSD TCP-level socket options (only the first two are). Instead, using a mapping function and fail unsupported options as we do for other socket option levels. END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-03-01T18:40:14.617061Z K 7 svn:log V 798 Make the default implementation of the VOP_VPTOCNP() fail if the directory entry, matched by the inode number, is ".". NFSv4 client might instantiate the distinct vnodes which have the same inode number, since single v4 export can be combined from several filesystems on the server. For instance, a case when the nested server mount point is exactly one directory below the top of the export, causes directory and its parent to have the same inode number 2. The vop_stdvptocnp() algorithm then returns "." as the name of the lower directory. Filtering out the "." entry with ENOENT works around this behaviour, the error forces getcwd(3) to fall back to usermode implementation, which compares both st_dev and st_ino. Based on the submission by: rmacklem Tested by: rmacklem MFC after: 1 week END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-03-01T18:49:14.331286Z K 7 svn:log V 201 - Use strdup(9) instead of reimplementing it. - Use __DECONST instead of strange casts. - Reduce code duplication and simplify name2oid(). PR: 176373 Submitted by: Christoph Mallon MFC after: 1 week END K 10 svn:author V 3 jhb K 8 svn:date V 27 2013-03-01T19:01:40.337975Z K 7 svn:log V 197 MFC 246129: Allow the address and ports to be separated by a colon or period rather than a space to permit directly pasting the output of commands such as netstat and sockstat on the command line. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2013-03-01T19:01:52.890285Z K 7 svn:log V 197 MFC 246129: Allow the address and ports to be separated by a colon or period rather than a space to permit directly pasting the output of commands such as netstat and sockstat on the command line. END K 10 svn:author V 3 alc K 8 svn:date V 27 2013-03-01T19:02:41.847232Z K 7 svn:log V 86 Eliminate a redundant #include: machine/pmap.h is already included through vm/pmap.h. END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-03-01T19:12:38.550194Z K 7 svn:log V 396 - Make tables, device ID strings etc const. - Use NULL instead of 0 for pointers. - Remove redundant bzero(9)'ing of the softc. - Remove redundant/unused softc members. - Don't allocate MSI/MSI-X as RF_SHAREABLE. - Re-use bus accessor macros instead of duplicating them. - In bce_miibus_{read,write}_reg(), remove superfluous limiting of the PHY address (missed in r213893). MFC after: 1 week END K 10 svn:author V 3 jhb K 8 svn:date V 27 2013-03-01T19:39:54.633362Z K 7 svn:log V 99 MFC 246367: Install and as userland headers in /usr/include. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2013-03-01T19:40:02.206449Z K 7 svn:log V 99 MFC 246367: Install and as userland headers in /usr/include. END K 10 svn:author V 3 des K 8 svn:date V 27 2013-03-01T19:42:50.627095Z K 7 svn:log V 131 Pull in OpenPAM Micrampelis from head. Also merge a few minor module changes, most importantly support for ECDSA keys in pam_ssh. END K 10 svn:author V 3 mav K 8 svn:date V 27 2013-03-01T19:54:25.890368Z K 7 svn:log V 131 Don't disable interrupts on 64-bit arches to read the last hardclock time. This adds few more megabits in iperf test on Atom D525. END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-03-01T19:55:10.527871Z K 7 svn:log V 816 - 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). MFC after: 1 month END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-03-01T20:16:06.811922Z K 7 svn:log V 910 - Apparently, r186520 was just wrong and the clock of Oxford OX16PCI958 is neither DEFAULT_RCLK * 2 nor DEFAULT_RCLK * 10 but plain DEFAULT_RCLK and there's no (open) source indicating otherwise. This was tested with an EXSYS EX-41098-2, whose clock is not configurable and identifies as: puc0@pci0:5:1:0: class=0x070200 card=0x06711415 chip=0x95381415 rev=0x01 hdr=0x00 vendor = 'Oxford Semiconductor Ltd' class = simple comms subclass = multiport serial Note that this exactly matches the card mentioned in PR 129665 so no sub-device/sub-vendor based quirking of the latter is possible. So maybe we should grow some sort of tunable, in case non-default cards such as the latter aren't configurable either (this also wouldn't be the first time an allegedly tested commit turns out to be wrong though). - Make the TiMedia tables const. MFC after: 1 week END K 10 svn:author V 8 jpaetzel K 8 svn:date V 27 2013-03-01T20:33:35.468395Z K 7 svn:log V 63 MFC 246799: Resolve issue that caused WITNESS to report LORs. END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-03-01T20:34:02.042476Z K 7 svn:log V 395 - Remove an unused header. - Use NULL instead of 0 for pointers. - Let ofw_pcib_probe() return BUS_PROBE_DEFAULT instead of 0 so specialized PCI-PCI-bridge drivers may attach instead. - Add WARs for PLX Technology PEX 8114 bridges and PEX 8532 switches. Ideally, these should live in MI code but at least for the latter we're missing the necessary infrastructure there. MFC after: 1 week END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-03-01T20:36:59.655180Z K 7 svn:log V 165 - In sbbc_pci_attach() just pass the already obtained bus tag and handle instead of acquiring these anew. - Use NULL instead of 0 for pointers. MFC after: 1 week END K 10 svn:author V 2 mm K 8 svn:date V 27 2013-03-01T20:48:07.420062Z K 7 svn:log V 156 Update vendor-sys/illumos/dist to illumos-gate 13970:c9a5683da38e Illumos ZFS issues: 3543 Feature flags causes assertion in spa.c to miss certain cases END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-03-01T20:48:53.097991Z K 7 svn:log V 834 MFC r246121 ... Fix a descriptor leak in devd. Clients reading /var/run/devd.pipe can close their socket connection any time, and devd only notices that when it gets an error trying to write an event to the client. On a system with no device change activity, clients could connect and disappear repeatedly without devd noticing, leading to an ever-growing list of open socket descriptors in devd. Now devd uses poll(2) looking for POLLHUP on all existing clients every time a new client connection is established, and also periodically (once a minute) to proactively find zombie clients and reap the socket descriptors. It also now has a connection limit, configurable with a new -l command line arg. When the maximum number of connections is reached it stops accepting new connections until some current clients drop off. END K 10 svn:author V 3 des K 8 svn:date V 27 2013-03-01T20:48:53.191558Z K 7 svn:log V 223 Switch from Catalyst::Plugin::Unicode (which tries and sometimes fails to guess the correct encoding) to Catalyst::Plugin::Unicode::Encoding (which doesn't). Explicitly tell Template::Toolkit that our templates are utf-8. END K 10 svn:author V 2 mm K 8 svn:date V 27 2013-03-01T20:49:56.161452Z K 7 svn:log V 163 Update vendor-sys/illumos/dist to illumos-gate 13971:d1648d817bd6 Illumos ZFS issues: 3581 spa_zio_taskq[ZIO_TYPE_FREE][ZIO_TASKQ_ISSUE]->tq_lock is piping hot END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-03-01T20:51:53.692529Z K 7 svn:log V 459 - Move reporting of failures to disable RX/TX MAC under bootverbose as at least the Saturn chips of 501-6738 cards may fail to do so the first time, which isn't fatal though. Reported by: Paul Keusemann - Explain why we don't enable infinite bursts on sparc64. - Given that these chips support memory write invalidate, make sure that it's enabled in the command register. Also make sure that PERR# and SERR# assertion is enabled. MFC after: 1 week END K 10 svn:author V 2 mm K 8 svn:date V 27 2013-03-01T21:01:45.041349Z K 7 svn:log V 156 Update vendor/illumos/dist and vendor-sys/illumos/dist to illumos-gate 13973:4972ab336f54 Illumos ZFS issues: 3464 zfs synctask code needs restructuring END K 10 svn:author V 3 mav K 8 svn:date V 27 2013-03-01T21:12:20.630205Z K 7 svn:log V 67 Fix a stupid nasty bug that could cause silent memory corruptions. END K 10 svn:author V 3 mav K 8 svn:date V 27 2013-03-01T21:16:02.448983Z K 7 svn:log V 23 Remove extra newlines. END K 10 svn:author V 3 des K 8 svn:date V 27 2013-03-01T21:35:53.165777Z K 7 svn:log V 35 Manually fix screwed-up mergeinfo. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-03-01T21:57:02.161503Z K 7 svn:log V 28 Reduce lock scope a little. END K 10 svn:author V 2 mm K 8 svn:date V 27 2013-03-01T21:58:51.102568Z K 7 svn:log V 252 MFV r247316: Merge new read-only zfs properties from vendor (illumos) Illumos ZFS issues: 3588 provide zfs properties for logical (uncompressed) space used and referenced References: https://www.illumos.org/issues/3588 MFC after: 2 weeks END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-03-01T21:58:56.050921Z K 7 svn:log V 30 Remove unnecessary variables. END K 10 svn:author V 6 andrew K 8 svn:date V 27 2013-03-01T21:59:23.773720Z K 7 svn:log V 341 Increase the maximum text size on ARM to 64MiB. Without this clang would be sent a SIGABRT when it is loaded as it is too large. This is the smallest power of two MiB value that allows us to execute clang. While here wrap it in an #ifndef to be consistent with the other architectures. Submitted by: Daisuke Aoyama END K 10 svn:author V 3 jhb K 8 svn:date V 27 2013-03-01T22:03:31.730863Z K 7 svn:log V 144 Replace the TDP_NOSLEEPING flag with a counter so that the THREAD_NO_SLEEPING() and THREAD_SLEEPING_OK() macros can nest. Reviewed by: attilio END K 10 svn:author V 3 pfg K 8 svn:date V 27 2013-03-01T22:03:57.184044Z K 7 svn:log V 89 MFC r246562: Remove unused MAXSYMLINKLEN macro. Reviewed by: mckusick PR: kern/175794 END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-03-01T22:05:20.932751Z K 7 svn:log V 67 Initialize count in order to appease clang. Submitted by: delphij END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-03-01T22:09:08.216344Z K 7 svn:log V 67 Initialize count in order to appease clang. Submitted by: delphij END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-03-01T22:20:13.558519Z K 7 svn:log V 194 MFV r247575: Import a fix tighten assertion on SPA versions from vendor (Illumos). Illumos ZFS issue: 3543 Feature flags causes assertion in spa.c to miss certain cases MFC after: 2 weeks END K 10 svn:author V 3 mav K 8 svn:date V 27 2013-03-01T22:40:30.299199Z K 7 svn:log V 30 Style fix. Submitted by: avg END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-03-01T23:18:20.182156Z K 7 svn:log V 196 Fix a typo in mfi_stp_cmd() that would give wrong assignment. Submitted by: Sascha Wildner Obtained from: DragonFly rev 0dc98fff2206d7bb78ce5e07ac34d6954e4bd96a MFC after: 3 days END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-03-01T23:21:18.794913Z K 7 svn:log V 157 Fix wrong assignment. Submitted by: Sascha Wildner Obtained from: DragonFly rev 9568dd07a22a136e380e6c19a8ea188eb92976d5 MFC after: 2 weeks END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-03-01T23:26:13.211345Z K 7 svn:log V 172 Fix assignment of maximum bounadary. Submitted by: Sascha Wildner Obtained from: DragonFly rev fd39c81ba220f7ad6e4dc9b30d45e828cf58a1ad MFC after: 2 weeks END K 10 svn:author V 6 davide K 8 svn:date V 27 2013-03-02T00:04:07.767431Z K 7 svn:log V 36 Merge head r236314 through r247596. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-03-02T00:11:27.090006Z K 7 svn:log V 500 Provide cap_sandboxed(3) function, which is a wrapper around cap_getmode(2) system call, which has a nice property - it never fails, so it is a bit easier to use. If there is no support for capability mode in the kernel the function will return false (not in a sandbox). If the kernel is compiled with the support for capability mode, the function will return true or false depending if the calling process is in the capability mode sandbox or not respectively. Sponsored by: The FreeBSD Foundation END K 10 svn:author V 6 davide K 8 svn:date V 27 2013-03-02T00:21:29.886776Z K 7 svn:log V 107 Now that the macros THREAD_NO_SLEEPING() and THREAD_SLEEPING_OK() are allowed to nest, remove an old hack. END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-03-02T00:37:31.937574Z K 7 svn:log V 844 - While Netra X1 generally show no ill effects when registering a power fail interrupt handler, there seems to be either a broken batch of them or a tendency to develop a defect which causes this interrupt to fire inadvertedly. Given that apart from this problem these machines work just fine, add a tunable allowing the setup of the power fail interrupt to be disabled. While at it, remove the DEBUGGER_ON_POWERFAIL compile time option and make that behavior also selectable via the newly added tunable. - Apparently, it's no longer a problem to call shutdown_nice(9) from within an interrupt filter (some other drivers in the tree do the same). So change the power fail interrupt from an handler in order to simplify the code and get rid of a !INTR_MPSAFE handler. - Use NULL instead of 0 for pointers. MFC after: 1 week END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-03-02T00:41:51.969964Z K 7 svn:log V 366 - Apparently, it's no longer a problem to call shutdown_nice(9) from within an interrupt filter (some other drivers in the tree do the same). So change the overtemperature and power fail interrupts from handlers in order to code and get rid of a !INTR_MPSAFE handlers. - Mark unused parameters as such. - Use NULL instead of 0 for pointers. MFC after: 1 week END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-03-02T00:53:12.920345Z K 7 svn:log V 4597 Merge Capsicum overhaul: - Capability is no longer separate descriptor type. Now every descriptor has set of its own capability rights. - The cap_new(2) system call is left, but it is no longer documented and should not be used in new code. - The new syscall cap_rights_limit(2) should be used instead of cap_new(2), which limits capability rights of the given descriptor without creating a new one. - The cap_getrights(2) syscall is renamed to cap_rights_get(2). - If CAP_IOCTL capability right is present we can further reduce allowed ioctls list with the new cap_ioctls_limit(2) syscall. List of allowed ioctls can be retrived with cap_ioctls_get(2) syscall. - If CAP_FCNTL capability right is present we can further reduce fcntls that can be used with the new cap_fcntls_limit(2) syscall and retrive them with cap_fcntls_get(2). - To support ioctl and fcntl white-listing the filedesc structure was heavly modified. - The audit subsystem, kdump and procstat tools were updated to recognize new syscalls. - Capability rights were revised and eventhough I tried hard to provide backward API and ABI compatibility there are some incompatible changes that are described in detail below: CAP_CREATE old behaviour: - Allow for openat(2)+O_CREAT. - Allow for linkat(2). - Allow for symlinkat(2). CAP_CREATE new behaviour: - Allow for openat(2)+O_CREAT. Added CAP_LINKAT: - Allow for linkat(2). ABI: Reuses CAP_RMDIR bit. - Allow to be target for renameat(2). Added CAP_SYMLINKAT: - Allow for symlinkat(2). Removed CAP_DELETE. Old behaviour: - Allow for unlinkat(2) when removing non-directory object. - Allow to be source for renameat(2). Removed CAP_RMDIR. Old behaviour: - Allow for unlinkat(2) when removing directory. Added CAP_RENAMEAT: - Required for source directory for the renameat(2) syscall. Added CAP_UNLINKAT (effectively it replaces CAP_DELETE and CAP_RMDIR): - Allow for unlinkat(2) on any object. - Required if target of renameat(2) exists and will be removed by this call. Removed CAP_MAPEXEC. CAP_MMAP old behaviour: - Allow for mmap(2) with any combination of PROT_NONE, PROT_READ and PROT_WRITE. CAP_MMAP new behaviour: - Allow for mmap(2)+PROT_NONE. Added CAP_MMAP_R: - Allow for mmap(PROT_READ). Added CAP_MMAP_W: - Allow for mmap(PROT_WRITE). Added CAP_MMAP_X: - Allow for mmap(PROT_EXEC). Added CAP_MMAP_RW: - Allow for mmap(PROT_READ | PROT_WRITE). Added CAP_MMAP_RX: - Allow for mmap(PROT_READ | PROT_EXEC). Added CAP_MMAP_WX: - Allow for mmap(PROT_WRITE | PROT_EXEC). Added CAP_MMAP_RWX: - Allow for mmap(PROT_READ | PROT_WRITE | PROT_EXEC). Renamed CAP_MKDIR to CAP_MKDIRAT. Renamed CAP_MKFIFO to CAP_MKFIFOAT. Renamed CAP_MKNODE to CAP_MKNODEAT. CAP_READ old behaviour: - Allow pread(2). - Disallow read(2), readv(2) (if there is no CAP_SEEK). CAP_READ new behaviour: - Allow read(2), readv(2). - Disallow pread(2) (CAP_SEEK was also required). CAP_WRITE old behaviour: - Allow pwrite(2). - Disallow write(2), writev(2) (if there is no CAP_SEEK). CAP_WRITE new behaviour: - Allow write(2), writev(2). - Disallow pwrite(2) (CAP_SEEK was also required). Added convinient defines: #define CAP_PREAD (CAP_SEEK | CAP_READ) #define CAP_PWRITE (CAP_SEEK | CAP_WRITE) #define CAP_MMAP_R (CAP_MMAP | CAP_SEEK | CAP_READ) #define CAP_MMAP_W (CAP_MMAP | CAP_SEEK | CAP_WRITE) #define CAP_MMAP_X (CAP_MMAP | CAP_SEEK | 0x0000000000000008ULL) #define CAP_MMAP_RW (CAP_MMAP_R | CAP_MMAP_W) #define CAP_MMAP_RX (CAP_MMAP_R | CAP_MMAP_X) #define CAP_MMAP_WX (CAP_MMAP_W | CAP_MMAP_X) #define CAP_MMAP_RWX (CAP_MMAP_R | CAP_MMAP_W | CAP_MMAP_X) #define CAP_RECV CAP_READ #define CAP_SEND CAP_WRITE #define CAP_SOCK_CLIENT \ (CAP_CONNECT | CAP_GETPEERNAME | CAP_GETSOCKNAME | CAP_GETSOCKOPT | \ CAP_PEELOFF | CAP_RECV | CAP_SEND | CAP_SETSOCKOPT | CAP_SHUTDOWN) #define CAP_SOCK_SERVER \ (CAP_ACCEPT | CAP_BIND | CAP_GETPEERNAME | CAP_GETSOCKNAME | \ CAP_GETSOCKOPT | CAP_LISTEN | CAP_PEELOFF | CAP_RECV | CAP_SEND | \ CAP_SETSOCKOPT | CAP_SHUTDOWN) Added defines for backward API compatibility: #define CAP_MAPEXEC CAP_MMAP_X #define CAP_DELETE CAP_UNLINKAT #define CAP_MKDIR CAP_MKDIRAT #define CAP_RMDIR CAP_UNLINKAT #define CAP_MKFIFO CAP_MKFIFOAT #define CAP_MKNOD CAP_MKNODAT #define CAP_SOCK_ALL (CAP_SOCK_CLIENT | CAP_SOCK_SERVER) Sponsored by: The FreeBSD Foundation Reviewed by: Christoph Mallon Many aspects discussed with: rwatson, benl, jonathan ABI compatibility discussed with: kib END K 10 svn:author V 6 davide K 8 svn:date V 27 2013-03-02T00:53:16.506514Z K 7 svn:log V 191 Try to use a better type for 'cc_waiting' and 'cc_cancel' fields of cc_exec structure. Their value has to be only 0 or 1 and this change try to make this more evident. Suggested by: attilio END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-03-02T00:55:09.589680Z K 7 svn:log V 21 Regen after r247602. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-03-02T00:56:53.639684Z K 7 svn:log V 58 Update existing regression tests after Capsicum overhaul. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-03-02T01:00:26.676051Z K 7 svn:log V 94 Add regression tests for the new Capsicum system calls. Sponsored by: The FreeBSD Foundation END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-03-02T01:04:02.882778Z K 7 svn:log V 163 MFC r247422: Add a reminder that the user should update boot block if they are upgrading their existing system and use LZ4 compression for ZFS. Suggested by: mm END K 10 svn:author V 6 andrew K 8 svn:date V 27 2013-03-02T02:19:04.396291Z K 7 svn:log V 75 Ensure the stack is correctly aligned before calling the first C function. END K 10 svn:author V 6 andrew K 8 svn:date V 27 2013-03-02T03:23:14.670268Z K 7 svn:log V 109 Build the Raspberry Pi dtb file when building the kernel so we can copy it to the boot partition for U-Boot. END K 10 svn:author V 6 andrew K 8 svn:date V 27 2013-03-02T05:02:29.155517Z K 7 svn:log V 316 Move some virtual memory constants to the top of the file where they are on other architectures [1]. While here: - Remove an unused and commented out include. - Add a comment describing the file that other copies have. - Fix the style of the defines and add a comment on what each one is. Suggested by: [1] alc END K 10 svn:author V 6 marcel K 8 svn:date V 27 2013-03-02T05:03:36.263709Z K 7 svn:log V 210 Fix nandfs support by providing the same crc32 function as is used in newfs_nandfs. In libstand we get crc32 from libz. The polynomial is not the same as used for nandfs, which is the crc32 used in the kernel. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2013-03-02T05:07:51.770542Z K 7 svn:log V 57 Fix warnings (control reaches end of non-void function). END K 10 svn:author V 6 marcel K 8 svn:date V 27 2013-03-02T05:28:55.097216Z K 7 svn:log V 42 Make this WARNS=9 clean on i386 w/ clang. END K 10 svn:author V 4 joel K 8 svn:date V 27 2013-03-02T06:55:55.518200Z K 7 svn:log V 42 mdoc: remove superfluous paragraph macro. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2013-03-02T08:12:41.541005Z K 7 svn:log V 198 Disable the ctl driver in GENERIC. It unfortunately steals a fair chunk of RAM at startup even if it's not actively used, which prevents FreeBSD VMs of 128MB from successfully booting and running. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2013-03-02T09:26:59.435840Z K 7 svn:log V 441 Revert the VAP TX task stuff and go back to direct dispatch. Deferring the VAP TX side of things doesn't buy us anything. The only thing is currently buys is serialising the AMPDU TX handling in this path - but it doesn't at all serialise the AMPDU TX handling from other paths (eg mesh TX.) The current locking implementation still serialises the TX path correctly for 802.11 sequence number handling and driver dispatch, so that's good. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-03-02T09:58:47.979697Z K 7 svn:log V 424 If the target file already exists, check for the CAP_UNLINKAT capabiity right on the target directory descriptor, but only if this is renameat(2) and real target directory descriptor is given (not AT_FDCWD). Without this fix regular rename(2) fails if the target file already exists. Reported by: Michael Butler Reported by: Larry Rosenman Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 mav K 8 svn:date V 27 2013-03-02T11:33:21.564408Z K 7 svn:log V 29 Remove extra curcpu reading. END K 10 svn:author V 6 jilles K 8 svn:date V 27 2013-03-02T12:42:23.384592Z K 7 svn:log V 600 nullfs: Improve f_flags in statfs(). Include some flags of the nullfs mount itself: MNT_RDONLY, MNT_NOEXEC, MNT_NOSUID, MNT_UNION, MNT_NOSYMFOLLOW. This allows userland code calling statfs() or fstatfs() to see these flags. In particular, this allows opendir() to detect that a -t nullfs -o union mount needs deduplication (otherwise at least . and .. are returned twice) and allows rtld to detect a -t nullfs -o noexec mount as noexec. Turn off the MNT_ROOTFS flag from the underlying filesystem because the nullfs mount is definitely not the root filesystem. Reviewed by: kib MFC after: 1 week END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-03-02T13:04:58.716758Z K 7 svn:log V 274 Revert the part of r247600 which turned the overtemperature and power fail interrupt shutdown handlers into filters. Shutdown_nice(9) acquires a sleep lock, which filters shouldn't do. It also seems that kern_reboot(9) still may require Giant to be hold. Submitted by: bde END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-03-02T13:08:13.907753Z K 7 svn:log V 335 - Revert the part of r247601 which turned the overtemperature and power fail interrupt shutdown handlers into filters. Shutdown_nice(9) acquires a sleep lock, which filters shouldn't do. It also seems that kern_reboot(9) still may require Giant to be hold. - Correct an incorrect argument to shutdown_nice(9). Submitted by: bde END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-03-02T14:19:08.709200Z K 7 svn:log V 383 Merge from vmc-playground branch: Rename the pv_entry_t iterator from pv_list to pv_next. Besides being more correct technically (as the name seems to suggest this is a list while it is an iterator), it will also be needed by vm_radix work to avoid a nameclash on macro expansions. Sponsored by: EMC / Isilon storage division Reviewed by: alc, jeff Tested by: flo, pho, jhb, davide END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-03-02T14:28:31.455968Z K 7 svn:log V 4 MFC END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-03-02T14:35:15.867004Z K 7 svn:log V 24 Merge from vmcontention END K 10 svn:author V 3 dim K 8 svn:date V 27 2013-03-02T14:39:48.147451Z K 7 svn:log V 317 MFC r247205: Pull in r175962 from upstream llvm trunk: X86: Disable cmov-memory patterns on subtargets without cmov. Fixes PR15115. For the i386 arch, this should enable cmov instructions only on -march=pentiumpro and higher. Since our default CPU is i486, cmov instructions will now be disabled by default. END K 10 svn:author V 8 melifaro K 8 svn:date V 27 2013-03-02T14:47:10.453042Z K 7 svn:log V 120 Fix callout expiring dynamic rules. PR: kern/175530 Submitted by: Vladimir Spiridenkov MFC after: 2 weeks END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-03-02T14:48:41.286665Z K 7 svn:log V 4 MFC END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-03-02T14:54:33.710889Z K 7 svn:log V 266 Garbage collect HPFS bits which are now already completely disconnected from the tree since few months (please note that the userland bits were already disconnected since a long time, thus there is no need to update the OLD* entries). This is not targeted for MFC. END K 10 svn:author V 8 melifaro K 8 svn:date V 27 2013-03-02T15:11:20.774991Z K 7 svn:log V 5083 Merge * r233937 - Improve BPF locking model * r233938 - Improve performace for writer-only BPF users * r233946 - Fix build * r235744 - Fix (new) panic on attaching to non-existent interface * r235745 - Fix old panic when BPF consumer attaches to destroying interface * r235746 - Call bpf_jitter() before acquiring BPF global lock * r235747 - Make most BPF ioctls() SMP-safe. * r236231 - Fix BPF_JITTER code broken by r235746. * r236251 - Fix shim for BIOCSETF to drop all packets buffered on the descriptor. * r236261 - Save the previous filter right before we set new one. * r236262 - Fix style(9) nits, reduce unnecessary type castings. * r236559 - Fix panic introduced by r235745 * r236806 - Fix typo introduced in r236559. r233937 - Improve BPF locking model. Interface locks and descriptor locks are converted from mutex(9) to rwlock(9). This greately improves performance: in most common case we need to acquire 1 reader lock instead of 2 mutexes. - Remove filter(descriptor) (reader) lock in bpf_mtap[2] This was suggested by glebius@. We protect filter by requesting interface writer lock on filter change. - Cover struct bpf_if under BPF_INTERNAL define. This permits including bpf.h without including rwlock stuff. However, this is is temporary solution, struct bpf_if should be made opaque for any external caller. r233938 - Improve performace for writer-only BPF users. Linux and Solaris (at least OpenSolaris) has PF_PACKET socket families to send raw ethernet frames. The only FreeBSD interface that can be used to send raw frames is BPF. As a result, many programs like cdpd, lldpd, various dhcp stuff uses BPF only to send data. This leads us to the situation when software like cdpd, being run on high-traffic-volume interface significantly reduces overall performance since we have to acquire additional locks for every packet. Here we add sysctl that changes BPF behavior in the following way: If program came and opens BPF socket without explicitly specifyin read filter we assume it to be write-only and add it to special writer-only per-interface list. This makes bpf_peers_present() return 0, so no additional overhead is introduced. After filter is supplied, descriptor is added to original per-interface list permitting packets to be captured. Unfortunately, pcap_open_live() sets catch-all filter itself for the purpose of setting snap length. Fortunately, most programs explicitly sets (event catch-all) filter after that. tcpdump(1) is a good example. So a bit hackis approach is taken: we upgrade description only after second BIOCSETF is received. Sysctl is named net.bpf.optimize_writers and is turned off by default. - While here, document all sysctl variables in bpf.4 r233946 Fix build broken by r233938. r235744 Fix panic on attaching to non-existent interface (introduced by r233937, pointed by hrs@) Fix panic on tcpdump being attached to interface being removed (introduced by r233937, pointed by hrs@ and adrian@) Protect most of bpf_setf() by BPF global lock Add several forgotten assertions (thanks to adrian@) Document current locking model inside bpf.c Document EVENTHANDLER(9) usage inside BPF. r235745 Fix old panic when BPF consumer attaches to destroying interface. 'flags' field is added to the end of bpf_if structure. Currently the only flag is BPFIF_FLAG_DYING which is set on bpf detach and checked by bpf_attachd() Problem can be easily triggered on SMP stable/[89] by the following command (sort of): 'while true; do ifconfig vlan222 create vlan 222 vlandev em0 up ; \ tcpdump -pi vlan222 & ; ifconfig vlan222 destroy ; done' Fix possible use-after-free when BPF detaches itself from interface, freeing bpf_bif memory, while interface is still UP and there can be routes via this interface. Freeing is now delayed till ifnet_departure_event is received via eventhandler(9) api. Convert bpfd rwlock back to mutex due lack of performance gain (currently checking if packet matches filter is done without holding bpfd lock and we have to acquire write lock if packet matches) r235746 Call bpf_jitter() before acquiring BPF global lock due to malloc() being used inside bpf_jitter. Eliminate bpf_buffer_alloc() and allocate BPF buffers on descriptor creation and BIOCSBLEN ioctl. This permits us not to allocate buffers inside bpf_attachd() which is protected by global lock. r235747 Make most BPF ioctls() SMP-safe. r236559 Fix panic introduced by r235745. Panic occurs after first packet traverse renamed interface. Add several comments on locking r236231 Fix BPF_JITTER code broken by r235746. r236251 Fix 32-bit shim for BIOCSETF to drop all packets buffered on the descriptor and reset statistics as it should. r236261 - Save the previous filter right before we set new one. - Reduce duplicate code and make it little easier to read. r236262 Fix style(9) nits, reduce unnecessary type castings, etc., for bpf_setf(). r236806 Fix typo introduced in r236559. END K 10 svn:author V 3 mav K 8 svn:date V 27 2013-03-02T15:33:06.440986Z K 7 svn:log V 23 Remove extra variable. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-03-02T15:33:54.080634Z K 7 svn:log V 134 Garbage collect XFS bits which are now already completely disconnected from the tree since few months. This is not targeted for MFC. END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-03-02T15:54:02.404023Z K 7 svn:log V 368 - Complete r231621 by also blacklisting the bridge used by VMware for PCIe devices. While at it, update the comment now that we know that MSI-X doesn't work with ESXi 5.1 for Intel 82576 either and the underlying issue is a bug in the MSI-X allocation code of the hypervisor. Reported by: Harald Schmalzbauer - Make the nomatch table const. MFC after: 1 week END K 10 svn:author V 3 mav K 8 svn:date V 27 2013-03-02T16:07:55.415662Z K 7 svn:log V 61 Remove some code duplication due to ET_HW_UNLOCK() inlining. END K 10 svn:author V 6 dteske K 8 svn:date V 27 2013-03-02T16:18:40.325941Z K 7 svn:log V 189 Update FTP directories to include new layout. Previously discussed with kensmith and others as this alleviates the need for the symbolic link upkeep which is currently manually maintained. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-03-02T16:30:18.828011Z K 7 svn:log V 135 Garbage collect CODAFS bits which are now completely disconnected from the tree since few months. This patch is not targeted for MFC. END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-03-02T16:33:39.888373Z K 7 svn:log V 66 MFC: r235643 Properly use LDADD & DPADD to link against libwrap. END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-03-02T16:33:43.598012Z K 7 svn:log V 66 MFC: r235643 Properly use LDADD & DPADD to link against libwrap. END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-03-02T16:38:58.541613Z K 7 svn:log V 78 MFC: r241720 (partial) Fix warnings found by -Wmising-variable-declarations. END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-03-02T16:39:00.265404Z K 7 svn:log V 78 MFC: r241720 (partial) Fix warnings found by -Wmising-variable-declarations. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-03-02T16:43:28.316372Z K 7 svn:log V 137 Garbage collect PORTALFS bits which are now completely disconnected from the tree since few months. This patch is not targeted for MFC. END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-03-02T16:45:58.314115Z K 7 svn:log V 52 MFC: r229780 (partial) Spelling fixes for libexec/ END K 10 svn:author V 7 dchagin K 8 svn:date V 27 2013-03-02T17:06:39.670243Z K 7 svn:log V 108 To allow to run the interpreter itself add a new ELF branding type. Allow Linux ABI to run ELF interpreter. END K 10 svn:author V 7 dchagin K 8 svn:date V 27 2013-03-02T17:08:14.500960Z K 7 svn:log V 70 Linux do not allow an mmap() offset which is not modulo the pagesize. END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-03-02T17:14:51.810278Z K 7 svn:log V 84 MFC: r246106, r246139 Mark tftp_log() as __printflike() and deal with the fallout. END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-03-02T17:14:53.915416Z K 7 svn:log V 84 MFC: r246106, r246139 Mark tftp_log() as __printflike() and deal with the fallout. END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-03-02T17:18:38.607721Z K 7 svn:log V 110 MFC: r244686 Use correct size in snprintf. Remove unused buffer. PR: 174631 Submitted by: Henning Petersen END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-03-02T17:21:44.612381Z K 7 svn:log V 64 MFC: r231973 Avoid error log for transfer stop w/o error code. END K 10 svn:author V 3 mav K 8 svn:date V 27 2013-03-02T17:23:47.574998Z K 7 svn:log V 66 Revert r237068. It is not needed after namespace pollution fixed. END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-03-02T17:24:29.231919Z K 7 svn:log V 74 MFC: r233648 (partial) Remove trailing whitespace per mdoc lint warning. END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-03-02T17:25:41.272734Z K 7 svn:log V 62 MFC: r235857 mdoc: Only use macros inside a reference block. END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-03-02T17:25:45.118436Z K 7 svn:log V 62 MFC: r235857 mdoc: Only use macros inside a reference block. END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-03-02T17:32:15.098999Z K 7 svn:log V 352 MFC: r246257 Improve r238673 (MFC'ed to stable/9 in r239494) to additionally allow for odd-aligned buffers as passed in by smartd of smartmontools. While at it, hint the compiler that 32-bit PIO is the most likely case (idea from Linux) and use bus_{read,write}_stream_2(9) instead of bus_{read,write}_multi_stream_2(9) for single count reads/writes. END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-03-02T17:32:20.309485Z K 7 svn:log V 352 MFC: r246257 Improve r238673 (MFC'ed to stable/8 in r239495) to additionally allow for odd-aligned buffers as passed in by smartd of smartmontools. While at it, hint the compiler that 32-bit PIO is the most likely case (idea from Linux) and use bus_{read,write}_stream_2(9) instead of bus_{read,write}_multi_stream_2(9) for single count reads/writes. END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-03-02T17:36:29.688549Z K 7 svn:log V 104 MFC: r246300 - Make pci_ns8250_ids[] const. - Use DEVMETHOD_END. - Use NULL instead of 0 for pointers. END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-03-02T17:36:31.748759Z K 7 svn:log V 104 MFC: r246300 - Make pci_ns8250_ids[] const. - Use DEVMETHOD_END. - Use NULL instead of 0 for pointers. END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-03-02T17:39:11.614259Z K 7 svn:log V 132 MFC: r246689, r246696 Make SYSCTL_{LONG,QUAD,ULONG,UQUAD}(9) work as advertised and also handle constant values. Reviewed by: kib END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-03-02T17:39:20.321270Z K 7 svn:log V 132 MFC: r246689, r246696 Make SYSCTL_{LONG,QUAD,ULONG,UQUAD}(9) work as advertised and also handle constant values. Reviewed by: kib END K 10 svn:author V 3 flo K 8 svn:date V 27 2013-03-02T17:51:22.596045Z K 7 svn:log V 164 MFC: r242854 (by rdivacky) Initialize hdrlen to 0 to avoid clang warning in NOINET case. This fixes the kernel build for INET6 only kernels. Approved by: cognet END K 10 svn:author V 3 alc K 8 svn:date V 27 2013-03-02T18:07:29.556101Z K 7 svn:log V 235 The value held by the vm object's field pg_color is only considered valid if the flag OBJ_COLORED is set. Since _vm_object_allocate() doesn't set this flag, it needn't initialize pg_color. Sponsored by: EMC / Isilon Storage Division END K 10 svn:author V 8 schweikh K 8 svn:date V 27 2013-03-02T18:08:03.330508Z K 7 svn:log V 94 Comment cosmetics: capitalize SCSI Fix some hard tabs in the wrong place. MFC after: 2 weeks END K 10 svn:author V 3 alc K 8 svn:date V 27 2013-03-02T18:18:30.222315Z K 7 svn:log V 453 Assert that the trie is empty when a vm object is destroyed. Since vm objects are allocated from type-stable memory, we don't need to initialize the trie's root in _vm_object_allocate() on every vm object allocation. We can instead do it once in vm_object_zinit(). We don't need to call vm_radix_reclaim_allnodes() in vm_object_terminate() unless the resident page count is non-zero. Reviewed by: attilio Sponsored by: EMC / Isilon Storage Division END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-03-02T18:23:59.761448Z K 7 svn:log V 130 Remove ntfs headers dependency for g_label_ntfs.c by redefining the used structs and values. This patch is not targeted for MFC. END K 10 svn:author V 3 alc K 8 svn:date V 27 2013-03-02T18:27:51.837644Z K 7 svn:log V 73 Revert white space change in the previous commit. Requested by: attilio END K 10 svn:author V 7 dchagin K 8 svn:date V 27 2013-03-02T18:38:29.403998Z K 7 svn:log V 74 Fix a bug introduced in r247493. Use proper type to handle ia32 pointers. END