aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dynamic_debug.c
diff options
context:
space:
mode:
authorTycho Andersen <[email protected]>2020-09-02 14:09:53 +0000
committerKees Cook <[email protected]>2020-09-08 18:30:16 +0000
commite839317900e9f13c83d8711d684de88c625b307a (patch)
tree2b62afa93e55a872f5fa56e6f36bbd48a8b080e7 /lib/dynamic_debug.c
parentmailmap, MAINTAINERS: move to tycho.pizza (diff)
downloadkernel-e839317900e9f13c83d8711d684de88c625b307a.tar.gz
kernel-e839317900e9f13c83d8711d684de88c625b307a.zip
seccomp: don't leave dangling ->notif if file allocation fails
Christian and Kees both pointed out that this is a bit sloppy to open-code both places, and Christian points out that we leave a dangling pointer to ->notif if file allocation fails. Since we check ->notif for null in order to determine if it's ok to install a filter, this means people won't be able to install a filter if the file allocation fails for some reason, even if they subsequently should be able to. To fix this, let's hoist this free+null into its own little helper and use it. Reported-by: Kees Cook <[email protected]> Reported-by: Christian Brauner <[email protected]> Signed-off-by: Tycho Andersen <[email protected]> Acked-by: Christian Brauner <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Kees Cook <[email protected]>
Diffstat (limited to 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions