Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp270169iol; Thu, 9 Jun 2022 03:37:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0WQroOkTd/Q+xmQZRbiOwR/awkYQ5j2vMmoxuz8FJxyY0IbSwvYA6AXXFVC4AUsqb9KEg X-Received: by 2002:aa7:cdd5:0:b0:42d:b87a:6d7 with SMTP id h21-20020aa7cdd5000000b0042db87a06d7mr44582500edw.91.1654771070617; Thu, 09 Jun 2022 03:37:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654771070; cv=none; d=google.com; s=arc-20160816; b=maB9A1Kf9cmuSWjs9H1HWachaKf1YdIYObhHRibkFEIfBNI3gNXyD2RyDcZ2FPLoPr /JT/UKKiYv33/iRJkqKlPemT3IjCDYS/pAMviOffAeZyus43+1w2eBiNH9kIwTtiRC8S U9zXqLQWbfky+r5waJtLIeh2Zr3HYy8QgONazFPVBgZI9DsmsjYRriWc5XbJoQoDz9z7 M7XNtOG0koR2VAWjLaF3V9FasafYQZCimQMNc0XgFSVKHEgZW1J6G9fxeniDW6oNHbV8 4O5ZB6V6sg3Ix6cYzwMJwBd5aKtpgZhhC2VIW9jRO7hwyAO+0GTxtdlu1q1oLQrBAPaR L9Tw== 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 :to:subject; bh=FORkoVFfl8ktGWbZlumffjApb+jOorfventZmoALS68=; b=z+7EA1JSiH8I5FH/kLpMnoUIcH3B/UGieNkQx88KqhDP1uOWP6k/8MxLlf4epPebLS bavYW0Wz/KC3dbwsTA5tXv6GHLLROakLNTGX97Rz+6+7ijOt5bkl0MlCMIkny3h9M3Si tAR/OeH7g2KNnD5iHxBJApDHVYHa1jm/tBWEDs9aSNZ+5HRKwzn6ajU1fkLhkzBo9gTF yvGpdYJH1ildSaGjGWGJ6nIf2AJ5L6riPUFYPS8NTiwnjRYPICtjylfhioldBcfstQCR 9ZJnh8ImBJpwJw2E1dGnaLEdUfLCDNxVJGzDpyVVdJJNSi5JTBFzGRO8+jw8m7W+PsHf 5+Mw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jg42-20020a170907972a00b006feb6dd65e0si4876922ejc.756.2022.06.09.03.37.22; Thu, 09 Jun 2022 03:37:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242735AbiFIK1J (ORCPT + 99 others); Thu, 9 Jun 2022 06:27:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241555AbiFIK1D (ORCPT ); Thu, 9 Jun 2022 06:27:03 -0400 Received: from www62.your-server.de (www62.your-server.de [213.133.104.62]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 256CA1FD9F2; Thu, 9 Jun 2022 03:27:01 -0700 (PDT) Received: from sslproxy06.your-server.de ([78.46.172.3]) by www62.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1nzFNP-000DEf-LE; Thu, 09 Jun 2022 12:26:55 +0200 Received: from [2a02:168:f656:0:d16a:7287:ccf0:4fff] (helo=localhost.localdomain) by sslproxy06.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nzFNP-0007Xo-6F; Thu, 09 Jun 2022 12:26:55 +0200 Subject: Re: [syzbot] BUG: sleeping function called from invalid context in corrupted (2) To: syzbot , andrii@kernel.org, ast@kernel.org, bpf@vger.kernel.org, davem@davemloft.net, edumazet@google.com, jakub@cloudflare.com, john.fastabend@gmail.com, kafai@fb.com, kpsingh@kernel.org, kuba@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, pabeni@redhat.com, songliubraving@fb.com, syzkaller-bugs@googlegroups.com, wangyufen@huawei.com, yhs@fb.com References: <000000000000124e9105e0fbe047@google.com> From: Daniel Borkmann Message-ID: Date: Thu, 9 Jun 2022 12:26:53 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <000000000000124e9105e0fbe047@google.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.103.6/26567/Thu Jun 9 10:06:06 2022) X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/9/22 6:01 AM, syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit: 03c312cc5f47 Add linux-next specific files for 20220608 > git tree: linux-next > console output: https://syzkaller.appspot.com/x/log.txt?x=155a4b73f00000 > kernel config: https://syzkaller.appspot.com/x/.config?x=a0a0f5184fb46b > dashboard link: https://syzkaller.appspot.com/bug?extid=efe1afd49d981d281ae4 > compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=168d9ebff00000 > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=125c6e5ff00000 > > The issue was bisected to: > > commit d8616ee2affcff37c5d315310da557a694a3303d > Author: Wang Yufen > Date: Tue May 24 07:53:11 2022 +0000 > > bpf, sockmap: Fix sk->sk_forward_alloc warn_on in sk_stream_kill_queues Wang, please take a look and fix. Thanks! > bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=138a4b57f00000 > final oops: https://syzkaller.appspot.com/x/report.txt?x=104a4b57f00000 > console output: https://syzkaller.appspot.com/x/log.txt?x=178a4b57f00000 > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > Reported-by: syzbot+efe1afd49d981d281ae4@syzkaller.appspotmail.com > Fixes: d8616ee2affc ("bpf, sockmap: Fix sk->sk_forward_alloc warn_on in sk_stream_kill_queues") > > BUG: sleeping function called from invalid context at kernel/workqueue.c:3010 > in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 3611, name: syz-executor124 > preempt_count: 201, expected: 0 > RCU nest depth: 0, expected: 0 > 3 locks held by syz-executor124/3611: > #0: ffff888073295c10 (&sb->s_type->i_mutex_key#10){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:742 [inline] > #0: ffff888073295c10 (&sb->s_type->i_mutex_key#10){+.+.}-{3:3}, at: __sock_release+0x86/0x280 net/socket.c:649 > #1: ffff888073ff1ab0 (sk_lock-AF_INET6){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1691 [inline] > #1: ffff888073ff1ab0 (sk_lock-AF_INET6){+.+.}-{0:0}, at: tcp_close+0x1e/0xc0 net/ipv4/tcp.c:2908 > > > --- > This report is generated by a bot. It may contain errors. > See https://goo.gl/tpsmEJ for more information about syzbot. > syzbot engineers can be reached at syzkaller@googlegroups.com. > > syzbot will keep track of this issue. See: > https://goo.gl/tpsmEJ#status for how to communicate with syzbot. > For information about bisection process see: https://goo.gl/tpsmEJ#bisection > syzbot can test patches for this issue, for details see: > https://goo.gl/tpsmEJ#testing-patches >