syzbot


WARNING in inet_csk_get_port

Status: fixed on 2023/02/24 13:50
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+015d756bbd1f8b5c8f09@syzkaller.appspotmail.com
Fix commit: 593d1ebe00a4 Revert "net: Add a second bind table hashed by port and address"
First crash: 937d, last: 706d
Cause bisection: introduced by (bisect log) :
commit d5a42de8bdbe25081f07b801d8b35f4d75a791f4
Author: Joanne Koong <joannelkoong@gmail.com>
Date: Fri May 20 00:18:33 2022 +0000

  net: Add a second bind table hashed by port and address

Crash: WARNING in inet_csk_get_port (log)
Repro: C syz .config
  
Discussions (10)
Title Replies (including bot) Last reply
[PATCH v4 net 0/4] dccp/tcp: Fix bhash2 issues related to WARN_ON() in inet_csk_get_port(). 11 (11) 2022/11/23 05:00
[PATCH v3 net 0/4] dccp/tcp: Fix bhash2 issues related to WARN_ON() in inet_csk_get_port(). 12 (12) 2022/11/22 00:37
[PATCH v2 net 0/4] dccp/tcp: Fix bhash2 issues related to WARN_ON() in inet_csk_get_port(). 18 (18) 2022/11/18 19:58
[PATCH v1 net] dccp/tcp: Reset saddr on failure after inet6?_hash_connect(). 7 (7) 2022/11/10 21:42
[PATCH net] Revert "net: Add a second bind table hashed by port and address" 8 (8) 2022/06/16 17:57
[PATCH net-next v3 0/3] bhash2 binding table fixups 12 (12) 2022/06/15 01:58
[PATCH net-next v2 0/2] Update bhash2 when socket's rcv saddr changes 18 (18) 2022/06/10 20:15
[PATCH net-next v1 resend 0/2] Update bhash2 when socket's rcv saddr changes 6 (6) 2022/06/02 06:50
Re: [PATCH net-next v1 1/2] net: Update bhash2 when socket's rcv saddr changes 3 (3) 2022/06/01 18:31
[syzbot] WARNING in inet_csk_get_port 1 (2) 2022/05/23 17:27
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in inet_csk_get_port (3) net C done done 8 205d 221d 0/28 auto-obsoleted due to no activity on 2024/08/30 00:27
upstream WARNING in inet_csk_get_port (2) net C done 88 419d 449d 25/28 fixed on 2023/12/21 01:43
linux-6.1 WARNING in inet_csk_get_port origin:upstream C done 11 422d 450d 3/3 fixed on 2023/11/20 11:42

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 3601 at net/ipv4/inet_connection_sock.c:548 inet_csk_get_port+0x17e8/0x2640 net/ipv4/inet_connection_sock.c:548
Modules linked in:
CPU: 1 PID: 3601 Comm: syz-executor365 Not tainted 6.1.0-rc2-syzkaller-00105-gb229b6ca5abb #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022
RIP: 0010:inet_csk_get_port+0x17e8/0x2640 net/ipv4/inet_connection_sock.c:548
Code: 00 00 48 8b 44 24 08 4c 89 e6 48 8b 78 18 e8 1f ae fe ff 31 ff 89 de e8 e6 17 9e f9 84 db 74 98 e9 57 ff ff ff e8 48 1b 9e f9 <0f> 0b e9 c5 fc ff ff e8 3c 1b 9e f9 0f 0b e9 7d fc ff ff e8 30 1b
RSP: 0018:ffffc90003bbfc08 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff8880264b0080 RCX: 0000000000000000
RDX: ffff888022720000 RSI: ffffffff87de8138 RDI: ffff888027c39368
RBP: ffff888027c39360 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 000000000008c07e R12: 0000000000000000
R13: 00000000240492ce R14: ffff888027c38cc0 R15: 0000000000000001
FS:  0000555555de9300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000005df038 CR3: 000000007bf8d000 CR4: 0000000000350ee0
Call Trace:
 <TASK>
 inet_csk_listen_start+0x13e/0x3c0 net/ipv4/inet_connection_sock.c:1205
 inet_listen+0x231/0x640 net/ipv4/af_inet.c:228
 __sys_listen+0x17d/0x250 net/socket.c:1810
 __do_sys_listen net/socket.c:1819 [inline]
 __se_sys_listen net/socket.c:1817 [inline]
 __x64_sys_listen+0x50/0x70 net/socket.c:1817
 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+0x63/0xcd
