syzbot


WARNING in sk_stream_kill_queues (8)

Status: upstream: reported C repro on 2022/06/29 17:41
Reported-by: syzbot+a0e6f8738b58f7654417@syzkaller.appspotmail.com
Fix commit: e9c6e7976026 tcp: fix sock skb accounting in tcp_read_skb()
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: 238d, last: 1h52m

Cause bisection: introduced by (bisect log) [merge commit]:
commit d2127c5933c521e353dbe7982a7fba5fd063d46d
Author: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Mon Jun 27 00:05:06 2022 +0000

  Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git

Crash: BUG: sleeping function called from invalid context in sock_map_destroy (log)
Repro: C syz .config
similar bugs (8):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in sk_stream_kill_queues (4) C done done 6 1072d 1076d 17/24 fixed on 2020/06/30 18:57
upstream WARNING in sk_stream_kill_queues (3) C done 622 1337d 1697d 14/24 fixed on 2019/11/26 19:44
upstream WARNING in sk_stream_kill_queues (7) C 6689 334d 452d 22/24 fixed on 2022/03/08 16:11
upstream WARNING in sk_stream_kill_queues (5) C done 4684 666d 797d 22/24 fixed on 2021/04/09 19:46
upstream WARNING in sk_stream_kill_queues (2) C 124 1798d 1859d 0/24 closed as dup on 2018/01/03 23:44
upstream WARNING in sk_stream_kill_queues (6) C 11376 452d 666d 22/24 fixed on 2021/11/10 00:50
upstream WARNING in sk_stream_kill_queues syz 96 1999d 2002d 3/24 fixed on 2017/11/07 20:45
linux-4.19 WARNING in sk_stream_kill_queues C error 5 88d 321d 0/1 upstream: reported C repro on 2022/03/21 10:58
Last patch testing requests:
Created Duration User Patch Repo Result
2022/07/07 17:22 16m xiyou.wangcong@gmail.com patch bpf-next OK log
2022/07/07 06:10 10m xiyou.wangcong@gmail.com patch bpf-next report log
2022/07/01 07:14 16m hdanton@sina.com patch http://kernel.source.codeaurora.cn/pub/scm/linux/kernel/git/next/linux-next.git aab35c3d5112 OK log
2022/07/01 03:23 16m hdanton@sina.com patch http://kernel.source.codeaurora.cn/pub/scm/linux/kernel/git/next/linux-next.git aab35c3d5112 report log

Sample crash report:
nf_conntrack: default automatic helper assignment has been turned off for security reasons and CT-based firewall rule not found. Use the iptables CT target to attach helpers instead.
------------[ cut here ]------------
WARNING: CPU: 1 PID: 3601 at net/core/stream.c:205 sk_stream_kill_queues+0x2ee/0x3d0 net/core/stream.c:205
Modules linked in:
CPU: 1 PID: 3601 Comm: syz-executor408 Not tainted 5.19.0-rc4-next-20220628-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022
RIP: 0010:sk_stream_kill_queues+0x2ee/0x3d0 net/core/stream.c:205
Code: 03 0f b6 04 02 84 c0 74 08 3c 03 0f 8e ec 00 00 00 8b ab 28 02 00 00 e9 60 ff ff ff e8 4b 39 2a fa 0f 0b eb 97 e8 42 39 2a fa <0f> 0b eb a0 e8 39 39 2a fa 0f 0b e9 6a fe ff ff e8 fd 3d 76 fa e9
RSP: 0018:ffffc900030dfb48 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff888076cc8000 RSI: ffffffff87507dce RDI: 0000000000000005
RBP: 0000000000000b00 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000b00 R11: 0000000000000004 R12: ffff888078340e28
R13: ffffffff913100c0 R14: ffff888078340c28 R15: ffff888078340db8
FS:  0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000002000cf3d CR3: 00000000741a4000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 inet_csk_destroy_sock+0x1a5/0x440 net/ipv4/inet_connection_sock.c:1013
 __tcp_close+0xb92/0xf50 net/ipv4/tcp.c:2963
 tcp_close+0x29/0xc0 net/ipv4/tcp.c:2975
 sock_map_close+0x6b3/0x780 net/core/sock_map.c:1598
 inet_release+0x12e/0x270 net/ipv4/af_inet.c:428
 __sock_release+0xcd/0x280 net/socket.c:650
 sock_close+0x18/0x20 net/socket.c:1365
 __fput+0x277/0x9d0 fs/file_table.c:317
 task_work_run+0xdd/0x1a0 kernel/task_work.c:177
 exit_task_work include/linux/task_work.h:38 [inline]
 do_exit+0xaf1/0x29f0 kernel/exit.c:795
 do_group_exit+0xd2/0x2f0 kernel/exit.c:925
 __do_sys_exit_group kernel/exit.c:936 [inline]
 __se_sys_exit_group kernel/exit.c:934 [inline]
 __x64_sys_exit_group+0x3a/0x50 kernel/exit.c:934
 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:0x7fd3e0eface9
