summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorRyan Lee <ryan.lee@canonical.com>2025-05-01 22:54:38 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-08-15 13:05:05 +0300
commit1a6dddad95ed460161df813ba7f935f2a7e75fa1 (patch)
treec1fba58f5e93a5ae4ce3e63fabe677a10acb850b /include/linux
parentc081d6ad9fcf4adec1616759603c7fd215d7d032 (diff)
downloadlinux-1a6dddad95ed460161df813ba7f935f2a7e75fa1.tar.xz
apparmor: ensure WB_HISTORY_SIZE value is a power of 2
[ Upstream commit 6c055e62560b958354625604293652753d82bcae ] 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: 136db994852a ("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>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions