]> git.ipfire.org Git - thirdparty/xtables-addons.git/commit
xt_SYSRQ: use SHASH_DESC_ON_STACK
authorMatt Lawson <mlawson27@live.com>
Wed, 13 Mar 2024 16:21:19 +0000 (12:21 -0400)
committerJan Engelhardt <jengelh@inai.de>
Fri, 22 Mar 2024 16:02:11 +0000 (17:02 +0100)
commit0136b35b26b2460c4ff87149d22d1bfbb356c8e4
tree9338ce4675213575bdd671c2bb17ec882ea48bb3
parenta5b9baeee87c17ec79113cb51e4316e6ce468253
xt_SYSRQ: use SHASH_DESC_ON_STACK

Similar to https://codeberg.org/jengelh/xtables-addons/issues/11, the
use of the crypto library in the xt_SYSRQ causes memory corruption
and in my case, causes the kernel to lock up.

Declaring the struct shash_desc variable using the
SHASH_DESC_ON_STACK macro appears to fix the issue at least for me.
extensions/xt_SYSRQ.c