syzbot


WARNING in __inet_accept

Status: fixed on 2024/06/05 20:35
Subsystems: net
[Documentation on labels]
Fix commit: 26afda78cda3 UPSTREAM: net: relax socket state check at accept time.
First crash: 110d, last: 110d
Cause bisection: introduced by (bisect log) :
commit 94062790aedb505bdda209b10bea47b294d6394f
Author: Eric Dumazet <edumazet@google.com>
Date: Wed May 1 12:54:48 2024 +0000

  tcp: defer shutdown(SEND_SHUTDOWN) for TCP_SYN_RECV sockets

Crash: WARNING in __inet_accept (log)
Repro: C syz .config
  

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 5089 at net/ipv4/af_inet.c:761 __inet_accept+0x22c/0x2e0 net/ipv4/af_inet.c:759
Modules linked in:
CPU: 0 PID: 5089 Comm: syz-executor586 Not tainted 6.9.0-syzkaller-09429-g61307b7be41a #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
RIP: 0010:__inet_accept+0x22c/0x2e0 net/ipv4/af_inet.c:759
Code: 04 20 84 c0 0f 85 8a 00 00 00 41 c7 06 03 00 00 00 48 83 c4 08 5b 41 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc e8 c5 6a 97 f7 90 <0f> 0b 90 e9 59 fe ff ff e8 b7 6a 97 f7 90 0f 0b 90 e9 e6 fe ff ff
RSP: 0018:ffffc900036efc38 EFLAGS: 00010293
RAX: ffffffff89fec56b RBX: 0000000000000000 RCX: ffff88807ba80000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000004 R08: ffffffff89fec3bc R09: 1ffffffff25f42c7
R10: dffffc0000000000 R11: fffffbfff25f42c8 R12: ffff888066a1f800
R13: 1ffff920006ddfcc R14: ffff888066a90c00 R15: ffff88802d681a00
FS:  000055555845d380(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000044 CR3: 000000007a52e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 inet_accept+0xdf/0x150 net/ipv4/af_inet.c:786
 do_accept+0x4bf/0x6c0 net/socket.c:1930
 __sys_accept4_file net/socket.c:1970 [inline]
 __sys_accept4+0x11e/0x1c0 net/socket.c:2000
 __do_sys_accept net/socket.c:2017 [inline]
 __se_sys_accept net/socket.c:2014 [inline]
 __x64_sys_accept+0x7d/0x90 net/socket.c:2014
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f33b39d0459
Code: 48 83 c4 28 c3 e8 d7 19 00 00 0f 1f 80 00 00 00 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:00007fff7b92bf98 EFLAGS: 00000246 ORIG_RAX: 000000000000002b
RAX: ffffffffffffffda RBX: 00007f33b3a1d390 RCX: 00007f33b39d0459
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 0000000000000003 R08: 0000555500000000 R09: 0000555500000000
R10: 0000555500000000 R11: 0000000000000246 R12: 00007fff7b92bfe0
R13: 00007fff7b92bfb0 R14: 0000000000000001 R15: 00007fff7b92bfe0
 </TASK>

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/05/20 07:39 upstream 61307b7be41a c0f1611a .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in __inet_accept
2024/05/20 07:04 net-next 4b377b4868ef c0f1611a .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in __inet_accept
2024/05/20 05:23 net-next 4b377b4868ef c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in __inet_accept
* Struck through repros no longer work on HEAD.