linux-yocto/security
Ryan Lee 1a6dddad95 apparmor: ensure WB_HISTORY_SIZE value is a power of 2
[ Upstream commit 6c055e6256 ]

WB_HISTORY_SIZE was defined to be a value not a power of 2, despite a
comment in the declaration of struct match_workbuf stating it is and a
modular arithmetic usage in the inc_wb_pos macro assuming that it is. Bump
WB_HISTORY_SIZE's value up to 32 and add a BUILD_BUG_ON_NOT_POWER_OF_2
line to ensure that any future changes to the value of WB_HISTORY_SIZE
respect this requirement.

Fixes: 136db99485 ("apparmor: increase left match history buffer size")

Signed-off-by: Ryan Lee <ryan.lee@canonical.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-08-15 12:05:05 +02:00
..
apparmor apparmor: ensure WB_HISTORY_SIZE value is a power of 2 2025-08-15 12:05:05 +02:00
bpf bpf: lsm: Set bpf_lsm_blob_sizes.lbs_task to 0 2024-10-17 15:21:27 +02:00
integrity ima: fix buffer overrun in ima_eventdigest_init_common 2024-11-22 15:37:31 +01:00
keys security/keys: fix slab-out-of-bounds in key_task_permission 2024-11-14 13:15:11 +01:00
landlock landlock: Add the errata interface 2025-04-25 10:44:02 +02:00
loadpin
lockdown
safesetid safesetid: check size of policy writes 2025-02-21 13:49:31 +01:00
selinux selinux: fix selinux_xfrm_alloc_user() to set correct ctx_len 2025-06-27 11:07:37 +01:00
smack smack: recognize ipv4 CIPSO w/o categories 2025-06-04 14:40:14 +02:00
tomoyo tomoyo: don't emit warning in tomoyo_write_control() 2025-02-21 13:49:31 +01:00
yama
commoncap.c
device_cgroup.c
inode.c
Kconfig proc: add config & param to block forcing mem writes 2024-10-17 15:21:39 +02:00
Kconfig.hardening
lsm_audit.c
Makefile
min_addr.c
security.c ima: Avoid blocking in RCU read-side critical section 2024-07-11 12:47:16 +02:00