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)
commit3a9af0bd34410a255d27024ea1bc28dc4e3a0044
treefc248a3d7edb3e0ef323c9352f6467a476a86b01
parent52644c9ab3faefbfbf07a19c24c4e74e33cfd796
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