İd190926 74 198 233 330 253 275 258 187 195 183 116 189 273 303 207 190 205 205 309 360 431 401 282 397 243 179 424 129 332 163 212 400 185 181 685 233 334 397 433 611 399 395 395 401 220 513 437 705 639 131 369 122 165 167 115 172 162 492 154 112 114 154 197 300 113 129 308 351 328 162 312 289 810 204 268 K 10 svn:author V 4 piso K 8 svn:date V 27 2009-04-11T14:24:29.323666Z K 7 svn:log V 104 Anticipate a check: what's the point of adjusting a checksum if we are going to toss the packet anyway? END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-04-11T14:24:54.378155Z K 7 svn:log V 141 De-static local variables in main() (which is not recursive) and const-ify others. Submitted by: Christoph Mallon END K 10 svn:author V 4 nyan K 8 svn:date V 27 2009-04-11T14:25:47.836049Z K 7 svn:log V 236 MFi386: revision 190919 Simplify in/out functions. Remove a hack to generate more efficient code for port numbers below 0x100, which has been obsolete for at least ten years, because GCC has an asm constraint to specify that. END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-04-11T14:33:10.172238Z K 7 svn:log V 161 Use ftruncate() instead of lseek()+write()+lseek() to set the created file (-C) to the requested size. Submitted by: Christoph Mallon END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-04-11T14:43:22.979016Z K 7 svn:log V 183 Fix a bug in r185587. fstat(fd, &sb) was not executed unconditionally anymore so sb was read uninitialised when -C is used. Submitted by: Christoph Mallon END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-04-11T14:53:32.121054Z K 7 svn:log V 166 When using -C, do not warn when the file is not a character device, but warn when it is not a regular file. Submitted by: Christoph Mallon END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-04-11T14:56:29.643768Z K 7 svn:log V 96 Do not prepend /dev/ when -C is used. Submitted by: Christoph Mallon END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-04-11T15:03:44.384680Z K 7 svn:log V 103 Update documentation (forgotten in r190929). Submitted by: Christoph Mallon END K 10 svn:author V 7 delphij K 8 svn:date V 27 2009-04-11T15:04:51.121572Z K 7 svn:log V 87 MFC r190832: Mention support of 1000baseSX and 2500baseSX. Approved by: re (kensmith) END K 10 svn:author V 4 piso K 8 svn:date V 27 2009-04-11T15:05:19.651534Z K 7 svn:log V 23 Remove stale comments. END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-04-11T15:07:27.386597Z K 7 svn:log V 98 Style fixes to the newfs_msdos manpage. Submitted by: Christoph Mallon END K 10 svn:author V 7 delphij K 8 svn:date V 27 2009-04-11T15:16:11.274141Z K 7 svn:log V 176 MFC r190809, 190810: Update driver to vendor 1.16 plus some local changes to maintain our old tweaks/behavor and to fix a bug with multiple cards. Approved by: re (kensmith) END K 10 svn:author V 4 piso K 8 svn:date V 27 2009-04-11T15:19:09.152851Z K 7 svn:log V 209 Plug two bugs introduced with modules conversion: -UdpAliasIn(): correctly check return code after modules ran. -alias_nbt: in case of malformed packets (or some other unrecoverable error), toss the packet. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2009-04-11T15:19:26.316774Z K 7 svn:log V 110 MFC r190482: zero out memory before use and free. Approved by: re (kib) Security: Potential Information Leak END K 10 svn:author V 7 delphij K 8 svn:date V 27 2009-04-11T15:21:11.334755Z K 7 svn:log V 94 MFC r190482: zero out memory before use and free. Security: Potential Information Leak END K 10 svn:author V 4 piso K 8 svn:date V 27 2009-04-11T15:26:31.096159Z K 7 svn:log V 111 What's the point of adjusting a checksum if we are going to toss the packet? Anticipate the check/return code. END K 10 svn:author V 3 kib K 8 svn:date V 27 2009-04-11T16:12:20.234065Z K 7 svn:log V 112 When zapping v_cache_dd for !MAKEENTRY case in cache_lookup(), we shall lock cache as writer. Reviewed by: kan END K 10 svn:author V 3 das K 8 svn:date V 27 2009-04-11T16:57:50.900140Z K 7 svn:log V 216 GNU Pth has some fragile kludges that were broken by r189828. I've discussed this with the Pth maintainer and no clear solution has emerged on the ports side of things, so for now, hack around the issue in signal.h. END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2009-04-11T17:36:11.228803Z K 7 svn:log V 264 Revert previous commit that commented out some bpf functions. Unconstify arguments of bpf_image(), bpf_filter() and bpf_dump(). This is needed because some ports rely heavely on these arguments (some of them even roll out their own implemenentations of bpf_dump). END K 10 svn:author V 3 kan K 8 svn:date V 27 2009-04-11T20:23:08.746669Z K 7 svn:log V 338 Fix v_cache_dd handling for negative entries. v_cache_dd pointer was not populated in parent directory if negative entry was being created, yet entry itself was added to the nc_neg list. It was possible for parent vnode to get discarded later, leaving negative entry pointing to now unused memory block. Reported by: dho Revewed by: kib END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2009-04-11T20:43:41.747097Z K 7 svn:log V 300 Fix recognition of kernel-mode traps that pass through the KDB trap handler but do not actually invoke KDB. This includes recoverable machine checks encountered in kernel mode. This patch causes machines with Grackle host-PCI bridges to be able to correctly enumerate them again. MFC after: 3 days END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-11T22:01:40.467659Z K 7 svn:log V 185 Remove conditionally compiled time counter statistics; tools like DTrace, kernel profiling, etc, can provide this information without the overhead. MFC after: 3 days Suggested by: bde END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-11T22:07:19.889292Z K 7 svn:log V 300 Update stats in struct tcpstat using two new macros, TCPSTAT_ADD() and TCPSTAT_INC(), rather than directly manipulating the fields across the kernel. This will make it easier to change the implementation of these statistics, such as using per-CPU versions of the data structures. MFC after: 3 days END K 10 svn:author V 3 alc K 8 svn:date V 27 2009-04-11T22:34:08.907782Z K 7 svn:log V 150 Remove execute permission from the memory allocated by sbrk(). Pre-announced on: -arch (3/31/09) Discussed with: rwatson Tested by: marius (sparc64) END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2009-04-11T22:39:38.122895Z K 7 svn:log V 82 Any tar program should work here; the explicit reference to bsdtar is misleading. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-11T23:35:20.698885Z K 7 svn:log V 327 Update stats in struct ipstat using four new macros, IPSTAT_ADD(), IPSTAT_INC(), IPSTAT_SUB(), and IPSTAT_DEC(), rather than directly manipulating the fields across the kernel. This will make it easier to change the implementation of these statistics, such as using per-CPU versions of the data structures. MFC after: 3 days END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2009-04-12T03:02:42.851334Z K 7 svn:log V 32 Merge r190905:190951 from head. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2009-04-12T03:03:55.159609Z K 7 svn:log V 231 Rework the way we get the cacheline size. Instead of having a table of CPUs known to use 128 byte cache lines and defaulting to 32, use the dcbz instruction to measure it. Also make dcbz behave the way you would expect on PPC 970. END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2009-04-12T03:45:03.717471Z K 7 svn:log V 66 Fix that allows kernel to compile after the recent vimage commit. END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2009-04-12T04:45:40.374742Z K 7 svn:log V 114 Merge r881 from libarchive.googlecode.com: The "empty" format should not be recognized if there is a read error. END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2009-04-12T04:59:11.395355Z K 7 svn:log V 302 Merge from libarchive.googlecode.com: r751: Change __archive_strncat() to use a void * source, which reduces the amount of casting needed to use this with "char", "signed char" and "unsigned char". r752: Use additions instead of multiplications when growing buffer; faster and less chance of overflow. END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2009-04-12T05:04:02.164811Z K 7 svn:log V 88 Merge from libarchive.googlecode.com r756,r761: Document the new archive_read_disk API. END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2009-04-12T05:19:35.766954Z K 7 svn:log V 87 sendfile doesn't modify the vnode - acquire vnode lock shared Reviewed by: ups, jeffr END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2009-04-12T05:33:34.965715Z K 7 svn:log V 587 Merge from libarchive.googlecode.com: Mostly a bunch of corrections to the Windows support to reconcile differences between Visual Studio and Cygwin. Includes parts of revisions 757, 774, 787, 815, 817, 819, 820, 844, and 886. Of particular note, r886 overhauled the UTF-8/Unicode conversions to work correctly regardless of whether the local system uses 16-bit or 32-bit wchar_t. (I assume that systems with 16-bit wchar_t use UTF-16 and those with 32-bit wchar_t use UCS-4.) This revision also added a preference for wcrtomb() (which is thread-safe) on platforms that support it. END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2009-04-12T05:38:35.592086Z K 7 svn:log V 135 Thanks to Christoph Mallon for pointing out the dead variable here. Also, rework this a little to make the logic excruciatingly clear. END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2009-04-12T05:47:23.368611Z K 7 svn:log V 236 Merge from libarchive.googlecode.com r791, r879, r884, r948: Various fixes to read_support_compression_program. In particular, failure of the external program is detected a lot earlier, which gives much more reasonable error handling. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-12T11:42:40.419019Z K 7 svn:log V 300 Update stats in struct udpstat using two new macros, UDPSTAT_ADD() and UDPSTAT_INC(), rather than directly manipulating the fields across the kernel. This will make it easier to change the implementation of these statistics, such as using per-CPU versions of the data structures. MFC after: 3 days END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-12T11:53:12.372631Z K 7 svn:log V 336 Commit file omitted in r190962: Update stats in struct udpstat using two new macros, UDPSTAT_ADD() and UDPSTAT_INC(), rather than directly manipulating the fields across the kernel. This will make it easier to change the implementation of these statistics, such as using per-CPU versions of the data structures. MFC after: 3 days END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-12T13:22:33.224451Z K 7 svn:log V 514 Update stats in struct icmpstat and icmp6stat using four new macros: ICMPSTAT_ADD(), ICMPSTAT_INC(), ICMP6STAT_ADD(), and ICMP6STAT_INC(), rather than directly manipulating the fields of these structures across the kernel. This will make it easier to change the implementation of these statistics, such as using per-CPU versions of the data structures. In on case, icmp6stat members are manipulated indirectly, by icmp6_errcount(), and this will require further work to fix for per-CPU stats. MFC after: 3 days END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-12T13:41:13.183643Z K 7 svn:log V 302 Update stats in struct igmpstat using two new macros: IGMPSTAT_ADD() and IGMPSTAT_INC(), rather than directly manipulating the fields of the structure. This will make it easier to change the implementation of these statistics, such as using per-CPU versions of the data structures. MFC after: 3 days END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-12T14:00:36.010293Z K 7 svn:log V 298 Update stats in struct mrtstat using two new macros: MRTSTAT_ADD() and MRTSTAT_INC(), rather than directly manipulating the fields of the structure. This will make it easier to change the implementation of these statistics, such as using per-CPU versions of the data structure. MFC after: 3 days END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-12T14:06:26.637806Z K 7 svn:log V 298 Update stats in struct pimstat using two new macros: PIMSTAT_ADD() and PIMSTAT_INC(), rather than directly manipulating the fields of the structure. This will make it easier to change the implementation of these statistics, such as using per-CPU versions of the data structure. MFC after: 3 days END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-12T14:19:37.868309Z K 7 svn:log V 304 Update stats in struct carpstats using two new macros: CARPSTATS_ADD() and CARPSTATS_INC(), rather than directly manipulating the fields of the structure. This will make it easier to change the implementation of these statistics, such as using per-CPU versions of the data structure. MFC after: 3 days END K 10 svn:author V 4 piso K 8 svn:date V 27 2009-04-12T16:53:56.280583Z K 7 svn:log V 126 Import my libalias mbuf work. todo: o create a legacy/compatibility mechanism for modules. o convert alias_sctp to use mbuf. END K 10 svn:author V 3 kan K 8 svn:date V 27 2009-04-12T17:43:41.110699Z K 7 svn:log V 420 Reimplement r189287 for -stable: Change vfs_busy to wait until an outcome of pending unmount operation is known and to retry or fail accordingly to that outcome. This fixes the problem with namespace traversing programs failing with random ENOENT errors if someone just happened to try to unmount that same filesystem at the same time. Prodded by: dhw, obrien Approved by: re(kib) Sponsored by: Juniper Networks, Inc. END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2009-04-12T19:04:27.755744Z K 7 svn:log V 339 Change nfsserver so that it uses the nfssvc() system call provided in sys/nfs/nfs_nfssvc.c by registering with it using the nfsd_call_nfsserver function pointer. Also, add the build glue for nfs_nfssvc.c optionally based on "nfsserver" and also as a loadable module. Submitted by: rmacklem Reviewed by: kib Approved by: kib (mentor) END K 10 svn:author V 3 ume K 8 svn:date V 27 2009-04-12T19:06:41.032824Z K 7 svn:log V 612 MFH r190382,190416,190525: - getaddrinfo(3) should accept numeric when ai_socktype is not specified in hint or hints is NULL. - Add support for SCTP to getaddrinfo(3). Now, getaddrinfo(3) returns two SOCK_STREAMs, IPPROTO_TCP and IPPROTO_SCTP. It confuses some programs. If getaddrinfo(3) returns IPPROTO_SCTP when SOCK_STREAM is specified by hints.ai_socktype, at least Apache doesn't work. So, I made getaddrinfo(3) to return IPPROTO_SCTP with SOCK_STREAM only when IPPROTO_SCTP is specified explicitly by hints.ai_protocol. - Query DNS only once per an address family. Approved by: re (kib) END K 10 svn:author V 3 kan K 8 svn:date V 27 2009-04-12T19:41:16.579116Z K 7 svn:log V 546 MFC changes 190533 and 190945: Replace v_dd vnode pointer with v_cache_dd pointer to struct namecache in directory vnodes. Allow namecache dotdot entry to be created pointing from child vnode to parent vnode if no existing links in opposite direction exist. Use direct link from parent to child for dotdot lookups otherwise. This restores more efficient dotdot caching in NFS filesystems which was lost when vnodes stoppped being type stable. Majority of backporting work for this was done by jhb. Reviewed by: jhb, kib Approved by: re (kib) END K 10 svn:author V 4 emax K 8 svn:date V 27 2009-04-12T19:42:25.801888Z K 7 svn:log V 38 Add entry about kbdmux(4) un-locking. END K 10 svn:author V 3 kan K 8 svn:date V 27 2009-04-12T19:50:46.261633Z K 7 svn:log V 276 MFC change 190756: Fix logic in MOD_LOAD handler to call dcons_attach after all successful dcons_drv_init invocations. Testing return value for 0 does not work for cases where dcons_drv_init was called already as part of low level onsole initialization. Approved by: re(kib) END K 10 svn:author V 4 piso K 8 svn:date V 27 2009-04-12T20:24:28.058656Z K 7 svn:log V 29 Teach alias_sctp about mbuf. END K 10 svn:author V 3 pgj K 8 svn:date V 27 2009-04-12T21:06:11.667787Z K 7 svn:log V 73 - Add myself to the ports committers' graph Approved by: gabor (mentor) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-12T21:28:35.681121Z K 7 svn:log V 71 Put TCPSTAT_ADD() and TCPSTAT_INC() behind _KERNEL. MFC after: 3 days END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-04-12T22:16:14.262804Z K 7 svn:log V 19 MFH r189986-190975 END K 10 svn:author V 7 sobomax K 8 svn:date V 27 2009-04-12T23:06:23.969532Z K 7 svn:log V 76 MFC: Make machdep.hyperthreading_allowed working. Approved by: re (kib) END K 10 svn:author V 7 sobomax K 8 svn:date V 27 2009-04-12T23:10:01.491570Z K 7 svn:log V 66 MFC: Respect RBX_MUTE flag from boot[012]. Approved by: re (kib) END K 10 svn:author V 7 yongari K 8 svn:date V 27 2009-04-13T00:32:34.627690Z K 7 svn:log V 395 Don't blindly set IP packet length from interface MTU in TSO case. Remote host can advertise smaller MSS than that of sender so upper stack might have adjusted the MSS which in turn generates IP packets that are less size than that of interface MTU. Reported by: Bjoern Koenig ( bkoenig <> alpha-tierchen dot de ) Tested by: Bjoern Koenig ( bkoenig <> alpha-tierchen dot de ) MFC after: 3 days END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2009-04-13T03:04:12.904046Z K 7 svn:log V 60 - Raise my commit limit for projects/mips "merge from head" END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2009-04-13T03:08:11.045265Z K 7 svn:log V 18 - Merge from HEAD END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2009-04-13T03:13:16.930105Z K 7 svn:log V 20 - Revert size limit END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-04-13T03:20:21.552822Z K 7 svn:log V 62 remove reference to sc_tdmabintcnt; it was removed in r190848 END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2009-04-13T05:21:17.675633Z K 7 svn:log V 100 Make UMTX_OP_WAIT_UINT actually wait for an unsigned integer on 64-bits machine. MFC after: 1 week END K 10 svn:author V 5 edwin K 8 svn:date V 27 2009-04-13T09:09:35.719012Z K 7 svn:log V 205 Vendor import of tzdata2009e: - Jordan went into DST in the last Thursday in March instead of the last Friday in March. - Palestine has extended the DST time with one week before and one month after. END K 10 svn:author V 5 edwin K 8 svn:date V 27 2009-04-13T09:10:13.922449Z K 7 svn:log V 19 Tag of tzdata2009e END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2009-04-13T09:16:24.546205Z K 7 svn:log V 32 Merge r190682:190987 from head. END K 10 svn:author V 5 edwin K 8 svn:date V 27 2009-04-13T09:17:40.910255Z K 7 svn:log V 213 MFV of tzdata2009e - Jordan went into DST in the last Thursday in March instead of the last Friday in March. - Palestine has extended the DST time with one week before and one month after. MFC after: 1 week END K 10 svn:author V 5 edwin K 8 svn:date V 27 2009-04-13T09:22:03.152356Z K 7 svn:log V 256 MFC of tzdata2009d: - Morocco will observe DST from 2009-06-01 00:00 to 2009-08-21 00:00 - Tunisia will not observe DST this year. - Syria will start DST on 2009-03-27 00:00 this year - the Province of San Luis will go to utc-04:00 Approved by: re (kib) END K 10 svn:author V 5 edwin K 8 svn:date V 27 2009-04-13T09:23:20.098753Z K 7 svn:log V 233 MFC of tzdata2009d: - Morocco will observe DST from 2009-06-01 00:00 to 2009-08-21 00:00 - Tunisia will not observe DST this year. - Syria will start DST on 2009-03-27 00:00 this year - the Province of San Luis will go to utc-04:00 END K 10 svn:author V 4 piso K 8 svn:date V 27 2009-04-13T09:45:03.720543Z K 7 svn:log V 69 Remove megapullup() from main libalias since it is not used anymore. END K 10 svn:author V 5 edwin K 8 svn:date V 27 2009-04-13T10:41:25.550852Z K 7 svn:log V 217 MFC of tzdata2009e - Jordan went into DST in the last Thursday in March instead of the last Friday in March. - Palestine has extended the DST time with one week before and one month after. Approved by: re (kip) END K 10 svn:author V 5 edwin K 8 svn:date V 27 2009-04-13T10:41:41.046885Z K 7 svn:log V 194 MFC of tzdata2009e - Jordan went into DST in the last Thursday in March instead of the last Friday in March. - Palestine has extended the DST time with one week before and one month after. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-04-13T11:54:22.772998Z K 7 svn:log V 713 Merge r190996 from head to stable/7: When writing out updated pollfd records when returning from poll(), only copy out the revents field, not the whole pollfd structure. Otherwise, if the events field is updated concurrently by another thread, that update may be lost. This issue apparently causes problems for the JDK on FreeBSD, which expects the Linux behavior of not updating all fields (somewhat oddly, Solaris does not implement the required behavior, but presumably our adaptation of the JDK is based on the Linux port?). MFC after: 2 weeks PR: kern/130924 Submitted by: Kurt Miller Discussed with: kib Approved by: re (kib) END K 10 svn:author V 4 piso K 8 svn:date V 27 2009-04-13T13:07:51.508377Z K 7 svn:log V 110 o pass mbufs down to modules too. o deploy a compatibility mechanism for legacy modules unable to grok mbufs. END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2009-04-13T13:41:44.459818Z K 7 svn:log V 170 Carve the newreno CC module out of cc.c into a separate file for consistency. Compile it into the kernel by default as there's no need to create an actual module for it. END