Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

bpf: Fix block device hooks names

Use proper names for block device hooks names.

Fixes: 46df585fcff7 ("bpf: classify block device hooks appropriately")
Reported-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com>
Closes: https://lore.kernel.org/bpf/acrVKUy_EPiFFmV9@krava/T/#m7c7906a1ff4029e29185aec3266dbf5c8996dbf7
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Tested-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com>
Reviewed-by: Christian Brauner <brauner@kernel.org>
Acked-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/bpf/20260330210344.3073712-1-jolsa@kernel.org

authored by

Jiri Olsa and committed by
Daniel Borkmann
9eccdd38 b6b5e0eb

+3 -3
+3 -3
kernel/bpf/bpf_lsm.c
··· 383 383 BTF_ID(func, bpf_lsm_task_setscheduler) 384 384 BTF_ID(func, bpf_lsm_task_to_inode) 385 385 BTF_ID(func, bpf_lsm_userns_create) 386 - BTF_ID(func, bpf_lsm_bdev_alloc) 386 + BTF_ID(func, bpf_lsm_bdev_alloc_security) 387 387 BTF_ID(func, bpf_lsm_bdev_setintegrity) 388 388 BTF_SET_END(sleepable_lsm_hooks) 389 389 ··· 397 397 BTF_ID(func, bpf_lsm_sk_free_security) 398 398 #endif /* CONFIG_SECURITY_NETWORK */ 399 399 BTF_ID(func, bpf_lsm_task_free) 400 - BTF_ID(func, bpf_lsm_bdev_alloc) 401 - BTF_ID(func, bpf_lsm_bdev_free) 400 + BTF_ID(func, bpf_lsm_bdev_alloc_security) 401 + BTF_ID(func, bpf_lsm_bdev_free_security) 402 402 BTF_SET_END(untrusted_lsm_hooks) 403 403 404 404 bool bpf_lsm_is_sleepable_hook(u32 btf_id)