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

2019-05-28 Thread Daniel Borkmann
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 > an

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

2019-05-25 Thread Yonghong Song
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 ea