RIP: 0033:0x7f5826afeb99
Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffd2130aaf8 EFLAGS: 00000246 ORIG_RAX: 0000000000000032
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f5826afeb99
RDX: ffffffffffffffc0 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 00007f5826ac2d40 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f5826ac2dd0
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>

Crashes (1166):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/11/03 04:03 upstream b229b6ca5abb 08977f5d .config strace log report syz C ci-upstream-kasan-gce-root WARNING in inet_csk_get_port
2022/10/24 19:27 upstream 247f34f7b803 ff2fe65d .config strace log report syz C [disk image] [vmlinux] ci-upstream-kasan-gce WARNING in inet_csk_get_port
2022/06/02 18:00 upstream d1dc87763f40 5783034f .config strace log report syz C ci-upstream-kasan-gce WARNING in inet_csk_get_port
2022/10/24 15:15 net-old 0bda03623e6b 23bf86af .config strace log report syz C ci-upstream-net-this-kasan-gce WARNING in inet_csk_get_port
2022/10/24 15:34 net-next-old 3bd5549bd479 23bf86af .config strace log report syz C ci-upstream-net-kasan-gce WARNING in inet_csk_get_port
2022/06/02 12:43 net-next-old 7e062cda7d90 5783034f .config strace log report syz C ci-upstream-net-kasan-gce WARNING in inet_csk_get_port
2022/05/21 06:17 net-next-old aa5334b1f968 7268fa62 .config strace log report syz C ci-upstream-net-kasan-gce WARNING in inet_csk_get_port
2022/11/24 23:34 upstream c3eb11fbb826 62e26685 .config console log report info ci-upstream-kasan-gce WARNING in inet_csk_get_port
2022/11/24 19:46 upstream c3eb11fbb826 62e26685 .config console log report info ci-upstream-kasan-gce WARNING in inet_csk_get_port
2022/11/23 15:28 upstream eb7081409f94 75740b3f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in inet_csk_get_port
2022/11/22 17:21 upstream eb7081409f94 1c576c23 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in inet_csk_get_port
2022/11/22 14:51 upstream eb7081409f94 1c576c23 .config console log report info ci-upstream-kasan-gce WARNING in inet_csk_get_port
2022/11/22 07:34 upstream eb7081409f94 1c576c23 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in inet_csk_get_port
2022/11/22 05:24 upstream eb7081409f94 1c576c23 .config console log report info ci-upstream-kasan-gce WARNING in inet_csk_get_port
2022/11/21 22:19 upstream eb7081409f94 1c576c23 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in inet_csk_get_port
2022/11/21 04:57 upstream 894909f95aa1 5bb70014 .config console log report info ci-qemu-upstream WARNING in inet_csk_get_port
2022/11/14 02:02 upstream af7a05689189 3ead01ad .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in inet_csk_get_port
2022/11/24 09:57 upstream 4312098baf37 12c66417 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 WARNING in inet_csk_get_port
2022/11/22 00:38 upstream eb7081409f94 1c576c23 .config console log report info ci-upstream-kasan-gce-386 WARNING in inet_csk_get_port
2022/11/17 02:49 upstream cc675d22e422 3a127a31 .config console log report info ci-qemu-upstream-386 WARNING in inet_csk_get_port
2022/11/21 22:56 net-old 9ab000d9ac54 1c576c23 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in inet_csk_get_port
2022/11/29 16:32 net-next-old 7a168f560e3c 05dc7993 .config console log report info ci-upstream-net-kasan-gce WARNING in inet_csk_get_port
2022/11/28 08:28 net-next-old a6e3d86ece0b 74a66371 .config console log report info ci-upstream-net-kasan-gce WARNING in inet_csk_get_port
2022/11/27 18:48 net-next-old a6e3d86ece0b 74a66371 .config console log report info ci-upstream-net-kasan-gce WARNING in inet_csk_get_port
2022/11/27 12:23 net-next-old a6e3d86ece0b 74a66371 .config console log report info ci-upstream-net-kasan-gce WARNING in inet_csk_get_port
2022/11/26 15:52 net-next-old a6e3d86ece0b 74a66371 .config console log report info ci-upstream-net-kasan-gce WARNING in inet_csk_get_port
2022/11/26 08:27 net-next-old a6e3d86ece0b 74a66371 .config console log report info ci-upstream-net-kasan-gce WARNING in inet_csk_get_port
2022/11/25 11:24 net-next-old 14e5f71e31ff 74a66371 .config console log report info ci-upstream-net-kasan-gce WARNING in inet_csk_get_port
2022/11/24 20:26 net-next-old 170d97739de4 62e26685 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in inet_csk_get_port
2022/11/24 13:18 net-next-old e80bd08fd75a 12c66417 .config console log report info ci-upstream-net-kasan-gce WARNING in inet_csk_get_port
2022/11/24 06:01 net-next-old e80bd08fd75a 12c66417 .config console log report info ci-upstream-net-kasan-gce WARNING in inet_csk_get_port
2022/11/24 01:57 net-next-old e80bd08fd75a 12c66417 .config console log report info ci-upstream-net-kasan-gce WARNING in inet_csk_get_port
2022/11/23 13:58 net-next-old af42736301cb 75740b3f .config console log report info ci-upstream-net-kasan-gce WARNING in inet_csk_get_port
2022/11/22 18:30 net-next-old 339e79dfb087 9da37ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in inet_csk_get_port
2022/11/22 10:46 net-next-old 696450c05181 1c576c23 .config console log report info ci-upstream-net-kasan-gce WARNING in inet_csk_get_port
2022/05/21 04:03 net-next-old aa5334b1f968 7268fa62 .config console log report info ci-upstream-net-kasan-gce WARNING in inet_csk_get_port
2022/11/09 14:34 linux-next 0cdb3579f1ee 5fa28208 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in inet_csk_get_port
2023/01/06 13:44 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 247f34f7b803 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in inet_csk_get_port
2022/11/29 18:36 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 6d464646530f 05dc7993 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in inet_csk_get_port
2022/11/29 14:17 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 6d464646530f 05dc7993 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in inet_csk_get_port
2022/11/29 12:10 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 6d464646530f 05dc7993 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in inet_csk_get_port
2022/11/29 08:23 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 6d464646530f ca9683b8 .config console log report info ci-upstream-gce-arm64 WARNING in inet_csk_get_port
2022/11/29 04:35 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 6d464646530f ca9683b8 .config console log report info ci-upstream-gce-arm64 WARNING in inet_csk_get_port
2022/11/29 01:55 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 6d464646530f ca9683b8 .config console log report info ci-upstream-gce-arm64 WARNING in inet_csk_get_port
2022/11/29 00:51 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 6d464646530f ca9683b8 .config console log report info ci-upstream-gce-arm64 WARNING in inet_csk_get_port
2022/11/28 12:37 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 6d464646530f 247de55b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in inet_csk_get_port
2022/11/26 20:20 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 6d464646530f 74a66371 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in inet_csk_get_port
2022/11/26 10:39 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 6d464646530f 74a66371 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in inet_csk_get_port
2022/11/26 07:00 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 6d464646530f 74a66371 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in inet_csk_get_port
2022/11/25 20:19 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 6d464646530f 74a66371 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in inet_csk_get_port
2022/11/25 08:14 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 65762d97e6fa 74a66371 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in inet_csk_get_port
2022/11/24 16:36 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 65762d97e6fa 62e26685 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in inet_csk_get_port
2022/11/24 12:16 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 65762d97e6fa 12c66417 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in inet_csk_get_port
2022/11/23 21:41 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 65762d97e6fa 12c66417 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in inet_csk_get_port
2022/11/23 19:49 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 65762d97e6fa 12c66417 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in inet_csk_get_port
2022/11/23 10:41 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 65762d97e6fa 75740b3f .config console log report info ci-upstream-gce-arm64 WARNING in inet_csk_get_port
2022/11/23 03:59 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 65762d97e6fa 9da37ae8 .config console log report info ci-upstream-gce-arm64 WARNING in inet_csk_get_port
2022/11/23 02:37 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 65762d97e6fa 9da37ae8 .config console log report info ci-upstream-gce-arm64 WARNING in inet_csk_get_port
2022/11/23 00:47 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 65762d97e6fa 9da37ae8 .config console log report info ci-upstream-gce-arm64 WARNING in inet_csk_get_port
2022/11/22 20:17 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 65762d97e6fa 9da37ae8 .config console log report info ci-upstream-gce-arm64 WARNING in inet_csk_get_port
2022/11/22 16:06 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a77d28d13789 1c576c23 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in inet_csk_get_port
2022/11/22 13:06 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a77d28d13789 1c576c23 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in inet_csk_get_port
2022/11/21 21:01 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a77d28d13789 1c576c23 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in inet_csk_get_port
* Struck through repros no longer work on HEAD.