]> git.baikalelectronics.ru Git - kernel.git/commit
samples/seccomp: improve label helper
authorKees Cook <keescook@chromium.org>
Tue, 17 Feb 2015 21:47:58 +0000 (13:47 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 17 Feb 2015 22:34:55 +0000 (14:34 -0800)
commitb0b930b6641762b36af6574ffe8847d4b760915e
treefc248a3d7edb3e0ef323c9352f6467a476a86b01
parent08bf8009afa25ce9902370ce70ff67b78805541c
samples/seccomp: improve label helper

Fixes a potential corruption with uninitialized stack memory in the
seccomp BPF sample program.

[akpm@linux-foundation.org: coding-style fixlet]
Signed-off-by: Kees Cook <keescook@chromium.org>
Reported-by: Robert Swiecki <swiecki@google.com>
Tested-by: Robert Swiecki <swiecki@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
samples/seccomp/bpf-fancy.c
samples/seccomp/bpf-helper.c