'72881 119 135 115 153 149 145 187 329 230 114 152 133 197 129 123 131 219 137 388 205 315 126 143 637 154 174 182 135 170 417 472 488 240 151 211 276 262 943 250 328 196 183 1092 140 181 167 126 189 245 135 343 218 289 168 105 300 211 1149 722 211 806 302 231 165 145 1139 550 322 278 516 799 329 193 152 152 172 313 125 133 654 556 108 107 179 177 292 151 323 428 231 160 141 188 133 160 166 238 269 157 204 335 136 1354 164 135 109 298 138 158 241 229 115 265 270 1089 480 139 193 438 290 K 10 svn:author V 2 ru K 8 svn:date V 27 2001-02-22T12:07:28.000000Z K 7 svn:log V 44 mdoc(7) police: fixed misc formatting bugs. END K 10 svn:author V 5 wosch K 8 svn:date V 27 2001-02-22T13:23:39.000000Z K 7 svn:log V 21 merge up to rev 1.39 END K 10 svn:author V 5 wosch K 8 svn:date V 27 2001-02-22T13:28:52.000000Z K 7 svn:log V 59 MFC: revision 1.13: Off by one error in reading mmap data. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2001-02-22T13:29:22.000000Z K 7 svn:log V 57 Catch up to new MI astpending and need_resched handling. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2001-02-22T13:46:09.000000Z K 7 svn:log V 53 Lock need_resched with sched_lock. Reported by: des END K 10 svn:author V 3 jhb K 8 svn:date V 27 2001-02-22T13:47:01.000000Z K 7 svn:log V 95 Add a mtx_assert() in maybe_resched() just to be sure it's always called with sched_lock held. END K 10 svn:author V 6 alfred K 8 svn:date V 27 2001-02-22T13:55:12.000000Z K 7 svn:log V 233 fix usage statement (add missing [-n devs] option) Submitted by: Maxim Konovalov Silence a warning by renaming the 'pgtok' #define to 'vmstat_pgtok' so as not to conflict with the 'pgtok' #define in sys/param.h END K 10 svn:author V 3 des K 8 svn:date V 27 2001-02-22T14:44:39.000000Z K 7 svn:log V 137 Fix formatting bugs introduced in sysctl_vm_zone() by the previous commit. Also, if SYSCTL_OUT() returns a non-zero value, stop at once. END K 10 svn:author V 2 ru K 8 svn:date V 27 2001-02-22T15:03:09.000000Z K 7 svn:log V 23 Prepare for mdoc(7)NG. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2001-02-22T15:06:19.000000Z K 7 svn:log V 60 Cleanup and clarify the comments above switch_trampoline(). END K 10 svn:author V 2 ru K 8 svn:date V 27 2001-02-22T15:28:57.000000Z K 7 svn:log V 42 Only descend into ${MACHINE_ARCH} subdir. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2001-02-22T15:35:04.000000Z K 7 svn:log V 104 Add TRAPF_PC() and TRAPF_USERMODE() macros and redefine CLKF_PC() and CLKF_USERMODE() in terms of them. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2001-02-22T15:37:34.000000Z K 7 svn:log V 37 Axe the astpending per-cpu variable. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2001-02-22T15:37:57.000000Z K 7 svn:log V 31 Add a mtx_intr_enable() macro. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2001-02-22T15:39:58.000000Z K 7 svn:log V 39 Add a inline function to read the psr. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2001-02-22T15:43:42.000000Z K 7 svn:log V 126 - Axe the now unused ASS_* assertions for interrupt status. - Use ia64_get_psr() instead of save_intr() in mtx_legal2block(). END K 10 svn:author V 3 jhb K 8 svn:date V 27 2001-02-22T15:45:49.000000Z K 7 svn:log V 45 GC unused and now obsolete assertion macros. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2001-02-22T16:05:09.000000Z K 7 svn:log V 295 - Don't dink with sched_lock in cpu_switch() since mi_switch() does this for us. - Change the switch_trampoline() to call fork_exit() passing in the required arguments instead of calling the fork trampoline callout function directly. Warning: this hasn't been tested. Looked over by: dfr END K 10 svn:author V 3 jhb K 8 svn:date V 27 2001-02-22T16:05:48.000000Z K 7 svn:log V 112 Use the MI fork_return() fork trampoline callout function for child processes instead of the MD child_return(). END K 10 svn:author V 3 jhb K 8 svn:date V 27 2001-02-22T16:23:12.000000Z K 7 svn:log V 222 - Use TRAPF_PC() on the alpha to acess the PC in the trap frame. - Don't hold sched_lock around addupc_task() as this apparently breaks profiling badly due to sched_lock being held across copyin(). Reported by: bde (2) END K 10 svn:author V 3 des K 8 svn:date V 27 2001-02-22T16:23:52.000000Z K 7 svn:log V 34 MFC: 'anonymous' instead of 'ftp' END K 10 svn:author V 3 des K 8 svn:date V 27 2001-02-22T16:24:24.000000Z K 7 svn:log V 51 MFC: 'anonymous' instead of 'ftp'; sort references END K 10 svn:author V 3 jhb K 8 svn:date V 27 2001-02-22T16:27:03.000000Z K 7 svn:log V 544 Synch up with the other architectures: - Remove unneeded spl()'s around mi_switch() in userret(). - Don't hold sched_lock across addupc_task(). - Remove the MD function child_return() now that the MI function fork_return() is used instead. - Use TRAPF_USERMODE() instead of dinking with the trapframe directly to check for ast's in kernel mode. - Check astpending(curproc) and resched_wanted() in ast() and return if neither is true. - Use astoff() rather than setting the non-existent per-cpu variable astpending to 0 to clear an ast. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2001-02-22T16:49:36.000000Z K 7 svn:log V 62 Catch comments up to child_return() -> fork_return() as well. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2001-02-22T16:53:23.000000Z K 7 svn:log V 82 Don't set the sched_lock lesting level for new processes as it is no longer used. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2001-02-22T16:56:53.000000Z K 7 svn:log V 90 Rename switch_trampoline() to fork_trampoline() on the alpha and ia64. Suggested by: dfr END K 10 svn:author V 3 jhb K 8 svn:date V 27 2001-02-22T17:09:50.000000Z K 7 svn:log V 43 Axe pcb_schednest as it is no longer used. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2001-02-22T17:14:24.000000Z K 7 svn:log V 78 The ia64 hasn't needed machine/ipl.h included in sys/systm.h for a while now. END K 10 svn:author V 6 julian K 8 svn:date V 27 2001-02-22T17:14:36.000000Z K 7 svn:log V 321 Add a 'splitter' node to separate a bidirectional packet flow into two unidirectional flows. Part of a suite of nodes developed for packet flow control. More to follow as I have time to port them to 5.x or as others do so. The ipfw node will be the hardest.. Submitted by: "Vitaly V. Belekhov" END K 10 svn:author V 8 gshapiro K 8 svn:date V 27 2001-02-22T17:47:24.000000Z K 7 svn:log V 374 Return to the code as distributed by sendmail.org. This eliminates a warning on Alphas. It is still not the perfect solution for machines which sizeof(u_long) != sizeof(void *) but it is as close as we are going to get for now and consistent with the rest of the code. 8.12 has solved this problem by providing a portable snprintf() which understands %p. PR: bin/14142 END K 10 svn:author V 3 jhb K 8 svn:date V 27 2001-02-22T18:05:15.000000Z K 7 svn:log V 395 - Change ast() to take a pointer to a trapframe like other architectures. - Don't use an atomic operation to update cnt.v_soft in ast(). This is the only place the variable is written to, and sched_lock is always held when it is written, so it is already protected and the mutex release of sched_lock asserts a memory barrier that ensures the value will be updated in a timely fashion. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2001-02-22T18:07:31.000000Z K 7 svn:log V 147 Since the PC is a pointer to a code address, change the second parameter of addupc_task() and addupc_intr() to be a uintptr_t instead of a u_long. END K 10 svn:author V 6 scottl K 8 svn:date V 27 2001-02-22T18:33:20.000000Z K 7 svn:log V 56 MFC the aac man page Noticed by: anders@codefactory.se END K 10 svn:author V 3 ume K 8 svn:date V 27 2001-02-22T19:00:51.000000Z K 7 svn:log V 118 some reasoning why we separated ping(8) and ping6(8) comments/additions/corrections are welcome. Obtained from: KAME END K 10 svn:author V 5 wpaul K 8 svn:date V 27 2001-02-22T19:26:55.000000Z K 7 svn:log V 181 Apply patch to allow TX underrun handling without issuing a complete chip reset. Just temporarily turn off the transmitter instead. Submitted by: Stephen McKay END K 10 svn:author V 8 gshapiro K 8 svn:date V 27 2001-02-22T19:34:13.000000Z K 7 svn:log V 164 Add a note indicating that SENDMAIL_MC should include the path. This is necessary if you expect to be able to use this setting in both /etc/mail and etc/sendmail. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2001-02-22T19:35:20.000000Z K 7 svn:log V 850 The p_md.md_regs member of proc is used in signal handling to reference the the original trapframe of the syscall, trap, or interrupt that entered the kernel. Before SMPng, ast's were handled via a psuedo trap at the end of doerti. With the SMPng commit, ast's were broken out into a separate ast() function that was called from doreti to match the behavior of other architectures. Unfortunately, when this was done, the p_md.md_regs member of curproc was not updateda in ast(), thus when signals are handled by userret() after an interrupt that returns to userland, we end up using a stale trapframe that will result in the registers from the old trapframe overwriting the real trapframe and smashing all the registers right before we return to usermode. The saved %cs:%eip from where we were in usermode are saved in the trapframe for example. END K 10 svn:author V 8 gshapiro K 8 svn:date V 27 2001-02-22T19:44:16.000000Z K 7 svn:log V 152 Need one additional make.conf knob, SENDMAIL_ADDITIONAL_MC to satisfy bug report. It allows building multiple .cf files at build time. PR: bin/19897 END K 10 svn:author V 5 tegge K 8 svn:date V 27 2001-02-22T19:50:37.000000Z K 7 svn:log V 233 Protect update of the per processor switchtime variable against interrupts. Protect usage of the per processor switchtime variable against interrupts in calcru(). This seem to eliminate the "microuptime() went backwards" warnings. END K 10 svn:author V 5 tegge K 8 svn:date V 27 2001-02-22T20:12:52.000000Z K 7 svn:log V 101 Backout previous commit. sched_lock is held, thus interrupts are prevented here. Submitted by: jhb END K 10 svn:author V 5 tegge K 8 svn:date V 27 2001-02-22T20:16:51.000000Z K 7 svn:log V 89 Streamline updating of switchtime (don't copy code from kern_sync.c). Submitted by: jhb END K 10 svn:author V 6 jesper K 8 svn:date V 27 2001-02-22T21:23:45.000000Z K 7 svn:log V 996 Redo the security update done in rev 1.54 of src/sys/netinet/tcp_subr.c and 1.84 of src/sys/netinet/udp_usrreq.c The changes broken down: - remove 0 as a wildcard for addresses and port numbers in src/sys/netinet/in_pcb.c:in_pcbnotify() - add src/sys/netinet/in_pcb.c:in_pcbnotifyall() used to notify all sessions with the specific remote address. - change - src/sys/netinet/udp_usrreq.c:udp_ctlinput() - src/sys/netinet/tcp_subr.c:tcp_ctlinput() to use in_pcbnotifyall() to notify multiple sessions, instead of using in_pcbnotify() with 0 as src address and as port numbers. - remove check for src port == 0 in - src/sys/netinet/tcp_subr.c:tcp_ctlinput() - src/sys/netinet/udp_usrreq.c:udp_ctlinput() as they are no longer needed. - move handling of redirects and host dead from in_pcbnotify() to udp_ctlinput() and tcp_ctlinput(), so they will call in_pcbnotifyall() to notify all sessions with the specific remote address. Approved by: jlemon Inspired by: NetBSD END K 10 svn:author V 2 ps K 8 svn:date V 27 2001-02-22T21:53:39.000000Z K 7 svn:log V 49 Elminate common declaration. Reviewed by: peter END K 10 svn:author V 3 jhb K 8 svn:date V 27 2001-02-22T22:58:24.000000Z K 7 svn:log V 89 MACHINE_ARCH is the target arch to crossbuild to, not TARGET_ARCH. Requested by: marcel END K 10 svn:author V 5 brian K 8 svn:date V 27 2001-02-22T23:28:12.000000Z K 7 svn:log V 73 Change the 120 second timeout to 180 seconds to reflect the real default END K 10 svn:author V 5 brian K 8 svn:date V 27 2001-02-22T23:28:42.000000Z K 7 svn:log V 32 MFC: 120 seconds -> 180 seconds END K 10 svn:author V 5 peter K 8 svn:date V 27 2001-02-23T00:22:04.000000Z K 7 svn:log V 95 Move the 'dont forget "make depend"' to be the last thing that people see, after the warnings. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2001-02-23T00:41:05.000000Z K 7 svn:log V 152 Remove undefined and unreferenced doreti_syscall_ret globl. While I'm here, adjust comment block above doreti. We don't have the old MP lock anymore. END K 10 svn:author V 5 green K 8 svn:date V 27 2001-02-23T01:12:44.000000Z K 7 svn:log V 41 Typo: "interrupt" -> "harvest_interrupt" END K 10 svn:author V 5 peter K 8 svn:date V 27 2001-02-23T01:25:02.000000Z K 7 svn:log V 248 Activate USER_LDT by default. The new thread libraries are going to depend on this. The linux ABI emulator tries to use it for some linux binaries too. VM86 had a bigger cost than this and it was made default a while ago. Reviewed by: jhb, imp END K 10 svn:author V 5 peter K 8 svn:date V 27 2001-02-23T02:32:31.000000Z K 7 svn:log V 123 Sigh, nobody ever got back to me about this. So, here it is.. Implement auto scsi scan at insert time for the aic driver. END K 10 svn:author V 5 peter K 8 svn:date V 27 2001-02-23T02:45:15.000000Z K 7 svn:log V 194 Remove the camcontrol rescan $device insert events for the aic driver, which does it itself now. Although CAM should do the rescan itself if the initial boot-time rescan has already been done. END K 10 svn:author V 6 alfred K 8 svn:date V 27 2001-02-23T03:43:05.000000Z K 7 svn:log V 73 Display the Joliet Extension 'level' in the log message. PR: kern/24998 END K 10 svn:author V 6 alfred K 8 svn:date V 27 2001-02-23T03:44:10.000000Z K 7 svn:log V 10 MFC: 1.83 END K 10 svn:author V 3 imp K 8 svn:date V 27 2001-02-23T04:49:31.000000Z K 7 svn:log V 207 If the symbolic links @ or machine exist, do not depend on them. This fixes the problem where if src/sys or src/sys/$MACHINE_ARCH/include changed at all, all the modules would be rebuilt. Reviewed by: bde END K 10 svn:author V 5 peter K 8 svn:date V 27 2001-02-23T04:52:30.000000Z K 7 svn:log V 116 Flip the default for CVS_RSH to "ssh". I am tired of getting asked this all the time, and IMHO it is long overdue. END K 10 svn:author V 5 green K 8 svn:date V 27 2001-02-23T04:59:12.000000Z K 7 svn:log V 1053 Fix the problems I (and others, undoubtedly) have been having for a while with threaded software in -CURRENT acting very "weird". It has seemed, for example, in Mozilla that threads attempting to do host lookups have been locking up. That's exactly the case. There was a race condition in the implementation of the initialization of the mutex used to protect FILE operations, first of all: multiple instances of FLOCKFILE() in libc could occur on the same FILE at the same time and cause strange behavior by overwriting eachothers' creation of the mutex and the rest of the file lock. Secondly, it's not appropriate to test the "validity" of the file descriptor referenced by the FILE; if the code is calling FLOCKFILE() or FUNLOCKFILE(), it wants the FILE to be locked or unlocked, not to be locked or unlocked on the condition that _file is >= 0. This also could quite easily cause leaks by failing to perform the lock or unlock operation when it actually is needed. Mozilla now works again on -CURRENT when linked to libc_r.so.5 and libc.so.5. END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2001-02-23T05:35:50.000000Z K 7 svn:log V 626 Fix a longstanding bug- we had the sense of what bit 14 for the ICB firmware options meant- *I* had taken it to mean that if you set it, Node Name would be ignored and derived from Port Name. Actually, it meant the opposite. As a consequence- change ICBOPT_USE_PORTNAME to the define ICBOPT_BOTH_WWNS- makes more sense. Fix wrong input bitmap for MBOX_DUMP_RAM command. Call ISP_DUMPREGS if we get a f/w crash. Add ISPCTL_RUN_MBOXCMD control command (so outer layers can run a mailbox command directly) and add a ISPASYNC_UNHANDLED_RESPONSE hook so outer layers can understand response queue entries we might not know about. END K 10 svn:author V 5 green K 8 svn:date V 27 2001-02-23T06:26:22.000000Z K 7 svn:log V 116 Use the right names to call pthread_mutex_{,un}lock so that things work in both the libc only and libc/libc_r case. END K 10 svn:author V 3 imp K 8 svn:date V 27 2001-02-23T08:08:21.000000Z K 7 svn:log V 713 Additional enhancments to allow IBM Etherjet cards to be probed, attached and ifconfigable. The card doesn't interrupt yet. Also, move towards bus space by introducing new macros/inline functions which make such a move much easier than before. These inline functions are setup now to work around an IBM EtherJet pccard cardbus bridge incompatibility. The card works in 8 bit mode, but not in 16-bit mode when it is connected to a cardbus bridge for reasons unknown. The Linux driver also has a similar workaround in it. Future work will include making the above workaround runtime conditional rather than compile time conditional, as well as fixing the interrupts in pccards and converting it to bus space. END K 10 svn:author V 8 mckusick K 8 svn:date V 27 2001-02-23T09:01:31.000000Z K 7 svn:log V 204 Free lock before calling panic so that subsequent attempt to write out buffers does not re-panic with `locking against myself'. This change should not affect normal operations of soft updates in any way. END K 10 svn:author V 2 ru K 8 svn:date V 27 2001-02-23T09:35:33.000000Z K 7 svn:log V 139 Make ``groff -man'' work again for both man(7) and mdoc(7) manpages. The new Groff release will support this feature. Requested by: peter END K 10 svn:author V 2 ru K 8 svn:date V 27 2001-02-23T09:39:21.000000Z K 7 svn:log V 74 MFC: make ``groff -man'' work again for both man(7) and mdoc(7) manpages. END K 10 svn:author V 2 ru K 8 svn:date V 27 2001-02-23T09:40:42.000000Z K 7 svn:log V 54 MFC: (rev 1.16) Fix broken -L for short locale names. END K 10 svn:author V 3 knu K 8 svn:date V 27 2001-02-23T16:20:55.000000Z K 7 svn:log V 1045 Implement the following options and primaries: -E Interpret regular expressions followed by -regex and -iregex op- tions as extended (modern) regular expressions rather than basic regular expressions (BRE's). The re_format(7) manual page fully describes both formats. -iname pattern Like -name, but the match is case insensitive. -ipath pattern Like -path, but the match is case insensitive. -regex pattern True if the whole path of the file matches pattern using regular expression. To match a file named ``./foo/xyzzy'', you can use the regular expression ``.*/[xyz]*'' or ``.*/foo/.*'', but not ``xyzzy'' or ``/foo/''. -iregex pattern Like -regex, but the match is case insensitive. These are meant to be compatible with other find(1) implementations such as GNU's or NetBSD's except regexp library differences. Reviewed by: sobomax, dcs, and some other people on -current END K 10 svn:author V 6 julian K 8 svn:date V 27 2001-02-23T16:34:22.000000Z K 7 svn:log V 454 Shuffle sysctls a bit (thankyou whoever made them dynamic for modules) and add a sysctl to pppoe to activate non standard ethertypes so that idiot ISPs (apparently in France) who use equipment from idiot suppliers (rumour says 3com) who use nonstandard ethertypes can still connect. "yep, sure we do pppoe, we use a different identifier to that dictated in the standard, but sure it's pppoe!" sysctl -w net.graph.stupid_isp=1 enables the changeover. END K 10 svn:author V 5 green K 8 svn:date V 27 2001-02-23T17:55:01.000000Z K 7 svn:log V 227 Correctly handle the race itself, too (don't leave it locked). This is about to be replaced anyway by initialization explicitly instead of lazily, and reducing the complexity of it. As it is now, this will work fine, however. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2001-02-23T18:31:26.000000Z K 7 svn:log V 185 Fix release. Just as in other kerberos5 libraries, we need to include ${.OBJDIR} in the includes list and generate a couple of headers from their .et sources for beforedepend and all. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2001-02-23T18:46:21.000000Z K 7 svn:log V 419 Introduce per-swap area accounting in the VM system, and export this information via the vm.nswapdev sysctl (number of swap areas) and vm.swapdevX nodes (where X is the device), which contain the MIBs dev, blocks, used, and flags. These changes are required to allow top and other userland swap-monitoring utilities to run without setgid kmem. Submitted by: Thomas Moestl Reviewed by: freebsd-audit END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2001-02-23T18:49:16.000000Z K 7 svn:log V 702 Adapt libkvm_getswapinfo() to make use of recently committed vm and swap sysctls exporting swap information. When running on a live kernel, the sysctl's will now be used instead of kvm_read, allowing consumers of this interface to run without privilege (setgid kmem). Retain the ability to run on coredumps, or on a kernel using kmem if explicitly pointed at one. A side effect of this change is that kvm_getswapinfo() is faster now in the general case. If the SWIF_DUMP_TREE flag is given (pstat -ss does this), the radix tree walker, which still uses kvm_read in any case, is invoked, and therefore does require privilege. Submitted by: Thomas Moestl Reviewed by: freebsd-audit END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2001-02-23T18:52:37.000000Z K 7 svn:log V 232 Adapt the top utility to not use kmem_read to retrieve variables now available via sysctl(). As a result, top should now be able to run without setgid kmem. Submitted by: Thomas Moestl Reviewed by: freebsd-audit END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2001-02-23T18:55:43.000000Z K 7 svn:log V 97 Remove directive to install top as group kmem. Remove directive to install top with setgid bit. END K 10 svn:author V 6 jlemon K 8 svn:date V 27 2001-02-23T19:20:21.000000Z K 7 svn:log V 57 Use correct list pointer when detaching knote from list. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2001-02-23T19:44:25.000000Z K 7 svn:log V 60 Test out the kernel console just before launching the AP's. END K 10 svn:author V 5 wpaul K 8 svn:date V 27 2001-02-23T20:04:20.000000Z K 7 svn:log V 78 Fix typo that was causing a compiler warning. Submitted by: Alfred Perlstein END K 10 svn:author V 6 jlemon K 8 svn:date V 27 2001-02-23T20:06:01.000000Z K 7 svn:log V 217 Add a NOTE_REVOKE flag for vnodes, which is triggered from within vclean(). Use this to tell a filter attached to a vnode that the underlying vnode is no longer valid, by returning EV_EOF. PR: kern/25309, kern/25206 END K 10 svn:author V 5 wpaul K 8 svn:date V 27 2001-02-23T20:06:25.000000Z K 7 svn:log V 31 MFC: fix typo/compiler warning END K 10 svn:author V 6 jlemon K 8 svn:date V 27 2001-02-23T20:32:42.000000Z K 7 svn:log V 38 Fix typo in comment (knode -> knote). END K 10 svn:author V 6 jlemon K 8 svn:date V 27 2001-02-23T20:51:46.000000Z K 7 svn:log V 558 Allow ICMP unreachables which map into PRC_UNREACH_ADMIN_PROHIB to reset TCP connections which are in the SYN_SENT state, if the sequence number in the echoed ICMP reply is correct. This behavior can be controlled by the sysctl net.inet.tcp.icmp_may_rst. Currently, only subtypes 2,3,10,11,12 are treated as such (port, protocol and administrative unreachables). Assocaiate an error code with these resets which is reported to the user application: ENETRESET. Disallow resetting TCP sessions which are not in a SYN_SENT state. Reviewed by: jesper, -net END K 10 svn:author V 6 jlemon K 8 svn:date V 27 2001-02-23T21:07:06.000000Z K 7 svn:log V 460 When converting soft error into a hard error, drop the connection. The error will be passed up to the user, who will close the connection, so it does not appear to make a sense to leave the connection open. This also fixes a bug with kqueue, where the filter does not set EOF on the connection, because the connection is still open. Also remove calls to so{rw}wakeup, as we aren't doing anything with them at the moment anyway. Reviewed by: alfred, jesper END K 10 svn:author V 5 wilko K 8 svn:date V 27 2001-02-23T21:46:57.000000Z K 7 svn:log V 14 ispell-ify .. END K 10 svn:author V 5 wilko K 8 svn:date V 27 2001-02-23T21:47:30.000000Z K 7 svn:log V 13 ispell-ify.. END K 10 svn:author V 5 wilko K 8 svn:date V 27 2001-02-23T22:08:35.000000Z K 7 svn:log V 85 Correct CS20 section. Reviewed by: Peter Petrakis END K 10 svn:author V 5 peter K 8 svn:date V 27 2001-02-23T23:05:46.000000Z K 7 svn:log V 83 Stricter style(9) conformance - remove unnecessary blank lines in previous commit. END K 10 svn:author V 3 imp K 8 svn:date V 27 2001-02-24T00:02:55.000000Z K 7 svn:log V 199 Force TERM to be dumb when building termcap. ex in batch mode seems to care about the terminal setting. In emacs, make buildworld was broken because it sets TERM to emacs, which caused ex to fail. END K 10 svn:author V 2 cg K 8 svn:date V 27 2001-02-24T01:29:46.000000Z K 7 svn:log V 60 remove old unified sb8/sb16 driver. it isn't used anymore. END K 10 svn:author V 6 jlemon K 8 svn:date V 27 2001-02-24T01:33:12.000000Z K 7 svn:log V 227 When returning EV_EOF for the socket read/write filters, also return the current socket error in fflags. This may be useful for determining why a connect() request fails. Inspired by: "Jonathan Graehl" END K 10 svn:author V 6 jlemon K 8 svn:date V 27 2001-02-24T01:41:31.000000Z K 7 svn:log V 332 Introduce a NOTE_LOWAT flag for use with the read/write filters, which allow the watermark to be passed in via the data field during the EV_ADD operation. Hook this up to the socket read/write filters; if specified, it overrides the so_{rcv|snd}.sb_lowat values in the filter. Inspired by: "Ronald F. Guilmette" END K 10 svn:author V 6 jlemon K 8 svn:date V 27 2001-02-24T01:44:03.000000Z K 7 svn:log V 135 Add an EV_SET() convenience macro for initializing struct kevent prior to the call to kevent(). Update the copyright notices as well. END K 10 svn:author V 5 assar K 8 svn:date V 27 2001-02-24T02:10:32.000000Z K 7 svn:log V 66 try hard to make sure this does not get build as a shared library END K 10 svn:author V 8 tanimura K 8 svn:date V 27 2001-02-24T02:59:32.000000Z K 7 svn:log V 44 I thought it was a new CPU :) s/i585/i586/ END K 10 svn:author V 3 jhb K 8 svn:date V 27 2001-02-24T03:40:23.000000Z K 7 svn:log V 96 It turns out the kernel console works fine and thus doesn't need quite this much extra testing. END K 10 svn:author V 2 ru K 8 svn:date V 27 2001-02-24T10:16:54.000000Z K 7 svn:log V 42 Restrict -a to root only. PR: bin/25337 END K 10 svn:author V 2 ru K 8 svn:date V 27 2001-02-24T10:30:27.000000Z K 7 svn:log V 69 mdoc(7) police: restore correct order of references in the SEE ALSO. END K 10 svn:author V 4 kris K 8 svn:date V 27 2001-02-24T10:44:03.000000Z K 7 svn:log V 73 Bump FreeBSD version to correspond to addition of CPUTYPE make variable. END K 10 svn:author V 7 phantom K 8 svn:date V 27 2001-02-24T13:13:48.000000Z K 7 svn:log V 141 Fix visibility of empty variable -- it should be static. Submitted by: bde and Hartmut Brandt (via PR) PR: bin/25308 END K 10 svn:author V 4 jake K 8 svn:date V 27 2001-02-24T14:06:36.000000Z K 7 svn:log V 175 - Assert that the proc to return is not NULL in runq_choose the same as runq_remove. - bzero the whole struct runq in runq_init just in case its not statically allocated. END K 10 svn:author V 7 sobomax K 8 svn:date V 27 2001-02-24T14:10:31.000000Z K 7 svn:log V 61 Add two missed modifiers into usage message (`-G' and `-x'). END K 10 svn:author V 6 julian K 8 svn:date V 27 2001-02-24T14:29:47.000000Z K 7 svn:log V 108 Add knowledge of the netgraph spinlocks into the Witness code. Well, at least I think that's how it's done. END K 10 svn:author V 2 bp K 8 svn:date V 27 2001-02-24T15:44:30.000000Z K 7 svn:log V 243 Introduce API for sequential reads/writes (build/dissect) of mbuf chains. Reviewed by: Ian Dowse , Bosko Milekic , Julian Elischer and arch@/net@ Obtained from: smbfs END K 10 svn:author V 3 phk K 8 svn:date V 27 2001-02-24T16:26:41.000000Z K 7 svn:log V 44 Make md/mdconfig do kld. Submitted by: dcs END K 10 svn:author V 6 jesper K 8 svn:date V 27 2001-02-24T18:36:01.000000Z K 7 svn:log V 1257 MFC: src/sys/netinet/in_pcb.c rev 1.78 src/sys/netinet/in_pcb.h rev 1.36 src/sys/netinet/tcp_subr.c rev 1.91 src/sys/netinet/udp_usrreq.c rev 1.86 Without this a attacker sending ICMP messages, where the attached IP header (+ 8 bytes) has the address and port numbers == 0, would have the ICMP message applied to all sessions. The changes broken down: - remove 0 as a wildcard for addresses and port numbers in src/sys/netinet/in_pcb.c:in_pcbnotify() - add src/sys/netinet/in_pcb.c:in_pcbnotifyall() used to notify all sessions with the specific remote address. - change - src/sys/netinet/udp_usrreq.c:udp_ctlinput() - src/sys/netinet/tcp_subr.c:tcp_ctlinput() to use in_pcbnotifyall() to notify multiple sessions, instead of using in_pcbnotify() with 0 as src address and as port numbers. - remove check for src port == 0 in - src/sys/netinet/tcp_subr.c:tcp_ctlinput() - src/sys/netinet/udp_usrreq.c:udp_ctlinput() as they are no longer needed. - move handling of redirects and host dead from in_pcbnotify() to udp_ctlinput() and tcp_ctlinput(), so they will call in_pcbnotifyall() to notify all sessions with the specific remote address. Approved by: kris Inspired by: NetBSD END K 10 svn:author V 6 jlemon K 8 svn:date V 27 2001-02-24T18:37:26.000000Z K 7 svn:log V 69 MFC: have accept return ECONNABORTED for sockets which are now gone. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2001-02-24T18:41:17.000000Z K 7 svn:log V 43 Pass in process to mark ast on to aston(). END K 10 svn:author V 3 jhb K 8 svn:date V 27 2001-02-24T18:41:38.000000Z K 7 svn:log V 17 Whitespace nits. END K 10 svn:author V 3 jkh K 8 svn:date V 27 2001-02-24T18:52:56.000000Z K 7 svn:log V 205 Properly orient the buttons for yes/no and no/yes so that POLA is observed. This fixes the "no/yes box jumps buttons around" problem. PR: gnu/24487 Submitted by: Gerhard Sittig END K 10 svn:author V 3 jkh K 8 svn:date V 27 2001-02-24T18:53:49.000000Z K 7 svn:log V 46 MFC: stop yes/no buttons from jumping around. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2001-02-24T18:57:34.000000Z K 7 svn:log V 66 Clockframes have a trapframe stored in a cf_tf member, not ct_tf. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2001-02-24T19:03:18.000000Z K 7 svn:log V 148 Add back in INVARIANT_SUPPORT and expand the comments in NOTES about it to include the reasoning Eivind justifiably thwapped me over the head with. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2001-02-24T19:09:16.000000Z K 7 svn:log V 136 Don't include machine/mutex.h and relocate sys/mutex.h's include to be closer to alphabetical order and identical to that of the alpha. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2001-02-24T19:09:37.000000Z K 7 svn:log V 23 sched_swi -> swi_sched END K 10 svn:author V 5 gibbs K 8 svn:date V 27 2001-02-24T19:24:36.000000Z K 7 svn:log V 170 In the SCSI_NO_SENSE_STRINGS case, properly fill the table with the asc and ascq pair rather than asc, asc. PR: 25291 Submitted by: Stephen Ferrari END K 10 svn:author V 5 gibbs K 8 svn:date V 27 2001-02-24T19:25:30.000000Z K 7 svn:log V 175 MFC: In the SCSI_NO_SENSE_STRINGS case, properly fill the table with the asc and ascq pair rather than asc, asc. PR: 25291 Submitted by: Stephen Ferrari END K 10 svn:author V 3 jhb K 8 svn:date V 27 2001-02-24T19:36:13.000000Z K 7 svn:log V 996 - Axe RETIP() as it was very i386 specific and unwieldy. Instead, use the passed in filename and line number in the KTR tracepoint message. - Even though it is #if 0'd code, change the code to detect that a process is an interrupt thread to check p->p_ithd against NULL rather than checking non-existant process flags from BSD/OS. - Use '%p' to print pointers in KTR log messages instead of assuming sizeof(int) == sizeof(void *). - Don't set p_mtxname to NULL when releasing a mutex. It doesn't hurt to leave it set (we don't clear w_mesg for example) and at least at one time in the past, there used to be race conditions in the kernel that would result in setting this to NULL causing the kernel to dereference NULL. - Make the _mtx_assert() function be compiled in if INVARIANTS_SUPPORT is defined rather than if INVARIANTS is defined so that a KLD compiled with INVARIANTS that uses mtx_assert() can be used with a kernel that just has INVARIANT_SUPPORT compiled in. END K 10 svn:author V 6 jesper K 8 svn:date V 27 2001-02-24T20:09:22.000000Z K 7 svn:log V 384 MFC: src/sys/netinet/in_pcb.c rev 1.78 src/sys/netinet/in_pcb.h rev 1.36 src/sys/netinet/tcp_subr.c rev 1.91 src/sys/netinet/udp_usrreq.c rev 1.86 Without this a attacker sending ICMP messages, where the attached IP header (+ 8 bytes) has the address and port numbers == 0, would have the ICMP message applied to all sessions. Approved by: kris Inspired by: NetBSD END K 10 svn:author V 3 jhb K 8 svn:date V 27 2001-02-24T21:29:32.000000Z K 7 svn:log V 47 Grrr, s/INVARIANTS_SUPPORT/INVARIANT_SUPPORT/. END K 10 svn:author V 8 bmilekic K 8 svn:date V 27 2001-02-24T21:35:18.000000Z K 7 svn:log V 96 MFC: Clean up RST ratelimiting (1.51 in HEAD). Submitted by: Mike Silbersack END K 10 svn:author V 2 cg K 8 svn:date V 27 2001-02-24T21:49:05.000000Z K 7 svn:log V 346 don't compile the initialised data generated by the kobj system into each module, otherwise each module gets its own copy of the method descriptors. this results in the upper layer code being unable to find the implementation of any method in any object, which is a bad thing. this commit makes newpcm drivers as modules actually work under 4.x END K 10 svn:author V 6 obrien K 8 svn:date V 27 2001-02-24T22:20:11.000000Z K 7 svn:log V 194 MFS: bring the consistent `compat_3_brand' support into -CURRENT (the work was first done in the RELENG_4 branch near a release during a MFC to make the code cleaner and more consistent) END