syzbot


WARNING in inet_csk_destroy_sock (5)

Status: fixed on 2024/03/26 17:39
Subsystems: net
[Documentation on labels]
Fix commit: 66b60b0c8c4a dccp/tcp: Unhash sk from ehash for tb2 alloc failure after check_estalblished().
First crash: 96d, last: 96d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in inet_csk_destroy_sock (3) net 1 337d 337d 22/26 fixed on 2023/05/27 00:56
upstream WARNING in inet_csk_destroy_sock (2) io-uring net C done 8 476d 563d 22/26 fixed on 2023/02/24 13:50
upstream WARNING in inet_csk_destroy_sock (4) net 2 195d 261d 0/26 closed as invalid on 2023/12/14 11:36
upstream WARNING in inet_csk_destroy_sock net 1 681d 681d 0/26 auto-closed as invalid on 2022/09/14 07:34

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 3 PID: 27934 at net/ipv4/inet_connection_sock.c:1193 inet_csk_destroy_sock+0x2e4/0x450 net/ipv4/inet_connection_sock.c:1193
Modules linked in:
CPU: 3 PID: 27934 Comm: syz-executor.0 Not tainted 6.7.0-syzkaller-12991-g7a396820222d #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
RIP: 0010:inet_csk_destroy_sock+0x2e4/0x450 net/ipv4/inet_connection_sock.c:1193
Code: 31 5b 5d 41 5c 41 5d e9 5a 43 87 f8 e8 55 43 87 f8 48 89 df e8 dd 60 71 ff 5b 5d 41 5c 41 5d e9 42 43 87 f8 e8 3d 43 87 f8 90 <0f> 0b 90 e9 5e fe ff ff e8 2f 43 87 f8 4c 89 e7 be 03 00 00 00 e8
RSP: 0018:ffffc9000749fd28 EFLAGS: 00010293

RAX: 0000000000000000 RBX: ffff88801bbe3340 RCX: ffffffff88ffc520
RDX: ffff88804c0c8000 RSI: ffffffff88ffc6f3 RDI: ffff88801bbe39d8
RBP: 000000000000e480 R08: 0000000000000003 R09: 0000000000000000
R10: 000000000000e480 R11: 0000000000000001 R12: 0000000000000007
R13: ffff88801bbe33c0 R14: ffff88801bbe34f8 R15: 0000000000000000
FS:  0000555556eb8480(0000) GS:ffff88806b900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2f822000 CR3: 000000004fec4000 CR4: 0000000000350ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 dccp_close+0xa3a/0xd70 net/dccp/proto.c:1078
 inet_release+0x132/0x270 net/ipv4/af_inet.c:433
 __sock_release+0xae/0x260 net/socket.c:659
 sock_close+0x1c/0x20 net/socket.c:1421
 __fput+0x270/0xb70 fs/file_table.c:376
 __fput_sync+0x47/0x50 fs/file_table.c:461
 __do_sys_close fs/open.c:1554 [inline]
 __se_sys_close fs/open.c:1539 [inline]
 __x64_sys_close+0x87/0xf0 fs/open.c:1539
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xd3/0x250 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7fcce987bc9a
Code: 48 3d 00 f0 ff ff 77 48 c3 0f 1f 80 00 00 00 00 48 83 ec 18 89 7c 24 0c e8 03 7f 02 00 8b 7c 24 0c 89 c2 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 36 89 d7 89 44 24 0c e8 63 7f 02 00 8b 44 24
RSP: 002b:00007ffec33d00f0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 00007fcce987bc9a
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 00007fcce99ad980 R08: 0000001b2fc20000 R09: 0000000000000497
R10: 000000008a7ff36e R11: 0000000000000293 R12: 00000000001b6692
R13: ffffffffffffffff R14: 00007fcce9400000 R15: 00000000001b6351
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/01/21 12:15 upstream 7a396820222d 9bd8dcda .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in inet_csk_destroy_sock
* Struck through repros no longer work on HEAD.