diff options
author | Yonghong Song | 2019-05-25 20:57:53 +0200 |
---|---|---|
committer | Daniel Borkmann | 2019-05-28 10:51:33 +0200 |
commit | e1afb70252a8614e1ef7aec05ff1b84fd324b782 (patch) | |
tree | f8c6ffc8af4675f6e90878073ca03f59072ac420 /tools/bpf | |
parent | bpftool: auto-complete BTF IDs for btf dump (diff) | |
download | kernel-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