Code: Unable to access opcode bytes at RIP 0x7fd3e0efacbf.
RSP: 002b:00007fffee7c94e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 00007fd3e0f6f330 RCX: 00007fd3e0eface9
RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffffffffffc0 R09: 00007fffee7c96d8
R10: 00007fffee7c96d8 R11: 0000000000000246 R12: 00007fd3e0f6f330
R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000001
 </TASK>

Crashes (3898):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-linux-next-kasan-gce-root 2022/07/28 03:34 linux-next cb71b93c2dc3 fb95c74d .config strace log report syz C WARNING in sk_stream_kill_queues
ci-upstream-linux-next-kasan-gce-root 2022/06/28 03:08 linux-next aab35c3d5112 ef82eb2c .config strace log report syz C WARNING in sk_stream_kill_queues
ci-upstream-kasan-gce-selinux-root 2023/02/05 11:04 upstream 95078069c1e7 be607b78 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-upstream-kasan-gce-root 2023/02/05 08:35 upstream 95078069c1e7 be607b78 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-upstream-kasan-gce 2023/02/05 07:00 upstream 95078069c1e7 be607b78 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-upstream-kasan-gce-root 2023/02/04 20:27 upstream 0136d86b7852 be607b78 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-upstream-kasan-gce-smack-root 2023/02/04 19:20 upstream 0136d86b7852 be607b78 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-upstream-kasan-gce-smack-root 2023/02/04 19:20 upstream 0136d86b7852 be607b78 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-qemu-upstream 2023/02/04 17:24 upstream 0136d86b7852 be607b78 .config console log report info WARNING in sk_stream_kill_queues
ci-upstream-kasan-gce 2023/02/03 19:37 upstream 66a87fff1a87 1b2f701a .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-upstream-kasan-gce-smack-root 2023/02/03 11:22 upstream 66a87fff1a87 16d19e30 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-upstream-kasan-gce-selinux-root 2023/02/02 21:50 upstream 9f266ccaa2f5 16d19e30 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-upstream-kasan-gce 2023/01/31 10:56 upstream 22b8077d0fce 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-upstream-kasan-gce-root 2023/01/31 08:55 upstream 22b8077d0fce 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-upstream-kasan-gce 2023/01/31 07:09 upstream 22b8077d0fce 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-qemu-upstream-386 2023/02/05 05:07 upstream db27c22251e7 be607b78 .config console log report info WARNING in sk_stream_kill_queues
ci-upstream-kasan-gce-386 2023/02/01 03:58 upstream 58706f7fb045 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-qemu-upstream-386 2023/02/01 02:19 upstream 58706f7fb045 7374c4e5 .config console log report info WARNING in sk_stream_kill_queues
ci-upstream-net-this-kasan-gce 2023/02/03 05:09 net 329c9cd769c2 16d19e30 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-upstream-net-this-kasan-gce 2023/02/01 09:43 net 8f35ae17ef56 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-upstream-net-kasan-gce 2023/02/03 04:08 net-next 8b6f322e47ba 16d19e30 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-upstream-net-kasan-gce 2023/02/01 07:46 net-next df54fde451db 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-upstream-net-kasan-gce 2023/01/31 22:02 net-next a266ef69b890 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-upstream-net-kasan-gce 2023/01/31 06:00 net-next 90e8ca0abb05 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-upstream-net-kasan-gce 2022/06/11 17:39 net-next e10b02ee5b6c 0d5abf15 .config console log report info WARNING in sk_stream_kill_queues
ci-upstream-linux-next-kasan-gce-root 2023/02/04 21:41 linux-next 4fafd96910ad be607b78 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-upstream-gce-arm64 2023/02/04 15:12 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci ca72d58361ee be607b78 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-upstream-gce-arm64 2023/02/04 13:19 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci ca72d58361ee be607b78 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-upstream-gce-arm64 2023/02/04 05:45 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci ca72d58361ee 1b2f701a .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-upstream-gce-arm64 2023/02/04 03:02 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci ca72d58361ee 1b2f701a .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-upstream-gce-arm64 2023/02/04 01:44 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci ca72d58361ee 1b2f701a .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-upstream-gce-arm64 2023/02/03 16:59 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci ca72d58361ee 1b2f701a .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-upstream-gce-arm64 2023/02/03 14:51 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci ca72d58361ee 1b2f701a .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-upstream-gce-arm64 2023/02/03 12:26 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci ca72d58361ee 16d19e30 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-upstream-gce-arm64 2023/02/03 09:15 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci ca72d58361ee 16d19e30 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-upstream-gce-arm64 2023/02/03 07:14 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci ca72d58361ee 16d19e30 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-upstream-gce-arm64 2023/02/03 06:37 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci ca72d58361ee 16d19e30 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-upstream-gce-arm64 2023/02/03 03:04 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci ca72d58361ee 16d19e30 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-upstream-gce-arm64 2023/02/03 01:35 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci ca72d58361ee 16d19e30 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-upstream-gce-arm64 2023/02/02 22:04 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci ca72d58361ee 16d19e30 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-upstream-gce-arm64 2023/02/02 20:37 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci ca72d58361ee 16d19e30 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-upstream-gce-arm64 2023/02/02 17:18 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci ca72d58361ee 16d19e30 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-upstream-gce-arm64 2023/02/02 14:53 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci ca72d58361ee 16d19e30 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-upstream-gce-arm64 2023/02/02 11:50 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci ca72d58361ee 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-upstream-gce-arm64 2023/02/02 07:08 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci ca72d58361ee 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-upstream-gce-arm64 2023/02/01 22:50 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci ca72d58361ee 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-upstream-gce-arm64 2023/02/01 21:10 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci ca72d58361ee 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-upstream-gce-arm64 2023/02/01 20:09 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci ca72d58361ee 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-upstream-gce-arm64 2023/02/01 16:53 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci f57a12aa375c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-upstream-gce-arm64 2023/02/01 14:01 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci f57a12aa375c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-upstream-gce-arm64 2023/02/01 00:14 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci f57a12aa375c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-upstream-gce-arm64 2023/01/31 23:14 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci f57a12aa375c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-upstream-gce-arm64 2023/01/31 21:02 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci f57a12aa375c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-upstream-gce-arm64 2023/01/31 19:56 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci f57a12aa375c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-upstream-gce-arm64 2023/01/31 18:31 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci f57a12aa375c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-upstream-gce-arm64 2023/01/31 17:27 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci f57a12aa375c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-upstream-gce-arm64 2023/01/31 15:24 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci c62c88e05937 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-upstream-gce-arm64 2023/01/31 12:42 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci c62c88e05937 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
ci-upstream-gce-arm64 2023/01/31 11:36 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci c62c88e05937 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in sk_stream_kill_queues
* Struck through repros no longer work on HEAD.