FYI, we noticed the below changes on
https://github.com/alaahl/linux.git for-upstream
commit c4e4528a6dbfc0161a9445fdcbc53c26168adda9 ("regression: Disable FENTRY")
+-----------------------------------------------------------------------------+------------+------------+
| | b32721f46a | c4e4528a6d |
+-----------------------------------------------------------------------------+------------+------------+
| boot_successes | 9 | 0 |
| boot_failures | 6 | 13 |
| Out_of_memory:Kill_process | 5 | |
| BUG:kernel_boot_hang | 1 | |
| WARNING:at_kernel/trace/trace_functions_graph.c:#ftrace_return_to_handler() | 0 | 13 |
| backtrace:register_tracer | 0 | 10 |
| backtrace:init_graph_trace | 0 | 10 |
| backtrace:kernel_init_freeable | 0 | 10 |
| backtrace:cpu_startup_entry | 0 | 1 |
+-----------------------------------------------------------------------------+------------+------------+
[ 2.093113] Testing ftrace regs: PASSED
[ 2.192075] Testing tracer function_graph:
[ 2.280011] ------------[ cut here ]------------
[ 2.284000] WARNING: CPU: 0 PID: 1 at kernel/trace/trace_functions_graph.c:223 ftrace_return_to_handler+0x94/0x11f()
[ 2.284000] Bad frame pointer: expected ffff880013803e40, received ffff880013803ed0
[ 2.284000] from func __calc_delta return to ffffffff884e5684
[ 2.284000] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.3.0-rc6-01764-gc4e4528 #1
[ 2.284000] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014
[ 2.284000] 0000000000000000 ffff880013803d40 ffffffff88b30204 ffff880013803d88
[ 2.284000] ffff880013803d78 ffffffff884a7e22 ffffffff88562357 ffffffff885920c9
[ 2.284000] ffff8800138151c0 000000000002b800 ffff880012be0060 ffff880013803de0
[ 2.284000] Call Trace:
[ 2.284000] <IRQ> [<ffffffff88b30204>] dump_stack+0x72/0x9d
[ 2.284000] [<ffffffff884a7e22>] warn_slowpath_common+0xbc/0xd5
[ 2.284000] [<ffffffff88562357>] ? ftrace_return_to_handler+0x94/0x11f
[ 2.284000] [<ffffffff885920c9>] ? devm_memunmap+0x85/0x85
[ 2.284000] [<ffffffff884a7ea2>] warn_slowpath_fmt+0x48/0x50
[ 2.284000] [<ffffffff884e20f9>] ? __calc_delta+0x20/0x176
[ 2.284000] [<ffffffff88562357>] ftrace_return_to_handler+0x94/0x11f
[ 2.284000] [<ffffffff884e5684>] ? sched_slice+0xf3/0x102
[ 2.284000] [<ffffffff884e5684>] ? sched_slice+0xf3/0x102
[ 2.284000] [<ffffffff8a084f19>] return_to_handler+0x15/0x27
[ 2.284000] [<ffffffff8a084f04>] ? ftrace_graph_caller+0x94/0x94
[ 2.284000] [<ffffffff884e5684>] sched_slice+0xf3/0x102
[ 2.284000] [<ffffffff8a084f04>] ftrace_graph_caller+0x94/0x94
[ 2.284000] [<ffffffff884eaf21>] entity_tick+0x965/0xa30
[ 2.284000] [<ffffffff884eb783>] ? task_tick_fair+0x37/0x67
[ 2.284000] [<ffffffff8a084f04>] ftrace_graph_caller+0x94/0x94
[ 2.284000] [<ffffffff884ead98>] entity_tick+0x7dc/0xa30
[ 2.284000] [<ffffffff8a084f04>] ftrace_graph_caller+0x94/0x94
[ 2.284000] [<ffffffff884ea86b>] entity_tick+0x2af/0xa30
[ 2.284000] [<ffffffff8a084f04>] ftrace_graph_caller+0x94/0x94
[ 2.284000] [<ffffffff884eb783>] task_tick_fair+0x37/0x67
[ 2.284000] [<ffffffff8a084f04>] ftrace_graph_caller+0x94/0x94
[ 2.284000] [<ffffffff884dbe0b>] scheduler_tick+0x56/0x92
[ 2.284000] [<ffffffff8a084f04>] ftrace_graph_caller+0x94/0x94
[ 2.284000] [<ffffffff8851a4c7>] update_process_times+0x5a/0x67
[ 2.284000] [<ffffffff8a084f04>] ftrace_graph_caller+0x94/0x94
[ 2.284000] [<ffffffff88529cbe>] tick_periodic+0x83/0x85
[ 2.284000] [<ffffffff8a0832e7>] apic_timer_interrupt+0x87/0x90
[ 2.284000] <EOI> [<ffffffff88e2706b>] ? amd_sched_process_job+0x9/0xb0
[ 2.284000] [<ffffffff88e2706b>] ? amd_sched_process_job+0x9/0xb0
[ 2.284000] [<ffffffff8854faf8>] ? hash_contains_ip+0x22/0x5a
[ 2.284000] [<ffffffff885528ec>] ftrace_get_addr_new+0x29/0xa2
[ 2.284000] [<ffffffff8844e32e>] ftrace_replace_code+0x1b6/0x3f8
[ 2.284000] [<ffffffff88552d92>] ftrace_modify_all_code+0x41/0xca
[ 2.284000] [<ffffffff8844e580>] arch_ftrace_update_code+0x10/0x19
[ 2.284000] [<ffffffff88551f43>] ftrace_run_update_code+0x1e/0x3f
[ 2.284000] [<ffffffff88551f96>] ftrace_startup_enable+0x32/0x34
[ 2.284000] [<ffffffff8855215d>] ftrace_startup+0x1c5/0x1e1
[ 2.284000] [<ffffffff885626f3>] ? trace_graph_function+0x78/0x78
[ 2.284000] [<ffffffff885541e1>] register_ftrace_graph+0x241/0x25e
[ 2.284000] [<ffffffff8855ed64>] ? ftrace_dump+0x1fd/0x1fd
[ 2.284000] [<ffffffff8bef2d21>] trace_selftest_startup_function_graph+0x55/0xdf
[ 2.284000] [<ffffffff8855e32a>] register_tracer+0x12a/0x218
[ 2.284000] [<ffffffff8bef3492>] ? init_graph_tracefs+0x32/0x32
[ 2.284000] [<ffffffff8bef34f4>] init_graph_trace+0x62/0x64
[ 2.284000] [<ffffffff8bec9580>] do_one_initcall+0x131/0x224
[ 2.284000] [<ffffffff8bec9781>] kernel_init_freeable+0x10e/0x1d1
[ 2.284000] [<ffffffff8a07add5>] ? rest_init+0x8c/0x8c
[ 2.284000] [<ffffffff8a07ade3>] kernel_init+0xe/0x144
[ 2.284000] [<ffffffff8a0828df>] ret_from_fork+0x3f/0x70
[ 2.284000] [<ffffffff8a07add5>] ? rest_init+0x8c/0x8c
[ 2.284000] ---[ end trace 62f2af1e4e86c781 ]---
[ 2.284000] CPU: 0 PID: 1 Comm: swapper/0 Tainted: G W 4.3.0-rc6-01764-gc4e4528 #1
Thanks,
Ying Huang