program: perf_event_open(&(0x7f0000002180)={0x2, 0x80, 0x4f, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, @perf_bp={0x0}}, 0x0, 0x0, 0xffffffffffffffff, 0x0) r0 = socket$can_j1939(0x1d, 0x2, 0x7) ioctl$ifreq_SIOCGIFINDEX_vcan(r0, 0x8933, &(0x7f0000000200)={'vcan0\x00', 0x0}) r2 = socket$can_j1939(0x1d, 0x2, 0x7) bind$can_j1939(r2, &(0x7f0000000080)={0x1d, r1}, 0x18) sendmsg$can_j1939(r2, &(0x7f00000001c0)={&(0x7f0000000040), 0x18, &(0x7f0000000180)={&(0x7f00000000c0)="92", 0x1a000}}, 0xee) [ 60.139963][ C0] ------------[ cut here ]------------ [ 60.142299][ C0] refcount_t: underflow; use-after-free. [ 60.144770][ C0] WARNING: CPU: 0 PID: 30 at lib/refcount.c:28 refcount_warn_saturate+0x15a/0x1d0 [ 60.148464][ C0] Modules linked in: [ 60.149941][ C0] CPU: 0 UID: 0 PID: 30 Comm: kworker/u4:2 Not tainted 6.12.0-rc7-syzkaller-00187-gf868cd251776 #0 [ 60.153919][ C0] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 [ 60.158117][ C0] Workqueue: bat_events batadv_nc_worker [ 60.160195][ C0] RIP: 0010:refcount_warn_saturate+0x15a/0x1d0 [ 60.162485][ C0] Code: e0 c7 60 8c e8 f7 18 98 fc 90 0f 0b 90 90 eb 99 e8 7b 22 d7 fc c6 05 0b 0c 49 0b 01 90 48 c7 c7 40 c8 60 8c e8 d7 18 98 fc 90 <0f> 0b 90 90 e9 76 ff ff ff e8 58 22 d7 fc c6 05 e5 0b 49 0b 01 90 [ 60.169763][ C0] RSP: 0018:ffffc900000076e0 EFLAGS: 00010246 [ 60.172030][ C0] RAX: 80697a6ff7a6d900 RBX: ffff88804fea5724 RCX: ffff88801ddbc880 [ 60.174812][ C0] RDX: 0000000000000100 RSI: 0000000000000000 RDI: 0000000000000000 [ 60.177783][ C0] RBP: 0000000000000003 R08: ffffffff8155e312 R09: 1ffff11003f8519a [ 60.180659][ C0] R10: dffffc0000000000 R11: ffffed1003f8519b R12: ffff88803be4f800 [ 60.183692][ C0] R13: ffff88804fea5724 R14: ffff88803be4f800 R15: ffff88804ffe3218 [ 60.186837][ C0] FS: 0000000000000000(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 [ 60.190241][ C0] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 60.192620][ C0] CR2: 0000000020015000 CR3: 000000004ed3e000 CR4: 0000000000352ef0 [ 60.195580][ C0] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 60.198683][ C0] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 60.201638][ C0] Call Trace: [ 60.202901][ C0] [ 60.204025][ C0] ? __warn+0x168/0x4e0 [ 60.205643][ C0] ? refcount_warn_saturate+0x15a/0x1d0 [ 60.207838][ C0] ? report_bug+0x2b3/0x500 [ 60.209564][ C0] ? refcount_warn_saturate+0x15a/0x1d0 [ 60.211703][ C0] ? handle_bug+0x60/0x90 [ 60.213326][ C0] ? exc_invalid_op+0x1a/0x50 [ 60.215090][ C0] ? asm_exc_invalid_op+0x1a/0x20 [ 60.217035][ C0] ? __warn_printk+0x292/0x360 [ 60.218962][ C0] ? refcount_warn_saturate+0x15a/0x1d0 [ 60.221101][ C0] j1939_xtp_rx_cts+0x552/0xc70 [ 60.223027][ C0] j1939_tp_recv+0x8ae/0x1050 [ 60.224792][ C0] j1939_can_recv+0x732/0xb20 [ 60.226615][ C0] ? __pfx_j1939_can_recv+0x10/0x10 [ 60.228694][ C0] ? __lock_acquire+0x1384/0x2050 [ 60.230626][ C0] ? __pfx_j1939_can_recv+0x10/0x10 [ 60.232584][ C0] can_rcv_filter+0x359/0x7f0 [ 60.234479][ C0] ? can_receive+0x1cd/0x470 [ 60.236526][ C0] can_receive+0x31c/0x470 [ 60.238582][ C0] can_rcv+0x144/0x260 [ 60.240160][ C0] ? __pfx_can_rcv+0x10/0x10 [ 60.241923][ C0] __netif_receive_skb+0x2e0/0x650 [ 60.243934][ C0] ? __pfx_lock_acquire+0x10/0x10 [ 60.245699][ C0] ? __pfx___netif_receive_skb+0x10/0x10 [ 60.247985][ C0] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 60.250221][ C0] ? __pfx_lock_release+0x10/0x10 [ 60.252002][ C0] ? _raw_spin_lock_irq+0xdf/0x120 [ 60.253913][ C0] process_backlog+0x662/0x15b0 [ 60.255822][ C0] ? process_backlog+0x33b/0x15b0 [ 60.257853][ C0] ? __pfx_process_backlog+0x10/0x10 [ 60.259929][ C0] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 60.262067][ C0] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 60.264323][ C0] __napi_poll+0xcb/0x490 [ 60.265924][ C0] net_rx_action+0x89b/0x1240 [ 60.267707][ C0] ? __pfx_net_rx_action+0x10/0x10 [ 60.269496][ C0] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 60.271846][ C0] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 60.274721][ C0] handle_softirqs+0x2c5/0x980 [ 60.276990][ C0] ? do_softirq+0x11b/0x1e0 [ 60.279172][ C0] ? __pfx_handle_softirqs+0x10/0x10 [ 60.281576][ C0] do_softirq+0x11b/0x1e0 [ 60.283605][ C0] [ 60.284914][ C0] [ 60.286148][ C0] ? __pfx_do_softirq+0x10/0x10 [ 60.288236][ C0] ? __pfx_lockdep_softirqs_on+0x10/0x10 [ 60.290569][ C0] ? __pfx_lock_acquire+0x10/0x10 [ 60.292383][ C0] ? rcu_is_watching+0x15/0xb0 [ 60.294354][ C0] __local_bh_enable_ip+0x1bb/0x200 [ 60.296370][ C0] ? batadv_nc_purge_paths+0x312/0x3b0 [ 60.298433][ C0] ? __pfx___local_bh_enable_ip+0x10/0x10 [ 60.300706][ C0] ? batadv_nc_purge_paths+0xe8/0x3b0 [ 60.302788][ C0] ? __pfx_batadv_nc_to_purge_nc_path_coding+0x10/0x10 [ 60.305282][ C0] batadv_nc_purge_paths+0x312/0x3b0 [ 60.307354][ C0] batadv_nc_worker+0x328/0x610 [ 60.309272][ C0] ? batadv_nc_worker+0xcb/0x610 [ 60.311256][ C0] ? process_scheduled_works+0x976/0x1850 [ 60.313415][ C0] process_scheduled_works+0xa63/0x1850 [ 60.315475][ C0] ? __pfx_process_scheduled_works+0x10/0x10 [ 60.317806][ C0] ? assign_work+0x364/0x3d0 [ 60.319552][ C0] worker_thread+0x870/0xd30 [ 60.321396][ C0] ? __kthread_parkme+0x169/0x1d0 [ 60.323341][ C0] ? __pfx_worker_thread+0x10/0x10 [ 60.325352][ C0] kthread+0x2f0/0x390 [ 60.326921][ C0] ? __pfx_worker_thread+0x10/0x10 [ 60.328921][ C0] ? __pfx_kthread+0x10/0x10 [ 60.330716][ C0] ret_from_fork+0x4b/0x80 [ 60.332300][ C0] ? __pfx_kthread+0x10/0x10 [ 60.333977][ C0] ret_from_fork_asm+0x1a/0x30 [ 60.335624][ C0] [ 60.336707][ C0] Kernel panic - not syncing: kernel: panic_on_warn set ... [ 60.339511][ C0] CPU: 0 UID: 0 PID: 30 Comm: kworker/u4:2 Not tainted 6.12.0-rc7-syzkaller-00187-gf868cd251776 #0 [ 60.343371][ C0] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 [ 60.347309][ C0] Workqueue: bat_events batadv_nc_worker [ 60.349360][ C0] Call Trace: [ 60.350646][ C0] [ 60.351891][ C0] dump_stack_lvl+0x241/0x360 [ 60.353780][ C0] ? __pfx_dump_stack_lvl+0x10/0x10 [ 60.355905][ C0] ? __pfx__printk+0x10/0x10 [ 60.357733][ C0] ? vscnprintf+0x5d/0x90 [ 60.359492][ C0] panic+0x349/0x880 [ 60.361061][ C0] ? __warn+0x177/0x4e0 [ 60.362722][ C0] ? __pfx_panic+0x10/0x10 [ 60.364485][ C0] ? ret_from_fork_asm+0x1a/0x30 [ 60.366394][ C0] __warn+0x34b/0x4e0 [ 60.367912][ C0] ? refcount_warn_saturate+0x15a/0x1d0 [ 60.370012][ C0] report_bug+0x2b3/0x500 [ 60.371714][ C0] ? refcount_warn_saturate+0x15a/0x1d0 [ 60.373833][ C0] handle_bug+0x60/0x90 [ 60.375484][ C0] exc_invalid_op+0x1a/0x50 [ 60.377316][ C0] asm_exc_invalid_op+0x1a/0x20 [ 60.379129][ C0] RIP: 0010:refcount_warn_saturate+0x15a/0x1d0 [ 60.381287][ C0] Code: e0 c7 60 8c e8 f7 18 98 fc 90 0f 0b 90 90 eb 99 e8 7b 22 d7 fc c6 05 0b 0c 49 0b 01 90 48 c7 c7 40 c8 60 8c e8 d7 18 98 fc 90 <0f> 0b 90 90 e9 76 ff ff ff e8 58 22 d7 fc c6 05 e5 0b 49 0b 01 90 [ 60.387865][ C0] RSP: 0018:ffffc900000076e0 EFLAGS: 00010246 [ 60.390027][ C0] RAX: 80697a6ff7a6d900 RBX: ffff88804fea5724 RCX: ffff88801ddbc880 [ 60.392813][ C0] RDX: 0000000000000100 RSI: 0000000000000000 RDI: 0000000000000000 [ 60.395649][ C0] RBP: 0000000000000003 R08: ffffffff8155e312 R09: 1ffff11003f8519a [ 60.398414][ C0] R10: dffffc0000000000 R11: ffffed1003f8519b R12: ffff88803be4f800 [ 60.401041][ C0] R13: ffff88804fea5724 R14: ffff88803be4f800 R15: ffff88804ffe3218 [ 60.403971][ C0] ? __warn_printk+0x292/0x360 [ 60.405778][ C0] j1939_xtp_rx_cts+0x552/0xc70 [ 60.407643][ C0] j1939_tp_recv+0x8ae/0x1050 [ 60.409350][ C0] j1939_can_recv+0x732/0xb20 [ 60.411102][ C0] ? __pfx_j1939_can_recv+0x10/0x10 [ 60.413108][ C0] ? __lock_acquire+0x1384/0x2050 [ 60.415018][ C0] ? __pfx_j1939_can_recv+0x10/0x10 [ 60.416935][ C0] can_rcv_filter+0x359/0x7f0 [ 60.418708][ C0] ? can_receive+0x1cd/0x470 [ 60.420533][ C0] can_receive+0x31c/0x470 [ 60.422346][ C0] can_rcv+0x144/0x260 [ 60.423929][ C0] ? __pfx_can_rcv+0x10/0x10 [ 60.425553][ C0] __netif_receive_skb+0x2e0/0x650 [ 60.427364][ C0] ? __pfx_lock_acquire+0x10/0x10 [ 60.429176][ C0] ? __pfx___netif_receive_skb+0x10/0x10 [ 60.431174][ C0] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 60.433268][ C0] ? __pfx_lock_release+0x10/0x10 [ 60.435043][ C0] ? _raw_spin_lock_irq+0xdf/0x120 [ 60.436801][ C0] process_backlog+0x662/0x15b0 [ 60.438542][ C0] ? process_backlog+0x33b/0x15b0 [ 60.440429][ C0] ? __pfx_process_backlog+0x10/0x10 [ 60.442356][ C0] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 60.444643][ C0] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 60.447039][ C0] __napi_poll+0xcb/0x490 [ 60.448631][ C0] net_rx_action+0x89b/0x1240 [ 60.450320][ C0] ? __pfx_net_rx_action+0x10/0x10 [ 60.452220][ C0] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 60.454489][ C0] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 60.456869][ C0] handle_softirqs+0x2c5/0x980 [ 60.458623][ C0] ? do_softirq+0x11b/0x1e0 [ 60.460288][ C0] ? __pfx_handle_softirqs+0x10/0x10 [ 60.462227][ C0] do_softirq+0x11b/0x1e0 [ 60.463814][ C0] [ 60.464963][ C0] [ 60.466094][ C0] ? __pfx_do_softirq+0x10/0x10 [ 60.468019][ C0] ? __pfx_lockdep_softirqs_on+0x10/0x10 [ 60.470141][ C0] ? __pfx_lock_acquire+0x10/0x10 [ 60.472195][ C0] ? rcu_is_watching+0x15/0xb0 [ 60.474136][ C0] __local_bh_enable_ip+0x1bb/0x200 [ 60.476098][ C0] ? batadv_nc_purge_paths+0x312/0x3b0 [ 60.478200][ C0] ? __pfx___local_bh_enable_ip+0x10/0x10 [ 60.480292][ C0] ? batadv_nc_purge_paths+0xe8/0x3b0 [ 60.482206][ C0] ? __pfx_batadv_nc_to_purge_nc_path_coding+0x10/0x10 [ 60.484704][ C0] batadv_nc_purge_paths+0x312/0x3b0 [ 60.486769][ C0] batadv_nc_worker+0x328/0x610 [ 60.488663][ C0] ? batadv_nc_worker+0xcb/0x610 [ 60.490606][ C0] ? process_scheduled_works+0x976/0x1850 [ 60.492737][ C0] process_scheduled_works+0xa63/0x1850 [ 60.494825][ C0] ? __pfx_process_scheduled_works+0x10/0x10 [ 60.496913][ C0] ? assign_work+0x364/0x3d0 [ 60.498514][ C0] worker_thread+0x870/0xd30 [ 60.500134][ C0] ? __kthread_parkme+0x169/0x1d0 [ 60.501855][ C0] ? __pfx_worker_thread+0x10/0x10 [ 60.503564][ C0] kthread+0x2f0/0x390 [ 60.505130][ C0] ? __pfx_worker_thread+0x10/0x10 [ 60.507238][ C0] ? __pfx_kthread+0x10/0x10 [ 60.509004][ C0] ret_from_fork+0x4b/0x80 [ 60.510681][ C0] ? __pfx_kthread+0x10/0x10 [ 60.512299][ C0] ret_from_fork_asm+0x1a/0x30 [ 60.514049][ C0] [ 60.515468][ C0] Kernel Offset: disabled [ 60.517193][ C0] Rebooting in 86400 seconds..