Rabin Vincent
ef99b88b16
tracing: Handle ftrace_dump() atomic context in graph_trace_open()
graph_trace_open() can be called in atomic context from ftrace_dump().
Use GFP_ATOMIC for the memory allocations when that's the case, in order
to avoid the following splat.
BUG: sleeping function called from invalid context at mm/slab.c:2849
in_atomic(): 1, irqs_disabled(): 128, pid: 0, name: swapper/0
Backtrace:
..
[<8004dc94>] (__might_sleep) from [<801371f4>] (kmem_cache_alloc_trace+0x160/0x238)
r7:87800040 r6:000080d0 r5:810d16e8 r4:000080d0
[<80137094>] (kmem_cache_alloc_trace) from [<800cbd60>] (graph_trace_open+0x30/0xd0)
r10:00000100 r9:809171a8 r8:00008e28 r7:810d16f0 r6:00000001 r5:810d16e8
r4:810d16f0
[<800cbd30>] (graph_trace_open) from [<800c79c4>] (trace_init_global_iter+0x50/0x9c)
r8:00008e28 r7:808c853c r6:00000001 r5:810d16e8 r4:810d16f0 r3:800cbd30
[<800c7974>] (trace_init_global_iter) from [<800c7aa0>] (ftrace_dump+0x90/0x2ec)
r4:810d2580 r3:00000000
[<800c7a10>] (ftrace_dump) from [<80414b2c>] (sysrq_ftrace_dump+0x1c/0x20)
r10:00000100 r9:809171a8 r8:808f6e7c r7:00000001 r6:00000007 r5:0000007a
r4:808d5394
[<80414b10>] (sysrq_ftrace_dump) from [<800169b8>] (return_to_handler+0x0/0x18)
[<80415498>] (__handle_sysrq) from [<800169b8>] (return_to_handler+0x0/0x18)
r8:808c8100 r7:808c8444 r6:00000101 r5:00000010 r4:84eb3210
[<80415668>] (handle_sysrq) from [<800169b8>] (return_to_handler+0x0/0x18)
[<8042a760>] (pl011_int) from [<800169b8>] (return_to_handler+0x0/0x18)
r10:809171bc r9:809171a8 r8:00000001 r7:00000026 r6:808c6000 r5:84f01e60
r4:8454fe00
[<8007782c>] (handle_irq_event_percpu) from [<80077b44>] (handle_irq_event+0x4c/0x6c)
r10:808c7ef0 r9:87283e00 r8:00000001 r7:00000000 r6:8454fe00 r5:84f01e60
r4:84f01e00
[<80077af8>] (handle_irq_event) from [<8007aa28>] (handle_fasteoi_irq+0xf0/0x1ac)
r6:808f52a4 r5:84f01e60 r4:84f01e00 r3:00000000
[<8007a938>] (handle_fasteoi_irq) from [<80076dc0>] (generic_handle_irq+0x3c/0x4c)
r6:00000026 r5:00000000 r4:00000026 r3:8007a938
[<80076d84>] (generic_handle_irq) from [<80077128>] (__handle_domain_irq+0x8c/0xfc)
r4:808c1e38 r3:0000002e
[<8007709c>] (__handle_domain_irq) from [<800087b8>] (gic_handle_irq+0x34/0x6c)
r10:80917748 r9:00000001 r8:88802100 r7:808c7ef0 r6:808c8fb0 r5:00000015
r4:8880210c r3:808c7ef0
[<80008784>] (gic_handle_irq) from [<80014044>] (__irq_svc+0x44/0x7c)
Link: http://lkml.kernel.org/r/1428953721-31349-1-git-send-email-rabin@rab.in
Link: http://lkml.kernel.org/r/1428957012-2319-1-git-send-email-rabin@rab.in
Cc: stable@vger.kernel.org # 3.13+
Signed-off-by: Rabin Vincent <rabin@rab.in>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
2015-04-16 09:32:17 -04:00
..
2015-01-27 13:55:36 -08:00
2014-08-08 16:30:24 -07:00
2015-02-19 12:39:03 -06:00
2015-02-16 14:58:12 -08:00
2015-01-09 17:25:44 +01:00
2015-03-04 21:42:19 +01:00
2015-03-03 00:22:55 +01:00
2015-03-01 09:45:06 +01:00
2015-02-13 23:49:36 +01:00
2015-03-07 03:39:55 +01:00
2015-02-21 10:36:06 -08:00
2015-03-05 23:13:19 +01:00
2015-02-21 11:05:22 -08:00
2015-04-16 09:32:17 -04:00
2015-01-25 23:17:28 -05:00
2014-10-09 22:26:04 -04:00
2014-12-13 12:42:53 -08:00
2014-09-23 16:37:53 -04:00
2014-12-30 10:45:47 -08:00
2015-01-23 00:23:58 -05:00
2015-02-11 20:07:47 -08:00
2015-02-17 15:27:47 -08:00
2014-06-04 16:54:14 -07:00
2014-08-08 15:57:18 -07:00
2014-07-24 21:53:47 +10:00
2014-07-15 11:05:09 -04:00
2015-02-13 21:21:36 -08:00
2015-02-12 18:54:12 -08:00
2014-10-28 10:46:05 +01:00
2015-01-06 11:01:14 -08:00
2015-03-02 11:55:04 -05:00
2014-08-25 15:42:19 -07:00
2014-07-23 10:18:06 -07:00
2014-06-04 16:54:15 -07:00
2015-02-11 17:06:03 -08:00
2014-11-19 15:25:26 -05:00
2015-02-12 18:54:10 -08:00
2014-10-21 23:44:20 +02:00
2015-02-12 18:54:12 -08:00
2014-12-09 16:58:40 -06:00
2014-06-04 16:54:15 -07:00
2014-10-29 11:18:18 -04:00
2014-10-14 02:18:16 +02:00
2014-09-10 15:42:12 -07:00
2015-01-14 15:07:32 +01:00
2015-02-17 14:34:51 -08:00
2014-12-10 17:41:17 -08:00
2015-02-13 21:21:42 -08:00
2014-04-25 12:00:49 -07:00
2014-10-09 22:25:51 -04:00
2014-06-04 16:54:15 -07:00
2015-02-11 20:25:11 -08:00
2015-04-08 09:39:57 -04:00
2015-01-06 11:04:29 -08:00
2014-12-04 14:34:54 -05:00
2015-02-13 21:21:38 -08:00
2014-12-22 15:40:48 +01:00
2015-01-20 11:38:31 +10:30
2014-12-16 15:53:03 -08:00
2014-12-16 15:53:03 -08:00
2015-02-13 21:21:38 -08:00
2015-02-17 14:34:51 -08:00
2015-01-17 10:02:23 +13:00
2014-09-26 00:00:06 -07:00
2014-04-12 14:49:50 -07:00
2015-02-05 15:09:25 +01:00
2015-02-17 14:34:55 -08:00
2015-02-17 14:34:51 -08:00
2014-10-15 07:48:18 +02:00
2015-01-23 11:33:51 +01:00
2015-02-09 15:24:03 -08:00
2014-12-13 12:42:48 -08:00
2014-06-04 16:54:15 -07:00
2014-12-13 12:42:51 -08:00
2015-02-28 09:57:51 -08:00
2014-12-10 17:41:10 -08:00
2015-02-10 14:30:34 -08:00
2014-07-17 09:35:17 -04:00
2015-01-18 01:03:45 -05:00
2014-08-08 15:57:18 -07:00
2014-09-16 13:41:06 -07:00
2014-06-21 00:15:26 -04:00
2014-07-23 10:18:05 -07:00
2014-12-05 17:19:27 -06:00
2014-02-24 14:47:15 -08:00
2014-12-17 12:31:40 -08:00
2014-08-26 13:45:45 -04:00
2014-12-17 12:31:40 -08:00
2014-06-06 16:08:16 -07:00
2014-12-04 14:34:47 -05:00
2015-02-12 18:54:13 -08:00
2014-05-20 10:59:32 -04:00
2015-03-05 08:04:13 -05:00