------------[ cut here ]------------ refcount_t: addition on 0; use-after-free. WARNING: lib/refcount.c:25 at refcount_warn_saturate+0x9f/0x110 lib/refcount.c:25, CPU#1: syz.6.979/9531 Modules linked in: CPU: 1 UID: 0 PID: 9531 Comm: syz.6.979 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026 RIP: 0010:refcount_warn_saturate+0x9f/0x110 lib/refcount.c:25 Code: eb 66 85 db 74 3e 83 fb 01 75 4c e8 2b e7 13 fd 48 8d 3d 44 3e 89 0b 67 48 0f b9 3a eb 4a e8 18 e7 13 fd 48 8d 3d 41 3e 89 0b <67> 48 0f b9 3a eb 37 e8 05 e7 13 fd 48 8d 3d 3e 3e 89 0b 67 48 0f RSP: 0018:ffffc90002697738 EFLAGS: 00010287 RAX: ffffffff84b1cf88 RBX: 0000000000000002 RCX: 0000000000080000 RDX: ffffc90016bf3000 RSI: 00000000000006d6 RDI: ffffffff903b0dd0 RBP: 0000000000000000 R08: ffff88807ec5dd00 R09: 0000000000000005 R10: 0000000000000004 R11: 0000000000000002 R12: ffffffff8c9733e8 R13: dffffc0000000000 R14: ffff8880591391a0 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff88812539c000(0063) knlGS:00000000f53ddb40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000f721fb00 CR3: 0000000074b3a000 CR4: 00000000003526f0 Call Trace: __refcount_add include/linux/refcount.h:-1 [inline] __refcount_inc include/linux/refcount.h:366 [inline] refcount_inc include/linux/refcount.h:383 [inline] kref_get include/linux/kref.h:45 [inline] kobject_get+0xfa/0x120 lib/kobject.c:643 i2c_get_adapter+0x6d/0xa0 drivers/i2c/i2c-core-base.c:2611 i2cdev_open+0x48/0x180 drivers/i2c/i2c-dev.c:604 chrdev_open+0x4cd/0x5e0 fs/char_dev.c:411 do_dentry_open+0x822/0x13a0 fs/open.c:947 vfs_open+0x3b/0x340 fs/open.c:1079 do_open fs/namei.c:4699 [inline] path_openat+0x2e08/0x3860 fs/namei.c:4858 do_file_open+0x23e/0x4a0 fs/namei.c:4887 do_sys_openat2+0x113/0x200 fs/open.c:1364 do_sys_open fs/open.c:1370 [inline] __do_compat_sys_openat fs/open.c:1432 [inline] __se_compat_sys_openat fs/open.c:1430 [inline] __ia32_compat_sys_openat+0x131/0x160 fs/open.c:1430 do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:83 [inline] do_int80_emulation+0x19a/0x550 arch/x86/entry/syscall_32.c:172 asm_int80_emulation+0x1a/0x20 arch/x86/include/asm/idtentry.h:621 RIP: 0023:0xf71261ab Code: 57 56 53 8b 44 24 14 f6 00 08 75 23 8b 44 24 18 8b 5c 24 1c 8b 4c 24 20 8b 54 24 24 8b 74 24 28 8b 7c 24 2c 8b 6c 24 30 cd 80 <5b> 5e 5f 5d c3 5b 5e 5f 5d e9 f7 a1 ff ff 66 90 66 90 66 90 90 53 RSP: 002b:00000000f53dd03c EFLAGS: 00000246 ORIG_RAX: 0000000000000127 RAX: ffffffffffffffda RBX: 00000000ffffff9c RCX: 00000000f53dd100 RDX: 0000000000002603 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 ---------------- Code disassembly (best guess): 0: eb 66 jmp 0x68 2: 85 db test %ebx,%ebx 4: 74 3e je 0x44 6: 83 fb 01 cmp $0x1,%ebx 9: 75 4c jne 0x57 b: e8 2b e7 13 fd call 0xfd13e73b 10: 48 8d 3d 44 3e 89 0b lea 0xb893e44(%rip),%rdi # 0xb893e5b 17: 67 48 0f b9 3a ud1 (%edx),%rdi 1c: eb 4a jmp 0x68 1e: e8 18 e7 13 fd call 0xfd13e73b 23: 48 8d 3d 41 3e 89 0b lea 0xb893e41(%rip),%rdi # 0xb893e6b * 2a: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2f: eb 37 jmp 0x68 31: e8 05 e7 13 fd call 0xfd13e73b 36: 48 8d 3d 3e 3e 89 0b lea 0xb893e3e(%rip),%rdi # 0xb893e7b 3d: 67 addr32 3e: 48 rex.W 3f: 0f .byte 0xf