]> git.baikalelectronics.ru Git - kernel.git/commit
trace: reenable preemption if we modify the ip
authorJosef Bacik <jbacik@fb.com>
Sat, 16 Dec 2017 02:42:57 +0000 (21:42 -0500)
committerDaniel Borkmann <daniel@iogearbox.net>
Sun, 17 Dec 2017 19:47:32 +0000 (20:47 +0100)
commitcdc48ba14e2138c7042410cb7c30fdc35bc6619e
treef9a0fcd0e875ddaa5bf6317a2937d568e8417d07
parent87f5747f89d6c14d9f861429c0404e64d73ff318
trace: reenable preemption if we modify the ip

Things got moved around between the original bpf_override_return patches
and the final version, and now the ftrace kprobe dispatcher assumes if
you modified the ip that you also enabled preemption.  Make a comment of
this and enable preemption, this fixes the lockdep splat that happened
when using this feature.

Fixes: f9fa0ace03e2 ("bpf: add a bpf_override_function helper")
Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
kernel/trace/trace_kprobe.c