ġ 255331 170 1906 224 1028 276 222 288 219 522 352 242 311 265 262 149 140 158 210 154 106 145 170 181 97 125 114 369 163 152 329 184 288 833 398 177 130 115 363 426 159 246 139 293 146 107 145 122 107 219 562 430 335 208 123 658 478 152 108 205 159 128 206 103 155 166 829 461 174 235 126 174 194 266 225 106 166 225 163 331 1156 228 249 419 254 168 299 240 294 288 191 257 277 425 200 548 185 579 214 231 527 527 340 140 137 266 208 203 386 470 288 175 177 793 793 541 541 541 541 541 144 287 292 188 152 252 346 882 761 410 244 402 404 184 183 109 147 179 337 237 562 1293 344 168 223 995 160 204 103 261 173 173 98 113 260 465 393 274 351 301 225 201 252 122 390 1989 457 127 299 391 451 492 K 10 svn:author V 5 gibbs K 8 svn:date V 27 2013-09-06T22:17:02.330557Z K 7 svn:log V 1810 Implement PV IPIs for PVHVM guests and further converge PV and HVM IPI implmementations. Submitted by: Roger Pau Monn̩ Sponsored by: Citrix Systems R&D Submitted by: gibbs (misc cleanup, table driven config) Reviewed by: gibbs MFC after: 2 weeks sys/amd64/include/cpufunc.h: sys/amd64/amd64/pmap.c: Move invltlb_globpcid() into cpufunc.h so that it can be used by the Xen HVM version of tlb shootdown IPI handlers. sys/x86/xen/xen_intr.c: sys/xen/xen_intr.h: Rename xen_intr_bind_ipi() to xen_intr_alloc_and_bind_ipi(), and remove the ipi vector parameter. This api allocates an event channel port that can be used for ipi services, but knows nothing of the actual ipi for which that port will be used. Removing the unused argument and cleaning up the comments surrounding its declaration helps clarify its actual role. sys/amd64/amd64/mp_machdep.c: sys/amd64/include/cpu.h: sys/i386/i386/mp_machdep.c: sys/i386/include/cpu.h: Implement a generic framework for amd64 and i386 that allows the implementation of certain CPU management functions to be selected at runtime. Currently this is only used for the ipi send function, which we optimize for Xen when running on a Xen hypervisor, but can easily be expanded to support more operations. sys/x86/xen/hvm.c: Implement Xen PV IPI handlers and operations, replacing native send IPI. sys/amd64/include/pcpu.h: sys/i386/include/pcpu.h: sys/i386/include/smp.h: Remove NR_VIRQS and NR_IPIS from FreeBSD headers. NR_VIRQS is defined already for us in the xen interface files. NR_IPIS is only needed in one file per Xen platform and is easily inferred by the IPI vector table that is defined in those files. sys/i386/xen/mp_machdep.c: Restructure to more closely match the HVM implementation by performing table driven IPI setup. END K 10 svn:author V 2 cy K 8 svn:date V 27 2013-09-06T23:11:19.855654Z K 7 svn:log V 132 Update ipfilter 4.1.28 --> 5.1.2. Approved by: glebius (mentor) BSD Licensed by: Darren Reed (author) END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2013-09-06T23:14:31.103547Z K 7 svn:log V 930 Intermittent crashes in the NLM (rpc.lockd) code during system shutdown was reporetd via email. The crashes occurred because the client side NLM would attempt to use its socket after it had been destroyed. Looking at the code, it would soclose() once the reference count on the socket handling structure went to 0. Unfortunately, nlm_host_get_rpc() will simply allocate a new socket handling structure when none exists and use the now soclose()d socket. Since there doesn't seem to be a safe way to determine when the socket is no longer needed, this patch modifies the code so that it never soclose()es the socket. Since there is only one socket ever created, this does not introduce a leak when the rpc.lockd is stopped/restarted. The patch also disables unloading of the nfslockd module, since it is not safe to do so (and has never been safe to do so, from what I can see). Reported by: mav Tested by: mav MFC after: 2 weeks END K 10 svn:author V 4 loos K 8 svn:date V 27 2013-09-06T23:39:56.932102Z K 7 svn:log V 182 Fix an off-by-one bug in ar71xx_gpio and bcm2835_gpio which makes the last pin unavailable. Reported and tested by: sbruno (ar71xx) Approved by: adrian (mentor) Pointy hat to: loos END K 10 svn:author V 4 loos K 8 svn:date V 27 2013-09-06T23:47:50.438504Z K 7 svn:log V 128 Remove the hardcoded limit for the number of gpio_pins that can be used. Allocate it dynamically. Approved by: adrian (mentor) END K 10 svn:author V 6 jilles K 8 svn:date V 27 2013-09-06T23:49:54.441078Z K 7 svn:log V 192 libc: Make resolver sockets close-on-exec (SOCK_CLOEXEC). Although the resolver's sockets are exposed to applications via res_state, I do not expect them to pass the sockets across execve(). END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2013-09-07T00:45:24.496002Z K 7 svn:log V 123 When computing the partial delivery point, take the receiver socket buffer size correctly into account. MFC after: 1 week END K 10 svn:author V 3 pfg K 8 svn:date V 27 2013-09-07T02:45:51.384767Z K 7 svn:log V 429 ext2fs: temporarily disable htree directory index. Our code does not consider yet the case of hash collisions. This is a rather annoying situation where two or more files that happen to have the same hash value will not appear accessible. The situation is not difficult to work-around but given that things will just work without enabling htree we will save possible embarrassments for the next release. Reported by: Kevin Lo END K 10 svn:author V 3 pfg K 8 svn:date V 27 2013-09-07T03:10:12.103282Z K 7 svn:log V 259 newfs_msdos: fix inaccurate comments. The fields from deMTime and deMDate in the DOS directory entry are actually the last-modified time/date. According to some online documentation these are the only timestamps available in FAT12/FAT16. MFC after: 3 days END K 10 svn:author V 6 dteske K 8 svn:date V 27 2013-09-07T03:24:22.936383Z K 7 svn:log V 146 Long URLs don't always appear even with autosizing and other tricks. So, add some whitespace to put the URL on a line by itself, maximizing view. END K 10 svn:author V 6 dteske K 8 svn:date V 27 2013-09-07T03:27:13.544540Z K 7 svn:log V 215 Remove unnecessary mediaClose (FTP operations are done with either ftp(1) or fetch(1), neither of which are stateful, compared to how sysinstall(8) did FTP operations, maintaining an open session until mediaClose). END K 10 svn:author V 6 grehan K 8 svn:date V 27 2013-09-07T03:33:36.706170Z K 7 svn:log V 169 Mask off the vector from the MSI-x data word. Some o/s's set the trigger-mode level bit which results in an invalid vector and pass-thru interrupts not being delivered. END K 10 svn:author V 4 neel K 8 svn:date V 27 2013-09-07T05:30:34.104315Z K 7 svn:log V 168 Allocate VPIDs by using the unit number allocator to keep do the bookkeeping. Also deal with VPID exhaustion by allocating out of a reserved range as the last resort. END K 10 svn:author V 4 joel K 8 svn:date V 27 2013-09-07T05:44:53.554053Z K 7 svn:log V 56 - Begin sentence on a new line. - Minor language fixes. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2013-09-07T06:38:34.796186Z K 7 svn:log V 43 MFC r255090 and r255128: PR: kern/181728 END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2013-09-07T06:41:22.464475Z K 7 svn:log V 61 MFC r255090 and r255128: Add more USB IDs. PR: kern/181728 END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2013-09-07T06:53:59.692249Z K 7 svn:log V 112 Disable USB 3.0 streams mode by default, hence not all XHCI chipsets implement it to avoid undefined behaviour. END K 10 svn:author V 8 theraven K 8 svn:date V 27 2013-09-07T07:26:51.883695Z K 7 svn:log V 57 Add note in UPDATING about the no-gcc-by-default switch. END K 10 svn:author V 3 mav K 8 svn:date V 27 2013-09-07T07:36:12.175459Z K 7 svn:log V 14 MFC @ r255348 END K 10 svn:author V 3 mav K 8 svn:date V 27 2013-09-07T07:39:24.522425Z K 7 svn:log V 53 Add some includes to fix some drivers build on i386. END K 10 svn:author V 2 np K 8 svn:date V 27 2013-09-07T07:53:21.043942Z K 7 svn:log V 79 Add a vtprintf. It is to tprintf what vprintf is to printf. Reviewed by: kib END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-09-07T07:56:55.937315Z K 7 svn:log V 85 Fix of r255318: move sf_buf_alloc()/sf_buf_free() out of #ifdef ARM_USE_SMALL_ALLOC. END K 10 svn:author V 5 markm K 8 svn:date V 27 2013-09-07T07:58:29.884832Z K 7 svn:log V 4 MFC END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-09-07T09:45:43.591259Z K 7 svn:log V 29 Add more leftovers from gcc. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-09-07T09:47:18.468549Z K 7 svn:log V 18 Fix !INET6 build. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2013-09-07T10:42:00.004684Z K 7 svn:log V 271 Revert parts of r245132 and r245175. We don't need to write to the IMAN register to clear the pending interrupt status bits. This patch tries to solve problems seen on the MacBook Air, as reported by Johannes Lundberg MFC after: 1 week END K 10 svn:author V 7 antoine K 8 svn:date V 27 2013-09-07T11:02:38.859931Z K 7 svn:log V 67 Do not try to remove directories that are part of BSD.include.dist END K 10 svn:author V 6 jilles K 8 svn:date V 27 2013-09-07T11:41:52.397770Z K 7 svn:log V 57 wait(2): Add some possible caveats to standards section. END K 10 svn:author V 6 davide K 8 svn:date V 27 2013-09-07T13:45:44.768434Z K 7 svn:log V 233 - Use make_dev_credf(MAKEDEV_REF) instead of the race-prone make_dev()+ dev_ref() in the clone handlers that still use it. - Don't set SI_CHEAPCLONE flag, it's not used anywhere neither in devfs (for anything real) Reviewed by: kib END K 10 svn:author V 6 davide K 8 svn:date V 27 2013-09-07T13:50:13.286857Z K 7 svn:log V 89 Don't clear the unused SI_CHEAPCLONE flag in tap_create()/tuncreate(). Reviewed by: kib END K 10 svn:author V 6 andrew K 8 svn:date V 27 2013-09-07T14:04:10.610358Z K 7 svn:log V 192 On ARM EABI double precision floating point values are stored in the endian the CPU is in, i.e. little-endian on most ARM cores. This allows ARMv4 and ARMv5 boards to boot with the ARM EABI. END K 10 svn:author V 5 markm K 8 svn:date V 27 2013-09-07T14:15:13.414270Z K 7 svn:log V 738 Bring in some behind-the-scenes development, mainly By Arthur Mesh, the rest by me. o Namespace cleanup; the Yarrow name is now restricted to where it really applies; this is in anticipation of being augmented or replaced by Fortuna in the future. Fortuna is mentioned, but behind #if logic, and is ignorable for now. o The harvest queue is pulled out into its own modules. o Entropy harvesting is emproved, both by being made more conservative, and by separating (a bit!) the sources. Available entropy crumbs are marginally improved. o Selection of sources is made clearer. With recent revelations, this will receive more work in the weeks and months to come. Submitted by: Arthur Mesh (partly) END K 10 svn:author V 3 mav K 8 svn:date V 27 2013-09-07T15:16:30.073074Z K 7 svn:log V 305 Micro-optimize cpu_search(), allowing compiler to use more efficient inline ffsl() implementation, when it is available, instead of homegrown iteration. On dual-E5645 amd64 system (2x6x2 cores) under heavy I/O load that reduces time spent inside cpu_search() from 19% to 13%, while IOPS increased by 5%. END K 10 svn:author V 3 des K 8 svn:date V 27 2013-09-07T16:10:15.705117Z K 7 svn:log V 85 Prepare for OpenPAM Nummularia by reorganizing to match its new directory structure. END K 10 svn:author V 3 des K 8 svn:date V 27 2013-09-07T16:15:30.161229Z K 7 svn:log V 38 Vendor import of OpenPAM Nummularia.. END K 10 svn:author V 3 des K 8 svn:date V 27 2013-09-07T16:16:57.514744Z K 7 svn:log V 23 Tag OpenPAM Nummularia END K 10 svn:author V 8 jchandra K 8 svn:date V 27 2013-09-07T16:31:30.553972Z K 7 svn:log V 265 Use a better version of memcpy/bcopy for mips kernel. Use a variant of mips libc memcpy for kernel. This implementation uses 64-bit operations when compiled for 64-bit, and is significantly faster in that case. Submitted by: Tanmay Jagdale END K 10 svn:author V 8 jchandra K 8 svn:date V 27 2013-09-07T18:26:16.105744Z K 7 svn:log V 328 Netlogic XLP network driver update Changes are to - update board and network interface detection logic - fix reading onboard CPLD in little-endian config - print NAE frequency conrrectly for Bx chips - update XAUI config to disable Rx/Tx until interface is up Submitted by: Venkatesh J V END K 10 svn:author V 3 des K 8 svn:date V 27 2013-09-07T18:46:35.302582Z K 7 svn:log V 67 MFV (r255364): move the code around in preparation for Nummularia. END K 10 svn:author V 4 loos K 8 svn:date V 27 2013-09-07T18:48:15.023226Z K 7 svn:log V 152 Export a function to allow BCM2835's peripheral devices to enable their altenate pin function (from GPIO pins) as needed. Approved by: adrian (mentor) END K 10 svn:author V 3 des K 8 svn:date V 27 2013-09-07T18:55:52.963789Z K 7 svn:log V 47 This was a good idea that never went anywhere. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-09-07T19:03:16.717289Z K 7 svn:log V 200 Fix panic in cap_rights_is_valid() when invalid rights are provided - the right_to_index() function should assert correctness in this case. Improve other assertions. Reported by: pho Tested by: pho END K 10 svn:author V 7 antoine K 8 svn:date V 27 2013-09-07T19:04:28.314873Z K 7 svn:log V 50 Adjust optional obsolete files with new MK_GNUCXX END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-09-07T19:16:02.237507Z K 7 svn:log V 15 Sort properly. END K 10 svn:author V 3 des K 8 svn:date V 27 2013-09-07T19:27:58.563103Z K 7 svn:log V 53 Merge upstream r743: caught_signal should be static. END K 10 svn:author V 3 des K 8 svn:date V 27 2013-09-07T19:43:39.426211Z K 7 svn:log V 30 Update to OpenPAM Nummularia. END K 10 svn:author V 3 des K 8 svn:date V 27 2013-09-07T20:25:22.870558Z K 7 svn:log V 15 Tweak wording. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2013-09-07T20:52:31.527361Z K 7 svn:log V 118 Fix error in r252115: space for the softc needs to be allocated. This seemed to be working by chance on most systems. END K 10 svn:author V 5 markm K 8 svn:date V 27 2013-09-07T22:07:36.092326Z K 7 svn:log V 467 Fix the build; Certain linkable symbols need to always be present. Pass the pointy hat please. Also unblock the software (Yarrow) generator for now. This will be reverted; Yarrow needs to block until secure, not this behaviour of serving as soon as asked. Folks with specific requiremnts will be able to (can!) unblock this device with any write, and are encouraged to do so in /etc/rc.d/* scripting. ("Any" in this case could be "echo '' > /dev/random" as root). END K 10 svn:author V 6 andrew K 8 svn:date V 27 2013-09-07T22:14:30.452858Z K 7 svn:log V 334 Fix the VCVT instruction. It must round towards zero when converting from a floating-point to an integer value. This was not the case causing issues when printing certain values. There is a VCVTR instruction that will round depending on the current rounding mode. We don't yet support this instruction, or setting the rounding mode. END K 10 svn:author V 6 andrew K 8 svn:date V 27 2013-09-07T22:17:45.121544Z K 7 svn:log V 239 Set the default ABI to the softfp version on armv6. This is compatible with the existing ABI as it passes floating-point values in ARM regsters. It is allowed to use VFP instructions as required instead of calling into the softfloat code. END K 10 svn:author V 3 gjb K 8 svn:date V 27 2013-09-07T22:40:32.756614Z K 7 svn:log V 115 Require explicit re@ approval for commits to head/ as start of the 10.0-RELEASE cycle. Approved by: re (implicit) END K 10 svn:author V 6 andrew K 8 svn:date V 27 2013-09-08T09:06:52.652002Z K 7 svn:log V 28 Build ubldr with soft-float END K 10 svn:author V 3 des K 8 svn:date V 27 2013-09-08T09:40:23.601383Z K 7 svn:log V 565 Create a private library directory (LIBPRIVATEDIR) for libraries which we don't want to expose but which can't or shouldn't be static. To mark a library as private, define PRIVATELIB in its Makefile. It will be installed in LIBPRIVATEDIR, which is normally /usr/lib/private (or /usr/lib32/private for 32-bit libraries on 64-bit platforms). To indicate that a program or library depends on a private library, define USEPRIVATELIB in its Makefile. The correct version of LIBPRIVATEDIR will be added to its run-time library search path. Approved by: re (blanket) END K 10 svn:author V 3 des K 8 svn:date V 27 2013-09-08T09:46:22.854475Z K 7 svn:log V 385 Add a stock libmap32.conf for amd64. The first two lines have no effect except to document the hardcoded standard library search path for 32-bit binaries. The third line performs the equivalent substitution for the private library directory. Ironically, these entries rely on functionality which is only available in the COMPAT_32BIT version of rtld-elf. Approved by: re (blanket) END K 10 svn:author V 3 des K 8 svn:date V 27 2013-09-08T10:04:26.796394Z K 7 svn:log V 60 Make libldns and libssh private. Approved by: re (blanket) END K 10 svn:author V 3 des K 8 svn:date V 27 2013-09-08T11:21:08.069226Z K 7 svn:log V 16 Damn autoprops! END K 10 svn:author V 3 des K 8 svn:date V 27 2013-09-08T11:35:56.605813Z K 7 svn:log V 112 MFH (r254684, r254955): fix segfault on reload. MFH (r255156): silence an error message on non-IPv6 interfaces. END K 10 svn:author V 6 andrew K 8 svn:date V 27 2013-09-08T15:39:24.972159Z K 7 svn:log V 64 Update the floating-point control functions for ARM hard-float. END K 10 svn:author V 6 andrew K 8 svn:date V 27 2013-09-08T15:44:34.982527Z K 7 svn:log V 33 Only support softfp on ARM EABI. END K 10 svn:author V 5 markm K 8 svn:date V 27 2013-09-08T16:48:03.463935Z K 7 svn:log V 111 Fix verbose output line; needs Submitted by: Sean Bruno Approved by: re (glebius) END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2013-09-08T16:53:28.348189Z K 7 svn:log V 4 IFC END K 10 svn:author V 3 des K 8 svn:date V 27 2013-09-08T16:56:17.191390Z K 7 svn:log V 63 MFV (r255387): undo autoprop damage Approved by: re (glebius) END K 10 svn:author V 3 des K 8 svn:date V 27 2013-09-08T17:28:11.085582Z K 7 svn:log V 74 MFH (r255243): create /var/authpf with correct ownership and permissions. END K 10 svn:author V 7 trociny K 8 svn:date V 27 2013-09-08T17:47:14.911919Z K 7 svn:log V 732 MFC r254776: Make ipfw nat init/unint work correctly for VIMAGE: * Do per vnet instance cleanup (previously it was only for vnet0 on module unload, and led to libalias leaks and possible panics due to stale pointer dereferences). * Instead of protecting ipfw hooks registering/deregistering by only vnet0 lock (which does not prevent pointers access from another vnets), introduce per vnet ipfw_nat_loaded variable. The variable is set after hooks are registered and unset before they are deregistered. * Devirtualize ifaddr_event_tag as we run only one event handler for all vnets. * It is supposed that ifaddr_change event handler is called in the interface vnet context, so add an assertion. Reviewed by: zec END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-09-08T17:51:22.413944Z K 7 svn:log V 368 Drain for the xbusy state for two places which potentially do pmap_remove_all(). Not doing the drain allows the pmap_enter() to proceed in parallel, making the pmap_remove_all() effects void. The race results in an invalidated page mapped wired by usermode. Reported and tested by: pho Reviewed by: alc Sponsored by: The FreeBSD Foundation Approved by: re (glebius) END K 10 svn:author V 7 trociny K 8 svn:date V 27 2013-09-08T18:19:40.101872Z K 7 svn:log V 78 Relese the interface in the last. Reviewed by: glebius Approved by: re (kib) END K 10 svn:author V 3 des K 8 svn:date V 27 2013-09-08T18:27:26.403949Z K 7 svn:log V 142 MFH (r254684, r254955): fix segfault on reload. MFH (r255156): silence an error message on non-IPv6 interfaces. Approved by: re (glebius) END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2013-09-08T18:58:33.363205Z K 7 svn:log V 26 Update to work with HEAD. END K 10 svn:author V 6 bryanv K 8 svn:date V 27 2013-09-08T19:13:06.957844Z K 7 svn:log V 79 Use correct type for the vmx vlan filter table Approved by: re (glebius, gjb) END K 10 svn:author V 3 des K 8 svn:date V 27 2013-09-08T19:29:45.449834Z K 7 svn:log V 101 MFH (r255243): create /var/authpf with correct ownership and permissions. Approved by: re (glebius) END K 10 svn:author V 3 des K 8 svn:date V 27 2013-09-08T19:39:18.758841Z K 7 svn:log V 173 LDNS needs OpenSSL. This wasn't a problem as long as it was only build statically, since any program using it would have to link with it anyway. Approved by: re (blanket) END K 10 svn:author V 3 des K 8 svn:date V 27 2013-09-08T19:40:32.929150Z K 7 svn:log V 132 Import Magerya Vitaly's ldns-host, and build it instead of the BIND version in the WITH_LDNS_UTILS case. Approved by: re (blanket) END K 10 svn:author V 3 mav K 8 svn:date V 27 2013-09-08T19:50:26.999420Z K 7 svn:log V 14 MFC @ r255403 END K 10 svn:author V 3 des K 8 svn:date V 27 2013-09-08T20:48:23.800952Z K 7 svn:log V 74 Hook host(1) up to the build in the LDNS case. Approved by: re (blanket) END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2013-09-08T21:04:43.111293Z K 7 svn:log V 127 Refuse to package up files for publication if their permissions are set such that they will not be readable by the web server. END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2013-09-08T21:07:41.521567Z K 7 svn:log V 66 Don't just print an error message, actually refuse to keep going. END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2013-09-08T21:10:48.455815Z K 7 svn:log V 233 Refuse to create a new package of bits with the same name as an old package. The mirroring code keeps track of which packages it has downloaded already, so this would result in bits never reaching the mirrors. Submitted by: delphij END K 10 svn:author V 3 alc K 8 svn:date V 27 2013-09-08T21:30:53.128259Z K 7 svn:log V 1062 Prior to r254304, we only began scanning the active page queue when the amount of free memory was close to the point at which we would begin reclaiming pages. Now, we continuously scan the active page queue, regardless of the amount of free memory. Consequently, we are continuously calling pmap_ts_referenced() on active pages. Prior to this change, pmap_ts_referenced() would always demote superpage mappings in order to obtain finer-grained reference information. This made sense because we were coming under memory pressure and would soon have to begin reclaiming pages. Now, however, with continuous scanning of the active page queue, these demotions are taking a toll on performance. For example, on one of my test machines, the running time for the HPCC Random Access benchmark (also known as GUPS) has increased by 54%. To address this problem, I have replaced the demotion with a heuristic for periodically clearing the reference flag on superpage mappings. Reviewed by: kib Approved by: re (glebius) Sponsored by: EMC / Isilon Storage Division END K 10 svn:author V 2 np K 8 svn:date V 27 2013-09-09T00:16:59.790820Z K 7 svn:log V 136 Fix a miscalculation that caused cxgbe/tom to auto-increment a TOE socket's tx buffer size too aggressively. Approved by: re (delphij) END K 10 svn:author V 2 np K 8 svn:date V 27 2013-09-09T04:38:57.755822Z K 7 svn:log V 157 Rework the tx credit mechanism between the cxgbe/tom driver and the card. This helps smooth out some burstiness in the exchange. Approved by: re (glebius) END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-09-09T05:01:18.938775Z K 7 svn:log V 322 In r243868, the error message buffer errmsg have been changed from an on-stack array to a pointer and therefore sizeof(errmsg) would become 4 or 8 bytes depending on the architecture. Fix this by using ERRMSGL in place of sizeof(). Submitted by: J David MFC after: 3 days Approved by: re (kib) END K 10 svn:author V 3 des K 8 svn:date V 27 2013-09-09T06:02:30.219058Z K 7 svn:log V 161 Remove unneeded mappings from libmap32.conf. Move it up one level and install it on powerpc64 in addition to amd64. Reviewed by: kib Approved by: re (blanket) END K 10 svn:author V 6 grehan K 8 svn:date V 27 2013-09-09T08:07:46.230186Z K 7 svn:log V 73 Latest update from Microsoft. Obtained from: Microsoft Hyper-v dev team END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2013-09-09T12:44:48.663901Z K 7 svn:log V 198 Use the canonical bits for wired, etc. in the PTE. This is important for interactions with certain kinds of hypervisors that look into the PTEs more closely than they should. Approved by: re (kib) END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2013-09-09T12:45:41.997603Z K 7 svn:log V 139 Use a spin lock instead of a mutex to gate RTAS. This is required if RTAS calls are involved in interrupt handling. Approved by: re (kib) END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2013-09-09T12:49:19.046149Z K 7 svn:log V 193 Add hook called when every new processor is brought online -- including the BSP -- so that platform modules have a chance to add the new CPU to any internal bookkeeping. Approved by: re (kib) END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2013-09-09T12:51:24.793938Z K 7 svn:log V 187 Add POWER CPUs to the kernel's knowledge. This does not imply we currently actually run on any machines with POWER CPUs but avoids closing that door unnecessarily. Approved by: re (kib) END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2013-09-09T12:52:34.854144Z K 7 svn:log V 91 Raise artificial limits on number of CPUs and number of interrupts. Approved by: re (kib) END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2013-09-09T12:54:08.098602Z K 7 svn:log V 156 Attach only on hardware that is actually supported as opposed to hardware that seems like it has some of the problems we might want. Approved by: re (kib) END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2013-09-09T13:40:53.470855Z K 7 svn:log V 176 Revert r255420. This seems to break some Powermac systems and will be revisited much later. Pointy hat to: me Approved by: re (kib, implicit due to breakage 10 minutes ago) END K 10 svn:author V 3 des K 8 svn:date V 27 2013-09-09T13:56:58.234676Z K 7 svn:log V 332 These three files appeared in 6.0p1, which was imported into the vendor branch but never merged to head. They were inadvertantly left out when 6.1p1 was merged to head. It didn't make any difference at the time, because they were unused, but one of them is required for DNS-based host key verification. Approved by: re (blanket) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2013-09-09T15:38:51.536417Z K 7 svn:log V 107 MFC 236106: Passing NULL as a key casues a segfault when loading SSH 1 keys. Use an empty string instead. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2013-09-09T16:51:35.675326Z K 7 svn:log V 447 Make the primary name of the OF console device /dev/ofwcons, and only alias it to the contents of the output property if it is defined. This avoids a panic when booting machines (QEMU) where the output-device property is not defined. Since output-device is free-form and potentially conflicts with other entries in /dev, I also am not sure we should be doing the aliasing at all, but this at least makes things work again. Approved by: re (kib) END K 10 svn:author V 3 des K 8 svn:date V 27 2013-09-09T17:38:02.445864Z K 7 svn:log V 93 The correct variable is apparently MACHINE_ARCH, not TARGET_ARCH. Approved by: re (blanket) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2013-09-09T18:11:59.723466Z K 7 svn:log V 486 Add a mmap flag (MAP_32BIT) on 64-bit platforms to request that a mapping use an address in the first 2GB of the process's address space. This flag should have the same semantics as the same flag on Linux. To facilitate this, add a new parameter to vm_map_find() that specifies an optional maximum virtual address. While here, fix several callers of vm_map_find() to use a VMFS_* constant for the findspace argument instead of TRUE and FALSE. Reviewed by: alc Approved by: re (kib) END K 10 svn:author V 6 grehan K 8 svn:date V 27 2013-09-09T19:27:44.136579Z K 7 svn:log V 118 Revert the kvp code - there's still some work that needs to be done for that. Discussed with: Microsoft hyper-v devs END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-09-09T20:36:28.414879Z K 7 svn:log V 134 Pass -n (do not emit comments) when saving mtree information for future mergemaster(8) runs. MFC after: 3 days Approved by: re (kib) END K 10 svn:author V 6 sbruno K 8 svn:date V 27 2013-09-09T21:00:03.679901Z K 7 svn:log V 431 MFC r254906 -- add SYSPD (real jbod) support to mfiutil Add support to reconfigure a drive as SYSPD (real JBOD in LSI terminology). Adds command "mfiutil syspd " to change a drive to SYSPD. Drive will then be scanned/reported immediately as /dev/mfisyspdX by the host. "mfiutil good " clears SYSPD mode, remove /dev/mfisyspdX and sets disk into UNCONFIGURED mode. Tested on Dell H310 SAS/SATA RAID controller. END K 10 svn:author V 6 sbruno K 8 svn:date V 27 2013-09-09T21:05:01.409496Z K 7 svn:log V 431 MFC r254906 -- add SYSPD (real jbod) support to mfiutil Add support to reconfigure a drive as SYSPD (real JBOD in LSI terminology). Adds command "mfiutil syspd " to change a drive to SYSPD. Drive will then be scanned/reported immediately as /dev/mfisyspdX by the host. "mfiutil good " clears SYSPD mode, remove /dev/mfisyspdX and sets disk into UNCONFIGURED mode. Tested on Dell H310 SAS/SATA RAID controller. END K 10 svn:author V 3 des K 8 svn:date V 27 2013-09-09T21:18:16.641361Z K 7 svn:log V 247 Emit the correct standard library dependency line for C++ programs. In the CLANG_IS_CC case, the default is now libc++. Only use libstdc++ if !CLANG_IS_CC or it was explicitly requested in CXXFLAGS. Submitted by: theraven Approved by: re (gjb) END K 10 svn:author V 6 sbruno K 8 svn:date V 27 2013-09-09T21:25:34.057072Z K 7 svn:log V 45 MFC r253980 - new pciids for ciss(4) support END K 10 svn:author V 6 sbruno K 8 svn:date V 27 2013-09-09T21:26:18.425275Z K 7 svn:log V 42 MFC r253980 -- add new pciids for ciss(4) END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2013-09-09T21:40:07.766747Z K 7 svn:log V 170 Fix the aborting of association with the iterator using an empty user initiated error cause (using SCTP_ABORT|SCTP_SENDALL). Approved by: re (delphij) MFC after: 1 week END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-09-10T00:40:21.979871Z K 7 svn:log V 111 MFC r255320: Return BUS_PROBE_DEFAULT instead of BUS_PROBE_SPECIFIC. This change is a 9.2-RELEASE candidate. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-09-10T01:38:41.678551Z K 7 svn:log V 106 MFS r255435: MFC r255320: Return BUS_PROBE_DEFAULT instead of BUS_PROBE_SPECIFIC. Approved by: re (hrs) END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-09-10T01:46:47.665143Z K 7 svn:log V 289 MFV r247844 (illumos-gate 13975:ef6409bc370f) Illumos ZFS issues: 3582 zfs_delay() should support a variable resolution 3584 DTrace sdt probes for ZFS txg states Provide a compatibility shim for Solaris's cv_timedwait_hires to help aid future porting. Approved by: re (ZFS blanket) END K 10 svn:author V 6 grehan K 8 svn:date V 27 2013-09-10T03:48:18.064876Z K 7 svn:log V 374 Go way past 11 and bump bhyve's max vCPUs to 16. This should be sufficient for 10.0 and will do until forthcoming work to avoid limitations in this area is complete. Thanks to Bela Lubkin at tidalscale for the headsup on the apic/cpu id/io apic ASL parameters that are actually hex values and broke when written as decimal when 11 vCPUs were configured. Approved by: re@ END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-09-10T05:17:53.230272Z K 7 svn:log V 195 Call free() on the pointer returned from malloc(). Reported and tested by: Oliver Pinter Sponsored by: The FreeBSD Foundation MFC after: 3 days Approved by: re (delphij) END K 10 svn:author V 6 obrien K 8 svn:date V 27 2013-09-10T05:49:31.495030Z K 7 svn:log V 80 Only use a clang'ism if ${CC} is clang. Reviewed by: sjg Approved by: re (kib) END K 10 svn:author V 3 pho K 8 svn:date V 27 2013-09-10T05:59:09.829669Z K 7 svn:log V 85 Added three new mmap(2) test scenarios. Sponsored by: EMC / Isilon storage division END K 10 svn:author V 3 des K 8 svn:date V 27 2013-09-10T10:05:59.075211Z K 7 svn:log V 700 Fix the length calculation for the final block of a sendfile(2) transmission which could be tricked into rounding up to the nearest page size, leaking up to a page of kernel memory. [13:11] In IPv6 and NetATM, stop SIOCSIFADDR, SIOCSIFBRDADDR, SIOCSIFDSTADDR and SIOCSIFNETMASK at the socket layer rather than pass them on to the link layer without validation or credential checks. [SA-13:12] Prevent cross-mount hardlinks between different nullfs mounts of the same underlying filesystem. [SA-13:13] Security: CVE-2013-5666 Security: FreeBSD-SA-13:11.sendfile Security: CVE-2013-5691 Security: FreeBSD-SA-13:12.ifioctl Security: CVE-2013-5710 Security: FreeBSD-SA-13:13.nullfs Approved by: re END K 10 svn:author V 3 des K 8 svn:date V 27 2013-09-10T10:07:21.542781Z K 7 svn:log V 700 Fix the length calculation for the final block of a sendfile(2) transmission which could be tricked into rounding up to the nearest page size, leaking up to a page of kernel memory. [13:11] In IPv6 and NetATM, stop SIOCSIFADDR, SIOCSIFBRDADDR, SIOCSIFDSTADDR and SIOCSIFNETMASK at the socket layer rather than pass them on to the link layer without validation or credential checks. [SA-13:12] Prevent cross-mount hardlinks between different nullfs mounts of the same underlying filesystem. [SA-13:13] Security: CVE-2013-5666 Security: FreeBSD-SA-13:11.sendfile Security: CVE-2013-5691 Security: FreeBSD-SA-13:12.ifioctl Security: CVE-2013-5710 Security: FreeBSD-SA-13:13.nullfs Approved by: so END K 10 svn:author V 3 des K 8 svn:date V 27 2013-09-10T10:08:20.287094Z K 7 svn:log V 448 In IPv6 and NetATM, stop SIOCSIFADDR, SIOCSIFBRDADDR, SIOCSIFDSTADDR and SIOCSIFNETMASK at the socket layer rather than pass them on to the link layer without validation or credential checks. [SA-13:12] Prevent cross-mount hardlinks between different nullfs mounts of the same underlying filesystem. [SA-13:13] Security: CVE-2013-5691 Security: FreeBSD-SA-13:12.ifioctl Security: CVE-2013-5710 Security: FreeBSD-SA-13:13.nullfs Approved by: re END K 10 svn:author V 3 des K 8 svn:date V 27 2013-09-10T10:12:09.287086Z K 7 svn:log V 448 In IPv6 and NetATM, stop SIOCSIFADDR, SIOCSIFBRDADDR, SIOCSIFDSTADDR and SIOCSIFNETMASK at the socket layer rather than pass them on to the link layer without validation or credential checks. [SA-13:12] Prevent cross-mount hardlinks between different nullfs mounts of the same underlying filesystem. [SA-13:13] Security: CVE-2013-5691 Security: FreeBSD-SA-13:12.ifioctl Security: CVE-2013-5710 Security: FreeBSD-SA-13:13.nullfs Approved by: so END K 10 svn:author V 3 des K 8 svn:date V 27 2013-09-10T10:13:14.908734Z K 7 svn:log V 448 In IPv6 and NetATM, stop SIOCSIFADDR, SIOCSIFBRDADDR, SIOCSIFDSTADDR and SIOCSIFNETMASK at the socket layer rather than pass them on to the link layer without validation or credential checks. [SA-13:12] Prevent cross-mount hardlinks between different nullfs mounts of the same underlying filesystem. [SA-13:13] Security: CVE-2013-5691 Security: FreeBSD-SA-13:12.ifioctl Security: CVE-2013-5710 Security: FreeBSD-SA-13:13.nullfs Approved by: so END K 10 svn:author V 3 des K 8 svn:date V 27 2013-09-10T10:14:19.138427Z K 7 svn:log V 448 In IPv6 and NetATM, stop SIOCSIFADDR, SIOCSIFBRDADDR, SIOCSIFDSTADDR and SIOCSIFNETMASK at the socket layer rather than pass them on to the link layer without validation or credential checks. [SA-13:12] Prevent cross-mount hardlinks between different nullfs mounts of the same underlying filesystem. [SA-13:13] Security: CVE-2013-5691 Security: FreeBSD-SA-13:12.ifioctl Security: CVE-2013-5710 Security: FreeBSD-SA-13:13.nullfs Approved by: so END K 10 svn:author V 3 des K 8 svn:date V 27 2013-09-10T10:15:33.924875Z K 7 svn:log V 448 In IPv6 and NetATM, stop SIOCSIFADDR, SIOCSIFBRDADDR, SIOCSIFDSTADDR and SIOCSIFNETMASK at the socket layer rather than pass them on to the link layer without validation or credential checks. [SA-13:12] Prevent cross-mount hardlinks between different nullfs mounts of the same underlying filesystem. [SA-13:13] Security: CVE-2013-5691 Security: FreeBSD-SA-13:12.ifioctl Security: CVE-2013-5710 Security: FreeBSD-SA-13:13.nullfs Approved by: so END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-09-10T10:38:15.550697Z K 7 svn:log V 48 Make a bump for r255426. Approved by: re (gjb) END K 10 svn:author V 2 cy K 8 svn:date V 27 2013-09-10T13:48:33.937140Z K 7 svn:log V 195 ipfilter 5.1.2 no longer supports sysctl. Use ipf -V to determine if available (the kernel module is loaded or compiled into the kernel). Approved by: glebius (mentor) Approved by: re (blanket) END K 10 svn:author V 6 emaste K 8 svn:date V 27 2013-09-10T13:51:19.046544Z K 7 svn:log V 196 Add a sendfile regression test for transmit length > file size. This test identified the issue fixed in FreeBSD-SA-13:11.sendfile. Sponsored by: The FreeBSD Foundation Approved by: re (glebius) END K 10 svn:author V 6 obrien K 8 svn:date V 27 2013-09-10T16:50:13.083498Z K 7 svn:log V 93 Back out r255440. /usr/bin/gcc @r255185 (2013-09-03) can build this. Approved by: re (kib) END K 10 svn:author V 3 jmg K 8 svn:date V 27 2013-09-10T17:26:09.697577Z K 7 svn:log V 60 add note about gcc and aesni... Approved by: re (gjb, kib) END K 10 svn:author V 3 des K 8 svn:date V 27 2013-09-10T18:34:38.410131Z K 7 svn:log V 159 Make this more deterministic by sorting the libraries before processing them and ensuring that we always use the samme collation rules. Approved by: re (gjb) END K 10 svn:author V 3 des K 8 svn:date V 27 2013-09-10T18:40:43.434601Z K 7 svn:log V 253 Clean up the Kerberos build by turning libheimipcc and libheimipcs into private shared libraries, instead of hacked-together archives of PIC objects. This makes it possible to build a static libkrb5 that works. Reviewed by: stas Approved by: re (gjb) END K 10 svn:author V 3 gjb K 8 svn:date V 27 2013-09-10T19:00:32.085787Z K 7 svn:log V 789 Reintegrate r250907 (previously reverted as r254754) plus MFS r254947, r255443: r250907 (scottl): MFC r248830, r250027, r250409: Several fixes and improvements to sendfile() r254947 (kib): NFS implementation of VOP_READ() sometimes upgrades the vnode lock, which causes drop of the shared lock and sleep for exclusive. As result, busying of the page before the call to vn_rdwr() makes NFS code to wait for vnode lock while page is busy, which contradicts the proper order of vnode lock -> busy. r255443 (des): Fix the length calculation for the final block of a sendfile(2) transmission which could be tricked into rounding up to the nearest page size, leaking up to a page of kernel memory. [13:11] Approved by: re (delphij) Sponsored by: The FreeBSD Foundation END K 10 svn:author V 4 bapt K 8 svn:date V 27 2013-09-10T20:56:01.103698Z K 7 svn:log V 667 Add support to detect arm vs armv6 There are two different versions of the ARM ABI depending on the TARGET_ARCH. As these are sligntly different a package built for one may not work on another. We need to detect which one we are on by parsing the .ARM.attributes section. This will only work on the ARM EABI as this section is part of the ABI definition. As armv6 only supports the ARM EABI this is not a problem for the oabi. Older versions of libelf in FreeBSD fail to read the .ARM.attributes section needed. As armv6 is unsupported on these versions we can assume we are running on arm. Submitted by: andrew Approved by: re (delphij) Obtained from: pkgng git END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2013-09-10T21:09:20.384242Z K 7 svn:log V 312 Fix my previous commit here: It's the *staging* directory which needs to have world-readable files in it, not our private state directory. [1] While here, don't warn about the directory itself, since we only tar up the contents to send out to the mirrors. [2] Pointy hat to: cperciva [1] Submitted by: des [2] END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2013-09-10T21:16:18.907300Z K 7 svn:log V 146 Remove documentation describing functionality which geom(4) does not, in fact, provide. Reviewed by: phk MFC after: 3 days Approved by: re (gjb) END K 10 svn:author V 3 des K 8 svn:date V 27 2013-09-10T22:26:11.208007Z K 7 svn:log V 309 Clean up the OpenSSH build. It is now possible to build most components as static binaries, if desired. The one exception is sshd, which runs into trouble due to libpam.a's includion of pam_ssh. Make OpenSSH use LDNS if available. This allows it to verify signed SSHFP records. Approved by: re (blanket) END K 10 svn:author V 3 des K 8 svn:date V 27 2013-09-10T22:30:22.904263Z K 7 svn:log V 311 Change the default value of VerifyHostKeyDNS to "yes" if compiled with LDNS. With that setting, OpenSSH will silently accept host keys that match verified SSHFP records. If an SSHFP record exists but could not be verified, OpenSSH will print a message and prompt the user as usual. Approved by: re (blanket) END K 10 svn:author V 3 des K 8 svn:date V 27 2013-09-10T22:40:38.553083Z K 7 svn:log V 92 Missed in r255386: libssh is more than just the .so file itself. Approved by: re (blanket) END K 10 svn:author V 3 sjg K 8 svn:date V 27 2013-09-10T23:31:38.809503Z K 7 svn:log V 91 Stick to traditional DEFAULT_SYS_PATH (/usr/share/mk) Reviewed by: obrien Approved by: re END K 10 svn:author V 6 grehan K 8 svn:date V 27 2013-09-11T00:19:16.164809Z K 7 svn:log V 14 IFC @ r255459 END K 10 svn:author V 3 gjb K 8 svn:date V 27 2013-09-11T00:42:50.697772Z K 7 svn:log V 55 Update releng/9.2 to -RC4. Approved by: re (implicit) END K 10 svn:author V 3 pho K 8 svn:date V 27 2013-09-11T06:16:12.895203Z K 7 svn:log V 87 Added one more "umount -f" test scenario. Sponsored by: EMC / Isilon storage division END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-09-11T06:41:15.940744Z K 7 svn:log V 244 Implement sendfile(2) for the posix shared memory segment file descriptor, in addition to the regular files. Requested by: alc Discussed with: emaste Tested by: pho (previous version) Sponsored by: The FreeBSD Foundation Approved by: re (hrs) END K 10 svn:author V 4 bapt K 8 svn:date V 27 2013-09-11T06:42:55.635955Z K 7 svn:log V 143 Cleanup elf macros Only define EF_MIPS_ABI when not already supplied Remove old now unused ARM macros Reported by: imp Approved by: re (kib) END K 10 svn:author V 4 neel K 8 svn:date V 27 2013-09-11T07:11:14.727928Z K 7 svn:log V 468 Fix a limitation in bhyve that would limit the number of virtual machines to the maximum number of VT-d domains (256 on a Sandybridge). We now allocate a VT-d domain for a guest only if the administrator has explicitly configured one or more PCI passthru device(s). If there are no PCI passthru devices configured (the common case) then the number of virtual machines is no longer limited by the maximum number of VT-d domains. Reviewed by: grehan@ Approved by: re@ END K 10 svn:author V 6 dteske K 8 svn:date V 27 2013-09-11T07:24:46.137120Z K 7 svn:log V 1196 Merge from stable/9 SVN r250927: MFC: r249628, r249742 - recover missing arp_ifinit() call. - plug static llentry leak (ipv4 & ipv6 were affected). PR: kern/172985 Also merge from stable/9 SVN r240313: Merge r238990 (manually resolving absence of r237263): Fix races between in_lltable_prefix_free(), lla_lookup(), llentry_free() and arptimer(): o Use callout_init_rw() for lle timeout, this allows us safely disestablish them. - This allows us to simplify the arptimer() and make it race safe. o Consistently use ifp->if_afdata_lock to lock access to linked lists in the lle hashes. o Introduce new lle flag LLE_LINKED, which marks an entry that is attached to the hash. - Use LLE_LINKED to avoid double unlinking via consequent calls to llentry_free(). - Mark lle with LLE_DELETED via |= operation istead of =, so that other flags won't be lost. o Make LLE_ADDREF(), LLE_REMREF() and LLE_FREE_LOCKED() more consistent and provide more informative KASSERTs. The patch is a collaborative work of all submitters and myself. PR: kern/165863 Submitted by: zont, rstone Submitted by: Eric van Gyzen END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-09-11T09:19:44.155520Z K 7 svn:log V 247 Clean up SIOCSIFDSTADDR usage from ifnet drivers. The ioctl itself is extremely outdated, and I doubt that it was ever used for ifnet drivers. It was used for AF_INET sockets in pre-FreeBSD time. Approved by: re (hrs) Sponsored by: Nginx, Inc. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2013-09-11T10:18:36.809695Z K 7 svn:log V 71 Clear correct data structure. MFC after: 1 week Approved by: re (hrs) END K 10 svn:author V 3 pho K 8 svn:date V 27 2013-09-11T10:51:02.224853Z K 7 svn:log V 130 Added sendfile(2) for the posix shared memory segment file descriptor test scenario. Sponsored by: EMC / Isilon storage division END K 10 svn:author V 3 alc K 8 svn:date V 27 2013-09-11T17:23:42.796674Z K 7 svn:log V 902 Prior to r254304, we only began scanning the active page queue when the amount of free memory was close to the point at which we would begin reclaiming pages. Now, we continuously scan the active page queue, regardless of the amount of free memory. Consequently, we are continuously calling pmap_ts_referenced() on active pages. Prior to this change, pmap_ts_referenced() would always demote superpage mappings in order to obtain finer-grained reference information. This made sense because we were coming under memory pressure and would soon have to begin reclaiming pages. Now, however, with continuous scanning of the active page queue, these demotions are taking a toll on performance. To address this problem, I have replaced the demotion with a heuristic for periodically clearing the reference flag on superpage mappings. Approved by: re (kib) Sponsored by: EMC / Isilon Storage Division END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-09-11T17:31:22.696929Z K 7 svn:log V 68 Fix build with gcc. Build-tested by: gjb Approved by: re (glebius) END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-09-11T17:42:35.299960Z K 7 svn:log V 107 MFC r255428: Pass -n (do not emit comments) when saving mtree information for future mergemaster(8) runs. END K 10 svn:author V 3 sjg K 8 svn:date V 27 2013-09-11T18:16:18.376587Z K 7 svn:log V 11 Merge head END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-09-11T18:22:30.183822Z K 7 svn:log V 164 Provide pr_ctloutput method for AF_LOCAL/SOCK_SEQPACKET sockets. This makes setsockopt() on them working. Reported by: Yuri Approved by: re (kib) END K 10 svn:author V 6 sbruno K 8 svn:date V 27 2013-09-11T19:20:53.504548Z K 7 svn:log V 78 MFC r254330 -- allow users to run SYS_PD mode JBOD with a non-default MAXPHYS END K 10 svn:author V 6 sbruno K 8 svn:date V 27 2013-09-11T21:45:02.818205Z K 7 svn:log V 78 MFC r254330 -- allow users to run SYS_PD mode JBOD with a non-default MAXPHYS END K 10 svn:author V 6 obrien K 8 svn:date V 27 2013-09-11T23:36:37.505052Z K 7 svn:log V 4 OBE END K 10 svn:author V 6 obrien K 8 svn:date V 27 2013-09-11T23:36:56.007957Z K 7 svn:log V 18 Branch for a WIP. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-09-12T00:14:25.590530Z K 7 svn:log V 163 Do not emit size for non-regular files. There is nothing that mtree(1) can do in this situation and would cause confusion. MFC candidate. Approved by: re (hrs) END K 10 svn:author V 6 emaste K 8 svn:date V 27 2013-09-12T00:23:09.193051Z K 7 svn:log V 369 Fix make bootstrapping with WITH_DEBUG_FILES= A HEAD buildworld on 9.x first bootstraps bmake, but this failed when building with standalone debug. Pass in the PROGNAME override to the 'make all' stage as well as 'make install' so that the .debug file is created with the correct name. Reviewed by: sjg Sponsored by: The FreeBSD Foundation Approved by: re (rodrigc) END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-09-12T00:46:32.406567Z K 7 svn:log V 296 MFC r255412: In r243868, the error message buffer errmsg have been changed from an on-stack array to a pointer and therefore sizeof(errmsg) would become 4 or 8 bytes depending on the architecture. Fix this by using ERRMSGL in place of sizeof(). Submitted by: J David END K 10 svn:author V 8 bdrewery K 8 svn:date V 27 2013-09-12T00:53:38.117498Z K 7 svn:log V 176 Consistently reference file descriptors as "fd". 55 other manpages used "fd", while these used "d" and "filedes". MFC after: 1 week Approved by: gjb Approved by: re (delphij) END K 10 svn:author V 5 hiren K 8 svn:date V 27 2013-09-12T02:31:32.156640Z K 7 svn:log V 256 We are exceeding default limit (256) of bracket nesting and clang does not like it. We should probably fix the code but appeasing clang with this fix for now. gcc does not have such limit. Reviewed by: jmg Approved by: re (hrs), sbruno (mentor, implicit) END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2013-09-12T10:39:38.784934Z K 7 svn:log V 203 Don't issue USB resume signalling in USB device mode, if the USB power mode is ON and suspend is detected. This confuses iPads running in USB host mode at least. MFC after: 1 week Approved by: re (hrs) END K 10 svn:author V 3 gjb K 8 svn:date V 27 2013-09-12T17:51:18.814829Z K 7 svn:log V 132 Update head/ to -ALPHA1 status, as part of the 10.0-RELEASE cycle. Approved by: re (implicit) Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 jhb K 8 svn:date V 27 2013-09-12T17:52:18.422519Z K 7 svn:log V 108 Fix the type of the idtype argument to wait6() in syscalls.master. Approved by: re (kib) MFC after: 1 week END K 10 svn:author V 3 jhb K 8 svn:date V 27 2013-09-12T18:01:13.181873Z K 7 svn:log V 159 Fix the type of the idtype argument to wait6() in syscalls.master. (Accidentally missed this in the previous commit) Approved by: re (kib) MFC after: 1 week END K 10 svn:author V 3 jhb K 8 svn:date V 27 2013-09-12T18:03:51.052390Z K 7 svn:log V 30 Regen. Approved by: re (kib) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2013-09-12T18:08:25.257389Z K 7 svn:log V 297 - Decode the idtype argument passed to wait6() in kdump and truss. - Don't treat an options argument of 0 to wait4() as an error in kdump. - Decode the wait options passed to wait4() and wait6() in truss and decode the returned rusage and exit status. Approved by: re (kib) MFC after: 1 week END K 10 svn:author V 8 mckusick K 8 svn:date V 27 2013-09-12T19:36:04.013957Z K 7 svn:log V 1890 MFC of 254995: A performance problem was reported in PR kern/181226: I have 25TB Dell PERC 6 RAID5 array. When it becomes almost full (10-20GB free), processes which write data to it start eating 100% CPU and write speed drops below 1MB/sec (normally to gives 400MB/sec). The revision at which it first became apparent was http://svnweb.freebsd.org/changeset/base/249782. The offending change reserved an area in each cylinder group to store metadata. The new algorithm attempts to save this area for metadata and allows its use for non-metadata only after all the data areas have been exhausted. The size of the reserved area defaults to half of minfree, so the filesystem reports full before the data area can completely fill. However, in this report, the filesystem has had minfree reduced to 1% thus forcing the metadata area to be used for data. As the filesystem approached full, it had only metadata areas left to allocate. The result was that every block allocation had to scan summary data for 30,000 cylinder groups before falling back to searching up to 30,000 metadata areas. The fix is to give up on saving the metadata areas once the free space reserve drops below 2%. The effect of this change is to use the old algorithm of just accepting the first available block that we find. Since most filesystems use the default 5% minfree, this will have no effect on their operation. For those that want to push to the limit, they will get their crappy block placements quickly. Submitted by: Dmitry Sivachenko Fix Tested by: Dmitry Sivachenko PR: kern/181226 MFC of 254996: In looking at block layouts as part of fixing filesystem block allocations under low free-space conditions (-r254995), determine that old block-preference search order used before -r249782 worked a bit better. This change reverts to that block-preference search order. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2013-09-12T19:51:40.570832Z K 7 svn:log V 364 Document several recent changes to vm_map_find(9): - Document the max_addr parameter that restricts mappings to a subset of the map's address space. - Document VMFS_ALIGNED_SPACE and update for the rename of VMFS_SUPER_SPACE. In addition, use a table that describes the different find space strategies in more detail. Reviewed by: alc Approved by: re (kib) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2013-09-12T19:52:23.174188Z K 7 svn:log V 35 Fix a typo. Approved by: re (gjb) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2013-09-12T20:46:32.739860Z K 7 svn:log V 206 Fix an off-by-one error when populating mincore(2) entries for skipped entries. lastvecindex references the last valid byte, so the new bytes should come after it. Approved by: re (kib) MFC after: 1 week END K 10 svn:author V 3 jhb K 8 svn:date V 27 2013-09-12T20:49:20.741578Z K 7 svn:log V 298 - Document the UQUAD sysctl variants. - Clarify that exactly one of the "access" flags is required and list the optional flags in a separate list. Prefer bundling CTLFLAG_TUN into the access flag by not documenting it as an optional flag to set. Approved by: re (glebius) MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2013-09-12T20:51:48.248603Z K 7 svn:log V 358 After r255294, building lib/msun's symbol map (using clang as the preprocessor) gives the following error: --- Version.map --- :287:4: error: invalid preprocessing directive # Implemented as weak aliases for imprecise versions ^ 1 error generated. Change the comment to a C-style one, to prevent this error. Approved by: re (hrs) END K 10 svn:author V 3 dim K 8 svn:date V 27 2013-09-12T21:24:59.397055Z K 7 svn:log V 399 After r255321, clang uses libc++ by default. This leads to a lot of errors when you enable WITH_GNUCXX to build libstdc++, since it will include C++ headers from the libc++ installation under ${WORLDTMP}, and those are not compatible with libstdc++ at all. To fix this, add -stdlib=libstdc++ to CXXFLAGS when building libstdc++ (and its companion libsupc++) with clang. Approved by: re (delphij) END