Files
linux-cix/include/linux
Kees Cook 300a2b9c2b randomize_kstack: Improve entropy diffusion
[ Upstream commit 9c573cd313433f6c1f7236fe64b9b743500c1628 ]

The kstack_offset variable was really only ever using the low bits for
kernel stack offset entropy. Add a ror32() to increase bit diffusion.

Suggested-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 39218ff4c6 ("stack: Optionally randomize kernel stack offset each syscall")
Link: https://lore.kernel.org/r/20240309202445.work.165-kees@kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-04-13 13:07:40 +02:00
..
2024-01-25 15:35:39 -08:00
2023-11-28 17:19:55 +00:00
2024-03-26 18:19:40 -04:00
2024-04-03 15:28:18 +02:00
2024-03-26 18:20:13 -04:00
2024-04-03 15:28:29 +02:00
2023-11-20 11:58:53 +01:00
2024-02-05 20:14:27 +00:00
2023-11-28 17:19:54 +00:00
2023-09-29 17:20:46 -07:00
2023-11-28 17:19:48 +00:00
2023-10-06 11:01:23 +02:00
2023-10-06 11:01:23 +02:00
2024-01-31 16:19:01 -08:00
2023-11-28 17:19:38 +00:00
2024-01-31 16:18:47 -08:00