BUG: scheduling while atomic: strace-static-x/291/0x00000002 Modules linked in: Preemption disabled at: [] spin_lock include/linux/spinlock.h:350 [inline] [] unix_insert_unbound_socket net/unix/af_unix.c:334 [inline] [] unix_create1+0x3fb/0x870 net/unix/af_unix.c:984 CPU: 0 PID: 291 Comm: strace-static-x Not tainted 6.1.75-syzkaller-00037-gdcb09569bbff #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x151/0x1b7 lib/dump_stack.c:106 dump_stack+0x15/0x1b lib/dump_stack.c:113 __schedule_bug+0x195/0x260 kernel/sched/core.c:5960 schedule_debug kernel/sched/core.c:5987 [inline] __schedule+0xcf7/0x1550 kernel/sched/core.c:6622 schedule+0xc3/0x180 kernel/sched/core.c:6805 exit_to_user_mode_loop+0x4e/0xa0 kernel/entry/common.c:159 exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x26/0x140 kernel/entry/common.c:297 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:87 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x4e8217 Code: 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 29 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffddb87d0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000029 RAX: 0000000000000003 RBX: 0000000000000000 RCX: 00000000004e8217 RDX: 0000000000000000 RSI: 0000000000080002 RDI: 0000000000000001 RBP: 00007ffddb87d190 R08: 00000000ffffffff R09: 000000000000000c R10: 0000000000554612 R11: 0000000000000246 R12: 00007ffddb87d190 R13: 0000000001f4f500 R14: 0000000000423160 R15: 0000000000617180 BUG: scheduling while atomic: strace-static-x/291/0x00000002 Modules linked in: Preemption disabled at: [] __up_read kernel/locking/rwsem.c:1390 [inline] [] up_read+0x16/0x170 kernel/locking/rwsem.c:1661 CPU: 0 PID: 291 Comm: strace-static-x Tainted: G W 6.1.75-syzkaller-00037-gdcb09569bbff #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x151/0x1b7 lib/dump_stack.c:106 dump_stack+0x15/0x1b lib/dump_stack.c:113 __schedule_bug+0x195/0x260 kernel/sched/core.c:5960 schedule_debug kernel/sched/core.c:5987 [inline] __schedule+0xcf7/0x1550 kernel/sched/core.c:6622 schedule+0xc3/0x180 kernel/sched/core.c:6805 exit_to_user_mode_loop+0x4e/0xa0 kernel/entry/common.c:159 exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x26/0x140 kernel/entry/common.c:297 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:87 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x4e815a Code: 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 78 0c 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 36 01 00 00 0f 05 <48> 3d 00 f0 ff ff 77 06 c3 0f 1f 44 00 00 48 c7 c2 b8 ff ff ff f7 RSP: 002b:00007ffddb87d128 EFLAGS: 00000246 ORIG_RAX: 0000000000000136 RAX: 0000000000001000 RBX: 0000000020000000 RCX: 00000000004e815a RDX: 0000000000000001 RSI: 00007ffddb87d150 RDI: 00000000000001b2 RBP: 000000000063c8a0 R08: 0000000000000001 R09: 0000000000000000 R10: 00007ffddb87d160 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000020000000 R14: 0000000001f4d010 R15: 00007ffddb87d1f0 ================================================================================ UBSAN: array-index-out-of-bounds in kernel/bpf/helpers.c:776:13 index -1 is out of range for type 'char[3][512]' CPU: 0 PID: 291 Comm: strace-static-x Tainted: G W 6.1.75-syzkaller-00037-gdcb09569bbff #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x151/0x1b7 lib/dump_stack.c:106 dump_stack+0x15/0x1b lib/dump_stack.c:113 ubsan_epilogue lib/ubsan.c:151 [inline] __ubsan_handle_out_of_bounds+0x13a/0x160 lib/ubsan.c:282 try_get_fmt_tmp_buf kernel/bpf/helpers.c:776 [inline] bpf_bprintf_prepare+0x132e/0x1360 kernel/bpf/helpers.c:818 ____bpf_trace_printk kernel/trace/bpf_trace.c:385 [inline] bpf_trace_printk+0x14a/0x300 kernel/trace/bpf_trace.c:376 bpf_prog_0605f9f479290f07+0x2f/0x33 bpf_dispatcher_nop_func include/linux/bpf.h:987 [inline] __bpf_prog_run include/linux/filter.h:600 [inline] bpf_prog_run include/linux/filter.h:607 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:2275 [inline] bpf_trace_run2+0x133/0x290 kernel/trace/bpf_trace.c:2314 __bpf_trace_kfree+0x6f/0x90 include/trace/events/kmem.h:94 __traceiter_kfree+0x2a/0x40 include/trace/events/kmem.h:94 trace_kfree include/trace/events/kmem.h:94 [inline] kfree+0xce/0xf0 mm/slab_common.c:996 process_vm_rw+0xc09/0xcc0 mm/process_vm_access.c:287 __do_sys_process_vm_readv mm/process_vm_access.c:295 [inline] __se_sys_process_vm_readv mm/process_vm_access.c:291 [inline] __x64_sys_process_vm_readv+0xe7/0x100 mm/process_vm_access.c:291 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x4e815a Code: 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 78 0c 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 36 01 00 00 0f 05 <48> 3d 00 f0 ff ff 77 06 c3 0f 1f 44 00 00 48 c7 c2 b8 ff ff ff f7 RSP: 002b:00007ffddb87d168 EFLAGS: 00000246 ORIG_RAX: 0000000000000136 RAX: ffffffffffffffda RBX: 0000000020000000 RCX: 00000000004e815a RDX: 0000000000000001 RSI: 00007ffddb87d190 RDI: 00000000000001c4 RBP: 000000000063c8a0 R08: 0000000000000001 R09: 0000000000000000 R10: 00007ffddb87d1a0 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000020000080 R14: 0000000001f4d010 R15: 0000000001f4f500 ================================================================================ BUG: scheduling while atomic: strace-static-x/291/0x00000002 Modules linked in: Preemption disabled at: [] __up_read kernel/locking/rwsem.c:1390 [inline] [] up_read+0x16/0x170 kernel/locking/rwsem.c:1661 CPU: 0 PID: 291 Comm: strace-static-x Tainted: G W 6.1.75-syzkaller-00037-gdcb09569bbff #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x151/0x1b7 lib/dump_stack.c:106 dump_stack+0x15/0x1b lib/dump_stack.c:113 __schedule_bug+0x195/0x260 kernel/sched/core.c:5960 schedule_debug kernel/sched/core.c:5987 [inline] __schedule+0xcf7/0x1550 kernel/sched/core.c:6622 schedule+0xc3/0x180 kernel/sched/core.c:6805 exit_to_user_mode_loop+0x4e/0xa0 kernel/entry/common.c:159 exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x26/0x140 kernel/entry/common.c:297 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:87 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x4e815a Code: 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 78 0c 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 36 01 00 00 0f 05 <48> 3d 00 f0 ff ff 77 06 c3 0f 1f 44 00 00 48 c7 c2 b8 ff ff ff f7 RSP: 002b:00007ffddb87d168 EFLAGS: 00000246 ORIG_RAX: 0000000000000136 RAX: 0000000000001000 RBX: 0000000020000000 RCX: 00000000004e815a RDX: 0000000000000001 RSI: 00007ffddb87d190 RDI: 00000000000001c4 RBP: 000000000063c8a0 R08: 0000000000000001 R09: 0000000000000000 R10: 00007ffddb87d1a0 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000020000080 R14: 0000000001f4d010 R15: 0000000001f4f500 BUG: scheduling while atomic: strace-static-x/291/0x00000002 Modules linked in: Preemption disabled at: [] __up_read kernel/locking/rwsem.c:1390 [inline] [] up_read+0x16/0x170 kernel/locking/rwsem.c:1661 CPU: 0 PID: 291 Comm: strace-static-x Tainted: G W 6.1.75-syzkaller-00037-gdcb09569bbff #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x151/0x1b7 lib/dump_stack.c:106 dump_stack+0x15/0x1b lib/dump_stack.c:113 __schedule_bug+0x195/0x260 kernel/sched/core.c:5960 schedule_debug kernel/sched/core.c:5987 [inline] __schedule+0xcf7/0x1550 kernel/sched/core.c:6622 schedule+0xc3/0x180 kernel/sched/core.c:6805 exit_to_user_mode_loop+0x4e/0xa0 kernel/entry/common.c:159 exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x26/0x140 kernel/entry/common.c:297 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:87 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x4e815a Code: 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 78 0c 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 36 01 00 00 0f 05 <48> 3d 00 f0 ff ff 77 06 c3 0f 1f 44 00 00 48 c7 c2 b8 ff ff ff f7 RSP: 002b:00007ffddb87d128 EFLAGS: 00000246 ORIG_RAX: 0000000000000136 RAX: 0000000000001000 RBX: 0000000020000000 RCX: 00000000004e815a RDX: 0000000000000001 RSI: 00007ffddb87d150 RDI: 00000000000001cd RBP: 000000000063c8a0 R08: 0000000000000001 R09: 0000000000000000 R10: 00007ffddb87d160 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000020000000 R14: 0000000001f4d010 R15: 00007ffddb87d1f0 BUG: scheduling while atomic: strace-static-x/291/0x00000002 Modules linked in: Preemption disabled at: [] __up_read kernel/locking/rwsem.c:1390 [inline] [] up_read+0x16/0x170 kernel/locking/rwsem.c:1661 CPU: 0 PID: 291 Comm: strace-static-x Tainted: G W 6.1.75-syzkaller-00037-gdcb09569bbff #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x151/0x1b7 lib/dump_stack.c:106 dump_stack+0x15/0x1b lib/dump_stack.c:113 __schedule_bug+0x195/0x260 kernel/sched/core.c:5960 schedule_debug kernel/sched/core.c:5987 [inline] __schedule+0xcf7/0x1550 kernel/sched/core.c:6622 schedule+0xc3/0x180 kernel/sched/core.c:6805 exit_to_user_mode_loop+0x4e/0xa0 kernel/entry/common.c:159 exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x26/0x140 kernel/entry/common.c:297 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:87 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x4e815a Code: 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 78 0c 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 36 01 00 00 0f 05 <48> 3d 00 f0 ff ff 77 06 c3 0f 1f 44 00 00 48 c7 c2 b8 ff ff ff f7 RSP: 002b:00007ffddb87d168 EFLAGS: 00000246 ORIG_RAX: 0000000000000136 RAX: 0000000000001000 RBX: 0000000020000000 RCX: 00000000004e815a RDX: 0000000000000001 RSI: 00007ffddb87d190 RDI: 0000000000000238 RBP: 000000000063c8a0 R08: 0000000000000001 R09: 0000000000000000 R10: 00007ffddb87d1a0 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000020000080 R14: 0000000001f4d010 R15: 0000000001f4f500 BUG: scheduling while atomic: strace-static-x/291/0x00000002 Modules linked in: Preemption disabled at: [] __up_read kernel/locking/rwsem.c:1390 [inline] [] up_read+0x16/0x170 kernel/locking/rwsem.c:1661 CPU: 0 PID: 291 Comm: strace-static-x Tainted: G W 6.1.75-syzkaller-00037-gdcb09569bbff #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x151/0x1b7 lib/dump_stack.c:106 dump_stack+0x15/0x1b lib/dump_stack.c:113 __schedule_bug+0x195/0x260 kernel/sched/core.c:5960 schedule_debug kernel/sched/core.c:5987 [inline] __schedule+0xcf7/0x1550 kernel/sched/core.c:6622 schedule+0xc3/0x180 kernel/sched/core.c:6805 exit_to_user_mode_loop+0x4e/0xa0 kernel/entry/common.c:159 exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x26/0x140 kernel/entry/common.c:297 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:87 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x4e815a Code: 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 78 0c 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 36 01 00 00 0f 05 <48> 3d 00 f0 ff ff 77 06 c3 0f 1f 44 00 00 48 c7 c2 b8 ff ff ff f7 RSP: 002b:00007ffddb87d128 EFLAGS: 00000246 ORIG_RAX: 0000000000000136 RAX: 0000000000001000 RBX: 0000000020000000 RCX: 00000000004e815a RDX: 0000000000000001 RSI: 00007ffddb87d150 RDI: 0000000000000299 RBP: 000000000063c8a0 R08: 0000000000000001 R09: 0000000000000000 R10: 00007ffddb87d160 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000020000000 R14: 0000000001f4d010 R15: 00007ffddb87d1f0 BUG: scheduling while atomic: strace-static-x/291/0x00000002 Modules linked in: Preemption disabled at: [] __up_read kernel/locking/rwsem.c:1390 [inline] [] up_read+0x16/0x170 kernel/locking/rwsem.c:1661 CPU: 0 PID: 291 Comm: strace-static-x Tainted: G W 6.1.75-syzkaller-00037-gdcb09569bbff #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x151/0x1b7 lib/dump_stack.c:106 dump_stack+0x15/0x1b lib/dump_stack.c:113 __schedule_bug+0x195/0x260 kernel/sched/core.c:5960 schedule_debug kernel/sched/core.c:5987 [inline] __schedule+0xcf7/0x1550 kernel/sched/core.c:6622 schedule+0xc3/0x180 kernel/sched/core.c:6805 exit_to_user_mode_loop+0x4e/0xa0 kernel/entry/common.c:159 exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x26/0x140 kernel/entry/common.c:297 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:87 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x4e815a Code: 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 78 0c 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 36 01 00 00 0f 05 <48> 3d 00 f0 ff ff 77 06 c3 0f 1f 44 00 00 48 c7 c2 b8 ff ff ff f7 RSP: 002b:00007ffddb87d168 EFLAGS: 00000246 ORIG_RAX: 0000000000000136 RAX: 0000000000001000 RBX: 0000000020000000 RCX: 00000000004e815a RDX: 0000000000000001 RSI: 00007ffddb87d190 RDI: 00000000000002dd RBP: 000000000063c8a0 R08: 0000000000000001 R09: 0000000000000000 R10: 00007ffddb87d1a0 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000020000080 R14: 0000000001f4d010 R15: 0000000001f4f500