================================================================================
UBSAN: array-index-out-of-bounds in kernel/bpf/helpers.c:779:13
index -1 is out of range for type 'char[3][512]'
CPU: 0 PID: 1249 Comm: syz-executor.0 Not tainted 6.1.78-syzkaller-00133-g74c507aab139 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/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:779 [inline]
bpf_bprintf_prepare+0x132e/0x1360 kernel/bpf/helpers.c:821
____bpf_trace_printk kernel/trace/bpf_trace.c:385 [inline]
bpf_trace_printk+0x14a/0x300 kernel/trace/bpf_trace.c:376
bpf_prog_6e404e794a29e2b2+0x35/0x39
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_sys_enter+0x62/0x70 include/trace/events/syscalls.h:18
__traceiter_sys_enter+0x2a/0x40 include/trace/events/syscalls.h:18
trace_sys_enter include/trace/events/syscalls.h:18 [inline]
syscall_trace_enter kernel/entry/common.c:81 [inline]
__syscall_enter_from_user_work kernel/entry/common.c:94 [inline]
syscall_enter_from_user_mode+0x12c/0x190 kernel/entry/common.c:112
do_syscall_64+0x1e/0xb0 arch/x86/entry/common.c:77
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f2fd2ca82b3
Code: 00 00 00 00 0f 1f 00 83 ff 03 74 7b 83 ff 02 b8 fa ff ff ff 49 89 ca 0f 44 f8 80 3d 4e fc 0d 00 00 74 14 b8 e6 00 00 00 0f 05 d8 c3 66 2e 0f 1f 84 00 00 00 00 00 48 83 ec 28 48 89 54 24 10
RSP: 002b:00007fff54642788 EFLAGS: 00000202 ORIG_RAX: 00000000000000e6
RAX: ffffffffffffffda RBX: 00000000000000ae RCX: 00007f2fd2ca82b3
RDX: 00007fff546427a0 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007fff5464282c R08: 00007fff54683080 R09: 00007fff546830b0
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000032
R13: 000000000000fe71 R14: 000000000000fe56 R15: 000000000000000c
================================================================================
BUG: scheduling while atomic: syz-executor.0/1249/0x00000002
Modules linked in:
Preemption disabled at:
[] remove_wait_queue+0x26/0x140 kernel/sched/wait.c:55
CPU: 0 PID: 1249 Comm: syz-executor.0 Not tainted 6.1.78-syzkaller-00133-g74c507aab139 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/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:5964
schedule_debug kernel/sched/core.c:5991 [inline]
__schedule+0xcf7/0x1550 kernel/sched/core.c:6626