syzbot


WARNING in inet_csk_get_port

Status: upstream: reported C repro on 2022/05/23 15:12
Reported-by: syzbot+015d756bbd1f8b5c8f09@syzkaller.appspotmail.com
Fix commit: 593d1ebe00a4 Revert "net: Add a second bind table hashed by port and address"
Patched on: [ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-arm64 ci-upstream-gce-leak ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce ci-upstream-kmsan-gce-386 ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce ci2-upstream-usb], missing on: [ci-qemu2-riscv64]
First crash: 262d, last: 32d

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

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