------------[ cut here ]------------
UBSAN: array-index-out-of-bounds in ./kernel/bpf/devmap.c:385:33
index 16 is out of range for type 'xdp_frame *[16]'
CPU: 0 PID: 7150 Comm: syz.1.426 Not tainted 6.10.0-syzkaller-11185-g2c9b3512402e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x16c/0x1f0 lib/dump_stack.c:114
ubsan_epilogue lib/ubsan.c:231 [inline]
__ubsan_handle_out_of_bounds+0x110/0x150 lib/ubsan.c:429
bq_xmit_all+0xbec/0xdd0 kernel/bpf/devmap.c:385
__dev_flush+0x85/0x1e0 kernel/bpf/devmap.c:425
xdp_do_check_flushed+0x26b/0x4e0 net/core/filter.c:4300
__napi_poll.constprop.0+0xd1/0x550 net/core/dev.c:6774
napi_poll net/core/dev.c:6840 [inline]
net_rx_action+0xa92/0x1010 net/core/dev.c:6962
handle_softirqs+0x216/0x8f0 kernel/softirq.c:554
__do_softirq kernel/softirq.c:588 [inline]
invoke_softirq kernel/softirq.c:428 [inline]
__irq_exit_rcu kernel/softirq.c:637 [inline]
irq_exit_rcu+0xbb/0x120 kernel/softirq.c:649
common_interrupt+0xb0/0xd0 arch/x86/kernel/irq.c:278
asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:693
RIP: 0010:memory_is_poisoned_n mm/kasan/generic.c:130 [inline]
RIP: 0010:memory_is_poisoned mm/kasan/generic.c:161 [inline]
RIP: 0010:check_region_inline mm/kasan/generic.c:180 [inline]
RIP: 0010:kasan_check_range+0x5a/0x1a0 mm/kasan/generic.c:189
Code: b3 00 00 00 4c 8d 54 37 ff 48 89 fd 48 b8 00 00 00 00 00 fc ff df 4d 89 d1 48 c1 ed 03 49 c1 e9 03 48 01 c5 49 01 c1 48 89 e8 <49> 8d 59 01 48 89 da 48 29 ea 48 83 fa 10 0f 8e 8d 00 00 00 41 89
RSP: 0018:ffffc90003267b48 EFLAGS: 00000286
RAX: fffffbfff1cfd014 RBX: ffffffff8e7e80a0 RCX: ffffffff81669e02
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff8e7e80a0
RBP: fffffbfff1cfd014 R08: 0000000000000000 R09: fffffbfff1cfd014
R10: ffffffff8e7e80a7 R11: 0000000000000000 R12: ffff88801f312000
R13: ffff88802bff7c78 R14: ffffc90003267bc8 R15: 0000000000000f00
instrument_atomic_read include/linux/instrumented.h:68 [inline]
atomic_long_read include/linux/atomic/atomic-instrumented.h:3188 [inline]
__mutex_owner kernel/locking/mutex.c:81 [inline]
mutex_is_locked+0x12/0x50 kernel/locking/mutex.c:91
rng_get_data drivers/char/hw_random/core.c:183 [inline]
rng_dev_read+0x44e/0x720 drivers/char/hw_random/core.c:223
do_loop_readv_writev fs/read_write.c:761 [inline]
do_loop_readv_writev fs/read_write.c:749 [inline]
vfs_readv+0x6cb/0x8a0 fs/read_write.c:934
do_preadv fs/read_write.c:1049 [inline]
__do_sys_preadv fs/read_write.c:1099 [inline]
__se_sys_preadv fs/read_write.c:1094 [inline]
__x64_sys_preadv+0x22b/0x310 fs/read_write.c:1094
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f6f49b75b59
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f6f4a9ad048 EFLAGS: 00000246 ORIG_RAX: 0000000000000127
RAX: ffffffffffffffda RBX: 00007f6f49d05f60 RCX: 00007f6f49b75b59
RDX: 0000000000000001 RSI: 0000000020000240 RDI: 0000000000000007
RBP: 00007f6f49be4e5d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f6f49d05f60 R15: 00007fff24463b88
---[ end trace ]---
----------------
Code disassembly (best guess):
0: b3 00 mov $0x0,%bl
2: 00 00 add %al,(%rax)
4: 4c 8d 54 37 ff lea -0x1(%rdi,%rsi,1),%r10
9: 48 89 fd mov %rdi,%rbp
c: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
13: fc ff df
16: 4d 89 d1 mov %r10,%r9
19: 48 c1 ed 03 shr $0x3,%rbp
1d: 49 c1 e9 03 shr $0x3,%r9
21: 48 01 c5 add %rax,%rbp
24: 49 01 c1 add %rax,%r9
27: 48 89 e8 mov %rbp,%rax
* 2a: 49 8d 59 01 lea 0x1(%r9),%rbx <-- trapping instruction
2e: 48 89 da mov %rbx,%rdx
31: 48 29 ea sub %rbp,%rdx
34: 48 83 fa 10 cmp $0x10,%rdx
38: 0f 8e 8d 00 00 00 jle 0xcb
3e: 41 rex.B
3f: 89 .byte 0x89