opnsense-src/sys/fs/tmpfs
Jessica Clarke 3cded05922 tmpfs: Fix OOB write when setting vfs.tmpfs.memory_percent
tmpfs_mem_percent is an int not a long, so on a 64-bit system this
writes 4 bytes past the end of the variable. The read above is correct,
so this was likely a copy paste error from sysctl_mem_reserved.

Found by:	CHERI
Fixes:		636592343c ("tmpfs: increase memory reserve to a percent of available memory + swap")
2024-08-15 20:33:22 +01:00
..
tmpfs.h tmpfs: increase vfs.tmpfs.memory_percent to 100 as workaround 2024-01-23 12:46:31 -06:00
tmpfs_fifoops.c sys: Remove $FreeBSD$: two-line .c pattern 2023-08-16 11:54:30 -06:00
tmpfs_fifoops.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
tmpfs_subr.c tmpfs: Fix OOB write when setting vfs.tmpfs.memory_percent 2024-08-15 20:33:22 +01:00
tmpfs_vfsops.c vm: Remove kernel stack swapping support, part 3 2024-07-29 01:39:49 +00:00
tmpfs_vnops.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
tmpfs_vnops.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00