From patchwork Wed Jul 5 17:12:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suren Baghdasaryan X-Patchwork-Id: 13302421 Return-Path: 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 418A1EB64DA for ; Wed, 5 Jul 2023 17:12:25 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C8E5F8D0005; Wed, 5 Jul 2023 13:12:24 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C406C8D0001; Wed, 5 Jul 2023 13:12:24 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id ADEB68D0005; Wed, 5 Jul 2023 13:12:24 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 9CB808D0001 for ; Wed, 5 Jul 2023 13:12:24 -0400 (EDT) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 55A30A033A for ; Wed, 5 Jul 2023 17:12:24 +0000 (UTC) X-FDA: 80978201808.04.86D11D7 Received: from mail-yb1-f201.google.com (mail-yb1-f201.google.com [209.85.219.201]) by imf08.hostedemail.com (Postfix) with ESMTP id 667E0160010 for ; Wed, 5 Jul 2023 17:12:22 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=google.com header.s=20221208 header.b=OwuwGFef; spf=pass (imf08.hostedemail.com: domain of 3daSlZAYKCIAwyvirfksskpi.gsqpmry1-qqozego.svk@flex--surenb.bounces.google.com designates 209.85.219.201 as permitted sender) smtp.mailfrom=3daSlZAYKCIAwyvirfksskpi.gsqpmry1-qqozego.svk@flex--surenb.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1688577142; a=rsa-sha256; cv=none; b=xjFaJX0SeLSec+3vpaVanuIQlz+3HtzGRSFO1afpEaUn1Ne8ns1w7TuBlKXSx/ovzdLtKG wjawQ3f/4JgxKe7mrVb0O8I61c888zWNZigddh7k0JM6NgTQiis29mG5TpMz0PTuWvRrPN CsCDIE5s6mzIMF7epBDrcaUfkl6dq/A= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=pass header.d=google.com header.s=20221208 header.b=OwuwGFef; spf=pass (imf08.hostedemail.com: domain of 3daSlZAYKCIAwyvirfksskpi.gsqpmry1-qqozego.svk@flex--surenb.bounces.google.com designates 209.85.219.201 as permitted sender) smtp.mailfrom=3daSlZAYKCIAwyvirfksskpi.gsqpmry1-qqozego.svk@flex--surenb.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1688577142; 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=zhr6pJDsNrLzcgsJWM8+NlUbxGJ2RjB7mS40bDz+nag=; b=ktnVUzT6vxoNNiWh8omCZfn1Qe3GG5rGXg2f1yrrCaPn3sHPFuVcjh6A//HomUzEUHeaav HbvaGjeKiSouvy/qboxkixCpsyWa/ZO5IKddderNYOF9omo1keGo865ygZHjBO/lwZBYHW 5jHYtCLZw+sucCJjvUgfu6ggNNmPUC4= Received: by mail-yb1-f201.google.com with SMTP id 3f1490d57ef6-c3d29d2fdffso6020664276.2 for ; Wed, 05 Jul 2023 10:12:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1688577141; x=1691169141; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=zhr6pJDsNrLzcgsJWM8+NlUbxGJ2RjB7mS40bDz+nag=; b=OwuwGFefbKC9U1hFfGKq7XVLlSbfvn3Wc1U1DPpWfsB5S/+9zaJkfbxaaSgx2SY8+6 M9FNfOjC5a4sfR2baxeMeSlwAC3ytN/Gkc7JLJsgx4C5IeFx8LmIhVrkLPRt/S5ZJyNA 28uBx/1a3m2BtIykVlVstHy3CewRyQH0tBQzJAsD0iBzvDhansX6fe8lVtV71Wkq1hhF d7ss16D85/5kqrIrY6VkEZavYwQ2wMGnqwZirQPO+RWDDcC6a41CuVjzqBZ4QT4LZJnh ZL1TiC0/TmKgXTKOLlA7HYRxqjCZysCGhr47PMpLNnmBb4Y/CCZ5wC9I/3zONjhbmCvK N4EQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688577141; x=1691169141; 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=zhr6pJDsNrLzcgsJWM8+NlUbxGJ2RjB7mS40bDz+nag=; b=JC7iU69JdnNfFI/LKyOvT8WWSq6dUR9oMvmXk3Dsw3gg70Z3gXtA0ujvp4GGMHPch8 9DGmBTzzs5vzqBR1KY0dYx5DKXmZP2rofGWRfUq3m8Cla9r0wCTvcaTV+/KA3k6h0eTr kMyzcvtEytwzPHLhnztPJqmvJDW+8/cXSM0Fpv81Ykmlf6X0hc6tliP/WprDzq9d9QDl vzE6DUDniv5zmPFuFLcOrSCOpqGsfXDQzEROTaIjk0Spt4W+8ltiD/5kyySkqUcHwETM j4l/sUvuAj74gAxoHcsHV63oBPCl60YeIl/ZBEcycJPPZR0+dPZwRfpSuUx9JAXfBtjP n8ZA== X-Gm-Message-State: ABy/qLbLDuK6/22ak+C1IADQRvPaOIjZfH9l6k9KJcSVv/yz2XedCpVY Rh6GV97r1f1gWInwkReAlrPlDCmRBoo= X-Google-Smtp-Source: APBJJlGpmVB1m9CXIOzFLtUmhP6OfOK5P1LeMgXKt+RTRDlo/ehfVzIeZ4w0sSLiOprYfZqdFetD2HIkiuA= X-Received: from surenb-desktop.mtv.corp.google.com ([2620:15c:211:201:946c:be30:90d9:9093]) (user=surenb job=sendgmr) by 2002:a05:6902:11:b0:c4c:b107:65f9 with SMTP id l17-20020a056902001100b00c4cb10765f9mr62580ybh.10.1688577141397; Wed, 05 Jul 2023 10:12:21 -0700 (PDT) Date: Wed, 5 Jul 2023 10:12:12 -0700 In-Reply-To: <20230705171213.2843068-1-surenb@google.com> Mime-Version: 1.0 References: <20230705171213.2843068-1-surenb@google.com> X-Mailer: git-send-email 2.41.0.255.g8b1d071c50-goog Message-ID: <20230705171213.2843068-3-surenb@google.com> Subject: [PATCH v3 2/2] mm: disable CONFIG_PER_VMA_LOCK until its fixed From: Suren Baghdasaryan 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 X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 667E0160010 X-Stat-Signature: 5u9qn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kRisrCRL6WsNg+0WFVAh3p30fHM+EqNsa3iXZijcewTGTg8Qn92+grd9gaSmlPLm1Ut0o0OhqlX0ynrFKg6RKAEK9qJ32Wp6yxUH77GsypLUlMA8S0PBPSFP2ZbFd8pZoof6M3CBxghglL9TGXQQLnGNBfFTb1x9zq36cWeLgBg2AbhmJeBKjUDxWZqmt6yOVD4JbvemTLEaFjJPlAT3V2Z/nAoPWyntKoJ4KLCnmgudp7uyogj8BPHBHDsJP/yb1iyJBX0ninbeYMLbDbkMN5b+D5YQBDLRVJul01qiUn4B25wJAag5+UsdnZN6c6gdppVHAro/te6eXMXER9kTDRVp7P6ZpymJOZPrY9XtU+MEmquCRDQ+dwM1iFo0Nk6kOKLqdDK786G7+hbeiCmtQCFeDNK7oTCYQeN7xi2DuFXyI6wQRLXsKpSWXnyGVB5FgaQ/qNW4A2XepjnKiBfTmmVZyVwDiVjPyGW+wQVdoaCWax4IbyTHknPXEcwtytbvl5V6RMxJpaHG6OyuvEsuouvtdXeAstSue+VQpNNQlo8KPmfguEo1Wk7aZ2GqEjBjLmqejkvgr6mNwgkaSYVwYewIdZiJKhZiiBnsqDez6hfZK2L6uB0o+NEh6QKBPt4JaDW+lbQvOBznNdQt66OVBk64UGQskzF7hUOI2Vf1ZjFzTVqcJSDToTgoQ0EVcoW7kUE18dxralzN1q+p1sv50Antlso/d127nyXnIgO2emVh1HNPcZPhHtDAU7y4MGFKp9xgHliofmGcrS7IBJj5KjN8weeg== 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: 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.