program: r0 = socket$can_j1939(0x1d, 0x2, 0x7) ioctl$ifreq_SIOCGIFINDEX_vcan(r0, 0x8933, &(0x7f0000000040)={'vxcan0\x00', 0x0}) bind$can_j1939(r0, &(0x7f0000000080)={0x1d, r1}, 0x18) r2 = socket$can_j1939(0x1d, 0x2, 0x7) ioctl$ifreq_SIOCGIFINDEX_vcan(r2, 0x8933, &(0x7f00000000c0)={'vxcan1\x00', 0x0}) bind$can_j1939(r2, &(0x7f0000000100)={0x1d, r3}, 0x18) connect$can_j1939(r2, &(0x7f0000000140)={0x1d, r3}, 0x18) sendmsg$can_j1939(r2, &(0x7f0000000180)={0x0, 0x0, &(0x7f00000001c0)={&(0x7f0000000200)='d', 0x1}}, 0x0) recvmsg$can_j1939(r0, &(0x7f0000000000)={0x0, 0x0, 0x0}, 0x0) [ 75.261600][ T5298] Bluetooth: hci0: command tx timeout [ 75.368148][ T5313] ------------[ cut here ]------------ [ 75.370509][ T5313] refcount_t: underflow; use-after-free. [ 75.375975][ T5313] WARNING: CPU: 0 PID: 5313 at lib/refcount.c:28 refcount_warn_saturate+0x15a/0x1d0 [ 75.380109][ T5313] Modules linked in: [ 75.381599][ T5313] CPU: 0 UID: 0 PID: 5313 Comm: syz.0.0 Not tainted 6.13.0-rc1-syzkaller-00005-gceb8bf2ceaa7 #0 [ 75.385400][ T5313] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 [ 75.389920][ T5313] RIP: 0010:refcount_warn_saturate+0x15a/0x1d0 [ 75.392303][ T5313] Code: e0 1e 5f 8c e8 07 c1 95 fc 90 0f 0b 90 90 eb 99 e8 ab 19 d5 fc c6 05 ed 27 39 0b 01 90 48 c7 c7 40 1f 5f 8c e8 e7 c0 95 fc 90 <0f> 0b 90 90 e9 76 ff ff ff e8 88 19 d5 fc c6 05 c7 27 39 0b 01 90 [ 75.400293][ T5313] RSP: 0018:ffffc9000d50f8e8 EFLAGS: 00010246 [ 75.402658][ T5313] RAX: 47a91e9c01b72e00 RBX: ffff8880122e1ae4 RCX: 0000000000100000 [ 75.405710][ T5313] RDX: ffffc9000e352000 RSI: 00000000000009ac RDI: 00000000000009ad [ 75.408669][ T5313] RBP: 0000000000000003 R08: ffffffff81601c02 R09: 1ffff11003f8519a [ 75.412096][ T5313] R10: dffffc0000000000 R11: ffffed1003f8519b R12: ffff888045a8d068 [ 75.415211][ T5313] R13: ffff8880122e1ae4 R14: 1ffff11008b51a18 R15: ffff888045a8d000 [ 75.418250][ T5313] FS: 00007f789176c6c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 [ 75.422255][ T5313] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 75.424788][ T5313] CR2: 0000000020000040 CR3: 0000000011c50000 CR4: 0000000000352ef0 [ 75.428544][ T5313] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 75.432020][ T5313] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 75.435020][ T5313] Call Trace: [ 75.436339][ T5313] [ 75.437486][ T5313] ? __warn+0x165/0x4d0 [ 75.439134][ T5313] ? refcount_warn_saturate+0x15a/0x1d0 [ 75.441561][ T5313] ? report_bug+0x2b3/0x500 [ 75.443394][ T5313] ? refcount_warn_saturate+0x15a/0x1d0 [ 75.445609][ T5313] ? handle_bug+0x60/0x90 [ 75.447345][ T5313] ? exc_invalid_op+0x1a/0x50 [ 75.449197][ T5313] ? asm_exc_invalid_op+0x1a/0x20 [ 75.451266][ T5313] ? __warn_printk+0x292/0x360 [ 75.453115][ T5313] ? refcount_warn_saturate+0x15a/0x1d0 [ 75.455231][ T5313] ? refcount_warn_saturate+0x159/0x1d0 [ 75.457289][ T5313] j1939_session_put+0x1ed/0x440 [ 75.459179][ T5313] j1939_sk_sendmsg+0x121b/0x14c0 [ 75.461201][ T5313] ? __pfx_j1939_sk_sendmsg+0x10/0x10 [ 75.463152][ T5313] ? __import_iovec+0x590/0x870 [ 75.464957][ T5313] ? aa_sock_msg_perm+0x91/0x160 [ 75.466866][ T5313] ? __pfx_j1939_sk_sendmsg+0x10/0x10 [ 75.468881][ T5313] __sock_sendmsg+0x221/0x270 [ 75.470881][ T5313] ____sys_sendmsg+0x52a/0x7e0 [ 75.472767][ T5313] ? __pfx_____sys_sendmsg+0x10/0x10 [ 75.474650][ T5313] ? __fget_files+0x2a/0x410 [ 75.476265][ T5313] ? __fget_files+0x2a/0x410 [ 75.477872][ T5313] __sys_sendmsg+0x269/0x350 [ 75.479656][ T5313] ? __pfx___sys_sendmsg+0x10/0x10 [ 75.481382][ T5313] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 75.483510][ T5313] ? do_syscall_64+0x100/0x230 [ 75.485140][ T5313] ? do_syscall_64+0xb6/0x230 [ 75.486813][ T5313] do_syscall_64+0xf3/0x230 [ 75.488427][ T5313] ? clear_bhb_loop+0x35/0x90 [ 75.490292][ T5313] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 75.492541][ T5313] RIP: 0033:0x7f789097ff19 [ 75.494091][ T5313] 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 [ 75.501701][ T5313] RSP: 002b:00007f789176c058 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 75.504456][ T5313] RAX: ffffffffffffffda RBX: 00007f7890b45fa0 RCX: 00007f789097ff19 [ 75.507135][ T5313] RDX: 0000000000000000 RSI: 0000000020000180 RDI: 0000000000000004 [ 75.510187][ T5313] RBP: 00007f78909f3986 R08: 0000000000000000 R09: 0000000000000000 [ 75.513072][ T5313] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 75.516166][ T5313] R13: 0000000000000000 R14: 00007f7890b45fa0 R15: 00007ffe85f577b8 [ 75.519215][ T5313] [ 75.520529][ T5313] Kernel panic - not syncing: kernel: panic_on_warn set ... [ 75.523257][ T5313] CPU: 0 UID: 0 PID: 5313 Comm: syz.0.0 Not tainted 6.13.0-rc1-syzkaller-00005-gceb8bf2ceaa7 #0 [ 75.527224][ T5313] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 [ 75.531401][ T5313] Call Trace: [ 75.532723][ T5313] [ 75.533904][ T5313] dump_stack_lvl+0x241/0x360 [ 75.535807][ T5313] ? __pfx_dump_stack_lvl+0x10/0x10 [ 75.537872][ T5313] ? __pfx__printk+0x10/0x10 [ 75.539700][ T5313] ? _printk+0xd5/0x120 [ 75.541312][ T5313] ? __init_begin+0x41000/0x41000 [ 75.543316][ T5313] ? vscnprintf+0x5d/0x90 [ 75.545018][ T5313] panic+0x349/0x880 [ 75.546586][ T5313] ? __warn+0x174/0x4d0 [ 75.548215][ T5313] ? __pfx_panic+0x10/0x10 [ 75.549899][ T5313] __warn+0x344/0x4d0 [ 75.551306][ T5313] ? refcount_warn_saturate+0x15a/0x1d0 [ 75.553239][ T5313] report_bug+0x2b3/0x500 [ 75.554742][ T5313] ? refcount_warn_saturate+0x15a/0x1d0 [ 75.556668][ T5313] handle_bug+0x60/0x90 [ 75.558070][ T5313] exc_invalid_op+0x1a/0x50 [ 75.559743][ T5313] asm_exc_invalid_op+0x1a/0x20 [ 75.561535][ T5313] RIP: 0010:refcount_warn_saturate+0x15a/0x1d0 [ 75.563851][ T5313] Code: e0 1e 5f 8c e8 07 c1 95 fc 90 0f 0b 90 90 eb 99 e8 ab 19 d5 fc c6 05 ed 27 39 0b 01 90 48 c7 c7 40 1f 5f 8c e8 e7 c0 95 fc 90 <0f> 0b 90 90 e9 76 ff ff ff e8 88 19 d5 fc c6 05 c7 27 39 0b 01 90 [ 75.570739][ T5313] RSP: 0018:ffffc9000d50f8e8 EFLAGS: 00010246 [ 75.573095][ T5313] RAX: 47a91e9c01b72e00 RBX: ffff8880122e1ae4 RCX: 0000000000100000 [ 75.576115][ T5313] RDX: ffffc9000e352000 RSI: 00000000000009ac RDI: 00000000000009ad [ 75.578898][ T5313] RBP: 0000000000000003 R08: ffffffff81601c02 R09: 1ffff11003f8519a [ 75.581704][ T5313] R10: dffffc0000000000 R11: ffffed1003f8519b R12: ffff888045a8d068 [ 75.584500][ T5313] R13: ffff8880122e1ae4 R14: 1ffff11008b51a18 R15: ffff888045a8d000 [ 75.587287][ T5313] ? __warn_printk+0x292/0x360 [ 75.589021][ T5313] ? refcount_warn_saturate+0x159/0x1d0 [ 75.591172][ T5313] j1939_session_put+0x1ed/0x440 [ 75.593170][ T5313] j1939_sk_sendmsg+0x121b/0x14c0 [ 75.595242][ T5313] ? __pfx_j1939_sk_sendmsg+0x10/0x10 [ 75.597380][ T5313] ? __import_iovec+0x590/0x870 [ 75.599303][ T5313] ? aa_sock_msg_perm+0x91/0x160 [ 75.601154][ T5313] ? __pfx_j1939_sk_sendmsg+0x10/0x10 [ 75.603299][ T5313] __sock_sendmsg+0x221/0x270 [ 75.605174][ T5313] ____sys_sendmsg+0x52a/0x7e0 [ 75.606998][ T5313] ? __pfx_____sys_sendmsg+0x10/0x10 [ 75.609080][ T5313] ? __fget_files+0x2a/0x410 [ 75.610972][ T5313] ? __fget_files+0x2a/0x410 [ 75.612757][ T5313] __sys_sendmsg+0x269/0x350 [ 75.614611][ T5313] ? __pfx___sys_sendmsg+0x10/0x10 [ 75.616703][ T5313] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 75.619216][ T5313] ? do_syscall_64+0x100/0x230 [ 75.621136][ T5313] ? do_syscall_64+0xb6/0x230 [ 75.623030][ T5313] do_syscall_64+0xf3/0x230 [ 75.624800][ T5313] ? clear_bhb_loop+0x35/0x90 [ 75.626699][ T5313] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 75.629040][ T5313] RIP: 0033:0x7f789097ff19 [ 75.630905][ T5313] 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 [ 75.638511][ T5313] RSP: 002b:00007f789176c058 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 75.641635][ T5313] RAX: ffffffffffffffda RBX: 00007f7890b45fa0 RCX: 00007f789097ff19 [ 75.644808][ T5313] RDX: 0000000000000000 RSI: 0000000020000180 RDI: 0000000000000004 [ 75.647923][ T5313] RBP: 00007f78909f3986 R08: 0000000000000000 R09: 0000000000000000 [ 75.651060][ T5313] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 75.654190][ T5313] R13: 0000000000000000 R14: 00007f7890b45fa0 R15: 00007ffe85f577b8 [ 75.657362][ T5313] [ 75.658866][ T5313] Kernel Offset: disabled [ 75.660629][ T5313] Rebooting in 86400 seconds..