public inbox for bpf@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] bpf: classify block device hooks and add selftests
@ 2026-02-20 17:48 Christian Brauner
  2026-02-20 17:48 ` [PATCH 1/2] bpf: classify block device hooks appropriately Christian Brauner
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Christian Brauner @ 2026-02-20 17:48 UTC (permalink / raw)
  To: Alexei Starovoitov, Daniel Borkmann, bpf
  Cc: KP Singh, Andrii Nakryiko, Martin KaFai Lau, linux-kernel,
	Christian Brauner

A bunch of new hooks for managing block devices were added a while ago
but they weren't appropriately classified. Classify them and add a test
program so we catch regressions.

Note that for whatever reason building the bpf selftests locally seems
to fail for all kinds of arcane reasons for me. That might just be my
fault. I added a pr against the ci to have the selftests run but to test
this meaningfully it needs veritysetup and dmverity support. I'm not
sure if that's available already.

Signed-off-by: Christian Brauner <brauner@kernel.org>
---
Christian Brauner (2):
      bpf: classify block device hooks appropriately
      selftests/bpf: add block device management selftests

 kernel/bpf/bpf_lsm.c                              |   4 +
 tools/testing/selftests/bpf/prog_tests/lsm_bdev.c | 221 ++++++++++++++++++++++
 tools/testing/selftests/bpf/progs/lsm_bdev.c      |  96 ++++++++++
 3 files changed, 321 insertions(+)
---
base-commit: 42042907fd759c36922defd1befd318c7467fa1d
change-id: 20260220-work-bpf-bdev-ff2c82143d05


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-03-23 14:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-20 17:48 [PATCH 0/2] bpf: classify block device hooks and add selftests Christian Brauner
2026-02-20 17:48 ` [PATCH 1/2] bpf: classify block device hooks appropriately Christian Brauner
2026-02-20 18:28   ` Christoph Hellwig
2026-02-23 13:42     ` Christian Brauner
2026-02-20 17:48 ` [PATCH 2/2] selftests/bpf: add block device management selftests Christian Brauner
2026-03-23 14:22 ` [PATCH 0/2] bpf: classify block device hooks and add selftests Christian Brauner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox