NetBSD/sys/kern
riastradh 2473fd3d55 vnodeops(9): Take exclusive lock in read/seek for f_offset update.
Otherwise concurrent readers/seekers might clobber it.
2022-08-06 21:21:10 +00:00
..
Make.tags.inc
Makefile
bufq_disksort.c
bufq_fcfs.c
bufq_priocscan.c
bufq_readprio.c
cnmagic.c
compat_stub.c fix various typos in compatibility, mainly in comments. 2021-08-09 20:49:08 +00:00
core_elf32.c Use <compat/netbsd32/netbsd32.h> instead of <machine/netbsd32_machdep.h>, 2021-01-02 02:13:42 +00:00
core_elf64.c
core_netbsd.c
device_calls Device call interface definition files for the "device" and "pci" 2021-09-15 17:26:06 +00:00
exec_aout.c
exec_ecoff.c
exec_elf.c Do not warn for ELF note for FDO packaging metadata 2022-06-08 10:12:42 +00:00
exec_elf32.c
exec_elf64.c
exec_script.c Remove duplicate #ifdef block. 2021-05-03 10:25:14 +00:00
exec_subr.c Replace most uses of vp->v_usecount with a call to vrefcnt(vp), a function 2020-04-13 19:23:17 +00:00
files.kern Add native implementations of eventfd(2) and timerfd(2), compatible with 2021-09-19 15:51:27 +00:00
gendevcalls.awk Add an awk program that reads in a device call interface description 2021-09-15 17:25:14 +00:00
genlintstub.awk
init_main.c Removed unused opt_wapbl.h include. 2022-07-21 14:07:16 +00:00
init_sysctl.c KNF (sort #includes and remove duplicate sys/cpu.h) 2020-09-20 12:51:57 +00:00
init_sysctl_base.c
init_sysent.c regen for "struct sigaltstack" -> "stack_t" 2021-11-01 05:26:27 +00:00
kern_acct.c s/commmand/command/ in comment. 2021-12-05 04:35:38 +00:00
kern_auth.c sys: Use membar_release/acquire around reference drop. 2022-04-09 23:38:31 +00:00
kern_cctr.c Add some more detail/explanation to the calibration timing diagram. 2020-10-10 18:18:04 +00:00
kern_cfglock.c
kern_clock.c kern: Delete kernel_ticks from kernel ABI. 2022-03-19 14:34:47 +00:00
kern_condvar.c sleepq(9): Pass syncobj through to sleepq_block. 2022-06-29 22:27:01 +00:00
kern_core.c Add containment for the cloning devices hack in vn_open. 2021-06-29 22:40:53 +00:00
kern_cpu.c PR kern/45117 2020-10-08 09:16:13 +00:00
kern_crashme.c kern: Add debug.crashme.null_jump. 2021-11-27 14:11:14 +00:00
kern_ctf.c Check the CTF magic number in an endian friendly way (and don't use 2021-04-06 07:57:03 +00:00
kern_descrip.c Add containment for the cloning devices hack in vn_open. 2021-06-29 22:40:53 +00:00
kern_drvctl.c driver(9): devsw_detach never fails. Make it return void. 2022-03-28 12:33:20 +00:00
kern_entropy.c entropy: Don't disclose stack garbage in kern.entropy sysctls. 2022-08-05 23:43:46 +00:00
kern_event.c kern_event.c: Mark KASSERT-only static function as __diagused. 2022-07-24 19:23:44 +00:00
kern_exec.c posix_spawn(2): Plug leak in proc_alloc error branch. 2022-07-01 01:05:31 +00:00
kern_exit.c s/sytle/style/ in comment. 2021-12-05 08:13:12 +00:00
kern_fileassoc.c
kern_fork.c Uglify code to fix build. 2022-07-01 09:54:36 +00:00
kern_history.c
kern_hook.c fix various typos in comments, documentation and messages. 2022-05-31 08:43:13 +00:00
kern_idle.c Round of uvm.h cleanup. 2020-09-05 16:30:10 +00:00
kern_ksyms.c convert "ksyms: checking <symbol>" into KSYMS_DEBUG over normal DEBUG. 2022-07-15 06:40:24 +00:00
kern_ksyms_buf.c
kern_kthread.c New functions kthread_fpu_enter/exit. 2020-08-01 02:04:55 +00:00
kern_ktrace.c ktrace(9): Zero-initialize padding for ktr_psig records. 2022-07-01 01:07:56 +00:00
kern_ktrace_vfs.c Add containment for the cloning devices hack in vn_open. 2021-06-29 22:40:53 +00:00
kern_lock.c Revert the 2015 change I made that allowed sleeping in the idle lwp 2021-10-31 16:26:26 +00:00
kern_lwp.c kern: Fix comment about precondition of lwp_update_creds. 2022-07-01 01:06:04 +00:00
kern_malloc.c
kern_module.c Add MODULAR_DEFAULT_VERBOSE option. 2022-05-07 04:30:41 +00:00
kern_module_hook.c
kern_module_vfs.c Add containment for the cloning devices hack in vn_open. 2021-06-29 22:40:53 +00:00
kern_mutex.c mutex(9): Convert to membar_acquire/release. 2022-04-09 23:46:10 +00:00
kern_mutex_obj.c sys: Use membar_release/acquire around reference drop. 2022-04-09 23:38:31 +00:00
kern_ntptime.c ntp(9): Avoid left shift of negative. 2022-03-13 12:57:33 +00:00
kern_pax.c Respect alignment requests of executable when PAX_ASLR is enabled on 2021-08-30 01:25:10 +00:00
kern_physio.c physio(9): Avoid left shift of negative in alignment check. 2022-07-10 23:11:55 +00:00
kern_pmf.c sys: Split struct device into a private device_impl.h. 2022-03-28 12:38:57 +00:00
kern_proc.c kern: Omit stale locking comment in proc_crmod_leave. 2022-07-01 01:06:40 +00:00
kern_prot.c Move proc_lock into the data segment. It was dynamically allocated because 2020-05-23 23:42:41 +00:00
kern_ras.c rasctl(2): Avoid overflow in address range arithmetic. 2022-08-03 09:40:25 +00:00
kern_rate.c
kern_reboot.c
kern_resource.c sys: Use membar_release/acquire around reference drop. 2022-04-09 23:38:31 +00:00
kern_runq.c Oops. If a SCHED_RR thread is preempted and has exceeded its timeslice it 2020-05-23 21:24:41 +00:00
kern_rwlock.c rwlock(9): Convert to membar_acquire/release. 2022-04-09 23:46:19 +00:00
kern_rwlock_obj.c sys: Use membar_release/acquire around reference drop. 2022-04-09 23:38:31 +00:00
kern_scdebug.c
kern_sdt.c
kern_sig.c sys: Use membar_release/acquire around reference drop. 2022-04-09 23:38:31 +00:00
kern_sleepq.c sleepq(9): Pass syncobj through to sleepq_block. 2022-06-29 22:27:01 +00:00
kern_softint.c kern: Assert softint does not net acquire kernel locks. 2022-03-30 17:02:02 +00:00
kern_ssp.c
kern_stub.c New functions kthread_fpu_enter/exit. 2020-08-01 02:04:55 +00:00
kern_subr.c Fix locking after opendisk(), VOP_IOCTL() needs an unlocked vnode, 2022-03-19 13:51:35 +00:00
kern_synch.c sleepq(9): Pass syncobj through to sleepq_block. 2022-06-29 22:27:01 +00:00
kern_syscall.c PR/55629: Andreas Gustafsson: Don't crash when an emulation does not provide 2020-08-31 19:51:30 +00:00
kern_sysctl.c Sort includes, nix trailing whitespace, fix comment. 2020-08-27 14:11:57 +00:00
kern_tc.c timecounter(9): Zero the next pointer after tc_detach. 2021-06-02 21:34:58 +00:00
kern_threadpool.c threadpool(9): Fix synchronization between cancel and dispatch. 2021-01-23 16:33:49 +00:00
kern_time.c kern: KNF in kern_time.c: Omit needless return parentheses. 2022-07-01 21:22:44 +00:00
kern_timeout.c sleepq(9): Pass syncobj through to sleepq_block. 2022-06-29 22:27:01 +00:00
kern_todr.c Print the "preposterous TOD clock time" message only if the RTC is 2021-04-03 12:06:53 +00:00
kern_turnstile.c sleepq(9): Pass syncobj through to sleepq_block. 2022-06-29 22:27:01 +00:00
kern_uidinfo.c kern: Show relevant variables for uidinfo counts in kasserts. 2021-12-28 13:28:24 +00:00
kern_uuid.c
kern_veriexec.c Oops, missed a couple. 2020-06-11 02:30:21 +00:00
kgdb_stub.c Improve English in comments 2021-01-13 07:36:56 +00:00
makesyscalls.sh s/optiona]/optional]/ 2021-10-21 11:01:03 +00:00
sched_4bsd.c fix typos in asymmetry, asymmetric(al), symmetrical. 2021-08-09 19:57:57 +00:00
sched_m2.c Oops. If a SCHED_RR thread is preempted and has exceeded its timeslice it 2020-05-23 21:24:41 +00:00
subr_acl_nfs4.c Add ACL support for FFS. From FreeBSD. 2020-05-16 18:31:45 +00:00
subr_acl_posix1e.c Add ACL support for FFS. From FreeBSD. 2020-05-16 18:31:45 +00:00
subr_asan.c While we are inside ddb, allow all memory access. 2020-12-18 15:33:34 +00:00
subr_autoconf.c sys: Split struct device into a private device_impl.h. 2022-03-28 12:38:57 +00:00
subr_blist.c fix various typos in comments, documentation and messages. 2022-05-31 08:43:13 +00:00
subr_bufq.c
subr_callback.c
subr_copy.c ucas(9): Convert membar_exit to membar_release. 2022-04-09 23:51:09 +00:00
subr_cprng.c cprng(9): Fix accidental 4x seed size. 2022-05-13 09:40:25 +00:00
subr_cpu.c remove double "with" in comments and usage text. Also fix one typo. 2022-01-24 09:42:13 +00:00
subr_cpufreq.c
subr_csan.c sys/atomic.h: Fix atomic_store_* on sparcv7, sparcv8. 2022-07-30 14:13:27 +00:00
subr_debug.c
subr_device.c sys: Split struct device into a private device_impl.h. 2022-03-28 12:38:57 +00:00
subr_devsw.c devsw(9): Forbid extant linked autoconf instances in devsw_detach. 2022-07-09 10:30:27 +00:00
subr_disk.c disk(9): New function disklabel_dev_unit. 2022-03-28 12:33:59 +00:00
subr_disk_mbr.c move bi-endian disklabel support from the kernel and libsa into libkern. 2021-05-17 08:50:36 +00:00
subr_disk_open.c
subr_disklabel.c
subr_emul.c
subr_evcnt.c avoid an error in the recent sys/evcnt.h change to drop the 0 2021-04-17 00:05:31 +00:00
subr_exec_fd.c Add containment for the cloning devices hack in vn_open. 2021-06-29 22:40:53 +00:00
subr_extent.c
subr_fault.c be one-shot by default, with room for circular 2020-06-30 16:28:17 +00:00
subr_hash.c Return ENOENT if the hashstat sysctl was called to query a specific hash 2021-06-13 14:58:49 +00:00
subr_humanize.c
subr_interrupt.c s/occured/occurred/ in comments, log messages and man pages. 2021-12-10 20:36:02 +00:00
subr_iostat.c
subr_ipi.c ipi(9): Convert membar_exit/enter to membar_release/acquire. 2022-04-09 23:51:22 +00:00
subr_kcov.c uvm(9): fo_mmap caller guarantees positive size. 2022-07-06 01:12:45 +00:00
subr_kcpuset.c sys: Use membar_release/acquire around reference drop. 2022-04-09 23:38:31 +00:00
subr_kmem.c re-do previous - it likely broke kmem cache init. 2022-05-30 23:36:26 +00:00
subr_kobj.c fix mainly same typos as in my previous commit but outside sys/dev/dm. 2021-08-21 23:00:30 +00:00
subr_kobj_vfs.c Add containment for the cloning devices hack in vn_open. 2021-06-29 22:40:53 +00:00
subr_localcount.c
subr_lockdebug.c KNF. No binary changes. 2021-03-02 01:20:35 +00:00
subr_log.c logread_filtops is MPSAFE. 2021-09-26 15:11:33 +00:00
subr_lwp_specificdata.c
subr_msan.c ksyms: Use pserialize(9) for kernel access to ksyms. 2021-09-11 10:09:55 +00:00
subr_once.c
subr_optstr.c
subr_pcq.c Fix typo in comment. 2021-02-08 09:31:05 +00:00
subr_pcu.c kern: Mark some functions __diagused to pacify clang. 2022-02-08 12:59:16 +00:00
subr_percpu.c Teach percpu to run constructors on CPU attach. 2020-05-11 21:37:31 +00:00
subr_physmap.c fix typos in word "segment" and two additional typos in if_tl.c. 2021-09-06 20:55:08 +00:00
subr_pool.c Use 64-bit math to calculate pool sizes. Fixes overflow errors for 2022-07-16 10:20:21 +00:00
subr_prf.c panic(9): Serialize panicstr access and printing `panic:' message. 2022-04-17 09:09:13 +00:00
subr_prof.c Improved the performance of kernel profiling on MULTIPROCESSOR, and possible to get profiling data for each CPU. 2021-08-14 17:51:18 +00:00
subr_pserialize.c pserialize(9): Lift rule that pserialize_perform be serialized. 2021-10-10 11:20:46 +00:00
subr_psref.c more __diagused to appease clang 2022-02-12 16:31:06 +00:00
subr_specificdata.c
subr_spldebug.c
subr_syscall_stats.c
subr_tftproot.c Remove unnecessary inclusion of <sys/timevar.h> 2020-12-05 17:42:29 +00:00
subr_thmap.c thmap(9): Convert membar_exit to membar_release. 2022-04-09 23:51:57 +00:00
subr_time.c kern: Avoid arithmetic overflow in gettimeleft. 2022-06-28 02:04:51 +00:00
subr_userconf.c
subr_vmem.c fix various typos in comments, documentation and messages. 2022-05-31 08:43:13 +00:00
subr_workqueue.c workqueue: Lift unnecessary restriction on workqueue_wait. 2020-09-08 17:02:18 +00:00
subr_xcall.c Comments. 2020-12-22 01:57:29 +00:00
sys_aio.c Move proc_lock into the data segment. It was dynamically allocated because 2020-05-23 23:42:41 +00:00
sys_descrip.c Lock vnode for VOP_PATHCONF(). 2022-04-16 07:59:02 +00:00
sys_eventfd.c Implement eventfd_ioctl() and handle FIONBIO so that fcntl(O_NONBLOCK) 2022-02-17 16:28:29 +00:00
sys_futex.c futex(9): Convert membar_enter/exit to membar_acquire/release. 2022-04-21 12:05:13 +00:00
sys_generic.c readv(2), writev(2): Avoid arithmetic overflow in bounds check. 2022-07-10 23:12:12 +00:00
sys_getrandom.c sys: Use preempt_point and preempt_needed, not open-coded versions. 2021-12-28 13:22:43 +00:00
sys_lwp.c sleepq(9): Pass syncobj through to sleepq_block. 2022-06-29 22:27:01 +00:00
sys_module.c s/build-in/built-in/ in comments. 2022-05-24 06:20:04 +00:00
sys_mqueue.c Move proc_lock into the data segment. It was dynamically allocated because 2020-05-23 23:42:41 +00:00
sys_pipe.c Setting EV_EOF requires modifying kn->kn_flags. However, that relies on 2021-10-11 01:07:36 +00:00
sys_process.c Catch up with the usage of struct vmspace::vm_refcnt 2020-05-26 00:50:53 +00:00
sys_process_lwpstatus.c ptrace(PT_LWPSTATUS): Fix lid=0 case. 2022-07-10 17:47:58 +00:00
sys_pset.c Move proc_lock into the data segment. It was dynamically allocated because 2020-05-23 23:42:41 +00:00
sys_ptrace.c kern/sys_ptrace.c: Nix trailing whitespace. 2022-07-10 14:07:55 +00:00
sys_ptrace_common.c fix various typos in compatibility, mainly in comments. 2021-08-09 20:49:08 +00:00
sys_sched.c Move proc_lock into the data segment. It was dynamically allocated because 2020-05-23 23:42:41 +00:00
sys_select.c sleepq(9): Pass syncobj through to sleepq_block. 2022-06-29 22:27:01 +00:00
sys_sig.c s/substract/subtract/ in comments and error message. 2022-04-21 21:31:11 +00:00
sys_socket.c When SS_RESTARTSYS was added, it was accidentally given the same value as 2020-11-17 03:22:33 +00:00
sys_syscall.c Synchronize SYS_SYSCALL() with other syscall implementations and 2022-06-29 16:33:09 +00:00
sys_timerfd.c Implement eventfd_ioctl() and handle FIONBIO so that fcntl(O_NONBLOCK) 2022-02-17 16:28:29 +00:00
syscalls.c regen for "struct sigaltstack" -> "stack_t" 2021-11-01 05:26:27 +00:00
syscalls.conf Add ACL support for FFS. From FreeBSD. 2020-05-16 18:31:45 +00:00
syscalls.master Use "stack_t" instead of "struct sigaltstack", as the former is the 2021-11-01 05:07:15 +00:00
syscalls_autoload.c regen for "struct sigaltstack" -> "stack_t" 2021-11-01 05:26:27 +00:00
systrace_args.c regen for "struct sigaltstack" -> "stack_t" 2021-11-01 05:26:27 +00:00
sysv_ipc.c Expose groupmember as kauth_cred_groupmember and use it. 2022-03-27 16:23:08 +00:00
sysv_msg.c
sysv_sem.c
sysv_shm.c
tty.c tty(9): New function tty_unit for struct cdevsw::d_devtounit. 2022-04-07 21:46:51 +00:00
tty_bsdpty.c
tty_conf.c fix various typos in compatibility, mainly in comments. 2021-08-09 20:49:08 +00:00
tty_ptm.c Add containment for the cloning devices hack in vn_open. 2021-06-29 22:40:53 +00:00
tty_pty.c Setting EV_EOF requires modifying kn->kn_flags. However, that relies on 2021-10-11 01:07:36 +00:00
tty_subr.c
tty_tty.c Move proc_lock into the data segment. It was dynamically allocated because 2020-05-23 23:42:41 +00:00
uipc_accf.c
uipc_domain.c PR/55777: Ruslan Nikolaev: Move the unp_sysctl_create to uipc_usrreq.c to 2020-11-06 14:50:13 +00:00
uipc_mbuf.c sys: Use membar_release/acquire around reference drop. 2022-04-09 23:38:31 +00:00
uipc_mbufdebug.c
uipc_proto.c
uipc_sem.c when updating the per-uid "semcnt", decrement the counter for the uid 2020-12-14 23:12:12 +00:00
uipc_socket.c unix(4): Convert membar_exit to membar_release. 2022-04-09 23:52:22 +00:00
uipc_socket2.c unix(4): Convert membar_exit to membar_release. 2022-04-09 23:52:22 +00:00
uipc_syscalls.c sendto(2), recvfrom(2): Scrub internal struct msghdr on stack. 2022-07-01 22:30:51 +00:00
uipc_usrreq.c s/grabing/grabbing/ in comments. 2022-05-28 22:08:46 +00:00
vfs_acl.c Add ACL support for FFS. From FreeBSD. 2020-05-16 18:31:45 +00:00
vfs_bio.c Revert "kern: Sprinkle biglock-slippage assertions." 2022-03-30 14:54:29 +00:00
vfs_cache.c fix typos, mainly in words minimum and maximum, but also few others. 2021-11-01 21:28:01 +00:00
vfs_cwd.c sys: Use membar_release/acquire around reference drop. 2022-04-09 23:38:31 +00:00
vfs_dirhash.c s/helt/held+s/eroneously/erroneously/+s/splitted/split/+s/recommented/recommended/ 2021-08-21 09:59:45 +00:00
vfs_getcwd.c Now remove cn_consume from struct componentname. 2021-06-29 22:39:20 +00:00
vfs_hooks.c
vfs_init.c Add inline functions to manipulate the klists that link up knotes 2022-02-12 15:51:28 +00:00
vfs_lockf.c kern/vfs_lockf.c: Fix overflow in overflow detection. 2022-08-03 11:09:13 +00:00
vfs_lookup.c Remove the assertion "searchdir != foundobj" from lookup_crossmount(). 2022-02-10 10:59:12 +00:00
vfs_mount.c Suspend file system after VFS_MOUNT() and before taking mnt_updating. 2022-07-08 07:43:19 +00:00
vfs_quotactl.c
vfs_subr.c driver(9): Make vdevgone call config_detach_commit if appropriate. 2022-03-28 12:38:33 +00:00
vfs_syscalls.c Add inline functions to manipulate the klists that link up knotes 2022-02-12 15:51:28 +00:00
vfs_trans.c While one thread runs vgone() it is possible for another thread to grab 2022-07-08 07:42:47 +00:00
vfs_vnode.c In vcache_reclaim(), post NOTE_REVOKE immediately after changing the 2022-08-05 05:20:39 +00:00
vfs_vnops.c vnodeops(9): Take exclusive lock in read/seek for f_offset update. 2022-08-06 21:21:10 +00:00
vfs_wapbl.c sys: Use membar_release/acquire around reference drop. 2022-04-09 23:38:31 +00:00
vfs_xattr.c factor out the ktrace printing into their own functions. 2021-06-27 09:13:08 +00:00
vnode_if.c Regen for: 2022-07-18 04:32:35 +00:00
vnode_if.sh Make kqueue event status for vnodes shareable, and for stacked file systems 2022-07-18 04:30:30 +00:00
vnode_if.src Make option VNODE_LOCKDEBUG more functional. 2022-05-03 08:33:59 +00:00