]> git.baikalelectronics.ru Git - kernel.git/commit
LSM: Add 'name' field for SafeSetID in DEFINE_LSM
authorMicah Morton <mortonm@chromium.org>
Mon, 28 Jan 2019 20:30:56 +0000 (12:30 -0800)
committerJames Morris <james.morris@microsoft.com>
Mon, 28 Jan 2019 22:06:50 +0000 (14:06 -0800)
commit2b46ebec23c1b88772a4505472d15c3721aed804
tree89952a2dcc3309f8222c579242634d0b7bbcc95d
parentf5e99b18e24461a4505e7bb18a1eb475d194e50f
LSM: Add 'name' field for SafeSetID in DEFINE_LSM

Without this, system boot was crashing with:

[0.174285] LSM: Security Framework initializing
[0.175277] BUG: unable to handle kernel NULL pointer dereference
...
[0.176272] Call Trace:
[0.176272]  ordered_lsm_parse+0x112/0x20b
[0.176272]  security_init+0x9b/0x3ab
[0.176272]  start_kernel+0x413/0x479
[0.176272]  secondary_startup_64+0xa4/0xb0

Signed-off-by: Micah Morton <mortonm@chromium.org>
Fixed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: James Morris <james.morris@microsoft.com>
security/safesetid/lsm.c