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
First crash: 65d, last: 1d13h

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 898d 902d 17/23 fixed on 2020/06/30 18:57
upstream WARNING in sk_stream_kill_queues (3) C done 622 1164d 1523d 14/23 fixed on 2019/11/26 19:44
upstream WARNING in sk_stream_kill_queues (7) C 6689 160d 278d 22/23 fixed on 2022/03/08 16:11
upstream WARNING in sk_stream_kill_queues (5) C done 4684 493d 623d 22/23 fixed on 2021/04/09 19:46
upstream WARNING in sk_stream_kill_queues (2) C 124 1624d 1686d 0/23 closed as dup on 2018/01/03 23:44
upstream WARNING in sk_stream_kill_queues (6) C 11376 278d 493d 22/23 fixed on 2021/11/10 00:50
upstream WARNING in sk_stream_kill_queues syz 96 1825d 1828d 3/23 fixed on 2017/11/07 20:45
linux-4.19 WARNING in sk_stream_kill_queues C error 4 42d 147d 0/1 upstream: reported C repro on 2022/03/21 10:58
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 (49):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-linux-next-kasan-gce-root 2022/07/28 03:34 linux-next cb71b93c2dc3 fb95c74d .config 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 log report syz C WARNING in sk_stream_kill_queues
ci-upstream-kasan-gce-root 2022/08/13 02:01 upstream 7ebfc85e2cd7 8dfcaa3d .config log report info WARNING in sk_stream_kill_queues
ci-upstream-kasan-gce-smack-root 2022/08/12 10:05 upstream 7ebfc85e2cd7 402cd70d .config log report info WARNING in sk_stream_kill_queues
ci-upstream-kasan-gce-smack-root 2022/08/12 07:23 upstream 7ebfc85e2cd7 402cd70d .config log report info WARNING in sk_stream_kill_queues
ci-upstream-kasan-gce-root 2022/08/12 06:18 upstream 7ebfc85e2cd7 402cd70d .config log report info WARNING in sk_stream_kill_queues
ci-upstream-kasan-gce-smack-root 2022/08/12 04:56 upstream 7ebfc85e2cd7 402cd70d .config log report info WARNING in sk_stream_kill_queues
ci-qemu-upstream 2022/08/12 02:31 upstream 7ebfc85e2cd7 21724cb2 .config log report info WARNING in sk_stream_kill_queues
ci-upstream-kasan-gce-smack-root 2022/08/12 01:24 upstream 7ebfc85e2cd7 787ed7e0 .config log report info WARNING in sk_stream_kill_queues
ci-upstream-kasan-gce-smack-root 2022/08/12 00:12 upstream 7ebfc85e2cd7 787ed7e0 .config log report info WARNING in sk_stream_kill_queues
ci-upstream-kasan-gce-root 2022/08/12 00:03 upstream 7ebfc85e2cd7 787ed7e0 .config log report info WARNING in sk_stream_kill_queues
ci-qemu-upstream 2022/08/11 23:02 upstream 7ebfc85e2cd7 21724cb2 .config log report info WARNING in sk_stream_kill_queues
ci-upstream-net-kasan-gce 2022/08/14 10:50 net-next 7ebfc85e2cd7 8dfcaa3d .config log report info WARNING in sk_stream_kill_queues
ci-upstream-net-kasan-gce 2022/08/08 17:04 net-next 3c47fb2f4c4d 88e3a122 .config log report info WARNING in sk_stream_kill_queues
ci-upstream-net-kasan-gce 2022/08/08 16:42 net-next 3c47fb2f4c4d 88e3a122 .config log report info WARNING in sk_stream_kill_queues
ci-upstream-net-kasan-gce 2022/08/07 02:06 net-next 3c47fb2f4c4d 88e3a122 .config log report info WARNING in sk_stream_kill_queues
ci-upstream-net-kasan-gce 2022/07/18 17:38 net-next 6e693a104207 ff988920 .config log report info WARNING in sk_stream_kill_queues
ci-upstream-net-kasan-gce 2022/07/16 06:20 net-next 459f326e995c 95cb00d1 .config log report info WARNING in sk_stream_kill_queues
ci-upstream-net-kasan-gce 2022/07/12 06:00 net-next edb2c3476db9 da3d6955 .config log report info WARNING in sk_stream_kill_queues
ci-upstream-net-kasan-gce 2022/07/11 19:29 net-next edb2c3476db9 da3d6955 .config log report info WARNING in sk_stream_kill_queues
ci-upstream-net-kasan-gce 2022/07/11 12:54 net-next 0076cad30135 da3d6955 .config log report info WARNING in sk_stream_kill_queues
ci-upstream-net-kasan-gce 2022/07/11 08:17 net-next 0076cad30135 b5765a15 .config log report info WARNING in sk_stream_kill_queues
ci-upstream-net-kasan-gce 2022/07/10 09:07 net-next 0076cad30135 b5765a15 .config log report info WARNING in sk_stream_kill_queues
ci-upstream-net-kasan-gce 2022/07/09 17:46 net-next 16bd188eae2d b5765a15 .config log report info WARNING in sk_stream_kill_queues
ci-upstream-net-kasan-gce 2022/07/01 03:15 net-next bf48c3fae6d7 1434eec0 .config log report info WARNING in sk_stream_kill_queues
ci-upstream-net-kasan-gce 2022/06/29 18:35 net-next d640516a65d8 1434eec0 .config log report info WARNING in sk_stream_kill_queues
ci-upstream-net-kasan-gce 2022/06/12 18:43 net-next 27f2533bcc6e 0d5abf15 .config log report info WARNING in sk_stream_kill_queues
ci-upstream-net-kasan-gce 2022/06/11 17:39 net-next e10b02ee5b6c 0d5abf15 .config log report info WARNING in sk_stream_kill_queues
ci-upstream-linux-next-kasan-gce-root 2022/08/11 09:08 linux-next 6c8f479764eb a6201f11 .config log report info WARNING in sk_stream_kill_queues
ci-upstream-linux-next-kasan-gce-root 2022/08/08 17:07 linux-next ca688bff68bc 88e3a122 .config log report info WARNING in sk_stream_kill_queues
ci-upstream-linux-next-kasan-gce-root 2022/08/08 16:43 linux-next ca688bff68bc 88e3a122 .config log report info WARNING in sk_stream_kill_queues
ci-upstream-linux-next-kasan-gce-root 2022/08/08 08:59 linux-next ca688bff68bc 88e3a122 .config log report info WARNING in sk_stream_kill_queues
ci-upstream-linux-next-kasan-gce-root 2022/07/16 06:22 linux-next cb71b93c2dc3 95cb00d1 .config log report info WARNING in sk_stream_kill_queues
ci-upstream-linux-next-kasan-gce-root 2022/07/12 06:15 linux-next cb71b93c2dc3 da3d6955 .config log report info WARNING in sk_stream_kill_queues
ci-upstream-linux-next-kasan-gce-root 2022/07/10 23:09 linux-next cb71b93c2dc3 b5765a15 .config log report info WARNING in sk_stream_kill_queues
ci-upstream-linux-next-kasan-gce-root 2022/07/06 07:58 linux-next cb71b93c2dc3 bff65f44 .config log report info WARNING in sk_stream_kill_queues
ci-upstream-linux-next-kasan-gce-root 2022/06/29 19:07 linux-next cb71b93c2dc3 1434eec0 .config log report info WARNING in sk_stream_kill_queues
ci-upstream-linux-next-kasan-gce-root 2022/06/28 18:56 linux-next cb71b93c2dc3 496a8536 .config log report info WARNING in sk_stream_kill_queues
ci-upstream-linux-next-kasan-gce-root 2022/06/28 03:37 linux-next aab35c3d5112 ef82eb2c .config log report info WARNING in sk_stream_kill_queues
ci-upstream-linux-next-kasan-gce-root 2022/06/28 03:29 linux-next aab35c3d5112 ef82eb2c .config log report info WARNING in sk_stream_kill_queues
ci-upstream-linux-next-kasan-gce-root 2022/06/28 03:29 linux-next aab35c3d5112 ef82eb2c .config log report info WARNING in sk_stream_kill_queues
ci-upstream-linux-next-kasan-gce-root 2022/06/28 02:58 linux-next aab35c3d5112 ef82eb2c .config log report info WARNING in sk_stream_kill_queues
ci-upstream-linux-next-kasan-gce-root 2022/06/28 02:49 linux-next aab35c3d5112 ef82eb2c .config log report info WARNING in sk_stream_kill_queues
ci-upstream-linux-next-kasan-gce-root 2022/06/28 02:48 linux-next aab35c3d5112 ef82eb2c .config log report info WARNING in sk_stream_kill_queues
ci-upstream-linux-next-kasan-gce-root 2022/06/28 02:48 linux-next aab35c3d5112 ef82eb2c .config log report info WARNING in sk_stream_kill_queues
ci-upstream-linux-next-kasan-gce-root 2022/06/26 20:22 linux-next 2f9cb3d3bd73 a371c43c .config log report info WARNING in sk_stream_kill_queues
ci-upstream-linux-next-kasan-gce-root 2022/06/25 03:51 linux-next 2f9cb3d3bd73 a371c43c .config log report info WARNING in sk_stream_kill_queues