]> git.itanic.dy.fi Git - linux-stable/commit
stackprotector: move get_random_canary() into stackprotector.h
authorJason A. Donenfeld <Jason@zx2c4.com>
Sun, 23 Oct 2022 20:06:00 +0000 (22:06 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Fri, 18 Nov 2022 01:18:10 +0000 (02:18 +0100)
commitb3883a9a1f09e7b41f4dcb1bbd7262216a62d253
treea3fc9ed3fee27e63a7b93252484e87e7de7cc1bc
parente8a533cbeb79809206f8724e89961e0079508c3c
stackprotector: move get_random_canary() into stackprotector.h

This has nothing to do with random.c and everything to do with stack
protectors. Yes, it uses randomness. But many things use randomness.
random.h and random.c are concerned with the generation of randomness,
not with each and every use. So move this function into the more
specific stackprotector.h file where it belongs.

Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
arch/x86/kernel/cpu/common.c
arch/x86/kernel/setup_percpu.c
arch/x86/kernel/smpboot.c
arch/x86/xen/enlighten_pv.c
include/linux/random.h
include/linux/stackprotector.h
kernel/fork.c