Christophe Leroy
7241d26e81
powerpc/64: properly initialise the stackprotector canary on SMP.
...
commit 06ec27aea9fc ("powerpc/64: add stack protector support")
doesn't initialise the stack canary on SMP secondary CPU's paca,
leading to the following false positive report from the
stack protector.
smp: Bringing up secondary CPUs ...
Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in: __schedule+0x978/0xa80
CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.19.0-rc7-next-20181010-autotest-autotest #1
Call Trace:
[c000001fed5b3bf0] [c000000000a0ef3c] dump_stack+0xb0/0xf4 (unreliable)
[c000001fed5b3c30] [c0000000000f9d68] panic+0x140/0x308
[c000001fed5b3cc0] [c0000000000f9844] __stack_chk_fail+0x24/0x30
[c000001fed5b3d20] [c000000000a2c3a8] __schedule+0x978/0xa80
[c000001fed5b3e00] [c000000000a2c9b4] schedule_idle+0x34/0x60
[c000001fed5b3e30] [c00000000013d344] do_idle+0x224/0x3d0
[c000001fed5b3ec0] [c00000000013d6e0] cpu_startup_entry+0x30/0x50
[c000001fed5b3ef0] [c000000000047f34] start_secondary+0x4d4/0x520
[c000001fed5b3f90] [c00000000000b370] start_secondary_prolog+0x10/0x14
This patch properly initialises the stack_canary of the secondary
idle tasks.
Reported-by: Abdul Haleem <abdhalee@linux.vnet.ibm.com>
Fixes: 06ec27aea9fc ("powerpc/64: add stack protector support")
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2018-10-13 22:21:25 +11:00
..
2018-08-24 09:25:39 -07:00
2018-09-04 13:21:38 -07:00
2018-09-07 18:38:25 +02:00
2018-09-08 15:52:45 -07:00
2018-08-24 08:22:08 +09:00
2018-08-25 13:40:38 -07:00
2018-08-24 08:22:08 +09:00
2018-08-22 14:12:47 -07:00
2018-10-08 22:53:10 +11:00
2018-08-24 08:22:08 +09:00
2018-09-08 15:52:45 -07:00
2018-09-05 10:16:26 +08:00
2018-08-27 09:47:20 +08:00
2018-08-23 14:09:37 -07:00
2018-08-22 14:06:37 -07:00
2018-10-13 22:21:25 +11:00
2018-08-28 12:58:36 -07:00
2018-09-04 11:40:26 +02:00
2018-08-24 08:22:08 +09:00
2018-09-02 10:02:04 +02:00
2018-08-24 08:22:08 +09:00
2018-08-17 16:20:28 -07:00
2018-09-09 07:05:15 -07:00
2018-08-25 13:40:38 -07:00
2018-08-23 14:55:01 -07:00