Ļ255144 187 412 129 221 135 146 399 208 121 235 327 251 147 157 536 416 273 312 117 184 296 293 164 158 313 385 336 265 232 125 160 110 137 136 121 494 426 155 103 108 1025 108 377 186 833 1025 99 149 401 200 123 195 178 277 277 318 130 128 106 184 112 180 125 363 1175 136 592 329 168 180 177 109 573 468 1137 750 3473 156 174 105 115 109 197 144 727 112 192 167 1205 286 356 191 179 155 138 168 121 165 168 119 159 639 910 134 107 368 145 114 111 388 113 130 255 328 226 249 162 260 407 233 108 222 310 140 127 170 188 149 214 221 425 190 213 189 196 208 219 213 158 138 195 680 337 226 290 280 338 107 105 253 109 574 265 144 262 134 972 407 274 138 492 154 174 352 214 388 243 179 295 456 158 150 140 162 97 178 235 231 850 193 144 205 179 243 171 352 401 150 K 10 svn:author V 3 mav K 8 svn:date V 27 2013-09-02T10:44:54.432548Z K 7 svn:log V 319 Make ELI destruction (including orphanization) less aggressive, making it always wait for provider close. Old algorithm was reported to cause NULL dereference panic on attempt to close provider after softc destruction. If not global workaroung in GEOM, that could even cause destruction with requests still in flight. END K 10 svn:author V 3 mav K 8 svn:date V 27 2013-09-02T11:35:55.373357Z K 7 svn:log V 37 Remove some residual SIM references. END K 10 svn:author V 6 emaste K 8 svn:date V 27 2013-09-02T12:37:33.485597Z K 7 svn:log V 125 libexecinfo compatibility with devel/libexecinfo port 1. Match shlib number 2. Add libelf dependency Suggested by: bapt[1] END K 10 svn:author V 3 mav K 8 svn:date V 27 2013-09-02T13:24:07.545947Z K 7 svn:log V 43 Remove some unneeded pointer dereferences. END K 10 svn:author V 3 mav K 8 svn:date V 27 2013-09-02T15:06:09.058650Z K 7 svn:log V 54 Remove some unused variables found by clang analyzer. END K 10 svn:author V 6 cognet K 8 svn:date V 27 2013-09-02T15:52:48.384775Z K 7 svn:log V 303 Please Welcome Ruslan Bukin (br@) and Zbigniew Bodek (zbb@) to my ever-growing army of mentees. Ruslan gave us Exynos 5 support, and wrote the hdspe audio driver. Zbigniew is known to provide many good patches, mostly in the ARM VM area, is most recent work being superpages support. Approved by: core END K 10 svn:author V 3 mav K 8 svn:date V 27 2013-09-02T16:20:10.998714Z K 7 svn:log V 115 - Add missing locking around cam_ccbq_resize() call. - Reshuffle xpt_done_process() to reduce device lock scope. END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2013-09-02T17:07:46.399818Z K 7 svn:log V 26 Revert accidental commit. END K 10 svn:author V 6 eadler K 8 svn:date V 27 2013-09-02T18:25:18.040842Z K 7 svn:log V 139 synaptics and trackpoint support are stable enough to be on by default. Eventually both options should be removed. Reviewed by: dumbbell END K 10 svn:author V 8 dumbbell K 8 svn:date V 27 2013-09-02T19:15:20.611810Z K 7 svn:log V 229 psm: Add support for middle and extended buttons on Synaptics touchpads PR: kern/170834 Submitted by: Brandon Gooch Tested by: Artyom Mirgorodskiy MFC after: 1 month END K 10 svn:author V 8 dumbbell K 8 svn:date V 27 2013-09-02T19:49:18.962184Z K 7 svn:log V 153 sys/mouse.h: Move members introduced in r255153 to end of struct synapticshw I didn't know this structure was public and didn't pay enough attention... END K 10 svn:author V 4 syuu K 8 svn:date V 27 2013-09-02T20:35:39.944296Z K 7 svn:log V 54 mbuf queueid/queuetype, bpf_qmask_bits_t(kernel part) END K 10 svn:author V 3 hrs K 8 svn:date V 27 2013-09-02T20:44:19.097685Z K 7 svn:log V 65 Ignore if the interface is not IPv6-capable. Spotted by: rpaulo END K 10 svn:author V 6 jilles K 8 svn:date V 27 2013-09-02T21:57:46.284890Z K 7 svn:log V 440 sh: Fix race condition with signals and wait or set -T. The change in r238888 was incomplete. It was still possible for a trapped signal to arrive before the shell went to sleep (sigsuspend()) because a check was missing or because the signal arrived before in_waitcmd was set. On SMP, this bug sometimes caused the builtins/wait4.0 test to take 1 second to execute; it then might or might not fail. On UP, the test almost always failed. END K 10 svn:author V 5 gibbs K 8 svn:date V 27 2013-09-02T22:22:56.033093Z K 7 svn:log V 321 Better conformance to style(9) and organizational cleanup. No functional changes. sys/i386/xen/mp_machdep.c: Remove extra newlines. Group externs, forward delarations, local types, and pcpu data. Wrap at 80 columns. Use parens in return statements. Tab indent members of array initializers. MFC after: 2 weeks END K 10 svn:author V 3 mav K 8 svn:date V 27 2013-09-02T22:45:49.453740Z K 7 svn:log V 180 - Since we no longer have allocation queue, make send queue include devices without additional indirection. - Avoid grabbing device lock inside xpt_done_process() when possible. END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2013-09-02T22:48:41.874722Z K 7 svn:log V 216 All changes affect only SCTP-AUTH: * Remove non working code related to SHA224. * Remove support for non-standardised HMAC-IDs using SHA384 and SHA512. * Prefer SHA256 over SHA1. * Minor cleanup. MFC after: 2 weeks END K 10 svn:author V 8 jhibbits K 8 svn:date V 27 2013-09-02T23:22:05.256594Z K 7 svn:log V 20 Whitespace cleanup. END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2013-09-02T23:27:53.346196Z K 7 svn:log V 89 Use uint16_t instead of in_port_t for consistency with the SCTP code. MFC after: 1 week END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-09-02T23:52:25.565466Z K 7 svn:log V 199 Create the default router last. This allows using an static interface route for default routes, which seems to be common among many dedicated hosting providers. Reviewed by: hrs MFC after: 2 weeks END K 10 svn:author V 8 jhibbits K 8 svn:date V 27 2013-09-03T00:34:18.486401Z K 7 svn:log V 195 Refactor PowerPC hwpmc(4) driver into generic and specific. More refactoring will likely be done as more drivers are added, since AIM-compatible processors have similar PMC configuration logic. END K 10 svn:author V 8 jhibbits K 8 svn:date V 27 2013-09-03T00:42:15.816503Z K 7 svn:log V 67 Enable PMC interrupt handling, and fix a DTrace trap handling bug. END K 10 svn:author V 6 bryanv K 8 svn:date V 27 2013-09-03T02:26:57.523152Z K 7 svn:log V 63 Fix unintended compiler constant folding Pointed out by: dim@ END K 10 svn:author V 6 bryanv K 8 svn:date V 27 2013-09-03T02:28:31.342155Z K 7 svn:log V 217 Complete any pending Tx frames before attempting the next transmit Also complete pending frames in the watchdog function when the EVENT_IDX feature was negotiated just in case the completion interrupt was postponed. END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-09-03T05:20:42.830266Z K 7 svn:log V 292 MFC r254945: When allocating a pbuf for the cluster write, do not sleep waiting for the available pbuf when passed vnode is backing md(4). Other i/o directed to the same md device might already hold pbufs, and then we could deadlock since only our progress can free a pbuf needed for wakeup. END K 10 svn:author V 3 jlh K 8 svn:date V 27 2013-09-03T07:47:53.339712Z K 7 svn:log V 243 Since r254974, periodic scripts' period can be configured independently. There is no reason to leave their options with the daily ones, so move them to their own section. Move periodic scripts' options into their own section. Since r254974, END K 10 svn:author V 3 jlh K 8 svn:date V 27 2013-09-03T07:51:06.389029Z K 7 svn:log V 172 Since r254974, periodic scripts' period can be configured independently. There is no reason to leave their options with the daily ones, so move them to their own section. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2013-09-03T08:19:06.227741Z K 7 svn:log V 135 Document SIGLIBRT in signal(3); take a stab at the signal description as the original committer didn't provide one. MFC after: 3 days END K 10 svn:author V 4 syuu K 8 svn:date V 27 2013-09-03T08:28:27.390291Z K 7 svn:log V 32 bpf_qmask_bits_t(userland part) END K 10 svn:author V 3 des K 8 svn:date V 27 2013-09-03T09:36:43.272158Z K 7 svn:log V 68 No need to build 8.4 now that it's been released. Add 9.2 instead. END K 10 svn:author V 3 uqs K 8 svn:date V 27 2013-09-03T12:08:08.083283Z K 7 svn:log V 18 Fix 'make depend' END K 10 svn:author V 6 emaste K 8 svn:date V 27 2013-09-03T13:31:43.005370Z K 7 svn:log V 42 Don't install private libexecinfo headers END K 10 svn:author V 6 emaste K 8 svn:date V 27 2013-09-03T13:36:23.242290Z K 7 svn:log V 41 Add $FreeBSD$ tag for user-facing header END K 10 svn:author V 6 emaste K 8 svn:date V 27 2013-09-03T13:38:41.960945Z K 7 svn:log V 26 Add svn:keywords property END K 10 svn:author V 3 jlh K 8 svn:date V 27 2013-09-03T13:40:24.915583Z K 7 svn:log V 401 Include the calling context in the mail subject, if any. More concretely, periodic security scripts defaults to being called from daily ones -- daily context -- so the mail subject will now be "${HOST} daily security run output" instead of "{HOST} security run output". If you switch the period of some security checks to weekly, you will receive another email "${HOST} weekly security run output". END K 10 svn:author V 5 gibbs K 8 svn:date V 27 2013-09-03T13:49:00.805206Z K 7 svn:log V 331 sys/dev/xen/blkback/blkback.c: Initialize the request id for requests in xbb_get_resources() instead of its previous location in xbb_dispatch_io(). This guarantees that all request types (e.g. BLKIF_OP_FLUSH_DISKCACHE) have the front-end specified id recorded. Submitted by: Roger Pau Monn̩ Sponsored by: Citrix Systems R&D END K 10 svn:author V 6 emaste K 8 svn:date V 27 2013-09-03T15:22:04.925036Z K 7 svn:log V 60 Connect libexecinfo to the build Sponsored by: DARPA, AFRL END K 10 svn:author V 4 syuu K 8 svn:date V 27 2013-09-03T15:33:51.262043Z K 7 svn:log V 10 sync head END K 10 svn:author V 4 syuu K 8 svn:date V 27 2013-09-03T16:15:28.665317Z K 7 svn:log V 15 sync with head END K 10 svn:author V 3 pfg K 8 svn:date V 27 2013-09-03T16:29:14.242239Z K 7 svn:log V 932 Add read-only support for extents in ext2fs. Basic support for extents was implemented by Zheng Liu as part of his Google Summer of Code in 2010. This support is read-only at this time. In addition to extents we also support the huge_file extension for read-only purposes. This works nicely with the additional support for birthtime/nanosec timestamps and dir_index that have been added lately. The implementation may not work for all ext4 filesystems as it doesn't support some features that are being enabled by default on recent linux like flex_bg. Nevertheless, the feature should be very useful for migration or simple access in filesystems that have been converted from ext2/3 or don't use incompatible features. Special thanks to Zheng Liu for his dedication and continued work to support ext2 in FreeBSD. Submitted by: Zheng Liu (lz@) Reviewed by: Mike Ma, Christoph Mallon (previous version) Sponsored by: Google Inc. END K 10 svn:author V 4 syuu K 8 svn:date V 27 2013-09-03T17:02:38.032119Z K 7 svn:log V 15 sync with head END K 10 svn:author V 3 jmg K 8 svn:date V 27 2013-09-03T17:33:29.575892Z K 7 svn:log V 284 add support to gcc for AES and PCLMUL intrinsics... This addes the -maes option, but not the -mpclmul option as I ran out of bits in the 32 bit flags field... You can -D__PCLMUL__ to get this, but it won't be compatible w/ clang and modern gcc... Reviewed by: -current, -toolchain END K 10 svn:author V 4 syuu K 8 svn:date V 27 2013-09-03T18:14:30.406915Z K 7 svn:log V 93 remove if_get_num_rxqueue/if_get_num_txqueue/if_get_rxqueue_affinity/if_get_txqueue_affinity END K 10 svn:author V 3 jmg K 8 svn:date V 27 2013-09-03T18:31:23.490015Z K 7 svn:log V 740 Use the fact that the AES-NI instructions can be pipelined to improve performance... Use SSE2 instructions for calculating the XTS tweek factor... Let the compiler do more work and handle register allocation by using intrinsics, now only the key schedule is in assembly... Replace .byte hard coded instructions w/ the proper instructions now that both clang and gcc support them... On my machine, pulling the code to userland I saw performance go from ~150MB/sec to 2GB/sec in XTS mode. GELI on GNOP saw a more modest increase of about 3x due to other system overhead (geom and opencrypto)... These changes allow almost full disk io rate w/ geli... Reviewed by: -current, -security Thanks to: Mike Hamburg for the XTS tweek algorithm END K 10 svn:author V 3 pfg K 8 svn:date V 27 2013-09-03T18:46:11.602074Z K 7 svn:log V 932 Add read-only support for extents in ext2fs. Basic support for extents was implemented by Zheng Liu as part of his Google Summer of Code in 2010. This support is read-only at this time. In addition to extents we also support the huge_file extension for read-only purposes. This works nicely with the additional support for birthtime/nanosec timestamps and dir_index that have been added lately. The implementation may not work for all ext4 filesystems as it doesn't support some features that are being enabled by default on recent linux like flex_bg. Nevertheless, the feature should be very useful for migration or simple access in filesystems that have been converted from ext2/3 or don't use incompatible features. Special thanks to Zheng Liu for his dedication and continued work to support ext2 in FreeBSD. Submitted by: Zheng Liu (lz@) Reviewed by: Mike Ma, Christoph Mallon (previous version) Sponsored by: Google Inc. END K 10 svn:author V 4 syuu K 8 svn:date V 27 2013-09-03T19:07:01.972778Z K 7 svn:log V 7 bpfq.h END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2013-09-03T19:31:59.433719Z K 7 svn:log V 54 Remove redundant field pr_sctp_on. MFC after: 1 week END K 10 svn:author V 3 pfg K 8 svn:date V 27 2013-09-03T20:03:10.445436Z K 7 svn:log V 308 Remove our hacked GNU patch. The old (2.1) GNU patch has outlived its days. The major local changes have been moved into the less restrictedly licensed patch(1) we adopted in usr.bin/ . A much newer version of GNU patch is available in the ports tree (devel/patch). Disconnect from the build and remove. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2013-09-03T21:21:47.508285Z K 7 svn:log V 107 Add support for the 'invpcid' instruction to binutils and DDB's disassembler on amd64. MFC after: 1 month END K 10 svn:author V 4 syuu K 8 svn:date V 27 2013-09-03T21:30:42.037068Z K 7 svn:log V 30 remove IFQLEN/AFFINITY ioctls END K 10 svn:author V 3 imp K 8 svn:date V 27 2013-09-03T22:04:55.576091Z K 7 svn:log V 102 Newer versions of gcc define __INT64_C and __UINT64_C, so avoid redefining them if gcc provides them. END K 10 svn:author V 6 sbruno K 8 svn:date V 27 2013-09-03T22:33:06.782931Z K 7 svn:log V 83 Add options GEOM_PART_GPT and options MSDOSFS to the DIR-825 Reviewed by: adrian@ END K 10 svn:author V 5 markj K 8 svn:date V 27 2013-09-03T23:17:18.083854Z K 7 svn:log V 182 MFC r254018: Pass variables prefixed with both LD_ and LD_32_ to the run-time linker. This prevents unintentional execution of programs when running ldd(1) on 32-bit Linux binaries. END K 10 svn:author V 5 markj K 8 svn:date V 27 2013-09-03T23:20:03.855330Z K 7 svn:log V 182 MFC r254018: Pass variables prefixed with both LD_ and LD_32_ to the run-time linker. This prevents unintentional execution of programs when running ldd(1) on 32-bit Linux binaries. END K 10 svn:author V 2 np K 8 svn:date V 27 2013-09-03T23:34:04.788641Z K 7 svn:log V 226 For TOE connections, the window scale factor in CPL_PASS_ACCEPT_REQ is set to 15 to indicate that the peer did not send a window scale option with its SYN. Do not send a window scale option in the SYN|ACK reply in that case. END K 10 svn:author V 8 jhibbits K 8 svn:date V 27 2013-09-04T04:11:38.709713Z K 7 svn:log V 33 Fix hwpmc(4) for 32-bit PowerPC. END K 10 svn:author V 4 syuu K 8 svn:date V 27 2013-09-04T07:09:56.737399Z K 7 svn:log V 35 forgot to add bpfq.h, now commited END K 10 svn:author V 3 mav K 8 svn:date V 27 2013-09-04T08:01:11.052235Z K 7 svn:log V 14 MFC @ r255200 END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-09-04T10:17:50.078405Z K 7 svn:log V 88 Make default cache size more modern. Requested by: Slawa Olhovchenkov END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-09-04T11:27:51.129387Z K 7 svn:log V 16 Sync with head. END K 10 svn:author V 2 br K 8 svn:date V 27 2013-09-04T11:28:47.980624Z K 7 svn:log V 89 - Add myself as a src committer - Note cognet is my mentor Approved by: cognet (mentor) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2013-09-04T11:52:28.346630Z K 7 svn:log V 33 Trim a couple of panic messages. END K 10 svn:author V 8 theraven K 8 svn:date V 27 2013-09-04T15:02:14.954038Z K 7 svn:log V 265 Add a c++/v1/tr1 include directory containing symlinks to all of the standard headrs. Lots of third-party code expects to find C++03 headers under tr1 because that's where GNU decided to hide them. This should fix ports that expect them there. MFC after: 1 week END K 10 svn:author V 6 brooks K 8 svn:date V 27 2013-09-04T17:19:21.792602Z K 7 svn:log V 1078 MFP4 217312, 222008, 222052, 222053, 222673, 231484, 231491, 231565, 570643 Rework the timeout code to use actual time rather than a DELAY() loop and to use both typical and maximum to allow logging of timeout failures. Also correct the erase timeout, it is specified in milliseconds not microseconds like the other timeouts. Do not invoke DELAY() between status queries as this adds significant latency which in turn reduced write performance substantially. Sanity check timeout values from the hardware. Implement support for buffered writes (only enabled on Intel/Sharp parts for now). This yields an order of magnitude speedup on the 64MB Intel StrataFlash parts we use. When making a copy of the block to modify, also keep a clean copy around until we are ready to commit the block and use it to avoid unnecessary erases. In the non-buffer write case, also use it to avoid unnecessary writes when the block has not been erased. This yields a significant speedup when doing things like zeroing a block. Sponsored by: DARPA, AFRL Reviewed by: imp (previous version) END K 10 svn:author V 3 jmg K 8 svn:date V 27 2013-09-04T17:48:41.421219Z K 7 svn:log V 44 add links for the various vmem functions... END K 10 svn:author V 3 gjb K 8 svn:date V 27 2013-09-04T18:20:24.306595Z K 7 svn:log V 499 Reduce the disc1.iso image size by setting WITHOUT_CLANG=1 for the 'system' target. Since clang is not enabled by default for releng/9.2, this has no user visible changes by default. This brings 9.2-R* well enough below the 700MB mark so that we do not need to be concerned with it fitting on standard CD-ROM medium. This is a direct commit to releng/9.2, pending further review for head/ and stable/9/. Discussed with: delphij, hrs Approved by: re (marius) Sponsored by: The FreeBSD Foundation END K 10 svn:author V 6 eadler K 8 svn:date V 27 2013-09-04T18:42:05.723776Z K 7 svn:log V 233 Revert r255152: It turns out that synaptics_support was turned off by default because its probing method is too intrusive not because it was unstable. Once this is fixed it should be enabled once again. Reported by: delphij, jkim END K 10 svn:author V 3 gnn K 8 svn:date V 27 2013-09-04T20:12:33.348810Z K 7 svn:log V 76 Add myself to the list of ports committers. Approved by: skreuzer (mentor) END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2013-09-04T20:34:36.006569Z K 7 svn:log V 86 Add 32-bit support for Gxemul's oldtestmips machine emulation Original work by: kan@ END K 10 svn:author V 3 zbb K 8 svn:date V 27 2013-09-04T20:49:32.649396Z K 7 svn:log V 85 Add myself as a new committer and cognet as my mentor. Approved by: cognet (mentor) END K 10 svn:author V 6 grehan K 8 svn:date V 27 2013-09-04T20:55:56.983395Z K 7 svn:log V 14 IFC @ r255209 END K 10 svn:author V 6 jilles K 8 svn:date V 27 2013-09-04T22:10:16.665866Z K 7 svn:log V 477 sh: Make return return from the closest function or dot script. Formerly, return always returned from a function if it was called from a function, even if there was a closer dot script. This was for compatibility with the Bourne shell which only allowed returning from functions. Other modern shells and POSIX return from the function or the dot script, whichever is closest. Git 1.8.4's rebase --continue depends on the POSIX behaviour. Reported by: Christoph Mallon, avg END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2013-09-04T22:47:56.425618Z K 7 svn:log V 370 Crashes have been observed for NFSv4.1 mounts when the system is being shut down which were caused by the nfscbd_pool being destroyed before the backchannel is disabled. This patch is believed to fix the problem, by simply avoiding ever destroying the nfscbd_pool. Since the NFS client module cannot be unloaded, this should not cause a memory leak. MFC after: 2 weeks END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-09-04T23:31:29.070773Z K 7 svn:log V 1043 Tidy up some loose ends in the PCID code: - Restore the pre-PCID TLB shootdown handlers for whole address space and single page invalidation asm code, and assign the IPI handler to them when PCID is not supported or disabled. Old handlers have linear control flow. But, still use the common return sequence. - Stop using pcpu for INVPCID descriptors in the invlrg handler. It is enough to allocate descriptors on the stack. As result, two SWAPGS instructions are shaved off from the code for Haswell+. - Fix the reverted condition in invlrng for checking of the PCID support [1], also in invlrng check that pmap is kernel pmap before performing other tests. For the kernel pmap, which provides global mappings, the INVLPG must be used for invalidation always. - Save the pre-computed pmap' %CR3 register in the struct pmap. This allows to remove several checks for pm_pcid validity when %CR3 is reloaded [2]. Noted by: gibbs [1] Discussed with: alc [2] Tested by: pho, flo Sponsored by: The FreeBSD Foundation END K 10 svn:author V 5 gibbs K 8 svn:date V 27 2013-09-04T23:32:49.355375Z K 7 svn:log V 655 Correct blkback handling of the BLKIF_OP_FLUSH_DISKCACHE opcode. Properly round-trip the "operation code" for client requests. sys/dev/xen/blkback/blkback.c: In xbb_dispatch_dev() when processing a flush request, correctly set bio->bio_caller1 to the request list (not bare request) for the operation, as is expected by the completion handler xbb_bio_done(). In xbb_get_resources(), initialize "operation" in the driver's internal request object from the client's "ring request", so it is correct when used to populate the reply when this operation completes. Submitted by: Roger Pau Monn̩ Sponsored by: Citrix Systems R&D Reviewed by: gibbs END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-09-05T00:09:56.917034Z K 7 svn:log V 3379 Change the cap_rights_t type from uint64_t to a structure that we can extend in the future in a backward compatible (API and ABI) way. The cap_rights_t represents capability rights. We used to use one bit to represent one right, but we are running out of spare bits. Currently the new structure provides place for 114 rights (so 50 more than the previous cap_rights_t), but it is possible to grow the structure to hold at least 285 rights, although we can make it even larger if 285 rights won't be enough. The structure definition looks like this: struct cap_rights { uint64_t cr_rights[CAP_RIGHTS_VERSION + 2]; }; The initial CAP_RIGHTS_VERSION is 0. The top two bits in the first element of the cr_rights[] array contain total number of elements in the array - 2. This means if those two bits are equal to 0, we have 2 array elements. The top two bits in all remaining array elements should be 0. The next five bits in all array elements contain array index. Only one bit is used and bit position in this five-bits range defines array index. This means there can be at most five array elements in the future. To define new right the CAPRIGHT() macro must be used. The macro takes two arguments - an array index and a bit to set, eg. #define CAP_PDKILL CAPRIGHT(1, 0x0000000000000800ULL) We still support aliases that combine few rights, but the rights have to belong to the same array element, eg: #define CAP_LOOKUP CAPRIGHT(0, 0x0000000000000400ULL) #define CAP_FCHMOD CAPRIGHT(0, 0x0000000000002000ULL) #define CAP_FCHMODAT (CAP_FCHMOD | CAP_LOOKUP) There is new API to manage the new cap_rights_t structure: cap_rights_t *cap_rights_init(cap_rights_t *rights, ...); void cap_rights_set(cap_rights_t *rights, ...); void cap_rights_clear(cap_rights_t *rights, ...); bool cap_rights_is_set(const cap_rights_t *rights, ...); bool cap_rights_is_valid(const cap_rights_t *rights); void cap_rights_merge(cap_rights_t *dst, const cap_rights_t *src); void cap_rights_remove(cap_rights_t *dst, const cap_rights_t *src); bool cap_rights_contains(const cap_rights_t *big, const cap_rights_t *little); Capability rights to the cap_rights_init(), cap_rights_set(), cap_rights_clear() and cap_rights_is_set() functions are provided by separating them with commas, eg: cap_rights_t rights; cap_rights_init(&rights, CAP_READ, CAP_WRITE, CAP_FSTAT); There is no need to terminate the list of rights, as those functions are actually macros that take care of the termination, eg: #define cap_rights_set(rights, ...) \ __cap_rights_set((rights), __VA_ARGS__, 0ULL) void __cap_rights_set(cap_rights_t *rights, ...); Thanks to using one bit as an array index we can assert in those functions that there are no two rights belonging to different array elements provided together. For example this is illegal and will be detected, because CAP_LOOKUP belongs to element 0 and CAP_PDKILL to element 1: cap_rights_init(&rights, CAP_LOOKUP | CAP_PDKILL); Providing several rights that belongs to the same array's element this way is correct, but is not advised. It should only be used for aliases definition. This commit also breaks compatibility with some existing Capsicum system calls, but I see no other way to do that. This should be fine as Capsicum is still experimental and this change is not going to 9.x. Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-09-05T00:11:59.670437Z K 7 svn:log V 64 Regenerate after r255219. Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-09-05T00:17:38.311461Z K 7 svn:log V 82 Style fixes. Most fixes are about not treating integers and pointers as booleans. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-09-05T00:19:30.703417Z K 7 svn:log V 13 Style fixes. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-09-05T00:38:53.585045Z K 7 svn:log V 23 Remove trailing comma. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-09-05T00:41:07.596082Z K 7 svn:log V 17 Add missing '2'. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-09-05T00:52:16.905828Z K 7 svn:log V 104 Advise a full buildworld, because of the recent Capsicum changes. Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-09-05T00:53:01.278695Z K 7 svn:log V 52 Add sysctl/tunables for various metaslab variables. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-09-05T01:05:48.907182Z K 7 svn:log V 634 Remove fallback to fork(2) if pdfork(2) is not available. If the parent process dies, the process descriptor will be closed and pdfork(2)ed child will be killed, which is not the case when regular fork(2) is used. The PROCDESC option is now part of the GENERIC kernel configuration, so we can start depending on it. Add UPDATING entry to inform that this option is now required and log detailed instruction to syslog if pdfork(2) is not available: The pdfork(2) system call is not available; recompile the kernel with options PROCDESC Submitted by: Mariusz Zaborski Sponsored by: Google Summer of Code 2013 END K 10 svn:author V 8 jhibbits K 8 svn:date V 27 2013-09-05T01:13:26.590833Z K 7 svn:log V 15 Fix the build. END K 10 svn:author V 6 sbruno K 8 svn:date V 27 2013-09-05T03:36:57.186591Z K 7 svn:log V 97 This looks like a typo that breaks the build. Yell at me if this isn't the intended declaration. END K 10 svn:author V 6 sbruno K 8 svn:date V 27 2013-09-05T03:46:44.171913Z K 7 svn:log V 72 Restore builds on architectures that don't support CAPABILITIES (mips). END K 10 svn:author V 8 mckusick K 8 svn:date V 27 2013-09-05T04:00:48.326932Z K 7 svn:log V 1106 MFS of 255104: MFC of 253998: This bug fix is in a code path in rename taken when there is a collision between a rename and an open system call for the same target file. Here, rename releases its vnode references, waits for the open to finish, and then restarts by reacquiring its needed vnode locks. In this case, rename was unlocking but failing to release its reference to one of its held vnodes. The effect was that even after all the actual references to the vnode had gone, the vnode still showed active references. For files that had been removed, their space was not reclaimed until the filesystem was forcibly unmounted. This bug manifested itself in the Postgres server which would leak/lose hundreds of files per day amounting to many gigabytes of disk space. This bug required shutting down Postgres, forcibly unmounting its filesystem, remounting its filesystem and restarting Postgres every few days to recover the lost space. Reported by: Dan Thomas and Palle Girgensohn Bug-fix by: kib Tested by: Dan Thomas and Palle Girgensohn Approved by: re@ (Marius Strobl ) END K 10 svn:author V 2 se K 8 svn:date V 27 2013-09-05T05:51:15.777862Z K 7 svn:log V 194 Fix file selection logic for the RCS/SCCS case, as was done for the simple file case before. Bump version because of the changed behavior, which now matches the documentation. Reviewed by: pfg END K 10 svn:author V 5 erwin K 8 svn:date V 27 2013-09-05T06:58:49.698339Z K 7 svn:log V 261 MFC r255056 Reduce WARNS to 0 for dig, host, and nslookup to make them compile with the optional WITH_BIND_SIGCHASE. Submitted by: Andre Albsmeier Approved by: delphij (mentor, implicit) Sponsored by: DK Hostmaster A/S END K 10 svn:author V 3 mav K 8 svn:date V 27 2013-09-05T07:13:08.905518Z K 7 svn:log V 99 Add more references. Submitted by: Dmitry Luhtionov MFC after: 1 week END K 10 svn:author V 2 ae K 8 svn:date V 27 2013-09-05T08:12:36.360510Z K 7 svn:log V 88 Remove unused code and sort variables declarations. PR: kern/181822 MFC after: 1 week END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-09-05T09:36:19.932868Z K 7 svn:log V 63 Correct the logic broken in my last commit. Reported by: tijl END K 10 svn:author V 2 ae K 8 svn:date V 27 2013-09-05T09:44:09.129696Z K 7 svn:log V 47 Remove stub implementation. MFC after: 1 week END K 10 svn:author V 2 br K 8 svn:date V 27 2013-09-05T10:09:24.209298Z K 7 svn:log V 77 Add support for DLINK DWA-127 Wireless Adapter Approved by: cognet (mentor) END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-09-05T10:24:09.718248Z K 7 svn:log V 25 Fix !CAPABILITIES build. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-09-05T11:58:12.445546Z K 7 svn:log V 73 Handle cases where capability rights are not provided. Reported by: kib END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-09-05T11:59:23.153329Z K 7 svn:log V 76 The fget() function now takes pointer to cap_rights_t, so change 0 to NULL. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2013-09-05T12:21:11.683352Z K 7 svn:log V 22 Correct two comments. END K 10 svn:author V 3 des K 8 svn:date V 27 2013-09-05T12:35:23.893398Z K 7 svn:log V 67 authpf needs /var/authpf to exist and be writable by group authpf. END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-09-05T12:54:40.489961Z K 7 svn:log V 546 The vm_page_trysbusy() should not fail when shared busy counter or VPB_BIT_WAITERS flag were changed between reading of busy_lock and the cas. The vm_page_sbusy(), which is the only user of vm_page_trysbusy() in the tree, panics on the failure, which in these cases is transient and do not mean that the current page state prevents sbusying. Retry the operation inside vm_page_trysbusy() if cas failed, only return a failure when VPB_BIT_SHARED is cleared. Reported and tested by: pho Reviewed by: attilio Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-09-05T12:56:08.960491Z K 7 svn:log V 817 The vm_pageout_flush() functions sbusies pages in the passed pages run. After that, the pager put method is called, usually translated to VOP_WRITE(). For the filesystems which use buffer cache, bufwrite() sbusies the buffer pages again, waiting for the xbusy state to drain. The later is done in vfs_drain_busy_pages(), which is called with the buffer pages already sbusied (by vm_pageout_flush()). Since vfs_drain_busy_pages() can only wait for one page at the time, and during the wait, the object lock is dropped, previous pages in the buffer must be protected from other threads busying them. Up to the moment, it was done by xbusying the pages, that is incompatible with the sbusy state in the new implementation of busy. Switch to sbusy. Reported and tested by: pho Sponsored by: The FreeBSD Foundation END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-09-05T13:46:30.431724Z K 7 svn:log V 38 Fix build. counter.h requires systm.h END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-09-05T13:53:25.611917Z K 7 svn:log V 11 Fix build. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2013-09-05T14:16:37.833225Z K 7 svn:log V 275 Use an unsigned long when indexing into mfchashtbl[] and mf6ctable[]. This matches the types used when computing hash indices and the type of the maximum size of mfchashtbl[]. PR: kern/181821 Submitted by: Sven-Thorsten Dietrich (IPv4) MFC after: 1 week END K 10 svn:author V 3 jhb K 8 svn:date V 27 2013-09-05T14:26:37.620071Z K 7 svn:log V 53 Use LIST_FOREACH_SAFE() instead of doing it by hand. END K 10 svn:author V 3 sjg K 8 svn:date V 27 2013-09-05T15:49:22.594752Z K 7 svn:log V 22 Import bmake-20130904 END K 10 svn:author V 3 sjg K 8 svn:date V 27 2013-09-05T15:49:51.244038Z K 7 svn:log V 19 Tag bmake-20130904 END K 10 svn:author V 3 pfg K 8 svn:date V 27 2013-09-05T15:50:34.127877Z K 7 svn:log V 295 MFC r254326: Add support for the GCC binary integer constants extension. This is required to build the i965 backend with newer versions of mesa. Original patch from Joerg Wunsch in GCC Bug 23479, under the GPLv2; also taken from there in OpenBSD. Obtained from: gcc 4.3 (rev. 125346; GPLv2) END K 10 svn:author V 3 sjg K 8 svn:date V 27 2013-09-05T15:57:26.601415Z K 7 svn:log V 21 Merge bmake-20130904 END K 10 svn:author V 6 sbruno K 8 svn:date V 27 2013-09-05T16:38:26.759568Z K 7 svn:log V 35 Minor printf nit to keep out clean END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-09-05T17:52:54.282060Z K 7 svn:log V 158 Update vendor/illumos/dist and vendor-sys/illumos/dist to 14164:dceb17481b99: Illumos ZFS issues: 4045 zfs write throttle & i/o scheduler performance work END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-09-05T17:55:14.759424Z K 7 svn:log V 231 Update vendor-sys/illumos/dist to 14171:98413c8cf54d: Illumos ZFS issues: 3954 metaslabs continue to load even after hitting zfs_mg_alloc_failure limit 4080 zpool clear fails to clear pool 4081 need zfs_mg_noalloc_threshold END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-09-05T17:56:00.069214Z K 7 svn:log V 129 Update vendor-sys/illumos/dist to 14172:be36a38bac3d: Illumos ZFS issues: 4082 zfs receive gets EFBIG from dmu_tx_hold_free() END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-09-05T17:58:25.494527Z K 7 svn:log V 152 Update vendor-sys/illumos/dist to 14176:15e9457c12ec: Illumos ZFS issues: 1974 pages_pp_maximum/lotsfree discrepancy leads to mlock() failure END K 10 svn:author V 5 hiren K 8 svn:date V 27 2013-09-05T18:18:23.337064Z K 7 svn:log V 68 Fixing a small typo. Reviewed by: gjb Approved by: sbruno (mentor) END K 10 svn:author V 2 cy K 8 svn:date V 27 2013-09-05T18:45:23.794518Z K 7 svn:log V 168 Grab ip_fil_freebsd.c r1.42 from the ipfilter CVS tree to fix, 3529491 checksum validation could be better 3529486 tcp checksum wrong for ipv6 Approved by: glebius END K 10 svn:author V 6 jilles K 8 svn:date V 27 2013-09-05T19:02:03.830104Z K 7 svn:log V 311 watch: Do not mess up the tty modes on early error. Record the initial state earlier, so it is always safe to restore it. One way this happens is if watch(8) is started by a user that does not have access to /dev/snp. The result is "staircase effect" during later commands. PR: bin/153052 MFC after: 1 week END K 10 svn:author V 5 joerg K 8 svn:date V 27 2013-09-05T19:25:36.715191Z K 7 svn:log V 138 Merge r254809 and r254937 from head: . Fix the "2step" feature (i.e. 360 KiB floppies in 1200 MiB drives) . Fix the FDOPT_NOERROR option END K 10 svn:author V 3 sjg K 8 svn:date V 27 2013-09-05T20:18:59.880231Z K 7 svn:log V 16 Merge from head END K 10 svn:author V 5 joerg K 8 svn:date V 27 2013-09-05T20:34:58.048667Z K 7 svn:log V 127 Merged r254809 and 254937 from head: . Fix "2step" feature (i.e. 360 KiB media in 1200 KiB drives) . Fix FDOPT_NOERROR option END K 10 svn:author V 3 hrs K 8 svn:date V 27 2013-09-05T20:50:52.051834Z K 7 svn:log V 217 Enable "late" option when a file= option is specified in /etc/fstab. The file= option requires rw mount where the backing store exists but it does not work because rc.d/swap runs before rc.d/fsck. Reported by: wblock END K 10 svn:author V 3 mav K 8 svn:date V 27 2013-09-05T21:03:27.095538Z K 7 svn:log V 48 Fix double completion for zero length requests. END K 10 svn:author V 3 hrs K 8 svn:date V 27 2013-09-05T21:19:16.772909Z K 7 svn:log V 35 Style clean-ups. Reviewed by: md5 END K 10 svn:author V 4 carl K 8 svn:date V 27 2013-09-05T22:46:48.966038Z K 7 svn:log V 77 Add some logging to ntb link up. Approved by: jimharris Sponsored by: Intel END K 10 svn:author V 4 carl K 8 svn:date V 27 2013-09-05T22:52:40.487818Z K 7 svn:log V 95 Throw a bit to enable the link to come up on Xeon. Approved by: jimharris Sponsored by: Intel END K 10 svn:author V 4 carl K 8 svn:date V 27 2013-09-05T22:55:08.942689Z K 7 svn:log V 56 Fix a typo. Approved by: jimharris Sponsored by: Intel END K 10 svn:author V 4 carl K 8 svn:date V 27 2013-09-05T22:56:52.507785Z K 7 svn:log V 120 Fix name change from ntb_transport to if_ntb. A few places were overlooked. Approved by: jimharris Sponsored by: Intel END K 10 svn:author V 4 carl K 8 svn:date V 27 2013-09-05T22:59:18.453011Z K 7 svn:log V 127 Restructure the PCI bar initialization code in anticipation of upcoming bug fixes. Approved by: jimharris Sponsored by: Intel END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2013-09-05T23:00:24.205991Z K 7 svn:log V 324 Align stacks of kernel threads correctly at 16-byte boundaries rather than making sure they are all misaligned at +8 bytes. This fixes clang builds of powerpc64 kernels (aside from a required increase in KSTACK_PAGES which will come later). This commit from FreeBSD/powerpc64 with a clang-built kernel. MFC after: 2 weeks END K 10 svn:author V 4 carl K 8 svn:date V 27 2013-09-05T23:00:59.968334Z K 7 svn:log V 97 Add support for per device features and workarounds. Approved by: jimharris Sponsored by: Intel END K 10 svn:author V 4 carl K 8 svn:date V 27 2013-09-05T23:02:43.172682Z K 7 svn:log V 119 Simplifying bus alloc resource call since we only need the default values. Approved by: jimharris Sponsored by: Intel END K 10 svn:author V 4 carl K 8 svn:date V 27 2013-09-05T23:04:36.100820Z K 7 svn:log V 96 Implement workaround for IvyTown 4K BAR size issue. Approved by: jimharris Sponsored by: Intel END K 10 svn:author V 4 carl K 8 svn:date V 27 2013-09-05T23:06:25.999620Z K 7 svn:log V 102 Cleaning up spacing and making hex value case consistent. Approved by: jimharris Sponsored by: Intel END K 10 svn:author V 4 carl K 8 svn:date V 27 2013-09-05T23:08:22.316062Z K 7 svn:log V 114 Simplify register access macros by removing one level of indirection. Approved by: jimharris Sponsored by: Intel END K 10 svn:author V 4 carl K 8 svn:date V 27 2013-09-05T23:11:11.118670Z K 7 svn:log V 125 Workaround an issue with hardware by accessing remote device through mem window. Approved by: jimharris Sponsored by: Intel END K 10 svn:author V 4 carl K 8 svn:date V 27 2013-09-05T23:12:58.349302Z K 7 svn:log V 119 Only tear down interface and transport if they've been successfully setup. Approved by: jimharris Sponsored by: Intel END K 10 svn:author V 4 carl K 8 svn:date V 27 2013-09-05T23:14:27.781985Z K 7 svn:log V 65 Remove contractions. Approved by: jimharris Sponsored by: Intel END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2013-09-05T23:28:50.936311Z K 7 svn:log V 38 Also align the 32-bit PowerPC stacks. END K 10 svn:author V 4 neel K 8 svn:date V 27 2013-09-06T00:40:14.418219Z K 7 svn:log V 101 Reduce diffs with respect to HEAD in anticipation of the merge of the PCID related changes in pmap.c END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2013-09-06T02:34:34.609631Z K 7 svn:log V 582 It was reported via email that the cu_sent field used by the krpc client side UDP was observed as way out of range and caused the rpc.lockd daemon to hang trying to do an RPC. Inspection of the code found two places where the RPC request is re-queued, but the value of cu_sent was not incremented. Since cu_sent is always decremented when the RPC request is dequeued, I think this could have caused cu_sent to go out of range. This patch adds lines to increment cu_sent for these two cases. Reported by: dwhite@ixsystems.com Discussed with: dwhite@ixsystems.com MFC after: 2 weeks END K 10 svn:author V 3 sjg K 8 svn:date V 27 2013-09-06T02:55:51.542984Z K 7 svn:log V 244 If MAKE_JOB_ERROR_TOKEN is set to false, do not put an error token ("E") into the job queue. This avoids closing down an entire build on failure of one branch. Probably has no use outside the context of universe/tinderbox. Reviewed by: obrien END K 10 svn:author V 3 sjg K 8 svn:date V 27 2013-09-06T02:57:15.677881Z K 7 svn:log V 133 During universe/tinderbox export MAKE_JOB_ERROR_TOKEN=no This avoids aborting everything when one kernel fails. Reviewed by: obrien END K 10 svn:author V 6 grehan K 8 svn:date V 27 2013-09-06T05:16:10.954790Z K 7 svn:log V 194 Allow CPUID leaf 0xD to be read as zeroes. Linux reads this even though extended features aren't exposed. Support for 0xD will be expanded once AVX[2] is exposed to the guest in upcoming work. END K 10 svn:author V 6 grehan K 8 svn:date V 27 2013-09-06T05:20:11.991409Z K 7 svn:log V 184 Emulate reading of the IA32_MISC_ENABLE MSR, by returning the host MSR and masking off features that aren't supported. Linux reads this MSR to detect if NX has been disabled via BIOS. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-09-06T05:37:49.734700Z K 7 svn:log V 241 On those machines, where sf_bufs do not represent any real object, make sf_buf_alloc()/sf_buf_free() inlines, to save two calls to an absolutely empty functions. Reviewed by: alc, kib, scottl Sponsored by: Nginx, Inc. Sponsored by: Netflix END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-09-06T05:38:20.763970Z K 7 svn:log V 11 Fix build. END K 10 svn:author V 4 neel K 8 svn:date V 27 2013-09-06T05:55:02.318221Z K 7 svn:log V 12 IFC @255217 END K 10 svn:author V 6 grehan K 8 svn:date V 27 2013-09-06T05:55:43.150335Z K 7 svn:log V 157 Allow level-triggered interrupt sources. While this isn't precisely emulated, it is good enough for the single consumer i.e. irq4, the serial port on Linux. END K 10 svn:author V 6 grehan K 8 svn:date V 27 2013-09-06T05:58:10.686862Z K 7 svn:log V 14 Fix spelling. END K 10 svn:author V 8 theraven K 8 svn:date V 27 2013-09-06T07:58:23.785003Z K 7 svn:log V 476 Add stub implementations of the missing C++11 math functions. These are weak and so can be replaced by other versions in applications that choose to do so, and will give a linker warning when used so that applications that rely on the extra precision can avoid them. Note that since the C/C++ specs only guarantee that long double has precision equal to double, code that actually relies on these functions having greater precision is unportable at best and broken at worst. END K 10 svn:author V 3 mav K 8 svn:date V 27 2013-09-06T08:21:55.289630Z K 7 svn:log V 172 Remove requests completion batching from ata(4) driver. Since this driver periodically simulates list interrupts it may cause assertion on double nested batching attempt. END K 10 svn:author V 6 jilles K 8 svn:date V 27 2013-09-06T09:08:40.930307Z K 7 svn:log V 49 Update some signal man pages for multithreading. END K 10 svn:author V 8 theraven K 8 svn:date V 27 2013-09-06T09:46:44.948486Z K 7 svn:log V 164 Fix the namespace pollution caused by iconv.h including stdbool.h This broke any C89 ports that defined bool themselves, including things like gcc, gtk, and so on. END K 10 svn:author V 8 theraven K 8 svn:date V 27 2013-09-06T10:40:38.656736Z K 7 svn:log V 37 Use Makefile.inc instead of .export. END K 10 svn:author V 6 jilles K 8 svn:date V 27 2013-09-06T12:45:08.995775Z K 7 svn:log V 876 Partial MFC of r248534: Implement SOCK_CLOEXEC and SOCK_NONBLOCK in kernel. SOCK_CLOEXEC and SOCK_NONBLOCK can be OR'ed in socket() and socketpair()'s type parameter. The numerical values for SOCK_CLOEXEC and SOCK_NONBLOCK are as in NetBSD. The SOCK_* flags are not passed to MAC because this may cause incorrect failures and can be done later via fcntl() anyway. On the other hand, audit is expected to cope with the new flags. This commit does not add the constants to as in r248534 because this would lead to various newly compiled software not working on old kernels. It only serves to help 10.x binaries and prepare for a possible full MFC (if third-party software starts to insist on SOCK_CLOEXEC and SOCK_NONBLOCK). MSG_CMSG_CLOEXEC from r248534 is not merged here because it changes a KPI/KBI. No mergeinfo because the rest of r248534 is missing. END K 10 svn:author V 4 loos K 8 svn:date V 27 2013-09-06T12:47:14.403782Z K 7 svn:log V 313 Fix the leakage of dma tags on if_arge. The leak occur when arge_start() add some packet(s) to tx ring and arge_stop() is called before receive the sent packet interrupt from hardware. Fix arge_stop() to unload the in use dma tags and free the associated mbuf. PR: 178319, 163670 Approved by: adrian (mentor) END K 10 svn:author V 6 jilles K 8 svn:date V 27 2013-09-06T12:56:49.577950Z K 7 svn:log V 178 libc/stdio: Provide proper TAP output for fmemopen/open_[w]memstream. A *.t file should provide Test Anything Protocol output so that it can be run using the Perl "prove" tool. END K 10 svn:author V 6 jilles K 8 svn:date V 27 2013-09-06T12:59:48.696366Z K 7 svn:log V 43 libc/stdio: Run mkostemp test using prove. END K 10 svn:author V 6 jilles K 8 svn:date V 27 2013-09-06T13:47:16.700318Z K 7 svn:log V 396 libc/stdio: Allow fopen/freopen modes in any order (except initial r/w/a). Austin Group issue #411 requires 'e' to be accepted before and after 'x', and encourages accepting the characters in any order, except the initial 'r', 'w' or 'a'. Given that glibc accepts the characters after r/w/a in any order and that diagnosing this problem may be hard, change our libc to behave that way as well. END K 10 svn:author V 3 mav K 8 svn:date V 27 2013-09-06T14:31:52.447692Z K 7 svn:log V 62 Fix kernel panic if cache->nelms is zero. MFC after: 2 weeks END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-09-06T14:34:20.662804Z K 7 svn:log V 82 Bump __FreeBSD_version to 1000053 after cap_rights_t change. Suggested by: danfe END K 10 svn:author V 3 dim K 8 svn:date V 27 2013-09-06T15:17:25.206820Z K 7 svn:log V 259 MFC r245428: Add CLOCK_PROCESS_CPUTIME_ID to , to synchronize the CLOCK_* values with those in . Otherwise, if a program includes before , the CLOCK_PROCESS_CPUTIME_ID macro never gets defined. Reviewed by: davidxu END K 10 svn:author V 6 bryanv K 8 svn:date V 27 2013-09-06T15:19:57.228776Z K 7 svn:log V 118 Add camcontrol support for the SCSI sanitize command Reviewed by: ken, mjacob (eariler version) Sponsored by: Netapp END K 10 svn:author V 3 dim K 8 svn:date V 27 2013-09-06T15:38:40.490235Z K 7 svn:log V 295 MFS9 r255306: MFC r245428: Add CLOCK_PROCESS_CPUTIME_ID to , to synchronize the CLOCK_* values with those in . Otherwise, if a program includes before , the CLOCK_PROCESS_CPUTIME_ID macro never gets defined. Reviewed by: davidxu Approved by: re (kib) END K 10 svn:author V 3 mav K 8 svn:date V 27 2013-09-06T15:41:37.496364Z K 7 svn:log V 150 Make SES driver adequately react on simple enclosure devices -- read Short Enclosure status to enclosure status field, clear previous state and exit. END K 10 svn:author V 6 bryanv K 8 svn:date V 27 2013-09-06T16:34:09.812147Z K 7 svn:log V 84 Add firmware downloading support for Samsung drives Tested on Samsung SM1625 SSDs. END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-09-06T16:48:34.356012Z K 7 svn:log V 202 In pmap_ts_referenced(), when restarting the loop due to pv list generation changed, do not drop and immediately relock the pv list. Suggested and reviewed by: alc Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-09-06T16:53:48.789965Z K 7 svn:log V 363 Only lock pvh_global_lock read-only for pmap_page_wired_mappings(), pmap_is_modified() and pmap_is_referenced(), same as it was done for pmap_ts_referenced(). Consolidate identical code for pmap_is_modified() and pmap_is_referenced() into helper pmap_page_test_mappings(). Reviewed by: alc Tested by: pho (previous version) Sponsored by: The FreeBSD Foundation END K 10 svn:author V 5 luigi K 8 svn:date V 27 2013-09-06T17:16:33.527766Z K 7 svn:log V 64 r253616 nuked BINMAKE so we need to adapt to the new definition END K 10 svn:author V 5 luigi K 8 svn:date V 27 2013-09-06T17:18:43.546726Z K 7 svn:log V 56 generate multiple host keys and do that unconditionally END K 10 svn:author V 5 luigi K 8 svn:date V 27 2013-09-06T17:19:57.227642Z K 7 svn:log V 46 comment out some stale loader configurations. END K 10 svn:author V 5 jamie K 8 svn:date V 27 2013-09-06T17:32:29.090758Z K 7 svn:log V 68 Keep PRIV_KMEM_READ permitted inside jails as it is on the outside. END K 10 svn:author V 5 markm K 8 svn:date V 27 2013-09-06T17:42:12.266944Z K 7 svn:log V 4 MFC END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-09-06T17:44:13.629378Z K 7 svn:log V 82 Fix build with gcc. Move sf_buf_alloc()/sf_buf_free() declarations to MD headers. END K 10 svn:author V 5 markm K 8 svn:date V 27 2013-09-06T17:51:52.828304Z K 7 svn:log V 140 Yarrow wants entropy estimations to be conservative; the usual idea is that if you are certain you have N bits of entropy, you declare N/2. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-09-06T18:41:57.927396Z K 7 svn:log V 134 Return BUS_PROBE_DEFAULT instead of BUS_PROBE_SPECIFIC. This change is a 9.2-RELEASE candidate. Approved by: HighPoint Technologies END K 10 svn:author V 8 theraven K 8 svn:date V 27 2013-09-06T20:08:03.153159Z K 7 svn:log V 752 On platforms where clang is the default compiler, don't build gcc or libstdc++. To enable them, set WITH_GCC and WITH_GNUCXX in src.conf. Make clang default to using libc++ on FreeBSD 10. Bumped __FreeBSD_version for the change. GCC is still enabled on PC98, because the PC98 bootloader requires GCC to build (or, at least, hard-codes the use of gcc into its build). Thanks to everyone who helped make the ports tree ready for this (and bapt for coordinating them all). Also to imp for reviewing this and working on the forward-porting of the changes in our gcc so that we're getting to a much better place with regard to external toolchains. Sorry to all of the people who helped who I forgot to mention by name. Reviewed by: bapt, imp, dim, ... END K 10 svn:author V 8 theraven K 8 svn:date V 27 2013-09-06T20:23:15.026952Z K 7 svn:log V 96 Fix use of MACHINE_ARCH where MACHINE was intended for pc98 detection. Reported by: nwhitehorn END K 10 svn:author V 6 bryanv K 8 svn:date V 27 2013-09-06T20:24:21.890313Z K 7 svn:log V 49 Add vmx device to the i386 and amd64 NOTES files END K 10 svn:author V 8 theraven K 8 svn:date V 27 2013-09-06T20:42:14.959632Z K 7 svn:log V 107 Only set -Wno-c++11-extensions if we're building with clang, so bootstrapping clang with gcc doesn't fail. END K 10 svn:author V 8 theraven K 8 svn:date V 27 2013-09-06T20:46:07.736838Z K 7 svn:log V 82 Don't delete c++filt when doing a make delete-old if GCC is not built but C++ is. END K 10 svn:author V 7 zeising K 8 svn:date V 27 2013-09-06T20:49:48.984204Z K 7 svn:log V 146 Add WITH_GCC alongside WITHOUT_GCC. Remove the comment from WITHOUT_GCC about this not working without an alternate toolchain, we have clang now. END K 10 svn:author V 7 zeising K 8 svn:date V 27 2013-09-06T20:51:15.582356Z K 7 svn:log V 75 Regenerate after unhooking gcc/g++ from the default build for some arches. END K 10 svn:author V 6 jilles K 8 svn:date V 27 2013-09-06T21:02:06.335545Z K 7 svn:log V 256 libc: Use SOCK_CLOEXEC for various internal file descriptors. This change avoids undesirably passing some internal file descriptors to a process created (fork+exec) by another thread. Kernel support for SOCK_CLOEXEC was added in r248534, March 19, 2013. END K 10 svn:author V 6 davide K 8 svn:date V 27 2013-09-06T21:02:43.819183Z K 7 svn:log V 305 Retire netisr.netisr_direct and netisr.netisr_direct_force sysctls. These were used to control/export dispatch policy but they're not anymore. This commit cannot be MFC'ed to 9 because old netstat(9) binary relies on such sysctl to work. On the other hand, there's no real reason to keep'em around in 10. END K 10 svn:author V 6 bryanv K 8 svn:date V 27 2013-09-06T21:26:36.384363Z K 7 svn:log V 55 Bump .Dd after r255307 and r255310 Requested by: joel END