diff options
author | Yonghong Song <yhs@fb.com> | 2019-05-25 21:57:53 +0300 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2019-05-28 11:51:33 +0300 |
commit | e1afb70252a8614e1ef7aec05ff1b84fd324b782 (patch) | |
tree | f8c6ffc8af4675f6e90878073ca03f59072ac420 /tools/bpf | |
parent | 0d97dacc46d9af2daba1af224747d452bd988365 (diff) | |
download | linux-e1afb70252a8614e1ef7aec05ff1b84fd324b782.tar.xz |
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