root@X8664:/tmp/hulkdt/ftrace# ./ftracetest test.d/instances/instance-event.tc === Ftrace unit tests === [1] Test creation and deletion of trace instances while setting an event[ 53.896538] ================================================================== [ 53.900580] BUG: KASAN: slab-use-after-free in __ftrace_event_enable_disable+0x1b/0x3a0 [ 53.903377] Read of size 8 at addr ffff8880107f4590 by task ftracetest/393 [ 53.906167] [ 53.907597] CPU: 5 PID: 393 Comm: ftracetest Tainted: G W 6.5.0+ #143 [ 53.911284] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.15.0-0-g2dd4b9b3f840-prebuilt.qemu.org 04/01/2014 [ 53.914338] Call Trace: [ 53.914934] [ 53.915443] dump_stack_lvl+0x4b/0x80 [ 53.916293] print_report+0xd0/0x620 [ 53.917068] ? __virt_addr_valid+0xf9/0x180 [ 53.917979] ? __ftrace_event_enable_disable+0x1b/0x3a0 [ 53.919060] kasan_report+0xb6/0xf0 [ 53.919830] ? __ftrace_event_enable_disable+0x1b/0x3a0 [ 53.920977] __ftrace_event_enable_disable+0x1b/0x3a0 [ 53.922042] event_enable_write+0x109/0x170 [ 53.922924] ? __pfx_event_enable_write+0x10/0x10 [ 53.923923] ? __pfx_bpf_lsm_file_permission+0x10/0x10 [ 53.924992] ? security_file_permission+0x51/0x2d0 [ 53.926023] vfs_write+0x175/0x670 [ 53.926902] ? __pfx_vfs_write+0x10/0x10 [ 53.927778] ? __pfx__raw_spin_lock+0x10/0x10 [ 53.928821] ? expand_files+0x9b/0x330 [ 53.929653] ? __pfx_expand_files+0x10/0x10 [ 53.930591] ? set_close_on_exec+0x7b/0xe0 [ 53.931453] ? __fget_light+0xae/0x1e0 [ 53.932275] ? _raw_spin_lock+0x85/0xe0 [ 53.933100] ksys_write+0xbd/0x160 [ 53.933864] ? __pfx_ksys_write+0x10/0x10 [ 53.934715] ? dnotify_flush+0x38/0x220 [ 53.935530] ? fpregs_assert_state_consistent+0x5a/0x70 [ 53.936569] ? exit_to_user_mode_prepare+0x32/0x110 [ 53.937553] do_syscall_64+0x3f/0x90 [ 53.938354] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 53.939396] RIP: 0033:0x7fdf1faf7077 [ 53.940200] Code: 64 89 02 48 c7 c0 ff ff ff ff eb bb 0f 1f 80 00 00 00 00 f3 0f 1e fa 64 8b 04 25 18 00 00 00 85 c0 75 10 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 51 c3 48 83 ec 28 4 [ 53.943488] RSP: 002b:00007ffee98d8cc8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 53.944957] RAX: ffffffffffffffda RBX: 000055e92c929540 RCX: 00007fdf1faf7077 [ 53.946272] RDX: 0000000000000002 RSI: 000055e92c929540 RDI: 0000000000000001 [ 53.947583] RBP: 0000000000000002 R08: 0000000000000000 R09: 000055e92c977ae1 [ 53.948920] R10: 000055e92ac8c682 R11: 0000000000000246 R12: 0000000000000001 [ 53.950252] R13: 0000000000000002 R14: 7fffffffffffffff R15: 00007ffee98d8e90 [ 53.951587] [ 53.952159] [ 53.952612] Allocated by task 394: [ 53.953446] [ 53.953924] Freed by task 437: [ 53.954715] [ 53.955195] The buggy address belongs to the object at ffff8880107f4580 [ 53.955195] which belongs to the cache trace_event_file of size 96 [ 53.957541] The buggy address is located 16 bytes inside of [ 53.957541] freed 96-byte region [ffff8880107f4580, ffff8880107f45e0) [ 53.959763] [ 53.960245] The buggy address belongs to the physical page: [ 53.961402] [ 53.961873] Memory state around the buggy address: [ 53.962871] ffff8880107f4480: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc [ 53.964472] ffff8880107f4500: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc [ 53.965913] >ffff8880107f4580: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc [ 53.967279] ^ [ 53.968089] ffff8880107f4600: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc [ 53.969505] ffff8880107f4680: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc [ 53.970905] ================================================================== [ 53.973686] BUG: kernel NULL pointer dereference, address: 0000000000000008 [ 53.975536] #PF: supervisor read access in kernel mode [ 53.976954] #PF: error_code(0x0000) - not-present page [ 53.978374] PGD 0 P4D 0 [ 53.979210] Oops: 0000 [#1] PREEMPT SMP KASAN PTI [ 53.980559] CPU: 10 PID: 0 Comm: swapper/10 Tainted: G B W 6.5.0+ #143 [ 53.982589] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.15.0-0-g2dd4b9b3f840-prebuilt.qemu.org 04/01/2014 [ 53.985083] RIP: 0010:ring_buffer_lock_reserve+0x97/0x790 [ 53.985930] Code: 48 89 84 24 e0 00 00 00 31 c0 65 ff 05 2a 86 1b 5c 48 8d 6f 08 be 04 00 00 00 48 89 ef e8 41 1e 23 00 48 89 ef e8 e9 09 23 00 <45> 8b 74 24 08 45 85 f6 0f 85 a0 02 00 1 [ 53.988522] RSP: 0018:ffffc90000a1f9f8 EFLAGS: 00010082 [ 53.989327] RAX: 0000000000000000 RBX: 1ffff92000143f48 RCX: ffffffffa3e808f7 [ 53.990348] RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000008 [ 53.991367] RBP: 0000000000000008 R08: ffffffffa3e808f7 R09: fffffbfff4d62d33 [ 53.992424] R10: fffffbfff4d62d32 R11: ffffffffa6b16997 R12: 0000000000000000 [ 53.993485] R13: 0000000000000040 R14: 0000000000000040 R15: 0000000000000000 [ 53.994555] FS: 0000000000000000(0000) GS:ffff88823bc00000(0000) knlGS:0000000000000000 [ 53.995754] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 53.996618] CR2: 0000000000000008 CR3: 0000000146440000 CR4: 00000000000006e0 [ 53.997671] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 53.998758] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 53.999795] Call Trace: [ 54.000257] [ 54.000673] ? __die_body+0x1f/0x70 [ 54.001258] ? page_fault_oops+0x1f5/0x580 [ 54.001926] ? __pfx_page_fault_oops+0x10/0x10 [ 54.002609] ? is_prefetch.isra.0+0x7a/0x260 [ 54.003276] ? __pfx_is_prefetch.isra.0+0x10/0x10 [ 54.003993] ? __rcu_read_unlock+0x50/0x260 [ 54.004642] ? ring_buffer_lock_reserve+0x97/0x790 [ 54.005322] ? search_bpf_extables+0xb3/0xd0 [ 54.005941] ? fixup_exception+0x3b/0x4e0 [ 54.006531] ? exc_page_fault+0x59/0xb0 [ 54.007113] ? asm_exc_page_fault+0x26/0x30 [ 54.007727] ? ring_buffer_lock_reserve+0x97/0x790 [ 54.008419] ? ring_buffer_lock_reserve+0x97/0x790 [ 54.009090] ? ring_buffer_lock_reserve+0x97/0x790 [ 54.009740] ? ring_buffer_lock_reserve+0x97/0x790 [ 54.010405] ? __pfx_ring_buffer_lock_reserve+0x10/0x10 [ 54.011102] ? kasan_report+0x48/0xf0 [ 54.011644] ? ring_buffer_unlock_commit+0xfb/0x250 [ 54.012344] ? kasan_report+0x48/0xf0 [ 54.012908] trace_event_buffer_lock_reserve+0x145/0x210 [ 54.013631] trace_event_buffer_reserve+0xe2/0x150 [ 54.014307] trace_event_raw_event_sched_switch+0xb3/0x2d0 [ 54.015068] ? sched_clock_cpu+0x67/0x2e0 [ 54.015664] ? __pfx_trace_event_raw_event_sched_switch+0x10/0x10 [ 54.016486] ? __pfx_trace_event_raw_event_sched_switch+0x10/0x10 [ 54.017298] __traceiter_sched_switch+0x59/0x80 [ 54.017952] __schedule+0x72b/0x1580 [ 54.018499] ? __pfx___schedule+0x10/0x10 [ 54.019091] ? ct_nmi_exit+0xd8/0xf0 [ 54.019623] ? irqentry_exit+0x3b/0x50 [ 54.020172] ? rcu_preempt_deferred_qs+0x22/0x90 [ 54.020841] ? ct_kernel_exit.constprop.0+0xa0/0xc0 [ 54.021517] schedule_idle+0x33/0x50 [ 54.022073] do_idle+0x1f3/0x2f0 [ 54.022585] ? __pfx__raw_spin_lock_irqsave+0x10/0x10 [ 54.023311] ? __pfx_do_idle+0x10/0x10 [ 54.023895] ? swake_up_locked.part.0+0x79/0x90 [ 54.024549] cpu_startup_entry+0x1d/0x20 [ 54.025147] start_secondary+0x1a8/0x1d0 [ 54.025735] ? __pfx_start_secondary+0x10/0x10 [ 54.026364] secondary_startup_64_no_verify+0x178/0x17b [ 54.027089] [ 54.027481] Modules linked in: [ 54.027967] CR2: 0000000000000008 [ 54.028493] ---[ end trace 0000000000000000 ]--- [ 54.028494] BUG: kernel NULL pointer dereference, address: 0000000000000008 [ 54.028859] RIP: 0010:ring_buffer_lock_reserve+0x97/0x790 [ 54.029560] #PF: supervisor read access in kernel mode [ 54.029987] Code: 48 89 84 24 e0 00 00 00 31 c0 65 ff 05 2a 86 1b 5c 48 8d 6f 08 be 04 00 00 00 48 89 ef e8 41 1e 23 00 48 89 ef e8 e9 09 23 00 <45> 8b 74 24 08 45 85 f6 0f 85 a0 02 00 1 [ 54.030524] #PF: error_code(0x0000) - not-present page [ 54.031912] RSP: 0018:ffffc90000a1f9f8 EFLAGS: 00010082 [ 54.032458] PGD 0 [ 54.032722] [ 54.032724] RAX: 0000000000000000 RBX: 1ffff92000143f48 RCX: ffffffffa3e808f7 [ 54.033264] P4D 0 [ 54.033438] RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000008 [ 54.033611] [ 54.034164] RBP: 0000000000000008 R08: ffffffffa3e808f7 R09: fffffbfff4d62d33 [ 54.034390] Oops: 0000 [#2] PREEMPT SMP KASAN PTI [ 54.034947] R10: fffffbfff4d62d32 R11: ffffffffa6b16997 R12: 0000000000000000 [ 54.035120] CPU: 5 PID: 393 Comm: ftracetest Tainted: G B D W 6.5.0+ #143 [ 54.035669] R13: 0000000000000040 R14: 0000000000000040 R15: 0000000000000000 [ 54.036159] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.15.0-0-g2dd4b9b3f840-prebuilt.qemu.org 04/01/2014 [ 54.036726] FS: 0000000000000000(0000) GS:ffff88823bc00000(0000) knlGS:0000000000000000 [ 54.037524] RIP: 0010:ring_buffer_lock_reserve+0x97/0x790 [ 54.038081] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 54.039249] Code: 48 89 84 24 e0 00 00 00 31 c0 65 ff 05 2a 86 1b 5c 48 8d 6f 08 be 04 00 00 00 48 89 ef e8 41 1e 23 00 48 89 ef e8 e9 09 23 00 <45> 8b 74 24 08 45 85 f6 0f 85 a0 02 00 1 [ 54.039877] CR2: 0000000000000008 CR3: 0000000146440000 CR4: 00000000000006e0 [ 54.040446] RSP: 0018:ffffc900024cf7c8 EFLAGS: 00010082 [ 54.040899] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 54.042770] [ 54.043316] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 54.043851] RAX: 0000000000000000 RBX: 1ffff92000499f02 RCX: ffffffffa3e808f7 [ 54.044409] Kernel panic - not syncing: Attempted to kill the idle task! [ 54.044599] RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000008 [ 54.044602] RBP: 0000000000000008 R08: ffffffffa3e808f7 R09: fffff52000499f3a [ 54.044605] R10: fffff52000499f39 R11: 0000000000000003 R12: 0000000000000000 [ 54.044608] R13: 0000000000000040 R14: 0000000000000040 R15: 0000000000000000 [ 54.044614] FS: 0000000000000000(0000) GS:ffff8880b7280000(0000) knlGS:0000000000000000 [ 54.044618] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 54.044620] CR2: 0000000000000008 CR3: 00000000bbc64000 CR4: 00000000000006e0 [ 54.044623] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 54.044625] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 54.044627] Call Trace: [ 54.044629] [ 54.044631] ? __die_body+0x1f/0x70 [ 54.044645] ? page_fault_oops+0x1f5/0x580 [ 54.044650] ? __pfx_page_fault_oops+0x10/0x10 [ 54.044654] ? is_prefetch.isra.0+0x7a/0x260 [ 54.044657] ? __pfx_is_prefetch.isra.0+0x10/0x10 [ 54.044661] ? __rcu_read_unlock+0x50/0x260 [ 54.044666] ? ring_buffer_lock_reserve+0x97/0x790 [ 54.044669] ? search_bpf_extables+0xb3/0xd0 [ 54.044676] ? fixup_exception+0x3b/0x4e0 [ 54.044682] ? exc_page_fault+0x59/0xb0 [ 54.044689] ? asm_exc_page_fault+0x26/0x30 [ 54.044696] ? ring_buffer_lock_reserve+0x97/0x790 [ 54.044700] ? ring_buffer_lock_reserve+0x97/0x790 [ 54.044704] ? ring_buffer_lock_reserve+0x97/0x790 [ 54.044708] ? ring_buffer_lock_reserve+0x97/0x790 [ 54.044712] ? __pfx_sched_clock_cpu+0x10/0x10 [ 54.044719] ? record_times+0x8b/0xd0 [ 54.044723] ? __pfx_ring_buffer_lock_reserve+0x10/0x10 [ 54.044728] ? kasan_report+0x48/0xf0 [ 54.044734] ? __pfx_load_balance+0x10/0x10 [ 54.044740] ? kasan_report+0x48/0xf0 [ 54.044745] ? sched_clock+0x10/0x30 [ 54.044751] ? sched_clock_cpu+0x67/0x2e0 [ 54.044756] trace_event_buffer_lock_reserve+0x145/0x210 [ 54.044762] trace_event_buffer_reserve+0xe2/0x150 [ 54.044768] trace_event_raw_event_sched_switch+0xb3/0x2d0 [ 54.044775] ? strncpy+0x33/0x60 [ 54.044782] ? __pfx_trace_event_raw_event_sched_switch+0x10/0x10 [ 54.044786] ? __pfx_trace_save_cmdline+0x10/0x10 [ 54.044793] ? __pfx_trace_event_raw_event_sched_switch+0x10/0x10 [ 54.044798] __traceiter_sched_switch+0x59/0x80 [ 54.044806] __schedule+0x72b/0x1580 [ 54.044813] ? __pfx___schedule+0x10/0x10 [ 54.044817] ? do_notify_parent+0x397/0x4c0 [ 54.044827] ? __pfx__raw_spin_lock_irqsave+0x10/0x10 [ 54.044832] ? __rcu_read_unlock+0x50/0x260 [ 54.044836] ? __rcu_read_lock+0x33/0x50 [ 54.044843] do_task_dead+0x5a/0x60 [ 54.044849] do_exit+0xd4b/0x1340 [ 54.044856] ? __pfx_trace_event_raw_event_sched_switch+0x10/0x10 [ 54.044861] ? __pfx_do_exit+0x10/0x10 [ 54.044866] ? _raw_spin_lock_irq+0x93/0xf0 [ 54.044872] do_group_exit+0x5c/0xf0 [ 54.044877] get_signal+0xdfa/0xe10 [ 54.044882] ? security_file_permission+0x51/0x2d0 [ 54.044892] ? vfs_write+0x3c1/0x670 [ 54.044898] ? __pfx_get_signal+0x10/0x10 [ 54.044902] ? __pfx_vfs_write+0x10/0x10 [ 54.044907] ? __pfx__raw_spin_lock+0x10/0x10 [ 54.044911] ? expand_files+0x9b/0x330 [ 54.044917] arch_do_signal_or_restart+0x7a/0x350 [ 54.044922] ? __pfx_arch_do_signal_or_restart+0x10/0x10 [ 54.044926] ? __fget_light+0xae/0x1e0 [ 54.044931] ? _raw_spin_lock+0x85/0xe0 [ 54.044936] ? ksys_write+0xd2/0x160 [ 54.044941] ? __pfx_ksys_write+0x10/0x10 [ 54.044946] ? dnotify_flush+0x38/0x220 [ 54.044951] exit_to_user_mode_prepare+0xbe/0x110 [ 54.044957] syscall_exit_to_user_mode+0x2b/0x60 [ 54.044962] do_syscall_64+0x4c/0x90 [ 54.044967] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 54.044972] RIP: 0033:0x7fdf1faf7077 [ 54.044975] Code: Unable to access opcode bytes at 0x7fdf1faf704d. [ 54.044977] RSP: 002b:00007ffee98d8cc8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 54.044981] RAX: 0000000000000002 RBX: 000055e92c929540 RCX: 00007fdf1faf7077 [ 54.044984] RDX: 0000000000000002 RSI: 000055e92c929540 RDI: 0000000000000001 [ 54.044986] RBP: 0000000000000002 R08: 0000000000000000 R09: 000055e92c977ae1 [ 54.044988] R10: 000055e92ac8c682 R11: 0000000000000246 R12: 0000000000000001 [ 54.044990] R13: 0000000000000002 R14: 7fffffffffffffff R15: 00007ffee98d8e90 [ 54.044995] [ 54.045079] Modules linked in: [ 54.045082] CR2: 0000000000000008 [ 54.045797] ---[ end trace 0000000000000000 ]--- [ 54.045798] BUG: kernel NULL pointer dereference, address: 0000000000000008 [ 54.045799] RIP: 0010:ring_buffer_lock_reserve+0x97/0x790 [ 54.045803] #PF: supervisor read access in kernel mode [ 54.045804] Code: 48 89 84 24 e0 00 00 00 31 c0 65 ff 05 2a 86 1b 5c 48 8d 6f 08 be 04 00 00 00 48 89 ef e8 41 1e 23 00 48 89 ef e8 e9 09 23 00 <45> 8b 74 24 08 45 85 f6 0f 85 a0 02 00 1 [ 54.045806] #PF: error_code(0x0000) - not-present page [ 54.045808] RSP: 0018:ffffc90000a1f9f8 EFLAGS: 00010082 [ 54.045809] PGD 0 [ 54.045810] [ 54.045811] P4D 0 [ 54.045812] RAX: 0000000000000000 RBX: 1ffff92000143f48 RCX: ffffffffa3e808f7 [ 54.045815] RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000008 [ 54.045814] Oops: 0000 [#3] PREEMPT SMP KASAN PTI [ 54.045817] RBP: 0000000000000008 R08: ffffffffa3e808f7 R09: fffffbfff4d62d33 [ 54.045820] R10: fffffbfff4d62d32 R11: ffffffffa6b16997 R12: 0000000000000000 [ 54.045820] CPU: 8 PID: 0 Comm: swapper/8 Tainted: G B D W 6.5.0+ #143 [ 54.045822] R13: 0000000000000040 R14: 0000000000000040 R15: 0000000000000000 [ 54.045825] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.15.0-0-g2dd4b9b3f840-prebuilt.qemu.org 04/01/2014 [ 54.045828] FS: 0000000000000000(0000) GS:ffff8880b7280000(0000) knlGS:0000000000000000 [ 54.045831] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 54.045828] RIP: 0010:ring_buffer_lock_reserve+0x97/0x790 [ 54.045834] CR2: 0000000000000008 CR3: 00000000bbc64000 CR4: 00000000000006e0 [ 54.045835] Code: 48 89 84 24 e0 00 00 00 31 c0 65 ff 05 2a 86 1b 5c 48 8d 6f 08 be 04 00 00 00 48 89 ef e8 41 1e 23 00 48 89 ef e8 e9 09 23 00 <45> 8b 74 24 08 45 85 f6 0f 85 a0 02 00 1 [ 54.045836] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 54.045838] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 54.045840] RSP: 0018:ffffc900001f79f8 EFLAGS: 00010082 [ 54.045842] note: ftracetest[393] exited with irqs disabled [ 54.045843] [ 54.045845] RAX: 0000000000000000 RBX: 1ffff9200003ef48 RCX: ffffffffa3e808f7 [ 54.045848] RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000008 [ 54.045850] RBP: 0000000000000008 R08: ffffffffa3e808f7 R09: fffffbfff4d62d33 [ 54.045852] R10: fffffbfff4d62d32 R11: ffffffffa6b16997 R12: 0000000000000000 [ 54.045855] R13: 0000000000000040 R14: 0000000000000040 R15: 0000000000000000 [ 54.045860] FS: 0000000000000000(0000) GS:ffff88823bb00000(0000) knlGS:0000000000000000 [ 54.045864] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 54.045866] CR2: 0000000000000008 CR3: 00000001436ae000 CR4: 00000000000006e0 [ 54.045869] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 54.045871] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 54.045873] Call Trace: [ 54.045875] [ 54.045877] ? __die_body+0x1f/0x70 [ 54.045884] ? page_fault_oops+0x1f5/0x580 [ 54.045899] ? __pfx_page_fault_oops+0x10/0x10 [ 54.045902] ? is_prefetch.isra.0+0x7a/0x260 [ 54.045906] ? __pfx_is_prefetch.isra.0+0x10/0x10 [ 54.045910] ? __rcu_read_unlock+0x50/0x260 [ 54.045915] ? ring_buffer_lock_reserve+0x97/0x790 [ 54.045918] ? search_bpf_extables+0xb3/0xd0 [ 54.045925] ? fixup_exception+0x3b/0x4e0 [ 54.045931] ? exc_page_fault+0x59/0xb0 [ 54.045937] ? asm_exc_page_fault+0x26/0x30 [ 54.045944] ? ring_buffer_lock_reserve+0x97/0x790 [ 54.045947] ? ring_buffer_lock_reserve+0x97/0x790 [ 54.045952] ? ring_buffer_lock_reserve+0x97/0x790 [ 54.045956] ? ring_buffer_lock_reserve+0x97/0x790 [ 54.045960] ? __pfx_ring_buffer_lock_reserve+0x10/0x10 [ 54.045965] ? kasan_report+0x48/0xf0 [ 54.045971] ? ring_buffer_unlock_commit+0xfb/0x250 [ 54.045975] ? kasan_report+0x48/0xf0 [ 54.045981] trace_event_buffer_lock_reserve+0x145/0x210 [ 54.045987] trace_event_buffer_reserve+0xe2/0x150 [ 54.045993] trace_event_raw_event_sched_switch+0xb3/0x2d0 [ 54.045999] ? ct_nmi_exit+0x82/0xf0 [ 54.046004] ? sched_clock_cpu+0x67/0x2e0 [ 54.046010] ? __pfx_trace_event_raw_event_sched_switch+0x10/0x10 [ 54.046017] ? __pfx_trace_event_raw_event_sched_switch+0x10/0x10 [ 54.046021] __traceiter_sched_switch+0x59/0x80 [ 54.046028] __schedule+0x72b/0x1580 [ 54.046033] ? _raw_spin_unlock_irqrestore+0x16/0x50 [ 54.046039] ? __pfx___schedule+0x10/0x10 [ 54.046043] ? ct_nmi_exit+0xd8/0xf0 [ 54.046049] ? irqentry_exit+0x3b/0x50 [ 54.046054] ? rcu_preempt_deferred_qs+0x22/0x90 [ 54.046059] ? ct_kernel_exit.constprop.0+0xa0/0xc0 [ 54.046065] schedule_idle+0x33/0x50 [ 54.046070] do_idle+0x1f3/0x2f0 [ 54.046075] ? __pfx_do_idle+0x10/0x10 [ 54.046078] ? finish_task_switch+0x99/0x370 [ 54.046084] ? schedule_idle+0x3b/0x50 [ 54.046089] cpu_startup_entry+0x1d/0x20 [ 54.046093] start_secondary+0x1a8/0x1d0 [ 54.046099] ? __pfx_start_secondary+0x10/0x10 [ 54.046104] secondary_startup_64_no_verify+0x178/0x17b [ 54.046113] [ 54.046114] Modules linked in: [ 54.046117] CR2: 0000000000000008 [ 54.046855] ---[ end trace 0000000000000000 ]--- [ 54.046856] BUG: kernel NULL pointer dereference, address: 0000000000000008 [ 54.046858] RIP: 0010:ring_buffer_lock_reserve+0x97/0x790 [ 54.046861] #PF: supervisor read access in kernel mode [ 54.046863] Code: 48 89 84 24 e0 00 00 00 31 c0 65 ff 05 2a 86 1b 5c 48 8d 6f 08 be 04 00 00 00 48 89 ef e8 41 1e 23 00 48 89 ef e8 e9 09 23 00 <45> 8b 74 24 08 45 85 f6 0f 85 a0 02 00 1 [ 54.046865] #PF: error_code(0x0000) - not-present page [ 54.046868] RSP: 0018:ffffc90000a1f9f8 EFLAGS: 00010082 [ 54.046869] PGD 0 [ 54.046871] P4D 0 [ 54.046873] RAX: 0000000000000000 RBX: 1ffff92000143f48 RCX: ffffffffa3e808f7 [ 54.046874] [ 54.046877] RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000008 [ 54.046877] Oops: 0000 [#4] PREEMPT SMP KASAN PTI [ 54.046880] RBP: 0000000000000008 R08: ffffffffa3e808f7 R09: fffffbfff4d62d33 [ 54.046884] R10: fffffbfff4d62d32 R11: ffffffffa6b16997 R12: 0000000000000000 [ 54.046883] CPU: 3 PID: 0 Comm: swapper/3 Tainted: G B D W 6.5.0+ #143 [ 54.046887] R13: 0000000000000040 R14: 0000000000000040 R15: 0000000000000000 [ 54.046888] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.15.0-0-g2dd4b9b3f840-prebuilt.qemu.org 04/01/2014 [ 54.046892] FS: 0000000000000000(0000) GS:ffff88823bb00000(0000) knlGS:0000000000000000 [ 54.046891] RIP: 0010:ring_buffer_lock_reserve+0x97/0x790 [ 54.046897] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 54.046900] CR2: 0000000000000008 CR3: 00000001436ae000 CR4: 00000000000006e0 [ 54.046899] Code: 48 89 84 24 e0 00 00 00 31 c0 65 ff 05 2a 86 1b 5c 48 8d 6f 08 be 04 00 00 00 48 89 ef e8 41 1e 23 00 48 89 ef e8 e9 09 23 00 <45> 8b 74 24 08 45 85 f6 0f 85 a0 02 00 1 [ 54.046904] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 54.046906] RSP: 0018:ffffc900001a79f8 EFLAGS: 00010082 [ 54.046907] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 54.046911] [ 54.046913] RAX: 0000000000000000 RBX: 1ffff92000034f48 RCX: ffffffffa3e808f7 [ 54.046916] RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000008 [ 54.046918] RBP: 0000000000000008 R08: ffffffffa3e808f7 R09: fffffbfff4d62d33 [ 54.046921] R10: fffffbfff4d62d32 R11: ffffffffa6b16997 R12: 0000000000000000 [ 54.046924] R13: 0000000000000040 R14: 0000000000000040 R15: 0000000000000000 [ 54.046930] FS: 0000000000000000(0000) GS:ffff8880b7180000(0000) knlGS:0000000000000000 [ 54.046934] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 54.046937] CR2: 0000000000000008 CR3: 00000000bbc64000 CR4: 00000000000006e0 [ 54.046940] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 54.046942] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 54.046944] Call Trace: [ 54.046946] [ 54.046948] ? __die_body+0x1f/0x70 [ 54.046954] ? page_fault_oops+0x1f5/0x580 [ 54.046959] ? __pfx_page_fault_oops+0x10/0x10 [ 54.046962] ? is_prefetch.isra.0+0x7a/0x260 [ 54.046966] ? __pfx_is_prefetch.isra.0+0x10/0x10 [ 54.046970] ? __rcu_read_unlock+0x50/0x260 [ 54.046974] ? ring_buffer_lock_reserve+0x97/0x790 [ 54.046978] ? search_bpf_extables+0xb3/0xd0 [ 54.046984] ? fixup_exception+0x3b/0x4e0 [ 54.046989] ? exc_page_fault+0x59/0xb0 [ 54.046995] ? asm_exc_page_fault+0x26/0x30 [ 54.047002] ? ring_buffer_lock_reserve+0x97/0x790 [ 54.047005] ? ring_buffer_lock_reserve+0x97/0x790 [ 54.047009] ? ring_buffer_lock_reserve+0x97/0x790 [ 54.047013] ? ring_buffer_lock_reserve+0x97/0x790 [ 54.047017] ? start_secondary+0x1a8/0x1d0 [ 54.047022] ? __pfx_ring_buffer_lock_reserve+0x10/0x10 [ 54.047026] ? kasan_report+0x48/0xf0 [ 54.047032] ? ring_buffer_unlock_commit+0xfb/0x250 [ 54.047036] ? kasan_report+0x48/0xf0 [ 54.047042] trace_event_buffer_lock_reserve+0x145/0x210 [ 54.047048] trace_event_buffer_reserve+0xe2/0x150 [ 54.047054] trace_event_raw_event_sched_switch+0xb3/0x2d0 [ 54.047060] ? sched_clock_cpu+0x67/0x2e0 [ 54.047065] ? __pfx_trace_event_raw_event_sched_switch+0x10/0x10 [ 54.047072] ? __pfx_trace_event_raw_event_sched_switch+0x10/0x10 [ 54.047076] __traceiter_sched_switch+0x59/0x80 [ 54.047082] __schedule+0x72b/0x1580 [ 54.047087] ? _raw_spin_unlock_irqrestore+0x16/0x50 [ 54.047093] ? __pfx___schedule+0x10/0x10 [ 54.047098] ? ct_nmi_exit+0xd8/0xf0 [ 54.047103] ? irqentry_exit+0x3b/0x50 [ 54.047109] ? rcu_preempt_deferred_qs+0x22/0x90 [ 54.047113] ? ct_kernel_exit.constprop.0+0xa0/0xc0 [ 54.047120] schedule_idle+0x33/0x50 [ 54.047124] do_idle+0x1f3/0x2f0 [ 54.047128] ? __pfx__raw_spin_lock_irqsave+0x10/0x10 [ 54.047133] ? __pfx_do_idle+0x10/0x10 [ 54.047137] ? swake_up_locked.part.0+0x79/0x90 [ 54.047143] cpu_startup_entry+0x1d/0x20 [ 54.047148] start_secondary+0x1a8/0x1d0 [ 54.047152] ? __pfx_start_secondary+0x10/0x10 [ 54.047158] secondary_startup_64_no_verify+0x178/0x17b [ 54.047166] [ 54.047167] Modules linked in: [ 54.047170] CR2: 0000000000000008 [ 54.047874] ---[ end trace 0000000000000000 ]--- [ 54.047876] RIP: 0010:ring_buffer_lock_reserve+0x97/0x790 [ 54.047880] Code: 48 89 84 24 e0 00 00 00 31 c0 65 ff 05 2a 86 1b 5c 48 8d 6f 08 be 04 00 00 00 48 89 ef e8 41 1e 23 00 48 89 ef e8 e9 09 23 00 <45> 8b 74 24 08 45 85 f6 0f 85 a0 02 00 1 [ 54.047884] RSP: 0018:ffffc90000a1f9f8 EFLAGS: 00010082 [ 54.047887] RAX: 0000000000000000 RBX: 1ffff92000143f48 RCX: ffffffffa3e808f7 [ 54.047890] RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000008 [ 54.047892] RBP: 0000000000000008 R08: ffffffffa3e808f7 R09: fffffbfff4d62d33 [ 54.047894] R10: fffffbfff4d62d32 R11: ffffffffa6b16997 R12: 0000000000000000 [ 54.047896] R13: 0000000000000040 R14: 0000000000000040 R15: 0000000000000000 [ 54.047901] FS: 0000000000000000(0000) GS:ffff8880b7180000(0000) knlGS:0000000000000000 [ 54.047904] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 54.047907] CR2: 0000000000000008 CR3: 00000000bbc64000 CR4: 00000000000006e0 [ 54.047909] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 54.047911] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 55.094835] Shutting down cpus with NMI [ 55.395334] Kernel Offset: 0x22c00000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff) [ 55.397167] ---[ end Kernel panic - not syncing: Attempted to kill the idle task! ]---