[PATCH 05/13] selftests/bpf: handle d_real_data_inode() errors in bpf_testmod
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Sun Nov 15 14:05:53 UTC 2026
> d_real() is about to be able to fail for D_REAL_DATA. So switch
> testmod_register_uprobe() from d_real_inode() to d_real_data_inode()
> and drop the path again if the data of /proc/self/exe can't be
> resolved.
>
> That's hard to hit in practice because exec opened the file already but
> it is the only modular user and d_real_inode() is going away.
>
> 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=5
More information about the Linux-security-module-archive
mailing list