Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp346542rdb; Thu, 25 Jan 2024 18:19:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IEzWhz0im9Wv+4Rh3aJ5ViuwQQVFqxEE/YgkMEmqqqvHS0qGEXn8RN6gaEyBWQpwT6Wjs1k X-Received: by 2002:a05:6214:d48:b0:685:60ac:7d69 with SMTP id 8-20020a0562140d4800b0068560ac7d69mr775934qvr.117.1706235583343; Thu, 25 Jan 2024 18:19:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706235583; cv=pass; d=google.com; s=arc-20160816; b=igUhivTkO75ByWq0tOK9KR04bxzpdorB5kDbprP/bgSc0h0BOORpcmjjdV+wM/eu90 LIoobW7Uieo0TM/q5UtL5RsDyibM29CnrYlLXwsDT0ivHhQCX0tlS0+/DFdTlTshkQPE 7OyK96Dpj5NuS/nuLkCB3UEsP+E9PjPIwWywETJh3DQUw2j3198yBTb0ART7AuOUmkrl DHbZ6skBGJ7vYUncEjTeaXs8AhHT8kE6DgenJh0DZILP8fIiFP36Qi7yu99W07OeycT2 /P49TKCY7b+XIA31CiJFjKF8xCR5zyy0GwrItDxQcsXSTEbZ1AabwQ/Xs7HhhoFIrOHG y1iw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=ItFgj4jgK5sZKOgTM9vrgG8H+a4jRjcTY7CINpA2Wvw=; fh=PrKU1NMblRCEmaoZMXXho5a7s3yMm0/sUV5gD7llyEM=; b=zTLw5t3C+lDdXarl5cB0RHxcxvvs9Vky9flOARBPYj2L2F24FiQTnaBnUQGi7gXN2c 6//Xt9Kri5W+AbLMw/8WY6mnvrztTPznllFieMPzdtgwd+fkb4e4aOh7CMxJyDQezzjt IyJnmPOfrHt26jZGZpV0K2zA47wyBqSMoHnxUKkoFqo+s+/z7wE2V8RaFLWzAHT2X4la j2aWtnGN1zaAbqqC+yI5Tc+Xvus6Al+89ljS0cycFunBeRRcKCi9QppplLFeRd84A0iE 6+iaVWAJ81z1tDW9GoRye84VMlHSUaY4VgQyMLnWsjHGu87i0BGLiukaqeiQYOEAlr3C sRoA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=pVlvBXA8; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-39535-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39535-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id m12-20020a0562141bcc00b006819271fb81si296104qvc.595.2024.01.25.18.19.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 18:19:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-39535-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=pVlvBXA8; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-39535-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39535-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 1EFD41C246EC for ; Fri, 26 Jan 2024 02:19:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E6E3A8BF3; Fri, 26 Jan 2024 02:19:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="pVlvBXA8" Received: from mail-yw1-f170.google.com (mail-yw1-f170.google.com [209.85.128.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ADC297493 for ; Fri, 26 Jan 2024 02:19:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706235576; cv=none; b=KJVF1s9/1pQk9A73Pvt6bxXpkJEPsALdb47OUiR/VK8vHZI6YNFvSSH8QETAASLaTeqFKj4VgHpsJUCGbJcxImVic3U4NsjFwApA9lK1qmU7MRoiJUy5gSJp6gdXrtMfpw7BezW2/cqpjstpiZqknlgolp7UsxIwtPgzn6W8+SM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706235576; c=relaxed/simple; bh=ItFgj4jgK5sZKOgTM9vrgG8H+a4jRjcTY7CINpA2Wvw=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=kqE4JOIbqc47SKzWL9M09hlf1Zt2+Mmj+qWA62f2lY3y7wgC47PamtNcHzc5gVbwy3yx9N/wIjSuxe8OyKo6x9g6JrQNBAAbtCU4JEM2SADI1f0P/ctOJz2wHkEXSVnHUbgPnf9ROZhsVJUUbf5tnxMCJdy/xT0CrQ7QCLzowH0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=pVlvBXA8; arc=none smtp.client-ip=209.85.128.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-yw1-f170.google.com with SMTP id 00721157ae682-602b7cef983so12618817b3.3 for ; Thu, 25 Jan 2024 18:19:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1706235573; x=1706840373; darn=vger.kernel.org; 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=ItFgj4jgK5sZKOgTM9vrgG8H+a4jRjcTY7CINpA2Wvw=; b=pVlvBXA8D2UUX3rloFCXN8w4hmKxm0PuVKhqsOeyjNn8phFc/loAgzv9aHVEBtfQdn OZUFAEBvTyT9zyVWfOR8AVZztMyfKs8xkV5ZedQUiBTXCxc7X6vxLGlwjMyef3KgMT6g X4RRtovQ2YASTfTdJot8avTIifOLSNSwN+WyzfrzjqaDjdfp8dBQtsIB+0rI9/RTKKvk AUf+zWrcbT7cZVs+kjjxSUWFeY6b9RLtkF91GH6vxsdQ6wNKx8wnFQt8z56MglK4tElT NIOoM+rvASSeQMDV3fQrXKRoA2ObdxHq7R1ofyR4JQAdHw7u6D4aeN0dYyQNmntFvMEQ FFsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706235573; x=1706840373; 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=ItFgj4jgK5sZKOgTM9vrgG8H+a4jRjcTY7CINpA2Wvw=; b=cnsWVi8FR7go9r7SvtaQUan5QEm/He+XZaDQbjJzIXYIaXj4W25y2RYjjmyblMZ4sh cty2nRZBXTO8Ttv2nsFcD9SRpZIqgX4PDjY2RayLzlNdvGqqGqqe8y7OJciSXJ8FTge+ 9sMxVEwAAP9oJMROSqz/5QvEPmNviyE6KnpZR14BpFvm7GvDBWIEYruIch06nXZp6m4P D3kZ3ZYp/5oaPXXIO++P5oJVc8mdV7jNFcX8ohA4phr5/+b6ThlPoF4GNrKjriHNTOTw v0g8UfzOwdQgYhYjK4aXgUWd4WZfn+dDgd+EQYl52cmrY1saurivc6A7SM2uoSnllDB8 2OKA== X-Gm-Message-State: AOJu0Yzp6qiANw1ip9/axcCFHNL64M/P8nZdMwKVlWZHLz/YUkvOUfiH b3Dp4CSpdLD34xaGriMc0CXluo6iu6JUuFoYUee9k+NKx2ZoQ16jfXIb24PfPdd8qfOsPhqX90u RiW4myD6X+4b8Ikq5HjFJBeom/YL33mBPAqp3 X-Received: by 2002:a81:a188:0:b0:5e8:995f:6a0f with SMTP id y130-20020a81a188000000b005e8995f6a0fmr805824ywg.13.1706235573358; Thu, 25 Jan 2024 18:19:33 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240123064305.2829244-1-surenb@google.com> <20240125180424.121455beae4d56799a0bac28@linux-foundation.org> In-Reply-To: <20240125180424.121455beae4d56799a0bac28@linux-foundation.org> From: Suren Baghdasaryan Date: Thu, 25 Jan 2024 18:19:19 -0800 Message-ID: Subject: Re: [PATCH 1/1] arch/arm/mm: fix major fault accounting when retrying under per-VMA lock To: Andrew Morton Cc: willy@infradead.org, will@kernel.org, catalin.marinas@arm.com, palmer@dabbelt.com, mpe@ellerman.id.au, christophe.leroy@csgroup.eu, agordeev@linux.ibm.com, gerald.schaefer@linux.ibm.com, dave.hansen@linux.intel.com, luto@kernel.org, peterz@infradead.org, x86@kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, Russell King Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Jan 25, 2024 at 6:04=E2=80=AFPM Andrew Morton wrote: > > On Mon, 22 Jan 2024 22:43:05 -0800 Suren Baghdasaryan = wrote: > > > The change [1] missed ARM architecture when fixing major fault accounti= ng > > for page fault retry under per-VMA lock. Add missing code to fix ARM > > architecture fault accounting. > > > > [1] 46e714c729c8 ("arch/mm/fault: fix major fault accounting when retry= ing under per-VMA lock") > > > > Fixes: 12214eba1992 ("mm: handle read faults under the VMA lock") > > What are the userspace-visible runtime effects of this change? The user-visible effects is that it restores correct major fault accounting that was broken after [2] was merged in 6.7 kernel. The more detailed description is in [3] and this patch simply adds the same fix to ARM architecture which I missed in [3]. I can re-send the patch with the full description from [3] if needed. > > Is a cc:stable backport desirable? Yes, I guess since [2] was merged in 6.7, cc-ing stable would be desirable. Please let me know if you want me to re-send the patch with full description and CC'ing stable. [2] https://lore.kernel.org/all/20231006195318.4087158-6-willy@infradead.or= g/ [3] https://lore.kernel.org/all/20231226214610.109282-1-surenb@google.com/ > > > Reported-by: Russell King (Oracle) > > Signed-off-by: Suren Baghdasaryan