[PATCH 0/2] bpf: classify block device hooks and add selftests

Christian Brauner posted 2 patches 1 month, 1 week ago
There is a newer version of this series
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(+)
[PATCH 0/2] bpf: classify block device hooks and add selftests
Posted by Christian Brauner 1 month, 1 week ago
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
Re: [PATCH 0/2] bpf: classify block device hooks and add selftests
Posted by Christian Brauner 1 week, 3 days ago
On Fri, Feb 20, 2026 at 06:48:47PM +0100, Christian Brauner wrote:
> 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>
> ---

Is there anything left to do for me here or is that good to do?