Skip to content

Fix race conditions when reading out policy data

Ondrej Mosnacek selinux 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

v2 from the cover letter

- avoid calling vmalloc_user() under read lock
- add one more patch that fixes another related race condition

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2selinux: fix a race condition in security_read_policy()security/selinux/ss/services.c+9 -14 replies
2/2selinux: fix a race condition in sel_open_policy()security/selinux/include/security.h security/selinux/selinuxfs.c security/selinux/ss/services.c+9 -220 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Fix race conditions when reading out policy data

v2:
- avoid calling vmalloc_user() under read lock
- add one more patch that fixes another related race condition

v1: https://lore.kernel.org/selinux/CAFqZXNvdtpxveqesYMz3ZxoWGd_vi5euqy6c9gzhmdkKgbU-Fg@mail.gmail.com/T/

Ondrej Mosnacek (2):
selinux: fix a race condition in security_read_policy()
selinux: fix a race condition in sel_open_policy()

 security/selinux/include/security.h |  1 -
 security/selinux/selinuxfs.c        | 12 ++++++------
 security/selinux/ss/services.c      | 28 ++++++++++++----------------
 3 files changed, 18 insertions(+), 23 deletions(-)
Signature · 1 line
2.26.2