summaryrefslogtreecommitdiffstats
path: root/tools/bpf
diff options
context:
space:
mode:
authorYonghong Song2019-05-25 20:57:53 +0200
committerDaniel Borkmann2019-05-28 10:51:33 +0200
commite1afb70252a8614e1ef7aec05ff1b84fd324b782 (patch)
treef8c6ffc8af4675f6e90878073ca03f59072ac420 /tools/bpf
parentbpftool: auto-complete BTF IDs for btf dump (diff)
downloadkernel-qcow2-linux-e1afb70252a8614e1ef7aec05ff1b84fd324b782.tar.gz
kernel-qcow2-linux-e1afb70252a8614e1ef7aec05ff1b84fd324b782.tar.xz
kernel-qcow2-linux-e1afb70252a8614e1ef7aec05ff1b84fd324b782.zip
bpf: check signal validity in nmi for bpf_send_signal() helper
Commit 8b401f9ed244 ("bpf: implement bpf_send_signal() helper") introduced bpf_send_signal() helper. If the context is nmi, the sending signal work needs to be deferred to irq_work. If the signal is invalid, the error will appear in irq_work and it won't be propagated to user. This patch did an early check in the helper itself to notify user invalid signal, as suggested by Daniel. Suggested-by: Daniel Borkmann <daniel@iogearbox.net> Signed-off-by: Yonghong Song <yhs@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'tools/bpf')
0 files changed, 0 insertions, 0 deletions