..
bufq_disksort.c
bufq_fcfs.c
bufq_priocscan.c
bufq_readprio.c
cnmagic.c
compat_stub.c
add a register validation hook for ptrace on netbsd32 to be used for
2019-07-20 18:23:05 +00:00
core_elf32.c
Fix code generation for programs with a faulty process map
2019-01-22 03:44:44 +00:00
core_elf64.c
core_netbsd.c
exec_aout.c
exec_ecoff.c
exec_elf32.c
exec_elf64.c
exec_elf.c
Don't set AT_SUN_EXECNAME if we don't have a fully resolved name.
2019-09-15 20:20:26 +00:00
exec_script.c
adjust for new check_exec signature.
2019-09-15 20:21:12 +00:00
exec_subr.c
files.kern
Unlink KMEM_GUARD leftovers.
2019-08-15 12:24:08 +00:00
genlintstub.awk
init_main.c
Implement an aggressive psref leak detector
2019-05-17 03:34:26 +00:00
init_sysctl_base.c
Allow architectures to define a macro PROC_MACHINE_ARCH(P) and
2017-10-31 12:37:23 +00:00
init_sysctl.c
remove kern.panic_now -- crashme panic node replaces it.
2019-01-15 07:11:23 +00:00
init_sysent.c
Merge the [pgoyette-compat] branch
2019-01-27 02:08:33 +00:00
kern_acct.c
fix flatly wrong indent
2019-05-26 19:23:04 +00:00
kern_auth.c
Rename min/max -> uimin/uimax for better honesty.
2018-09-03 16:29:22 +00:00
kern_cctr.c
Fix 'unknown' spellos
2019-06-24 06:24:33 +00:00
kern_cfglock.c
kern_clock.c
C99 initializers for intr_timecounter.
2018-09-03 21:29:30 +00:00
kern_condvar.c
Apply C99-style struct initialization to syncobj_t
2018-01-30 07:52:22 +00:00
kern_core.c
kern_cpu.c
Fix/add KASSERTS to work with a system of MAXCPUS. Add some comments to
2018-11-13 11:06:19 +00:00
kern_crashme.c
clang does not like to deref a null pointer unless it is qualified volatile
2019-01-13 00:11:29 +00:00
kern_ctf.c
merge a new version of the CDDL dtrace and ZFS code.
2018-05-28 21:04:59 +00:00
kern_descrip.c
handle O_NOSIGPIPE too.
2019-02-20 19:42:14 +00:00
kern_drvctl.c
- move export for devmon_insert_vec into sys/device.h.
2018-09-18 01:25:09 +00:00
kern_event.c
Fix kernel info leak. There are 4 bytes of padding in struct kevent.
2018-11-13 06:58:14 +00:00
kern_exec.c
- Add support for fexecve
2019-09-15 20:23:50 +00:00
kern_exit.c
Correct use-after-free issue in vfork(2)
2019-06-13 20:20:18 +00:00
kern_fileassoc.c
kern_fork.c
Correct use-after-free issue in vfork(2)
2019-06-13 20:20:18 +00:00
kern_history.c
Rename min/max -> uimin/uimax for better honesty.
2018-09-03 16:29:22 +00:00
kern_hook.c
kern_idle.c
kern_ksyms_buf.c
kern_ksyms.c
use Elf_Sym ** instead of casting.
2017-11-04 22:17:55 +00:00
kern_kthread.c
KASSERT() that kthread_join()'s target is expecting to be joined.
2018-01-09 22:58:45 +00:00
kern_ktrace_vfs.c
kern_ktrace.c
Rename min/max -> uimin/uimax for better honesty.
2018-09-03 16:29:22 +00:00
kern_lock.c
Avoid prepending a timestamp to lock debug outputs on ddb
2019-05-09 05:00:31 +00:00
kern_lwp.c
Stop trying to inform debugger about events from an exiting child
2019-06-04 11:54:03 +00:00
kern_malloc.c
Provide a code argument in kasan_mark(), and give a code to each caller.
2019-04-07 09:20:04 +00:00
kern_module_vfs.c
Merge the [pgoyette-compat] branch
2019-01-27 02:08:33 +00:00
kern_module.c
When modules are unloaded, we call sysctl_teardown() before calling
2019-08-08 18:08:41 +00:00
kern_mutex_obj.c
Obtain proper initialized addresses of locks allocated by mutex_obj_alloc or rw_obj_alloc
2018-02-05 04:25:04 +00:00
kern_mutex.c
Avoid prepending a timestamp to lock debug outputs on ddb
2019-05-09 05:00:31 +00:00
kern_ntptime.c
Zero out the ntptimeval structure to prevent a 4 byte kernel stack disclosure.
2018-10-29 22:02:25 +00:00
kern_pax.c
kern_physio.c
Don't validate buffer size for tape I/O, this is already done by
2019-04-04 12:26:45 +00:00
kern_pmf.c
expose pmf debug switches with sysctl.
2018-04-08 11:46:13 +00:00
kern_proc.c
Update our vm resource use for sysctl(3) call reading kinfo_proc*
2019-08-02 22:46:44 +00:00
kern_prot.c
kern_ras.c
kern_rate.c
kern_reboot.c
retire kern_xxx.c. long live kern_xxx.c.
2018-09-14 01:55:19 +00:00
kern_resource.c
avoid underflow in user/system time.
2019-04-05 00:33:21 +00:00
kern_rndpool.c
- add or adjust /* FALLTHROUGH */ where appropriate
2019-02-03 03:19:25 +00:00
kern_rndq.c
Whitespace fixes. No functional change.
2019-07-31 02:21:31 +00:00
kern_rndsink.c
kern_runq.c
kern_rwlock_obj.c
Obtain proper initialized addresses of locks allocated by mutex_obj_alloc or rw_obj_alloc
2018-02-05 04:25:04 +00:00
kern_rwlock.c
Avoid prepending a timestamp to lock debug outputs on ddb
2019-05-09 05:00:31 +00:00
kern_scdebug.c
syscall debug - fix build when SYSCALL_DEBUG option is present in kernel config file
2019-03-14 19:51:49 +00:00
kern_sdt.c
kern_sig.c
Revert previous
2019-06-21 04:28:12 +00:00
kern_sleepq.c
kern_softint.c
Implement an aggressive psref leak detector
2019-05-17 03:34:26 +00:00
kern_ssp.c
kern_stub.c
remove extra #endif
2019-01-27 02:55:26 +00:00
kern_subr.c
Accept root device specification as NAME=label
2019-09-13 01:33:20 +00:00
kern_synch.c
- add or adjust /* FALLTHROUGH */ where appropriate
2019-02-03 03:19:25 +00:00
kern_syscall.c
Ship with syscall information with SIGTRAP TRAP_SCE/TRAP_SCX for tracers
2019-05-06 08:05:03 +00:00
kern_sysctl.c
Invert two conditions, to fix uninitialized memory access. If the node is
2019-07-03 17:31:32 +00:00
kern_tc.c
Revert "Sprinkle cold conditionals to make tc_ticktock before inittimecounter."
2018-07-01 15:12:06 +00:00
kern_threadpool.c
Use PRIu64 for "uint64_t tp_refcnt".
2019-01-17 10:18:52 +00:00
kern_time.c
mark a variable __diagused to fix this problem affecting many builds:
2019-08-07 07:22:12 +00:00
kern_timeout.c
Undo previous, in the name of "defined" behaviour, it breaks things.
2019-03-10 13:44:49 +00:00
kern_todr.c
The whole 'tv' structure gets added to the RND pool, so clear it first,
2019-07-07 15:12:59 +00:00
kern_turnstile.c
kern_uidinfo.c
PR/53998: Joel Bertrand: Limit the number of semaphores on a
2019-03-01 03:03:19 +00:00
kern_uuid.c
kern_veriexec.c
Document that veriexec_file_add() also expects keep-filename and eval-on-load.
2019-04-28 21:36:19 +00:00
kgdb_stub.c
Make.tags.inc
Makefile
makesyscalls.sh
include #ifdefs in the syscalls autoload file and make it standalone.
2019-06-18 16:24:17 +00:00
sched_4bsd.c
Rename min/max -> uimin/uimax for better honesty.
2018-09-03 16:29:22 +00:00
sched_m2.c
Rename min/max -> uimin/uimax for better honesty.
2018-09-03 16:29:22 +00:00
subr_asan.c
Add KASAN instrumentation on the bus_space functions that handle buffers.
2019-09-07 10:24:01 +00:00
subr_autoconf.c
Fix compile error.
2018-12-01 02:08:16 +00:00
subr_blist.c
subr_bufq.c
rename module_name to strategy_module_name to avoid fatal shadowing of
2019-02-17 23:17:41 +00:00
subr_callback.c
subr_copy.c
Exclude references to _ucas_{32,64}_mp() for _RUMPKERNEL.
2019-04-07 16:27:41 +00:00
subr_cprng.c
Switch from NIST CTR_DRBG with AES to NIST Hash_DRBG with SHA-256.
2019-09-02 20:09:29 +00:00
subr_cpufreq.c
subr_debug.c
subr_device.c
subr_devsw.c
Add two utility functions to help use kmem with strings: kmem_strdupsize,
2017-11-07 18:35:57 +00:00
subr_disk_mbr.c
Factor out the magic checking code for the label, and make it not depend
2019-05-17 18:50:40 +00:00
subr_disk_open.c
Fix vnode locking for opendisk(), must lock for VOP_OPEN().
2019-02-20 10:02:51 +00:00
subr_disk.c
Implement disk_rename()/iostat_rename() to rename a disk.
2019-05-22 08:47:02 +00:00
subr_disklabel.c
Fix previous. We define _KERNEL for rump in opt_rumpkernel.h.
2019-04-07 02:58:02 +00:00
subr_emul.c
Merge the [pgoyette-compat] branch
2019-01-27 02:08:33 +00:00
subr_evcnt.c
Fix kernel pointer leaks in sysctl_doevcnt.
2018-11-24 17:40:37 +00:00
subr_exec_fd.c
Update comment to match existing function name.
2019-04-08 13:05:23 +00:00
subr_extent.c
More diagnostic
2019-08-15 09:04:22 +00:00
subr_hash.c
subr_humanize.c
This had a similar problem to that reported in PR lib/54053
2019-03-12 00:25:44 +00:00
subr_interrupt.c
- don't return ENOMEM for errors not related to memory
2018-01-28 22:24:58 +00:00
subr_iostat.c
Implement disk_rename()/iostat_rename() to rename a disk.
2019-05-22 08:47:02 +00:00
subr_ipi.c
requires memory barrier before IPI ack.
2019-09-05 09:20:05 +00:00
subr_kcov.c
Drop no longer available macros KCOV_STORE() KCOV_LOAD() in kcov(4)
2019-05-26 05:41:45 +00:00
subr_kcpuset.c
Set kcpuset's bit correctly to avoid undefined behavior. Found by KUBSan.
2019-07-26 05:39:55 +00:00
subr_kleak.c
Improve error handling, doesn't matter a lot, but still.
2018-12-10 07:24:49 +00:00
subr_kmem.c
Retire KMEM_GUARD. It has been superseded by kASan, which is much more
2019-08-15 12:06:42 +00:00
subr_kobj_vfs.c
subr_kobj.c
add a kobj_error() to a recently added error case
2018-06-23 14:22:30 +00:00
subr_localcount.c
Implement a debugging facility (overflow/underflow detection) for localcount
2017-11-17 09:26:36 +00:00
subr_lockdebug.c
changes of r1.68 was reverted by r1.69. apply it again.
2019-05-28 07:39:16 +00:00
subr_log.c
Rename min/max -> uimin/uimax for better honesty.
2018-09-03 16:29:22 +00:00
subr_lwp_specificdata.c
Implement an aggressive psref leak detector
2019-05-17 03:34:26 +00:00
subr_once.c
add INIT_ONCE(9), FINI_ONCE(9) with changing once_t.
2019-03-19 08:16:51 +00:00
subr_optstr.c
subr_pcq.c
Typos.
2018-02-08 09:05:16 +00:00
subr_pcu.c
PR port-arm/52603:
2017-10-16 15:03:57 +00:00
subr_percpu.c
subr_physmap.c
subr_pool.c
Reorder for clarity, and localify pool_allocator_big[], should not be used
2019-09-06 09:19:06 +00:00
subr_prf.c
put back line accidentally removed.
2019-05-21 04:57:02 +00:00
subr_prof.c
Overhaul the API used to fetch and store individual memory cells in
2019-04-06 03:06:23 +00:00
subr_pserialize.c
Change the place to check if a context switch doesn't happen within a pserialize read section
2018-08-14 01:06:01 +00:00
subr_psref.c
Implement an aggressive psref leak detector
2019-05-17 03:34:26 +00:00
subr_specificdata.c
subr_spldebug.c
subr_syscall_stats.c
Merge the [pgoyette-compat] branch
2019-01-27 02:08:33 +00:00
subr_tftproot.c
tftproot_getfile(): return E2BIG when bootfile is to long.
2019-01-20 21:26:13 +00:00
subr_thmap.c
pass a pointer to atomic_cas_ptr_p(), not an (equiv) integer.
2019-02-04 08:00:27 +00:00
subr_time.c
make _lwp_park return the remaining time to sleep in the "ts" argument
2017-12-08 01:19:29 +00:00
subr_userconf.c
call cnpollc(1) and cnpollc(0) around cngetc().
2018-09-16 23:18:55 +00:00
subr_vmem.c
Typos.
2018-02-08 09:05:16 +00:00
subr_workqueue.c
Don't wait on workqueue_wait if called from worker itself
2018-06-13 05:26:12 +00:00
subr_xcall.c
Spinkle ASSERT_SLEEPABLE to xcall functions
2018-02-07 04:25:09 +00:00
sys_aio.c
Introduce PR_ZERO to avoid open-coding memset()s everywhere. OK riastradh@.
2019-02-10 17:13:33 +00:00
sys_descrip.c
Add F_GETPATH, presented to tech-kern.
2019-09-15 16:25:57 +00:00
sys_generic.c
sys_lwp.c
Fix info leak: instead of using SS_INIT as a literal compound, use a global
2019-07-10 17:52:22 +00:00
sys_module.c
Rename the MODULE_*_HOOK() macros to MODULE_HOOK_*() as briefly
2019-03-01 11:06:55 +00:00
sys_mqueue.c
mq_send1: fix argument validation and reject too large lengths early.
2019-04-16 01:02:41 +00:00
sys_pipe.c
Handle half-closed pipes in FIONWRITE and FIONSPACE.
2019-04-26 17:24:23 +00:00
sys_process.c
sys_pset.c
Handle the case when a CPU is assigned to a set it is already a member of.
2018-12-09 23:05:02 +00:00
sys_ptrace_common.c
Enhance locking of ptrace_update_lwp
2019-07-18 20:10:46 +00:00
sys_ptrace.c
handle siginfo requests for ptrace32
2017-12-17 20:59:27 +00:00
sys_sched.c
sys_select.c
Use unsigned to avoid undefined behavior. Found by kUBSan.
2019-08-20 01:56:21 +00:00
sys_sig.c
Introduce sigaction_copy(), to copy sigaction structures without padding,
2019-09-08 07:00:20 +00:00
sys_socket.c
soo_fcntl is identical to fnullop_fcntl, use the latter
2018-12-04 00:18:05 +00:00
sys_syscall.c
Introduce KLEAK, a new feature that can detect kernel information leaks.
2018-12-02 21:00:13 +00:00
syscalls_autoload.c
Merge the [pgoyette-compat] branch
2019-01-27 02:08:33 +00:00
syscalls.c
Regen
2018-08-10 21:47:14 +00:00
syscalls.conf
Merge the [pgoyette-compat] branch
2019-01-27 02:08:33 +00:00
syscalls.master
remove XXX from the quota call.
2019-06-18 16:06:45 +00:00
systrace_args.c
Regen
2018-08-10 21:47:14 +00:00
sysv_ipc.c
Many years ago someone created a new __link_set_sysctl_funcs to hold
2019-08-07 00:38:01 +00:00
sysv_msg.c
Many years ago someone created a new __link_set_sysctl_funcs to hold
2019-08-07 00:38:01 +00:00
sysv_sem.c
Many years ago someone created a new __link_set_sysctl_funcs to hold
2019-08-07 00:38:01 +00:00
sysv_shm.c
Fix stupid bugs in linux_sys_shmctl(): the index could be out of bound
2019-08-23 10:22:14 +00:00
tty_bsdpty.c
tty_conf.c
tty_ptm.c
Rename the MODULE_*_HOOK() macros to MODULE_HOOK_*() as briefly
2019-03-01 11:06:55 +00:00
tty_pty.c
Fix reporting EOF via kevent and add a test case
2019-02-15 18:57:15 +00:00
tty_subr.c
tty_tty.c
tty.c
Rename the MODULE_*_HOOK() macros to MODULE_HOOK_*() as briefly
2019-03-01 11:06:55 +00:00
uipc_accf.c
uipc_domain.c
Fix apparent race.
2018-12-27 07:56:43 +00:00
uipc_mbuf.c
Fix ipsecif(4) cannot apply input direction packet filter. Reviewed by ozaki-r@n.o and ryo@n.o.
2019-01-17 02:47:15 +00:00
uipc_mbufdebug.c
KNF. No functional change.
2018-10-18 05:44:19 +00:00
uipc_proto.c
uipc_sem.c
PR/53998: Joel Bertrand: Limit the number of semaphores on a
2019-03-01 03:03:19 +00:00
uipc_socket2.c
Fix info leaks: the alignment of the structures causes uninitialized heap
2019-07-11 17:30:44 +00:00
uipc_socket.c
Fix build.
2019-09-14 15:06:33 +00:00
uipc_syscalls.c
sys_recvmmsg: don't defer an error that already gets returned.
2018-11-12 09:21:13 +00:00
uipc_usrreq.c
Fix info leak: the padding after the header causes uninitialized heap
2019-07-29 09:42:17 +00:00
vfs_bio.c
Change buf_nbuf()'s return value from int to u_int to avoid undefined
2019-08-26 10:24:39 +00:00
vfs_cache.c
More indentation
2019-09-15 17:37:25 +00:00
vfs_cwd.c
vfs_dirhash.c
Introduce PR_ZERO to avoid open-coding memset()s everywhere. OK riastradh@.
2019-02-10 17:13:33 +00:00
vfs_getcwd.c
- add missing error check
2019-09-14 21:23:34 +00:00
vfs_hooks.c
vfs_init.c
Move pnbuf_cache into vfs_init.c, where it belongs.
2019-03-28 18:12:24 +00:00
vfs_lockf.c
vfs_lookup.c
Make namei() work with no root dir yet.
2019-07-18 09:39:40 +00:00
vfs_mount.c
If we could not start extattr for some reason, don't advertise extattr in the
2019-08-19 09:32:42 +00:00
vfs_quotactl.c
vfs_subr.c
Add "void *extra" argument to vcache_new() so a file system may
2019-01-01 10:06:54 +00:00
vfs_syscalls.c
Fix bug: if seg == UIO_SYSSPACE, tv[] is not initialized. The branches
2019-07-06 14:37:24 +00:00
vfs_trans.c
Add an owner field to fstrans mount info and use it to hold
2019-06-17 08:07:27 +00:00
vfs_vnode.c
Attach "mnt_transinfo" to "dead_rootmount" so every mount has a
2019-02-20 10:07:27 +00:00
vfs_vnops.c
Change vn_openchk() to fail VNON and VBAD with error ENXIO.
2019-03-07 11:09:48 +00:00
vfs_wapbl.c
constify wapbl_ops
2018-12-10 21:19:33 +00:00
vfs_xattr.c
vnode_if.c
vnode_if.sh
vnode_if.src