Skip to content

Add bpf_get_dentry_xattr

Song Liu bpf linux-fsdevel lkml 4 versions – Applied

Status from this message: This series was applied to bpf/bpf-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 3 repliesApplied 3/3
  2. v33 patches 1 replySuperseded
  3. v22 patches 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches22 repliesSuperseded

Changes in v4 from the cover letter

1. Fix selftest build.

Patches in v4 All 3 applied

#Subject and filesSizeRepliesApplied
1/3bpf: Move bpf_get_file_xattr to fs/bpf_fs_kfuncs.cfs/bpf_fs_kfuncs.c kernel/trace/bpf_trace.c+38 -680 repliesApplied
2/3bpf: Add kfunc bpf_get_dentry_xattr() to read xattr from dentryfs/bpf_fs_kfuncs.c+33 -90 repliesApplied
3/3selftests/bpf: Add tests for bpf_get_dentry_xattrtools/testing/selftests/bpf/bpf_kfuncs.h tools/testing/selftests/bpf/prog_tests/fs_kfuncs.c tools/testing/selftests/bpf/progs/test_get_xattr.c+49 -63 repliesApplied

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchChristian Brauner
1/3
2/3A-b
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 bpf-next 0/3] Add bpf_get_dentry_xattr

Add a kfunc to read xattr from dentry. Also add selftest for the new kfunc.

Changes v3 => v4:
1. Fix selftest build.

V3: https://lore.kernel.org/bpf/[email protected]/T/#u

Changes v2 => v3:
1. Move the kfuncs to fs/bpf_fs_kfuncs.c.
2. Fix selftests build error on s390. (Alexei)

v2: https://lore.kernel.org/bpf/[email protected]/T/#u

Changes v1 => v2:
1. Remove 3 kfuncs that are ready yet.

v1: https://lore.kernel.org/linux-fsdevel/[email protected]/T/#u

Song Liu (3):
bpf: Move bpf_get_file_xattr to fs/bpf_fs_kfuncs.c
bpf: Add kfunc bpf_get_dentry_xattr() to read xattr from dentry selftests/bpf: Add tests for bpf_get_dentry_xattr

 fs/bpf_fs_kfuncs.c                            | 62 +++++++++++++++++
 kernel/trace/bpf_trace.c                      | 68 -------------------
 tools/testing/selftests/bpf/bpf_kfuncs.h      |  9 +++
 .../selftests/bpf/prog_tests/fs_kfuncs.c      |  9 ++-
 .../selftests/bpf/progs/test_get_xattr.c      | 37 ++++++++--
 5 files changed, 111 insertions(+), 74 deletions(-)

--
2.43.5