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 <[email protected]>
Applied, thanks!