Re: [PATCH] module: fix signature check failures when using in-kernel decompression

From: Luis Chamberlain
Date: Fri Jan 14 2022 - 12:43:13 EST


On Thu, Jan 13, 2022 at 04:51:52PM -0800, Dmitry Torokhov wrote:
> The new flag MODULE_INIT_COMPRESSED_FILE unintentionally trips check in
> module_sig_check(). The check was supposed to catch case when version
> info or magic was removed from a signed module, making signature
> invalid, but it was coded too broadly and was catching this new flag as
> well.
>
> Change the check to only test the 2 particular flags affecting signature
> validity.
>
> Fixes: b1ae6dc41eaa ("module: add in-kernel support for decompressing")
> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>

Queued on to modules-next.

Luis