[PATCH 04/13] bpf: handle errors from resolving the real inode in uprobe_multi

sashiko-bot at kernel.org sashiko-bot at kernel.org
Sun Nov 15 14:06:21 UTC 2026


> d_real() is about to be able to fail for D_REAL_DATA. So switch
> bpf_uprobe_multi_link_attach() from d_real_inode() to
> d_real_data_inode() and deal with the error.
> 
> Currently, the real inode is resolved again for every single uprobe of
> the link. There's no point in doing that. Resolve it once right after
> the d_is_reg() check and fail BPF_LINK_CREATE with the error if the data
> of the file can't be resolved. Then all uprobes of the link are
> registered on the same inode.
> 
> This is a no-op until d_real() can actually fail.
> 
> Signed-off-by: Christian Brauner (Amutable) <brauner at kernel.org>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261115-work-ovl-d_real-v1-0-ca155efbcb2e@kernel.org?part=4




More information about the Linux-security-module-archive mailing list