freebsd-dev/sys/geom/eli
Alan Somers 2a2306099d geli: fix a livelock during panic
During any kind of shutdown, kern_reboot calls geli's pre_sync event hook,
which tries to destroy all unused geli devices. But during a panic, geli
can't destroy any devices, because the scheduler is stopped, so it can't
switch threads. A livelock results, and the system never dumps core.

This commit fixes the problem by refusing to destroy any devices during
panic, used or otherwise.

PR:		246207
Reviewed by:	jhb
MFC after:	2 weeks
Sponsored by:	Axcient
Differential Revision:	https://reviews.freebsd.org/D24697
2020-05-27 19:13:26 +00:00
..
g_eli_crypto.c Add support for optional separate output buffers to in-kernel crypto. 2020-05-25 22:12:04 +00:00
g_eli_ctl.c Remove support for geli(4) algorithms deprecated in r348206. 2020-04-15 00:14:50 +00:00
g_eli_hmac.c geli: style nits 2019-06-12 19:29:48 +00:00
g_eli_integrity.c Add support for optional separate output buffers to in-kernel crypto. 2020-05-25 22:12:04 +00:00
g_eli_key_cache.c Implement automatic online expansion of GELI providers - if the underlying 2019-04-03 23:57:37 +00:00
g_eli_key.c Introduce the 'n' flag for the geli attach command. 2018-05-09 20:53:38 +00:00
g_eli_privacy.c Add support for optional separate output buffers to in-kernel crypto. 2020-05-25 22:12:04 +00:00
g_eli.c geli: fix a livelock during panic 2020-05-27 19:13:26 +00:00
g_eli.h Mark eli_metadata_crypto_supported inline. 2020-04-15 18:27:28 +00:00
pkcs5v2.c geli: partially revert r348709 2019-06-12 19:29:12 +00:00
pkcs5v2.h geli: partially revert r348709 2019-06-12 19:29:12 +00:00