------------[ cut here ]------------ refcount_t: underflow; use-after-free. WARNING: CPU: 3 PID: 13728 at lib/refcount.c:28 refcount_warn_saturate+0x14a/0x210 lib/refcount.c:28 Modules linked in: CPU: 3 PID: 13728 Comm: syz.3.2304 Not tainted 6.10.0-syzkaller-08047-gf2f6a8e88717 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:refcount_warn_saturate+0x14a/0x210 lib/refcount.c:28 Code: ff 89 de e8 58 f2 09 fd 84 db 0f 85 66 ff ff ff e8 ab f7 09 fd c6 05 7b c0 4b 0b 01 90 48 c7 c7 e0 09 90 8b e8 87 3d cc fc 90 <0f> 0b 90 90 e9 43 ff ff ff e8 88 f7 09 fd 0f b6 1d 56 c0 4b 0b 31 RSP: 0018:ffffc9000337fd58 EFLAGS: 00010282 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffc90007425000 RDX: 0000000000040000 RSI: ffffffff81500576 RDI: 0000000000000001 RBP: ffff88804d8f8080 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 00000000ffffffff R13: ffff88804d8f8080 R14: ffff88804d8f8013 R15: ffff88804d8f800e FS: 00007fbdb5a846c0(0000) GS:ffff88806b300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c374039 CR3: 0000000044ee6000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __refcount_sub_and_test include/linux/refcount.h:275 [inline] __refcount_dec_and_test include/linux/refcount.h:307 [inline] refcount_dec_and_test include/linux/refcount.h:325 [inline] sk_free net/core/sock.c:2260 [inline] sock_put include/net/sock.h:1884 [inline] sk_common_release+0x2ec/0x420 net/core/sock.c:3773 inet6_create net/ipv6/af_inet6.c:271 [inline] inet6_create+0xef5/0x12e0 net/ipv6/af_inet6.c:120 __sock_create+0x32e/0x800 net/socket.c:1571 sock_create net/socket.c:1622 [inline] __sys_socket_create net/socket.c:1659 [inline] __sys_socket+0x14f/0x260 net/socket.c:1706 __do_sys_socket net/socket.c:1720 [inline] __se_sys_socket net/socket.c:1718 [inline] __x64_sys_socket+0x72/0xb0 net/socket.c:1718 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fbdb4d75b59 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 RSP: 002b:00007fbdb5a84048 EFLAGS: 00000246 ORIG_RAX: 0000000000000029 RAX: ffffffffffffffda RBX: 00007fbdb4f05f60 RCX: 00007fbdb4d75b59 RDX: 0000000000000100 RSI: 0000000000000001 RDI: 000000000000000a RBP: 00007fbdb4de4e5d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fbdb4f05f60 R15: 00007fff033ceb38