NetBSD/sys/kern
wrstuden d9f694842d Adjust struct sockbuf and sorflush() so that we don't zero out
every field; some need to stay around.

Fixes a bug where by calling shutdown() on a socket with knotes
will cause the kernel to panic when the kernel closes the socket.
Other access, such as calling kevent() may also trigger the panic.

Debugged with help from Jason and Allen. Patch reviewed by same plus
Itojun and Matt Thomas.

This problem seems to be the same one that FreeBSD saw in their PR
number 54331.

Kernel version _not_ bumped as we will piggyback the bump earlier today.
2003-09-04 16:44:05 +00:00
..
Make.tags.inc
Makefile
cnmagic.c TNF & remove trailing spaces. 2003-08-22 02:01:32 +00:00
core_elf32.c Back out the lwp/ktrace changes. They contained a lot of colateral damage, 2003-06-29 22:28:00 +00:00
core_elf64.c
core_netbsd.c Back out the lwp/ktrace changes. They contained a lot of colateral damage, 2003-06-29 22:28:00 +00:00
exec_aout.c GC: exec_foo_setup_stack; use exec_setup_stack, and provide a way for 2003-08-08 18:53:13 +00:00
exec_conf.c GC: exec_foo_setup_stack; use exec_setup_stack, and provide a way for 2003-08-08 18:53:13 +00:00
exec_ecoff.c GC: exec_foo_setup_stack; use exec_setup_stack, and provide a way for 2003-08-08 18:53:13 +00:00
exec_elf32.c GC: exec_foo_setup_stack; use exec_setup_stack, and provide a way for 2003-08-08 18:53:13 +00:00
exec_elf64.c
exec_macho.c GC: exec_foo_setup_stack; use exec_setup_stack, and provide a way for 2003-08-08 18:53:13 +00:00
exec_script.c Back out the lwp/ktrace changes. They contained a lot of colateral damage, 2003-06-29 22:28:00 +00:00
exec_subr.c Expand NEW_VMCMD() macro to a real function new_vmcmd() for the 2003-08-29 01:44:02 +00:00
genassym.awk
genassym.sh
genlintstub.awk This program is called genlintstub.awk 2003-05-20 20:25:31 +00:00
init_main.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
init_sysent.c
kern_acct.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
kern_allocsys.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
kern_clock.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
kern_descrip.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
kern_event.c Unlock kq_lock in the case of a timeout. 2003-07-18 17:34:07 +00:00
kern_exec.c Use VM_DEFAULT_ADDRESS as a hint to map sigcode instead of an equivalent 2003-08-29 13:29:32 +00:00
kern_exit.c use LSDEAD instead of SDEAD for lwp state. 2003-08-20 14:04:00 +00:00
kern_fork.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
kern_ksyms.c long -> unsigned long. 2003-09-03 10:55:22 +00:00
kern_kthread.c
kern_ktrace.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
kern_lkm.c Back out the lwp/ktrace changes. They contained a lot of colateral damage, 2003-06-29 22:28:00 +00:00
kern_lock.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
kern_lwp.c Improve _lwp_wakeup so when it wakes a thread, the target thread thinks 2003-07-28 23:35:20 +00:00
kern_malloc.c Do correct pointer casts. 2003-09-03 11:13:14 +00:00
kern_malloc_debug.c
kern_microtime.c Remove an unnecessary local variable (and save a read of the "time" 2003-06-28 15:02:24 +00:00
kern_ntptime.c
kern_physio.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
kern_proc.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
kern_prot.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
kern_ras.c Declare ras_pool in <sys/ras.h> instead of an extern declaration in 2003-06-28 14:52:10 +00:00
kern_resource.c add support for non-executable mappings (where the hardware allows this) 2003-08-24 17:52:28 +00:00
kern_sa.c don't use a space char in wmesg. 2003-08-20 13:54:48 +00:00
kern_sig.c SA fixes from Stephan Uphoff. Quoting him: 2003-08-11 21:18:18 +00:00
kern_subr.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
kern_synch.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
kern_sysctl.c Use correct basic types when addresses are given in function calls. 2003-09-03 11:36:52 +00:00
kern_systrace.c fix a race condition between path resolution in userland 2003-08-25 09:12:42 +00:00
kern_time.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
kern_timeout.c On second thought, callout_stop() should not clear the INVOKING flag. 2003-08-03 19:14:59 +00:00
kern_verifiedexec.c add missing __KERNEL_RCSID() 2003-07-14 14:59:01 +00:00
kern_xxx.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
kgdb_stub.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
makesyscalls.sh
subr_autoconf.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
subr_devsw.c add missing __KERNEL_RCSID() 2003-07-14 14:59:01 +00:00
subr_disk.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
subr_disk_mbr.c When writing the disklabel: 2003-08-19 11:49:24 +00:00
subr_extent.c Make sure to include opt_foo.h if a defflag option FOO is used. 2003-06-23 11:00:59 +00:00
subr_log.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
subr_pool.c
subr_prf.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
subr_prof.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
subr_prop.c avoid constant, use sizeof 2003-05-17 03:12:08 +00:00
subr_userconf.c
subr_xxx.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
sys_generic.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
sys_pipe.c Workaround to prevent a lockup in pipelock() in the case that signals are 2003-08-11 10:24:41 +00:00
sys_pmc.c
sys_process.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
sys_socket.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
syscalls.c
syscalls.conf
syscalls.master
sysv_ipc.c
sysv_msg.c
sysv_sem.c Back out the lwp/ktrace changes. They contained a lot of colateral damage, 2003-06-29 22:28:00 +00:00
sysv_shm.c
tty.c Rework VTIME calculations so that they don't hit numeric overflow (ok now 2003-08-11 10:49:06 +00:00
tty_conf.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
tty_pty.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
tty_subr.c
tty_tb.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
tty_tty.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
uipc_domain.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
uipc_mbuf.c clarify comment on m_cat(). 2003-09-04 04:10:32 +00:00
uipc_mbuf2.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
uipc_proto.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
uipc_sem.c add missing __KERNEL_RCSID() 2003-07-14 14:59:01 +00:00
uipc_socket.c Adjust struct sockbuf and sorflush() so that we don't zero out 2003-09-04 16:44:05 +00:00
uipc_socket2.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
uipc_syscalls.c Adapt to the new calling conventions of unp_connect2 2003-09-04 04:33:49 +00:00
uipc_usrreq.c Fix typo. 2003-09-03 22:20:34 +00:00
vfs_bio.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
vfs_cache.c remove an obsolete comment. pointed by enami@ 2003-09-01 12:13:55 +00:00
vfs_getcwd.c eliminate v_id. 2003-07-30 12:10:57 +00:00
vfs_init.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
vfs_lockf.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
vfs_lookup.c fix a race condition between path resolution in userland 2003-08-25 09:12:42 +00:00
vfs_subr.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
vfs_syscalls.c also feed getdents/readdir data to KTRACE 2003-09-02 12:31:35 +00:00
vfs_vnops.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
vnode_if.c Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
vnode_if.sh Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 16:26:28 +00:00
vnode_if.src Back out the lwp/ktrace changes. They contained a lot of colateral damage, 2003-06-29 22:28:00 +00:00