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=ham 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 36128C433ED for ; Tue, 13 Apr 2021 18:12:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0EAF0613C0 for ; Tue, 13 Apr 2021 18:12:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347579AbhDMSND (ORCPT ); Tue, 13 Apr 2021 14:13:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345440AbhDMSM6 (ORCPT ); Tue, 13 Apr 2021 14:12:58 -0400 Received: from mail-qt1-x835.google.com (mail-qt1-x835.google.com [IPv6:2607:f8b0:4864:20::835]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA232C061574 for ; Tue, 13 Apr 2021 11:12:37 -0700 (PDT) Received: by mail-qt1-x835.google.com with SMTP id t11so4874032qtr.8 for ; Tue, 13 Apr 2021 11:12:37 -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=z9vFrP90BtHdVUAnBqEihgqSC2EUUvSWUWH+wphvxjE=; b=eKzDBe5vneRFdAO4WozQqRZFFGKT+xx5Sx3UuolrsNRH5iamCFt3Fut698Iw3l9ehx plFOVnXWoyQ7AxKytvss3WdyWyn4p2thSai2LnopQVcqQL3r+klvUVoZCaC/Cw2iigSS pfEl/6U0+vWLUhYHGCbqRk8cDxXI6MpgjMTfopmiO+1vkUBWcjfnx73WkuPsLKkbnoES 6mkdKdjKLTBLiy4BDbUPMEEu7cbELbPNb5R8mjZCJMJ4bkj/YHbZnil9A6qIZSSurKRI +M+xHJWbBuM5DS5++jdczfKsFTGyT8i43lzTLI/bYxKy0KIAqXN9T1Stf71YuvVfQWNd OFUA== 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=z9vFrP90BtHdVUAnBqEihgqSC2EUUvSWUWH+wphvxjE=; b=X2saBOK1ah2CDhRZAsOHnMRJWCy0J45kWlEGNV/pAlmdol+Nh4yIyUqB0/b1TR/0c0 APPHIOP6nlHR6kajrsUpIv6M6AzyJFv6mPw91Tzcy5oyGYrjFrqeIp4rYnChM8ywAkdn PLBnxkgIevQmqKT3WWtWyGSNX3o2/B+5h8Fmv+jHvihKcjV9jtpPLoyWe3qfw44vLg+M 7XNXQih7CsoOUaDU+liZZweqsCHDnY9ArsPvmCATAtJi7iYvWTMrZAevyGugzNbC2XSG C4Jjer6PxmRYzfFfCbVXSqkfmJ9id5nZkMhEYHI99o0zCLsFiw/Y7DJprDJ7GxBi56P1 8H3Q== X-Gm-Message-State: AOAM5310u4z7aiqlTrfCByvqmOH62G/sb1NJhBfPYMuIacPUAIr/XVzU O33QAAG7p51Px8+40/Sh95m5txS8nNWTQeQC7Qq4bg== X-Google-Smtp-Source: ABdhPJwZ5wHRe5YxKTRhCgZ8ffY38dTe9Zm33Yt4BxnuurFMW+m/Hm6k26wH0+fcXPqys7ctWW/8UOUhDKiV5kfL3OY= X-Received: by 2002:ac8:768c:: with SMTP id g12mr16223273qtr.67.1618337556792; Tue, 13 Apr 2021 11:12:36 -0700 (PDT) MIME-Version: 1.0 References: <00000000000086695705bec87c9f@google.com> In-Reply-To: From: Dmitry Vyukov Date: Tue, 13 Apr 2021 20:12:25 +0200 Message-ID: Subject: Re: [syzbot] WARNING: suspicious RCU usage in copy_page_range To: Peter Zijlstra Cc: syzbot , Ingo Molnar , Will Deacon , Andrew Morton , Jens Axboe , Christian Brauner , LKML , Shakeel Butt , syzkaller-bugs Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 6, 2021 at 9:41 AM Peter Zijlstra wrote: > > On Wed, Mar 31, 2021 at 11:57:23AM +0200, Dmitry Vyukov wrote: > > On Wed, Mar 31, 2021 at 9:31 AM Peter Zijlstra wrote: > > > > > > On Wed, Mar 31, 2021 at 08:11:38AM +0200, Dmitry Vyukov wrote: > > > > On Wed, Mar 31, 2021 at 12:26 AM syzbot > > > > wrote: > > > > > > > > > > Hello, > > > > > > > > > > syzbot found the following issue on: > > > > > > > > > > HEAD commit: db24726b Merge tag 'integrity-v5.12-fix' of git://git.kern.. > > > > > git tree: upstream > > > > > console output: https://syzkaller.appspot.com/x/log.txt?x=16c16b7cd00000 > > > > > kernel config: https://syzkaller.appspot.com/x/.config?x=daeff30c2474a60f > > > > > dashboard link: https://syzkaller.appspot.com/bug?extid=1a33233ccd8201ec2322 > > > > > > > > > > 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+1a33233ccd8201ec2322@syzkaller.appspotmail.com > > > > > > > > I think this is a LOCKDEP issue. +LOCKDEP maintainers. > > > > > > > > Another bug happened on another thread ("WARNING: possible circular > > > > locking dependency detected"). Lockdep disabled lock tracking > > > > ("debug_locks = 0" in the report), which probably made it miss > > > > rcu_unlock somewhere, but it did not turn off reporting yet and > > > > produced the false positive first. > > > > > > > > I think if LOCKDEP disables lock tracking, it must also disable > > > > reporting of issues that require lock tracking. That would avoid false > > > > positives. > > > > > > Still early and brain hasn't really booted yet, but features that > > > require lock tracking are supposed to check debug_locks. > > > > > > And afaict debug_lockdep_rcu_enabled(), which is called by > > > RCU_LOCKDEP_WARN(), which is called by rcu_sleep_check() does just that. > > > > Right... yet it somehow happens. > > Looking at a dozen of reports, all with 2 concurrent lockdep splats > > and "debug_locks = 0" in the report, I am pretty sure there is some > > kind of race in lockdep. > > Aah, concurrent splats. Yes, that was per design. The theory was that > concurrent splats are rare and this is much simpler code. #syz dup: WARNING: suspicious RCU usage in getname_flags