Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp10134250rwr; Fri, 12 May 2023 04:26:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4ZDJhN6YyYw/hmZl5cf41sHeQCaIsDACJuGsXdeThZvXzV+iht/ED72zJ711Nc2usyKXJ6 X-Received: by 2002:a05:6a00:218a:b0:637:aea0:b23d with SMTP id h10-20020a056a00218a00b00637aea0b23dmr34042933pfi.10.1683890802562; Fri, 12 May 2023 04:26:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683890802; cv=none; d=google.com; s=arc-20160816; b=ITOe/EXYK/0TwJ0qP7bE9S1OUTnrD5c+lR6YcUL40A5S8IIDFAcI4SJ8hfHxB+zUsV R9nnsiLYvUf0tFaP1smoeU7q4w8hSAI8aj3UOl9sCr+R6ONG2iYAEQwP/u0QCRYoaRtW a1TOLANOCcayHG9JJ0iMtApADzM3xdrfMM+cX8/78V089wycSfkpErGK3D+l2aRnvHp0 ESpdqC88rZFqkKSpCz07Ooovnri4NWyBOI8EsmxprM/HCpaQ1JdQUfWTboDiLA2pFnU0 W9EzTvBY8/RO4LjB/YqKPGyeJeoWw6GUCatT4s6Tl6MSbV++nai02dw2O5aVCqEApFlk CwEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=Fhs6rH6nyL/hKcMEliIiVsJU4/txVxmEquGUm1qcUvo=; b=Ahz+Zw5sZtyYSFjbfrtDHOITP4k7RnHB90pgnz/Z7x++lhN/7E2aedzexXM8/8RKAF HfbvibeUXws/gb9S+VfVR4/nSRE9U6grBw+6QCGyMl9QQhMQWh1O853Ka0rvMSt2lY5M w2rfiNoCYATo0pQ5yF6zk4LIxBtTyxgyjczv72scqp9wyxEKa75c0BJNVhmi2R4X9kds EaUfUoB7ssvjTUqnbOE0w/qP/nLKtf4RmIdNjupRfcoqJzSvDQfx/zZN/s4hf+kWxR2u JjYpe7efKzhhOcnKiLSJS3baN3vgfK7k6lC4SCzYJTQRoKGgPhtPvJkvP1NEBLtKP4TL XdFg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p6-20020a622906000000b006484c433051si6331359pfp.115.2023.05.12.04.26.28; Fri, 12 May 2023 04:26:42 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240981AbjELLCN (ORCPT + 99 others); Fri, 12 May 2023 07:02:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240164AbjELLCC (ORCPT ); Fri, 12 May 2023 07:02:02 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 15646106CF for ; Fri, 12 May 2023 04:02:01 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 43FCFFEC; Fri, 12 May 2023 04:02:45 -0700 (PDT) Received: from [10.57.73.22] (unknown [10.57.73.22]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 4B01A3F67D; Fri, 12 May 2023 04:01:59 -0700 (PDT) Message-ID: <9d89ba3d-775f-426f-0956-0d002193bd4d@arm.com> Date: Fri, 12 May 2023 12:01:57 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [RESEND PATCH v1 1/5] mm: vmalloc must set pte via arch code To: Zi Yan Cc: Andrew Morton , "Matthew Wilcox (Oracle)" , "Kirill A. Shutemov" , SeongJae Park , linux-kernel@vger.kernel.org, linux-mm@kvack.org, damon@lists.linux.dev References: <20230511132113.80196-1-ryan.roberts@arm.com> <20230511132113.80196-2-ryan.roberts@arm.com> From: Ryan Roberts In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.1 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 11/05/2023 16:00, Zi Yan wrote: > On 11 May 2023, at 9:21, Ryan Roberts wrote: > >> It is bad practice to directly set pte entries within a pte table. >> Instead all modifications must go through arch-provided helpers such as >> set_pte_at() to give the arch code visibility and allow it to validate >> (and potentially modify) the operation. >> >> Fixes: 3e9a9e256b1e ("mm: add a vmap_pfn function") >> Signed-off-by: Ryan Roberts >> --- >> mm/vmalloc.c | 5 ++++- >> 1 file changed, 4 insertions(+), 1 deletion(-) >> > LGTM. Reviewed-by: Zi Yan Thanks for the reviews!