Skip to content

security,selinux,smack: kill security_task_wait hook

Alexander Grund stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1security,selinux,smack: kill security_task_wait hookinclude/linux/lsm_hooks.h include/linux/security.h kernel/exit.c +3 more+2 -622 replies

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchCasey SchauflerOleg Nesterov
1/1A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 4.9 0/1] security,selinux,smack: kill security_task_wait hook

The following (backported) patch removes a hook which has already been removed upstream. [1] Reason is that a permission denial can lead to soft lockups and zombies.
A reproducer can be found in the initial report. [2]
I hence consider this a bugfix which is allowed for stable branches.

Background:
To reduce divergence of 4.9 to upstream before proposing to apply upstream commit 3dfc9b02864bt (LSM: Initialize security_hook_heads upon registration.) I'm checking which changes to the LSM hooks may be applicable to 4.9 as doing so after backporting 33dfc9b02864bt will lead to conflicts for each such commit.

[1] https://patchwork.kernel.org/project/linux-security-module/patch/[email protected]/
[2] https://patchwork.kernel.org/project/selinux/patch/[email protected]

Stephen Smalley (1):
security,selinux,smack: kill security_task_wait hook

 include/linux/lsm_hooks.h  |  7 -------
 include/linux/security.h   |  6 ------
 kernel/exit.c              | 19 ++-----------------
 security/security.c        |  6 ------
 security/selinux/hooks.c   |  6 ------
 security/smack/smack_lsm.c | 20 --------------------
 6 files changed, 2 insertions(+), 62 deletions(-)
Signature · 1 line
2.25.1