tools/nolibc: ensure stack protector guard is never zero
authorThomas Weißschuh <linux@weissschuh.net>
Sun, 21 May 2023 09:36:31 +0000 (11:36 +0200)
committerPaul E. McKenney <paulmck@kernel.org>
Fri, 9 Jun 2023 18:46:08 +0000 (11:46 -0700)
commit88fc7eb54ecc6db8b773341ce39ad201066fa7da
treeb4c5eb62c9f06d045c4daf6d0fe85287af3ddfec
parent7a9b2345202a14dfec9081994486156f7a691513
tools/nolibc: ensure stack protector guard is never zero

The all-zero pattern is one of the more probable out-of-bound writes so
add a special case to not accidentally accept it.

Also it enables the reliable detection of stack protector initialization
during testing.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
tools/include/nolibc/stackprotector.h