Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp29412748rwd; Wed, 5 Jul 2023 11:25:31 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6en9KfIGGniU3CnKO2x4Itnv4BGXQlRuE9KeHDM4HxyhMwoZqE49fHVezw+gPQk8uXhK2f X-Received: by 2002:a54:4895:0:b0:3a0:662a:e0c1 with SMTP id r21-20020a544895000000b003a0662ae0c1mr15602260oic.31.1688581531257; Wed, 05 Jul 2023 11:25:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688581531; cv=none; d=google.com; s=arc-20160816; b=uO+g3CqY4mpyGovzDKroa84Lx4CDfWrLsQueDIQLXCbMBn4dcgf7Lr2MYUEDKzzRYM fHHYoZb8h9r+lP5m+xc9a3HV7gwn1hEuqr9OhKU9G00jQoO6XXkPREzxHPMi/Tp05zYI XYAFf4EtMOCeTQKlkljgubRZOQNR8f0WbZkb8oWSGEe56qMtr4fGVATHwFQbhIwxOQuo JINej+f6thiKTyfqwhnQNDOWDn4N7LdC6Gsf1nXaqxfoJdZrnfyHpTH6NoCSDNoZs02Z /T5f8ttjAIA7cjL4xEVzO73MJm3AF3Eh5o/vDMWwYgd2yL00rVCSqn8lWLCLk0XoCPGy IKtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=mN+8m1ObowZ74/MLZ++4zNOVgKxyk4abeoHHzPL0ezY=; fh=SyIxPQCZ5x2zfGVZmC97pCYiEgdAAxQkeIe1Bc/6nEo=; b=J9H6VAtVLJQ2x/PJScXq4W63Z8mM9KBLT/pnqT2m5iUQy+nc9esGbdJEKELshVyWVc 1dLRGJOpuw+oYof6Mj4zike6ri2qLuhUnw3wo5904euPfjpq3rzFPCto7ViC6GcC5nmf uh+mL+g63dOzLloUO81MMOvLGScuzyVxwmVp30NX6wX334P6NZzPOdyCWhp1r17tmLi8 PFIDhCAnZr6n72ejl1zn/kzGeU4x1rnilhGQqd/phI9v6A5q646VwAvcaoYFdUAgThWF twYyAiUBPRJxx0dVyJS7Kt73QhJhxTrGM9+shfLsrMxzfUQKbw1DYocliFhxvQLZuRNw N49Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=4TFMCjMv; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r20-20020a6560d4000000b005538c5bef9csi22930253pgv.452.2023.07.05.11.25.16; Wed, 05 Jul 2023 11:25:31 -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=@google.com header.s=20221208 header.b=4TFMCjMv; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230285AbjGESPG (ORCPT + 99 others); Wed, 5 Jul 2023 14:15:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232650AbjGESPE (ORCPT ); Wed, 5 Jul 2023 14:15:04 -0400 Received: from mail-yb1-xb33.google.com (mail-yb1-xb33.google.com [IPv6:2607:f8b0:4864:20::b33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A0AC173F for ; Wed, 5 Jul 2023 11:15:03 -0700 (PDT) Received: by mail-yb1-xb33.google.com with SMTP id 3f1490d57ef6-c15a5ed884dso7973043276.2 for ; Wed, 05 Jul 2023 11:15:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1688580902; x=1691172902; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=mN+8m1ObowZ74/MLZ++4zNOVgKxyk4abeoHHzPL0ezY=; b=4TFMCjMv9iG+yqvy1BZCXvPVHaAAiUMgSlESlQ24abzZb75mpvo4noUD94rWEbxSwN 2Dlz8AWTMjrSG4gawG4Uh6ULXX+zF17/kLnPeMF1MCgbYmbB6+zq2cO418wb9Xi7Ffjt vvBykSdfuu+sRbQU5SCWpWrlzrjNPXjxI5avEpX3nxHQGa6Wmh4i0wG2pi4KEdqW1qNS tta+EW2l09KXS+jEIZFzV3NaW7CAg7cSqRBw768qp7KoyC+dUhLwH3L8IHjR9Q4vU0Wh PoK+i/B5EHpcdwlqwH5hK4aAvpfmUemy0RRP54JpB8jaV/4bwUnwBUXTw42Axmxfy0ed Gdiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688580902; x=1691172902; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mN+8m1ObowZ74/MLZ++4zNOVgKxyk4abeoHHzPL0ezY=; b=D1t7diYx1XXLJgk+p3Ya+1tb5ZEou7cIJ+VpgLEtWNhGaZOLjLWhm/K7lZQfm4v3wl SwebI5m+2Ay4/8goAXyiOWxD31QGv3pqkE7PyUdMyNgfksw8uVS1mpdZwwNgNqNcDP0C xBr7ltF1m+bwpz3JuFUlrLVINGEv0oKij/crh9khRQr1ldHtcTdOGhsGf31bpIgkr9Oz j47CrEIo92MrIZARIfStNirhdyyHg1SIjKRUDshkxiemNWhSbHoaDSsBTONiTLi3CmNR iipJVOdb77z4xVNSRN0YIO0ILE8sC5yBwj7A7k7DfWL8D63hgItdKEPMxGLhazlLf+Dh GVvA== X-Gm-Message-State: ABy/qLalcBV/yea6zfMqWlHuUlSBBoYN6SML077R3kr7Zf9f933AX6jx AmlIpmNIXQUBsiNPoCCwFq0AQ8qIoY5aDUqD2nCfCg== X-Received: by 2002:a25:cfd3:0:b0:c4e:48eb:b8d4 with SMTP id f202-20020a25cfd3000000b00c4e48ebb8d4mr10899950ybg.27.1688580902461; Wed, 05 Jul 2023 11:15:02 -0700 (PDT) MIME-Version: 1.0 References: <20230705171213.2843068-1-surenb@google.com> <20230705171213.2843068-3-surenb@google.com> <3cdaa7d4-1293-3806-05ce-6b7fc4382458@redhat.com> In-Reply-To: From: Suren Baghdasaryan Date: Wed, 5 Jul 2023 11:14:51 -0700 Message-ID: Subject: Re: [PATCH v3 2/2] mm: disable CONFIG_PER_VMA_LOCK until its fixed To: David Hildenbrand Cc: 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, peterx@redhat.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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=unavailable 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 5, 2023 at 11:09=E2=80=AFAM Suren Baghdasaryan wrote: > > On Wed, Jul 5, 2023 at 10:24=E2=80=AFAM David Hildenbrand wrote: > > > > On 05.07.23 19:22, Suren Baghdasaryan wrote: > > > On Wed, Jul 5, 2023 at 10:16=E2=80=AFAM 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 proble= m is > > >>> being investigated. This is expected to be a temporary measure. > > >>> > > >>> [1] https://bugzilla.kernel.org/show_bug.cgi?id=3D217624 > > >>> [2] https://lore.kernel.org/all/20230227173632.3292573-30-surenb@go= ogle.com > > >>> > > >>> Reported-by: Jiri Slaby > > >>> Closes: https://lore.kernel.org/all/dbdef34c-3a07-5951-e1ae-e9c6e3c= df51b@kernel.org/ > > >>> Reported-by: Jacob Young > > >>> Closes: https://bugzilla.kernel.org/show_bug.cgi?id=3D217624 > > >>> Fixes: 0bff0aaea03e ("x86/mm: try VMA lock-based page fault handlin= g 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 f= ixes > > >> 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. > > > > Can you point me at the other reports, so I can quickly scan them? > > by Jacob Young: https://bugzilla.kernel.org/show_bug.cgi?id=3D217624 > by Jiri Slaby: https://lore.kernel.org/all/dbdef34c-3a07-5951-e1ae-e9c6e3= cdf51b@kernel.org/ From strace in https://lore.kernel.org/all/f7ad7a42-13c8-a486-d0b7-01d5acf0= 1e13@kernel.org/ looks like clone3() was involved, so this seems quite likely to be the same issue I think. > by Holger Hoffst=C3=A4tte: > https://lore.kernel.org/all/b198d649-f4bf-b971-31d0-e8433ec2a34c@applied-= asynchrony.com/ > only saying that Firefox started crashing after upgrading to 6.4.1 > > > > > -- > > Cheers, > > > > David / dhildenb > >