Message ID | 20230706011400.2949242-3-surenb@google.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6EA62C001B0 for <linux-mm@archiver.kernel.org>; Thu, 6 Jul 2023 01:14:12 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 066FA8D0005; Wed, 5 Jul 2023 21:14:12 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id F31FB8D0001; Wed, 5 Jul 2023 21:14:11 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D855E8D0005; Wed, 5 Jul 2023 21:14:11 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id C43EF8D0001 for <linux-mm@kvack.org>; Wed, 5 Jul 2023 21:14:11 -0400 (EDT) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 8DB781A04BF for <linux-mm@kvack.org>; Thu, 6 Jul 2023 01:14:11 +0000 (UTC) X-FDA: 80979415902.03.C0FE0F3 Received: from mail-yw1-f201.google.com (mail-yw1-f201.google.com [209.85.128.201]) by imf05.hostedemail.com (Postfix) with ESMTP id CDADB100013 for <linux-mm@kvack.org>; Thu, 6 Jul 2023 01:14:09 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=google.com header.s=20221208 header.b=Yn5aRyUW; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf05.hostedemail.com: domain of 3YBWmZAYKCE89B8v4sx55x2v.t532z4BE-331Crt1.58x@flex--surenb.bounces.google.com designates 209.85.128.201 as permitted sender) smtp.mailfrom=3YBWmZAYKCE89B8v4sx55x2v.t532z4BE-331Crt1.58x@flex--surenb.bounces.google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1688606049; a=rsa-sha256; cv=none; b=aWpok8AiVIJIzPDEYxH7rYmJumNdI1QvZr9iZL4qXq/xsLbm2nBixDPFtGAIfnlQIsuGOg VWY6n3swfC44H2MudaADXfgpi/7DNQG9uOxmSWIYDdi6p+COXEyXorXXHK9aylZTInEHVQ kAvJjOIxios3ZcFDzAYc+oyX9eHxnLM= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=pass header.d=google.com header.s=20221208 header.b=Yn5aRyUW; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf05.hostedemail.com: domain of 3YBWmZAYKCE89B8v4sx55x2v.t532z4BE-331Crt1.58x@flex--surenb.bounces.google.com designates 209.85.128.201 as permitted sender) smtp.mailfrom=3YBWmZAYKCE89B8v4sx55x2v.t532z4BE-331Crt1.58x@flex--surenb.bounces.google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1688606049; h=from:from:sender: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: in-reply-to:in-reply-to:references:references:dkim-signature; bh=BMMaNFIuSTODACKQNg6XDNNsjL1Pfx6pMDgwoYH4Ut0=; b=lm9JL8GKpChsGBrXj4wTNPzpHriHcvB4ZMkEJk+saAnvG5iZMsDY7XxUQwEYgqOvML+OUT rqvr7zpexK7V7UixCYYJ0UfWkBnpjanDmK1ziljVjbBi1b1v9L6//sv/ZdtJBPWGrRa5Is ISsZJjmcQX1AWxQWeOKzoZ6Q/Q4D7G0= Received: by mail-yw1-f201.google.com with SMTP id 00721157ae682-569e7aec37bso2276657b3.2 for <linux-mm@kvack.org>; Wed, 05 Jul 2023 18:14:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1688606049; x=1691198049; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=BMMaNFIuSTODACKQNg6XDNNsjL1Pfx6pMDgwoYH4Ut0=; b=Yn5aRyUWACvrhkw4W9c/RrQ1vZVkQ3aETLIOHYDXUyaoQSnxwBiG3WfF5wRFwIFEvw weJQdiFsuoHFg7+9Knuii4aazDz880sQWUsYnqjniz/RcD+lsmIUy0RtMfI3EZOdknvG lfux25ysmzhfKTDzbuUftCdRHhS3/CZtHh7uU502n9ZsPETUnBcunocCrRCWmY4NthQM NYWKscTrHCCVV2l9q6DYpMlOWBsc7125yZXvQvDPOkzqa2jEVxhh++SxzCEucUU7Sj9Y PqugueozRZVh1tS8qAnhcSciZ/GC8dmxTaNU5U27m8aw8+rjObbB60wx6Je9TqxLz6zX mKCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688606049; x=1691198049; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=BMMaNFIuSTODACKQNg6XDNNsjL1Pfx6pMDgwoYH4Ut0=; b=YOVNuJDFfwwDafyMmYo7080DtnAwqVpWEWt2FvKkqsMAuUgK6eEgaIcI0B6GuB5W/I ZNOR6IKkJu2tgUyJ4gsuEsyqBp2u/k0z4ebpg6FWkxDUQyam8AseIgwU+o0Sr/1Mxh85 dP13Sj7h1udk9H1bSMBmf09cWCpG8eQPuRIngLvLDYBp9NjEt4Py4CtXHIwHMd0YHNcP VIWcwVQMIK5bs34avxbZFhJuMfTjlbVZ892hAm0ihUFh5fsqoocZ6rLYydxnNqbeqmEP UQSDD/Ms313CkPGJ580UIPqQxhVT3S8cmilxzfPQmyZwzMohENwt2lOfxGQ0vb1D+NJD KViQ== X-Gm-Message-State: ABy/qLZbJL73EfaX9T2t3ZqYJSfW2yxoXB9mms3WtaVxTTfjw7XQcXue IigKi2LCWtuaPyVZuehjSvbBr3djls8= X-Google-Smtp-Source: APBJJlHam+3Kw1wwiprnqdWZZWRe4i9qQ9FP0XUelvhsWWC81rNfZCgy8OD9hwPRpPw8+Oh35ka/px6hTPY= X-Received: from surenb-desktop.mtv.corp.google.com ([2620:15c:211:201:946c:be30:90d9:9093]) (user=surenb job=sendgmr) by 2002:a25:c6:0:b0:c4d:c7cb:5a4e with SMTP id 189-20020a2500c6000000b00c4dc7cb5a4emr2822yba.3.1688606048773; Wed, 05 Jul 2023 18:14:08 -0700 (PDT) Date: Wed, 5 Jul 2023 18:14:00 -0700 In-Reply-To: <20230706011400.2949242-1-surenb@google.com> Mime-Version: 1.0 References: <20230706011400.2949242-1-surenb@google.com> X-Mailer: git-send-email 2.41.0.255.g8b1d071c50-goog Message-ID: <20230706011400.2949242-3-surenb@google.com> Subject: [PATCH v4 2/2] mm: disable CONFIG_PER_VMA_LOCK until its fixed From: Suren Baghdasaryan <surenb@google.com> To: akpm@linux-foundation.org Cc: 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, david@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, Suren Baghdasaryan <surenb@google.com> Content-Type: text/plain; charset="UTF-8" X-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: CDADB100013 X-Stat-Signature: bbox4z3qyszscqnouweq7c6gi91j477u X-HE-Tag: 1688606049-733730 X-HE-Meta: U2FsdGVkX19YfYzUbi2/k85G/DoBsV7Fp8igrLQL+3GCoY0EwXFhy5eMhv6aNo2Bz/HoWM4YwnpDEL6S4jMNuCSk0Ok7mFZfT0ceD/x8qfS9MBJELAlZK4Enk46PsrCVPzM4TNMu6z+kdppfbmVXPYDmzu2vRawcV2V8sJT1/vHlaGcJBjqhrU7UvGnKvmgrat/JSCDRLCc7SC8p/qUJZCkrbHr5TAxtat6thYtcN9fzE+goMpS61AYaqdTUBdeB8EA+9DXzY7z8d/qHCjZlm6OcTuKZd1DVtxXPQZWXAMzT9C1u/u6YqIP0PymPai8FYlfK1bagUjpqDkkLm+fjMde3XooAL8QnFNMy7kVECzDkrvFRDwzzS2iPzkdfWJGzNIFJu0NDugTpeOa0cyns03yQ+CQ1WfkdsUxo8+MqZwCUmR1WHETAgQ9JNyK9mGgfumckrEc8oFkoh/8G8orge6BS+xe/BWCdMjW22GDGx7YlYAIzrbUqO/i5fh7r1wDVG4cibJu36FGskofK4sRP3TfU55BXnuFh8h3Eij+njB/OF1mWU+q2REKHrYbP+vVccYM1feZveA7687IL5Nft054OrW7ZKBEGSuA344YiJVVA/sKH4/6KXZx0KK1i6NiE+mxhWUe+flmIt1VhVXsLhWYslbcuAWL7kMfp2PxnY9CGKKh0CXs5nje+GcqYDbmK61hRlUYecniTaNPNlSIftC3l6F1CfNIczDFNTjlOsu2TL0jKn5+IhlmBhJyP/LYLJyYEp7OBVwYqBsTMYRMxGLmx5Qc2AhjcQVx+6Bo6KJHhuHQWETr1uI1AMVTEOJ4gIfJG+T36XvtxoA7QZvfsmV2Z5HpHHQO99HSiAM/x7wQNiHVl9dIjVZYp9eDFwfDI2yRVarHFgf2hQAcGEqgodEx1B32mgKZLPrh3nasJU6+jl90IcWGPJO+L8WfWFBzGuziZweeaes1eZnGHozS gdsGcpWd 74vS+6N0tGT3MS+jMOkM1hNNs7VQNhX9p2qKkTz+aZ/HR8o/1uXj7LY77c+Z/jBUwpzmCGVc2a1w6g+VXVwqjp4tFD+ke3Vg9fALsG9Xc4HVAPQohoQ8Jmx8kBlQBBojMtiyqQn9iuoVq8Cmw7e9ULBlB45VDhMy6Oq79s10Xs7fWxnXTBAxD6VgH+YmaZ1xZLzG6LBxJ5d4PWgmWZfDNeTax61sFuUQBip66X3XHmwIqis+6bqjHIKVXtxJPkjth7ic32Jxq+iWO0L69Tp0453johD81zcmRZzVzlmREoiFUzjPGD2PCYbixvZBzRlUtp3KiCvKdKQTRV0ujgvFomllTNXMvlvUPXbAVLgOX0cDBI4R5IfppuinZJwHg33xGYGTdb2k6J6h748gUdlFfN5m6LyBNUgC54cdQJFRSTKuSei9FiVhfWmSenSHXXKASxXv+nJ9ZRS38sKu3h7QKqnGUxqhCc5o/gTnlen43O4qqMCXYz3x6syaVX0oNYvfsslzJziSth+mrb2lQP0IlBVNH7EK0RK58jihaH3Dj6VSdJF5mYID5Nd0k/LSpiL3STgMcWzV9e6NWqXMcK4Hr+I4KMwAa14vBSvqqU65kqCRovb3B00LPBPmNuJ9fWsGfvuHIiIDWX861UMxW8wM5b7QSsvkK/Q4fb4hJ/tI6/547Eso8TlVzHwdCzXBInfxe/Akq+gsZ6MZbnQmY1OorsKG3kdIU/7+n2xW3n9V5A9YKhXzeX61MGJoWoAzO9TsNuQjcGBybLHnjqqA9Q1x3glcg7UYlGeBlSvt3KJ2BPcfgRufzqbLSoRy9KQ== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
Avoid memory corruption caused by per-VMA locks
|
expand
|
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.
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 until the fix is confirmed. 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 <jirislaby@kernel.org> Closes: https://lore.kernel.org/all/dbdef34c-3a07-5951-e1ae-e9c6e3cdf51b@kernel.org/ Reported-by: Jacob Young <jacobly.alt@gmail.com> 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 <surenb@google.com> --- mm/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)