ƒ°|160403 206 272 599 385 176 226 267 388 392 138 282 170 398 211 272 163 134 388 480 575 181 200 193 225 154 147 143 3184 163 129 122 583 167 334 328 204 198 252 146 209 113 584 193 201 126 141 131 436 207 145 109 109 740 160 458 351 161 254 309 294 124 123 145 258 197 123 173 431 165 447 138 186 196 164 129 128 157 203 131 113 152 138 132 134 128 133 119 108 156 703 284 225 295 123 278 164 192 190 207 181 190 240 152 149 280 155 137 414 932 172 98 149 138 146 134 140 140 1004 138 189 121 179 427 1678 228 134 305 204 143 375 158 358 186 164 185 147 213 255 154 307 156 593 184 142 153 211 118 1070 248 289 178 252 272 525 223 454 1785 98 266 182 495 190 150 161 172 255 482 183 508 121 126 133 141 157 148 137 121 209 183 147 439 186 230 159 150 190 232 170 478 276 160 251 166 139 145 160 193 351 238 156 137 177 192 171 210 186 230 K 10 svn:author V 3 pjd K 8 svn:date V 27 2006-07-16T15:52:03.000000Z K 7 svn:log V 179 MFC: sys/geom/raid3/g_raid3_ctl.c 1.17,1.18 - Remove bogus assertion. Reported by: Bradley W. Dutton PR: kern/99846 - Always allow to specify components with /dev/ prefix. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2006-07-16T15:59:17.000000Z K 7 svn:log V 506 MFC: sys/geom/raid3/g_raid3.c 1.67,1.68,1.69 - Allow to close access even if device is already destroyed. Reported by: Ulrich Spoerlein PR: kern/98093 - When kern.geom.raid3.use_malloc tunnable is set to 1, malloc(9) instead of uma(9) will be used for memory allocation. In case of problems or tracking bugs, there are more useful tools for malloc(9) debugging than for uma(9) debugging, like memguard(9) and redzone(9). - Use proper defines instead of magic values. END K 10 svn:author V 3 sam K 8 svn:date V 27 2006-07-16T16:02:17.000000Z K 7 svn:log V 292 tighten invariant on loops used to parse ie's; this ensures we never touch data outside the packet (previously we might touch 1 byte); it also has the happy side effect of working around broken orinoco/agere firmware that sends malformed association response frames Help by: Vladimir Egorin END K 10 svn:author V 3 pjd K 8 svn:date V 27 2006-07-16T16:05:50.000000Z K 7 svn:log V 84 MFC: sys/kern/vfs_vnops.c 1.244 Simplify the code and remove two mutex operations. END K 10 svn:author V 3 sam K 8 svn:date V 27 2006-07-16T19:10:41.000000Z K 7 svn:log V 133 power save mode state changes should not require clocking the 802.11 state machine; use the reset method instead MFC after: 2 weeks END K 10 svn:author V 3 alc K 8 svn:date V 27 2006-07-16T19:43:49.000000Z K 7 svn:log V 174 Eliminate the remaining uses of "register". Convert the remaining K&R-style function declarations to ANSI-style. Eliminate excessive white space from pmap_ts_referenced(). END K 10 svn:author V 8 netchild K 8 svn:date V 27 2006-07-16T20:10:08.000000Z K 7 svn:log V 290 Fix a compile time problem on amd64. I'm not sure if the fix is correct from a semantic point of view, but I notified the author of the driver for confirmation. So far it at least fixes the build and should only lead to not identifying or wrongly identifying a soundcard in the worst case. END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2006-07-16T20:11:50.000000Z K 7 svn:log V 296 Some rearrangement of headers to minimize diffs with outside of FreeBSD repository and to clean up the license header so as to not pollute the license with file function. Zero all mailbox structures prior to use (just in case). Change the outgoing mailbox count for INIT_FIRMWARE to be correct. END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2006-07-16T20:43:12.000000Z K 7 svn:log V 41 General cleanup, not quite finished yet. END K 10 svn:author V 3 alc K 8 svn:date V 27 2006-07-16T21:05:58.000000Z K 7 svn:log V 189 MFamd64 Make three simplifications to pmap_ts_referenced(): Eliminate an initialized but otherwise unused variable. Eliminate an unnecessary test. Exit the loop in a shorter way. END K 10 svn:author V 3 sam K 8 svn:date V 27 2006-07-16T21:19:28.000000Z K 7 svn:log V 78 correct ie length check; need to include fixed part of ie MFC after: 2 weeks END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-07-16T22:53:26.000000Z K 7 svn:log V 301 Remove sysctl_vm_zone() and vm.zone sysctl from 7.x. As of 6.x, libmemstat(3) is used by vmstat (and friends) to produce more accurate and more detailed statistics information in a machine-readable way, and vmstat continues to provide the same text-based front-end. This change should not be MFC'd. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-07-16T23:09:39.000000Z K 7 svn:log V 114 Change comment on soabort() to more accurately describe how/when soabort() is used. Remove trailing white space. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2006-07-17T00:27:12.000000Z K 7 svn:log V 176 Add regression tests of the emulation of the long branch conditional form. These tests can obviously only be run on Merced processors, as they don't implement the long branch. END K 10 svn:author V 3 sam K 8 svn:date V 27 2006-07-17T02:18:56.000000Z K 7 svn:log V 71 MFC 1.21: whiteout addition of ath & co to GENERIC Submitted by: dhw@ END K 10 svn:author V 3 sam K 8 svn:date V 27 2006-07-17T02:38:17.000000Z K 7 svn:log V 42 MFC 1.2: fix format; add portability glue END K 10 svn:author V 3 alc K 8 svn:date V 27 2006-07-17T03:10:17.000000Z K 7 svn:log V 295 Now that free_pv_entry() accesses the pmap, call free_pv_entry() in pmap_remove_all() before rather than after the pmap is unlocked. At present, the page queues lock provides sufficient sychronization. In the future, the page queues lock may not always be held when free_pv_entry() is called. END K 10 svn:author V 3 imp K 8 svn:date V 27 2006-07-17T03:47:18.000000Z K 7 svn:log V 387 Restore the status quo before my last commit. Prior to it, sio took precedence uart. With my last change, it became a tie, and uart seems to always win on my amd64. This was not my intention, so have sio be just a tiny bit more preferred than uart. Note: I'm not making any judgement on the merits of uart winning. I'm just saying that if we want to change it, we do it on purpose. END K 10 svn:author V 3 alc K 8 svn:date V 27 2006-07-17T06:45:03.000000Z K 7 svn:log V 482 Ensure that vm_object_deallocate() doesn't dereference a stale object pointer: When vm_object_deallocate() sleeps because of a non-zero paging in progress count on either object or object's shadow, vm_object_deallocate() must ensure that object is still the shadow's backing object when it reawakens. In fact, object may have been deallocated while vm_object_deallocate() slept. If so, reacquiring the lock on object can lead to a deadlock. Submitted by: ups@ MFC after: 3 weeks END K 10 svn:author V 3 phk K 8 svn:date V 27 2006-07-17T08:14:46.000000Z K 7 svn:log V 89 Remove config(8)'s knowledge about NMBCLUSTERS, no code in /sys knows about it any more. END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2006-07-17T08:35:47.000000Z K 7 svn:log V 103 Don't use empty braces ("{}") to initialise arrays. This is a syntax error in ISO C (both 90 and 99). END K 10 svn:author V 3 phk K 8 svn:date V 27 2006-07-17T09:05:21.000000Z K 7 svn:log V 100 Add some casts to make these files more C++ compatible. Submitted by: Kristen Nielsen END K 10 svn:author V 3 phk K 8 svn:date V 27 2006-07-17T09:07:02.000000Z K 7 svn:log V 132 Remove the NDEVFSINO and NDEVFSOVERFLOW options which no longer exists in DEVFS. Remove the opt_devfs.h file now that it is empty. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2006-07-17T09:23:44.000000Z K 7 svn:log V 58 Unexpand two TAILQ_FOREACH_SAFE cases. Ok'ed by: davidxu END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2006-07-17T09:27:26.000000Z K 7 svn:log V 51 Use a prototype for res_init(). MFC after: 3 days END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2006-07-17T09:33:24.000000Z K 7 svn:log V 47 Make the variadic macro debug() comply to C99. END K 10 svn:author V 3 ume K 8 svn:date V 27 2006-07-17T10:09:58.000000Z K 7 svn:log V 3090 MFC: - Update the resolver in libc to BIND9's one. - make reentrant version of netdb functions glibc style API, and expose them to outside of libc. - make netdb functions NSS friendly. include/Makefile 1.261 include/arpa/inet.h 1.26 include/arpa/nameser.h 1.18 include/arpa/nameser_compat.h 1.5 include/netdb.h 1.40-1.42 include/res_update.h 1.1 include/resolv.h 1.29-1.30 lib/libc/Makefile 1.64 lib/libc/include/isc/eventlib.h 1.1.1.1 lib/libc/include/port_after.h 1.1-1.2 lib/libc/include/port_before.h 1.1 lib/libc/include/resolv_mt.h 1.1.1.1 lib/libc/inet/Makefile.inc 1.1 lib/libc/inet/inet_addr.c 1.1.1.1, 1.2 lib/libc/inet/inet_cidr_ntop.c 1.1.1.1 lib/libc/inet/inet_cidr_pton.c 1.1.1.1, 1.2 lib/libc/inet/inet_lnaof.c 1.1.1.1, 1.2 lib/libc/inet/inet_makeaddr.c 1.1.1.1, 1.2 lib/libc/inet/inet_net_ntop.c 1.1.1.1, 1.2 lib/libc/inet/inet_net_pton.c 1.1.1.1, 1.2 lib/libc/inet/inet_neta.c 1.1.1.1, 1.2 lib/libc/inet/inet_netof.c 1.1.1.1, 1.2 lib/libc/inet/inet_network.c 1.1.1.1, 1.2 lib/libc/inet/inet_ntoa.c 1.1.1.1, 1.2 lib/libc/inet/inet_ntop.c 1.1.1.1, 1.2 lib/libc/inet/inet_pton.c 1.1.1.1, 1.2 lib/libc/inet/nsap_addr.c 1.1.1.1, 1.2 lib/libc/isc/Makefile.inc 1.1 lib/libc/isc/ev_streams.c 1.1.1.1, 1.2 lib/libc/isc/ev_timers.c 1.1.1.1, 1.2 lib/libc/isc/eventlib_p.h 1.1.1.1, 1.2 lib/libc/nameser/Makefile.inc 1.1 lib/libc/nameser/ns_name.c 1.1.1.1 lib/libc/nameser/ns_netint.c 1.1.1.1 lib/libc/nameser/ns_parse.c 1.1.1.1 lib/libc/nameser/ns_print.c 1.1.1.1, 1.2 lib/libc/nameser/ns_samedomain.c 1.1.1.1, 1.2 lib/libc/nameser/ns_ttl.c 1.1.1.1 lib/libc/net/Makefile.inc 1.58 lib/libc/net/getaddrinfo.c 1.74, 1.77-1.78 lib/libc/net/gethostbydns.c 1.55-1.57 lib/libc/net/gethostbyht.c 1.24-1.26 lib/libc/net/gethostbyname.3 1.35 lib/libc/net/gethostbynis.c 1.26-1.28 lib/libc/net/gethostnamadr.c 1.29-1.30, 1.32 lib/libc/net/getnameinfo.c 1.18 lib/libc/net/getnetbydns.c 1.32-1.33 lib/libc/net/getnetbyht.c 1.17-1.18 lib/libc/net/getnetbynis.c 1.20-1.21 lib/libc/net/getnetnamadr.c 1.22 lib/libc/net/getproto.c 1.5 lib/libc/net/getprotoent.c 1.7 lib/libc/net/getprotoname.c 1.5 lib/libc/net/getservbyname.c 1.8 lib/libc/net/getservbyport.c 1.8 lib/libc/net/getservent.c 1.21 lib/libc/net/name6.c 1.56-1.57 lib/libc/net/netdb_private.h 1.10-1.11, 1.13 lib/libc/net/res_config.h 1.9 lib/libc/net/res_mkupdate.c 1.7-1.8 lib/libc/net/res_update.c 1.8-1.9 lib/libc/resolv/Makefile.inc 1.1 lib/libc/resolv/h_errno.c 1.1 lib/libc/resolv/herror.c 1.1.1.1, 1.2 lib/libc/resolv/mtctxres.c 1.1.1.1, 1.2 lib/libc/resolv/res_comp.c 1.1.1.1, 1.2 lib/libc/resolv/res_data.c 1.1.1.1, 1.2-1.3 lib/libc/resolv/res_debug.c 1.1.1.1, 1.2 lib/libc/resolv/res_debug.h 1.1.1.1 lib/libc/resolv/res_init.c 1.1.1.1, 1.2 lib/libc/resolv/res_mkquery.c 1.1.1.1, 1.2 lib/libc/resolv/res_private.h 1.1.1.1 lib/libc/resolv/res_query.c 1.1.1.1, 1.2-1.3 lib/libc/resolv/res_send.c 1.1.1.1, 1.2 lib/libc/resolv/res_state.c 1.1-1.2 Tested by: nork END K 10 svn:author V 4 ceri K 8 svn:date V 27 2006-07-17T10:36:56.000000Z K 7 svn:log V 70 Add the sun4v category. Requested by: linimon, kmacy X-MFC: Instant END K 10 svn:author V 4 ceri K 8 svn:date V 27 2006-07-17T10:39:01.000000Z K 7 svn:log V 36 MFC r1.18: Add the sun4v category END K 10 svn:author V 3 flz K 8 svn:date V 27 2006-07-17T10:39:20.000000Z K 7 svn:log V 30 Fix typo (s/writeer/writer/). END K 10 svn:author V 5 simon K 8 svn:date V 27 2006-07-17T11:47:35.000000Z K 7 svn:log V 488 Enable DSO (Dynamic Shared Object) support. This makes it possible for OpenSSL to load engines run-time, e.g. for using the opensc engine port. The OpenSSL Configure script enables DSO support on FreeBSD by default, we just don't use the Configure script during OpenSSL builds in the base system. This is committed to -CURRENT now (before OpenSSL 0.9.8b import), so it can be tested at bit in -CURRENT before being MFC'ed to 6-STABLE. Prodded by: ale PR: bin/79570 MFC after: 1 week END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2006-07-17T11:48:52.000000Z K 7 svn:log V 71 Change the GCC specific __FUNCTION__ to C99's __func__. OK'ed by: des END K 10 svn:author V 3 kib K 8 svn:date V 27 2006-07-17T15:01:40.000000Z K 7 svn:log V 241 MFC rev. 1.37: Never zero-out db_last_symtab. Whan backtraces are done in parallel in several threads, one symbol lookup could clear db_last_symtab when another one going to use it as starting point for traversal. Approved by: pjd (mentor) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-07-17T16:12:59.000000Z K 7 svn:log V 235 Always lock the lockmgr lock when creating an smb connection object rather than only locking it if INVARIANTS is enabled. All the callers expect smb_co_init() to return with the lock held. Tested by: "Jiawei Ye" END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-07-17T16:13:42.000000Z K 7 svn:log V 111 Lock the smb share before doing a 'put' on it in smbfs_unmount(). Tested by: "Jiawei Ye" END K 10 svn:author V 8 netchild K 8 svn:date V 27 2006-07-17T17:28:44.000000Z K 7 svn:log V 100 Prepend temporary sysctls with an underscore. Submitted by: Yuriy Tsibizov END K 10 svn:author V 8 netchild K 8 svn:date V 27 2006-07-17T17:43:06.000000Z K 7 svn:log V 154 Rename some variables. This fixes some (but not all) problems on the way for WARNS > 2 cleanlyness. Submitted by: Yuriy Tsibizov END K 10 svn:author V 6 obrien K 8 svn:date V 27 2006-07-17T18:43:16.000000Z K 7 svn:log V 51 /etc/src.conf wasn't visable for the kernel build. END K 10 svn:author V 4 mnag K 8 svn:date V 27 2006-07-17T18:56:27.000000Z K 7 svn:log V 115 - Add dependency of firmware(9). "MODULE_DEPEND(iwi, firmware, 1, 1, 1);" Approved by: brueffer MFC after: 1 week END K 10 svn:author V 6 obrien K 8 svn:date V 27 2006-07-17T19:16:12.000000Z K 7 svn:log V 18 whitespace fixing END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-07-17T19:45:47.000000Z K 7 svn:log V 491 Chain the bus_dmamap_load() calls when mapping a command with a data CCB instead of doing the first load with the BUS_DMA_NOWAIT flag. On 4.x with PAE and > 4gb of RAM this proved disastrous if there weren't enough bounce pages as amr_mapcmd() would return failure but the callback would later fire once enough bounce pages were available and would then overwrite another command's S/G list. MFC after: 3 days Submitted by: scottl (4.x version) Reviewed by: scottl (port from 4.x to HEAD) END K 10 svn:author V 6 marcel K 8 svn:date V 27 2006-07-17T20:02:51.000000Z K 7 svn:log V 98 Move default GEOM classes from files.ia64, where they were marked standard, to the DEFAULTS file. END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2006-07-17T20:39:08.000000Z K 7 svn:log V 104 Use variadic macros that comply with C99. Keep the GCC-style ones if DEBUG is defined and GCC is used. END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2006-07-17T20:48:36.000000Z K 7 svn:log V 30 Remove duplicated assignment. END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2006-07-17T20:53:25.000000Z K 7 svn:log V 45 style.Makefile(5): Remove -Wall from CFLAGS. END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2006-07-17T21:00:42.000000Z K 7 svn:log V 35 Separate functions with a newline. END K 10 svn:author V 3 gad K 8 svn:date V 27 2006-07-17T21:04:52.000000Z K 7 svn:log V 343 MFC 1.64: Fix checking of the "lock" file in the spool directory for a queue, so that the checking will wind up with the correct mode-bits in the case where the initial open() of that lock file will create it. Due to this bug, the first job ever sent to a queue could result in that queue going in a "printing is disabled" state. PR: 93469 END K 10 svn:author V 6 obrien K 8 svn:date V 27 2006-07-17T21:05:27.000000Z K 7 svn:log V 111 VarAdd() already does the debug printing, so Var_Set() only needs to do it in the case the var already exists. END K 10 svn:author V 6 cognet K 8 svn:date V 27 2006-07-17T21:17:20.000000Z K 7 svn:log V 50 at91_spi won't compile without spibus, so add it. END K 10 svn:author V 6 cognet K 8 svn:date V 27 2006-07-17T21:18:03.000000Z K 7 svn:log V 14 Fix comments. END K 10 svn:author V 6 cognet K 8 svn:date V 27 2006-07-17T21:20:00.000000Z K 7 svn:log V 14 #if => #ifdef END K 10 svn:author V 6 cognet K 8 svn:date V 27 2006-07-17T21:23:54.000000Z K 7 svn:log V 644 MFC rev 1.274 and 1.275 date: 2006/01/27 21:11:50; author: cognet; state: Exp; lines: +9 -0 Make sure b_vp and b_bufobj are NULL before calling relpbuf(), as it asserts they are. They should be NULL at this point, except if we're coming from swapdev_strategy(). It should only affect the case where we're swapping directly on a file over NFS. ---------------------------- revision 1.275 date: 2005/09/21 15:01:09; author: cognet; state: Exp; lines: +3 -1 Make sure we have a bufobj before calling bstrategy(). I'm not sure this is the right thing to do, but at least I don't panic anymore when swapping on a NFS file without using md(4). END K 10 svn:author V 6 cognet K 8 svn:date V 27 2006-07-17T21:36:08.000000Z K 7 svn:log V 65 If we can't defrag a packet, re-queue it instead of dropping it. END K 10 svn:author V 8 gallatin K 8 svn:date V 27 2006-07-17T22:17:05.000000Z K 7 svn:log V 360 Firmware loading improvements: - Copy ethernet firmware down in small chunks so as to avoid bugs in early versions of the bootstrap firmware. - Attempt to "adopt" the running firmware if we cannot load a suitable firmware image via firmware(9). - Separate firmware validation into its own routine, and check the major/minor driver/firmware ABI version. END K 10 svn:author V 4 ceri K 8 svn:date V 27 2006-07-17T22:22:07.000000Z K 7 svn:log V 257 MFC revision 1.88: Update the location of the kernel for upgrades. I considered leaving /boot/kernel out of the chflags noschg line, but I seem to remember that there was a period where /boot/kernel was schg, so have left it in for safety's sake. END K 10 svn:author V 4 ceri K 8 svn:date V 27 2006-07-17T22:25:29.000000Z K 7 svn:log V 68 MFC revision 1.89: Bring the "just copy" hit list closer to date. END K 10 svn:author V 6 cognet K 8 svn:date V 27 2006-07-18T00:07:05.000000Z K 7 svn:log V 158 Make sure we use REDUCE32 on the result of do_cksum(), as in_cksum_skip() expects this. If we do not, this could result in wrong checksums. MFC after: 1 day END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-07-18T01:13:18.000000Z K 7 svn:log V 212 Fix build of uma_core.c when DDB is not compiled into the kernel by making uma_zone_sumstat() ifdef DDB, as it's only used with DDB now. Submitted by: Wolfram Fenske END K 10 svn:author V 3 alc K 8 svn:date V 27 2006-07-18T03:17:12.000000Z K 7 svn:log V 201 MFamd64 pmap_clear_ptes() is already convoluted. This will worsen with the implementation of superpages. Eliminate it and add pmap_clear_write(). There are no functional changes. Checked by: md5 END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2006-07-18T07:03:43.000000Z K 7 svn:log V 28 Drop two unnecessary casts. END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2006-07-18T07:10:30.000000Z K 7 svn:log V 27 Remove break after return. END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2006-07-18T07:16:25.000000Z K 7 svn:log V 49 The variables i and tot don't need to be static. END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2006-07-18T07:29:42.000000Z K 7 svn:log V 161 Fix type mismatch between char * and unsigned char *. C guarantees that the values of the characters here are positive, so it's safe to index arrays with them. END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2006-07-18T07:39:22.000000Z K 7 svn:log V 100 Document that the pathname(s) following the options need not be given if -f pathname was specified. END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2006-07-18T10:19:46.000000Z K 7 svn:log V 27 Remove break after return. END K 10 svn:author V 5 bruno K 8 svn:date V 27 2006-07-18T14:15:04.000000Z K 7 svn:log V 79 MFC 1.24: Eliminate duplicate p-states entries Approved by: njl, imp (mentor) END K 10 svn:author V 3 imp K 8 svn:date V 27 2006-07-18T17:00:51.000000Z K 7 svn:log V 338 Add new kernel config option. NO_SYSCTL_DESCR to omit the descriptions for the sysctls. This saves a lot of space in the resulting kernel which is important for embedded systems. This change was done in a ABI compatible way. The pointer is still there, it just points to an empty string instead of the description. MFC After: 3 days END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2006-07-18T17:12:47.000000Z K 7 svn:log V 68 Fix typo, error not present in HEAD. Submitted by: Jilles Tjoelker END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-07-18T19:56:55.000000Z K 7 svn:log V 354 MFC: Sync with head. - Use firmware commands to do device discovery instead of SCSI probes which fixes a problem with multiple volumes and do the probe synchronously during boot. - Fix a typo when getting the log_state. - Consolidate dcmd firmware processing into a single function. - Cleanup various printfs and nits. Reviewed by: scottl, ambrisko END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-07-18T20:01:06.000000Z K 7 svn:log V 46 MFC: Probe volumes synchronously during boot. END K 10 svn:author V 3 imp K 8 svn:date V 27 2006-07-18T20:08:24.000000Z K 7 svn:log V 94 MFC: in_cksum_arm.S 1.6 in_cksum.c 1.5, 1.6, 1.7 Use REDUCE32 to compute correct checksum. END K 10 svn:author V 3 imp K 8 svn:date V 27 2006-07-18T20:23:18.000000Z K 7 svn:log V 103 MFC: use bus_read/write_4 now that's been MFC'd. use the correct frequency to initialize the clocks. END K 10 svn:author V 3 imp K 8 svn:date V 27 2006-07-18T20:26:31.000000Z K 7 svn:log V 72 MFC: Actually set the RTC. Use bus_read/write_4 now the've been MFC'd. END K 10 svn:author V 3 imp K 8 svn:date V 27 2006-07-18T20:28:38.000000Z K 7 svn:log V 37 MFC: Spell RTC_CALR_CEN_S correctly. END K 10 svn:author V 3 imp K 8 svn:date V 27 2006-07-18T20:30:37.000000Z K 7 svn:log V 36 MFC: changes for generalized spibus END K 10 svn:author V 3 imp K 8 svn:date V 27 2006-07-18T21:00:57.000000Z K 7 svn:log V 65 MFC: Add the ability to select the function of individual pins. END K 10 svn:author V 6 cognet K 8 svn:date V 27 2006-07-18T21:16:39.000000Z K 7 svn:log V 107 Add -EB to ${LD} too if we're making a big endian kernel, not anything in kernel makefiles uses SYSTEM_LD. END K 10 svn:author V 3 imp K 8 svn:date V 27 2006-07-18T21:55:36.000000Z K 7 svn:log V 39 MFC: The SCK is a little better than 0 END K 10 svn:author V 3 imp K 8 svn:date V 27 2006-07-18T21:56:02.000000Z K 7 svn:log V 21 MFC: Minor polishing END K 10 svn:author V 3 imp K 8 svn:date V 27 2006-07-18T21:57:35.000000Z K 7 svn:log V 60 MFC: use bus_read/write_4. requeue mbufs that don't defrag END K 10 svn:author V 3 imp K 8 svn:date V 27 2006-07-18T21:58:49.000000Z K 7 svn:log V 46 MFC: Fixes to make serial ports work reliably END K 10 svn:author V 3 imp K 8 svn:date V 27 2006-07-18T22:00:35.000000Z K 7 svn:log V 40 MFC: refinements in start/stop handling END K 10 svn:author V 3 imp K 8 svn:date V 27 2006-07-18T22:01:22.000000Z K 7 svn:log V 42 MFC: configure peripheral I/O pins better END K 10 svn:author V 3 imp K 8 svn:date V 27 2006-07-18T22:01:59.000000Z K 7 svn:log V 36 MFC: at91_spi now depends on spibus END K 10 svn:author V 3 imp K 8 svn:date V 27 2006-07-18T22:02:16.000000Z K 7 svn:log V 41 MFC: Merge common options into std files END K 10 svn:author V 3 imp K 8 svn:date V 27 2006-07-18T22:03:33.000000Z K 7 svn:log V 27 MFC: Tweaks to config file END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-07-18T22:29:54.000000Z K 7 svn:log V 16 Update comment. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-07-18T22:31:33.000000Z K 7 svn:log V 64 Remove unnecessary locking for td_dupfd (it requires no locks). END K 10 svn:author V 3 ups K 8 svn:date V 27 2006-07-18T22:34:27.000000Z K 7 svn:log V 610 Fix race conditions on enumerating pcb lists by moving the initialization ( and where appropriate the destruction) of the pcb mutex to the init/finit functions of the pcb zones. This allows locking of the pcb entries and race condition free comparison of the generation count. Rearrange locking a bit to avoid extra locking operation to update the generation count in in_pcballoc(). (in_pcballoc now returns the pcb locked) I am planning to convert pcb list handling from a type safe to a reference count model soon. ( As this allows really freeing the PCBs) Reviewed by: rwatson@, mohans@ MFC after: 1 week END K 10 svn:author V 7 yongari K 8 svn:date V 27 2006-07-19T04:12:59.000000Z K 7 svn:log V 187 Convert sk(4) to use the new bus_alloc_resources() API and bus_{read,write}_* macros. Submitted by: Antoine Brodin Reviewed by: imp (initial version) END K 10 svn:author V 7 yongari K 8 svn:date V 27 2006-07-19T04:40:26.000000Z K 7 svn:log V 128 MFC ukphy_subr.c, 1.9 to RELENG_6: If the PHY has 1000BASE-T capability, check to see if a 1000BASE-T speed was negotiated. END K 10 svn:author V 2 ps K 8 svn:date V 27 2006-07-19T08:10:44.000000Z K 7 svn:log V 203 MFC: rev 1.4 - Removed updates to if_ibytes, if_obytes, if_imcasts, and if_omcasts. These should not be handled by the driver. - Add code to handle excessively fragmented mbufs when mapping TX frames. END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2006-07-19T10:46:38.000000Z K 7 svn:log V 27 Remove an unused variable. END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2006-07-19T10:49:43.000000Z K 7 svn:log V 180 - Bring kern.random output closer to reality - Remove kern.random.sys.burst, it's no longer available - Document kern.random.sys.harvest.swi (1) PR: 100167 (1) MFC after: 3 days END K 10 svn:author V 3 des K 8 svn:date V 27 2006-07-19T11:27:19.000000Z K 7 svn:log V 72 Add CPUTYPE support for Via C3 and C3-2 processors. MFC after: 2 weeks END K 10 svn:author V 4 nyan K 8 svn:date V 27 2006-07-19T11:49:22.000000Z K 7 svn:log V 99 The pcn does not work on NEC SV-98/2-B05 and B06. Submitted by: Chiharu Shibata MFC after: 3 days END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-07-19T12:10:33.000000Z K 7 svn:log V 94 Add very basic regression test for netinet6: create and close raw, UDP, and TCP IPv6 sockets. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-07-19T12:54:14.000000Z K 7 svn:log V 110 Add a test case for closing a UDPv6 socket that has been connected to the IPv6 loopback address. Warns ?= 2. END K 10 svn:author V 3 kib K 8 svn:date V 27 2006-07-19T14:49:20.000000Z K 7 svn:log V 89 MFC rev. 1.30, 1.31 Check that the signal number is in range. Approved by: pjd (mentor) END K 10 svn:author V 2 mr K 8 svn:date V 27 2006-07-19T16:31:09.000000Z K 7 svn:log V 99 Reflect the additional support of C7 CPU's in padlock(4). Submitted by: brueffer MFC after: 1 day END K 10 svn:author V 3 kib K 8 svn:date V 27 2006-07-19T16:31:12.000000Z K 7 svn:log V 147 Enable build of ppc(4) module on i386 and amd64 architectures. Add proper module interdependencies. Reviewed by: marcel Approved by: pjd (mentor) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-07-19T18:26:09.000000Z K 7 svn:log V 60 Initialize svr4_head during MOD_LOAD rather than on demand. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-07-19T18:26:53.000000Z K 7 svn:log V 57 Disable the pager for 'panic' and 'call' to be paranoid. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-07-19T18:28:52.000000Z K 7 svn:log V 187 Don't free the sockaddr in kern_bind() and kern_connect() as not all callers pass a sockaddr allocated via malloc() from M_SONAME anymore. Instead, free it in the callers when necessary. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-07-19T18:30:33.000000Z K 7 svn:log V 63 Call change_dir() instead of duplicating the code in fchdir(). END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-07-19T18:52:33.000000Z K 7 svn:log V 45 Whitespace fix after s/dev_t/struct cdev */. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-07-19T18:53:56.000000Z K 7 svn:log V 321 Add a mutex to protect the list of interrupt config hooks. We do assume that the only remove hook operation that can occur while processing the hooks is to remove the currently executing hook. This should be safe as the existing code has assumed this already for a long time now. Reviewed by: scottl MFC after: 1 week END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-07-19T19:01:10.000000Z K 7 svn:log V 839 Make svr4_sys_waitsys() a lot less ugly and mark it MPSAFE. - If the WNOWAIT flag isn't specified and either of WEXITED or WTRAPPED is set, then just call kern_wait() and let it do all the work. This means that this function no longer has to duplicate the work to teardown zombies that is done in kern_wait(). Instead, if the above conditions aren't true, then it uses a simpler loop to implement WNOWAIT and/or tracing for only stopped or continued processes. This function still has to duplicate code from kern_wait() for the latter two cases, but those are much simpler. - Sync the code to handle the WCONTINUED and WSTOPPED cases with the equivalent code in kern_wait(). - Fix several places that would return with the proctree lock still held. - Lock the current process to prevent lost wakeup races when blocking. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-07-19T19:03:03.000000Z K 7 svn:log V 80 Add conditional VFS Giant locking to svr4_sys_resolvepath() and mark it MPSAFE. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-07-19T19:03:21.000000Z K 7 svn:log V 7 Regen. END K 10 svn:author V 3 imp K 8 svn:date V 27 2006-07-19T21:41:51.000000Z K 7 svn:log V 57 MFC: Merge the change from inline function to prototype. END K 10 svn:author V 3 imp K 8 svn:date V 27 2006-07-19T21:53:36.000000Z K 7 svn:log V 46 MFC: Also need do_pseudo from -current. Doh! END K 10 svn:author V 3 imp K 8 svn:date V 27 2006-07-19T21:54:37.000000Z K 7 svn:log V 54 Fix MisMFC: Current uses SER_* and stable uses UART_* END K 10 svn:author V 3 imp K 8 svn:date V 27 2006-07-19T22:00:33.000000Z K 7 svn:log V 42 MFp4: Merge #defines for uart_{,un}lock() END K 10 svn:author V 7 yongari K 8 svn:date V 27 2006-07-20T03:57:58.000000Z K 7 svn:log V 44 Honor IFF_DRV_OACTIVE in em_start_locked(). END K 10 svn:author V 7 yongari K 8 svn:date V 27 2006-07-20T04:01:54.000000Z K 7 svn:log V 44 Protect EEPROM access with the driver lock. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2006-07-20T04:18:45.000000Z K 7 svn:log V 907 Since resetting hardware takes a very long time and results in link renegotiation, we only initialize the hardware only when it is absolutely required. Process SIOCGIFADDR ioctl in em(4) when we know an IPv4 address is added. Handling SIOCGIFADDR in a driver is layering violation but it seems that there is no easy way without rewritting hardware initialization code to reduce settle time after reset. This should fix a long standing bug which didn't send ARP packet when interface address is changed or an alias address is added. Another effect of this fix is it doesn't need additional delays anymore when adding an alias address to the interface. While I'm here add a new if_flags into softc which remembers current prgroammed interface flags and make use of it when we have to program promiscuous mode. Tested by: Atanas Analyzed by: rwatson Discussed with: -stable END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2006-07-20T08:04:13.000000Z K 7 svn:log V 42 MFC 1.31: Use a prototype for res_init(). END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2006-07-20T09:11:08.000000Z K 7 svn:log V 93 Don't use "implicit int". Move the opening { of the functions to the next line while there. END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2006-07-20T09:38:46.000000Z K 7 svn:log V 25 Remove unused variables. END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2006-07-20T09:47:15.000000Z K 7 svn:log V 83 Convert macros to use C99's syntax for macros with a variable number of arguments. END K 10 svn:author V 3 flz K 8 svn:date V 27 2006-07-20T10:07:34.000000Z K 7 svn:log V 334 - Remove hardcoded /etc/ntp.conf configuration file from ntpdate rc.d script and replace it with a new ntpdate_config variable. - Document it in defaults/rc.conf and rc.conf.5. - Document ntpdate_hosts in defaults/rc.conf. Requested by: Chris Timmons Approved by: cperciva (mentor, implicit) MFC after: 1 week END K 10 svn:author V 3 alc K 8 svn:date V 27 2006-07-20T17:48:41.000000Z K 7 svn:log V 1584 Add pmap_clear_write() to the interface between the virtual memory system's machine-dependent and machine-independent layers. Once pmap_clear_write() is implemented on all of our supported architectures, I intend to replace all calls to pmap_page_protect() by calls to pmap_clear_write(). Why? Both the use and implementation of pmap_page_protect() in our virtual memory system has subtle errors, specifically, the management of execute permission is broken on some architectures. The "prot" argument to pmap_page_protect() should behave differently from the "prot" argument to other pmap functions. Instead of meaning, "give the specified access rights to all of the physical page's mappings," it means "don't take away the specified access rights from all of the physical page's mappings, but do take away the ones that aren't specified." However, owing to our i386 legacy, i.e., no support for no-execute rights, all but one invocation of pmap_page_protect() specifies VM_PROT_READ only, when the intent is, in fact, to remove only write permission. Consequently, a faithful implementation of pmap_page_protect(), e.g., ia64, would remove execute permission as well as write permission. On the other hand, some architectures that support execute permission have basically ignored whether or not VM_PROT_EXECUTE is passed to pmap_page_protect(), e.g., amd64 and sparc64. This change represents the first step in replacing pmap_page_protect() by the less subtle pmap_clear_write() that is already implemented on amd64, i386, and sparc64. Discussed with: grehan@ and marcel@ END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-07-20T18:41:00.000000Z K 7 svn:log V 135 Expand locking coverage slightly to cover if_drv_flags in a few places where it wasn't locked. MFC after: 3 days Reviewed by: davidch END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-07-20T18:43:31.000000Z K 7 svn:log V 42 MFC: Fix ifconfig up when the HW is down. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-07-20T18:54:15.000000Z K 7 svn:log V 212 MFC revs 1.4 and 1.5: - Removed updates to if_ibytes, if_obytes, if_imcasts, and if_omcasts. - Match code in 6.x and HEAD for handling excessively fragmented mbufs for TX. - Handle ifconfig up when HW is down. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-07-20T19:58:12.000000Z K 7 svn:log V 111 MFC: Chain the bus_dmamap_load() calls when mapping a command with a data CCB instead of using BUS_DMA_NOWAIT. END K 10 svn:author V 6 cognet K 8 svn:date V 27 2006-07-20T20:01:27.000000Z K 7 svn:log V 48 Remove -CURRENT options and (re)add needed one. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-07-20T20:07:37.000000Z K 7 svn:log V 282 MFC: Chain the bus_dmamap_load() calls when mapping a command with a data CCB instead of using BUS_DMA_NOWAIT(). Since bus_dmamap_load() doesn't support BUS_DMA_NOWAIT in 4.x, this could result in data corruption if sufficient bounce pages weren't available. Submitted by: scottl END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-07-20T20:16:16.000000Z K 7 svn:log V 66 Bah, fix the 1.5 MFC to actually work on 4.x. Pointy hat to: jhb END K 10 svn:author V 6 cognet K 8 svn:date V 27 2006-07-20T21:03:43.000000Z K 7 svn:log V 262 Fix ALT_BREAK_TO_DEBUGGER on the AT91 : The core uart code expects the receive method to actually puts the characters read into its buffers. For AT91, it's done in the ipend routine, so also check if we have the alternate break sequence here. MFC after: 3 days END K 10 svn:author V 6 cognet K 8 svn:date V 27 2006-07-20T21:28:07.000000Z K 7 svn:log V 91 Honor ARM_BIG_ENDIAN by adding -mbig-endian to CFLAGS and -EB to LDFLAGS if it is defined. END K 10 svn:author V 6 cognet K 8 svn:date V 27 2006-07-20T22:13:59.000000Z K 7 svn:log V 69 Oops LDFLAGS can be used to invoke gcc, so directly add -EB to {LD}. END K 10 svn:author V 3 imp K 8 svn:date V 27 2006-07-20T22:42:48.000000Z K 7 svn:log V 93 Remove ALPHA optimization pointer for gcc flags. Add ARM optimization pointer for gcc flags. END K 10 svn:author V 3 alc K 8 svn:date V 27 2006-07-20T23:26:22.000000Z K 7 svn:log V 55 Implement pmap_clear_write(). Discussed with: cognet@ END K 10 svn:author V 3 kib K 8 svn:date V 27 2006-07-21T05:54:24.000000Z K 7 svn:log V 120 MFC rev. 1.206 Make the mincore(2) return ENOMEM when requested range is not fully mapped. Approved by: pjd (mentor) END K 10 svn:author V 3 kib K 8 svn:date V 27 2006-07-21T06:29:32.000000Z K 7 svn:log V 162 MFC rev. 1.25 Document new mincore behaviour, the mincore(2) returns ENOMEM when requested range is not fully mapped. Reminded by: pjd Approved by: pjd (mentor) END K 10 svn:author V 3 alc K 8 svn:date V 27 2006-07-21T06:40:29.000000Z K 7 svn:log V 62 Eliminate OBJ_WRITEABLE. It hasn't been used in a long time. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2006-07-21T08:45:00.000000Z K 7 svn:log V 210 The contents pointed by ssi_cables[] is never changed so explicitly declare it as const char * instead of char *. This change have no side impact to the code itself, and is a step forward to WARNS=6 truss(1). END K 10 svn:author V 6 mlaier K 8 svn:date V 27 2006-07-21T09:41:09.000000Z K 7 svn:log V 61 Belately inform about iwi(4) changes. Reminded by: brueffer END K 10 svn:author V 6 mlaier K 8 svn:date V 27 2006-07-21T09:48:13.000000Z K 7 svn:log V 497 Import from OpenBSD 1.168, dhartmei: fix a bug in the input sanity check of DIOCCHANGERULE (not used by pfctl, but third-party tools). a rule must have a non-empty replacement address list when it's a translation rule but not an anchor call (i.e. "nat ... ->" needs a replacement address, but "nat-anchor ..." doesn't). the check confused "rule is an anchor call" with "rule is defined within an anchor". report from Michal Mertl, Max Laier. Obtained from: OpenBSD MFC after: 2 weeks END K 10 svn:author V 6 cognet K 8 svn:date V 27 2006-07-21T14:07:48.000000Z K 7 svn:log V 89 Grr we also need to set -mbig-endian to LDFLAGS. Now I can build a big-endian arm world. END K 10 svn:author V 2 mr K 8 svn:date V 27 2006-07-21T15:12:03.000000Z K 7 svn:log V 51 MFC VIA C7 support. Obtained from: mostly OpenBSD END K 10 svn:author V 2 mr K 8 svn:date V 27 2006-07-21T15:17:33.000000Z K 7 svn:log V 62 MFC changes regarding VIA C7 support. Submitted by: brueffer END K 10 svn:author V 3 yar K 8 svn:date V 27 2006-07-21T15:55:18.000000Z K 7 svn:log V 118 Since Alpha support isn't in HEAD anymore, remove Alpha-specific rc.conf(5) knobs, too: osf1_enable, unaligned_print. END K 10 svn:author V 3 yar K 8 svn:date V 27 2006-07-21T15:57:12.000000Z K 7 svn:log V 26 Touch document date (Dd). END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-07-21T17:11:15.000000Z K 7 svn:log V 973 Change semantics of socket close and detach. Add a new protocol switch function, pru_close, to notify protocols that the file descriptor or other consumer of a socket is closing the socket. pru_abort is now a notification of close also, and no longer detaches. pru_detach is no longer used to notify of close, and will be called during socket tear-down by sofree() when all references to a socket evaporate after an earlier call to abort or close the socket. This means detach is now an unconditional teardown of a socket, whereas previously sockets could persist after detach of the protocol retained a reference. This faciliates sharing mutexes between layers of the network stack as the mutex is required during the checking and removal of references at the head of sofree(). With this change, pru_detach can now assume that the mutex will no longer be required by the socket layer after completion, whereas before this was not necessarily true. Reviewed by: gnn END K 10 svn:author V 3 ume K 8 svn:date V 27 2006-07-21T18:55:51.000000Z K 7 svn:log V 155 - draft-ietf-ipngwg-icmp-namelookups-09 - make it compilable It still requires root privilege and is experimental. Obtained from: KAME MFC after: 1 week END K 10 svn:author V 3 ume K 8 svn:date V 27 2006-07-21T18:57:44.000000Z K 7 svn:log V 196 clean-up: rewrote explore_null and explore_numeric without using sentinel. we do not need it since we make (at most) a single addrinfo entry in these cases. Obtained from: KAME MFC after: 1 week END K 10 svn:author V 3 ume K 8 svn:date V 27 2006-07-21T19:00:22.000000Z K 7 svn:log V 86 RFC3493 requires use of inet_aton for AF_INET. Obtained from: KAME MFC after: 1 week END K 10 svn:author V 3 ume K 8 svn:date V 27 2006-07-21T19:02:28.000000Z K 7 svn:log V 159 simplification in explore_numeric: unified the post-process with GET_AI and GET_PORT. Commented on an impossible case. Obtained from: KAME MFC after: 1 week END K 10 svn:author V 3 imp K 8 svn:date V 27 2006-07-21T19:13:05.000000Z K 7 svn:log V 179 If we get an error w/o atapi sense information, just print a newline to terminate the message we started. I get non-terminated messages when reading audio tracks w/o this patch. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-07-21T20:22:13.000000Z K 7 svn:log V 432 - Pass the MPSAFE flag to namei() in linux_uselib() and handle conditional Giant VFS locking in that function. - Remove bogus code to handle the case where namei() returns success but a NULL vnode pointer. - Note that this code duplicates exec_check_permissions() and annotate where it differs. - Hold the vnode lock longer to protect the write to set VV_TEXT in v_vflag. - Mark linux_uselib() MPSAFE. Reviewed by: rwatson END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-07-21T20:24:00.000000Z K 7 svn:log V 130 Add a comment to explain what fdclose() does and what it's purpose is since the subtlety eluded me when I looked at it last week. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-07-21T20:28:56.000000Z K 7 svn:log V 361 Add conditional VFS Giant locking to svr4_sys_fchroot() and mark it MPSAFE. Also, call change_dir() instead of doing part of it inline (this now adds a mac_check_vnode_chdir() call) to match fchdir() and call mac_check_vnode_chroot() to match chroot(). Also, use the change_root() function to do the actual change root to match chroot(). Reviewed by: rwatson END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-07-21T20:40:13.000000Z K 7 svn:log V 1691 Clean up the svr4 socket cache and streams code some to make it more easily locked. - Move all the svr4 socket cache code into svr4_socket.c, specifically move svr4_delete_socket() over from streams.c. Make the socket cache entry structure and svr4_head private to svr4_socket.c as a result. - Add a mutex to protect the svr4 socket cache. - Change svr4_find_socket() to copy the sockaddr_un struct into a caller-supplied sockaddr_un rather than giving the caller a pointer to our internal one. This removes the one case where code outside of svr4_socket.c could access data in the cache. - Add an eventhandler for process_exit and process_exec to purge the cache of any entries for the exiting or execing process. - Add methods to init and destroy the socket cache and call them from the svr4 ABI module's event handler. - Conditionally grab Giant around socreate() in streamsopen(). - Use fdclose() instead of inlining it in streamsopen() when handling socreate() failure. - Only allocate a stream structure and attach it to a socket in streamsopen(). Previously, if a svr4 program performed a stream operation on an arbitrary socket not opened via the streams device, we would attach streams state data to it and change f_ops of the associated struct file while it was in use. The latter was especially not safe, and if a program wants a stream object it should open it via the streams device anyway. - Don't bother locking so_emuldata in the streams code now that we only touch it right after creating a socket (in streamsopen()) or when tearing it down when the file is closed. - Remove D_NEEDGIANT from the streams device as it is no longer needed. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-07-21T20:41:33.000000Z K 7 svn:log V 7 Regen. END K 10 svn:author V 7 sobomax K 8 svn:date V 27 2006-07-21T22:13:06.000000Z K 7 svn:log V 169 Remove mention of the `W' flag, which has been turned to no-op by the neworder change. Keep the option in a config file parser, to not violate POLA. MFC after: 2 weeks END K 10 svn:author V 3 alc K 8 svn:date V 27 2006-07-21T23:22:49.000000Z K 7 svn:log V 90 Retire debug.mpsafevm. None of the architectures supported in CVS require it any longer. END K 10 svn:author V 3 gnn K 8 svn:date V 27 2006-07-22T02:32:32.000000Z K 7 svn:log V 402 The KAME project ceased work on IPv6 and IPSec in March of 2006. Remove the README file which warns against cosmetic or local only changes. FreeBSD committers should now feel free to work on the IPv6 and IPSec code without fetters. The KAME mailing lists still exist and it is always a good idea to ask questions about this code on the snap-users@kame.net mailing list. Reviewed by: rwatson, brooks END K 10 svn:author V 3 des K 8 svn:date V 27 2006-07-22T06:01:58.000000Z K 7 svn:log V 98 MFC: (1.92, 1.94) use CDUP (1.93) ignore MODE failure (1.95) respect FETCH_BIND_ADDRESS END K 10 svn:author V 3 des K 8 svn:date V 27 2006-07-22T06:02:57.000000Z K 7 svn:log V 58 MFC: (1.6) turn on libfetch debugging if -v was specified END K 10 svn:author V 3 yar K 8 svn:date V 27 2006-07-22T07:23:46.000000Z K 7 svn:log V 69 The month name in .Dd should be spelled in full. Pointed out by: ru END K 10 svn:author V 3 gnn K 8 svn:date V 27 2006-07-22T09:18:02.000000Z K 7 svn:log V 80 Fix build breakage from previous commit which confused key_abort and key_close. END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2006-07-22T09:34:38.000000Z K 7 svn:log V 157 MFC: rev. 1.19 - Bring kern.random output closer to reality - Remove kern.random.sys.burst, it's no longer available - Document kern.random.sys.harvest.swi END K 10 svn:author V 3 pjd K 8 svn:date V 27 2006-07-22T10:04:47.000000Z K 7 svn:log V 389 Set ses_ictx and ses_octx to NULL after freeing them, so we won't free them twice. This is possible for example in situation when session is used in authentication context, then freed and then used in encryption context and freed - in encryption context ses_ictx and ses_octx are not touched at newsession time, but padlock_freesession could still try to free them when they are not NULL. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2006-07-22T10:05:55.000000Z K 7 svn:log V 91 Don't forget to initialize crp_olen field, which is used to calculate bio_completed value. END K 10 svn:author V 3 yar K 8 svn:date V 27 2006-07-22T11:58:11.000000Z K 7 svn:log V 415 MFC my recent changes to asf(8): The improvements are: - can get the kld info from core files via kvm(3); - can use kldstat(2) directly, which is a piece of cake; - can use .symbols or whatever, which allows for use by non-developers when reporting system crashes -- now asf(8) can be mentioned in the handbook at last; - speed (no more double fts(3) per loaded module); - various bugs fixed. END K 10 svn:author V 3 yar K 8 svn:date V 27 2006-07-22T12:52:51.000000Z K 7 svn:log V 29 Note the overhaul of asf(8). END K 10 svn:author V 3 yar K 8 svn:date V 27 2006-07-22T13:04:21.000000Z K 7 svn:log V 34 MFC: Note the overhaul of asf(8). END K 10 svn:author V 3 pjd K 8 svn:date V 27 2006-07-22T13:14:11.000000Z K 7 svn:log V 41 Correct few bzero()s. MFC after: 3 days END K 10 svn:author V 6 obrien K 8 svn:date V 27 2006-07-22T14:00:31.000000Z K 7 svn:log V 46 Tell when a .include is processed with '-dd'. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2006-07-22T14:12:02.000000Z K 7 svn:log V 62 The platform name is ARM not StrongARM. Submitted by: cognet END K 10 svn:author V 6 obrien K 8 svn:date V 27 2006-07-22T14:36:15.000000Z K 7 svn:log V 53 Create a genscripts driver based on the PowerPC one. END K 10 svn:author V 3 ume K 8 svn:date V 27 2006-07-22T14:36:56.000000Z K 7 svn:log V 45 remove obsolete comments. MFC after: 3 days END K 10 svn:author V 6 obrien K 8 svn:date V 27 2006-07-22T14:37:17.000000Z K 7 svn:log V 26 Be consistent in quoting. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2006-07-22T14:55:55.000000Z K 7 svn:log V 113 Add ARM platform Makefile for building BFD. We include the New ARM ABI only. (rev 1.1 was an accidental commit) END K 10 svn:author V 6 obrien K 8 svn:date V 27 2006-07-22T14:59:50.000000Z K 7 svn:log V 88 Add ARM platform Makefile for building disassembler. (rev 1.1 was an accidental commit) END K 10 svn:author V 6 obrien K 8 svn:date V 27 2006-07-22T15:27:18.000000Z K 7 svn:log V 52 Add initial platform support. Submitted by: cognet END K 10 svn:author V 3 pjd K 8 svn:date V 27 2006-07-22T16:18:47.000000Z K 7 svn:log V 346 Implement support for HMAC/SHA1 and HMAC/SHA256 acceleration found in new VIA CPUs. For older CPUs HMAC/SHA1 and HMAC/SHA256 (and others) will still be done in software. Move symmetric cryptography (currently only AES-CBC 128/192/256) to padlock_cipher.c file. Move HMAC cryptography to padlock_hash.c file. Hardware from: Centaur Technologies END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-07-22T17:24:55.000000Z K 7 svn:log V 90 Re-wrap and other minor formatting and punctuation fixes for UNIX domain socket comments. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-07-22T18:41:42.000000Z K 7 svn:log V 133 In uipc_send() and uipc_rcvd(), store unp->unp_conn pointer in unp2 while working with the second unpcb to make the code more clear. END K 10 svn:author V 3 alc K 8 svn:date V 27 2006-07-22T22:31:57.000000Z K 7 svn:log V 67 Export the number of object bypasses and collapses through sysctl. END K 10 svn:author V 3 ume K 8 svn:date V 27 2006-07-23T07:07:49.000000Z K 7 svn:log V 58 stop use of mutex lock in ICMP lookup. MFC after: 1 week END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-07-23T10:19:04.000000Z K 7 svn:log V 94 Move various UNIX socket global variables and sysctls from the middle of the file to the top. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-07-23T10:25:28.000000Z K 7 svn:log V 135 Since unp_attach() and unp_detach() are now called only from uipc_attach() and uipc_detach(), merge them into their calling functions. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-07-23T11:02:12.000000Z K 7 svn:log V 74 Merge unp_bind() into uipc_bind(), as it is called only from uipc_bind(). END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-07-23T12:01:14.000000Z K 7 svn:log V 381 Add two new unpcb flags, UNP_BINDING and UNP_CONNECTING, which will be used to mark UNIX domain sockets as being in the process of binding or connecting. Use these to prevent simultaneous bind or connect operations by multiple threads or processes on the same socket at the same time, which closes race conditions present in the UNIX domain socket implementation since inception. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-07-23T12:24:22.000000Z K 7 svn:log V 179 Align IPv6 socket locking with IPv4 locking: lock socket buffer explicitly and use _locked variants to avoid extra lock and unlock operations. Reviewed by: gnn MFC after: 1 week END K 10 svn:author V 4 nork K 8 svn:date V 27 2006-07-23T13:08:54.000000Z K 7 svn:log V 67 Add missing syscalls. Reviewed by: deischen Approved by: deischen END K 10 svn:author V 3 ume K 8 svn:date V 27 2006-07-23T15:31:03.000000Z K 7 svn:log V 158 do not overload the port number on to the return value of str2number(). this could result in an unexpected code path. Obtained from: KAME MFC after: 1 week END K 10 svn:author V 4 nork K 8 svn:date V 27 2006-07-23T15:53:12.000000Z K 7 svn:log V 73 Add missing ;. Pointy hat to: myself Approved by: deischen (implicitly) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-07-23T19:26:32.000000Z K 7 svn:log V 43 Improve comments for label data structure. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-07-23T19:26:54.000000Z K 7 svn:log V 49 Comment extended attribute name space constants. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-07-23T19:35:10.000000Z K 7 svn:log V 64 Update and reformat comments for POSIX.1e ACL utility routines. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-07-23T19:51:39.000000Z K 7 svn:log V 97 Expand comments for malloc(9) to better describe the design and statistics / memory types model. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-07-23T19:55:41.000000Z K 7 svn:log V 254 Remove old kern.malloc sysctl, which generated a text representation of the kernel malloc(9) state for vmstat -m. libmemstat is now used to generate a machine-readable version which is converged by vmstat -m into a human-readable version. Not for MFC. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-07-23T20:06:45.000000Z K 7 svn:log V 141 Add additional comments to the top of the UNIX domain socket implementation providing some high level pointers regarding the implementation. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-07-23T20:36:04.000000Z K 7 svn:log V 60 Update various uipc_socket.c comments, and reformat others. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-07-23T21:01:09.000000Z K 7 svn:log V 41 Remove duplicate 'or'. Submitted by: ru END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-07-24T00:33:24.000000Z K 7 svn:log V 81 Fix a spelling error in a comment. Found with: mckusick's code walkthrough DVDs END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-07-24T01:02:07.000000Z K 7 svn:log V 96 Tweak comment for so_head: it is a pointer to the listen socket, rather than the accept socket. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-07-24T01:05:36.000000Z K 7 svn:log V 75 Tweak so_gencnt comment: it was once last, but that is no longer the case. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-07-24T01:14:05.000000Z K 7 svn:log V 113 Garbage collect #if 0'd MT_ mbuf types, as they are no longer used, and there are no plans to re-introduce them. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-07-24T01:49:24.000000Z K 7 svn:log V 90 Remove MT_FTABLE printout in systat, as MT_FTABLE mbufs are no longer used in the kernel. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-07-24T01:49:57.000000Z K 7 svn:log V 133 Remove MT_FTABLE, as it's no longer used. Comment that many stats in mbstat are now not used, as libmemstat and UMA stats are used. END