Guenter Roeck
7c6a4f3b16
powerpc/mm: Call flush_tlb_kernel_range with interrupts enabled
...
flush_tlb_kernel_range() may call smp_call_function_many() which expects
interrupts to be enabled. This results in a traceback.
WARNING: CPU: 0 PID: 1 at kernel/smp.c:416 smp_call_function_many+0xcc/0x2fc
CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.14.0-rc1-00009-g0666f56 #1
task: cf830000 task.stack: cf82e000
NIP: c00a93c8 LR: c00a9634 CTR: 00000001
REGS: cf82fde0 TRAP: 0700 Not tainted (4.14.0-rc1-00009-g0666f56)
MSR: 00021000 <CE,ME> CR: 24000082 XER: 00000000
GPR00: c00a9634 cf82fe90 cf830000 c050ad3c c0015a54 00000000 00000001 00000001
GPR08: 00000001 00000000 00000000 cf82e000 24000084 00000000 c0003150 00000000
GPR16: 00000000 00000000 00000000 00000000 00000000 00000001 00000000 c0510000
GPR24: 00000000 c0015a54 00000000 c050ad3c c051823c c050ad3c 00000025 00000000
NIP [c00a93c8] smp_call_function_many+0xcc/0x2fc
LR [c00a9634] smp_call_function+0x3c/0x50
Call Trace:
[cf82fe90] [00000010] 0x10 (unreliable)
[cf82fed0] [c00a9634] smp_call_function+0x3c/0x50
[cf82fee0] [c0015d2c] flush_tlb_kernel_range+0x20/0x38
[cf82fef0] [c001524c] mark_initmem_nx+0x154/0x16c
[cf82ff20] [c001484c] free_initmem+0x20/0x4c
[cf82ff30] [c000316c] kernel_init+0x1c/0x108
[cf82ff40] [c000f3a8] ret_from_kernel_thread+0x5c/0x64
Instruction dump:
7c0803a6 7d808120 38210040 4e800020 3d20c052 812981a0 2f890000 40beffac
3d20c051 8929ac64 2f890000 40beff9c <0fe00000> 4bffff94 7fc3f378 7f64db78
Fixes: 3184cc4b6f6a ("powerpc/mm: Fix kernel RAM protection after freeing ...")
Fixes: e611939fc8ec ("powerpc/mm: Ensure change_page_attr() doesn't ...")
Cc: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2017-10-04 22:15:30 +11:00
..
2017-08-15 22:55:54 +10:00
2016-12-24 11:46:01 -08:00
2013-07-01 11:10:36 +10:00
2017-02-15 20:02:39 +11:00
2017-06-05 19:59:03 +10:00
2017-09-01 16:42:52 +10:00
2017-09-01 16:42:52 +10:00
2017-08-10 23:32:20 +10:00
2016-12-24 11:46:01 -08:00
2016-11-29 23:59:40 +11:00
2016-11-29 23:59:40 +11:00
2017-09-01 16:42:45 +10:00
2017-07-02 20:40:28 +10:00
2017-08-23 22:27:45 +10:00
2015-05-19 08:39:14 +02:00
2016-07-21 18:59:09 +10:00
2017-03-31 23:09:47 +11:00
2017-01-23 19:19:28 +11:00
2017-06-19 21:50:20 +08:00
2017-08-23 22:27:45 +10:00
2017-08-16 14:56:12 +10:00
2017-08-10 23:40:51 +10:00
2017-02-14 17:18:29 +11:00
2017-08-23 22:48:51 +10:00
2017-08-10 23:32:12 +10:00
2017-07-12 16:26:03 -07:00
2017-08-23 22:28:38 +10:00
2014-07-28 14:10:26 +10:00
2017-04-28 20:19:37 +10:00
2017-03-31 23:09:47 +11:00
2017-08-23 22:48:51 +10:00
2017-08-10 23:32:12 +10:00
2017-06-23 09:32:11 +02:00
2017-10-04 22:15:30 +11:00
2017-08-08 19:37:04 +10:00
2016-05-01 18:32:48 +10:00
2017-08-17 23:31:52 +10:00
2017-08-23 22:27:45 +10:00
2017-08-31 14:26:42 +10:00
2017-02-17 22:16:25 +11:00
2016-03-11 17:18:02 -06:00
2017-08-08 19:37:05 +10:00
2017-06-21 16:18:33 +10:00
2017-06-19 21:50:20 +08:00
2017-07-27 13:05:50 +10:00
2016-08-01 11:15:13 +10:00
2017-08-23 22:27:45 +10:00
2016-03-01 19:27:20 +11:00
2017-08-10 23:32:12 +10:00
2017-04-11 07:46:04 +10:00
2017-08-23 22:20:10 +10:00
2015-03-18 10:48:59 +11:00
2015-03-18 10:48:59 +11:00