Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2149740rwd; Fri, 2 Jun 2023 05:43:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4ZNYaOnn1QC5+7++wX40qBaho8zhjUapMOUkI0qU/Rxn+no5OjG3dtz0oRoTSsz9gTh0fm X-Received: by 2002:a05:6a20:5495:b0:114:28dc:2d94 with SMTP id i21-20020a056a20549500b0011428dc2d94mr245329pzk.25.1685709793116; Fri, 02 Jun 2023 05:43:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685709793; cv=none; d=google.com; s=arc-20160816; b=uzBQOH2RNFP66z627XYpjraiX00rN3tSJZphmx7rf8eEtKYZi4NEOJD1lO2C/z4/JT p0xT2rnBEDoPCL+KaPU3t/Wn9400kfGyTHCA1KDi4fxl4dXSKN0x6ZJtEfZiEZ6ETO1T ccnErAzdxJFZbmkTt9NaT1851u4UojSfT+JnKsPHejwRppCfp1kPoNmRuqeQVZeoI7Qx 5OYa83HFX5ihK3PhEm89eFs+rQjxcBfdkr2ESeggpp6d7svVT9IKF1z0ec1pDhNQt6BQ 6skSY+LfD03j3SqExB95ZeOFXtuYqfBIvextfJdEJZYckKlVtEu1Kv0Ql7AeRl4brg1k nqqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=si6keuYro/RhiiDPCW8HWlO1rdkk1qoxYW7RW4L6zvY=; b=o3+02HMBDiXw69SnS0h3aQinNw96m3ZgO2Cs2jqYX3aaMGbNr3gDJV2PzgrZwDEl2b AM2uHER2PBUdStJniXqTr8qdE3c3hF3y11arH/jCpl0b9/MQkandkd//JYeYJzEr7fdp 7mvvSGfJx7hl0Gk1+1vnVbbmCiAnsEtrgNty42+caaTLa2j67oOnkL5+ZPwru21a3l1r cn05Op9GScD4FHDVzo4j+ZYGdOBvqa/ubEYNC/aURKf5g2uK4ydLff8R/T5z154B4hcT 2WxzfrHktD8JdGpcyWXeLrjF1DnBI3kLOHhQ8D6aD5JIINMrtI4NbF96vrE8oF4Ayapt xpHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=q7gwH3D6; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x10-20020a63b20a000000b00502f4fd0c16si964470pge.653.2023.06.02.05.42.59; Fri, 02 Jun 2023 05:43:13 -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=@kernel.org header.s=k20201202 header.b=q7gwH3D6; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234965AbjFBMd3 (ORCPT + 99 others); Fri, 2 Jun 2023 08:33:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234736AbjFBMd1 (ORCPT ); Fri, 2 Jun 2023 08:33:27 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6EEA1AD for ; Fri, 2 Jun 2023 05:33:25 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 46F5D64FE5 for ; Fri, 2 Jun 2023 12:33:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 42382C433A1; Fri, 2 Jun 2023 12:33:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685709204; bh=/O2xZ09FDSgTEYVe9qZzO2dIrEE7abCB2muTMmEKShY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=q7gwH3D6WMkQyeyMQynO5lxELnAv+Tilg3Gmagwz3v6l2ga8IMxB8JoPg0NhjW0UY x4gtWm6XB72YjpjmHFUKQwXxgJJBaBSxw8ZiDDZ69SLrBQlLpQsNNtuI0lDQdfGorG S4yMhJ1MfABNknueJMvwOoitMFfLfRMDgQb6P1QNbquCPHj1hcXzsFcg4AcA+FCzt5 zFElgGB7xjgZpsEpNUNGzShpVdlDF5BMYdLp3BrSs6aNE0ppKGrFu1MYEnKiejLp6a YAcpfK9X2ih05VBPeTQzXwGalYiS6G0Tl0XDNRujT4YAjdvyPo3zhSP0oslq64P9Uu TdIWwnSMnOnAw== From: Will Deacon To: Catalin Marinas , Jisheng Zhang Cc: kernel-team@android.com, Will Deacon , Suren Baghdasaryan , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] arm64: mm: pass original fault address to handle_mm_fault() in PER_VMA_LOCK block Date: Fri, 2 Jun 2023 13:33:17 +0100 Message-Id: <168570736489.522333.367811133664601205.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230524131305.2808-1-jszhang@kernel.org> References: <20230524131305.2808-1-jszhang@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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, 24 May 2023 21:13:05 +0800, Jisheng Zhang wrote: > When reading the arm64's PER_VMA_LOCK support code, I found a bit > difference between arm64 and other arch when calling handle_mm_fault() > during VMA lock-based page fault handling: the fault address is masked > before passing to handle_mm_fault(). This is also different from the > usage in mmap_lock-based handling. I think we need to pass the > original fault address to handle_mm_fault() as we did in > commit 84c5e23edecd ("arm64: mm: Pass original fault address to > handle_mm_fault()"). > > [...] Applied to arm64 (for-next/fixes), thanks! [1/1] arm64: mm: pass original fault address to handle_mm_fault() in PER_VMA_LOCK block https://git.kernel.org/arm64/c/0e2aba694866 Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev