BUG: MAX_STACK_TRACE_ENTRIES too low! turning off the locking correctness validator. CPU: 0 PID: 12380 Comm: syz-executor340 Not tainted 5.15.167-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106 save_trace+0x88a/0xab0 kernel/locking/lockdep.c:547 mark_lock+0x1ca/0x340 kernel/locking/lockdep.c:4586 __lock_acquire+0xb9d/0x1ff0 kernel/locking/lockdep.c:4966 lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xd1/0x120 kernel/locking/spinlock.c:162 htab_lock_bucket kernel/bpf/hashtab.c:183 [inline] htab_map_delete_elem+0x1bd/0x560 kernel/bpf/hashtab.c:1358 bpf_prog_504ea4f3ba7abdf5+0x3f/0x240 bpf_dispatcher_nop_func include/linux/bpf.h:790 [inline] __bpf_prog_run include/linux/filter.h:628 [inline] bpf_prog_run include/linux/filter.h:635 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:1880 [inline] bpf_trace_run2+0x19e/0x340 kernel/trace/bpf_trace.c:1917 __bpf_trace_kfree+0x6e/0x90 include/trace/events/kmem.h:118 __traceiter_kfree+0x26/0x40 include/trace/events/kmem.h:118 trace_kfree include/trace/events/kmem.h:118 [inline] kfree+0x22f/0x270 mm/slub.c:4549 skb_free_head net/core/skbuff.c:655 [inline] skb_release_data+0x73a/0x8a0 net/core/skbuff.c:677 skb_release_all net/core/skbuff.c:742 [inline] __kfree_skb+0x4c/0x60 net/core/skbuff.c:756 tcp_clean_rtx_queue net/ipv4/tcp_input.c:3368 [inline] tcp_ack+0x2326/0x6ab0 net/ipv4/tcp_input.c:3925 tcp_rcv_established+0xf2d/0x1e20 net/ipv4/tcp_input.c:5938 tcp_v4_do_rcv+0x423/0x960 net/ipv4/tcp_ipv4.c:1728 tcp_v4_rcv+0x2740/0x2d80 net/ipv4/tcp_ipv4.c:2140 ip_protocol_deliver_rcu+0x381/0x730 net/ipv4/ip_input.c:204 ip_local_deliver_finish+0x1db/0x320 net/ipv4/ip_input.c:231 NF_HOOK+0x364/0x410 include/linux/netfilter.h:302 dst_input include/net/dst.h:453 [inline] ip_sublist_rcv_finish net/ipv4/ip_input.c:577 [inline] ip_list_rcv_finish net/ipv4/ip_input.c:628 [inline] ip_sublist_rcv+0xb0f/0xe50 net/ipv4/ip_input.c:636 ip_list_rcv+0x422/0x470 net/ipv4/ip_input.c:671 __netif_receive_skb_list_ptype net/core/dev.c:5528 [inline] __netif_receive_skb_list_core+0x6b1/0x890 net/core/dev.c:5576 __netif_receive_skb_list net/core/dev.c:5628 [inline] netif_receive_skb_list_internal+0x9ed/0xdf0 net/core/dev.c:5719 gro_normal_list net/core/dev.c:5873 [inline] napi_complete_done+0x352/0x820 net/core/dev.c:6611 virtqueue_napi_complete drivers/net/virtio_net.c:357 [inline] virtnet_poll+0xbd1/0x1260 drivers/net/virtio_net.c:1592 __napi_poll+0xc7/0x440 net/core/dev.c:7035 napi_poll net/core/dev.c:7102 [inline] net_rx_action+0x617/0xda0 net/core/dev.c:7192 handle_softirqs+0x3a7/0x930 kernel/softirq.c:558 __do_softirq kernel/softirq.c:592 [inline] invoke_softirq kernel/softirq.c:432 [inline] __irq_exit_rcu+0x157/0x240 kernel/softirq.c:641 irq_exit_rcu+0x5/0x20 kernel/softirq.c:653 common_interrupt+0xa4/0xc0 arch/x86/kernel/irq.c:240 asm_common_interrupt+0x22/0x40 arch/x86/include/asm/idtentry.h:629 RIP: 0010:check_kcov_mode kernel/kcov.c:183 [inline] RIP: 0010:write_comp_data kernel/kcov.c:227 [inline] RIP: 0010:__sanitizer_cov_trace_const_cmp4+0x30/0x80 kernel/kcov.c:293 Code: 8b 15 e4 11 82 7e 65 8b 05 e5 11 82 7e 25 00 01 ff 00 74 10 3d 00 01 00 00 75 5b 83 ba 34 16 00 00 00 74 52 8b 82 10 16 00 00 <83> f8 03 75 47 48 8b 8a 18 16 00 00 44 8b 92 14 16 00 00 49 c1 e2 RSP: 0018:ffffc90002e57138 EFLAGS: 00000246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff88807c5f9dc0 RDX: ffff88807c5f9dc0 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90002e57458 R08: ffffffff8191ee4c R09: ffffed100f8bf3b9 R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: dffffc0000000000 R14: 1ffff1100f8bf3b8 R15: ffffc90002e573b8 do_check+0x281c/0xf310 kernel/bpf/verifier.c:11222 do_check_common+0x844/0x1070 kernel/bpf/verifier.c:13482 do_check_main kernel/bpf/verifier.c:13545 [inline] bpf_check+0xcb80/0x12d00 kernel/bpf/verifier.c:14116 bpf_prog_load+0x12b3/0x1b60 kernel/bpf/syscall.c:2353 __sys_bpf+0x343/0x670 kernel/bpf/syscall.c:4651 __do_sys_bpf kernel/bpf/syscall.c:4755 [inline] __se_sys_bpf kernel/bpf/syscall.c:4753 [inline] __x64_sys_bpf+0x78/0x90 kernel/bpf/syscall.c:4753 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f190373ef69 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 c1 17 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffde3ce9b28 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f190373ef69 RDX: 0000000000000090 RSI: 00000000200000c0 RDI: 0000000000000005 RBP: 0000000000000000 R08: 00000000000000a0 R09: 00000000000000a0 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 ---------------- Code disassembly (best guess): 0: 8b 15 e4 11 82 7e mov 0x7e8211e4(%rip),%edx # 0x7e8211ea 6: 65 8b 05 e5 11 82 7e mov %gs:0x7e8211e5(%rip),%eax # 0x7e8211f2 d: 25 00 01 ff 00 and $0xff0100,%eax 12: 74 10 je 0x24 14: 3d 00 01 00 00 cmp $0x100,%eax 19: 75 5b jne 0x76 1b: 83 ba 34 16 00 00 00 cmpl $0x0,0x1634(%rdx) 22: 74 52 je 0x76 24: 8b 82 10 16 00 00 mov 0x1610(%rdx),%eax * 2a: 83 f8 03 cmp $0x3,%eax <-- trapping instruction 2d: 75 47 jne 0x76 2f: 48 8b 8a 18 16 00 00 mov 0x1618(%rdx),%rcx 36: 44 8b 92 14 16 00 00 mov 0x1614(%rdx),%r10d 3d: 49 rex.WB 3e: c1 .byte 0xc1 3f: e2 .byte 0xe2