bisecting fixing commit since d1dc87763f406d4e67caf16dbe438a5647692395 building syzkaller on 5783034f220fa03dd9407034a4804be5890c3377 testing commit d1dc87763f406d4e67caf16dbe438a5647692395 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: fd97d180e91e6b9c29045fa75910c3b877f5f6a1ee7021c49648d09b6f170566 all runs: crashed: WARNING: refcount bug in sk_psock_get testing current HEAD c1084b6c5620a743f86947caca66d90f24060f56 testing commit c1084b6c5620a743f86947caca66d90f24060f56 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 8d94bd19caa42e04186992c83ff92362686b69a893ead9e33a0cc3e2ab0f641b all runs: crashed: WARNING: refcount bug in sk_psock_get revisions tested: 2, total time: 20m24.02678552s (build: 13m39.675594159s, test: 6m18.332747694s) the crash still happens on HEAD commit msg: Merge tag 'soc-fixes-5.19-2' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc crash: WARNING: refcount bug in sk_psock_get ------------[ cut here ]------------ refcount_t: saturated; leaking memory. WARNING: CPU: 1 PID: 4098 at lib/refcount.c:19 refcount_warn_saturate+0x9d/0x140 lib/refcount.c:19 Modules linked in: CPU: 0 PID: 4098 Comm: syz-executor.0 Not tainted 5.19.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022 RIP: 0010:refcount_warn_saturate+0x9d/0x140 lib/refcount.c:19 Code: b9 9d 31 09 01 e8 f5 ce bc 04 0f 0b eb dd 80 3d ad 9d 31 09 00 75 d4 48 c7 c7 80 2f 64 89 c6 05 9d 9d 31 09 01 e8 d5 ce bc 04 <0f> 0b eb bd 80 3d 8c 9d 31 09 00 75 b4 48 c7 c7 80 2f 64 89 c6 05 RSP: 0018:ffffc90002cbfa30 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffff888076fc02b8 RCX: 0000000000000000 RDX: 0000000000000001 RSI: ffffffff89646e40 RDI: fffff52000597f38 RBP: 0000000000000000 R08: 0000000000000001 R09: ffff8880b9f34047 R10: ffffed10173e6808 R11: 0000000000000001 R12: 1ffff92000597f49 R13: ffff888076fc0000 R14: 000000008fc6e5f1 R15: ffff88801e382614 FS: 00007f6a66d2b700(0000) GS:ffff8880b9e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055d342c1f998 CR3: 000000007518e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __refcount_add_not_zero include/linux/refcount.h:163 [inline] __refcount_inc_not_zero include/linux/refcount.h:227 [inline] refcount_inc_not_zero include/linux/refcount.h:245 [inline] sk_psock_get+0x290/0x2c0 include/linux/skmsg.h:439 tls_data_ready+0x67/0x150 net/tls/tls_sw.c:2091 tcp_data_queue+0x206f/0x4e90 net/ipv4/tcp_input.c:5060 tcp_rcv_state_process+0x1432/0x4a50 net/ipv4/tcp_input.c:6662 tcp_v4_do_rcv+0x29c/0x7e0 net/ipv4/tcp_ipv4.c:1682 sk_backlog_rcv include/net/sock.h:1047 [inline] __release_sock+0x113/0x360 net/core/sock.c:2849 release_sock+0x4a/0x170 net/core/sock.c:3404 inet_shutdown+0x185/0x360 net/ipv4/af_inet.c:909 __sys_shutdown_sock net/socket.c:2326 [inline] __sys_shutdown_sock net/socket.c:2320 [inline] __sys_shutdown+0xcd/0x160 net/socket.c:2338 __do_sys_shutdown net/socket.c:2346 [inline] __se_sys_shutdown net/socket.c:2344 [inline] __x64_sys_shutdown+0x4b/0x70 net/socket.c:2344 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x46/0xb0 RIP: 0033:0x7f6a65c89109 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f6a66d2b168 EFLAGS: 00000246 ORIG_RAX: 0000000000000030 RAX: ffffffffffffffda RBX: 00007f6a65d9bf60 RCX: 00007f6a65c89109 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000003 RBP: 00007f6a65ce308d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffdd56c56ff R14: 00007f6a66d2b300 R15: 0000000000022000