ƒ²!154368 196 264 445 162 406 235 124 158 169 151 196 222 107 1034 142 122 1184 342 181 295 170 145 298 240 301 157 239 252 167 231 166 149 169 496 146 311 353 272 215 275 594 122 290 540 248 455 226 136 468 321 460 169 149 377 411 119 118 251 411 229 182 373 240 213 224 161 164 432 164 366 931 399 207 237 167 248 227 1142 545 209 119 173 186 209 267 152 265 146 201 153 200 186 128 163 160 162 181 265 365 407 113 113 113 259 473 127 135 113 146 145 208 127 194 146 116 234 134 739 241 197 1036 241 132 505 139 425 173 153 314 152 328 165 132 150 173 156 426 215 202 229 193 122 254 134 131 440 161 177 112 421 148 441 255 361 207 202 250 427 337 576 212 312 346 302 212 395 262 197 203 137 205 180 180 206 741 2958 175 175 381 324 253 183 164 291 383 534 139 147 270 165 342 187 150 208 205 283 205 K 10 svn:author V 6 scottl K 8 svn:date V 27 2006-01-14T17:42:22.000000Z K 7 svn:log V 168 Don't base the number of jumbo segments on page size, instead base it on the fact that jumbo desriptors are defined to have 3 segments. Found by: Coverity Prevent(tm) END K 10 svn:author V 6 brooks K 8 svn:date V 27 2006-01-14T17:57:17.000000Z K 7 svn:log V 349 When SC_DISABLE_KDBKEY or SC_DISABLE_REBOOT are not defined allow the same behavior to be controlled by the sysctls, hw.syscons.kbd_kbdkey and hw.syscons.kbd_reboot respectively. Apologies to the submitter for taking so long to commit this simple change. PR: kern/72728 Submitted by: Luca Morettoni MFC After: 3 days END K 10 svn:author V 6 scottl K 8 svn:date V 27 2006-01-14T17:59:28.000000Z K 7 svn:log V 67 Check the return value of copyin. Found by: Coverity Prevent (tm) END K 10 svn:author V 7 delphij K 8 svn:date V 27 2006-01-14T19:57:48.000000Z K 7 svn:log V 309 MFC revision 1.185 date: 2005/12/16 18:32:39; author: delphij; state: Exp; lines: +2 -0 In pipe_write(): when uiomove() fails, do not spin on it forever. Submitted by: Kostik Belousov on -current@ Message-ID: <20051216151016.GE84442@deviant.zoral.local> Security: Local DoS END K 10 svn:author V 2 ru K 8 svn:date V 27 2006-01-14T20:45:02.000000Z K 7 svn:log V 143 Ignore spurious '\0' first character read on a serial console. This allows me to "boot -a" over a serial console. Tested on several machines. END K 10 svn:author V 2 ru K 8 svn:date V 27 2006-01-14T20:47:11.000000Z K 7 svn:log V 33 AMD64 also supports disk slices. END K 10 svn:author V 2 ru K 8 svn:date V 27 2006-01-14T20:48:50.000000Z K 7 svn:log V 67 Don't pollute output when "make" is run with -s. Approved by: kan END K 10 svn:author V 7 glebius K 8 svn:date V 27 2006-01-14T21:28:30.000000Z K 7 svn:log V 73 Make code simplier fixing memory leak. Found with: Coverity Prevent(tm) END K 10 svn:author V 7 glebius K 8 svn:date V 27 2006-01-14T21:49:31.000000Z K 7 svn:log V 55 Initialize variable. Found with: Coverity Prevent(tm) END K 10 svn:author V 6 mlaier K 8 svn:date V 27 2006-01-14T22:19:17.000000Z K 7 svn:log V 100 Move m_adj after checking that m_dup succeeded. Found with: Coverity Prevent(tm) MFC after: 3 days END K 10 svn:author V 5 ariff K 8 svn:date V 27 2006-01-14T23:37:08.000000Z K 7 svn:log V 127 Add another inverted EAPD quirk for Gateway 7326GZ. Tested by: Jeff Cross MFC after: 3 days END K 10 svn:author V 7 glebius K 8 svn:date V 27 2006-01-15T00:20:31.000000Z K 7 svn:log V 11 Fix build. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2006-01-15T00:46:17.000000Z K 7 svn:log V 937 MFC: First step in removing welding between ipfw(4) and dummynet. o Do not use ipfw_insn_pipe->pipe_ptr in locate_flowset(). The _ipfw_insn_pipe isn't touched by this commit to preserve ABI compatibility. o To optimize the lookup of the pipe/flowset in locate_flowset() introduce hashes for pipes and queues: - To preserve ABI compatibility utilize the place of global list pointer for SLIST_ENTRY. - Introduce locate_flowset(queue nr) and locate_pipe(pipe nr). o Rework all the dummynet code to deal with the hashes, not global lists. Also did some style(9) changes in the code blocks that were touched by this sweep: - Be conservative about flowset and pipe variable names on stack, use "fs" and "pipe" everywhere. - Cleanup whitespaces. - Sort variables. - Give variables more meaningful names. - Uppercase and dots in comments. - ENOMEM when malloc(9) failed. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2006-01-15T00:51:02.000000Z K 7 svn:log V 46 MFC: Catch up with ip_dummynet.h rev. 1.38. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2006-01-15T00:52:15.000000Z K 7 svn:log V 26 Cleanup _FreeBSD_version. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2006-01-15T00:55:04.000000Z K 7 svn:log V 1086 MFC 1.118: Optimize parallel processing of ipfw(4) rulesets eliminating the locking of the radix lookup tables. Since several rnh_lookup() can run in parallel on the same table, we can piggyback on the shared locking provided by ipfw(4). However, the single entry cache in the ip_fw_table can't be used lockless, so it is removed. This pessimizes two cases: processing of bursts of similar packets and matching one packet against the same table several times during one ipfw_chk() lookup. To optimize the processing of similar packet bursts administrator should use stateful firewall. To optimize the second problem a solution will be provided soon. Details: o Since we piggyback on the ipfw(4) locking, and the latter is per-chain, the tables are moved from the global declaration to the struct ip_fw_chain. o The struct ip_fw_table is shrunk to one entry and thus vanished. o All table manipulating functions are extended to accept the struct ip_fw_chain * argument. o All table modifing functions use IPFW_WLOCK_ASSERT(). END K 10 svn:author V 7 glebius K 8 svn:date V 27 2006-01-15T01:00:55.000000Z K 7 svn:log V 245 MFC: Add a new feature for optimizining ipfw rulesets - substitution of the action argument with the value obtained from table lookup. The feature is now applicable only to "pipe", "queue", "divert", "tee", "netgraph" and "ngtee" rules. END K 10 svn:author V 3 flz K 8 svn:date V 27 2006-01-15T01:01:46.000000Z K 7 svn:log V 89 I missed a whitespace in the generated commit message. Approved by: ssouhlal (implicit) END K 10 svn:author V 4 csjp K 8 svn:date V 27 2006-01-15T01:02:20.000000Z K 7 svn:log V 201 Fix potential overrun of static stack allocated array which stores the rules. If an array is N elements large, we can only access elements 0..(N-1). MFC after: 1 week Found with: Coverity Prevent(tm) END K 10 svn:author V 7 glebius K 8 svn:date V 27 2006-01-15T01:05:21.000000Z K 7 svn:log V 74 MFC 1.183: Forget about ipfw1 and ipfw2. We aren't in RELENG_4 anymore. END K 10 svn:author V 2 bz K 8 svn:date V 27 2006-01-15T01:39:01.000000Z K 7 svn:log V 54 Remove unused code. Found with: Coverity Prevent(tm) END K 10 svn:author V 4 csjp K 8 svn:date V 27 2006-01-15T01:55:45.000000Z K 7 svn:log V 204 Initialize ki to p->p_aioinfo after we know it's going to be referencing a valid kaioinfo structure. This avoids a potential NULL pointer dereference. Found with: Coverity Prevent(tm) MFC after: 2 weeks END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-01-15T02:01:51.000000Z K 7 svn:log V 143 Rename uid and gid arguments to vaccess() prototype to match vaccess() implementation in vfs_subr.c. No functional change. MFC after: 3 days END K 10 svn:author V 3 imp K 8 svn:date V 27 2006-01-15T04:10:47.000000Z K 7 svn:log V 208 Add support for the Compaq LTE docking station. It includes a plug and play device with the ID of PNP8160. Sotr them while I'm here. Submitted by: Sean Shapira sds at jazzie dotty com MFC After: 1 week END K 10 svn:author V 3 imp K 8 svn:date V 27 2006-01-15T06:49:28.000000Z K 7 svn:log V 65 I don't believe these are used at all, and can be safely removed END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-01-15T12:06:09.000000Z K 7 svn:log V 142 If frame length is excessive, don't leak an mbuf and cluster when abandoning processing. Found with: Coverity Prevent (tm) MFC after: 1 week END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-01-15T12:09:03.000000Z K 7 svn:log V 155 Don't leak mbufs and mbuf clusters in several error-handling situations in the if_an receive routine. Found with: Coverity Prevent (tm) MFC after: 1 week END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-01-15T17:05:48.000000Z K 7 svn:log V 71 Staticize ipqlock, since it is local to ip_input.c. MFC after: 3 days END K 10 svn:author V 7 delphij K 8 svn:date V 27 2006-01-15T17:50:38.000000Z K 7 svn:log V 134 MFC pidfile(3) function, and convert several applications to make use of it. Bump __FreeBSDversion for the MFC. Discussed with: pjd END K 10 svn:author V 7 cvs2svn K 8 svn:date V 27 2006-01-15T17:50:39.000000Z K 7 svn:log V 70 This commit was manufactured by cvs2svn to create branch 'RELENG_6_1'. END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2006-01-15T18:30:40.000000Z K 7 svn:log V 52 Mention the fire screensaver. Submitted by: rionda END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2006-01-15T18:40:52.000000Z K 7 svn:log V 72 Bump date for previous commit before ru can hit me with his mdoc-stick. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-01-15T18:58:21.000000Z K 7 svn:log V 399 Modify the IP fragment reassembly code so that it uses a new UMA zone, ipq_zone, to allocate fragment headers from, rather than using cast mbuf storage. This was one of the few remaining uses of mbuf storage for local data structures that relied on dtom(). Implement the resource limit on ipq's using UMA zone limits, but preserve current sysctl semantics using a sysctl proc. MFC after: 3 weeks END K 10 svn:author V 2 ru K 8 svn:date V 27 2006-01-15T19:17:13.000000Z K 7 svn:log V 55 Fix an off-by-one bug. Submitted by: Ulrich Spoerlein END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-01-15T20:01:05.000000Z K 7 svn:log V 214 Cast VFS_STATFS() in vfs_domount() to (void) to indicate that ignoring the return value is intentional: this is simply an attempt to pre-cache the statfs state. Found with: Coverity Prevent (tm) MFC after: 3 days END K 10 svn:author V 4 csjp K 8 svn:date V 27 2006-01-15T20:14:11.000000Z K 7 svn:log V 259 vfs_busy can only return something useful if MNTK_UNMOUNT has been set. Since we are using vfs_busy() on a freshly allocated mount structure, use (void) to show that we do not care about the return value. Found with: Coverity Prevent (tm) MFC after: 2 weeks END K 10 svn:author V 4 csjp K 8 svn:date V 27 2006-01-15T20:30:13.000000Z K 7 svn:log V 178 Validate that the supplied file is not empty before trying mmap(2) it and access the pages associated with it. Submitted by: Wojciech A. Koszek PR: bin/91411 MFC after: 1 week END K 10 svn:author V 7 iedowse K 8 svn:date V 27 2006-01-15T20:32:52.000000Z K 7 svn:log V 118 The ehci driver doesn't use the transfer `hcpriv' field, so don't bother setting it to NULL in ehci_root_ctrl_done(). END K 10 svn:author V 7 iedowse K 8 svn:date V 27 2006-01-15T20:41:04.000000Z K 7 svn:log V 178 Set sc_dying to 1 when detaching. In NetBSD and OpenBSD this was done by the DVACT_DEACTIVATE case in *hci_activate(), but we don't use that code in FreeBSD so it was never set. END K 10 svn:author V 7 iedowse K 8 svn:date V 27 2006-01-15T21:03:19.000000Z K 7 svn:log V 497 Work around a problem seen on VIA EHCI controllers where occasionally an interrupt appears to occur before the transfer has been marked as completed. This caused umass transfers to get stuck, especially when writing large files. The workaround sets up a timer that rechecks for missed completed transfers if some operations are still pending. Other suggested workarounds, such as performing a PCI read immediately after acknowledging the interrupts, do not appear to help. Obtained from: OpenBSD END K 10 svn:author V 3 imp K 8 svn:date V 27 2006-01-15T22:06:10.000000Z K 7 svn:log V 30 Happy new year, a little late END K 10 svn:author V 4 ceri K 8 svn:date V 27 2006-01-15T22:42:38.000000Z K 7 svn:log V 196 Correct obsolete chown syntax. PR: bin/90057 Submitted by: Charlie M. McDonald Approved by: jhb (mentor by proxy) MFC to: RELENG_5, RELENG_6 MFC After: 3 days END K 10 svn:author V 4 ceri K 8 svn:date V 27 2006-01-15T22:57:17.000000Z K 7 svn:log V 446 If sysinstall was used to configure an anonymous FTP area, it was possible for information to be copied from the group file to the group file in the FTP area. This patch based on a patch from Zak Johnson . PR: bin/25851 Submitted by: Ted Mittelstaedt Approved by: jhb (proxy mentor) MFC after: 3 days MFC to: RELENG_5, RELENG_6 Security: Prevents possible group information leakage END K 10 svn:author V 4 ceri K 8 svn:date V 27 2006-01-15T23:00:07.000000Z K 7 svn:log V 154 Preserve any additional arguments to ifconfig that were specified in the DHCP case too. PR: bin/74406 Approved by: jhb (proxy mentor) MFC after: 3 days END K 10 svn:author V 4 ceri K 8 svn:date V 27 2006-01-15T23:12:26.000000Z K 7 svn:log V 361 Marius Nuennerich pointed out that nextboot(8) configured boot options were now sticky. This script was deleting /boot/nextkernel on boot, but there is no code in the tree that creates that file since revision 1.15 of src/sbin/reboot/reboot.c. nextboot(8) creates /boot/nextboot.conf, so remove that instead. Approved by: jhb (proxy mentor) MFC after: 1 week END K 10 svn:author V 4 ceri K 8 svn:date V 27 2006-01-15T23:15:41.000000Z K 7 svn:log V 132 Add ntp.cgi.cz. PR: bin/90095 Submitted by: Jakub Chromy Approved by: jhb (proxy mentor) MFC after: 3 days END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-01-16T00:28:11.000000Z K 7 svn:log V 40 Fix typo in comment. MFC after: 3 days END K 10 svn:author V 6 marcel K 8 svn:date V 27 2006-01-16T00:32:46.000000Z K 7 svn:log V 372 Define NO_TLS on ia64. The dynamic TLS implementation on ia64 is broken for non-threaded shared processes in that __tls_get_addr() assumes the thread pointer is always initialized. This is not the case. When arenas_map is referenced in choose_arena() and it is defined as a thread-local variable, it will result in a SIGSEGV. PR: ia64/91846 (describes the TLS/ia64 bug). END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-01-16T00:37:20.000000Z K 7 svn:log V 224 Remove unnecessary and undesirable 'static' from function-local keg list, which could cause problems for multi-threaded applications using libmemstat to monitor UMA in more than one thread simultaneously. MFC after: 3 days END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-01-16T00:52:20.000000Z K 7 svn:log V 363 Replace strncpy() with strlcpy() when parsing login time limit strings from /etc/login.conf, or an unterminated string buffer could result. Probably, login_times.c should reject excessively long time strings as unparseable, rather than truncating, which might render an invalid string valid. Found with: Coverity Prevent (tm) Reviewed by: csjp MFC after: 3 days END K 10 svn:author V 4 kris K 8 svn:date V 27 2006-01-16T01:30:52.000000Z K 7 svn:log V 76 Remove scary warning, since nullfs works fine thesedays. MFC after: 1 week END K 10 svn:author V 4 kris K 8 svn:date V 27 2006-01-16T01:35:25.000000Z K 7 svn:log V 56 Correct typos (s/OFERFLOW/OVERFLOW/). Reviewed by: jhb END K 10 svn:author V 5 ariff K 8 svn:date V 27 2006-01-16T02:08:56.000000Z K 7 svn:log V 282 MFC: Joyport blacklist. Either we're facing with broken hardware or because this hardware need special (unknown) initialization procedures. Reported by: [1] Rob Clark [1] http://lists.freebsd.org/pipermail/freebsd-multimedia/2006-January/003535.html END K 10 svn:author V 6 jasone K 8 svn:date V 27 2006-01-16T05:13:49.000000Z K 7 svn:log V 315 Add a separate simple internal base allocator and remove base_arena, so that there is never any need to recursively call the main allocation functions. Remove recursive spinlock support, since it is no longer needed. Allow chunks to be as small as the page size. Correctly propagate OOM errors from arena_new(). END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2006-01-16T05:33:48.000000Z K 7 svn:log V 23 Eliminate unused code. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2006-01-16T05:36:30.000000Z K 7 svn:log V 22 MFC: Sync with HEAD. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2006-01-16T05:48:40.000000Z K 7 svn:log V 154 MFC following revisions: sys/umtx.h revision 1.17 kern/kern_umtx.c revision 1.34 kern/kern_thr.c revision 1.36 call kern_umtx_wake on thread exit. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2006-01-16T06:03:42.000000Z K 7 svn:log V 316 REQUIRE named. On all systems I've examined running HEAD and RELENG_6 this will be a noop, however as we introduce local startup scripts to the base rcorder, we'll see more cases where the previous status quo will need to be made explicit to avoid having it disrupted when random local scripts are added to the mix. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2006-01-16T06:25:32.000000Z K 7 svn:log V 132 MFC revision 1.40: Add a new feature to thr_kill, if thread ID argument is -1, send signals to all threads except current sender. END K 10 svn:author V 5 bruno K 8 svn:date V 27 2006-01-16T09:13:53.000000Z K 7 svn:log V 88 MFC 1.4: fix bst.status and bst.rate to display correct informations. Approved by: njl END K 10 svn:author V 5 ariff K 8 svn:date V 27 2006-01-16T11:07:15.000000Z K 7 svn:log V 278 Restore old compatibility of feeding directly into /dev/dsp at 8000 hz while preserving the New World Order. Discussed with: [1] Michael W. Oliver MFC after: 1 week [1] http://lists.freebsd.org/pipermail/freebsd-multimedia/2006-January/003562.html END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-01-16T11:54:07.000000Z K 7 svn:log V 143 Restore use of strncpy(), as there is later unconditional termination of the string, and reliance on the returned pointer. Found by: bde (tm) END K 10 svn:author V 6 philip K 8 svn:date V 27 2006-01-16T13:26:05.000000Z K 7 svn:log V 117 Load the g_md kernel module if needed. Pointed out by: Gianmarco Giovannelli Submitted by: matteo MFC after: 3 days END K 10 svn:author V 3 wes K 8 svn:date V 27 2006-01-16T16:18:54.000000Z K 7 svn:log V 131 Remove dependency on getopts because it is on /usr and we want to use 'nextboot -D' in rc. Option parsing cribbed from vgrind.sh. END K 10 svn:author V 2 ru K 8 svn:date V 27 2006-01-16T16:25:17.000000Z K 7 svn:log V 70 I couldn't find any traces of what the tags1 file was supposed to do. END K 10 svn:author V 2 ru K 8 svn:date V 27 2006-01-16T17:03:06.000000Z K 7 svn:log V 73 Fix standalone module build. Reported by: Boris Samorodov END K 10 svn:author V 4 csjp K 8 svn:date V 27 2006-01-16T17:03:21.000000Z K 7 svn:log V 338 Although we check the return value of copyin(9) while determaining how long the string is in userspace, afterwards we call malloc(M_WAITOK), which could sleep for an unknown amount of time. Check the return value of copyin(9) just to be sure that nothing has changed during that time. Found with: Coverity Prevent (tm) MFC after: 1 week END K 10 svn:author V 5 ariff K 8 svn:date V 27 2006-01-16T19:07:05.000000Z K 7 svn:log V 70 Add PCI vendor id for ATI OHCI USB controllers. Approved by: iedowse END K 10 svn:author V 5 ariff K 8 svn:date V 27 2006-01-16T19:23:59.000000Z K 7 svn:log V 271 ehci_pci.c: ATI EHCI controllers exhibit simmilar stall issues and require this dropped interrupts workaround. Be verbose about it. ehci.c: ehcivar.h: Slight change in comments to note about issues surrounding both VIA and ATI EHCI controllers. Approved by: iedowse END K 10 svn:author V 3 flz K 8 svn:date V 27 2006-01-16T19:51:41.000000Z K 7 svn:log V 838 MFC: Add -K option to pkg_add and pkg_info. This option saves packages to PKGDIR (if defined or current directory by default) as they are downloaded. Silent a warning when -n is used and package has a +DISPLAY file. src/usr.sbin/pkg_install/info/perform.c: rev 1.53 -> 1.54 src/usr.sbin/pkg_install/add/main.c: rev 1.65 -> 1.66 src/usr.sbin/pkg_install/lib/lib.h: rev 1.56 -> 1.57 src/usr.sbin/pkg_install/info/pkg_info.1: rev 1.55 -> 1.56 src/usr.sbin/pkg_install/add/add.h: rev 1.12 -> 1.13 src/usr.sbin/pkg_install/add/pkg_add.1: rev 1.68 -> 1.69 src/usr.sbin/pkg_install/add/perform.c: rev 1.78 -> 1.79 src/usr.sbin/pkg_install/info/info.h: rev 1.28 -> 1.29 src/usr.sbin/pkg_install/lib/url.c: rev 1.4 -> 1.5 src/usr.sbin/pkg_install/info/main.c: rev 1.48 -> 1.49 END K 10 svn:author V 5 ariff K 8 svn:date V 27 2006-01-16T20:01:33.000000Z K 7 svn:log V 304 Fix broken capabilites. There are possible calculation errors within ess_calcspeed8() and ess_calcspeed9() that need to be fixed as well (TODO). Reported by: [1] Claude Buisson MFC after: 3 days [1] http://lists.freebsd.org/pipermail/freebsd-multimedia/2006-January/003566.html END K 10 svn:author V 3 sam K 8 svn:date V 27 2006-01-16T20:33:23.000000Z K 7 svn:log V 114 correct dlt buffer alloc; this goes on the vendor branch as it will be committed there shortly MFC after: 3 days END K 10 svn:author V 3 sam K 8 svn:date V 27 2006-01-16T20:33:23.000000Z K 7 svn:log V 144 This commit was generated by cvs2svn to compensate for changes in r154439, which included commits to RCS files with non-trunk default branches. END K 10 svn:author V 5 tegge K 8 svn:date V 27 2006-01-16T22:09:47.000000Z K 7 svn:log V 73 Set flag in needsbuffer while still holding bqlock to avoid lost wakeup. END K 10 svn:author V 3 flz K 8 svn:date V 27 2006-01-16T22:34:20.000000Z K 7 svn:log V 155 MFC: Enable NO_GETMAXLUN quirk. src/sys/dev/usb/umass.c: rev 1.127 -> 1.128 PR: usb/81073 Submitted by: James E. Flemer END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2006-01-17T03:02:44.000000Z K 7 svn:log V 129 Mention that the random time slept by "portsnap cron" is between 1 and 3600 seconds. Suggested by: Niki Denev MFC after: 3 days END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2006-01-17T03:40:42.000000Z K 7 svn:log V 1043 Add support for "tp" format. tp was the standard system archiver for Fourth Edition through Sixth Edition Unix; it was replaced by tar in Seventh Edition. (First Edition through Third Edition used "tap.") Unfortunately, tp was not so very standard; there were a few different variants. The code here attempts to support what I believe were the most common variants. tp support is not yet enabled by archive_read_support_format_all(), as I'm not yet entirely comfortable with the detection heuristics. People interested in experimenting can add archive_read_support_format_tp() just after any calls to archive_read_support_format_all() in bsdtar to see how well this works. TODO: tp format is roughly similar in structure to dump/restore archive formats used by many systems. It should be possible to generalize this code to handle many dump/restore variants. Format detection heuristics are going to be rough, though. Thanks to: Warren Toomey, whose very basic tp extraction programs and documentation made this possible. END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2006-01-17T04:49:04.000000Z K 7 svn:log V 447 If the attempt to open the archive fails (either the client open routine fails or the first read fails), invoke the client close routine immediately so the client can clean up. Also, don't store the client pointers in this case, so that the client close routine can't accidentally get called more than once. A minor style fix to archive_read_open_fd.c while I'm here. PR: 86453 Thanks to: Andrew Turner for reporting this and suggesting a fix. END K 10 svn:author V 5 ariff K 8 svn:date V 27 2006-01-17T05:13:37.000000Z K 7 svn:log V 114 MFC: Add another inverted EAPD quirk for Gateway 7326GZ. Tested by: Jeff Cross END K 10 svn:author V 7 yongari K 8 svn:date V 27 2006-01-17T05:41:20.000000Z K 7 svn:log V 23 remove trailing spaces END K 10 svn:author V 7 yongari K 8 svn:date V 27 2006-01-17T05:57:44.000000Z K 7 svn:log V 77 fix interrupt moderation timer frequencies for Yukon Obtained from: OpenBSD END K 10 svn:author V 7 yongari K 8 svn:date V 27 2006-01-17T06:02:22.000000Z K 7 svn:log V 90 fix Rx checksum computation on little endian systems. Reported & Tested by: brad@OpenBSD END K 10 svn:author V 5 dougb K 8 svn:date V 27 2006-01-17T06:37:48.000000Z K 7 svn:log V 114 MFC changes to have these scripts follow proper rc.d syntax PR: conf/84574 Submitted by: Alexander Botero-Lowry END K 10 svn:author V 5 dougb K 8 svn:date V 27 2006-01-17T06:45:05.000000Z K 7 svn:log V 172 MFC ntpd 1.12 and ntpdate 1.14 - use of REQUIRE rather than BEFORE, MFC ntpd 1.12 - REQUIRE devfs to help users with serial GPS interfaces MFC ntpdate 1.15 - REQUIRE named END K 10 svn:author V 5 dougb K 8 svn:date V 27 2006-01-17T06:46:54.000000Z K 7 svn:log V 58 MFC newsyslog 1.5, syslogd 1.11 - Swap REQUIRE and BEFORE END K 10 svn:author V 5 dougb K 8 svn:date V 27 2006-01-17T06:53:18.000000Z K 7 svn:log V 170 MFC mechanism to include files added by ports which contain names of directories to include in the base ldconfig script. Bump __FreeBSD_version to recognize this change END K 10 svn:author V 7 yongari K 8 svn:date V 27 2006-01-17T06:58:25.000000Z K 7 svn:log V 50 The number of ticks per usec for YUKON_EC is 125. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2006-01-17T07:02:04.000000Z K 7 svn:log V 106 MFC rc.conf 1.269 and rc.conf.5 1.275 - clear_tmp_X variable, to support the cleanup of etc/rc.d/cleartmp END K 10 svn:author V 5 dougb K 8 svn:date V 27 2006-01-17T07:04:31.000000Z K 7 svn:log V 59 MFC 1.279, use NETWORKING for early_late_divider in a jail END K 10 svn:author V 5 dougb K 8 svn:date V 27 2006-01-17T07:12:38.000000Z K 7 svn:log V 105 MFC 1.8 - bring into conformance with rc.d standards MFC 1.9 - Use hw.machine_arch instead of hw.machine END K 10 svn:author V 3 pjd K 8 svn:date V 27 2006-01-17T07:22:44.000000Z K 7 svn:log V 94 Remove bio leak when EIO error is emulated. Found by: Coverity Prevent(tm) MFC after: 3 days END K 10 svn:author V 3 pjd K 8 svn:date V 27 2006-01-17T07:23:36.000000Z K 7 svn:log V 36 Log situation when EIO is returned. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2006-01-17T07:26:48.000000Z K 7 svn:log V 71 Remove unused value. Found by: Coverity Prevent(tm) MFC after: 3 days END K 10 svn:author V 3 pjd K 8 svn:date V 27 2006-01-17T07:27:46.000000Z K 7 svn:log V 68 Remove dead code. Found by: Coverity Prevent(tm) MFC after: 3 days END K 10 svn:author V 3 pjd K 8 svn:date V 27 2006-01-17T07:30:34.000000Z K 7 svn:log V 70 Check return value. Found by: Coverity Prevent(tm) MFC after: 3 days END K 10 svn:author V 3 pjd K 8 svn:date V 27 2006-01-17T07:32:43.000000Z K 7 svn:log V 89 - Use better types. - Log problems at level 0 when killing providers. MFC after: 3 days END K 10 svn:author V 5 dougb K 8 svn:date V 27 2006-01-17T07:33:33.000000Z K 7 svn:log V 170 MFC mechanism to include files added by ports which contain names of directories to include in the base ldconfig script. Bump __FreeBSD_version to recognize this change END K 10 svn:author V 5 dougb K 8 svn:date V 27 2006-01-17T08:01:00.000000Z K 7 svn:log V 270 Fix a "free(): error: chunk is already free" under certain circumstances that include circular dependencies. PR: bin/91789 PR submitted by: Frank Behrens Patch submitted by: Divacky Roman END K 10 svn:author V 3 phk K 8 svn:date V 27 2006-01-17T08:33:53.000000Z K 7 svn:log V 314 Add two new variables: # Size of the /etc ramdisk in 512 bytes sectors NANO_RAM_ETCSIZE=10240 # Size of the /tmp+/var ramdisk in 512 bytes sectors NANO_RAM_TMPVARSIZE=10240 And a last_orders() shell function which can be redefined to copy finished images away, order peanuts or whatever else is appropriate END K 10 svn:author V 3 pjd K 8 svn:date V 27 2006-01-17T08:59:55.000000Z K 7 svn:log V 21 MFC: Sync with HEAD. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2006-01-17T09:11:30.000000Z K 7 svn:log V 21 MFC: Sync with HEAD. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2006-01-17T09:28:57.000000Z K 7 svn:log V 21 MFC: Sync with HEAD. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2006-01-17T10:17:37.000000Z K 7 svn:log V 166 MFC: sys/kern/kern_malloc.c 1.149 Detect memory leaks when memory type is being destroyed. This is very helpful for detecting kernel modules memory leaks on unload. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2006-01-17T10:19:37.000000Z K 7 svn:log V 380 MFC: sys/kern/kern_malloc.c 1.150 In realloc(9), determine size of the original block based on UMA_SLAB_MALLOC flag. In some circumstances (I observed it when I was doing a lot of reallocs) UMA_SLAB_MALLOC can be set even if us_keg != NULL. If this is the case we have wonderful, silent data corruption, because less data is copied to the newly allocated region than should be. END K 10 svn:author V 2 ru K 8 svn:date V 27 2006-01-17T10:41:06.000000Z K 7 svn:log V 36 MFC: polling(4) support for bge(4). END K 10 svn:author V 3 pjd K 8 svn:date V 27 2006-01-17T11:48:16.000000Z K 7 svn:log V 43 Move $FreeBSD$ from comment to __FBSDID(). END K 10 svn:author V 3 pjd K 8 svn:date V 27 2006-01-17T11:49:09.000000Z K 7 svn:log V 21 MFC: Sync with HEAD. END K 10 svn:author V 5 simon K 8 svn:date V 27 2006-01-17T13:00:31.000000Z K 7 svn:log V 52 - Add FreeBSD-SA-06:0[1234]. - Bump copyright year. END K 10 svn:author V 5 simon K 8 svn:date V 27 2006-01-17T13:01:46.000000Z K 7 svn:log V 51 - Add FreeBSD-SA-06:0[123]. - Bump copyright year. END K 10 svn:author V 6 mlaier K 8 svn:date V 27 2006-01-17T13:05:32.000000Z K 7 svn:log V 112 MFC: pf_norm.c, 1.15: Move m_adj after checking that m_dup succeeded. Found with: Coverity Prevent(tm) END K 10 svn:author V 6 jkoshy K 8 svn:date V 27 2006-01-17T15:26:28.000000Z K 7 svn:log V 32 MFC r1.9: xref da(4) and sa(4). END K 10 svn:author V 3 phk K 8 svn:date V 27 2006-01-17T15:35:57.000000Z K 7 svn:log V 101 Fix an 11 year old mistake: Let the hash functions take a void* instead of unsigned char* argument. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-01-17T16:40:20.000000Z K 7 svn:log V 54 Garbage collect turnstile_empty() since it is unused. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-01-17T16:44:34.000000Z K 7 svn:log V 24 Update a stale comment. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-01-17T16:47:42.000000Z K 7 svn:log V 141 Initialize thread0.td_contested in init_turnstiles() rather than mutex_init() as it is used by the turnstile code and is not mutex-specific. END K 10 svn:author V 6 jkoshy K 8 svn:date V 27 2006-01-17T16:53:50.000000Z K 7 svn:log V 39 Fix a memory leak. Found by: Coverity END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-01-17T16:55:17.000000Z K 7 svn:log V 646 Add a new file (kern/subr_lock.c) for holding code related to struct lock_obj objects: - Add new lock_init() and lock_destroy() functions to setup and teardown lock_object objects including KTR logging and registering with WITNESS. - Move all the handling of LO_INITIALIZED out of witness and the various lock init functions into lock_init() and lock_destroy(). - Remove the constants for static indices into the lock_classes[] array and change the code outside of subr_lock.c to use LOCK_CLASS to compare against a known lock class. - Move the 'show lock' ddb function and lock_classes[] array out of kern_mutex.c over to subr_lock.c. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-01-17T16:58:32.000000Z K 7 svn:log V 148 Bah. Fix 'show lock' to actually be compiled in. I had just fixed this in p4 but had an older subr_lock.c on the machine I committed to CVS from. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-01-17T17:02:45.000000Z K 7 svn:log V 104 Fix a memory leak I introduced with the hostb/vgapci stuff. Reported by: Coverity (via dfr's clue-bat) END K 10 svn:author V 6 alfred K 8 svn:date V 27 2006-01-17T17:29:03.000000Z K 7 svn:log V 940 I ran into an nfs client panic a couple of times in a row over the last few days. I tracked it down to the fact that nfs_reclaim() is setting vp->v_data to NULL _before_ calling vnode_destroy_object(). After silence from the mailing list I checked further and discovered that ufs_reclaim() is unique among FreeBSD filesystems for calling vnode_destroy_object() early, long before tossing v_data or much of anything else, for that matter. The rest, including NFS, appear to be identical, as if they were just clones of one original routine. The enclosed patch fixes all file systems in essentially the same way, by moving the call to vnode_destroy_object() to early in the routine (before the call to vfs_hash_remove(), if any). I have only tested NFS, but I've now run for over eighteen hours with the patch where I wouldn't get past four or five without it. Submitted by: Frank Mayhar Requested by: Mohan Srinivasan MFC After: 1 week END K 10 svn:author V 6 philip K 8 svn:date V 27 2006-01-17T19:29:31.000000Z K 7 svn:log V 145 Remove the module loading magic again; it's not needed after all. Pointy hat to: matteo Submitted by: matteo Reviewed by: pjd MFC after: 3 days END K 10 svn:author V 5 simon K 8 svn:date V 27 2006-01-17T19:37:07.000000Z K 7 svn:log V 38 Use the .Fx macro. MFC after: 3 days END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2006-01-17T20:25:01.000000Z K 7 svn:log V 407 Since p_cansee will end up dereferencing p_ucred, don't check for p_ucred equal to NULL several times later. p_ucred "should probably not" be NULL if the process isn't PRS_NEW anyway. This is strongly reinforced by the fact that we don't see frequent crashes here. Remove the checks after p_cansee and add a KASSERT right before it. Found by: Coverity Prevent (tm) Also trim one nearby trailing space. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2006-01-17T21:03:22.000000Z K 7 svn:log V 44 s/R_IA64_/R_IA_64_/g as per the ia64 psABI. END K 10 svn:author V 4 oleg K 8 svn:date V 27 2006-01-17T23:01:58.000000Z K 7 svn:log V 331 - Count packets discarded by RX/TX MAC (cause of FIFO overflow, etc) as input/output interface errors. - Keep values of rx/tx discards & tx collisions inside struct bge_softc. So we can keep statistic across ifconfig down/up runs (cause bringing bge up will reset chip). Approved by: glebius (mentor) MFC after: 1 week END K 10 svn:author V 4 mnag K 8 svn:date V 27 2006-01-17T23:38:46.000000Z K 7 svn:log V 80 MFC6: Merge quirks differences between RELENG_6 and RELENG_5. Approved by: njl END K 10 svn:author V 5 ariff K 8 svn:date V 27 2006-01-18T01:01:37.000000Z K 7 svn:log V 59 Remove Giant / busdma_lock_mutex from busdma_tag_create(). END K 10 svn:author V 5 ariff K 8 svn:date V 27 2006-01-18T01:05:34.000000Z K 7 svn:log V 219 MFC: - Locking fixes. Release lock while chn_intr(). - Mark MPSAFE since most of the locking procedures already implemented. - Turn on inverted external amplifier sense flag for selected boards. Tested by: bland END K 10 svn:author V 6 marcel K 8 svn:date V 27 2006-01-18T01:45:57.000000Z K 7 svn:log V 57 o Add missing relocations. o Minor white-space fixups. END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2006-01-18T03:40:57.000000Z K 7 svn:log V 230 Add a warning pointing out that incomplete ports trees are not supported and that users of REFUSE directives should update their entire ports tree before asking for help on the mailing lists. Requested by: kris MFC after: 3 days END K 10 svn:author V 3 wes K 8 svn:date V 27 2006-01-18T04:48:45.000000Z K 7 svn:log V 73 Revert previous change, "getopts" (with an 's') is a builtin in /bin/sh. END K 10 svn:author V 3 wes K 8 svn:date V 27 2006-01-18T04:53:48.000000Z K 7 svn:log V 40 Tell nextboot to clean up after itself. END K 10 svn:author V 3 imp K 8 svn:date V 27 2006-01-18T05:48:45.000000Z K 7 svn:log V 58 Bump date to Sept 20, the date of the last content change END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2006-01-18T06:26:42.000000Z K 7 svn:log V 76 Disable "tp" support until I figure out why it's breaking the build. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2006-01-18T06:42:42.000000Z K 7 svn:log V 60 Eliminate a stale instruction introduced in revision 1.136. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2006-01-18T07:47:46.000000Z K 7 svn:log V 329 Improves and cleanups over inetd(8): - Teach inetd(8) about kqueue, originally implemented by jmg@[1]. - Use new C99 style function prototypes instead of K&Rs. - Raise WARNS from 2 to 6 Glanced at by: ru MFC After: 2 weeks [1] http://people.freebsd.org/~jmg/inetd.kq.patch, http://people.freebsd.org/~jmg/inetd.kq.html END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2006-01-18T08:37:27.000000Z K 7 svn:log V 119 Fix ioctl to not get swallowed by ioctl code (i.e., make sure the darned code sticks within 8 bits) MFC after: 1 week END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2006-01-18T09:03:15.000000Z K 7 svn:log V 104 Correct a buffer overflow when scanning for 802.11 wireless networks. Security: FreeBSD-SA-06:05.80211 END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2006-01-18T09:03:36.000000Z K 7 svn:log V 131 Correct a buffer overflow when scanning for 802.11 wireless networks. Security: FreeBSD-SA-06:05.80211 Approved by: so (cperciva) END K 10 svn:author V 3 sos K 8 svn:date V 27 2006-01-18T09:14:55.000000Z K 7 svn:log V 100 Add support for using DMA on dump, greatly speeds up the dump process. Add dump support in ataraid. END K 10 svn:author V 5 simon K 8 svn:date V 27 2006-01-18T09:20:22.000000Z K 7 svn:log V 28 Add FreeBSD-SA-06:05.80211. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2006-01-18T09:42:21.000000Z K 7 svn:log V 157 Check ifp before dereferencing it in xl_detach(). xl_detach() can be called from xl_attach(), when ifp is not defined yet. Found with: Coverity Prevent(tm) END K 10 svn:author V 3 sos K 8 svn:date V 27 2006-01-18T10:01:43.000000Z K 7 svn:log V 42 Properly print the SATA protocal version. END K 10 svn:author V 3 sos K 8 svn:date V 27 2006-01-18T10:02:23.000000Z K 7 svn:log V 39 Properly report SATA connection speed. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2006-01-18T11:00:34.000000Z K 7 svn:log V 347 Resolve the mount point's path with realpath(2) before checking if file system is mounted. This prevevents duplicated mounts. The change I made against the original patch is to fall back to the given path on realpath(2) failure instead of exiting with an error. Submitted by: Andreas Kohn PR: bin/89782 MFC after: 3 days END K 10 svn:author V 3 pjd K 8 svn:date V 27 2006-01-18T11:03:20.000000Z K 7 svn:log V 69 Style cleanups. X-MFC-after: Already MFCed to RELENG_6 by accident. END K 10 svn:author V 5 maxim K 8 svn:date V 27 2006-01-18T11:27:46.000000Z K 7 svn:log V 83 o Merge SA-06:01.texindex, SA-06:02.ee, SA-06:03.cpio. Approved by: so (cperciva) END K 10 svn:author V 3 sos K 8 svn:date V 27 2006-01-18T13:10:17.000000Z K 7 svn:log V 20 Whitespace cleanup. END K 10 svn:author V 5 andre K 8 svn:date V 27 2006-01-18T13:24:24.000000Z K 7 svn:log V 326 MFC jumbo mbuf cluster allocation API providing 4k, 9k and 16k clusters: struct mbuf *m_getjcl(int how, short type, int flags, int size) void *m_cljget(struct mbuf *m, int how, int size) For size both take MCLBYTES, MJUM4BYTES, MJUM9BYTES, MJUM16BYTES. Tested by: glebius Sponsored by: TCP/IP Optimization Fundraise 2005 END K 10 svn:author V 3 sos K 8 svn:date V 27 2006-01-18T13:34:28.000000Z K 7 svn:log V 56 Correct two promise entries, these are only 2port SATA. END K 10 svn:author V 5 andre K 8 svn:date V 27 2006-01-18T14:24:39.000000Z K 7 svn:log V 346 Return mbuf pointer or NULL from ip_fastforward() as the mbuf pointer may have changed by m_pullup() during fastforward processing. While this is a bug it is actually never triggered in real world situations and it is not remotely exploitable. Found by: Coverity Prevent(tm) Coverity ID: CID780 Sponsored by: TCP/IP Optimization Fundraise 2005 END K 10 svn:author V 7 glebius K 8 svn:date V 27 2006-01-18T14:31:21.000000Z K 7 svn:log V 158 Be ready to a case when not a constant number of segments is returned by bus_dmamap_load_mbuf_sg() on jumbo buffer allocation. Reviewed by: scottl, gallatin END K 10 svn:author V 5 andre K 8 svn:date V 27 2006-01-18T15:05:05.000000Z K 7 svn:log V 266 Prevent dereferencing a NULL route pointer when trying to update the route MTU. This bug is very difficult to reach and not remotely exploitable. Found by: Coverity Prevent(tm) Coverity ID: CID162 Sponsored by: TCP/IP Optimization Fundraise 2005 MFC after: 3 days END K 10 svn:author V 2 ru K 8 svn:date V 27 2006-01-18T16:09:00.000000Z K 7 svn:log V 115 Fix two accesses to uninitialized variables that a revision 1.27 has introduced. Found with: Coverity Prevent(tm) END K 10 svn:author V 3 sam K 8 svn:date V 27 2006-01-18T17:45:38.000000Z K 7 svn:log V 109 don't widen the ssid field by default, this screws up other formatting; make it available with the -v option END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-01-18T18:02:50.000000Z K 7 svn:log V 157 Always include the lock_classes[] array in the kernel. The "is it a spinlock" test in mtx_destroy() needs it even in non-debug kernels. Reported by: danfe END K 10 svn:author V 5 andre K 8 svn:date V 27 2006-01-18T18:25:03.000000Z K 7 svn:log V 332 In syncache_expand() insert a proper syncache_free() to fix a case that currently can't be triggered. But better be safe than sorry later on. Additionally it properly silences Coverity Prevent for future tests. Found by: Coverity Prevent(tm) Coverity ID: CID802 Sponsored by: TCP/IP Optimization Fundraise 2005 MFC after: 3 days END K 10 svn:author V 8 netchild K 8 svn:date V 27 2006-01-18T18:48:42.000000Z K 7 svn:log V 239 Those files are present on -current (but empty). And they are needed if you don't want to get some errors (e.g. in the build of x11/XFree86-4-documents). So they don't belong here. Noticed by: Dmitry Pryanishnikov END K 10 svn:author V 5 andre K 8 svn:date V 27 2006-01-18T18:49:16.000000Z K 7 svn:log V 481 In in_delayed_cksum() we can't perform a m_pullup() as it may change the mbuf pointer and we don't have any way of passing it back to the callers. Instead just fail silently without updating the checksum but leaving the mbuf+chain intact. A search in our GNATS database did not turn up any match for the existing warning message when this case is encountered. Found by: Coverity Prevent(tm) Coverity ID: CID779 Sponsored by: TCP/IP Optimization Fundraise 2005 MFC after: 3 days END K 10 svn:author V 6 marcel K 8 svn:date V 27 2006-01-18T18:49:25.000000Z K 7 svn:log V 116 Remove ELF dynamic tag definitions that aren't used. Ideally, those that are used should come from . END K 10 svn:author V 5 andre K 8 svn:date V 27 2006-01-18T18:59:30.000000Z K 7 svn:log V 217 Do not derefence the ip header pointer in the IPv6 case. This fixes a bug in the previous commit. Found by: Coverity Prevent(tm) Coverity ID: CID253 Sponsored by: TCP/IP Optimization Fundraise 2005 MFC after: 3 days END K 10 svn:author V 8 netchild K 8 svn:date V 27 2006-01-18T19:14:33.000000Z K 7 svn:log V 248 - Bring some sysctl descriptions in sync with reality (additional values/overrides). [1] - Add some supported cards. [2] PR: 91916 [1] Submitted by: mv [1] Requested by: joel [2] (after reading my commit log) MFC after: 3 days END K 10 svn:author V 7 delphij K 8 svn:date V 27 2006-01-18T19:38:43.000000Z K 7 svn:log V 205 Revert previous commit for now, which seems to have (re)introduced some old bugs, as well as some unwanted side effects. I will do more investigation and fix these issues first. Pointed out by: dwmalone END K 10 svn:author V 6 julian K 8 svn:date V 27 2006-01-18T19:54:51.000000Z K 7 svn:log V 116 Note that the size of /boot has blown oout to 140 MBytes unless the right options are used. Tell how to avoid this. END K 10 svn:author V 3 sam K 8 svn:date V 27 2006-01-18T19:56:17.000000Z K 7 svn:log V 302 bump the scan generation number before iterating so we're guaranteed to have a value that's not been used before; this fixes the problem where the first traversal of the scan list did nothing because the entries were initialized with the current generation number (a separate issue) MFC after: 1 week END K 10 svn:author V 6 julian K 8 svn:date V 27 2006-01-18T20:12:14.000000Z K 7 svn:log V 166 Congratulations, we now have a place for a thread to store its name. Will be needed when we start using real threads in the kernel instead of whole pseudo-processes. END K 10 svn:author V 6 julian K 8 svn:date V 27 2006-01-18T20:18:40.000000Z K 7 svn:log V 101 Duh! put the thread name into the section that is zero'd on allocation (by default there is no name) END K 10 svn:author V 6 julian K 8 svn:date V 27 2006-01-18T20:27:43.000000Z K 7 svn:log V 107 Return the thread name in the kinfo_proc structure. Also correct the comment describing what the value is. END K 10 svn:author V 3 pav K 8 svn:date V 27 2006-01-18T20:36:58.000000Z K 7 svn:log V 45 - Fix typo Reported by: neologism/#freenode END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2006-01-18T20:49:21.000000Z K 7 svn:log V 108 MFC: if_bridge.c, r1.50; if_bridgevar.h, r1.10 Clear IFCAP_TXCSUM from member interfaces while bridging. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2006-01-18T21:42:19.000000Z K 7 svn:log V 88 Remove dead code. Found by: Coverity Prevent(tm) Coverity ID: CID104 MFC after: 3 days END K 10 svn:author V 3 pjd K 8 svn:date V 27 2006-01-18T21:43:27.000000Z K 7 svn:log V 88 Remove dead code. Found by: Coverity Prevent(tm) Coverity ID: CID105 MFC after: 3 days END K 10 svn:author V 3 pjd K 8 svn:date V 27 2006-01-18T21:44:57.000000Z K 7 svn:log V 113 Fix bio leak in case of malloc(9) failure. Found by: Coverity Prevent(tm) Coverity ID: CID794 MFC after: 3 days END K 10 svn:author V 3 sam K 8 svn:date V 27 2006-01-18T22:17:50.000000Z K 7 svn:log V 648 Rev ioctl to get scan results: o lock the list walk o malloc a results buffer instead of copying out one result at a time using an on-stack buffer o fix definition of ieee80211req_scan_result so size of variable-length information elements is large enough to hold all possible ie's (still only return wpa+wme, at some point may return all) o make rssi+noise data signed; they should've been so all along o add a bit more padding for future additions while we're here o define a new ioctl for new api and add compat code for old ioctl under COMPAT_FREEBSD6 (temporarily enabled local to the file) Reviewed by: Scott Long MFC after: 2 weeks END K 10 svn:author V 6 emaste K 8 svn:date V 27 2006-01-18T23:36:49.000000Z K 7 svn:log V 2861 Merge IP multicast address list locking from HEAD to RELENG_5, with a few changes to preserve ABI compatibility. subr_witness.c:1.196: Add in_multi_mtx, igmp_mtx, and if_addr_mtx lock order to hard-coded lock order in WITNESS, in that order. in_var.h:1.54 in6_var.h:1.23 mld6.c:1.22: Modify network protocol consumers of the ifnet multicast address lists to lock if_addr_mtx. igmp.c:1.49 in.c:1.86: in_var.h:1.55 ip_input.c:1.303 ip_output.c:1.243: Introduce in_multi_mtx, which will protect IPv4-layer multicast address lists, as well as accessor macros. For now, this is a recursive mutex due code sequences where IPv4 multicast calls into IGMP calls into ip_output(), which then tests for a multicast forwarding case. For support macros in in_var.h to check multicast address lists, assert that in_multi_mtx is held. Acquire in_multi_mtx around iteration over the IPv4 multicast address lists, such as in ip_input() and ip_output(). Acquire in_multi_mtx when manipulating the IPv4 layer multicast addresses, as well as over the manipulation of ifnet multicast address lists in order to keep the two layers in sync. Lock down accesses to IPv4 multicast addresses in IGMP, or assert the lock when performing IGMP join/leave events. Eliminate spl's associated with IPv4 multicast addresses, portions of IGMP that weren't previously expunged by IGMP locking. in.c:1.89 in.c:1.90: Acquire Giant conditionally in in_addmulti() and in_delmulti() based on whether the interface being accessed is IFF_NEEDSGIANT or not. This avoids lock order reversals when calling into the interface ioctl handler, which could potentially lead to deadlock. The long term solution is to eliminate non-MPSAFE network drivers. Discussed with: jhb Unlock Giant symmetrically with respect to lock acquire order as that's generally nicer. Spotted by: johan ip_output.c:1.244: Add helper function ip_findmoptions(), which accepts an inpcb, and attempts to atomically return either an existing set of IP multicast options for the PCB, or a newlly allocated set with default values. The inpcb is returned locked. This function may sleep. Call ip_moptions() to acquire a reference to a PCB's socket options, and perform the update of the options while holding the PCB lock. Release the lock before returning. Remove garbage collection of multicast options when values return to the default, as this complicates locking substantially. Most applications allocate a socket either to be multicast, or not, and don't tend to keep around sockets that have previously been used for multicast, then used for unicast. This closes a number of race conditions involving multiple threads or processes modifying the IP multicast state of a socket simultaenously. Approved by: rwatson (mentor) END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2006-01-19T00:38:00.000000Z K 7 svn:log V 79 MFC r1.148: Include the bridge interface itself in the special arp handling. END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2006-01-19T01:07:10.000000Z K 7 svn:log V 79 MFC r1.148: Include the bridge interface itself in the special arp handling. END K 10 svn:author V 5 ariff K 8 svn:date V 27 2006-01-19T01:17:00.000000Z K 7 svn:log V 286 Fix broken capabilites. There are possible calculation errors within ess_calcspeed8() and ess_calcspeed9() that need to be fixed as well (TODO). Reported by: [1] Claude Buisson [1] http://lists.freebsd.org/pipermail/freebsd-multimedia/2006-January/003566.html END K 10 svn:author V 6 jasone K 8 svn:date V 27 2006-01-19T02:11:05.000000Z K 7 svn:log V 228 Return NULL if there is an OOM error during initialization, rather than allowing the error to be fatal. Move a label in order to make sure to properly handle errors in malloc(0). Reported by: Alastair D'Silva, Saneto Takanori END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2006-01-19T04:22:25.000000Z K 7 svn:log V 156 MFC: sync code to HEAD (excluding etherip support) - whitespace - add net.link.bridge.pfil_onlyip - use time_uptime - clear IFCAP_TXCSUM while bridging END K 10 svn:author V 6 jasone K 8 svn:date V 27 2006-01-19T07:20:20.000000Z K 7 svn:log V 88 Add the RB_PROTOTYPE_STATIC and RB_GENERATE_STATIC macros. Approved by: markm (mentor) END K 10 svn:author V 6 jasone K 8 svn:date V 27 2006-01-19T07:23:13.000000Z K 7 svn:log V 69 Make all internal variables and functions static. Reported by: ache END K 10 svn:author V 3 des K 8 svn:date V 27 2006-01-19T08:31:47.000000Z K 7 svn:log V 198 In order to maintain interoperability with certain broken FTP servers, ignore a MODE failure if and only if the mode we attempted to set was S (which is supposed to be the default). PR: bin/91973 END K 10 svn:author V 8 dhartmei K 8 svn:date V 27 2006-01-19T11:46:45.000000Z K 7 svn:log V 285 fix a bug in the fragment cache (used for 'scrub fragment crop/drop-ovl', but not 'fragment reassemble'), which can cause some fragments to get inserted into the cache twice, thereby violating an invariant, and panic- ing the system subsequently. Reviewed by: mlaier MFC after: 1 day END K 10 svn:author V 7 glebius K 8 svn:date V 27 2006-01-19T13:36:26.000000Z K 7 svn:log V 437 Sync driver with HEAD merging all revisions from 1.96 to 1.115. The most markable changes are: o Suspend/resume methods. o Link state detection fixes. o Utilization of jumbo allocator and extended RX descriptors. o busdma(9) cleanup and support for big-endian architectures. o Improved checksum offloading support. o Reduced number of PCI register writes in bge_start(). o Counting RX/TX errors as input/output interface errors. END K 10 svn:author V 5 anray K 8 svn:date V 27 2006-01-19T15:31:37.000000Z K 7 svn:log V 45 Add myself. Feel free to donate me a beer :) END K 10 svn:author V 2 vd K 8 svn:date V 27 2006-01-19T18:35:44.000000Z K 7 svn:log V 56 Add myself to the calendar Approved by: garga (mentor) END K 10 svn:author V 6 jasone K 8 svn:date V 27 2006-01-19T18:37:30.000000Z K 7 svn:log V 174 Remove loops in arena_coalesce(). They are no longer necessary, now that internal allocation does not rely on recursive arena use (base_arena was removed in revision 1.95). END K 10 svn:author V 6 jasone K 8 svn:date V 27 2006-01-19T19:08:11.000000Z K 7 svn:log V 70 Add assertions that detect some forms of region separator corruption. END K 10 svn:author V 6 jasone K 8 svn:date V 27 2006-01-19T19:20:42.000000Z K 7 svn:log V 246 Revert addtion of assertions in revision 1.99. These assertions cause problems in cases where regions are faked up for the purposes of red-black tree searches, since those faked region headers reside on the stack, rather than in a malloc chunk. END K 10 svn:author V 4 ceri K 8 svn:date V 27 2006-01-19T20:01:43.000000Z K 7 svn:log V 94 Security levels are not discussed further in init.8; we moved that discussion to this manual. END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2006-01-19T22:14:20.000000Z K 7 svn:log V 53 MFC: rev. 1.26 + 1.27 Mention the fire screensaver. END K 10 svn:author V 4 rees K 8 svn:date V 27 2006-01-19T22:48:31.000000Z K 7 svn:log V 114 Use nfs4_disconnect for connections opened with nfs4_connect. Submitted by: cel@citi.umich.edu MFC after: 1 week END K 10 svn:author V 6 cognet K 8 svn:date V 27 2006-01-20T00:46:44.000000Z K 7 svn:log V 109 Build a minimal pagetables, with only section mappings, mapped write through, to speed up the decompression. END K 10 svn:author V 6 jasone K 8 svn:date V 27 2006-01-20T03:11:11.000000Z K 7 svn:log V 187 Use uintptr_t rather than size_t when casting pointers to integers. Also, fix the few remaining casting style(9) errors that remained after the functional change. Reported by: jmallett END K 10 svn:author V 4 csjp K 8 svn:date V 27 2006-01-20T03:21:25.000000Z K 7 svn:log V 111 Destroy the dynamic rule zone in the event that we fail to insert the initial default rule. MFC after: 1 week END