ƒ¸"271609 139 289 245 364 129 115 115 233 151 240 349 410 286 286 270 181 123 130 181 247 179 426 251 175 216 191 488 524 1705 301 194 532 198 132 148 225 228 621 216 374 305 1732 137 1586 114 318 318 532 211 204 223 278 240 935 359 156 958 224 199 223 176 192 280 1991 272 358 254 765 253 277 274 3693 155 223 273 219 280 708 200 175 361 220 339 194 125 218 593 196 334 929 356 380 153 357 290 341 400 986 409 506 480 294 272 255 456 156 464 106 299 152 115 237 330 199 289 195 871 309 134 134 219 426 563 1039 347 531 320 231 798 777 274 802 663 123 663 557 231 338 1135 370 K 10 svn:author V 3 avg K 8 svn:date V 27 2014-09-15T06:21:28.332835Z K 7 svn:log V 196 add gptzfsboot.8, zfsboot.8 and zfsloader.8 manual pages Many thanks to Warren Block for his reviews, corrections and additions. Reviewed by: Warren Block MFC after: 1 week END K 10 svn:author V 3 hrs K 8 svn:date V 27 2014-09-15T07:20:40.214820Z K 7 svn:log V 152 Make net.inet.ip.sourceroute, net.inet.ip.accept_sourceroute, and net.inet.ip.process_options vnet-aware. Revert changes in r271545. Suggested by: bz END K 10 svn:author V 6 royger K 8 svn:date V 27 2014-09-15T08:58:17.696683Z K 7 svn:log V 268 MFC r271099: revert r269814: blkfront: add support for unmapped IO Current busdma code for unmapped bios will not properly align the segment size, causing corruption on blkfront devices. Revert the commit until busdma code is fixed. Reported by: mav Approved by: re END K 10 svn:author V 3 des K 8 svn:date V 27 2014-09-15T09:40:30.638736Z K 7 svn:log V 37 Vendor import of OpenPAM Ourouparia. END K 10 svn:author V 3 des K 8 svn:date V 27 2014-09-15T09:41:27.650437Z K 7 svn:log V 23 Tag OpenPAM Ourouparia END K 10 svn:author V 3 des K 8 svn:date V 27 2014-09-15T09:45:10.966048Z K 7 svn:log V 23 Remove incorrect props END K 10 svn:author V 7 glebius K 8 svn:date V 27 2014-09-15T11:14:23.389567Z K 7 svn:log V 136 Add a brief description of CTLFLAG_VNET flag. Since the VIMAGE is absolutely not documented, I see no reason in long descriptions here. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-09-15T11:17:36.194586Z K 7 svn:log V 59 Add comments describing r271604 change. MFC after: 3 days END K 10 svn:author V 3 des K 8 svn:date V 27 2014-09-15T11:32:08.245225Z K 7 svn:log V 147 r271256 fixed one segfault condition but introduced another due to the wrong operator being used in the tty check. Reported by: avg@ MFH: 3 days END K 10 svn:author V 5 trasz K 8 svn:date V 27 2014-09-15T11:35:14.189498Z K 7 svn:log V 254 MFC r271393: Make it possible to disable NOP-In PDUs by the iSCSI initiator by setting kern.cam.ctl.iscsi.ping_timeout to 0. This fixes interoperability with some initiators that don't properly support NOP-Ins, namely iPXE/gPXE. Approved by: re (kib) END K 10 svn:author V 3 kib K 8 svn:date V 27 2014-09-15T12:28:29.374976Z K 7 svn:log V 317 Provide the unique implementation for the VOP_GETPAGES() method used by ffs and ext2fs. Remove duplicated call to vm_page_zero_invalid(), done by VOP and by vm_pager_getpages(). Use vm_pager_free_nonreq(). Reviewed by: alc (previous version) Sponsored by: The FreeBSD Foundation MFC after: 6 weeks (after r271596) END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2014-09-15T12:36:40.503993Z K 7 svn:log V 188 MFC: r271286 Use the right constants in comparisons. This is currently a nop, as MIN_RXD == MIN_TXD and MAX_RXD == MAX_TXD. Reviewed by: Eric Joyner @ Intel Approved by: re (kib) END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2014-09-15T12:44:44.623601Z K 7 svn:log V 188 MFC: r271286 Use the right constants in comparisons. This is currently a nop, as MIN_RXD == MIN_TXD and MAX_RXD == MAX_TXD. Reviewed by: Eric Joyner @ Intel Approved by: re (kib) END K 10 svn:author V 5 trasz K 8 svn:date V 27 2014-09-15T13:01:47.634170Z K 7 svn:log V 175 MFC r271317: Avoid unlocking unlocked mutex in RCTL jail code. Specific test case is attached to PR. PR: 193457 Approved by: re (kib) Sponsored by: The FreeBSD Foundation END K 10 svn:author V 5 trasz K 8 svn:date V 27 2014-09-15T13:19:40.193164Z K 7 svn:log V 87 MFC r271436: Fix typo. Approved by: re (marius) Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 des K 8 svn:date V 27 2014-09-15T13:40:09.645436Z K 7 svn:log V 31 Upgrade to OpenPAM Ourouparia. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2014-09-15T13:59:36.655762Z K 7 svn:log V 34 Patches for previous patch batch. END K 10 svn:author V 5 trasz K 8 svn:date V 27 2014-09-15T14:04:55.088716Z K 7 svn:log V 87 MFC r271157: Fix typo. Approved by: re (marius) Sponsored by: The FreeBSD Foundation END K 10 svn:author V 5 trasz K 8 svn:date V 27 2014-09-15T14:21:57.463452Z K 7 svn:log V 152 MFC r271169: Turn two errors, which are possible to trigger only by bugs, into assertions. Approved by: re (gjb) Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 hrs K 8 svn:date V 27 2014-09-15T14:43:58.826512Z K 7 svn:log V 87 Use generic SYSCTL_* macro instead of deprecated SYSCTL_VNET_*. Suggested by: glebius END K 10 svn:author V 6 royger K 8 svn:date V 27 2014-09-15T15:15:52.727348Z K 7 svn:log V 330 xen: don't set suspend/resume methods for the PIRQ PIC The suspend/resume of event channels is already handled by the xen_intr_pic. If those methods are set on the PIRQ PIC they are just called twice, which breaks proper resume. This fix restores migration of FreeBSD guests to a working state. Sponsored by: Citrix Systems R&D END K 10 svn:author V 3 ian K 8 svn:date V 27 2014-09-15T15:36:00.010204Z K 7 svn:log V 158 The private peripheral interrupts start at offset 16, not 0. Also, use names rather than inline mystery constants for these offsets. Pointed out by: andrew END K 10 svn:author V 7 glebius K 8 svn:date V 27 2014-09-15T15:49:29.772894Z K 7 svn:log V 79 Remove redundant declaration. vnode.h should be included before vnode_pager.h. END K 10 svn:author V 5 trasz K 8 svn:date V 27 2014-09-15T16:40:27.572540Z K 7 svn:log V 121 MFC r271187: Avoid ctld(8) crash on getaddrinfo(3) failure. Approved by: re (gjb) Sponsored by: The FreeBSD Foundation END K 10 svn:author V 6 emaste K 8 svn:date V 27 2014-09-15T16:47:04.623258Z K 7 svn:log V 96 MFC r265171 by nwhitehorn: Use mkimg instead of md(4) and gpart [for powerpc]. Approved by: re END K 10 svn:author V 3 alc K 8 svn:date V 27 2014-09-15T17:14:09.556865Z K 7 svn:log V 395 Three improvements to vnode_pager_generic_getpages(): Eliminate an exclusive object lock acquisition and release on the expected execution path. Do page zeroing before the object lock is acquired rather than during the time that the object lock is held. Use vm_pager_free_nonreq() to eliminate duplicated code. Reviewed by: kib MFC after: 6 weeks Sponsored by: EMC / Isilon Storage Division END K 10 svn:author V 3 jhb K 8 svn:date V 27 2014-09-15T17:20:13.243047Z K 7 svn:log V 431 Add stricter checking of some mmap() arguments: - Fail with EINVAL if an invalid protection mask is passed to mmap(). - Fail with EINVAL if an unknown flag is passed to mmap(). - Fail with EINVAL if both MAP_PRIVATE and MAP_SHARED are passed to mmap(). - Require one of either MAP_PRIVATE or MAP_SHARED for non-anonymous mappings. Reviewed by: alc, kib MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D698 END K 10 svn:author V 6 emaste K 8 svn:date V 27 2014-09-15T17:49:46.142676Z K 7 svn:log V 1608 MFC EFI support for the installer r264978 (nwhitehorn): Add EFI support to the installer. This requires that the kernel provide a sysctl to determine what firmware is in use. This sysctl does not exist yet, so the following blocks are in front of the wheels: - I've provisionally called this "hw.platform" after the equivalent thing on PPC - The logic to check the sysctl is short-circuited to always choose BIOS. There's a comment in the top of the file about how to turn this off. If IA64 acquired a boot1.efifat-like thing (probably with very few modifications), the same code could be adapted there. r265016 (nwhitehorn): Finish connecting up installer UEFI support. If the kernel was booted using EFI, set up the disks for an EFI system. If booted from BIOS/CSM, set up for BIOS. r268256 (nwhitehorn): After EFI support was added to the installer, it needed to allow boot partitions of types other than "freebsd-boot" (in particular, "efi"). This allows the removal of some nasty hacks for supporting PowerPC systems, in particular aliasing freebsd-boot to apple-boot on APM and an IBM-specific code on MBR. This changes the installer to use the correct names, which also breaks a degeneracy in the meaning of "freebsd-boot" that allows the addition of support for some newer IBM systems that can boot from GPT in addition to MBR. Since I have no idea how to detect which those systems are, leave the default on IBM PPC systems as MBR for now. Approved by: re PR: 193658 Relnotes: Yes END K 10 svn:author V 6 emaste K 8 svn:date V 27 2014-09-15T17:56:55.579004Z K 7 svn:log V 205 MFC r268540 by nwhitehorn: Allow up to 512K for boot code on GPT with BIOS. As pmbr.s says in a comment, "545K should be enough for any boot code". This rounds down slightly. Approved by: re END K 10 svn:author V 7 glebius K 8 svn:date V 27 2014-09-15T18:09:30.398905Z K 7 svn:log V 98 Merge head r271388 through 271631. This merge required some manual conflict resolving and coding. END K 10 svn:author V 4 ngie K 8 svn:date V 27 2014-09-15T18:41:50.693584Z K 7 svn:log V 438 Validate the mode argument in access, eaccess, and faccessat for optional POSIX compliance and to improve compatibility with Linux and NetBSD The issue was identified with lib/libc/sys/t_access:access_inval from NetBSD Update the manpage accordingly PR: 181155 Reviewed by: jilles (code), jmmv (code), wblock (manpage), wollman (code) MFC after: 4 weeks Phabric: D678 (code), D786 (manpage) Sponsored by: EMC / Isilon Storage Division END K 10 svn:author V 4 ngie K 8 svn:date V 27 2014-09-15T18:43:57.343818Z K 7 svn:log V 104 Bump .Dd for the content change done in r271639 PR: 181155 Sponsored by: EMC / Isilon Storage Division END K 10 svn:author V 7 glebius K 8 svn:date V 27 2014-09-15T18:46:02.391592Z K 7 svn:log V 36 Merge head r258543 through r271639. END K 10 svn:author V 4 ngie K 8 svn:date V 27 2014-09-15T19:07:24.994197Z K 7 svn:log V 55 Commit draft make checkdpadd fixes for usr.bin/svn/... END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2014-09-15T19:38:34.924174Z K 7 svn:log V 129 Chunk IDs are 8 bit entities, not 16 bit. Thanks to Peter Kasting from Google for drawing my attention to it. MFC after: 3 days END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-09-15T19:48:27.670860Z K 7 svn:log V 135 Add quirks to disable READ CAPACITY (16) for PNY USB 3.0 Flash Drives. Submitted by: Sean Fagan MFC after: 3 days END K 10 svn:author V 6 adrian K 8 svn:date V 27 2014-09-15T19:53:49.496488Z K 7 svn:log V 525 Set DROP_EN on each RX queue if transmit flow-control is disabled. This allows the NIC to drop frames on the receive queue and not cause the MAC to block on receiving to _any_ queue. Tested: igb0@pci0:5:0:0: class=0x020000 card=0x152115d9 chip=0x15218086 rev=0x01 hdr=0x00 vendor = 'Intel Corporation' device = 'I350 Gigabit Network Connection' class = network subclass = ethernet Discussed with: Eric Joyner MFC after: 1 week Sponsored by: Norse Corp, Inc. END K 10 svn:author V 2 se K 8 svn:date V 27 2014-09-15T20:08:07.512434Z K 7 svn:log V 124 MFC r271452: Add two forgotten keymap names (fr.kbd and fr.acc.kbd) to the list of files to be installed. Approved by: re END K 10 svn:author V 6 adrian K 8 svn:date V 27 2014-09-15T20:50:26.980958Z K 7 svn:log V 278 Fix a double-free of mbufs in rx_ixgbe_discard(). fmp->buf at the free point is already part of the chain being freed, so double-freeing is counter-productive. Submitted by: Marc De La Gueronniere MFC after: 1 week Sponsored by: Verisign, Inc. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2014-09-15T20:54:12.606371Z K 7 svn:log V 209 The error bits are not valid with EOP=0; so intermediary fragments should not be discarded. Submitted by: Marc De La Gueronniere MFC after: 1 week Sponsored by: Verisign, Inc. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2014-09-15T21:09:19.007172Z K 7 svn:log V 1635 Disable flow-director support until it's been debugged and verified. The flowdirector feature shares on-chip memory with other things such as the RX buffers. In theory it should be configured in a way that doesn't interfere with the rest of operation. In practice, the RX buffer calculation didn't take the flow-director allocation into account and there'd be overlap. This lead to various garbage frames being received containing what looks like internal NIC state. What _I_ saw was traffic ending up in the wrong RX queues. If I was doing a UDP traffic test with only one NIC ring receiving traffic, everything is fine. If I fired up a second UDP stream which came in on another ring, there'd be a few percent of traffic from both rings ending up in the wrong ring. Ie, the RSS hash would indicate it was supposed to come in ring X, but it'd come in ring Y. However, when the allocation was fixed up, the developers at Verisign still saw traffic stalls. The flowdirector feature ends up fiddling with the NIC to do various attempts at load balancing connections by populating flow table rules based on sampled traffic. It's likely that all of that has to be carefully reviewed and made less "magic". So for now the flow director feature is disabled (which fixes both what I was seeing and what they were seeing) until it's all much more debugged and verified. Tested: * (me) 82599EB 2x10G NIC, RSS UDP testing. * (verisign) not sure on the NIC (but likely 82599), 100k-200k/sec TCP transaction tests. Submitted by: Marc De La Gueronniere MFC after: 1 week Sponsored by: Verisign, Inc. END K 10 svn:author V 3 jmg K 8 svn:date V 27 2014-09-15T22:32:35.564168Z K 7 svn:log V 45 document mqueuefs is required for mq_open... END K 10 svn:author V 5 kargl K 8 svn:date V 27 2014-09-15T23:21:57.090239Z K 7 svn:log V 1490 * Makefile: . Hook e_lgammal[_r].c to the build. . Create man page links for lgammal[-r].3. * Symbol.map: . Sort lgammal to its rightful place. . Add FBSD_1.4 section for the new lgamal_r symbol. * ld128/e_lgammal_r.c: . 128-bit implementataion of lgammal_r(). * ld80/e_lgammal_r.c: . Intel 80-bit format implementation of lgammal_r(). * src/e_lgamma.c: . Expose lgammal as a weak reference to lgamma for platforms where long double is mapped to double. * src/e_lgamma_r.c: . Use integer literal constants instead of real literal constants. Let compiler(s) do the job of conversion to the appropriate type. . Expose lgammal_r as a weak reference to lgamma_r for platforms where long double is mapped to double. * src/e_lgammaf_r.c: . Fixed the Cygnus Support conversion of e_lgamma_r.c to float. This includes the generation of new polynomial and rational approximations with fewer terms. For each approximation, include a comment on an estimate of the accuracy over the relevant domain. . Use integer literal constants instead of real literal constants. Let compiler(s) do the job of conversion to the appropriate type. This allows the removal of several explicit casts of double values to float. * src/e_lgammal.c: . Wrapper for lgammal() about lgammal_r(). * src/imprecise.c: . Remove the lgamma. * src/math.h: . Add a prototype for lgammal_r(). * man/lgamma.3: . Document the new functions. Reviewed by: bde END K 10 svn:author V 2 ae K 8 svn:date V 27 2014-09-15T23:43:01.588901Z K 7 svn:log V 23 Fix build after merge. END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2014-09-16T00:04:38.984463Z K 7 svn:log V 220 MFC r270160: Destroy the "qdiffsample_zone" UMA zone on unload to avoid a use-after-unload panic easily triggered by running "sysctl -a" after unload. Reported and tested by: Grenville Armitage END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2014-09-16T00:11:01.523711Z K 7 svn:log V 220 MFC r270160: Destroy the "qdiffsample_zone" UMA zone on unload to avoid a use-after-unload panic easily triggered by running "sysctl -a" after unload. Reported and tested by: Grenville Armitage END K 10 svn:author V 4 ngie K 8 svn:date V 27 2014-09-16T00:56:47.578298Z K 7 svn:log V 438 Validate the mode argument in access, eaccess, and faccessat for optional POSIX compliance and to improve compatibility with Linux and NetBSD The issue was identified with lib/libc/sys/t_access:access_inval from NetBSD Update the manpage accordingly PR: 181155 Reviewed by: jilles (code), jmmv (code), wblock (manpage), wollman (code) MFC after: 4 weeks Phabric: D678 (code), D786 (manpage) Sponsored by: EMC / Isilon Storage Division END K 10 svn:author V 4 ngie K 8 svn:date V 27 2014-09-16T00:59:08.179806Z K 7 svn:log V 117 Bump .Dd for the content change done to access(2) in r271655 PR: 181155 Sponsored by: EMC / Isilon Storage Division END K 10 svn:author V 4 ngie K 8 svn:date V 27 2014-09-16T00:59:56.502418Z K 7 svn:log V 110 Bump __FreeBSD_version for the change made in r271655 PR: 181155 Sponsored by: EMC / Isilon Storage Division END K 10 svn:author V 6 adrian K 8 svn:date V 27 2014-09-16T01:21:47.131619Z K 7 svn:log V 127 Modify cpuset_setithread() to take a CPU ID as an integer, not a char. We're going to end up having > 254 CPUs at some point. END K 10 svn:author V 6 grehan K 8 svn:date V 27 2014-09-16T01:59:19.926853Z K 7 svn:log V 182 MFC r270689: Implement the 0x2B SUB instruction, and the OR variant of 0x81. Found with local APIC accesses from bitrig/amd64 bsd.rd, 07/15-snap. Approved by: re (rodrigc) END K 10 svn:author V 6 adrian K 8 svn:date V 27 2014-09-16T03:26:42.085032Z K 7 svn:log V 144 Ensure the correct software IPv4 hash is done based on the configured RSS parameters, rather than assuming we're hashing IPv4+UDP and IPv4+TCP. END K 10 svn:author V 4 neel K 8 svn:date V 27 2014-09-16T03:31:40.969783Z K 7 svn:log V 841 Use V_IRQ, V_INTR_VECTOR and V_TPR to offload APIC interrupt delivery to the processor. Briefly, the hypervisor sets V_INTR_VECTOR to the APIC vector and sets V_IRQ to 1 to indicate a pending interrupt. The hardware then takes care of injecting this vector when the guest is able to receive it. Legacy PIC interrupts are still delivered via the event injection mechanism. This is because the vector injected by the PIC must reflect the state of its pins at the time the CPU is ready to accept the interrupt. Accesses to the TPR via %CR8 are handled entirely in hardware. This requires that the emulated TPR must be synced to V_TPR after a #VMEXIT. The guest can also modify the TPR via the memory mapped APIC. This requires that the V_TPR must be synced with the emulated TPR before a VMRUN. Reviewed by: Anish Gupta (akgupt3@gmail.com) END K 10 svn:author V 4 neel K 8 svn:date V 27 2014-09-16T04:01:55.834726Z K 7 svn:log V 265 Minor cleanup. Get rid of unused 'svm_feature' from the softc. Get rid of the redundant 'vcpu_cnt' checks in svm.c. There is a similar check in vmm.c against 'vm->active_cpus' before the AMD-specific code is called. Submitted by: Anish Gupta (akgupt3@gmail.com) END K 10 svn:author V 3 hrs K 8 svn:date V 27 2014-09-16T05:45:38.574366Z K 7 svn:log V 64 Fix a typo; master server for iprop service should be singular. END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2014-09-16T08:40:52.621242Z K 7 svn:log V 860 Cache GELI passphrases entered at the console during the boot process, in order to improve user-friendliness when a system has multiple disks encrypted using the same passphrase. When examining a new GELI provider, the most recently used passphrase will be attempted before prompting for a passphrase; and whenever a passphrase is entered, it is cached for later reference. When the root disk is mounted, the cached passphrase is zeroed (triggered by the "mountroot" event), in order to minimize the possibility of leakage of passphrases. (After root is mounted, the "taste and prompt for passphrases on the console" code path is disabled, so there is no potential for a passphrase to be stored after the zeroing takes place.) This behaviour can be disabled by setting kern.geom.eli.boot_passcache=0. Reviewed by: pjd, dteske, allanjude MFC after: 7 days END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2014-09-16T09:22:43.595958Z K 7 svn:log V 128 The MTU is handled as a 32-bit entity within the SCTP stack. This was reported by Peter Kasting from Google. MFC after: 3 days END K 10 svn:author V 7 delphij K 8 svn:date V 27 2014-09-16T09:48:24.346806Z K 7 svn:log V 102 Fix Denial of Service in TCP packet processing. Submitted by: glebius Security: FreeBSD-SA-14:19.tcp END K 10 svn:author V 7 delphij K 8 svn:date V 27 2014-09-16T09:48:35.068478Z K 7 svn:log V 126 Fix Denial of Service in TCP packet processing. Security: FreeBSD-SA-14:19.tcp Approved by: re (implicit, security advisory) END K 10 svn:author V 7 delphij K 8 svn:date V 27 2014-09-16T09:49:11.947547Z K 7 svn:log V 80 Fix Denial of Service in TCP packet processing. Security: FreeBSD-SA-14:19.tcp END K 10 svn:author V 7 delphij K 8 svn:date V 27 2014-09-16T09:50:19.484939Z K 7 svn:log V 96 Fix Denial of Service in TCP packet processing. Security: FreeBSD-SA-14:19.tcp Approved by: so END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2014-09-16T10:57:55.455835Z K 7 svn:log V 184 Make a type conversion explicit. When compiling this code on Windows as part of the SCTP userland stack, this fixes a warning reported by Peter Kasting from Google. MFC after: 3 days END K 10 svn:author V 7 glebius K 8 svn:date V 27 2014-09-16T11:07:25.232222Z K 7 svn:log V 1893 FreeBSD-SA-14:19.tcp raised attention to the state of our stack towards blind SYN/RST spoofed attack. Originally our stack used in-window checks for incoming SYN/RST as proposed by RFC793. Later, circa 2003 the RST attack was mitigated using the technique described in P. Watson "Slipping in the window" paper [1]. After that, the checks were only relaxed for the sake of compatibility with some buggy TCP stacks. First, r192912 introduced the vulnerability, just fixed by aforementioned SA. Second, r167310 had slightly relaxed the default RST checks, instead of utilizing net.inet.tcp.insecure_rst sysctl. In 2010 a new technique for mitigation of these attacks was proposed in RFC5961 [2]. The idea is to send a "challenge ACK" packet to the peer, to verify that packet arrived isn't spoofed. If peer receives challenge ACK it should regenerate its RST or SYN with correct sequence number. This should not only protect against attacks, but also improve communication with broken stacks, so authors of reverted r167310 and r192912 won't be disappointed. [1] http://bandwidthco.com/whitepapers/netforensics/tcpip/TCP Reset Attacks.pdf [2] http://www.rfc-editor.org/rfc/rfc5961.txt Changes made: o Revert r167310. o Implement "challenge ACK" protection as specificed in RFC5961 against RST attack. On by default. - Carefully preserve r138098, which handles empty window edge case, not described by the RFC. - Update net.inet.tcp.insecure_rst description. o Implement "challenge ACK" protection as specificed in RFC5961 against SYN attack. On by default. - Provide net.inet.tcp.insecure_syn sysctl, to turn off RFC5961 protection. The changes were tested at Netflix. The tested box didn't show any anomalies compared to control box, except slightly increased number of TCP connection in LAST_ACK state. Reviewed by: rrs Sponsored by: Netflix Sponsored by: Nginx, Inc. END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2014-09-16T13:48:46.235647Z K 7 svn:log V 176 Small cleanup which addresses a warning regaring the truncation of a 64-bit entity to a 32-bit entity. This issue was reported by Peter Kasting from Google. MFC after: 3 days END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2014-09-16T14:20:33.156689Z K 7 svn:log V 262 Use a consistent type for the number of HMAC algorithms. This fixes a bug which resulted in a warning on the userland stack, when compiled on Windows. Thanks to Peter Kasting from Google for reporting the issue and provinding a potential fix. MFC after: 3 days END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2014-09-16T14:39:24.088791Z K 7 svn:log V 158 Add a explict cast to silence a warning when building the userland stack on Windows. This issue was reported by Peter Kasting from Google. MFC after: 3 days END K 10 svn:author V 7 asomers K 8 svn:date V 27 2014-09-16T15:28:19.854540Z K 7 svn:log V 668 Fix source address selection on unbound sockets in the presence of multiple fibs. Use the mbuf's or the socket's fib instead of RT_ALL_FIBS. Fixes PR 187553. Also fixes netperf's UDP_STREAM test on a nondefault fib. sys/netinet/ip_output.c In ip_output, lookup the source address using the mbuf's fib instead of RT_ALL_FIBS. sys/netinet/in_pcb.c in in_pcbladdr, lookup the source address using the socket's fib, because we don't seem to have the mbuf fib. They should be the same, though. tests/sys/net/fibs_test.sh Clear the expected failure on udp_dontroute. PR: 187553 CR: https://reviews.freebsd.org/D772 MFC after: 3 weeks Sponsored by: Spectra Logic END K 10 svn:author V 3 gjb K 8 svn:date V 27 2014-09-16T15:31:12.460763Z K 7 svn:log V 160 Catch up with Crochet changes to fix the BEAGLEBONE build. Tested on: stable/10@r271618 MFC after: 3 days X-10.1-MFC: yes Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 gjb K 8 svn:date V 27 2014-09-16T15:31:50.622052Z K 7 svn:log V 184 Catch up with Crochet changes to fix the WANDBOARD-QUAD build. Tested on: stable/10@r271618 MFC after: 3 days X-10.1-MFC: yes X-MFC-With: r271676 Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 gjb K 8 svn:date V 27 2014-09-16T15:35:13.726796Z K 7 svn:log V 181 Set a static revision of the Crochet checkout to avoid surprise build failures. MFC after: 3 days X-10.1-MFC: yes X-MFC-With: r271676, r271677 Sponsored by: The FreeBSD Foundation END K 10 svn:author V 2 bz K 8 svn:date V 27 2014-09-16T15:45:53.279832Z K 7 svn:log V 3600 Merge atse(4) interrupt handling and race condition fixes from cheribsd: commit 8bd88585ed8e3f7def0d780a1bc30d96fe642b9c Rework atse_rx_cycles handling: count packets instead of fills, and use the limit only when polling, not when in interrupt mode. Otherwise, we may stop reading the FIFO midpacket and clear the event mask even though the FIFO still has data to read, which could stall receive when a large packet arrives. Add a comment about races in the Altera FIFO interface: we may need to do a little more work to handle races than we are. commit 20b39086cc612f8874dc9e6ef4c0c2eb777ba92a Use 'sizeof(data)' rather than '4' when checking an mbuf bound, as is the case for adjusting length/etc. commit e18953174a265f40e9ba60d76af7d288927f5382 Break out atse_intr() into two separate routines, one for each of the two interrupt sources: receive and transmit. commit 6deedb43246ab3f9f597918361831fbab7fac4ce For the RX interrupt, take interest only in ALMOSTEMPTY and OVERFLOW. For the TX interrupt, take interest only in ALMOSTFULL and UNDERFLOW. Perform TX atse_start_locked() once rather than twice in TX interrupt handling -- and only if !FULL, rather than unconditionally. commit 12601972ba08d4380201a74f5b967bdaeb23092c Experimentation suggests that the Altera Triple-Speed Ethernet documentation is incorrect and bits in the event and interrupt-enable registers are not irrationally rearranged relative to the status register. commit 3cff2ffad769289fce3a728152e7be09405385d8 Substantially rework interrupt handling in the atse(4) driver: - Introduce a new macro ATSE_TX_PENDING() which checks whether there is any pending data to transmit, either in an in-progress packet or in the TX queue. - Introduce new ATSE_RX_STATUS_READ() and ATSE_TX_STAUTS_WRITE() macros that query the FIFO status registers rather than event registers, offering level- rather than edge-triggered FIFO conditions. - For RX, interrupt only on full/overflow/underflow; for TX, interrupt only on empty/overflow/underflow. - Add new ATSE_RX_INTR_READ() and ATSE_RX_INTR_WRITE() macros useful for debugging interrupt behaviour. - Add a debug.atse_intr_debug_enable sysctl that causes various pieces of FIFO state to be printed out on each RX or TX interrupt. This is disabled by default but good to turn on if the interface appears to wedge. Also print debugging information when polling. - In the watchdog handler, do receive, not just transmit, processing, to ensure that the rx, not just tx, queue is being handled -- and, in particular, will be drained such that interrupts can resume. - Rework both atse_rx_intr() and atse_tx_intr() to eliminate many race conditions, and add comments on why various things are in various orders. Interactions between modifications to the event and interrupt masks are quite subtle indeed, and we must actively check for a number of races (e.g., event mask cleared; packet arrives; interrupts enabled). We also now use the status registers rather than event registers for FIFO status checks to avoid other races; we continue to use event registers for underflow/overflow. With this change, interrupt-driven operation of atse appears (for the time being) robust. commit 3393bbff5c68a4e61699f9b4a62af5d2a5f918f8 atse: Fix build after 3cff2ffa Obtained from: cheribsd Submitted by: rwatson, emaste Sponsored by: DARPA/AFRL MFC after: 3 days END K 10 svn:author V 6 brooks K 8 svn:date V 27 2014-09-16T17:07:32.050599Z K 7 svn:log V 60 Fix some extra whitespace noticed when reviewing git diffs. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2014-09-16T17:21:06.391731Z K 7 svn:log V 130 Permit MAP_RENAME and MAP_NORESERVE for now. These flags should be removed, but at least Chromium and OpenJDK use MAP_NORESERVE. END K 10 svn:author V 8 dumbbell K 8 svn:date V 27 2014-09-16T17:42:37.464778Z K 7 svn:log V 175 vt(4): Fix a LOR which occurs during a call to vt_upgrade() Reported by: kib@ Review: https://reviews.freebsd.org/D785 Reviewed by: ray@ Approved by: ray@ MFC after: 2 days END K 10 svn:author V 3 smh K 8 svn:date V 27 2014-09-16T17:47:13.059309Z K 7 svn:log V 126 MFC 265253: Don't treat TRIM requests returning ENOTSUP as an unexpected error Approved by: re (gjb) Sponsored by: Multiplay END K 10 svn:author V 8 dumbbell K 8 svn:date V 27 2014-09-16T18:02:24.220978Z K 7 svn:log V 182 vt(4): Use vt_fb_drawrect() and vt_fb_setpixel() in all vt_fb-derivative Review: https://reviews.freebsd.org/D789 Reviewed by: nwhitehorn Approved by: nwhitehorn MFC after: 2 days END K 10 svn:author V 6 grehan K 8 svn:date V 27 2014-09-16T19:08:54.778627Z K 7 svn:log V 612 MFC virtio-net changes. Re-tested with NetBSD/amd64 5.2.2, 6.1.4 and 7-beta. r271299: Add a callback to be notified about negotiated features. r271338: Allow vtnet operation without merged rx buffers. NetBSD's virtio-net implementation doesn't negotiate the merged rx-buffers feature. To support this, check to see if the feature was negotiated, and then adjust the operation of the receive path accordingly by using a larger iovec, and a smaller rx header. In addition, ignore writes to the (read-only) status byte. Approved by: re (glebius) Obtained from: Vincenzo Maffione, Universita` di Pisa (r271299) END K 10 svn:author V 3 gjb K 8 svn:date V 27 2014-09-16T19:20:06.333386Z K 7 svn:log V 107 Bump __FreeBSD_version after SA-14:19.tcp Approved by: re (implicit) Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 gjb K 8 svn:date V 27 2014-09-16T19:25:27.355978Z K 7 svn:log V 83 Document SA-14:19 Approved by: re (implicit) Sponsored by: The FreeBSD Foundation END K 10 svn:author V 6 sbruno K 8 svn:date V 27 2014-09-16T20:02:16.034466Z K 7 svn:log V 265 Add proper disable/enable hooks to the default scripts so that this is only run when asked for by the user. Right now, hv_kvpd is run on every boot. Don't do that. Add hv_kvpd_enable= for this script to be run. MFC with 271493 MFC after: 2 weeks Relnotes: yes END K 10 svn:author V 6 sbruno K 8 svn:date V 27 2014-09-16T20:48:13.653025Z K 7 svn:log V 124 Such typo, many email, very spelling. wow. MFC with 271688 271493 Submitted by: ngie ian MFC after: 2 weeks Relnotes: yes END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2014-09-16T21:26:24.760600Z K 7 svn:log V 241 MFC r270160: Destroy the "qdiffsample_zone" UMA zone on unload to avoid a use-after-unload panic easily triggered by running "sysctl -a" after unload. Reported and tested by: Grenville Armitage Approved by: re(gjb) END K 10 svn:author V 8 melifaro K 8 svn:date V 27 2014-09-16T21:48:48.724910Z K 7 svn:log V 97 * Fix if_omcast handling * Convert if_oerrors to pcpu. Suggested by: glebius MFC after: 2 weeks END K 10 svn:author V 5 markj K 8 svn:date V 27 2014-09-16T22:26:01.997334Z K 7 svn:log V 31 Fix a typo. MFC after: 3 days END K 10 svn:author V 5 markj K 8 svn:date V 27 2014-09-16T22:54:15.707720Z K 7 svn:log V 123 Fix elfdump(1) usage in the userland CTF tests. PR: 193110 MFC after: 1 week Sponsored by: EMC / Isilon Storage Division END K 10 svn:author V 4 neel K 8 svn:date V 27 2014-09-17T00:30:25.402343Z K 7 svn:log V 499 Rework vNMI injection. Keep track of NMI blocking by enabling the IRET intercept on a successful vNMI injection. The NMI blocking condition is cleared when the handler executes an IRET and traps back into the hypervisor. Don't inject NMI if the processor is in an interrupt shadow to preserve the atomic nature of "STI;HLT". Take advantage of this and artificially set the interrupt shadow to prevent NMI injection when restarting the "iret". Reviewed by: Anish Gupta (akgupt3@gmail.com), grehan END K 10 svn:author V 5 markj K 8 svn:date V 27 2014-09-17T00:54:00.466913Z K 7 svn:log V 101 Fix some incorrect endianness checks. MFC after: 1 week Sponsored by: EMC / Isilon Storage Division END K 10 svn:author V 7 delphij K 8 svn:date V 27 2014-09-17T02:32:22.954297Z K 7 svn:log V 237 Use a devd event to start hv_kvpd instead of doing so in rc.d script. This is cleaner and eliminates the unneeded startup of KVP daemon on systems that do not run as a Hyper-V guest. Submitted by: hrs X-MFC-with: 271493, 271688, 271699 END K 10 svn:author V 8 jhibbits K 8 svn:date V 27 2014-09-17T02:43:47.586477Z K 7 svn:log V 831 Fix the stack tracing for dtrace/powerpc. Summary: Fix the stack tracing for dtrace/powerpc by using the trapexit/asttrapexit return address sentinels instead of checking within the kernel address space. As part of this, I had to add new inline functions. FBT traces the kernel, so we have to have special case handling for this, since a trap will create a full new trap frame, and there's no way to pass around the 'real' stack. I handle this by special-casing 'aframes == 0' with the trap frame. If aframes counts out to the trap frame, then assume we're looking for the full kernel trap frame, so switch to the real stack pointer. Test Plan: Tested on powerpc64 Reviewers: rpaulo, markj, nwhitehorn Reviewed By: markj, nwhitehorn Differential Revision: https://reviews.freebsd.org/D788 MFC after: 3 week Relnotes: Yes END K 10 svn:author V 5 markj K 8 svn:date V 27 2014-09-17T03:40:49.688229Z K 7 svn:log V 261 Fix a number of typos and programming errors in the userland CTF tests. It seems that they would only pass by chance on illumos; on FreeBSD, they still fail since userland CTF is not yet supported. MFC after: 1 week Sponsored by: EMC / Isilon Storage Division END K 10 svn:author V 5 markj K 8 svn:date V 27 2014-09-17T04:02:56.177768Z K 7 svn:log V 285 Implement a workaround to allow this test program to be compiled with clang. It seems that if a pragma is used to define a weak alias for a local function, the pragma must appear after the function is defined. PR: 193056 MFC after: 1 week Sponsored by: EMC / Isilon Storage Division END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-09-17T06:46:37.428366Z K 7 svn:log V 61 Fix typo in defined ROD types in r269497. MFC after: 3 days END K 10 svn:author V 5 trasz K 8 svn:date V 27 2014-09-17T07:06:02.986984Z K 7 svn:log V 262 MFC r271319: Fix ctld(8) to not forget to send TargetPortalGroupTag and TargetAlias when the initiator skips security negotiation. This fixes interoperability with Xtend SAN initiator. PR: 193021 Approved by: re (marius) Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-09-17T07:08:59.883956Z K 7 svn:log V 197 Fix tpc_create_token() introduced in r269497 to encode CREATOR LOGICAL UNIT DESCRIPTOR field as Identification Descriptor CSCD descriptor, not just as Identification Descriptor. MFC after: 3 days END K 10 svn:author V 5 trasz K 8 svn:date V 27 2014-09-17T07:55:23.725951Z K 7 svn:log V 246 Fix LUN discovery for targets that don't support REPORT_LUNS, broken in r263741. At least with CTL (slightly modified to report SPC2) there is still some problem: it doesn't seem to find LUNs higher than 7. Sponsored by: The FreeBSD Foundation END K 10 svn:author V 5 trasz K 8 svn:date V 27 2014-09-17T08:25:48.861666Z K 7 svn:log V 305 MFC r271167: Make it possible to quote names in autofs maps using double quotes. Note that this is a workaround, not a proper solution. If you know lex well, and want to help - please let me know, I'll explain how it should work. PR: 192968 Approved by: re (kib) Sponsored by: The FreeBSD Foundation END K 10 svn:author V 8 dumbbell K 8 svn:date V 27 2014-09-17T08:28:50.273635Z K 7 svn:log V 888 drm/i915: Add HW context support This feature is required by Mesa 9.2+. Without this, a GL application crashes with the following message: # glxinfo name of display: :0.0 Gen6+ requires Kernel 3.6 or later. Assertion failed: (ctx->Version > 0), function handle_first_current, file ../../src/mesa/main/context.c, line 1498. Abort (core dumped) Now, Mesa 10.2.4 and 10.3-rc3 works fine: # glxinfo name of display: :0 display: :0 screen: 0 direct rendering: Yes ... OpenGL renderer string: Mesa DRI Intel(R) 965GM OpenGL version string: 2.1 Mesa 10.2.4 ... The code was imported from Linux 3.8.13. Reviewed by: kib@ Tested by: kwm@, danfe@, Henry Hu, Lundberg, Johannes , Johannes Dieterich , Lutz Bichler , MFC after: 3 days Relnotes: yes END K 10 svn:author V 5 trasz K 8 svn:date V 27 2014-09-17T08:47:58.587069Z K 7 svn:log V 314 MFC r271437: Don't blindly assume the target agreed to transition to Full Feature Phase; if we got a Login Response PDU without the "T" bit set, try again with an empty request. This fixes interoperability with COMSTAR. Reviewed by: mav Tested by: mav Approved by: re (kib) Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-09-17T14:06:21.180808Z K 7 svn:log V 413 MFC r271604, r271616: Add couple memory barriers to order tdq_cpu_idle and tdq_load accesses. This change fixes transient performance drops in some of my benchmarks, vanishing as soon as I am trying to collect any stats from the scheduler. It looks like reordered access to those variables sometimes caused loss of IPI_PREEMPT, that delayed thread execution until some later interrupt. Approved by: re (marius) END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-09-17T14:07:40.739002Z K 7 svn:log V 387 MFC r271604, r271616: Add couple memory barriers to order tdq_cpu_idle and tdq_load accesses. This change fixes transient performance drops in some of my benchmarks, vanishing as soon as I am trying to collect any stats from the scheduler. It looks like reordered access to those variables sometimes caused loss of IPI_PREEMPT, that delayed thread execution until some later interrupt. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-09-17T14:17:39.880150Z K 7 svn:log V 201 MFC r271403: Add PCI ID for Promise TX8660 8-port 3Gbps HBA. This device reports RAID subclass, but appears to be AHCI compatible. Submitted by: Yuri Perejilin Approved by: re (gjb) END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-09-17T14:20:04.016317Z K 7 svn:log V 179 MFC r271403: Add PCI ID for Promise TX8660 8-port 3Gbps HBA. This device reports RAID subclass, but appears to be AHCI compatible. Submitted by: Yuri Perejilin END K 10 svn:author V 3 gjb K 8 svn:date V 27 2014-09-17T16:45:20.115150Z K 7 svn:log V 162 Update the bhyve(8) manual to reflect that it is no longer considered 'experimental.' Reviewed by: grehan MFC after: 3 days Sponsored by: The FreeBSD Foundation END K 10 svn:author V 6 adrian K 8 svn:date V 27 2014-09-17T17:33:22.706679Z K 7 svn:log V 360 Migrate ie->ie_assign_cpu and associated code to use an int for CPU rather than u_char. Migrate post_filter to use an int for a CPU rather than u_char. Change intr_event_bind() to use an int for CPU rather than u_char. It touches the ppc, sparc64, arm and mips machdep code but it should (hah!) be a no-op. Tested: * i386, AMD64 laptops Reviewed by: jhb END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-09-17T17:43:32.669363Z K 7 svn:log V 64 Reprase r271616 comments. Submitted by: alc MFC after: 1 month END K 10 svn:author V 3 jhb K 8 svn:date V 27 2014-09-17T18:17:18.861541Z K 7 svn:log V 371 MFC 270830: When anouncing link state changes on an 802.11 interface with a vap, announce the change on the vap's ifnet instead of the main ifnet. This matches the behavior of other wireless drivers in the tree and allows the default devd configuration to correctly start dhclient automatically after an ndis wireless device associates. Approved by: re (marius for 10) END K 10 svn:author V 4 neel K 8 svn:date V 27 2014-09-17T18:46:51.182160Z K 7 svn:log V 13 IFC @r271694 END K 10 svn:author V 3 kib K 8 svn:date V 27 2014-09-17T18:49:57.290153Z K 7 svn:log V 206 Presence of any VM_PROT bits in the permission argument on x86 implies that the entry is readable and valid. Reported by: markj Submitted by: alc Tested by: pho (previous version), markj MFC after: 3 days END K 10 svn:author V 3 jhb K 8 svn:date V 27 2014-09-17T18:55:39.811478Z K 7 svn:log V 60 Revert unrelated changes accidentally committed in r271192. END K 10 svn:author V 8 bdrewery K 8 svn:date V 27 2014-09-17T18:59:25.487487Z K 7 svn:log V 18 Correct a comment END K 10 svn:author V 5 kargl K 8 svn:date V 27 2014-09-17T19:01:22.584160Z K 7 svn:log V 142 For targets that have a signed zero, lgamma_r(-0, &signgamp) should set signgamp = -1. Submitted by: enh at google dot com (e_lgamma[f]_r.c) END K 10 svn:author V 8 bdrewery K 8 svn:date V 27 2014-09-17T19:09:58.099544Z K 7 svn:log V 232 If fgets(3) fails in getbounds(), show strerror(3) if not an EOF. Also fix a FILE* leak in getbounds(). Submitted by: Conrad Meyer PR: 192032 Sponsored by: EMC / Isilon Storage Division MFC after: 1 week END K 10 svn:author V 3 jhb K 8 svn:date V 27 2014-09-17T19:37:58.400982Z K 7 svn:log V 106 Explicitly specify MAP_SHARED when mapping the stats file descriptor. Reviewed by: kib MFC after: 1 week END K 10 svn:author V 3 jhb K 8 svn:date V 27 2014-09-17T19:45:34.740681Z K 7 svn:log V 196 - Remove mention of MAP_INHERIT. It hasn't been implemented for thirteen years. - Remove mention of unimplemented MAP_SWAP. There are no future plans to implement it. Submitted by: alc (2) END K 10 svn:author V 8 bdrewery K 8 svn:date V 27 2014-09-17T20:26:27.630107Z K 7 svn:log V 98 Explicitly set MAP_PRIVATE to avoid [EINVAL] after r271635. X-MFC-With: r271635 Reviewed by: jhb END K 10 svn:author V 3 kib K 8 svn:date V 27 2014-09-17T21:04:50.293479Z K 7 svn:log V 778 The vm_mmap_cdev() explicitely converts absence of both MAP_SHARED and MAP_PRIVATE flags to MAP_SHARED. Apparently, some code in tree, in particular, libgeom, relied on this behaviour, see r271721. For regular file types, the absence of the flags is interpreted as MAP_PRIVATE, and libc nlist used this (fixed in r271723). Allow the implicit flags for legacy binaries. Bump __FreeBSD_version to get the ABI note on new binaries to check for in mmap code. Remove the test for presence of one of the MAP_ANON, MAP_SHARED or MAP_PRIVATE flags before fget_mmap(). For MAP_ANON, we already verify that passed fd == -1. For fd != -1, test after fget_mmap() (for newer binaries) covers the case. Reported by: bdrewery, pho Reviewed by: jhb Sponsored by: The FreeBSD Foundation END K 10 svn:author V 7 davidcs K 8 svn:date V 27 2014-09-17T22:11:20.070550Z K 7 svn:log V 212 MFC r268854 Initiate error recovery stats fail to update after 3 retries. Change bxe_panic() ECORE_DBG_BREAK_IF() ECORE_BUG() ECORE_BUG_ON() to panic only if ECORE_STOP_ON_ERROR is defined. Approved by: re(gjb) END K 10 svn:author V 7 davidcs K 8 svn:date V 27 2014-09-17T22:24:51.263729Z K 7 svn:log V 38 Remove clean option MFC after:5 days END K 10 svn:author V 7 davidcs K 8 svn:date V 27 2014-09-17T22:26:01.501768Z K 7 svn:log V 38 Remove clean option MFC after:5 days END K 10 svn:author V 7 davidcs K 8 svn:date V 27 2014-09-17T22:49:29.049432Z K 7 svn:log V 122 For ECORE_DBG_BREAK_IF() ECORE_BUG() ECORE_BUG_ON() check bxe_debug flag before printing error message. MFC after:5 days END K 10 svn:author V 6 emaste K 8 svn:date V 27 2014-09-18T01:24:40.863801Z K 7 svn:log V 330 MFC Clang debuginfo crash fix r271432: Merge upstream Clang rev 205331 debuginfo crash fix: Debug info: fix a crash when emitting IndirectFieldDecls, which were previously not handled at all. rdar://problem/16348575 r271433: Add clang patch corresponding to r271432 Approved by: re Sponsored by: DARPA, AFRL END K 10 svn:author V 4 will K 8 svn:date V 27 2014-09-18T01:57:36.236936Z K 7 svn:log V 469 Root the lib32 object tree under the overall object tree. This enables a common root directory for all object files for a given tree, which eases sharing a common MAKEOBJDIRPREFIX, and cleaning up of object trees. In particular, one can simply (from the source directory) rm -rf /usr/obj$(pwd) to destroy all object files for it. Or to copy/sync files, etc. Reviewed by: bdrewery CR: https://reviews.freebsd.org/D796 MFC after: 1 month Sponsored by: Spectra Logic END K 10 svn:author V 4 will K 8 svn:date V 27 2014-09-18T02:01:36.054513Z K 7 svn:log V 945 Fix a kernel panic when unloading isp(4). In the current implementation, the isp_kthread() threads never exit. The target threads do have an exit mode from isp_attach(), but it is not invoked from isp_detach(). Ensure isp_detach() notifies threads started for each channel, such that they exit before their parent device softc detaches, and thus before the module does. Otherwise, a page fault panic occurs later in: sysctl_kern_proc sysctl_out_proc kern_proc_out fill_kinfo_proc fill_kinfo_thread strlcpy(kp->ki_wmesg, td->td_wmesg, sizeof(kp->ki_wmesg)); For isp_kthread() (and isp(4) target threads), td->td_wmesg references now-unmapped memory after the module has been unloaded. These threads are typically msleep()ing at the time of unload, but they could also attempt to execute now-unmapped code segments. MFC after: 1 month Sponsored by: Spectra Logic MFSpectraBSD: r1070921 on 2014/06/22 13:01:17 END K 10 svn:author V 6 araujo K 8 svn:date V 27 2014-09-18T02:12:48.449141Z K 7 svn:log V 251 Add laggproto broadcast, it allows sends frames to all ports of the lagg(4) group and receives frames on any port of the lagg(4). Phabric: D549 Reviewed by: glebius, thompsa Approved by: glebius Obtained from: OpenBSD Sponsored by: QNAP Systems Inc. END K 10 svn:author V 6 araujo K 8 svn:date V 27 2014-09-18T02:22:02.174843Z K 7 svn:log V 435 The lagg(4) interface is based on trunk(4) interface from OpenBSD. The FreeBSD is the only system that has the FEC protocol, that is a simple alias to loadbalance protocol and does not implement the ancient Cisco FEC standard. From now on, we remove the fec protocol from the documentation and keep the FEC code only for compatibility. Phabric: D539 Reviewed by: glebius, thompsa Approved by: glebius Sponsored by: QNAP Systems Inc. END K 10 svn:author V 9 allanjude K 8 svn:date V 27 2014-09-18T03:02:00.770093Z K 7 svn:log V 221 MFC r271445,r271446,r271560: Improve markup and language throughout the ctl.conf man page MFC r271543: Add the new iscsi(4) man page Cross reference it from iscsid(8) and iscsictl(8) Approved by: re (gjb), bcr (mentor) END K 10 svn:author V 6 araujo K 8 svn:date V 27 2014-09-18T03:09:34.835580Z K 7 svn:log V 135 Remove old comment, we already do 802.1q tagging. Phabric: D797 Reviewed by: kevlo Approved by: kevlo Sponsored by: QNAP Systems Inc. END K 10 svn:author V 6 davide K 8 svn:date V 27 2014-09-18T03:11:59.973534Z K 7 svn:log V 702 r258695 introduces a sanity check for makefs in order to verify that the minimum image size specified is always less than the maximum image size. If makefs(1) is invoked specifying minimum image size, but not maximum one, the program exits with an error. Example: # sudo -E makefs -M 538968064 -B be /home/davide/disk.img $DESTDIR makefs: `/home/davide/tftproot/mips' minsize of 538968064 rounded up to ffs bsize of 8192 exceeds maxsize 0. Lower bsize, or round the minimum and maximum sizes to bsize. Assert then that minsize < maxsize iff maxsize is specified. This change allows me to build MIPS images using makefs(1) and following what specified in the wiki again. Reviewed by: jmallett, ngie END K 10 svn:author V 3 dim K 8 svn:date V 27 2014-09-18T05:40:33.589703Z K 7 svn:log V 684 MFC r271597: Pull in r217410 from upstream llvm trunk (by Bob Wilson): Set trunc store action to Expand for all X86 targets. When compiling without SSE2, isTruncStoreLegal(F64, F32) would return Legal, whereas with SSE2 it would return Expand. And since the Target doesn't seem to actually handle a truncstore for double -> float, it would just output a store of a full double in the space for a float hence overwriting other bits on the stack. Patch by Luqman Aden! This should fix clang -O0 on i386 assigning garbage to floats, in certain scenarios. PR: 187437 Submitted by: cebd@gmail.com Obtained from: http://llvm.org/viewvc/llvm-project?rev=217410&view=rev END K 10 svn:author V 6 araujo K 8 svn:date V 27 2014-09-18T05:43:19.340542Z K 7 svn:log V 178 Revert r271735. The comment is absolutely correct, we do not support 802.1p priority tagging. I got confused with the packet tagged and packet to be tagged. Spotted by: glebius END K 10 svn:author V 3 dim K 8 svn:date V 27 2014-09-18T06:34:27.421729Z K 7 svn:log V 709 MFC r271597: Pull in r217410 from upstream llvm trunk (by Bob Wilson): Set trunc store action to Expand for all X86 targets. When compiling without SSE2, isTruncStoreLegal(F64, F32) would return Legal, whereas with SSE2 it would return Expand. And since the Target doesn't seem to actually handle a truncstore for double -> float, it would just output a store of a full double in the space for a float hence overwriting other bits on the stack. Patch by Luqman Aden! This should fix clang -O0 on i386 assigning garbage to floats, in certain scenarios. PR: 187437 Submitted by: cebd@gmail.com Approved by: re (marius) Obtained from: http://llvm.org/viewvc/llvm-project?rev=217410&view=rev END K 10 svn:author V 3 dim K 8 svn:date V 27 2014-09-18T06:40:53.388109Z K 7 svn:log V 570 MFC r257658 (modified to apply to stable/8): For C++ programs, don't emit any explicit dependency to libstdc++.a or libc++.a during the early build stages (bootstrap-tools, build-tools, cross-tools), since it is not possible to know in advance which C++ library is available on the host system. Instead, just use the bootstrap compiler's built-in default. This should eventually make it possible to build stable/9 on head, or on stable/10, which ship without libstdc++ by default. [Note: this should get the stable/8 tinderbox at least a bit further in buildworld.] END K 10 svn:author V 3 dim K 8 svn:date V 27 2014-09-18T06:45:43.405869Z K 7 svn:log V 31 Fixup mergeinfo after r271740. END K 10 svn:author V 3 dim K 8 svn:date V 27 2014-09-18T06:47:48.175714Z K 7 svn:log V 570 MFC r257658 (modified to apply to stable/7): For C++ programs, don't emit any explicit dependency to libstdc++.a or libc++.a during the early build stages (bootstrap-tools, build-tools, cross-tools), since it is not possible to know in advance which C++ library is available on the host system. Instead, just use the bootstrap compiler's built-in default. This should eventually make it possible to build stable/9 on head, or on stable/10, which ship without libstdc++ by default. [Note: this should get the stable/7 tinderbox at least a bit further in buildworld.] END K 10 svn:author V 2 bz K 8 svn:date V 27 2014-09-18T08:36:45.934493Z K 7 svn:log V 465 Implement most of timer_{create,settime,gettime,getoverrun,delete} for amd64/linux32. Fix the entirely bogus (untested) version from r161310 for i386/linux using the same shared code in compat/linux. It is unclear to me if we could support more clock mappings but the current set allows me to successfully run commercial 32bit linux software under linuxolator on amd64. Reviewed by: jhb Differential Revision: D784 MFC after: 3 days Sponsored by: DARPA, AFRL END K 10 svn:author V 2 bz K 8 svn:date V 27 2014-09-18T08:40:00.805472Z K 7 svn:log V 139 Re-gen after r271743 implementing most of timer_{create,settime,gettime,getoverrun,delete}. MFC after: 3 days Sponsored by: DARPA, AFRL END K 10 svn:author V 2 bz K 8 svn:date V 27 2014-09-18T08:56:25.627007Z K 7 svn:log V 246 For consistency with the shared header file (and to avoid confusion with mbufs normally called *m in one place), rename the function arguments to "mem". This is a non-functional change. Reviewed by: gnn, eric.joyner intel.com MFC after: 3 days END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2014-09-18T08:58:22.765052Z K 7 svn:log V 1038 MFC r270673: Announce SCTP support in the kern.features sysctl variables. MFC r270859: Enable SCTP support. It runs perfectly fine on a Wandboard quad. MFC r271204 with manual intervention: Fix the handling of sysctl variables when used with VIMAGE. While there do some cleanup of the code. MFC r271209: Fix a leak of an address, if the address is scheduled for removal and the stack is torn down. Thanks to Peter Bostroem and Jiayang Liu from Google for reporting the issue. MFC r271219: Use SYSCTL_PROC instead of SYSCTL_VNET_PROC. Suggested by: glebius@ MFC r271221: Use union sctp_sockstore instead of struct sockaddr_storage. This eliminates some warnings when building in userland. Thanks to Patrick Laimbock for reporting this issue. Remove also some unnecessary casts. There should be no functional change. MFC r271228: Address another warnings reported by Patrick Laimbock when compiling in userspace. While there, improve consistency. MFC r271230: Address warnings generated by the clang analyzer. Approved by: re (kib) END K 10 svn:author V 3 kib K 8 svn:date V 27 2014-09-18T09:13:20.125743Z K 7 svn:log V 277 - Use NULL instead of 0 for fpcurthread. - Note the quirk with the interrupt enabled state of the dna handler. - Use just panic() instead of printf() and panic(). Print tid instead of pid, the fpu state is per-thread. Sponsored by: The FreeBSD Foundation MFC after: 1 week END