1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-15 15:06:42 +00:00
freebsd/sys/kern
Edward Tomasz Napierala a8723fb881 The freebsd4_getfsstat() was broken in r281551 to always return 0 on success.
All versions of getfsstat(3) are supposed to return the number of [o]statfs
structs in the array that was copied out.

Also fix missing bounds checking and signed comparison of unsigned types.

Submitted by:	bde@
MFC after:	1 month
Sponsored by:	The FreeBSD Foundation
2015-11-20 14:08:12 +00:00
..
bus_if.m Add a note to the effect that BUS_ADD_CHILD calls 2015-10-28 18:53:18 +00:00
capabilities.conf
clock_if.m
cpufreq_if.m
device_if.m
genassym.sh genassym.sh: call nm(1) with NMFLAGS. 2015-08-14 22:57:13 +00:00
imgact_aout.c
imgact_binmisc.c
imgact_elf32.c
imgact_elf64.c
imgact_elf.c Extend r270123 to run the brand info's header_supported() routine for 2015-11-18 17:03:22 +00:00
imgact_gzip.c
imgact_shell.c
inflate.c
init_main.c Remove now obsolete comment. 2015-08-28 20:06:58 +00:00
init_sysent.c Missing regen after last change to sys/kern/syscalls.master. 2015-10-22 21:30:39 +00:00
kern_acct.c
kern_alq.c
kern_clock.c
kern_clocksource.c
kern_condvar.c
kern_conf.c
kern_cons.c
kern_context.c
kern_cpu.c
kern_cpuset.c
kern_ctf.c
kern_descrip.c fd: implement kern.proc.nfds sysctl 2015-11-07 00:18:14 +00:00
kern_dtrace.c
kern_dump.c - Unbreak dumpsys(9) on sparc64 after r276772 2015-11-16 23:02:33 +00:00
kern_environment.c
kern_et.c
kern_event.c kqueue: simplify kern_kqueue by not refing/unrefing creds too early 2015-09-23 12:45:08 +00:00
kern_exec.c Fix core corruption caused by race in note_procstat_vmmap 2015-10-06 18:07:00 +00:00
kern_exit.c Enforce the maxproc limitation before allocating struct proc, initial 2015-10-08 11:07:09 +00:00
kern_fail.c
kern_ffclock.c
kern_fork.c Add a way to distinguish between forking and thread creation in schedtail. 2015-10-22 09:33:34 +00:00
kern_gzio.c
kern_hhook.c
kern_idle.c
kern_intr.c
kern_jail.c Speed up rctl operation with large rulesets, by holding the lock 2015-11-15 12:10:51 +00:00
kern_khelp.c
kern_kthread.c
kern_ktr.c
kern_ktrace.c
kern_linker.c Export various helper variables describing the layout and size of 2015-11-12 22:00:59 +00:00
kern_lock.c
kern_lockf.c
kern_lockstat.c
kern_loginclass.c Speed up rctl operation with large rulesets, by holding the lock 2015-11-15 12:10:51 +00:00
kern_malloc.c Consistently enforce the restriction against calling malloc/free when in a 2015-11-19 14:04:53 +00:00
kern_mbuf.c
kern_mib.c Export various helper variables describing the layout and size of 2015-11-12 22:00:59 +00:00
kern_module.c Provide better debug message on kernel module name clash. 2015-10-10 09:21:55 +00:00
kern_mtxpool.c
kern_mutex.c
kern_ntptime.c
kern_numa.c
kern_osd.c
kern_physio.c Add missing NULL check in physio(). 2015-10-29 13:53:37 +00:00
kern_pmc.c
kern_poll.c
kern_priv.c
kern_proc.c Export various helper variables describing the layout and size of 2015-11-12 22:00:59 +00:00
kern_procctl.c If process becomes reaper (procctl(PROC_REAP_ACQUIRE)) while already 2015-08-20 22:44:26 +00:00
kern_prot.c
kern_racct.c Speed up rctl operation with large rulesets, by holding the lock 2015-11-15 12:10:51 +00:00
kern_rangelock.c
kern_rctl.c Speed up rctl operation with large rulesets, by holding the lock 2015-11-15 12:10:51 +00:00
kern_resource.c Speed up rctl operation with large rulesets, by holding the lock 2015-11-15 12:10:51 +00:00
kern_rmlock.c Threads holding a read lock of a sleepable rm lock are not permitted 2015-09-15 22:16:21 +00:00
kern_rwlock.c
kern_sdt.c
kern_sema.c
kern_sharedpage.c
kern_shutdown.c Disable suspend when we're shutting down. This solves the "tell FreeBSD 2015-10-01 10:52:26 +00:00
kern_sig.c save some bytes by using more concise SDT_PROBE<n> instead of SDT_PROBE 2015-09-28 12:14:16 +00:00
kern_switch.c
kern_sx.c
kern_synch.c
kern_syscalls.c
kern_sysctl.c Flesh out sysctl types further (follow-up of r290475) 2015-11-07 18:26:32 +00:00
kern_tc.c Define fhard in pps_event(..) only when PPS_SYNC is defined to mute 2015-11-02 03:14:37 +00:00
kern_thr.c
kern_thread.c Mark struct thread zone as type-stable. 2015-10-20 20:29:21 +00:00
kern_time.c
kern_timeout.c Add new async_drain to the callout system. This is so-far not used but 2015-11-10 14:49:32 +00:00
kern_umtx.c Minor (and incomplete) style cleanup. 2015-10-30 20:47:42 +00:00
kern_uuid.c
kern_xxx.c
ksched.c Use P1B_PRIO_MAX to designate max posix priority for the RR/FIFO 2015-08-30 18:02:57 +00:00
link_elf_obj.c Add support for weak symbols to the kernel linkers. It means that 2015-09-20 01:27:59 +00:00
link_elf.c Have elf_lookup() return an error if the specified non-weak symbol could 2015-11-03 03:29:35 +00:00
linker_if.m
Make.tags.inc Bring the tags and links entries for amd64 up to date. 2015-10-27 22:59:24 +00:00
Makefile
makesyscalls.sh Rename remaining linux32 symbols such as linux_sysent[] and 2015-10-22 21:28:20 +00:00
md4c.c
md5c.c
p1003_1b.c
posix4_mib.c
sched_4bsd.c
sched_ule.c Summary: Add the interactivity equations to the header comment for our 2015-08-26 16:36:41 +00:00
serdev_if.m
stack_protector.c
subr_acl_nfs4.c Expose an interface to determine if an ACE is inherited. 2015-09-04 00:14:20 +00:00
subr_acl_posix1e.c
subr_autoconf.c
subr_blist.c
subr_bufring.c
subr_bus_dma.c
subr_bus.c
subr_busdma_bufalloc.c Fix printf format to allow for bus_size_t not being u_long on all platforms. 2015-10-20 03:25:17 +00:00
subr_capability.c
subr_clock.c
subr_counter.c
subr_devstat.c
subr_disk.c
subr_dummy_vdso_tc.c
subr_eventhandler.c
subr_fattime.c
subr_firmware.c
subr_hash.c
subr_hints.c
subr_kdb.c
subr_kobj.c
subr_lock.c
subr_log.c
subr_mbpool.c
subr_mchain.c
subr_module.c preload_search_info: make sure mod is set 2015-08-21 15:57:57 +00:00
subr_msgbuf.c
subr_param.c Ensure that maxproc does not exceed pid_max, at the time of boot. 2015-09-21 15:02:59 +00:00
subr_pcpu.c
subr_pctrie.c
subr_power.c
subr_prf.c Add vlog(9). 2015-11-19 05:50:22 +00:00
subr_prof.c
subr_rman.c When dumping an rman in DDB, include the RID of each resource. 2015-11-05 23:12:23 +00:00
subr_rtc.c
subr_sbuf.c Fail the sbuf if vsnprintf(3) fails. 2015-10-02 09:23:14 +00:00
subr_scanf.c
subr_sfbuf.c
subr_sglist.c
subr_sleepqueue.c
subr_smp.c Since r289279 bufinit() uses mp_ncpus, but some architectures set this 2015-11-08 14:26:50 +00:00
subr_stack.c Add support for a configurable output channel to witness(4). 2015-11-19 05:56:59 +00:00
subr_syscall.c Add a way to distinguish between forking and thread creation in schedtail. 2015-10-22 09:33:34 +00:00
subr_taskqueue.c This fixes several places where callout_stops return is examined. The 2015-11-13 22:51:35 +00:00
subr_terminal.c
subr_trap.c
subr_turnstile.c
subr_uio.c
subr_unit.c
subr_vmem.c
subr_witness.c Remove a commented-out debug print. 2015-11-19 05:58:51 +00:00
sys_capability.c Introduce kern_cap_rights_limit(). 2015-08-11 08:43:50 +00:00
sys_generic.c
sys_pipe.c
sys_procdesc.c
sys_process.c - Consistently use PROC_ASSERT_HELD() to verify that a process' hold count 2015-11-08 01:38:56 +00:00
sys_socket.c
syscalls.c Missing regen after last change to sys/kern/syscalls.master. 2015-10-22 21:30:39 +00:00
syscalls.master
systrace_args.c
sysv_ipc.c
sysv_msg.c
sysv_sem.c
sysv_shm.c Change the default setting of kern.ipc.shm_allow_removed from 0 to 1. 2015-10-10 09:29:47 +00:00
tty_compat.c
tty_info.c
tty_inq.c
tty_outq.c
tty_pts.c
tty_tty.c
tty_ttydisc.c
tty.c
uipc_accf.c
uipc_debug.c
uipc_domain.c
uipc_mbuf2.c
uipc_mbuf.c There are times when it would be really nice to have a record of the last few 2015-10-14 00:35:37 +00:00
uipc_mbufhash.c
uipc_mqueue.c
uipc_sem.c
uipc_shm.c
uipc_sockbuf.c
uipc_socket.c
uipc_syscalls.c
uipc_usrreq.c fd: make the common case in filecaps_copy work lockless 2015-09-07 20:02:56 +00:00
vfs_acl.c
vfs_aio.c The aio_waitcomplete(2) syscall should not sleep when the given timeout 2015-10-25 18:48:09 +00:00
vfs_bio.c Add a sched_yield() to work around low memory conditions in the current code. 2015-11-07 04:04:00 +00:00
vfs_cache.c save some bytes by using more concise SDT_PROBE<n> instead of SDT_PROBE 2015-09-28 12:14:16 +00:00
vfs_cluster.c
vfs_default.c Ensure that vop_stdadvise() does not call getblk() on vnodes that have an 2015-10-01 16:34:53 +00:00
vfs_export.c
vfs_extattr.c
vfs_hash.c Track changes to kern.maxvnodes and appropriately increase or decrease 2015-09-06 05:50:51 +00:00
vfs_init.c sysctl: switch sysctllock to a sleepable rmlock, take 2 2015-09-15 23:06:56 +00:00
vfs_lookup.c save some bytes by using more concise SDT_PROBE<n> instead of SDT_PROBE 2015-09-28 12:14:16 +00:00
vfs_mount.c Make vfs_unmountall() unmount /dev after /, not before. The only 2015-08-24 13:18:13 +00:00
vfs_mountroot.c After r290196, the kernel won't wait for stuff like gmirror nodes 2015-10-30 15:52:10 +00:00
vfs_subr.c Remove a check for a condition that is always false by a preceding KASSERT 2015-09-26 22:26:55 +00:00
vfs_syscalls.c The freebsd4_getfsstat() was broken in r281551 to always return 0 on success. 2015-11-20 14:08:12 +00:00
vfs_vnops.c Fix r283998 that broke mapin events for hwpmc. 2015-10-08 09:54:33 +00:00
vnode_if.src kevent(2): Note DOOMED vnodes with NOTE_REVOKE 2015-09-15 20:22:30 +00:00