NetBSD/sys/kern
chs e07f0b9362 eliminate uvm_useracc() in favor of checking the return value of
copyin() or copyout().

uvm_useracc() tells us whether the mapping permissions allow access to
the desired part of an address space, and many callers assume that
this is the same as knowing whether an attempt to access that part of
the address space will succeed.  however, access to user space can
fail for reasons other than insufficient permission, most notably that
paging in any non-resident data can fail due to i/o errors.  most of
the callers of uvm_useracc() make the above incorrect assumption.  the
rest are all misguided optimizations, which optimize for the case
where an operation will fail.  we'd rather optimize for operations
succeeding, in which case we should just attempt the access and handle
failures due to insufficient permissions the same way we handle i/o
errors.  since there appear to be no good uses of uvm_useracc(), we'll
just remove it.
2003-11-13 03:09:28 +00:00
..
Make.tags.inc
Makefile Use ${HOST_SH} instead of `sh'. 2003-10-26 07:25:33 +00:00
cnmagic.c TNF & remove trailing spaces. 2003-08-22 02:01:32 +00:00
core_elf32.c handle siginfo for deferred signals. Allocate a ksiginfo pool, and store 2003-09-14 06:59:13 +00:00
core_elf64.c
core_netbsd.c handle siginfo for deferred signals. Allocate a ksiginfo pool, and store 2003-09-14 06:59:13 +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 Support Darwin static binaries (I should say: support the only Darwin 2003-10-19 07:52:22 +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 -fix ELF_INTERP_NON_RELOCATABLE: 2003-10-31 14:00:52 +00:00
exec_elf64.c
exec_macho.c One more section type in the Mach-O format. Now /usr/X11R6/bin/quartz-wm links 2003-10-20 22:42:40 +00:00
exec_script.c
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
init_main.c Remove p_nras from struct proc - use LIST_EMPTY(&p->p_raslist) instead. 2003-11-04 10:33:15 +00:00
init_sysent.c Regen 2003-09-30 20:36:40 +00:00
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 ALLOCSYS() macro from <sys/systm.h> to kern_alloc.c - it's the 2003-10-26 10:45:03 +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 fix typos in comments. 2003-11-09 07:57:15 +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 - Count number of zombies and stopped children and requeue them at the top 2003-11-12 21:07:37 +00:00
kern_exit.c - Count number of zombies and stopped children and requeue them at the top 2003-11-12 21:07:37 +00:00
kern_fork.c - Count number of zombies and stopped children and requeue them at the top 2003-11-12 21:07:37 +00:00
kern_ksyms.c Do not try to enter more than MAX_INT16 symbols into the patricia tree; 2003-11-06 18:22:01 +00:00
kern_kthread.c
kern_ktrace.c - Count number of zombies and stopped children and requeue them at the top 2003-11-12 21:07:37 +00:00
kern_lkm.c include opt_malloclog.h 2003-11-01 07:07:31 +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 Remove p_nras from struct proc - use LIST_EMPTY(&p->p_raslist) instead. 2003-11-04 10:33:15 +00:00
kern_malloc.c Remove some assigned-to but otherwise unused variables. 2003-10-30 01:58:17 +00:00
kern_malloc_debug.c don't use NULL as vaddr_t. 2003-10-24 00:53:43 +00:00
kern_microtime.c
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 - Count number of zombies and stopped children and requeue them at the top 2003-11-12 21:07:37 +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 Remove p_nras from struct proc - use LIST_EMPTY(&p->p_raslist) instead. 2003-11-04 10:33:15 +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 Prevent sa_newcachelwp() from creating new LWPs when the process is exiting. 2003-11-12 21:27:46 +00:00
kern_sig.c - Count number of zombies and stopped children and requeue them at the top 2003-11-12 21:07:37 +00:00
kern_subr.c Don't pass the (unused) return value args to the 2003-10-31 03:28:12 +00:00
kern_synch.c Cleanup signal delivery for SA processes: 2003-11-02 16:26:10 +00:00
kern_sysctl.c Remove some assigned-to but otherwise unused variables. 2003-10-31 03:32:19 +00:00
kern_systrace.c Fix two typos. From Tom Cosgrove via jmc@openbsd. 2003-11-02 09:49:20 +00:00
kern_time.c eliminate uvm_useracc() in favor of checking the return value of 2003-11-13 03:09:28 +00:00
kern_timeout.c Make callout_setfunc() a CPP macro. Suggested by enami. 2003-10-30 04:32:56 +00:00
kern_verifiedexec.c avoid stong words in comments 2003-11-01 17:35:42 +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 Keep track of which prototypes we declared already so that we don't 2003-09-30 20:34:28 +00:00
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
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 Overhaul MBR handling (part 1): 2003-10-08 04:25:43 +00:00
subr_extent.c
subr_log.c - pass signo to fownsignal [ok by jd] 2003-09-22 12:59:55 +00:00
subr_pool.c two changes in improve scalability: 2003-11-13 02:44:01 +00:00
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
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 use "poll" as the wmesg for poll. 2003-10-10 15:24:28 +00:00
sys_pipe.c fix uninitialized variable 2003-10-25 09:06:51 +00:00
sys_pmc.c
sys_process.c Remove p_nras from struct proc - use LIST_EMPTY(&p->p_raslist) instead. 2003-11-04 10:33:15 +00:00
sys_socket.c cleanup & uniform descriptor owner handling: 2003-09-21 19:16:48 +00:00
syscalls.c Regen 2003-09-30 20:36:40 +00:00
syscalls.conf we don't need sigreturn and sigcode glue if we are not compat_16 anymore. 2003-09-10 16:43:34 +00:00
syscalls.master #ifdef _LIBC the semid_t syscalls since we don't define semid_t in userland 2003-09-30 20:36:10 +00:00
sysv_ipc.c
sysv_msg.c allocate virtual memory for SYSV shm, msg and semaphore structures 2003-10-26 10:32:24 +00:00
sysv_sem.c allocate virtual memory for SYSV shm, msg and semaphore structures 2003-10-26 10:32:24 +00:00
sysv_shm.c allocate virtual memory for SYSV shm, msg and semaphore structures 2003-10-26 10:32:24 +00:00
tty.c cleanup & uniform descriptor owner handling: 2003-09-21 19:16:48 +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 Add the gating of system calls that cause modifications to the underlying 2003-10-15 11:28:59 +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 when dropping M_PKTHDR, need to free m_tag associated with it. 2003-10-03 20:56:11 +00:00
uipc_mbuf2.c Add m_tag_delete_nonpesrsistent(), for deleting all packet tags on 2003-11-13 01:48:12 +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
uipc_socket.c Cache the "adjusted" value of sb_max when sb_max is changed, in order 2003-10-21 22:55:47 +00:00
uipc_socket2.c Cache the "adjusted" value of sb_max when sb_max is changed, in order 2003-10-21 22:55:47 +00:00
uipc_syscalls.c eliminate uvm_useracc() in favor of checking the return value of 2003-11-13 03:09:28 +00:00
uipc_usrreq.c Add the gating of system calls that cause modifications to the underlying 2003-10-15 11:28:59 +00:00
vfs_bio.c protect a few uses of buf's b_flags with b_interlock 2003-11-08 04:22:35 +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 fix uninitialized variable 2003-10-25 09:06:51 +00:00
vfs_lookup.c PR/15397: Jason Thorpe: directory operations on pathnames that refer to 2003-09-11 17:33:42 +00:00
vfs_subr.c XXX an impossible malloc failure check in set_statfs_info 2003-11-12 20:38:24 +00:00
vfs_syscalls.c - fix an use-after-free bug in /dev/fd/* handling. 2003-11-09 07:55:38 +00:00
vfs_vnops.c Add the gating of system calls that cause modifications to the underlying 2003-10-15 11:28:59 +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