]> git.baikalelectronics.ru Git - kernel.git/commit
seccomp, bpf: disable preemption before calling into bpf prog
authorAlexei Starovoitov <ast@kernel.org>
Thu, 21 Feb 2019 18:40:14 +0000 (10:40 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 21 Feb 2019 23:14:19 +0000 (00:14 +0100)
commitd31e78f47ccb65493d6e617a8e6d0833c85ee1ce
treeb6484e87e9077adc485a55d7a2baf92640dd9660
parent252362c8d72b24feccfcf6555dee763de052704a
seccomp, bpf: disable preemption before calling into bpf prog

All BPF programs must be called with preemption disabled.

Fixes: 743bac23aae3 ("bpf: check that BPF programs run with preemption disabled")
Reported-by: syzbot+8bf19ee2aa580de7a2a7@syzkaller.appspotmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
kernel/seccomp.c