Re: [PATCH bpf] bpf: Drop task_to_inode and inet_conn_established from lsm sleepable hooks

From: patchwork-bot+netdevbpf

Date: Tue Apr 07 2026 - 11:00:50 EST


Hello:

This patch was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast@xxxxxxxxxx>:

On Tue, 7 Apr 2026 20:23:33 +0800 you wrote:
> bpf_lsm_task_to_inode() is called under rcu_read_lock() and
> bpf_lsm_inet_conn_established() is called from softirq context, so
> neither hook can be used by sleepable LSM programs.
>
> Fixes: 423f16108c9d8 ("bpf: Augment the set of sleepable LSM hooks")
> Reported-by: Quan Sun <2022090917019@xxxxxxxxxxxxxxxx>
> Reported-by: Yinhao Hu <dddddd@xxxxxxxxxxx>
> Reported-by: Kaiyan Mei <M202472210@xxxxxxxxxxx>
> Reported-by: Dongliang Mu <dzm91@xxxxxxxxxxx>
> Closes: https://lore.kernel.org/bpf/3ab69731-24d1-431a-a351-452aafaaf2a5@xxxxxxxxxxxxxxxx/T/#u
> Signed-off-by: Jiayuan Chen <jiayuan.chen@xxxxxxxxx>
>
> [...]

Here is the summary with links:
- [bpf] bpf: Drop task_to_inode and inet_conn_established from lsm sleepable hooks
https://git.kernel.org/bpf/bpf-next/c/beaf0e96b1da

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html