Pu Lehui
43e8f76006
powerpc/kprobes: Fix kprobe Oops happens in booke
...
When using kprobe on powerpc booke series processor, Oops happens
as show bellow:
/ # echo "p:myprobe do_nanosleep" > /sys/kernel/debug/tracing/kprobe_events
/ # echo 1 > /sys/kernel/debug/tracing/events/kprobes/myprobe/enable
/ # sleep 1
[ 50.076730] Oops: Exception in kernel mode, sig: 5 [#1 ]
[ 50.077017] BE PAGE_SIZE=4K SMP NR_CPUS=24 QEMU e500
[ 50.077221] Modules linked in:
[ 50.077462] CPU: 0 PID: 77 Comm: sleep Not tainted 5.14.0-rc4-00022-g251a1524293d #21
[ 50.077887] NIP: c0b9c4e0 LR: c00ebecc CTR: 00000000
[ 50.078067] REGS: c3883de0 TRAP: 0700 Not tainted (5.14.0-rc4-00022-g251a1524293d)
[ 50.078349] MSR: 00029000 <CE,EE,ME> CR: 24000228 XER: 20000000
[ 50.078675]
[ 50.078675] GPR00: c00ebdf0 c3883e90 c313e300 c3883ea0 00000001 00000000 c3883ecc 00000001
[ 50.078675] GPR08: c100598c c00ea250 00000004 00000000 24000222 102490c2 bff4180c 101e60d4
[ 50.078675] GPR16: 00000000 102454ac 00000040 10240000 10241100 102410f8 10240000 00500000
[ 50.078675] GPR24: 00000002 00000000 c3883ea0 00000001 00000000 0000c350 3b9b8d50 00000000
[ 50.080151] NIP [c0b9c4e0] do_nanosleep+0x0/0x190
[ 50.080352] LR [c00ebecc] hrtimer_nanosleep+0x14c/0x1e0
[ 50.080638] Call Trace:
[ 50.080801] [c3883e90] [c00ebdf0] hrtimer_nanosleep+0x70/0x1e0 (unreliable)
[ 50.081110] [c3883f00] [c00ec004] sys_nanosleep_time32+0xa4/0x110
[ 50.081336] [c3883f40] [c001509c] ret_from_syscall+0x0/0x28
[ 50.081541] --- interrupt: c00 at 0x100a4d08
[ 50.081749] NIP: 100a4d08 LR: 101b5234 CTR: 00000003
[ 50.081931] REGS: c3883f50 TRAP: 0c00 Not tainted (5.14.0-rc4-00022-g251a1524293d)
[ 50.082183] MSR: 0002f902 <CE,EE,PR,FP,ME> CR: 24000222 XER: 00000000
[ 50.082457]
[ 50.082457] GPR00: 000000a2 bf980040 1024b4d0 bf980084 bf980084 64000000 00555345 fefefeff
[ 50.082457] GPR08: 7f7f7f7f 101e0000 00000069 00000003 28000422 102490c2 bff4180c 101e60d4
[ 50.082457] GPR16: 00000000 102454ac 00000040 10240000 10241100 102410f8 10240000 00500000
[ 50.082457] GPR24: 00000002 bf9803f4 10240000 00000000 00000000 100039e0 00000000 102444e8
[ 50.083789] NIP [100a4d08] 0x100a4d08
[ 50.083917] LR [101b5234] 0x101b5234
[ 50.084042] --- interrupt: c00
[ 50.084238] Instruction dump:
[ 50.084483] 4bfffc40 60000000 60000000 60000000 9421fff0 39400402 914200c0 38210010
[ 50.084841] 4bfffc20 00000000 00000000 00000000 <7fe00008> 7c0802a6 7c892378 93c10048
[ 50.085487] ---[ end trace f6fffe98e2fa8f3e ]---
[ 50.085678]
Trace/breakpoint trap
There is no real mode for booke arch and the MMU translation is
always on. The corresponding MSR_IS/MSR_DS bit in booke is used
to switch the address space, but not for real mode judgment.
Fixes: 21f8b2fa3ca5 ("powerpc/kprobes: Ignore traps that happened in real mode")
Signed-off-by: Pu Lehui <pulehui@huawei.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210809023658.218915-1-pulehui@huawei.com
2021-08-09 16:31:54 +10:00
..
2021-06-25 00:06:55 +10:00
2021-06-07 12:11:24 +02:00
2021-06-17 00:09:00 +10:00
2021-04-30 12:22:28 -07:00
2021-07-29 23:13:12 +10:00
2020-03-25 11:50:48 +01:00
2021-04-21 22:52:33 +10:00
2021-08-07 08:53:59 +10:00
2020-10-25 14:51:49 -07:00
2020-12-11 00:10:25 +11:00
2019-06-15 16:52:06 +10:00
2020-06-02 20:59:11 +10:00
2019-05-30 11:26:32 -07:00
2020-12-05 21:49:18 +11:00
2019-06-05 17:37:06 +02:00
2020-12-04 01:01:29 +11:00
2019-05-30 11:26:32 -07:00
2021-01-29 10:05:51 +05:30
2021-06-17 00:09:00 +10:00
2020-07-26 23:34:19 +10:00
2021-02-09 00:10:49 +11:00
2020-11-27 10:33:42 +01:00
2019-05-30 11:26:32 -07:00
2021-01-29 10:05:51 +05:30
2019-11-13 19:27:40 +11:00
2020-11-02 12:54:20 +11:00
2020-08-07 18:48:15 -07:00
2019-09-14 00:01:14 +10:00
2020-10-07 22:34:47 +11:00
2020-07-26 23:34:20 +10:00
2021-05-28 22:54:27 +10:00
2021-06-25 00:07:10 +10:00
2021-06-25 00:06:55 +10:00
2019-05-30 11:26:32 -07:00
2021-06-17 00:09:00 +10:00
2021-06-30 22:21:20 +10:00
2021-06-30 22:21:20 +10:00
2021-04-22 20:59:04 +10:00
2021-06-25 14:47:19 +10:00
2021-06-25 00:06:55 +10:00
2019-11-13 19:27:40 +11:00
2021-06-17 00:09:10 +10:00
2021-06-25 00:07:10 +10:00
2021-06-17 00:09:10 +10:00
2021-06-17 00:09:10 +10:00
2021-06-25 00:06:55 +10:00
2021-08-07 08:53:59 +10:00
2021-08-07 08:53:59 +10:00
2021-06-17 00:09:10 +10:00
2021-04-03 21:21:41 +11:00
2021-06-25 00:06:55 +10:00
2021-03-29 13:22:10 +11:00
2019-05-30 11:26:32 -07:00
2021-04-08 21:17:45 +10:00
2021-03-29 13:22:10 +11:00
2020-11-24 16:47:35 +01:00
2020-05-07 17:25:54 +10:00
2021-07-06 19:58:54 +10:00
2021-06-30 22:21:20 +10:00
2021-05-28 22:54:27 +10:00
2019-05-30 11:26:32 -07:00
2020-12-04 01:01:09 +11:00
2021-06-01 11:17:08 +10:00
2021-06-30 22:21:20 +10:00
2021-04-30 11:20:40 -07:00
2021-06-17 00:09:00 +10:00
2021-06-25 00:06:55 +10:00
2021-06-25 00:06:55 +10:00
2021-08-09 16:31:54 +10:00
2019-09-14 00:04:40 +10:00
2019-09-14 00:04:40 +10:00
2020-10-08 21:17:13 +11:00
2021-05-12 11:07:39 +10:00
2021-04-02 00:18:09 +11:00
2021-06-21 21:13:19 +10:00
2021-07-02 12:54:34 -07:00
2021-06-17 00:09:10 +10:00
2021-03-29 13:22:17 +11:00
2020-06-02 20:59:11 +10:00
2021-06-16 00:16:48 +10:00
2021-06-16 00:16:48 +10:00
2021-06-21 21:13:20 +10:00
2019-05-30 11:26:32 -07:00
2019-08-30 09:40:15 +10:00
2021-03-08 11:43:27 +01:00
2020-07-26 23:34:19 +10:00
2021-04-21 22:52:32 +10:00
2021-06-25 14:46:51 +10:00
2021-05-17 15:27:15 +10:00
2019-08-22 23:11:48 +10:00
2021-04-30 11:20:40 -07:00
2021-02-09 00:01:05 +11:00
2020-01-06 16:25:29 +11:00
2021-02-03 09:46:36 +11:00
2020-05-18 21:58:44 +10:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2020-04-04 21:40:57 +11:00
2020-02-04 03:05:26 +00:00
2021-07-02 12:54:34 -07:00
2019-10-29 15:12:17 +11:00
2021-06-25 14:47:19 +10:00
2021-06-25 00:07:10 +10:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2020-02-04 03:05:26 +00:00
2020-06-09 09:39:13 -07:00
2021-04-14 23:04:16 +10:00
2021-06-25 14:47:20 +10:00
2021-06-25 00:06:55 +10:00
2020-07-16 13:12:38 +10:00
2020-07-16 14:49:53 +10:00
2021-06-21 21:13:19 +10:00
2019-11-13 00:33:22 +11:00
2019-11-13 00:33:22 +11:00
2021-06-17 00:09:00 +10:00
2021-07-02 12:54:34 -07:00
2021-07-08 11:48:21 -07:00
2021-02-09 00:10:50 +11:00
2021-06-25 00:06:55 +10:00
2021-06-25 00:06:55 +10:00
2021-06-25 00:06:55 +10:00
2021-05-12 11:07:39 +10:00
2021-07-02 12:54:34 -07:00
2021-06-26 00:04:21 +10:00
2019-06-14 10:48:56 +02:00
2020-06-02 20:59:11 +10:00
2019-06-19 17:11:22 +02:00
2019-06-19 17:11:22 +02:00
2019-05-30 11:26:32 -07:00
2021-02-11 23:35:07 +11:00
2021-06-25 00:06:55 +10:00
2021-08-07 08:53:59 +10:00
2019-05-30 11:26:32 -07:00
2021-04-14 23:04:16 +10:00
2021-06-15 23:47:10 +10:00
2021-06-25 00:07:09 +10:00
2020-10-06 23:22:25 +11:00
2021-06-25 00:06:55 +10:00
2019-08-30 09:40:15 +10:00
2021-06-21 21:16:31 +10:00
2019-10-11 19:33:25 +11:00
2021-06-25 00:06:55 +10:00
2021-01-30 22:23:42 +11:00
2021-01-30 22:23:42 +11:00
2021-04-14 23:04:44 +10:00
2020-05-19 00:10:37 +10:00
2021-06-25 00:06:55 +10:00
2021-06-30 22:21:20 +10:00
2021-06-17 00:09:12 +10:00