Josh Poimboeuf
2c96b2fe9c
x86/unwind: Include __schedule() in stack traces
...
In the following commit:
0100301bfdf5 ("sched/x86: Rewrite the switch_to() code")
... the layout of the 'inactive_task_frame' struct was designed to have
a frame pointer header embedded in it, so that the unwinder could use
the 'bp' and 'ret_addr' fields to report __schedule() on the stack (or
ret_from_fork() for newly forked tasks which haven't actually run yet).
Finish the job by changing get_frame_pointer() to return a pointer to
inactive_task_frame's 'bp' field rather than 'bp' itself. This allows
the unwinder to start one frame higher on the stack, so that it properly
reports __schedule().
Reported-by: Miroslav Benes <mbenes@suse.cz>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Dave Jones <davej@codemonkey.org.uk>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/598e9f7505ed0aba86e8b9590aa528c6c7ae8dcd.1483978430.git.jpoimboe@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2017-01-12 09:28:28 +01:00
..
2016-11-28 21:23:20 +08:00
2016-11-01 07:47:54 +01:00
2016-12-15 13:49:34 -08:00
2016-09-22 11:16:15 +02:00
2016-12-24 11:46:01 -08:00
2016-12-09 21:23:21 +01:00
2016-09-24 09:30:03 +02:00
2016-11-16 20:46:38 +01:00
2016-12-12 14:55:04 -08:00
2016-06-08 12:41:20 -07:00
2016-06-08 15:01:02 +02:00
2016-06-08 12:41:20 -07:00
2016-12-24 11:46:01 -08:00
2016-06-08 12:41:20 -07:00
2016-06-16 10:48:31 +02:00
2016-07-25 15:34:18 -07:00
2016-07-25 15:34:18 -07:00
2016-01-29 09:40:10 +01:00
2016-07-21 10:11:57 +02:00
2016-12-29 11:03:15 -08:00
2016-05-07 07:38:39 +02:00
2016-05-20 09:07:40 +02:00
2016-09-27 21:15:22 -04:00
2016-07-15 10:26:30 +02:00
2016-12-24 11:46:01 -08:00
2016-04-13 10:28:34 +02:00
2015-12-19 11:49:55 +01:00
2015-12-19 11:49:55 +01:00
2016-09-30 10:56:01 +02:00
2016-11-24 06:01:05 +01:00
2016-07-27 11:35:37 -07:00
2016-12-09 21:23:20 +01:00
2016-12-22 09:25:45 -08:00
2016-02-17 08:32:11 +01:00
2016-08-10 14:55:05 +02:00
2016-01-15 13:54:55 -06:00
2016-06-30 09:11:32 +02:00
2016-08-04 08:50:07 -04:00
2016-02-09 14:36:43 +01:00
2016-12-09 10:59:04 +01:00
2016-11-13 08:23:16 +01:00
2016-08-04 08:50:07 -04:00
2016-08-07 23:47:15 -04:00
2016-09-27 21:15:23 -04:00
2016-01-20 11:39:14 +01:00
2016-12-18 09:25:38 +01:00
2016-01-19 12:59:07 +01:00
2016-08-24 12:15:15 +02:00
2016-08-11 11:14:59 +02:00
2016-04-22 10:13:53 +02:00
2016-03-18 14:51:06 +01:00
2016-09-05 13:52:38 +02:00
2016-02-23 07:37:23 +01:00
2016-07-21 09:37:11 -03:00
2016-08-08 22:04:30 +02:00
2016-07-21 09:37:11 -03:00
2016-01-19 15:49:36 -08:00
2016-10-26 23:12:39 +02:00
2016-12-02 01:13:02 +01:00
2016-09-08 08:03:58 +02:00
2016-05-05 13:58:55 -07:00
2017-01-05 09:03:29 +01:00
2016-11-07 13:06:59 +01:00
2016-10-26 15:45:38 +10:00
2016-01-07 14:11:32 +01:00
2016-03-08 12:26:41 +01:00
2016-04-13 11:37:41 +02:00
2016-10-07 18:46:30 -07:00
2016-10-07 18:46:30 -07:00
2016-08-10 16:10:06 +02:00
2016-11-28 07:49:17 +01:00
2016-10-25 18:40:37 +02:00
2016-10-11 15:06:32 -07:00
2016-04-29 11:56:40 +02:00
2016-06-24 16:55:53 -07:00
2016-12-25 11:04:12 +01:00
2016-11-04 12:13:20 +01:00
2016-02-22 08:51:38 +01:00
2016-11-01 07:47:54 +01:00
2016-01-12 12:17:28 +01:00
2016-05-05 08:37:31 +02:00
2016-07-14 15:07:00 +02:00
2016-06-08 12:41:20 -07:00
2016-06-04 00:20:00 +02:00
2016-12-12 19:25:04 -08:00
2016-10-25 12:28:59 +02:00
2017-01-09 23:11:14 +01:00
2016-10-25 12:28:59 +02:00
2016-12-10 00:24:39 +01:00
2016-12-17 12:29:56 +01:00
2016-09-21 21:18:38 +02:00
2016-12-17 12:29:56 +01:00
2015-12-20 12:40:49 +01:00
2016-11-23 16:51:52 +01:00
2016-11-16 10:23:02 +01:00
2016-03-29 12:23:26 +02:00
2016-07-20 09:48:40 +02:00
2016-07-27 14:59:59 +02:00
2016-07-08 17:35:15 +02:00
2015-12-19 11:53:40 +01:00
2016-05-07 07:38:39 +02:00
2016-12-12 14:27:49 -08:00
2016-12-12 14:27:49 -08:00
2016-03-29 12:23:27 +02:00
2016-02-27 08:52:20 -06:00
2016-09-23 08:41:08 -05:00
2016-11-18 12:07:57 +01:00
2016-04-28 10:32:42 +02:00
2016-07-26 16:19:19 -07:00
2016-08-10 16:10:06 +02:00
2016-12-15 12:46:07 +01:00
2016-10-07 18:46:29 -07:00
2016-07-25 17:32:28 -07:00
2016-09-09 13:02:28 +02:00
2015-12-19 11:49:56 +00:00
2016-05-27 11:47:56 -07:00
2016-09-05 11:47:31 +02:00
2016-11-16 10:29:04 +01:00
2017-01-09 23:11:13 +01:00
2016-03-10 09:48:13 +01:00
2016-06-14 10:54:39 -07:00
2016-12-25 11:04:12 +01:00
2016-02-24 08:35:44 +01:00
2016-11-22 12:48:11 +01:00
2016-08-18 18:41:29 +02:00
2016-06-30 09:11:32 +02:00
2016-06-08 12:41:20 -07:00
2016-10-18 12:21:16 +02:00
2016-09-27 21:15:23 -04:00
2016-04-29 11:56:41 +02:00
2016-04-29 11:56:40 +02:00
2016-02-17 08:32:11 +01:00
2016-09-14 21:28:11 +02:00
2016-01-30 11:22:17 +01:00
2016-10-11 15:06:32 -07:00
2016-11-01 07:47:55 +01:00
2016-09-30 10:56:00 +02:00
2016-11-22 12:48:11 +01:00
2017-01-12 09:28:28 +01:00
2016-09-05 11:47:31 +02:00
2016-06-16 00:04:31 +02:00
2016-08-04 08:50:07 -04:00
2017-01-12 09:28:28 +01:00
2016-06-08 12:41:20 -07:00
2016-09-15 08:25:12 +02:00
2016-04-29 11:56:40 +02:00
2016-10-20 13:27:47 +02:00
2016-09-30 12:40:12 +02:00
2016-11-30 08:27:08 +01:00
2016-09-08 08:47:20 +02:00
2016-12-25 11:04:12 +01:00
2016-07-26 14:41:48 -07:00
2016-07-26 14:41:48 -07:00
2016-12-06 10:32:40 +01:00
2016-07-15 10:30:26 +02:00
2016-12-19 11:47:05 +01:00
2016-09-14 21:28:09 +02:00
2016-12-25 11:04:12 +01:00
2016-06-16 00:04:31 +02:00
2016-12-08 15:31:07 +01:00
2016-12-19 11:34:16 +01:00
2016-04-13 11:37:40 +02:00
2016-04-13 11:37:40 +02:00