program: r0 = socket$can_j1939(0x1d, 0x2, 0x7) ioctl$ifreq_SIOCGIFINDEX_vcan(r0, 0x8933, &(0x7f0000000200)={'vxcan1\x00', 0x0}) bind$can_j1939(r0, &(0x7f0000000100)={0x1d, r1}, 0x18) sendmsg$can_j1939(r0, &(0x7f00000002c0)={&(0x7f00000000c0)={0x1d, 0x0, 0x0, {0x0, 0x1ee, 0x3}, 0xe6a5d1f002f09d94}, 0x18, &(0x7f00000004c0)={&(0x7f0000000140)='\x00', 0x1}}, 0x0) [ 71.130704][ T4674] Bluetooth: hci0: command tx timeout [ 71.215920][ T5315] ------------[ cut here ]------------ [ 71.218096][ T5315] refcount_t: underflow; use-after-free. [ 71.220471][ T5315] WARNING: CPU: 0 PID: 5315 at lib/refcount.c:28 refcount_warn_saturate+0x15a/0x1d0 [ 71.223907][ T5315] Modules linked in: [ 71.225921][ T5315] CPU: 0 UID: 0 PID: 5315 Comm: syz.0.0 Not tainted 6.13.0-rc1-syzkaller-00005-gceb8bf2ceaa7 #0 [ 71.229674][ T5315] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 [ 71.233165][ T5315] RIP: 0010:refcount_warn_saturate+0x15a/0x1d0 [ 71.235936][ T5315] 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 [ 71.242967][ T5315] RSP: 0018:ffffc9000d3bf8e8 EFLAGS: 00010246 [ 71.245439][ T5315] RAX: bd2999a2af063100 RBX: ffff8880432fa4a4 RCX: 0000000000100000 [ 71.248312][ T5315] RDX: ffffc9000ea22000 RSI: 00000000000009a1 RDI: 00000000000009a2 [ 71.251239][ T5315] RBP: 0000000000000003 R08: ffffffff81601c02 R09: 1ffff11003f8519a [ 71.253745][ T5315] R10: dffffc0000000000 R11: ffffed1003f8519b R12: ffff88803638b868 [ 71.256941][ T5315] R13: ffff8880432fa4a4 R14: 1ffff11006c71718 R15: ffff88803638b800 [ 71.259778][ T5315] FS: 00007f1bf11646c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 [ 71.262996][ T5315] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 71.265876][ T5315] CR2: 0000000020000200 CR3: 000000004448c000 CR4: 0000000000352ef0 [ 71.268645][ T5315] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 71.271179][ T5315] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 71.273908][ T5315] Call Trace: [ 71.275335][ T5315] [ 71.276407][ T5315] ? __warn+0x165/0x4d0 [ 71.277968][ T5315] ? refcount_warn_saturate+0x15a/0x1d0 [ 71.280059][ T5315] ? report_bug+0x2b3/0x500 [ 71.281806][ T5315] ? refcount_warn_saturate+0x15a/0x1d0 [ 71.283884][ T5315] ? handle_bug+0x60/0x90 [ 71.285764][ T5315] ? exc_invalid_op+0x1a/0x50 [ 71.287628][ T5315] ? asm_exc_invalid_op+0x1a/0x20 [ 71.289517][ T5315] ? __warn_printk+0x292/0x360 [ 71.291394][ T5315] ? refcount_warn_saturate+0x15a/0x1d0 [ 71.293376][ T5315] ? refcount_warn_saturate+0x159/0x1d0 [ 71.295462][ T5315] j1939_session_put+0x1ed/0x440 [ 71.297187][ T5315] j1939_sk_sendmsg+0x121b/0x14c0 [ 71.298908][ T5315] ? __pfx_j1939_sk_sendmsg+0x10/0x10 [ 71.300735][ T5315] ? __import_iovec+0x590/0x870 [ 71.302641][ T5315] ? aa_sock_msg_perm+0x91/0x160 [ 71.304530][ T5315] ? __pfx_j1939_sk_sendmsg+0x10/0x10 [ 71.306707][ T5315] __sock_sendmsg+0x221/0x270 [ 71.308392][ T5315] ____sys_sendmsg+0x52a/0x7e0 [ 71.310173][ T5315] ? __pfx_____sys_sendmsg+0x10/0x10 [ 71.312226][ T5315] ? __fget_files+0x2a/0x410 [ 71.314025][ T5315] ? __fget_files+0x2a/0x410 [ 71.316152][ T5315] __sys_sendmsg+0x269/0x350 [ 71.317789][ T5315] ? __pfx___sys_sendmsg+0x10/0x10 [ 71.319580][ T5315] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 71.321718][ T5315] ? do_syscall_64+0x100/0x230 [ 71.323095][ T5315] ? do_syscall_64+0xb6/0x230 [ 71.324495][ T5315] do_syscall_64+0xf3/0x230 [ 71.326424][ T5315] ? clear_bhb_loop+0x35/0x90 [ 71.328041][ T5315] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 71.329807][ T5315] RIP: 0033:0x7f1bf037ff19 [ 71.331218][ T5315] 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 [ 71.338278][ T5315] RSP: 002b:00007f1bf1164058 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 71.341408][ T5315] RAX: ffffffffffffffda RBX: 00007f1bf0545fa0 RCX: 00007f1bf037ff19 [ 71.344246][ T5315] RDX: 0000000000000000 RSI: 00000000200002c0 RDI: 0000000000000003 [ 71.347277][ T5315] RBP: 00007f1bf03f3986 R08: 0000000000000000 R09: 0000000000000000 [ 71.349945][ T5315] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 71.352959][ T5315] R13: 0000000000000000 R14: 00007f1bf0545fa0 R15: 00007fff6445a268 [ 71.356285][ T5315] [ 71.357954][ T5315] Kernel panic - not syncing: kernel: panic_on_warn set ... [ 71.360654][ T5315] CPU: 0 UID: 0 PID: 5315 Comm: syz.0.0 Not tainted 6.13.0-rc1-syzkaller-00005-gceb8bf2ceaa7 #0 [ 71.364496][ T5315] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 [ 71.368350][ T5315] Call Trace: [ 71.369535][ T5315] [ 71.370541][ T5315] dump_stack_lvl+0x241/0x360 [ 71.372314][ T5315] ? __pfx_dump_stack_lvl+0x10/0x10 [ 71.374071][ T5315] ? __pfx__printk+0x10/0x10 [ 71.375811][ T5315] ? _printk+0xd5/0x120 [ 71.377334][ T5315] ? __init_begin+0x41000/0x41000 [ 71.379256][ T5315] ? vscnprintf+0x5d/0x90 [ 71.380920][ T5315] panic+0x349/0x880 [ 71.382462][ T5315] ? __warn+0x174/0x4d0 [ 71.384151][ T5315] ? __pfx_panic+0x10/0x10 [ 71.385819][ T5315] __warn+0x344/0x4d0 [ 71.387233][ T5315] ? refcount_warn_saturate+0x15a/0x1d0 [ 71.389235][ T5315] report_bug+0x2b3/0x500 [ 71.390898][ T5315] ? refcount_warn_saturate+0x15a/0x1d0 [ 71.392946][ T5315] handle_bug+0x60/0x90 [ 71.394499][ T5315] exc_invalid_op+0x1a/0x50 [ 71.396340][ T5315] asm_exc_invalid_op+0x1a/0x20 [ 71.398232][ T5315] RIP: 0010:refcount_warn_saturate+0x15a/0x1d0 [ 71.400511][ T5315] 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 [ 71.407271][ T5315] RSP: 0018:ffffc9000d3bf8e8 EFLAGS: 00010246 [ 71.409542][ T5315] RAX: bd2999a2af063100 RBX: ffff8880432fa4a4 RCX: 0000000000100000 [ 71.412366][ T5315] RDX: ffffc9000ea22000 RSI: 00000000000009a1 RDI: 00000000000009a2 [ 71.415249][ T5315] RBP: 0000000000000003 R08: ffffffff81601c02 R09: 1ffff11003f8519a [ 71.418227][ T5315] R10: dffffc0000000000 R11: ffffed1003f8519b R12: ffff88803638b868 [ 71.421215][ T5315] R13: ffff8880432fa4a4 R14: 1ffff11006c71718 R15: ffff88803638b800 [ 71.424261][ T5315] ? __warn_printk+0x292/0x360 [ 71.426028][ T5315] ? refcount_warn_saturate+0x159/0x1d0 [ 71.428090][ T5315] j1939_session_put+0x1ed/0x440 [ 71.429971][ T5315] j1939_sk_sendmsg+0x121b/0x14c0 [ 71.431911][ T5315] ? __pfx_j1939_sk_sendmsg+0x10/0x10 [ 71.433893][ T5315] ? __import_iovec+0x590/0x870 [ 71.435709][ T5315] ? aa_sock_msg_perm+0x91/0x160 [ 71.437451][ T5315] ? __pfx_j1939_sk_sendmsg+0x10/0x10 [ 71.439377][ T5315] __sock_sendmsg+0x221/0x270 [ 71.441176][ T5315] ____sys_sendmsg+0x52a/0x7e0 [ 71.442965][ T5315] ? __pfx_____sys_sendmsg+0x10/0x10 [ 71.444862][ T5315] ? __fget_files+0x2a/0x410 [ 71.446667][ T5315] ? __fget_files+0x2a/0x410 [ 71.448445][ T5315] __sys_sendmsg+0x269/0x350 [ 71.450192][ T5315] ? __pfx___sys_sendmsg+0x10/0x10 [ 71.452131][ T5315] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 71.454521][ T5315] ? do_syscall_64+0x100/0x230 [ 71.456398][ T5315] ? do_syscall_64+0xb6/0x230 [ 71.458167][ T5315] do_syscall_64+0xf3/0x230 [ 71.459836][ T5315] ? clear_bhb_loop+0x35/0x90 [ 71.461625][ T5315] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 71.463788][ T5315] RIP: 0033:0x7f1bf037ff19 [ 71.465473][ T5315] 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 [ 71.472693][ T5315] RSP: 002b:00007f1bf1164058 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 71.475927][ T5315] RAX: ffffffffffffffda RBX: 00007f1bf0545fa0 RCX: 00007f1bf037ff19 [ 71.478910][ T5315] RDX: 0000000000000000 RSI: 00000000200002c0 RDI: 0000000000000003 [ 71.481823][ T5315] RBP: 00007f1bf03f3986 R08: 0000000000000000 R09: 0000000000000000 [ 71.484849][ T5315] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 71.487953][ T5315] R13: 0000000000000000 R14: 00007f1bf0545fa0 R15: 00007fff6445a268 [ 71.491065][ T5315] [ 71.492541][ T5315] Kernel Offset: disabled [ 71.494119][ T5315] Rebooting in 86400 seconds..