Thread (2 messages) flat view 2 messages, 2 authors, 2019-05-28

Re: [PATCH bpf-next] bpf: check signal validity in nmi for bpf_send_signal() helper

From: Daniel Borkmann <daniel@iogearbox.net>
Date: 2019-05-28 09:24:43
Also in: bpf

On 05/25/2019 08:57 PM, Yonghong Song wrote:
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.

Signed-off-by: Yonghong Song <redacted>
Applied, thanks!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help