Skip to content

Small memory-leak patchset

Paul Moore netdev selinux 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2SELinux: remove redundant pointer checks before calling kfree()security/selinux/hooks.c+1 -20 replies
2/2NET: fix memory leaks from security_secid_to_secctx()net/netlabel/netlabel_user.c net/xfrm/xfrm_policy.c+6 -31 reply

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] Small memory-leak patchset

While doing some other work I found some small memory leaks with the way we are using security_secid_to_secctx() in some of the auditing code paths. We also had a redundant NULL pointer check in the SELinux function which frees the leaked memory. This patchset fixes both of these issues.

This patchset is backed against Linus' tree from this morning and has been lightly tested.

Signature · 2 lines
paul moore
linux security @ hp