Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp963854rwi; Wed, 19 Oct 2022 05:15:14 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4tL5A8gKannT0wdt13ECqAmQvVhX/mxcKBcM+yy3R15U/hO3TYm9PIi0JadzlMPXMHndc7 X-Received: by 2002:a05:6402:1856:b0:458:db1e:20ec with SMTP id v22-20020a056402185600b00458db1e20ecmr7258864edy.14.1666181714723; Wed, 19 Oct 2022 05:15:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666181714; cv=none; d=google.com; s=arc-20160816; b=TI6GLuvU1KfJd+VfuZbgAFakyL14icXrIKAy7xDShH6Wb7PpdPCYeoi55JjoD2sAze lfnEcnTJnPUpMP5ZegMyMRoyC9vKyzlgHRnApQZCpFVy8hIqb8JyRAoLZ2iTx6dXIEZd v9n0NRgornfXUO66hflK1r5/96ONsYl7klfDq2nhI5XqC0hldT+Fo8NdhsoDuJOn/x9+ Ys0lcymAHMABbC+2kBDUqBTTjY1dX5tLzZnZUMEIROUm585dZRvGMIGjPW/uELv+sp/3 Y4TlJ0eZ6X7IDuIdyC7JN7VxUpnKnUYdTz038co9naEUb935AJWpSqw4OWOg0CAJjRYU +gow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=qV9lZ2aH+8Gf4ZXXwoIECQyW0k3j1ZOHMSQvMpw3uCo=; b=ftQZYBnTyPVG5cvy99Ddt6k+eahTcGDciZFEiCl73Pz16CXBXz+HpTqtDNIdUnzEzw ij+uohs4nTwYsUK3Aq/fys10ERPmDCIHFUUyRdgwSBp/++i6Un5AY4ZyJPJOPQshdgVy T9OsSS7dqK2J3Fl3Ugw/X+dTbFGotMz43tI12b1dwzssfCMbs7gOQpDmnhY54qwXihBJ urV86FZ2A40LFLRE7oXzOzKxlDzjCteK1AC8xkb1HpXd1SY1jCVq/MWzK7EM/10uU5HX Ux5PFGuIpRwyphvrQmWbDI+2rzjwc2SNh40Cn4P/Pwbz8CUrRLFo6UwJ35lXlYkl625b iLjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=nZbj7uUR; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=duAtabXo; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jg16-20020a170907971000b0073dced7204bsi13725635ejc.767.2022.10.19.05.14.46; Wed, 19 Oct 2022 05:15:14 -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=@arndb.de header.s=fm2 header.b=nZbj7uUR; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=duAtabXo; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230495AbiJSL3t (ORCPT + 99 others); Wed, 19 Oct 2022 07:29:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230419AbiJSL32 (ORCPT ); Wed, 19 Oct 2022 07:29:28 -0400 Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 945E11B6CAF for ; Wed, 19 Oct 2022 04:03:39 -0700 (PDT) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 02DCA5C009F; Wed, 19 Oct 2022 05:32:46 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute3.internal (MEProxy); Wed, 19 Oct 2022 05:32:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm2; t=1666171965; x=1666258365; bh=qV9lZ2aH+8 Gf4ZXXwoIECQyW0k3j1ZOHMSQvMpw3uCo=; b=nZbj7uURlyDhe3KWlMJ5vMfoxQ uRCFfIv449lE1p4BjiPmc522K9BkPE3Yex4799UjZT8lExnBRgcC1NtfL8UcioUg lzTJFfF9BRi+H4H9XOfwiTYlPPf3U+IZgCbcwi3Bl4TqFU8Da7SVcp73S4Km1c0M 5VL7kCIk3ljMKIuvmG52LX87UZpah8dwqGFjCU/LGZmf1MaLo5Bn9ccPCs3iYvs2 CGdCGoAU2rJ8wDo8hVdvOB0W5gQKIidEo++n7AISmBty6r0theqd8TZzzuTXFq/G 2IREZfG0KasmmLlDm0BIS+Raj6Oeq8SJcQR7FEd9HJGFrIDm3vRx8azL5F0Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1666171965; x=1666258365; bh=qV9lZ2aH+8Gf4ZXXwoIECQyW0k3j 1ZOHMSQvMpw3uCo=; b=duAtabXo4h3js24n9SWPyq0sEeMTmApDQxpCPfZq01YG W7XSLR979i5uVt5uNatW+h3hYKerIjta1Efztr5AcoY+tTUGcscLj5mvPEkAEm4N 98xzj1aTOqndrWBSSITzhcgh0VIgowy/6nn+y0b4ajPh1f28Q1KW9lU6I22EbJ4c y5yPEIYM2Uh5iWEDJ7Ri9TG4tIEqMRyJPfXGXm6GDlXAJh49ms60Cx3qudRSU6J8 MQx2g7bGttdama+fk0kOB6uaAQJrhoPtkZRac4VvVqM70N/XlKZbGWAAJbLQfRER 0pfBEuf+sTr0ckPDOHFS77X5L080BHeN9DRsO2pPjQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeelgedgudejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepffehueegteeihfegtefhjefgtdeugfegjeelheejueethfefgeeghfektdek teffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 364FBB60086; Wed, 19 Oct 2022 05:32:45 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-1047-g9e4af4ada4-fm-20221005.001-g9e4af4ad Mime-Version: 1.0 Message-Id: <6d454246-578f-4a25-bddf-2f68f32d2213@app.fastmail.com> In-Reply-To: References: <20221017233700.84918-1-giulio.benetti@benettiengineering.com> <3fb4afd1-2eea-4a71-a914-f8208b11f9f4@app.fastmail.com> Date: Wed, 19 Oct 2022 11:32:25 +0200 From: "Arnd Bergmann" To: "Russell King" Cc: "Giulio Benetti" , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, "Anshuman Khandual" , "Andrew Morton" , "Kefeng Wang" , "Will Deacon" Subject: Re: [PATCH] ARM: mm: fix no-MMU ZERO_PAGE() implementation Content-Type: text/plain X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS 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, Oct 19, 2022, at 11:09, Russell King (Oracle) wrote: > When the only users in the kernel _were_ ZERO_PAGE() for this, which > is defined to return a struct page pointer, there was no need to make > "empty_zero_page" anything but a struct page pointer, rather than a > runtime translation from an address to a struct page. Fair enough. > IMHO, we should _not_ be exposing empty_zero_page to devices - we > certainly do not want the DMA API performing cache maintenance on > this page since the primary purpose of this page is to fill in > userspace BSS pages that have not been written. It should be easy enough to not expose it by renaming the symbol to something other than empty_zero_page. That way, any incorrect users that may come up in the future would at least result in a build failure instead of runtime data corruption. > So, the only one that needs fixing is the SPI usage, which IMHO > is wrong. ARM being different finds what I consider a driver bug. > Good for 32-bit ARM. :) The SPI driver is powerpc specific, so it's also not going to get hit. Arnd