mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-14 20:37:06 +00:00
4b3141f5d5
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 |
||
---|---|---|
.. | ||
attach_test.sh | ||
conf.sh | ||
configure_test.sh | ||
delkey_test.sh | ||
detach_test.sh | ||
gentestvect.py | ||
hmac_test.c | ||
init_test.sh | ||
integrity_test.sh | ||
kill_test.sh | ||
Makefile | ||
Makefile.depend | ||
misc_test.sh | ||
onetime_test.sh | ||
online_resize_test.sh | ||
reentrancy_test.sh | ||
resize_test.sh | ||
setkey_test.sh | ||
testvect.h | ||
unaligned_io.c |