Re: [PATCH 1/2] zram: fix crashes due to use of cpu hotplug multistate

From: Peter Zijlstra
Date: Wed Apr 07 2021 - 10:10:12 EST


On Tue, Apr 06, 2021 at 10:54:23AM -0500, Josh Poimboeuf wrote:

> Same for Red Hat. Unloading livepatch modules seems to work fine, but
> isn't officially supported.
>
> That said, if rmmod is just considered a development aid, and we're
> going to be ignoring bugs, we should make it official with a new
> TAINT_RMMOD.

Another option would be to have live-patch modules leak a module
reference by default, except when some debug sysctl is set or something.
Then only those LP modules loaded while the sysctl is set to 'YOLO' can
be unloaded.