Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp29561961rwd; Wed, 5 Jul 2023 13:53:41 -0700 (PDT) X-Google-Smtp-Source: APBJJlGUwz7pbhhyqTQNp73AFWXaADnFgydvSF8e706F9csY2uaYvvckr/1N2HT1wVH3mWB/aEEu X-Received: by 2002:a17:902:7792:b0:1b8:4515:8be4 with SMTP id o18-20020a170902779200b001b845158be4mr58061pll.56.1688590421333; Wed, 05 Jul 2023 13:53:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688590421; cv=none; d=google.com; s=arc-20160816; b=bp0qgnrTSfZX9rfPovNr6CAhOmLBWfjjFVzWkJl62ngVLXaBkwFJjY4u9eaLCABzNC u+mTtpCU7fbuGFNHz3MMkQzzxN6Xq6NvEIicv5b1eCA6fLsG5b7X0I5CQz5SE8rnPvLz CT+v/yXejRBbqXo/UzM/YX1DrKSDSKVyeW0O+L00Mpv0hNfv7V/PMlqyKAhkpR4KJjnO KpITcQ7exiYDM+KrUUILg+XV4SdgQruOrKP7wSZFMyWN3qe6AnLbdrU8eOeHb2zsEWGB 4jdklBAwA5nt1+lS+3e9cvTGNm/k+gTOIqE7R2YzNMzoFQw9CQ96MhwAFWRsZxxRZfKy X37g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ASCe+ZaB9FC1F5583V60PJYWRONCOSusHLyER7UBBI0=; fh=E9L43xWbtXv3kyN/87t6eiMHjRvs0zTmYUGI3XtWK1s=; b=fIZ3s6yrjShwM9kRgSVPrtNFRtCYl/1nzgH1NMjuehL8SqECVF/mPk6gZGhKH18uiN hvFabmubrrtH7hWFmBVnNYeckWBLOv7hKNSi/AMDepWGZHXhTx/jYZs8siPByFgGkhvH NjvjqONnN+ihffAg9BV38LZaz6ky61de2DMZWckndjBRUcg/cpLpzAlx3T68az4T9GMb YIUBks9ZcUl4jhh7uAMcALi+uIwYfLltZAKcDolgtECElNHqVy6cffk406lJdxYQ+imi 9c5hFESmL+YD5vSkkZC3WcTGT2Q3boPOhoXRtEpCtVsAuHzEB3rki/9QHIru7FTMQYyh xnGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LOITyjV4; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g4-20020a170902934400b001b828f8dd13si16086498plp.340.2023.07.05.13.53.28; Wed, 05 Jul 2023 13:53:41 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LOITyjV4; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233708AbjGEU0N (ORCPT + 99 others); Wed, 5 Jul 2023 16:26:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232401AbjGEU0L (ORCPT ); Wed, 5 Jul 2023 16:26:11 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2AB21989 for ; Wed, 5 Jul 2023 13:25:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1688588726; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ASCe+ZaB9FC1F5583V60PJYWRONCOSusHLyER7UBBI0=; b=LOITyjV431AgR8sKdea9s0kwSf/08oavUwCQrcWgTyIr5hATXbxuxs2NiRkHD7NUl6QxgV O+89kaX/GjxtP0i/ESHmpy49a47CSjfh+NTrSq8bT8ECdXcanyA3yXGF2mqSzPEuEpq1la I0ldc4hVysQkY9yapzWsLSbeVVC+NG8= Received: from mail-oi1-f200.google.com (mail-oi1-f200.google.com [209.85.167.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-499-vjTcIo25OY2X7z9xPoLB7g-1; Wed, 05 Jul 2023 16:25:25 -0400 X-MC-Unique: vjTcIo25OY2X7z9xPoLB7g-1 Received: by mail-oi1-f200.google.com with SMTP id 5614622812f47-3a1ed0e9b5dso21078b6e.0 for ; Wed, 05 Jul 2023 13:25:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688588724; x=1689193524; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ASCe+ZaB9FC1F5583V60PJYWRONCOSusHLyER7UBBI0=; b=g9GT22IMzUkmY4iGhXwbGDb/u0KrC3nY3dhZPiyVZ2FeDckdIiACe3Goz3uvWY2ual EyzGqCtT9dtLcpbuEaqpkMD9aQ11NQ8Yakq9MLSHyNgCthjAFJ+D1/R1PVfbxvtbiljn fzFcfy6cIyVL18RB6AZYnQjjFT3+orO6EGwO0XwoZdehiIz3QvrViSeEJPacQ5ooYN6C /OZ8tUmtMXqWeKqTqmrizImUeYPSwpCD7+HJKs7uJBYCab8xVZHLy9ISJ7k33ibCnvGx uNjqrJpPM7Wd6yHothDEpXpjMqaxpyXOm0tUBzOQJRu151vVdlqiw1adWrYRvVDvA/8X Y/zg== X-Gm-Message-State: AC+VfDzdVNFDA42C00RaPW9RUko68dI7ygnmTAGdmdvNF0VF8WufsTuD 6MpMdy6PjHyFxfRgcU7z8iNIcPusrG0egCJ6e3ZrmiBAZ5e47B6VlEhpYXde511lW0sYgNGRB3c D2v9irb3/Uu5IEHQ+PuXRs42O X-Received: by 2002:aca:f255:0:b0:3a0:50bb:79cd with SMTP id q82-20020acaf255000000b003a050bb79cdmr10091336oih.0.1688588724343; Wed, 05 Jul 2023 13:25:24 -0700 (PDT) X-Received: by 2002:aca:f255:0:b0:3a0:50bb:79cd with SMTP id q82-20020acaf255000000b003a050bb79cdmr10091318oih.0.1688588724031; Wed, 05 Jul 2023 13:25:24 -0700 (PDT) Received: from x1n (cpe5c7695f3aee0-cm5c7695f3aede.cpe.net.cable.rogers.com. [99.254.144.39]) by smtp.gmail.com with ESMTPSA id l11-20020a0cc20b000000b00632266b569esm14014585qvh.87.2023.07.05.13.25.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jul 2023 13:25:23 -0700 (PDT) Date: Wed, 5 Jul 2023 16:25:21 -0400 From: Peter Xu To: Suren Baghdasaryan Cc: David Hildenbrand , akpm@linux-foundation.org, jirislaby@kernel.org, jacobly.alt@gmail.com, holger@applied-asynchrony.com, hdegoede@redhat.com, michel@lespinasse.org, jglisse@google.com, mhocko@suse.com, vbabka@suse.cz, hannes@cmpxchg.org, mgorman@techsingularity.net, dave@stgolabs.net, willy@infradead.org, liam.howlett@oracle.com, peterz@infradead.org, ldufour@linux.ibm.com, paulmck@kernel.org, mingo@redhat.com, will@kernel.org, luto@kernel.org, songliubraving@fb.com, dhowells@redhat.com, hughd@google.com, bigeasy@linutronix.de, kent.overstreet@linux.dev, punit.agrawal@bytedance.com, lstoakes@gmail.com, peterjung1337@gmail.com, rientjes@google.com, chriscli@google.com, axelrasmussen@google.com, joelaf@google.com, minchan@google.com, rppt@kernel.org, jannh@google.com, shakeelb@google.com, tatashin@google.com, edumazet@google.com, gthelen@google.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH v3 2/2] mm: disable CONFIG_PER_VMA_LOCK until its fixed Message-ID: References: <20230705171213.2843068-1-surenb@google.com> <20230705171213.2843068-3-surenb@google.com> <3cdaa7d4-1293-3806-05ce-6b7fc4382458@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE 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 Wed, Jul 05, 2023 at 10:22:27AM -0700, Suren Baghdasaryan wrote: > On Wed, Jul 5, 2023 at 10:16 AM David Hildenbrand wrote: > > > > On 05.07.23 19:12, Suren Baghdasaryan wrote: > > > A memory corruption was reported in [1] with bisection pointing to the > > > patch [2] enabling per-VMA locks for x86. > > > Disable per-VMA locks config to prevent this issue while the problem is > > > being investigated. This is expected to be a temporary measure. > > > > > > [1] https://bugzilla.kernel.org/show_bug.cgi?id=217624 > > > [2] https://lore.kernel.org/all/20230227173632.3292573-30-surenb@google.com > > > > > > Reported-by: Jiri Slaby > > > Closes: https://lore.kernel.org/all/dbdef34c-3a07-5951-e1ae-e9c6e3cdf51b@kernel.org/ > > > Reported-by: Jacob Young > > > Closes: https://bugzilla.kernel.org/show_bug.cgi?id=217624 > > > Fixes: 0bff0aaea03e ("x86/mm: try VMA lock-based page fault handling first") > > > Cc: stable@vger.kernel.org > > > Signed-off-by: Suren Baghdasaryan > > > --- > > > mm/Kconfig | 3 ++- > > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > > > diff --git a/mm/Kconfig b/mm/Kconfig > > > index 09130434e30d..0abc6c71dd89 100644 > > > --- a/mm/Kconfig > > > +++ b/mm/Kconfig > > > @@ -1224,8 +1224,9 @@ config ARCH_SUPPORTS_PER_VMA_LOCK > > > def_bool n > > > > > > config PER_VMA_LOCK > > > - def_bool y > > > + bool "Enable per-vma locking during page fault handling." > > > depends on ARCH_SUPPORTS_PER_VMA_LOCK && MMU && SMP > > > + depends on BROKEN > > > help > > > Allow per-vma locking during page fault handling. > > > > > Do we have any testing results (that don't reveal other issues :) ) for > > patch #1? Not sure if we really want to mark it broken if patch #1 fixes > > the issue. > > I tested the fix using the only reproducer provided in the reports > plus kernel compilation and my fork stress test. All looked good and > stable but I don't know if other reports had the same issue or > something different. The commit log seems slightly confusing. It mostly says the bug was still not solved, but I assume patch 1 is the current "fix", it's just not clear whether there's any other potential issues? According to the stable tree rules: - It must fix a problem that causes a build error (but not for things marked CONFIG_BROKEN), an oops, a hang, data corruption, a real security issue, or some "oh, that's not good" issue. In short, something critical. I think it means vma lock will never be fixed in 6.4, and it can't (because after this patch it'll be BROKEN, and this patch copies stable, and we can't fix BROKEN things in stables). Totally no problem I see, just to make sure this is what you wanted.. There'll still try to be a final fix, am I right? As IIRC allowing page faults during fork() is one of the major goals of vma lock. Thanks, -- Peter Xu