------------[ cut here ]------------ refcount_t: addition on 0; use-after-free. WARNING: CPU: 0 PID: 17741 at lib/refcount.c:25 refcount_warn_saturate+0x108/0x1a0 lib/refcount.c:25 Modules linked in: CPU: 0 PID: 17741 Comm: syz-executor.0 Not tainted 5.14.0-syzkaller-09416-g49624efa65ac #0 Hardware name: linux,dummy-virt (DT) pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : refcount_warn_saturate+0x108/0x1a0 lib/refcount.c:25 lr : refcount_warn_saturate+0x108/0x1a0 lib/refcount.c:25 sp : ffff800019e57b30 x29: ffff800019e57b30 x28: ffff800019e57ce4 x27: ffff000038cf0000 x26: 0000000000000004 x25: ffff000014924c80 x24: 1fffe00002bd96c3 x23: ffff800016e430e0 x22: 1ffff000033caf9e x21: ffff000038cf0000 x20: ffff00001cac9108 x19: 0000000000000002 x18: fffffbffeff98e88 x17: 0000000000000000 x16: 0000000000000000 x15: 0000000000000000 x14: 1ffff000033caea4 x13: 0000000000000001 x12: ffff60000d54bb9c x11: 1fffe0000d54bb9b x10: ffff60000d54bb9b x9 : dfff800000000000 x8 : ffff00006aa5dcdb x7 : 0000000000000001 x6 : 00009ffff2ab4465 x5 : ffff00006aa5dcd8 x4 : 1fffe000012af691 x3 : dfff800000000000 x2 : 0000000000000000 x1 : 0000000000000000 x0 : ffff00000957b480 Call trace: refcount_warn_saturate+0x108/0x1a0 lib/refcount.c:25 __refcount_add include/linux/refcount.h:199 [inline] __refcount_inc include/linux/refcount.h:250 [inline] refcount_inc include/linux/refcount.h:267 [inline] kref_get include/linux/kref.h:45 [inline] j1939_netdev_start+0x4d4/0x720 net/can/j1939/main.c:254 j1939_sk_bind+0x2dc/0xb40 net/can/j1939/socket.c:482 __sys_bind+0x16c/0x1d0 net/socket.c:1693 __do_sys_bind net/socket.c:1704 [inline] __se_sys_bind net/socket.c:1702 [inline] __arm64_sys_bind+0x6c/0xa0 net/socket.c:1702 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x6c/0x260 arch/arm64/kernel/syscall.c:52 el0_svc_common.constprop.0+0xc4/0x254 arch/arm64/kernel/syscall.c:142 do_el0_svc_compat+0x40/0x80 arch/arm64/kernel/syscall.c:187 el0_svc_compat+0x64/0x290 arch/arm64/kernel/entry-common.c:726 el0t_32_sync_handler+0x90/0x140 arch/arm64/kernel/entry-common.c:736 el0t_32_sync+0x1a4/0x1a8 arch/arm64/kernel/entry.S:577 irq event stamp: 438 hardirqs last enabled at (437): [] __up_console_sem+0x78/0x8c kernel/printk/printk.c:255 hardirqs last disabled at (438): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:386 softirqs last enabled at (416): [] lock_sock_nested+0xf0/0x1d0 net/core/sock.c:3191 softirqs last disabled at (414): [] spin_lock_bh include/linux/spinlock.h:368 [inline] softirqs last disabled at (414): [] lock_sock_nested+0x50/0x1d0 net/core/sock.c:3183 ---[ end trace afac41fa06197e0c ]---