Files
linux-stable-mirror/include/linux
Kees Cook dfb2ce9521 randomize_kstack: Improve entropy diffusion
[ Upstream commit 9c573cd313 ]

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:01:48 +02:00
..
2023-07-23 13:46:54 +02:00
2024-01-25 14:52:51 -08:00
2023-12-20 15:17:37 +01:00
2024-04-10 16:19:29 +02:00
2024-04-10 16:19:07 +02:00
2024-04-10 16:18:55 +02:00
2024-04-10 16:18:46 +02:00
2023-11-20 11:08:16 +01:00
2024-04-10 16:18:40 +02:00
2024-04-10 16:19:00 +02:00
2023-08-26 14:23:39 +02:00
2024-01-25 14:52:33 -08:00
2024-02-23 08:54:47 +01:00
2023-11-28 16:56:21 +00:00
2023-10-19 23:05:33 +02:00
2023-10-19 23:05:33 +02:00
2023-12-13 18:36:35 +01:00