freebsd-dev/sys/kern
Andrew Turner cab496e16c Make SHMMAXPGS an unsigned long
This is used to calculate sizes that are then stored in unsigned long
fields. Make this unsigned long so the calculations use this type and
not an int that can lead to an integer overflow with a large PAGE_SIZE.

This allows building this on arm64 with PAGE_SIZE of 16k. Further work
will be needed if a 32-bit architecture tries to use a similar sized
page.

Sponsored by:	The FreeBSD Foundation
2022-03-21 10:27:35 +00:00
..
bus_if.m Extend device_get_property API 2022-03-10 12:11:32 +01:00
clock_if.m
cpufreq_if.m
device_if.m
firmw.S
genassym.sh
genoffset.c
genoffset.sh
imgact_aout.c exec: Reimplement stack address randomization 2022-01-17 16:12:36 -05:00
imgact_binmisc.c
imgact_elf32.c
imgact_elf64.c
imgact_elf.c Store core dump notes for all valid register sets for FreeBSD processes. 2022-03-10 15:40:19 -08:00
imgact_shell.c
init_main.c boottrace: trace annotations for startup and shutdown 2022-02-21 20:15:57 -04:00
init_sysent.c Revert "syscallarg_t: Add a type for system call arguments" 2022-01-12 23:29:20 +00:00
kern_acct.c kern: Remove CTLFLAG_NEEDGIANT from some sysctls. 2021-12-26 12:03:33 -05:00
kern_alq.c vfs: remove the unused thread argument from NDINIT* 2021-11-25 22:50:42 +00:00
kern_boottrace.c boottrace: a simple boot and shutdown-time tracing facility 2022-02-21 20:15:45 -04:00
kern_clock.c
kern_clocksource.c Reduce minimum idle hardclock rate from 2Hz to 1Hz. 2022-01-09 19:25:56 -05:00
kern_condvar.c
kern_conf.c
kern_cons.c cons: Use bool for boolean variables 2022-02-24 10:58:07 -07:00
kern_context.c
kern_cpu.c Fix "set but not used" in kern_cpu.c 2021-12-05 15:33:04 -07:00
kern_cpuset.c Make CPU_SET macros compliant with other implementations 2021-12-30 12:20:32 +01:00
kern_ctf.c linker: Permit CTFv3 containers 2022-03-07 10:43:19 -05:00
kern_descrip.c file: Move FILEDESC_FOREACH macros to kern_descrip.c 2022-03-17 15:39:00 -04:00
kern_dtrace.c
kern_dump.c
kern_environment.c
kern_et.c
kern_event.c
kern_exec.c execve: disallow argc == 0 2022-01-26 13:40:27 -06:00
kern_exit.c syscalls: normalize exit 2021-11-29 22:04:43 +00:00
kern_fail.c
kern_ffclock.c kern_fflock: Fix a typo in a source code comment 2022-02-06 17:29:43 +01:00
kern_fork.c fd: move fd table sizing out of fdinit 2022-02-13 13:07:08 +00:00
kern_hhook.c
kern_idle.c
kern_intr.c Simplify swi for bus_dma. 2021-12-28 13:51:25 -08:00
kern_jail.c jail: network epoch protection for IP address lists 2021-12-26 10:45:50 -08:00
kern_kcov.c kcov: use __func__ in KASSERT instead of old function name 2022-03-07 10:47:27 -05:00
kern_khelp.c
kern_kthread.c
kern_ktr.c
kern_ktrace.c Revert "syscallarg_t: Add a type for system call arguments" 2022-01-12 23:29:20 +00:00
kern_linker.c boottrace: trace annotations for startup and shutdown 2022-02-21 20:15:57 -04:00
kern_lock.c
kern_lockf.c
kern_lockstat.c
kern_loginclass.c
kern_malloc.c
kern_mbuf.c mbuf: do not restore dying interfaces 2022-01-28 23:09:08 +01:00
kern_mib.c
kern_module.c modules: increase MAXMODNAME and provide backward compat 2021-12-09 18:09:53 +00:00
kern_mtxpool.c
kern_mutex.c
kern_ntptime.c kern_ntptime.c: Remove ntp_init() 2022-02-07 14:16:16 -07:00
kern_osd.c
kern_physio.c
kern_pmc.c
kern_poll.c
kern_priv.c
kern_proc.c proc: Add a sysctl to fetch virtual address space layout info 2022-01-17 16:12:43 -05:00
kern_procctl.c
kern_prot.c Add security.bsd.allow_ptrace sysctl 2022-01-22 19:36:56 +02:00
kern_racct.c kern_racct: Fix a typo in a source code comment 2022-02-06 17:28:27 +01:00
kern_rangelock.c
kern_rctl.c
kern_resource.c Use vmspace->vm_stacktop in place of sv_usrstack in more places. 2022-02-14 10:57:30 -08:00
kern_rmlock.c rmlock: Temporarily revert commit c84bb8cd77 2022-03-07 10:43:19 -05:00
kern_rwlock.c
kern_sdt.c
kern_sema.c
kern_sendfile.c kern: Remove CTLFLAG_NEEDGIANT from some sysctls. 2021-12-26 12:03:33 -05:00
kern_sharedpage.c Fix assert check for SV_DSO_SIG in exec_sysvec_init_secondary() 2021-12-08 22:54:07 -06:00
kern_shutdown.c boottrace: trace annotations for startup and shutdown 2022-02-21 20:15:57 -04:00
kern_sig.c Ignore debugger-injected signals left after detaching 2022-01-12 07:33:30 +02:00
kern_switch.c kern: Remove CTLFLAG_NEEDGIANT from some more sysctls. 2021-12-26 23:07:33 -05:00
kern_sx.c
kern_synch.c
kern_syscalls.c sys/kern: Use C99 fixed-width integer types. 2021-12-28 09:41:08 -08:00
kern_sysctl.c
kern_tc.c kern_tc: unify timecounter to bintime delta conversion 2021-11-30 15:23:23 +02:00
kern_thr.c
kern_thread.c thread: remove dead store from thread_cow_update 2022-02-13 13:07:08 +00:00
kern_time.c clock_gettime: Fix CLOCK_THREAD_CPUTIME_ID race 2022-03-17 15:39:00 -04:00
kern_timeout.c kern: harvest entropy from callouts 2022-02-03 10:05:06 -06:00
kern_tslog.c tslog: Add CTLFLAG_SKIP to sysctls 2022-03-20 11:31:16 -07:00
kern_ubsan.c
kern_umtx.c Improve timeout precision of pthread_cond_timedwait(). 2022-03-03 22:03:09 -05:00
kern_uuid.c
kern_xxx.c
ksched.c
link_elf_obj.c Kernel linkers: add emergency sysctl to restore old behavior 2021-12-08 23:32:30 +02:00
link_elf.c Kernel linkers: add emergency sysctl to restore old behavior 2021-12-08 23:32:30 +02:00
linker_if.m kernel linker: do not read debug symbol tables for non-debug symbols 2021-12-08 23:32:29 +02:00
Make.tags.inc
Makefile
md4c.c sys/kern: Use C99 fixed-width integer types. 2021-12-28 09:41:08 -08:00
md5c.c sys/kern: Use C99 fixed-width integer types. 2021-12-28 09:41:08 -08:00
msi_if.m
p1003_1b.c
pic_if.m
posix4_mib.c
sched_4bsd.c sys/kern/sched_4bsd.c: fix typo introduced in previous commit 2022-01-01 15:33:38 +01:00
sched_ule.c
serdev_if.m
stack_protector.c
subr_acl_nfs4.c
subr_acl_posix1e.c
subr_asan.c
subr_atomic64.c sys/kern: Use C99 fixed-width integer types. 2021-12-28 09:41:08 -08:00
subr_autoconf.c
subr_blist.c
subr_boot.c
subr_bufring.c
subr_bus_dma.c bus_dma: Deduplicate locking helper functions. 2022-01-05 13:50:40 -08:00
subr_bus.c Extend device_get_property API 2022-03-10 12:11:32 +01:00
subr_busdma_bounce.c Deduplicate bus_dma bounce code. 2022-01-05 13:50:40 -08:00
subr_busdma_bufalloc.c sys/kern: Use C99 fixed-width integer types. 2021-12-28 09:41:08 -08:00
subr_capability.c
subr_clock.c
subr_clockcalib.c clockcalib: Fix an overflow bug 2022-01-20 08:23:38 -05:00
subr_compressor.c Fix gzip compressed core dumps on big endian architectures 2022-02-10 09:34:37 -06:00
subr_counter.c
subr_coverage.c
subr_csan.c Built all KCSAN atomic interceptors on arm64 2022-02-23 14:45:47 +00:00
subr_devmap.c
subr_devstat.c
subr_disk.c
subr_dummy_vdso_tc.c
subr_early.c
subr_epoch.c Revert "wpa: Import wpa_supplicant/hostapd commit 14ab4a816" 2021-12-02 14:45:04 -08:00
subr_eventhandler.c
subr_fattime.c
subr_filter.c
subr_firmware.c
subr_gtaskqueue.c
subr_hash.c
subr_hints.c
subr_intr.c intrng: Use less confusing return value for intr_pic_add_handler 2022-01-03 17:08:44 +00:00
subr_kdb.c Restore variable aliasing in the context of cpu set operations 2022-01-01 11:58:40 +01:00
subr_kobj.c kobj: plug set-but-not-used vars 2021-12-14 14:52:25 +00:00
subr_lock.c
subr_log.c
subr_mchain.c
subr_module.c
subr_msan.c
subr_msgbuf.c Make msgbuf_peekbytes() not return leading zeroes. 2021-12-10 23:35:53 -05:00
subr_param.c
subr_pcpu.c
subr_pctrie.c
subr_physmem.c
subr_pidctrl.c
subr_power.c
subr_prf.c dmesg: detect wrapped msgbuf on the kernel side and if so, skip first line 2022-02-05 13:35:31 -08:00
subr_prng.c
subr_prof.c
subr_rangeset.c
subr_rman.c
subr_rtc.c
subr_sbuf.c
subr_scanf.c
subr_sfbuf.c
subr_sglist.c
subr_sleepqueue.c sleepqueue: Annotate sleepq_max_depth as static 2022-02-14 10:06:47 -05:00
subr_smp.c Make CPU_SET macros compliant with other implementations 2021-12-30 12:20:32 +01:00
subr_smr.c
subr_stack.c
subr_stats.c
subr_syscall.c proc: load/store p_cowgen using atomic primitives 2022-02-13 13:07:08 +00:00
subr_taskqueue.c
subr_terminal.c
subr_trap.c proc: load/store p_cowgen using atomic primitives 2022-02-13 13:07:08 +00:00
subr_turnstile.c
subr_uio.c
subr_unit.c
subr_vmem.c
subr_witness.c Revert "wpa: Import wpa_supplicant/hostapd commit 14ab4a816" 2021-12-02 14:45:04 -08:00
sys_capability.c fd: rename fget*_locked to fget*_noref 2022-02-22 18:53:43 +00:00
sys_eventfd.c
sys_generic.c fd: rename fget*_locked to fget*_noref 2022-02-22 18:53:43 +00:00
sys_getrandom.c
sys_pipe.c
sys_procdesc.c
sys_process.c proc: Remove assertion that P_WEXIT is not set in proc_rwmem() 2022-03-01 15:09:45 -05:00
sys_socket.c socket: plug set-but-not-used vars 2021-12-14 17:12:53 +00:00
syscalls.c Regen 2021-12-09 02:49:10 +02:00
syscalls.master swapoff: add one more variant of the syscall 2021-12-09 02:48:46 +02:00
systrace_args.c Regen 2021-12-09 02:49:10 +02:00
sysv_ipc.c
sysv_msg.c
sysv_sem.c
sysv_shm.c Make SHMMAXPGS an unsigned long 2022-03-21 10:27:35 +00:00
tty_compat.c
tty_info.c tty_info: Avoid warning by using logical instead of bitwise operators 2022-02-08 21:21:04 +01:00
tty_inq.c
tty_outq.c
tty_pts.c
tty_tty.c
tty_ttydisc.c
tty.c fd: rename fget*_locked to fget*_noref 2022-02-22 18:53:43 +00:00
uipc_accf.c
uipc_debug.c domains: init with standard SYSINIT(9) or VNET_SYSINIT() 2022-01-03 10:15:22 -08:00
uipc_domain.c domains: make domain_init() initialize only global state 2022-01-03 10:15:22 -08:00
uipc_ktls.c ktls: Write-lock the INP when changing a transmit TLS session. 2022-02-11 15:16:25 -08:00
uipc_mbuf2.c mbuf_tags: use explicitly sized type for 'type' parameter 2021-12-29 09:23:52 +01:00
uipc_mbuf.c mbuf(9): Assert receive mbufs don't carry a send tag. 2022-01-26 12:55:00 +01:00
uipc_mbufhash.c
uipc_mqueue.c fd: rename fget*_locked to fget*_noref 2022-02-22 18:53:43 +00:00
uipc_sem.c
uipc_shm.c Eliminate curlen, it's set but never used 2022-02-27 09:02:45 -07:00
uipc_sockbuf.c mbuf(9): Assert receive mbufs don't carry a send tag. 2022-01-26 12:55:00 +01:00
uipc_socket.c ktls: Disallow transmitting empty frames outside of TLS 1.0/CBC mode 2022-02-08 12:40:41 -05:00
uipc_syscalls.c sendto: don't clear transient errors for atomic protocols 2022-02-23 10:24:14 -08:00
uipc_usrreq.c fd: rename fget*_locked to fget*_noref 2022-02-22 18:53:43 +00:00
vfs_acl.c vfs: remove the unused thread argument from NDINIT* 2021-11-25 22:50:42 +00:00
vfs_aio.c
vfs_bio.c buf_alloc(): Stop using LK_NOWAIT, use LK_NOWITNESS 2022-03-06 10:29:31 -05:00
vfs_cache.c cache: add a comment about a realpath bug 2022-03-19 15:11:25 +00:00
vfs_cluster.c
vfs_default.c vfs: fully lockless v_writecount adjustment 2021-11-27 23:07:26 +00:00
vfs_export.c
vfs_extattr.c vfs: remove the unused thread argument from NDINIT* 2021-11-25 22:50:42 +00:00
vfs_hash.c
vfs_init.c vfs_unregister: fix error handling 2022-02-25 12:19:14 -06:00
vfs_lookup.c vfs: retire the no longer used MNTK_LOOKUP_EXCL_DOTDOT flag 2022-03-19 10:47:29 +00:00
vfs_mount.c Add vfs_remount_ro() 2022-01-08 05:41:44 +02:00
vfs_mountroot.c vfs_mountroot: Check for root dev before waiting 2021-12-29 12:41:09 -08:00
vfs_subr.c vfs: replace VFS_NOTIFY_UPPER_* macros with an enum 2022-03-19 13:15:55 +00:00
vfs_syscalls.c fd: make fget_unlocked take a thread argument 2022-02-11 12:29:26 +00:00
vfs_vnops.c
vnode_if.src Change VOP_READDIR's cookies argument to a **uint64_t 2021-12-15 20:54:57 -07:00