[PATCH v2 04/13] bpf: handle errors from resolving the real inode in uprobe_multi
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Mon Nov 16 09:49:51 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.
>
> Acked-by: Alexei Starovoitov <ast at kernel.org>
> 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/20261116-work-ovl-d_real-v2-0-90564c4ae347@kernel.org?part=4
More information about the Linux-security-module-archive
mailing list