Skip to content

Commit 239f0df

Browse files
lorddoskiasNobody
authored and
Nobody
committed
selftest/bpf: Fix vfs_link kprobe definition
Since commit 6521f89 ("namei: prepare for idmapped mounts") vfs_link's prototype was changed, the kprobe definition in profiler selftest in turn wasn't updated. The result is that all argument after the first are now stored in different registers. This means that self-test has been broken ever since. Fix it by updating the kprobe definition accordingly. Signed-off-by: Nikolay Borisov <[email protected]>
1 parent 143671b commit 239f0df

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools/testing/selftests/bpf/progs/profiler.inc.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -826,8 +826,9 @@ int kprobe_ret__do_filp_open(struct pt_regs* ctx)
826826

827827
SEC("kprobe/vfs_link")
828828
int BPF_KPROBE(kprobe__vfs_link,
829-
struct dentry* old_dentry, struct inode* dir,
830-
struct dentry* new_dentry, struct inode** delegated_inode)
829+
struct dentry* old_dentry, struct user_namespace *mnt_userns,
830+
struct inode* dir, struct dentry* new_dentry,
831+
struct inode** delegated_inode)
831832
{
832833
struct bpf_func_stats_ctx stats_ctx;
833834
bpf_stats_enter(&stats_ctx, profiler_bpf_vfs_link);

0 commit comments

Comments
 (0)