Re: [PATCHv2 bpf-next] selftests/bpf: Fix stat probe in d_path test

2020-09-22 Thread Jiri Olsa
On Mon, Sep 21, 2020 at 04:32:13PM -0700, Alexei Starovoitov wrote: > On Fri, Sep 18, 2020 at 4:23 AM Jiri Olsa wrote: > > > > Some kernels builds might inline vfs_getattr call within fstat > > syscall code path, so fentry/vfs_getattr trampoline is not called. > > > > Alexei suggested [1] we shoul

Re: [PATCHv2 bpf-next] selftests/bpf: Fix stat probe in d_path test

2020-09-21 Thread Alexei Starovoitov
On Fri, Sep 18, 2020 at 4:23 AM Jiri Olsa wrote: > > Some kernels builds might inline vfs_getattr call within fstat > syscall code path, so fentry/vfs_getattr trampoline is not called. > > Alexei suggested [1] we should use security_inode_getattr instead, > because it's less likely to get inlined.

[PATCHv2 bpf-next] selftests/bpf: Fix stat probe in d_path test

2020-09-18 Thread Jiri Olsa
Some kernels builds might inline vfs_getattr call within fstat syscall code path, so fentry/vfs_getattr trampoline is not called. Alexei suggested [1] we should use security_inode_getattr instead, because it's less likely to get inlined. Using this idea also for vfs_truncate (replaced with securit