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[ 158.084125] ================================================================== [ 158.087206] BUG: KASAN: slab-use-after-free in __ftrace_event_enable_disable+0x1b/0x3a0 [ 158.089518] Read of size 8 at addr ffff8881462ed390 by task ftracetest/394 [ 158.091492] [ 158.092452] CPU: 4 PID: 394 Comm: ftracetest Tainted: G W 6.5.0+ #142 [ 158.094719] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.15.0-0-g2dd4b9b3f840-prebuilt.qemu.org 04/01/2014 [ 158.097195] Call Trace: [ 158.098022] [ 158.098754] dump_stack_lvl+0x4b/0x80 [ 158.099517] print_report+0xd0/0x620 [ 158.100578] ? __virt_addr_valid+0xf9/0x180 [ 158.101869] ? __ftrace_event_enable_disable+0x1b/0x3a0 [ 158.103161] kasan_report+0xb6/0xf0 [ 158.104128] ? __ftrace_event_enable_disable+0x1b/0x3a0 [ 158.105137] __ftrace_event_enable_disable+0x1b/0x3a0 [ 158.106091] event_enable_write+0x109/0x170 [ 158.106908] ? __pfx_event_enable_write+0x10/0x10 [ 158.107805] ? __pfx_bpf_lsm_file_permission+0x10/0x10 [ 158.108830] ? security_file_permission+0x51/0x2d0 [ 158.109779] vfs_write+0x175/0x670 [ 158.110563] ? __pfx_vfs_write+0x10/0x10 [ 158.111420] ? __pfx__raw_spin_lock+0x10/0x10 [ 158.112363] ? expand_files+0x9b/0x330 [ 158.113198] ? __pfx_expand_files+0x10/0x10 [ 158.114084] ? set_close_on_exec+0x7b/0xe0 [ 158.114960] ? __fget_light+0xae/0x1e0 [ 158.115779] ? _raw_spin_lock+0x85/0xe0 [ 158.116626] ksys_write+0xbd/0x160 [ 158.117398] ? __pfx_ksys_write+0x10/0x10 [ 158.118267] ? dnotify_flush+0x38/0x220 [ 158.119594] ? fpregs_assert_state_consistent+0x5a/0x70 [ 158.121218] ? exit_to_user_mode_prepare+0x32/0x110 [ 158.122492] do_syscall_64+0x3f/0x90 [ 158.123712] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 158.124943] RIP: 0033:0x7f12b328c077 [ 158.126197] 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 [ 158.130945] RSP: 002b:00007fff4833be68 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 158.133536] RAX: ffffffffffffffda RBX: 000055e244f04540 RCX: 00007f12b328c077 [ 158.135934] RDX: 0000000000000002 RSI: 000055e244f04540 RDI: 0000000000000001 [ 158.138010] RBP: 0000000000000002 R08: 0000000000000000 R09: 000055e244f52ae1 [ 158.140079] R10: 000055e2437e2682 R11: 0000000000000246 R12: 0000000000000001 [ 158.141759] R13: 0000000000000002 R14: 7fffffffffffffff R15: 00007fff4833c030 [ 158.143725] [ 158.144604] [ 158.145091] Allocated by task 395: [ 158.146419] [452/18554] [ 158.146987] Freed by task 436: [ 158.147782] [ 158.148525] The buggy address belongs to the object at ffff8881462ed380 [ 158.148525] which belongs to the cache trace_event_file of size 96 [ 158.151275] The buggy address is located 16 bytes inside of [ 158.151275] freed 96-byte region [ffff8881462ed380, ffff8881462ed3e0) [ 158.153443] [ 158.153922] The buggy address belongs to the physical page: [ 158.155053] [ 158.155520] Memory state around the buggy address: [ 158.156516] ffff8881462ed280: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc [ 158.157927] ffff8881462ed300: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc [ 158.159330] >ffff8881462ed380: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc [ 158.160752] ^ [ 158.161583] ffff8881462ed400: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc [ 158.162996] ffff8881462ed480: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc [ 158.164420] ================================================================== [ 158.173856] BUG: kernel NULL pointer dereference, address: 0000000000000008 [ 158.176166] #PF: supervisor read access in kernel mode [ 158.177589] #PF: error_code(0x0000) - not-present page [ 158.178697] PGD 0 P4D 0 [ 158.179373] Oops: 0000 [#1] PREEMPT SMP KASAN PTI [ 158.180449] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G B W 6.5.0+ #142 [ 158.182066] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.15.0-0-g2dd4b9b3f840-prebuilt.qemu.org 04/01/2014 [ 158.184390] RIP: 0010:ring_buffer_lock_reserve+0x97/0x790 [ 158.185595] Code: 48 89 84 24 e0 00 00 00 31 c0 65 ff 05 2a 86 7b 62 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 [ 158.189239] RSP: 0018:ffffc900001879f8 EFLAGS: 00010082 [ 158.190243] RAX: 0000000000000000 RBX: 1ffff92000030f48 RCX: ffffffff9d8808f7 [ 158.191566] RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000008 [ 158.192928] RBP: 0000000000000008 R08: ffffffff9d8808f7 R09: fffffbfff40a2d33 [ 158.194188] R10: fffffbfff40a2d32 R11: ffffffffa0516997 R12: 0000000000000000 [ 158.195519] R13: 0000000000000040 R14: 0000000000000040 R15: 0000000000000000 [ 158.196793] FS: 0000000000000000(0000) GS:ffff8880b7080000(0000) knlGS:0000000000000000 [ 158.198297] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 158.199330] CR2: 0000000000000008 CR3: 0000000117664000 CR4: 00000000000006e0 [ 158.200615] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 158.201929] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 158.203250] Call Trace: [ 158.203838] [ 158.204401] ? __die_body+0x1f/0x70 [ 158.205161] ? page_fault_oops+0x1f5/0x580 [ 158.206028] ? __pfx_page_fault_oops+0x10/0x10 [ 158.206947] ? is_prefetch.isra.0+0x7a/0x260 [ 158.207821] ? __pfx_is_prefetch.isra.0+0x10/0x10 [ 158.208777] ? __rcu_read_unlock+0x50/0x260 [ 158.209655] ? ring_buffer_lock_reserve+0x97/0x790 [ 158.210634] ? search_bpf_extables+0xb3/0xd0 [ 158.211469] ? fixup_exception+0x3b/0x4e0 [ 158.212312] ? arch_stack_walk+0x8c/0x100 [ 158.213165] ? exc_page_fault+0x59/0xb0 [ 158.213987] ? asm_exc_page_fault+0x26/0x30 [ 158.214849] ? ring_buffer_lock_reserve+0x97/0x790 [ 158.215750] ? ring_buffer_lock_reserve+0x97/0x790 [ 158.216700] ? ring_buffer_lock_reserve+0x97/0x790 [ 158.217644] ? ring_buffer_lock_reserve+0x97/0x790 [ 158.218615] ? ring_buffer_lock_reserve+0x25e/0x790 [ 158.219563] ? __pfx_ring_buffer_lock_reserve+0x10/0x10 [ 158.220594] ? kasan_report+0x48/0xf0 [ 158.221369] ? kasan_report+0x48/0xf0 [ 158.222122] trace_event_buffer_lock_reserve+0x145/0x210 [ 158.223172] trace_event_buffer_reserve+0xe2/0x150 [ 158.224141] trace_event_raw_event_sched_switch+0xb3/0x2d0 [ 158.225225] ? ct_nmi_exit+0x82/0xf0 [ 158.226006] ? sched_clock_cpu+0x67/0x2e0 [ 158.226845] ? __pfx_trace_event_raw_event_sched_switch+0x10/0x10 [ 158.227929] ? __pfx_trace_event_raw_event_sched_switch+0x10/0x10 [ 158.229101] __traceiter_sched_switch+0x59/0x80 [ 158.229964] __schedule+0x72b/0x1580 [ 158.230684] ? _raw_spin_unlock_irqrestore+0x16/0x50 [ 158.231676] ? __pfx___schedule+0x10/0x10 [ 158.232520] ? __pfx_hrtimer_start_range_ns+0x10/0x10 [ 158.233527] ? ct_nmi_exit+0xd8/0xf0 [ 158.234283] ? irqentry_exit+0x3b/0x50 [ 158.235078] ? account_idle_time+0x77/0x90 [ 158.235845] schedule_idle+0x33/0x50 [ 158.236574] do_idle+0x1f3/0x2f0 [ 158.237252] ? __pfx__raw_spin_lock_irqsave+0x10/0x10 [ 158.238258] ? __pfx_do_idle+0x10/0x10 [ 158.239021] ? swake_up_locked.part.0+0x79/0x90 [ 158.239951] cpu_startup_entry+0x1d/0x20 [ 158.240792] start_secondary+0x1a8/0x1d0 [ 158.241635] ? __pfx_start_secondary+0x10/0x10 [ 158.242565] secondary_startup_64_no_verify+0x178/0x17b [ 158.243565] [ 158.244130] Modules linked in: [ 158.244819] CR2: 0000000000000008 [ 158.245580] ---[ end trace 0000000000000000 ]--- [ 158.245581] BUG: kernel NULL pointer dereference, address: 0000000000000008 [ 158.246120] RIP: 0010:ring_buffer_lock_reserve+0x97/0x790 [ 158.246925] #PF: supervisor read access in kernel mode [ 158.247515] Code: 48 89 84 24 e0 00 00 00 31 c0 65 ff 05 2a 86 7b 62 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 [ 158.248135] #PF: error_code(0x0000) - not-present page [ 158.250275] RSP: 0018:ffffc900001879f8 EFLAGS: 00010082 [ 158.250890] PGD 0 [ 158.251292] [ 158.251914] P4D 0 [ 158.252122] RAX: 0000000000000000 RBX: 1ffff92000030f48 RCX: ffffffff9d8808f7 [ 158.252322] [ 158.252575] RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000008 [ 158.253423] Oops: 0000 [#2] PREEMPT SMP KASAN PTI [ 158.253582] RBP: 0000000000000008 R08: ffffffff9d8808f7 R09: fffffbfff40a2d33 [ 158.254416] CPU: 4 PID: 394 Comm: ftracetest Tainted: G B D W 6.5.0+ #142 [ 158.254938] R10: fffffbfff40a2d32 R11: ffffffffa0516997 R12: 0000000000000000 [ 158.255783] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.15.0-0-g2dd4b9b3f840-prebuilt.qemu.org 04/01/2014 [ 158.256657] R13: 0000000000000040 R14: 0000000000000040 R15: 0000000000000000 [ 158.257511] RIP: 0010:ring_buffer_lock_reserve+0x97/0x790 [ 158.258737] FS: 0000000000000000(0000) GS:ffff8880b7080000(0000) knlGS:0000000000000000 [ 158.259588] Code: 48 89 84 24 e0 00 00 00 31 c0 65 ff 05 2a 86 7b 62 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 [ 158.260161] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 158.261085] RSP: 0018:ffffc900024bf7c8 EFLAGS: 00010082 [ 158.263138] CR2: 0000000000000008 CR3: 0000000117664000 CR4: 00000000000006e0 [ 158.263796] [ 158.264408] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 158.266198] RAX: 0000000000000000 RBX: 1ffff92000497f02 RCX: ffffffff9d8808f7 [ 158.266358] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 158.267177] RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000008 [ 158.267985] Kernel panic - not syncing: Attempted to kill the idle task! [ 158.268881] RBP: 0000000000000008 R08: ffffffff9d8808f7 R09: fffff52000497f3a [ 158.268885] R10: fffff52000497f39 R11: 0000000000000003 R12: 0000000000000000 [ 158.268888] R13: 0000000000000040 R14: 0000000000000040 R15: 0000000000000000 [ 158.268894] FS: 0000000000000000(0000) GS:ffff8880b7200000(0000) knlGS:0000000000000000 [ 158.268898] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 158.268900] CR2: 0000000000000008 CR3: 0000000117664000 CR4: 00000000000006e0 [ 158.268903] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 158.268905] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 158.268907] Call Trace: [ 158.268910] [ 158.268912] ? __die_body+0x1f/0x70 [ 158.268921] ? page_fault_oops+0x1f5/0x580 [ 158.268928] ? __pfx_page_fault_oops+0x10/0x10 [ 158.268931] ? is_prefetch.isra.0+0x7a/0x260 [ 158.268935] ? __pfx_is_prefetch.isra.0+0x10/0x10 [ 158.268939] ? __rcu_read_unlock+0x50/0x260 [ 158.268945] ? ring_buffer_lock_reserve+0x97/0x790 [ 158.268949] ? search_bpf_extables+0xb3/0xd0 [ 158.268957] ? fixup_exception+0x3b/0x4e0 [ 158.268963] ? exc_page_fault+0x59/0xb0 [ 158.268971] ? asm_exc_page_fault+0x26/0x30 [ 158.268978] ? ring_buffer_lock_reserve+0x97/0x790 [ 158.268982] ? ring_buffer_lock_reserve+0x97/0x790 [ 158.268986] ? ring_buffer_lock_reserve+0x97/0x790 [ 158.268990] ? ring_buffer_lock_reserve+0x97/0x790 [ 158.268995] ? __pfx_ring_buffer_lock_reserve+0x10/0x10 [ 158.268999] ? stack_trace_save+0x95/0xd0 [ 158.269008] ? kasan_report+0x48/0xf0 [ 158.269014] ? filter_irq_stacks+0x21/0x70 [ 158.269019] ? __stack_depot_save+0x38/0x480 [ 158.269027] ? task_work_run+0xfd/0x170 [ 158.269035] ? kasan_report+0x48/0xf0 [ 158.269040] ? __accumulate_pelt_segments+0x38/0xc0 [ 158.269050] trace_event_buffer_lock_reserve+0x145/0x210 [ 158.269136] trace_event_buffer_reserve+0xe2/0x150 [ 158.269143] trace_event_raw_event_sched_switch+0xb3/0x2d0 [ 158.269152] ? strncpy+0x33/0x60 [ 158.269159] ? __pfx_trace_event_raw_event_sched_switch+0x10/0x10 [ 158.269164] ? __pfx_trace_save_cmdline+0x10/0x10 [ 158.269171] ? __pfx_trace_event_raw_event_sched_switch+0x10/0x10 [ 158.269175] __traceiter_sched_switch+0x59/0x80 [ 158.269186] __schedule+0x72b/0x1580 [ 158.269194] ? __pfx___schedule+0x10/0x10 [ 158.269199] ? do_notify_parent+0x397/0x4c0 [ 158.269208] ? __pfx__raw_spin_lock_irqsave+0x10/0x10 [ 158.269213] ? __rcu_read_unlock+0x50/0x260 [ 158.269217] ? __rcu_read_lock+0x33/0x50 [ 158.269223] do_task_dead+0x5a/0x60 [ 158.269230] do_exit+0xd4b/0x1340 [ 158.269237] ? __pfx_trace_event_raw_event_sched_switch+0x10/0x10 [ 158.269242] ? __pfx_do_exit+0x10/0x10 [ 158.269248] ? _raw_spin_lock_irq+0x93/0xf0 [ 158.269253] do_group_exit+0x5c/0xf0 [ 158.269259] get_signal+0xdfa/0xe10 [ 158.269264] ? security_file_permission+0x51/0x2d0 [ 158.269270] ? vfs_write+0x3c1/0x670 [ 158.269274] ? __pfx_get_signal+0x10/0x10 [ 158.269278] ? __pfx_vfs_write+0x10/0x10 [ 158.269283] ? __pfx__raw_spin_lock+0x10/0x10 [ 158.269287] ? expand_files+0x9b/0x330 [ 158.269293] arch_do_signal_or_restart+0x7a/0x350 [ 158.269299] ? __pfx_arch_do_signal_or_restart+0x10/0x10 [ 158.269303] ? __fget_light+0xae/0x1e0 [ 158.269308] ? _raw_spin_lock+0x85/0xe0 [ 158.269313] ? ksys_write+0xd2/0x160 [ 158.269318] ? __pfx_ksys_write+0x10/0x10 [ 158.269323] ? dnotify_flush+0x38/0x220 [ 158.269329] exit_to_user_mode_prepare+0xbe/0x110 [ 158.269335] syscall_exit_to_user_mode+0x2b/0x60 [ 158.269341] do_syscall_64+0x4c/0x90 [ 158.269346] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 158.269352] RIP: 0033:0x7f12b328c077 [ 158.269355] Code: Unable to access opcode bytes at 0x7f12b328c04d. [ 158.269357] RSP: 002b:00007fff4833be68 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 158.269362] RAX: 0000000000000002 RBX: 000055e244f04540 RCX: 00007f12b328c077 [ 158.269364] RDX: 0000000000000002 RSI: 000055e244f04540 RDI: 0000000000000001 [ 158.269367] RBP: 0000000000000002 R08: 0000000000000000 R09: 000055e244f52ae1 [ 158.269369] R10: 000055e2437e2682 R11: 0000000000000246 R12: 0000000000000001 [ 158.269371] R13: 0000000000000002 R14: 7fffffffffffffff R15: 00007fff4833c030 [ 158.269376] [ 158.269378] Modules linked in: [ 158.269382] CR2: 0000000000000008 [ 158.270186] ---[ end trace 0000000000000000 ]--- [ 158.270187] BUG: kernel NULL pointer dereference, address: 0000000000000008 [ 158.270189] RIP: 0010:ring_buffer_lock_reserve+0x97/0x790 [ 158.270195] Code: 48 89 84 24 e0 00 00 00 31 c0 65 ff 05 2a 86 7b 62 48 8d 6f 08 be 04 00 1 [ 158.270195] #PF: supervisor read access in kernel mode [ 158.270200] #PF: error_code(0x0000) - not-present page [ 158.270201] RSP: 0018:ffffc900001879f8 EFLAGS: 00010082 [ 158.270205] PGD 0 [ 158.270206] [ 158.270208] P4D 0 [ 158.270210] RAX: 0000000000000000 RBX: 1ffff92000030f48 RCX: ffffffff9d8808f7 [ 158.270213] [ 158.270214] RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000008 [ 158.270216] Oops: 0000 [#3] PREEMPT SMP KASAN PTI [ 158.270218] RBP: 0000000000000008 R08: ffffffff9d8808f7 R09: fffffbfff40a2d33 [ 158.270224] R10: fffffbfff40a2d32 R11: ffffffffa0516997 R12: 0000000000000000 [ 158.270227] R13: 0000000000000040 R14: 0000000000000040 R15: 0000000000000000 [ 158.270225] CPU: 3 PID: 0 Comm: swapper/3 Tainted: G B D W 6.5.0+ #142 [ 158.270234] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.15.0-0-g2dd44 [ 158.270235] FS: 0000000000000000(0000) GS:ffff8880b7200000(0000) knlGS:0000000000000000 [ 158.270240] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 158.270237] RIP: 0010:ring_buffer_lock_reserve+0x97/0x790 [ 158.270243] CR2: 0000000000000008 CR3: 0000000117664000 CR4: 00000000000006e0 [ 158.270246] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 158.270247] Code: 48 89 84 24 e0 00 00 00 31 c0 65 ff 05 2a 86 7b 62 48 8d 6f 08 be 04 00 1 [ 158.270250] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 158.270254] RSP: 0018:ffffc900001a79f8 EFLAGS: 00010082 [ 158.270256] note: ftracetest[394] exited with irqs disabled [ 158.270259] [ 158.270262] RAX: 0000000000000000 RBX: 1ffff92000034f48 RCX: ffffffff9d8808f7 [ 158.270266] RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000008 [ 158.270269] RBP: 0000000000000008 R08: ffffffff9d8808f7 R09: fffffbfff40a2d33 [ 158.270272] R10: fffffbfff40a2d32 R11: ffffffffa0516997 R12: 0000000000000000 [ 158.270274] R13: 0000000000000040 R14: 0000000000000040 R15: 0000000000000000 [ 158.270282] FS: 0000000000000000(0000) GS:ffff8880b7180000(0000) knlGS:0000000000000000 [ 158.270285] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 158.270288] CR2: 0000000000000008 CR3: 00000001461a2000 CR4: 00000000000006e0 [ 158.270291] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 158.270293] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 158.270295] Call Trace: [ 158.270298] [ 158.270300] ? __die_body+0x1f/0x70 [ 158.270308] ? page_fault_oops+0x1f5/0x580 [ 158.270314] ? __pfx_page_fault_oops+0x10/0x10 [ 158.270332] ? is_prefetch.isra.0+0x7a/0x260 [ 158.270336] ? __pfx_is_prefetch.isra.0+0x10/0x10 [ 158.270340] ? __rcu_read_unlock+0x50/0x260 [ 158.270345] ? ring_buffer_lock_reserve+0x97/0x790 [ 158.270349] ? search_bpf_extables+0xb3/0xd0 [ 158.270356] ? fixup_exception+0x3b/0x4e0 [ 158.270362] ? exc_page_fault+0x59/0xb0 [ 158.270370] ? asm_exc_page_fault+0x26/0x30 [ 158.270378] ? ring_buffer_lock_reserve+0x97/0x790 [ 158.270381] ? ring_buffer_lock_reserve+0x97/0x790 [ 158.270386] ? ring_buffer_lock_reserve+0x97/0x790 [ 158.270390] ? ring_buffer_lock_reserve+0x97/0x790 [ 158.270394] ? __pfx_sched_clock_cpu+0x10/0x10 [ 158.270401] ? __pfx_ring_buffer_lock_reserve+0x10/0x10 [ 158.270406] ? kasan_report+0x48/0xf0 [ 158.270413] ? __pfx_load_balance+0x10/0x10 [ 158.270420] ? update_rq_clock+0x307/0x3f0 [ 158.270427] ? kasan_report+0x48/0xf0 [ 158.270432] ? sched_clock+0x10/0x30 [ 158.270439] ? sched_clock_cpu+0x67/0x2e0 [ 158.270444] trace_event_buffer_lock_reserve+0x145/0x210 [ 158.270450] trace_event_buffer_reserve+0xe2/0x150 [ 158.270457] trace_event_raw_event_sched_switch+0xb3/0x2d0 [ 158.270463] ? ct_nmi_exit+0x82/0xf0 [ 158.270469] ? sched_clock_cpu+0x67/0x2e0 [ 158.270474] ? __pfx_trace_event_raw_event_sched_switch+0x10/0x10 [ 158.270481] ? __pfx_trace_event_raw_event_sched_switch+0x10/0x10 [ 158.270485] __traceiter_sched_switch+0x59/0x80 [ 158.270492] __schedule+0x72b/0x1580 [ 158.270497] ? _raw_spin_unlock_irqrestore+0x16/0x50 [ 158.270504] ? __pfx___schedule+0x10/0x10 [ 158.270509] ? ct_nmi_exit+0xd8/0xf0 [ 158.270514] ? irqentry_exit+0x3b/0x50 [ 158.270520] ? rcu_preempt_deferred_qs+0x22/0x90 [ 158.270526] ? ct_kernel_exit.constprop.0+0xa0/0xc0 [ 158.270532] schedule_idle+0x33/0x50 [ 158.270537] do_idle+0x1f3/0x2f0 [ 158.270543] ? __pfx_do_idle+0x10/0x10 [ 158.270546] ? finish_task_switch+0x99/0x370 [ 158.270553] ? schedule_idle+0x3b/0x50 [ 158.270558] cpu_startup_entry+0x1d/0x20 [ 158.270562] start_secondary+0x1a8/0x1d0 [ 158.270568] ? __pfx_start_secondary+0x10/0x10 [ 158.270574] secondary_startup_64_no_verify+0x178/0x17b [ 158.270582] [ 158.270584] Modules linked in: [ 158.270587] CR2: 0000000000000008 [ 158.271325] ---[ end trace 0000000000000000 ]--- [ 158.271326] BUG: kernel NULL pointer dereference, address: 0000000000000008 [ 158.271327] RIP: 0010:ring_buffer_lock_reserve+0x97/0x790 [ 158.271331] #PF: supervisor read access in kernel mode [ 158.271333] Code: 48 89 84 24 e0 00 00 00 31 c0 65 ff 05 2a 86 7b 62 48 8d 6f 08 be 04 00 1 [ 158.271335] #PF: error_code(0x0000) - not-present page [ 158.271337] RSP: 0018:ffffc900001879f8 EFLAGS: 00010082 [ 158.271338] PGD 0 P4D 0 [ 158.271340] [ 158.271342] [ 158.271342] RAX: 0000000000000000 RBX: 1ffff92000030f48 RCX: ffffffff9d8808f7 [ 158.271344] Oops: 0000 [#4] PREEMPT SMP KASAN PTI [ 158.271345] RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000008 [ 158.271348] RBP: 0000000000000008 R08: ffffffff9d8808f7 R09: fffffbfff40a2d33 [ 158.271351] R10: fffffbfff40a2d32 R11: ffffffffa0516997 R12: 0000000000000000 [ 158.271350] CPU: 5 PID: 169 Comm: systemd-journal Tainted: G B D W 6.5.0+ #142 [ 158.271354] R13: 0000000000000040 R14: 0000000000000040 R15: 0000000000000000 [ 158.271356] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.15.0-0-g2dd44 [ 158.271360] FS: 0000000000000000(0000) GS:ffff8880b7180000(0000) knlGS:0000000000000000 [ 158.271359] RIP: 0010:ring_buffer_lock_reserve+0x97/0x790 [ 158.271364] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 158.271367] CR2: 0000000000000008 CR3: 00000001461a2000 CR4: 00000000000006e0 [ 158.271367] Code: 48 89 84 24 e0 00 00 00 31 c0 65 ff 05 2a 86 7b 62 48 8d 6f 08 be 04 00 1 [ 158.271370] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 158.271372] RSP: 0018:ffffc90001d3f7e8 EFLAGS: 00010086 [ 158.271372] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 158.271375] [ 158.271377] RAX: 0000000000000000 RBX: 1ffff920003a7f06 RCX: ffffffff9d8808f7 [ 158.271380] RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000008 [ 158.271383] RBP: 0000000000000008 R08: ffffffff9d8808f7 R09: fffffbfff40a2d33 [ 158.271385] R10: fffffbfff40a2d32 R11: ffffffffa0516997 R12: 0000000000000000 [ 158.271388] R13: 0000000000000040 R14: 0000000000000040 R15: 0000000000000000 [ 158.271395] FS: 00007ff2899d0980(0000) GS:ffff8880b7280000(0000) knlGS:0000000000000000 [ 158.271398] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 158.271401] CR2: 0000000000000008 CR3: 000000014c41c000 CR4: 00000000000006e0 [ 158.271404] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 158.271406] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 158.271408] Call Trace: [ 158.271410] [ 158.271412] ? __die_body+0x1f/0x70 [ 158.271419] ? page_fault_oops+0x1f5/0x580 [ 158.271424] ? __pfx_page_fault_oops+0x10/0x10 [ 158.271428] ? is_prefetch.isra.0+0x7a/0x260 [ 158.271432] ? __pfx_is_prefetch.isra.0+0x10/0x10 [ 158.271435] ? __rcu_read_unlock+0x50/0x260 [ 158.271440] ? ring_buffer_lock_reserve+0x97/0x790 [ 158.271444] ? search_bpf_extables+0xb3/0xd0 [ 158.271450] ? fixup_exception+0x3b/0x4e0 [ 158.271456] ? exc_page_fault+0x59/0xb0 [ 158.271463] ? asm_exc_page_fault+0x26/0x30 [ 158.271469] ? ring_buffer_lock_reserve+0x97/0x790 [ 158.271472] ? ring_buffer_lock_reserve+0x97/0x790 [ 158.271477] ? ring_buffer_lock_reserve+0x97/0x790 [ 158.271481] ? ring_buffer_lock_reserve+0x97/0x790 [ 158.271484] ? do_sys_openat2+0x301/0x350 [ 158.271489] ? do_sys_open+0x8e/0xf0 [ 158.271494] ? do_syscall_64+0x3f/0x90 [ 158.271498] ? entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 158.271503] ? __pfx_lockref_put_or_lock+0x10/0x10 [ 158.271512] ? __pfx_ring_buffer_lock_reserve+0x10/0x10 [ 158.271516] ? try_grab_folio+0x2e0/0x4e0 [ 158.271521] ? kasan_report+0x48/0xf0 [ 158.271526] ? __rcu_read_unlock+0x50/0x260 [ 158.271530] ? trace_hardirqs_on+0x27/0xc0 [ 158.271536] ? internal_get_user_pages_fast+0x5b7/0x15a0 [ 158.271540] ? kasan_report+0x48/0xf0 [ 158.271545] ? __accumulate_pelt_segments+0x38/0xc0 [ 158.271553] trace_event_buffer_lock_reserve+0x145/0x210 [ 158.271559] trace_event_buffer_reserve+0xe2/0x150 [ 158.271565] trace_event_raw_event_sched_switch+0xb3/0x2d0 [ 158.271572] ? sched_clock_cpu+0x67/0x2e0 [ 158.271578] ? __pfx_trace_event_raw_event_sched_switch+0x10/0x10 [ 158.271586] ? __pfx_trace_event_raw_event_sched_switch+0x10/0x10 [ 158.271590] __traceiter_sched_switch+0x59/0x80 [ 158.271598] __schedule+0x72b/0x1580 [ 158.271604] ? __pfx___schedule+0x10/0x10 [ 158.271609] ? stack_trace_save+0x95/0xd0 [ 158.271618] ? futex_wait_setup+0xbe/0x150 [ 158.271626] ? plist_add+0x14c/0x180 [ 158.271634] schedule+0x92/0x120 [ 158.271639] futex_wait_queue+0x87/0xc0 [ 158.271645] futex_wait+0x219/0x3a0 [ 158.271651] ? do_syscall_64+0x3f/0x90 [ 158.271655] ? __pfx_futex_wait+0x10/0x10 [ 158.271662] ? __virt_addr_valid+0xf9/0x180 [ 158.271670] ? trace_hardirqs_on+0x27/0xc0 [ 158.271676] do_futex+0x198/0x230 [ 158.271681] ? __pfx_do_futex+0x10/0x10 [ 158.271687] __x64_sys_futex+0x106/0x290 [ 158.271693] ? __pfx___x64_sys_futex+0x10/0x10 [ 158.271697] ? do_sys_open+0x8e/0xf0 [ 158.271703] do_syscall_64+0x3f/0x90 [ 158.271707] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ 158.271712] RIP: 0033:0x7ff28a1decd7 [ 158.272819] Code: 52 fe ff ff 0f 1f 80 00 00 00 00 bb ca 00 00 00 eb 20 90 e8 7b 93 00 00 f [ 158.272826] RSP: 002b:00007ffcc907a7d0 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 158.272832] RAX: ffffffffffffffda RBX: 00000000000000ca RCX: 00007ff28a1decd7 [ 158.272835] RDX: 00000000000001b8 RSI: 0000000000000000 RDI: 00007ff2899cf9d0 [ 158.272837] RBP: 0000000000000000 R08: 0000000000000000 R09: 00007ffcc907a9b8 [ 158.272840] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000000001b8 [ 158.272842] R13: 00007ff2899cf9d0 R14: 000055ed59198320 R15: 00007ff2899cf700 [ 158.272848] [ 158.272849] Modules linked in: [ 158.272852] CR2: 0000000000000008 [ 158.273695] ---[ end trace 0000000000000000 ]--- [ 158.273696] BUG: kernel NULL pointer dereference, address: 0000000000000008 [ 158.273698] RIP: 0010:ring_buffer_lock_reserve+0x97/0x790 [ 158.273701] #PF: supervisor read access in kernel mode [ 158.273705] #PF: error_code(0x0000) - not-present page [ 158.273705] Code: 48 89 84 24 e0 00 00 00 31 c0 65 ff 05 2a 86 7b 62 48 8d 6f 08 be 04 00 1 [ 158.273709] PGD 0 [ 158.273710] RSP: 0018:ffffc900001879f8 EFLAGS: 00010082 [ 158.273711] P4D 0 [ 158.273714] [ 158.273716] RAX: 0000000000000000 RBX: 1ffff92000030f48 RCX: ffffffff9d8808f7 [ 158.273716] Oops: 0000 [#5] PREEMPT SMP KASAN PTI [ 158.273719] RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000008 [ 158.273721] RBP: 0000000000000008 R08: ffffffff9d8808f7 R09: fffffbfff40a2d33 [ 158.273722] CPU: 8 PID: 0 Comm: swapper/8 Tainted: G B D W 6.5.0+ #142 [ 158.273724] R10: fffffbfff40a2d32 R11: ffffffffa0516997 R12: 0000000000000000 [ 158.273726] R13: 0000000000000040 R14: 0000000000000040 R15: 0000000000000000 [ 158.273727] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.15.0-0-g2dd44 [ 158.273733] FS: 00007ff2899d0980(0000) GS:ffff8880b7280000(0000) knlGS:0000000000000000 [ 158.273731] RIP: 0010:ring_buffer_lock_reserve+0x97/0x790 [ 158.273737] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 158.273739] Code: 48 89 84 24 e0 00 00 00 31 c0 65 ff 05 2a 86 7b 62 48 8d 6f 08 be 04 00 1 [ 158.273741] CR2: 0000000000000008 CR3: 000000014c41c000 CR4: 00000000000006e0 [ 158.273744] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 158.273744] RSP: 0018:ffffc900001f79f8 EFLAGS: 00010082 [ 158.273747] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 158.273749] RAX: 0000000000000000 RBX: 1ffff9200003ef48 RCX: ffffffff9d8808f7 [ 158.273751] note: systemd-journal[169] exited with irqs disabled [ 158.273753] RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000008 [ 158.273756] RBP: 0000000000000008 R08: ffffffff9d8808f7 R09: fffff5200003ef80 [ 158.273758] R10: fffff5200003ef7f R11: 0000000000000003 R12: 0000000000000000 [ 158.273761] R13: 0000000000000040 R14: 0000000000000040 R15: 0000000000000000 [ 158.273767] FS: 0000000000000000(0000) GS:ffff88823bb00000(0000) knlGS:0000000000000000 [ 158.273771] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 158.273773] CR2: 0000000000000008 CR3: 0000000117664000 CR4: 00000000000006e0 [ 158.273776] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 158.273778] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 158.273780] Call Trace: [ 158.273782] [ 158.273785] ? __die_body+0x1f/0x70 [ 158.273791] ? page_fault_oops+0x1f5/0x580 [ 158.273796] ? __pfx_page_fault_oops+0x10/0x10 [ 158.273800] ? is_prefetch.isra.0+0x7a/0x260 [ 158.273803] ? __pfx_is_prefetch.isra.0+0x10/0x10 [ 158.273807] ? __rcu_read_unlock+0x50/0x260 [ 158.273818] ? ring_buffer_lock_reserve+0x97/0x790 [ 158.273822] ? search_bpf_extables+0xb3/0xd0 [ 158.273828] ? fixup_exception+0x3b/0x4e0 [ 158.273832] ? arch_stack_walk+0x8c/0x100 [ 158.273838] ? exc_page_fault+0x59/0xb0 [ 158.273844] ? asm_exc_page_fault+0x26/0x30 [ 158.273851] ? ring_buffer_lock_reserve+0x97/0x790 [ 158.273854] ? ring_buffer_lock_reserve+0x97/0x790 [ 158.273858] ? ring_buffer_lock_reserve+0x97/0x790 [ 158.273862] ? ring_buffer_lock_reserve+0x97/0x790 [ 158.273866] ? cpu_startup_entry+0x1d/0x20 [ 158.273870] ? start_secondary+0x1a8/0x1d0 [ 158.273875] ? secondary_startup_64_no_verify+0x178/0x17b [ 158.273880] ? __pfx_ring_buffer_lock_reserve+0x10/0x10 [ 158.273884] ? kasan_report+0x48/0xf0 [ 158.273890] ? ring_buffer_unlock_commit+0xfb/0x250 [ 158.273895] ? kasan_report+0x48/0xf0 [ 158.273901] trace_event_buffer_lock_reserve+0x145/0x210 [ 158.273907] trace_event_buffer_reserve+0xe2/0x150 [ 158.273913] trace_event_raw_event_sched_switch+0xb3/0x2d0 [ 158.273919] ? strncpy+0x33/0x60 [ 158.273925] ? __pfx_trace_event_raw_event_sched_switch+0x10/0x10 [ 158.273930] ? __pfx_trace_save_cmdline+0x10/0x10 [ 158.273938] ? __pfx_trace_event_raw_event_sched_switch+0x10/0x10 [ 158.273943] __traceiter_sched_switch+0x59/0x80 [ 158.273950] __schedule+0x72b/0x1580 [ 158.273955] ? _raw_spin_unlock_irqrestore+0x16/0x50 [ 158.273961] ? __pfx___schedule+0x10/0x10 [ 158.273966] ? ct_nmi_exit+0xd8/0xf0 [ 158.273971] ? irqentry_exit+0x3b/0x50 [ 158.273978] ? nr_iowait_cpu+0x46/0x60 [ 158.273984] ? tick_nohz_stop_idle+0x86/0xc0 [ 158.273991] schedule_idle+0x33/0x50 [ 158.273996] do_idle+0x1f3/0x2f0 [ 158.273999] ? __pfx__raw_spin_lock_irqsave+0x10/0x10 [ 158.274005] ? __pfx_do_idle+0x10/0x10 [ 158.274009] ? swake_up_locked.part.0+0x79/0x90 [ 158.274015] cpu_startup_entry+0x1d/0x20 [ 158.274019] start_secondary+0x1a8/0x1d0 [ 158.274024] ? __pfx_start_secondary+0x10/0x10 [ 158.274029] secondary_startup_64_no_verify+0x178/0x17b [ 158.274037] [ 158.274038] Modules linked in: [ 158.274041] CR2: 0000000000000008 [ 158.274913] ---[ end trace 0000000000000000 ]--- [ 158.274915] RIP: 0010:ring_buffer_lock_reserve+0x97/0x790 [ 158.274919] Code: 48 89 84 24 e0 00 00 00 31 c0 65 ff 05 2a 86 7b 62 48 8d 6f 08 be 04 00 1 [ 158.274923] RSP: 0018:ffffc900001879f8 EFLAGS: 00010082 [ 158.274926] RAX: 0000000000000000 RBX: 1ffff92000030f48 RCX: ffffffff9d8808f7 [ 158.274928] RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000008 [ 158.274931] RBP: 0000000000000008 R08: ffffffff9d8808f7 R09: fffffbfff40a2d33 [ 158.274933] R10: fffffbfff40a2d32 R11: ffffffffa0516997 R12: 0000000000000000 [ 158.274935] R13: 0000000000000040 R14: 0000000000000040 R15: 0000000000000000 [ 158.274941] FS: 0000000000000000(0000) GS:ffff88823bb00000(0000) knlGS:0000000000000000 [ 158.274944] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 158.274946] CR2: 0000000000000008 CR3: 0000000117664000 CR4: 00000000000006e0 [ 158.274949] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 158.274951] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 159.308316] Shutting down cpus with NMI [ 159.676967] Kernel Offset: 0x1c600000 from 0xffffffff81000000 (relocation range: 0xfffffff) [ 159.678609] ---[ end Kernel panic - not syncing: Attempted to kill the idle task! ]---