[PATCH v2 05/13] selftests/bpf: handle d_real_data_inode() errors in bpf_testmod

sashiko-bot at kernel.org sashiko-bot at kernel.org
Mon Nov 16 09:49:14 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.
> 
> 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=5




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