From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.2 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E0B93C433B4 for ; Tue, 13 Apr 2021 18:10:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AFF0E613B6 for ; Tue, 13 Apr 2021 18:10:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242269AbhDMSLO (ORCPT ); Tue, 13 Apr 2021 14:11:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232723AbhDMSLM (ORCPT ); Tue, 13 Apr 2021 14:11:12 -0400 Received: from mail-qk1-x736.google.com (mail-qk1-x736.google.com [IPv6:2607:f8b0:4864:20::736]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45A09C061574 for ; Tue, 13 Apr 2021 11:10:52 -0700 (PDT) Received: by mail-qk1-x736.google.com with SMTP id x11so18757130qkp.11 for ; Tue, 13 Apr 2021 11:10:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FGbhF4j/4KvKvgmcMI4tSFrHp3z+B+kvQjIt7JNGVtM=; b=DfO/jKlu63SfJMFWbKyUV0bbBZCRd1vz/+G/YmzhTTDH2TksvMdvLPRxbz3c5WeN41 R44AUBkiZ81oyS2Lj85bwtjNER3XalFky7kL9bC8JR/lyUE29zCFoaBxqknj1X7fInIM SE1PDklgLxqM12WgbGtGcGK3AxZYkvZjHrb1FUUrrfQAVuDGJ+xRcHiy/P8RMOuCUJXT M68JwzItCLD1ZOmOdHkv/LRa4MH+RrzZCxmaWyybHoDiWwcbbRPzWyJOSZTUlsUS3oZo TYqW3UAhV6PcjrG+cIettEB2u7LoXChq3U0cCsRGXUsjHHLiZ7GEVHCZIB5VRPqLB3Sb BKTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FGbhF4j/4KvKvgmcMI4tSFrHp3z+B+kvQjIt7JNGVtM=; b=CtDoRrczH3zflxtojAn9RXnq8idek8nqT/xqeAs6E38lYj9X0PTcZaOfqgTw0y8R+9 /zV2N+NYoidxCrloX+ws+RsOHCEQ2qz21RMVlKXc6VSv1WfyebSNyTABvAkq8vGV+mj7 VcLEunO0MgCadfpHsvJGkNbTobB29gOlWp+Ies7SEut0TVZBfegKOMg2DhWPw3kA/Q8j 4yj4WiFSQgGS102TSO/s16D0gUI4qnqYBl9ToLdYPfhcbC2C/n6qe54+O3FFKBnCS8RV IJnaeloejf62Re6Bi4NcEwxM87VNckwt7EgkRM/8rHc8tKoQvRDAC3SGydsuc3yid6Vd ebQw== X-Gm-Message-State: AOAM531+rLDovhjsqsIWVOr5ZeP3ldep9fxb0Xs3t2BWySLQWrUpkm6t 7yENO6dJ8bnHq3opX5hsyu5tCmjn0yfdOXS9Qmfa2g== X-Google-Smtp-Source: ABdhPJwgMLCFIyBm4ZJyOejRwBNHEomxHGEGdG3AM3IECeJOe3e/Sq3AX/EF9w+bYLlFMQswhzAYa1DyDU2rtW1P9VI= X-Received: by 2002:ae9:e513:: with SMTP id w19mr35388617qkf.231.1618337451241; Tue, 13 Apr 2021 11:10:51 -0700 (PDT) MIME-Version: 1.0 References: <000000000000ce66e005bf3b9531@google.com> In-Reply-To: <000000000000ce66e005bf3b9531@google.com> From: Dmitry Vyukov Date: Tue, 13 Apr 2021 20:10:39 +0200 Message-ID: Subject: Re: [syzbot] WARNING: suspicious RCU usage in lock_sock_nested To: syzbot Cc: andrii@kernel.org, Alexei Starovoitov , bpf , Daniel Borkmann , David Miller , dsahern@kernel.org, John Fastabend , Martin KaFai Lau , kpsingh@kernel.org, Jakub Kicinski , LKML , netdev , Song Liu , syzkaller-bugs , Yonghong Song , Hideaki YOSHIFUJI Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 5, 2021 at 5:45 PM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit: d19cc4bf Merge tag 'trace-v5.12-rc5' of git://git.kernel.o.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=14898326d00000 > kernel config: https://syzkaller.appspot.com/x/.config?x=d1a3d65a48dbd1bc > dashboard link: https://syzkaller.appspot.com/bug?extid=80a4f8091f8d5ba51de9 > > Unfortunately, I don't have any reproducer for this issue yet. > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > Reported-by: syzbot+80a4f8091f8d5ba51de9@syzkaller.appspotmail.com #syz dup: WARNING: suspicious RCU usage in getname_flags > ============================= > WARNING: suspicious RCU usage > 5.12.0-rc5-syzkaller #0 Not tainted > ----------------------------- > kernel/sched/core.c:8294 Illegal context switch in RCU-bh read-side critical section! > > other info that might help us debug this: > > > rcu_scheduler_active = 2, debug_locks = 0 > no locks held by syz-executor.3/8407. > > stack backtrace: > CPU: 0 PID: 8407 Comm: syz-executor.3 Not tainted 5.12.0-rc5-syzkaller #0 > Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 > Call Trace: > __dump_stack lib/dump_stack.c:79 [inline] > dump_stack+0x141/0x1d7 lib/dump_stack.c:120 > ___might_sleep+0x229/0x2c0 kernel/sched/core.c:8294 > lock_sock_nested+0x25/0x120 net/core/sock.c:3062 > lock_sock include/net/sock.h:1600 [inline] > do_ip_getsockopt+0x227/0x18e0 net/ipv4/ip_sockglue.c:1536 > ip_getsockopt+0x84/0x1c0 net/ipv4/ip_sockglue.c:1761 > tcp_getsockopt+0x86/0xd0 net/ipv4/tcp.c:4239 > __sys_getsockopt+0x21f/0x5f0 net/socket.c:2161 > __do_sys_getsockopt net/socket.c:2176 [inline] > __se_sys_getsockopt net/socket.c:2173 [inline] > __x64_sys_getsockopt+0xba/0x150 net/socket.c:2173 > do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 > entry_SYSCALL_64_after_hwframe+0x44/0xae > RIP: 0033:0x467a6a > Code: 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 49 89 ca b8 37 00 00 00 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:00007ffc76a6a848 EFLAGS: 00000246 ORIG_RAX: 0000000000000037 > RAX: ffffffffffffffda RBX: 00007ffc76a6a85c RCX: 0000000000467a6a > RDX: 0000000000000060 RSI: 0000000000000000 RDI: 0000000000000003 > RBP: 0000000000000003 R08: 00007ffc76a6a85c R09: 00007ffc76a6a8c0 > R10: 00007ffc76a6a860 R11: 0000000000000246 R12: 00007ffc76a6a860 > R13: 000000000005ecdc R14: 0000000000000000 R15: 00007ffc76a6afd0 > > > --- > 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. > > -- > You received this message because you are subscribed to the Google Groups "syzkaller-bugs" group. > To unsubscribe from this group and stop receiving emails from it, send an email to syzkaller-bugs+unsubscribe@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/syzkaller-bugs/000000000000ce66e005bf3b9531%40google.com.