Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp693062pxb; Fri, 3 Sep 2021 11:13:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwfngiwG2/rf7F1VjhROIbWElWP8/LiUJqUEn77rOaIys6NxRF/ilzxM5fBa1A2f/TJVnfT X-Received: by 2002:aa7:d887:: with SMTP id u7mr288904edq.366.1630692779982; Fri, 03 Sep 2021 11:12:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630692779; cv=none; d=google.com; s=arc-20160816; b=DFud4PEIDgD/luvMl31rp80Zjol2O5GcX0E1/A5F8Js82hSSI2r4HXKDHS+q1Li47x BEcNCVI9wW1FpWE2Ynf5AyL6dr/v+IFtQdmR8NYBcLwSwsdL1jLos0qdYjB0ttmYQm/+ of4yLjhz8ZsTMzEIa2T0d+33JGLQ4G8IrbZPEL5lCDO7J2nmxg9MarXCEVLjM0pI6br5 nA4zXxpfydAlG/sBu3gl53uIRN4D03C2J5zad03xddzoBtdgIxbdcQpreNF3qJ4/wmD+ ulMVW36xMSV9ZP3vZ9NguoOxIpbOOx4l7KBLauUhPiR5kzWZ/+7CBKo+Ezxeu8k2OmJ3 I/Gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=0jkY0Ap3t6JVV0YhdOnHqeGWTCDit365Ya9r8y7B9kU=; b=etZtjT2OHanIr/xe3tlJShVraLk6OJHnR7MbbwqtKUGDNDaUjhbD97X/iY9h4j3Teu PsP5AJv+ZC/9bDHBgEc/jAykxdk7pGIUb2pmstf3kntJVcio8BLK3IdKUAK+xLRincSq jN8ndIDx8A91gPXhh5gq7DBaZNRDLiPH05l/NvN/XD+l27j2JY384DAsxiXPdK0bF1ER R/e4ksBkYDgN7j8P0vr+novm/FfzPNvb/ZbCoS/waZkSNyrEaL6ysbjvj0pztwAvQ3Ui hgkPQlPkoloD2JZMF5VI6AI0lxHpeL9f1Tm0uW3BMDE/n0MKJoCbj+JpUrjoqdB+ND+7 uKhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b="hPK5/HUH"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gt20si5249290ejc.614.2021.09.03.11.12.35; Fri, 03 Sep 2021 11:12:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b="hPK5/HUH"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350431AbhICSLg (ORCPT + 99 others); Fri, 3 Sep 2021 14:11:36 -0400 Received: from relay.sw.ru ([185.231.240.75]:51790 "EHLO relay.sw.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350377AbhICSLf (ORCPT ); Fri, 3 Sep 2021 14:11:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=virtuozzo.com; s=relay; h=Content-Type:MIME-Version:Date:Message-ID:From: Subject; bh=0jkY0Ap3t6JVV0YhdOnHqeGWTCDit365Ya9r8y7B9kU=; b=hPK5/HUHOMehWNYGH 4n2XTZ4YB3tRHUWSXH/GoizctjVhj0tX3hYlhmBMs8D3ZosptYBshO/RNq8tBN/9YKBNfLAYxSmSQ N0LQUkDAPx2h1AWehVpw4OgZy3ZOFCyvn2MYJSYIfvvMCDlkLsXzU5ZrXOgPttBGhcJkgji6nWxVE =; Received: from [10.93.0.56] by relay.sw.ru with esmtp (Exim 4.94.2) (envelope-from ) id 1mMDe3-000ihu-Pd; Fri, 03 Sep 2021 21:10:31 +0300 Subject: Re: WARNING in sk_stream_kill_queues To: Eric Dumazet , Hao Sun , davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org References: From: Vasily Averin Message-ID: <9a35a6f2-9373-6561-341c-8933b537122e@virtuozzo.com> Date: Fri, 3 Sep 2021 21:10:31 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/3/21 7:56 PM, Eric Dumazet wrote: > On 9/3/21 12:54 AM, Hao Sun wrote: >> Hello, >> >> When using Healer to fuzz the latest Linux kernel, the following crash >> was triggered. >> >> HEAD commit: 9e9fb7655ed58 Merge tag 'net-next-5.15' >> git tree: upstream >> console output: >> https://drive.google.com/file/d/1AXEQDnn7SPgFAMjqbL03_24-X_8YHoAq/view?usp=sharing >> kernel config: https://drive.google.com/file/d/1zgxbwaYkrM26KEmJ-5sUZX57gfXtRrwA/view?usp=sharing >> C reproducer: https://drive.google.com/file/d/1qa4FVNoO-EsJGuDMtGlTxtHW0li-vMSP/view?usp=sharing >> Syzlang reproducer: >> https://drive.google.com/file/d/1pL6atNID5ZGzH4GceqyBCOC5IjFfiaVN/view?usp=sharing >> If you fix this issue, please add the following tag to the commit: >> Reported-by: Hao Sun > > This is probably a dup, causes skb_expand_head() changes, > CC Vasily Averin is currently working on a fix. Thank you for this report and especially for C reproducer! Vasily Averin >> ------------[ cut here ]------------ >> WARNING: CPU: 1 PID: 10229 at net/core/stream.c:207 >> sk_stream_kill_queues+0x162/0x190 net/core/stream.c:207 >> Modules linked in: >> CPU: 1 PID: 10229 Comm: syz-executor Not tainted 5.14.0+ #12 >> Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS >> rel-1.12.0-59-gc9ba5276e321-prebuilt.qemu.org 04/01/2014 >> RIP: 0010:sk_stream_kill_queues+0x162/0x190 net/core/stream.c:207 >> Code: 41 5c e9 21 3b ce fd e8 1c 3b ce fd 89 de 48 89 ef e8 62 68 fe >> ff e8 0d 3b ce fd 8b 95 68 02 00 00 85 d2 74 ca e8 fe 3a ce fd <0f> 0b >> e8 f7 3a ce fd 8b 85 20 02 00 00 85 c0 74 c3 e8 e8 3a ce fd >> RSP: 0018:ffffc900080b7c98 EFLAGS: 00010202 >> RAX: 000000000002a750 RBX: 0000000000000180 RCX: ffffc90002c0d000 >> RDX: 0000000000040000 RSI: ffffffff836939f2 RDI: ffff8881031f0b40 >> RBP: ffff8881031f0b40 R08: 0000000000000000 R09: 0000000000000000 >> R10: 000000000000000d R11: 000000000004f380 R12: ffff8881031f0c90 >> R13: ffff8881031f0bc0 R14: ffff8881031f0cf0 R15: 0000000000000000 >> FS: 00007f311adcb700(0000) GS:ffff88813dc00000(0000) knlGS:0000000000000000 >> CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 >> CR2: 0000000000732190 CR3: 000000010ab01000 CR4: 0000000000752ee0 >> DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 >> DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 >> PKRU: 55555554 >> Call Trace: >> inet_csk_destroy_sock+0x6f/0x1a0 net/ipv4/inet_connection_sock.c:1012 >> __tcp_close+0x512/0x610 net/ipv4/tcp.c:2869 >> tcp_close+0x29/0xa0 net/ipv4/tcp.c:2881 >> inet_release+0x58/0xb0 net/ipv4/af_inet.c:431 >> __sock_release+0x47/0xf0 net/socket.c:649 >> sock_close+0x18/0x20 net/socket.c:1314 >> __fput+0xdf/0x380 fs/file_table.c:280 >> task_work_run+0x86/0xd0 kernel/task_work.c:164 >> get_signal+0xde6/0x10b0 kernel/signal.c:2596 >> arch_do_signal_or_restart+0xa9/0x860 arch/x86/kernel/signal.c:865 >> handle_signal_work kernel/entry/common.c:148 [inline] >> exit_to_user_mode_loop kernel/entry/common.c:172 [inline] >> exit_to_user_mode_prepare+0xf2/0x280 kernel/entry/common.c:209 >> __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline] >> syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:302 >> do_syscall_64+0x40/0xb0 arch/x86/entry/common.c:86 >> entry_SYSCALL_64_after_hwframe+0x44/0xae >> RIP: 0033:0x46a9a9 >> Code: f7 d8 64 89 02 b8 ff ff ff ff c3 66 0f 1f 44 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 bc ff ff ff f7 d8 64 89 01 48 >> RSP: 002b:00007f311adcac58 EFLAGS: 00000246 ORIG_RAX: 000000000000002c >> RAX: 0000000000069340 RBX: 000000000078c0a0 RCX: 000000000046a9a9 >> RDX: 0000000000088012 RSI: 0000000020000380 RDI: 0000000000000004 >> RBP: 00000000004e4042 R08: 0000000000000000 R09: 0000000000000027 >> R10: 000000000020c49a R11: 0000000000000246 R12: 000000000078c0a0 >> R13: 0000000000000000 R14: 000000000078c0a0 R15: 00007ffe75b47830 >>