Improve the check of SCHED_STACK_END_CHECK.
authorAlexander Popov <alex.popov@linux.com>
Tue, 16 Jan 2024 19:57:47 +0000 (22:57 +0300)
committerAlexander Popov <alex.popov@linux.com>
Tue, 16 Jan 2024 19:57:47 +0000 (22:57 +0300)
commitc0fc9e89d7a21dfd734bc6c3b946f835493502ca
tree6921172cb3374ce2a563bb0e837a59cae4e104b7
parentbd43103399c363609ec6d4f5650c64bd58768dba
Improve the check of SCHED_STACK_END_CHECK.

SCHED_STACK_END_CHECK checks the magic value at the end
of the kernel thread stack, and VMAP_STACK adds guard pages near it.
So they do a bit different things, but VMAP_STACK is more reliable.

Thanks to @thestinger for the idea.

Refers to #98.
kernel_hardening_checker/checks.py