diff options
| author | Huacai Chen <[email protected]> | 2018-04-05 23:18:18 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2018-04-06 04:36:21 +0000 |
| commit | 7bbaf27d9c83037b6e60a818e57bdbedf6bc15be (patch) | |
| tree | 2a57a429945a5e545daf9d95208f341dc3512f74 /lib/test_bitmap.c | |
| parent | Merge tag 'char-misc-4.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/g... (diff) | |
| download | kernel-7bbaf27d9c83037b6e60a818e57bdbedf6bc15be.tar.gz kernel-7bbaf27d9c83037b6e60a818e57bdbedf6bc15be.zip | |
zboot: fix stack protector in compressed boot phase
Calling __stack_chk_guard_setup() in decompress_kernel() is too late
that stack checking always fails for decompress_kernel() itself. So
remove __stack_chk_guard_setup() and initialize __stack_chk_guard before
we call decompress_kernel().
Original code comes from ARM but also used for MIPS and SH, so fix them
together. If without this fix, compressed booting of these archs will
fail because stack checking is enabled by default (>=4.16).
Link: http://lkml.kernel.org/r/[email protected]
Fixes: 8779657d29c0 ("stackprotector: Introduce CONFIG_CC_STACKPROTECTOR_STRONG")
Signed-off-by: Huacai Chen <[email protected]>
Acked-by: James Hogan <[email protected]>
Acked-by: Kees Cook <[email protected]>
Acked-by: Rich Felker <[email protected]>
Cc: Ralf Baechle <[email protected]>
Cc: Russell King <[email protected]>
Cc: Yoshinori Sato <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/test_bitmap.c')
0 files changed, 0 insertions, 0 deletions
