freebsd-src/tests/sys
Mariusz Zaborski 4b3141f5d5 geli: allocate a UMA pool earlier
The functions g_eli_init_uma and g_eli_fini_uma are used to trace
the number of devices in GELI. There is an issue where the g_eli_create
function may fail before g_eli_init_uma is called, however
g_eli_fini_uma is still executed in the fail path. This can
incorrectly decrease the device count to zero, potentially leading to
the UMA pool being freed. Accessing the device after the pool has been
freed causes a system panic.

This commit resolves the issue by ensuring devices count is increassed
eariler.

PR:		278828
Reported by:	Andre Albsmeier <mail@fbsd2.e4m.org>
Reviewed by:	asomers
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D45225
2024-05-19 14:53:17 +02:00
..
acl
aio
audit
auditpipe
capsicum
cddl
common
compat32
devrandom
fifo
file path_test: fix cap_rights_init usage 2024-02-15 08:58:39 -05:00
fs fusefs: make the tests more robust to changes to maxphys 2024-05-09 11:09:23 -06:00
geom geli: allocate a UMA pool earlier 2024-05-19 14:53:17 +02:00
kern tests/sendfile: test operation on unix/stream socket 2024-05-03 07:45:07 -07:00
kqueue kqueue tests: Add a regression test 2024-01-27 13:51:13 -05:00
mac
mqueue
net if_ovpn: cope with loops 2024-05-13 12:11:06 +02:00
netgraph tests/netgraph: start ng_ksocket(4) tests 2024-03-22 22:44:16 -07:00
netinet netinet tests: basic VRRP tests 2024-05-08 13:19:04 +02:00
netinet6 netinet6 tests: Restore an atf_check invocation 2024-01-27 13:51:14 -05:00
netipsec
netlink tests/netlink: improve recently added netlink_socket:membership 2024-01-10 20:51:53 -08:00
netmap
netpfil pf tests: fix REQUIRED_MODULES typo 2024-05-03 09:51:37 +02:00
opencrypto
pjdfstest
posixshm
ses
sys
vfs
vm soxstack: slience 32-bit gcc warning 2024-05-08 15:51:17 +01:00
vmm
Makefile
Makefile.depend
Makefile.inc