Yang Shi
f6dffe7718
arm64: replace read_lock to rcu lock in call_step_hook
commit cf0a25436f upstream.
BUG: sleeping function called from invalid context at kernel/locking/rtmutex.c:917
in_atomic(): 1, irqs_disabled(): 128, pid: 383, name: sh
Preemption disabled at:[<ffff800000124c18>] kgdb_cpu_enter+0x158/0x6b8
CPU: 3 PID: 383 Comm: sh Tainted: G W 4.1.13-rt13 #2
Hardware name: Freescale Layerscape 2085a RDB Board (DT)
Call trace:
[<ffff8000000885e8>] dump_backtrace+0x0/0x128
[<ffff800000088734>] show_stack+0x24/0x30
[<ffff80000079a7c4>] dump_stack+0x80/0xa0
[<ffff8000000bd324>] ___might_sleep+0x18c/0x1a0
[<ffff8000007a20ac>] __rt_spin_lock+0x2c/0x40
[<ffff8000007a2268>] rt_read_lock+0x40/0x58
[<ffff800000085328>] single_step_handler+0x38/0xd8
[<ffff800000082368>] do_debug_exception+0x58/0xb8
Exception stack(0xffff80834a1e7c80 to 0xffff80834a1e7da0)
7c80: ffffff9c ffffffff 92c23ba0 0000ffff 4a1e7e40 ffff8083 001bfcc4 ffff8000
7ca0: f2000400 00000000 00000000 00000000 4a1e7d80 ffff8083 0049501c ffff8000
7cc0: 00005402 00000000 00aaa210 ffff8000 4a1e7ea0 ffff8083 000833f4 ffff8000
7ce0: ffffff9c ffffffff 92c23ba0 0000ffff 4a1e7ea0 ffff8083 001bfcc0 ffff8000
7d00: 4a0fc400 ffff8083 00005402 00000000 4a1e7d40 ffff8083 00490324 ffff8000
7d20: ffffff9c 00000000 92c23ba0 0000ffff 000a0000 00000000 00000000 00000000
7d40: 00000008 00000000 00080000 00000000 92c23b8b 0000ffff 92c23b8e 0000ffff
7d60: 00000038 00000000 00001cb2 00000000 00000005 00000000 92d7b498 0000ffff
7d80: 01010101 01010101 92be9000 0000ffff 00000000 00000000 00000030 00000000
[<ffff8000000833f4>] el1_dbg+0x18/0x6c
This issue is similar with 62c6c61("arm64: replace read_lock to rcu lock in
call_break_hook"), but comes to single_step_handler.
This also solves kgdbts boot test silent hang issue on 4.4 -rt kernel.
Signed-off-by: Yang Shi <yang.shi@linaro.org>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-04-20 15:42:14 +09:00
..
2015-11-12 15:18:07 +00:00
2012-09-17 13:42:21 +01:00
2015-11-04 18:10:13 -08:00
2015-08-04 18:52:09 +01:00
2015-10-12 17:46:36 +01:00
2015-10-28 17:06:35 +00:00
2015-10-07 11:55:41 +01:00
2015-01-15 11:55:07 +00:00
2015-11-24 17:58:14 +01:00
2015-07-27 11:08:40 +01:00
2015-11-26 18:07:59 +00:00
2015-07-02 17:44:27 +01:00
2015-11-19 17:57:18 +00:00
2016-04-20 15:42:14 +09:00
2015-10-12 16:20:12 +01:00
2015-11-26 18:15:54 +00:00
2015-07-10 16:47:13 +01:00
2014-07-31 11:42:42 +01:00
2015-10-02 11:12:56 +01:00
2015-10-16 14:55:49 +01:00
2015-10-21 15:35:59 +01:00
2015-02-23 09:13:45 +00:00
2016-01-31 11:29:04 -08:00
2015-10-12 12:10:53 +01:00
2014-07-08 22:11:47 +00:00
2015-10-19 17:54:41 +01:00
2015-10-05 18:30:29 +01:00
2014-11-06 17:25:27 +00:00
2015-10-09 17:40:35 +01:00
2015-08-03 11:34:12 +02:00
2015-07-27 11:08:42 +01:00
2014-07-10 11:02:40 +01:00
2015-10-30 16:02:52 +00:00
2015-10-12 17:46:36 +01:00
2015-07-30 20:17:07 +01:00
2015-07-27 11:08:39 +01:00
2016-01-31 11:29:04 -08:00
2015-01-09 11:12:28 +01:00
2015-10-19 18:43:41 +01:00
2015-02-26 18:23:53 +00:00
2015-10-02 14:35:16 +01:00
2016-01-31 11:29:03 -08:00
2014-09-08 14:39:19 +01:00
2015-11-04 14:47:13 -08:00
2015-09-17 11:57:03 +01:00
2015-04-13 20:40:10 +02:00
2015-08-05 10:05:20 +01:00
2015-05-19 16:09:29 +01:00
2015-11-12 15:18:14 +00:00
2015-10-28 17:07:07 +00:00
2015-11-17 17:11:45 +00:00
2015-03-19 10:43:51 +00:00
2014-12-01 13:31:12 +00:00
2015-01-27 09:38:08 +00:00
2015-10-01 02:18:39 +02:00
2015-07-27 11:08:41 +01:00
2014-11-20 16:35:02 +00:00
2015-10-19 18:51:52 +01:00
2015-08-10 15:37:45 +01:00
2015-12-07 17:22:24 +00:00