Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp261143rwb; Thu, 27 Jul 2023 12:17:53 -0700 (PDT) X-Google-Smtp-Source: APBJJlFhpiBPyb0i4yOpSY5MY1xXgqCuV4y2v+ZtftpfPSdIawF4v5HAYGyCHfO9po7qU14bT1R+ X-Received: by 2002:a17:907:a04b:b0:997:decf:11e7 with SMTP id gz11-20020a170907a04b00b00997decf11e7mr104879ejc.12.1690485472945; Thu, 27 Jul 2023 12:17:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690485472; cv=none; d=google.com; s=arc-20160816; b=n1PUk4slkvrUOFG9bgK3N5IDgTHBu5qMvW0Tn7v/F8CXEwntlO80igjFMevaQHA2nA ztpb8Leit6zNAmNse7BlZ386LiMez2WBWByDiGGJQnp4ec/aiTasuvxmDU8i2HBkDHkH T4/NHwv/jbVLD9+eOvCkBx9axqQrCHAbGwnDxbpZkVSnDl9OWhDWCN40uVfML+aAMutX kuvGicZz8OA8urS1JeEZgwtFtqD8SoZcsoxFI4fp4hgBICI78BF3fvv3ZEl0uLiZrqWF q2ofQ8a/VqB87fGvQ29bwucoe1vwo/fuHefDITH7iSGGM4xFX1PE7iJBf3X6mlr/bxs6 5YUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:in-reply-to:date :mime-version; bh=oSKGCew+LNfabW3yh1/xiFsSSUY3CKeeb05ZwnBCtJU=; fh=Ti+B6F/qyA7zNsbjBhE/T4SxP3W0gQqZbueN9WzOkBU=; b=OLvCHeTdgz15Vi5DHrMERtj9S46SMDG9W3twvjBiUktEePgxEAONyfQNMQ/zabDlz+ eqH5kgpwsHvtLLXSydRjhq5KosoMU47I1RZYwFlu8bOAn5k0Bg+jlfLEP8ce+OSJZmtb nIct6jL1i4NcOFHs5j0b5gX3zWuyduP/9XSgohwnSQ8MDVZc1GvQirB6x5dqgUR2U2MJ kmzTcjtwt+i/jZE6eVGQkC+fjN/gU3e+1YuyJ5MqLwuHKlD8TS+JBseXWNN2Ij9FT2cY w1w+qiyPSsAg/d6J8aB2o+87JsiDhCgLpNXbH66DVgk2IimR4A37fDs1yJ/xhI0YcAdz OJww== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y17-20020a170906915100b00992acf9b9c9si1360022ejw.621.2023.07.27.12.17.26; Thu, 27 Jul 2023 12:17:52 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230102AbjG0Sud (ORCPT + 99 others); Thu, 27 Jul 2023 14:50:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229798AbjG0Sub (ORCPT ); Thu, 27 Jul 2023 14:50:31 -0400 Received: from mail-ot1-f71.google.com (mail-ot1-f71.google.com [209.85.210.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AEFF19A7 for ; Thu, 27 Jul 2023 11:50:29 -0700 (PDT) Received: by mail-ot1-f71.google.com with SMTP id 46e09a7af769-6bc7b12ee26so598545a34.0 for ; Thu, 27 Jul 2023 11:50:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690483829; x=1691088629; h=cc:to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=oSKGCew+LNfabW3yh1/xiFsSSUY3CKeeb05ZwnBCtJU=; b=O4XEa5dET9oD09DkK64xUH88onm5klK0c5AwfmgRpvUhxswz1OgFyus/PGvv1myCRm Wl16S+xB/mzL0b5jsWKycKoFLbaSNc+6gnMJPJm2iypia0SmJ0EzKho+VCDEIyzK5e62 BtgoOR7/JXFhznkVRrF5lCA4T26hP/7Hia/O3E2TYdlmUx3QMOcLi6x8VB3qPXrH7E88 RidhsLs26Ox6n14pIWELKSAoMfB6VjLuKub8j//KI71jPINj8RpvlZD3bgVahWJjZngo o/0FHy++ia1AYoC323OKYw2gYVV5h3MPZTEzgSni/Iq0FqaU3TZ0jtbzNGNCsm49/yrE 9vxg== X-Gm-Message-State: ABy/qLapNAUQ9BUHPIxr0cBhgUVdbJh7sgnlPKJAgBus6YTCdWGilI8O akHdoT6MBk3MKy8B2LhxhvqWKwQXFPPhdLRlM9zsFCv6NrlK MIME-Version: 1.0 X-Received: by 2002:a05:6870:5b16:b0:1bb:470c:901c with SMTP id ds22-20020a0568705b1600b001bb470c901cmr296245oab.7.1690483828929; Thu, 27 Jul 2023 11:50:28 -0700 (PDT) Date: Thu, 27 Jul 2023 11:50:28 -0700 In-Reply-To: X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000001f3ae506017c704b@google.com> Subject: Re: [syzbot] [mm?] WARNING: suspicious RCU usage in mas_walk (2) From: syzbot To: willy@infradead.org Cc: akpm@linux-foundation.org, liam.howlett@oracle.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, syzkaller-bugs@googlegroups.com, willy@infradead.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 Tue, Jul 25, 2023 at 11:57:22PM -0700, syzbot wrote: >> syzbot has bisected this issue to: > > FWIW, this is unrelated to the previous issue. It's the caller of > mas_walk() that has violated the locking constraints, and mas_walk() is > simply reporting the issue. Is there a way to get syzbot to understand > that it needs to unwind the call-stack further to decide who to blame? > >> commit a52f58b34afe095ebc5823684eb264404dad6f7b >> Author: Matthew Wilcox (Oracle) >> Date: Mon Jul 24 18:54:10 2023 +0000 >> >> mm: handle faults that merely update the accessed bit under the VMA lock >> >> bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=1783585ea80000 >> start commit: [unknown] >> git tree: linux-next >> final oops: https://syzkaller.appspot.com/x/report.txt?x=1443585ea80000 >> console output: https://syzkaller.appspot.com/x/log.txt?x=1043585ea80000 >> kernel config: https://syzkaller.appspot.com/x/.config?x=f481ab36ce878b84 >> dashboard link: https://syzkaller.appspot.com/bug?extid=8645fe63c4d22c8d27b8 >> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1697cec9a80000 >> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1566986ea80000 > > #syz test want 2 args (repo, branch), got 4 > > diff --git a/mm/memory.c b/mm/memory.c > index 20a2e9ed4aeb..57b271108bdc 100644 > --- a/mm/memory.c > +++ b/mm/memory.c > @@ -3567,6 +3567,12 @@ static vm_fault_t do_wp_page(struct vm_fault *vmf) > return 0; > } > copy: > + if ((vmf->flags & FAULT_FLAG_VMA_LOCK) && !vma->anon_vma) { > + pte_unmap_unlock(vmf->pte, vmf->ptl); > + vma_end_read(vmf->vma); > + return VM_FAULT_RETRY; > + } > + > /* > * Ok, we need to copy. Oh, well.. > */