Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4782171rwb; Mon, 21 Nov 2022 11:51:00 -0800 (PST) X-Google-Smtp-Source: AA0mqf7otoo7NQRql7kB6SKe0F92FCN4jg56dxrjxaDGUv4A/GY8hgLO6dkvw2RkSeXh8H2xZC3z X-Received: by 2002:a05:6402:8d3:b0:469:289f:4380 with SMTP id d19-20020a05640208d300b00469289f4380mr12602890edz.112.1669060260707; Mon, 21 Nov 2022 11:51:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669060260; cv=none; d=google.com; s=arc-20160816; b=s3EFR1DgvfmFZUq/Yw3Gr8J8Q+kMebQCKuT0woRIOqUkcud4zx3ydjWwKlIQuYqlZr TBu99LFiN+6IwLMYTJuNrbcg/tmgZkcJ0wnGaqgGnBZax4c60EQqmjPI0SFYKKgQ4yJn 1Mh3zso0ZQyyRsQka+4QGFvmc5ejBJ2DepS3T5hdCgH83oNuAV4E+B6y5oBxN0Ig33AQ FEakOaZkGADlqY496BrkjeMPXuhSGNWLVDDK2BHtePi+nsEpb+SAmKrx6CT+B5lZo2Nq DewuKfJPxYhY8fDx3IlLYgyKDd580LGCPwlLMxpTINnB+cmHZyFfVYcrV85XcseAx++e ACAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=P5b4SWEpwjdHbs/SaEnye+cahlzdG2kmJ0e9jMb+r2g=; b=At85fLTlwR6TuARwp3yjivXNZXnL5NEInlZHomexCF+2et0FuhCS1R1n98QDndx98P 1ScqSzXrnNOSo0/1uVhgAMJ8j24kz6+j8zq6n5jy1DzPMQ56I7Vxo63jMeof6FnXI72d BzICgYV5J8mP+568hPNMUahlTnGZUZOjIpJolHYkH7iyEqeHJ47rdbIe7w8ZSQst6fjl N6tg+ZTJ4jlipYgCRX1bYicpvcUbP777eazsoi9ut7LV8l5TSiq7K5t1O7pKbJciyeDJ 0i80jTEGUMbQFv6XnxuVZsH8Ex0JbrysGQd8T4WKTQiVvzoeeAWKn5niQoXLAYX1voUN 8uNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=Hz5c9OWH; 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=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p33-20020a056402502100b0046830a9c984si10056678eda.476.2022.11.21.11.50.37; Mon, 21 Nov 2022 11:51:00 -0800 (PST) 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=@alien8.de header.s=dkim header.b=Hz5c9OWH; 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=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231553AbiKUTpR (ORCPT + 91 others); Mon, 21 Nov 2022 14:45:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229501AbiKUTpQ (ORCPT ); Mon, 21 Nov 2022 14:45:16 -0500 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9D03C76A0; Mon, 21 Nov 2022 11:45:15 -0800 (PST) Received: from zn.tnic (p200300ea9733e725329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:9733:e725:329c:23ff:fea6:a903]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 1D7071EC03EA; Mon, 21 Nov 2022 20:45:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1669059914; h=from:from: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; bh=P5b4SWEpwjdHbs/SaEnye+cahlzdG2kmJ0e9jMb+r2g=; b=Hz5c9OWHGhKRkyTmVzuAfPJFyiaBTj+VZZ3OGJhdc9XkaxCu4vpc31EVCIYsCPfNZfVrYd SFHZv45DG4dfpvL57diwCak69jxSyHAuAk0AaX0/cl+i/fym7Dc0ipCRSFWzl3qMwi/fY5 tnAdZjL9Js8BPlHA3bg7m21jURO6bQ0= Date: Mon, 21 Nov 2022 20:45:10 +0100 From: Borislav Petkov To: "Michael Kelley (LINUX)" Cc: "hpa@zytor.com" , KY Srinivasan , Haiyang Zhang , "wei.liu@kernel.org" , Dexuan Cui , "luto@kernel.org" , "peterz@infradead.org" , "davem@davemloft.net" , "edumazet@google.com" , "kuba@kernel.org" , "pabeni@redhat.com" , "lpieralisi@kernel.org" , "robh@kernel.org" , "kw@linux.com" , "bhelgaas@google.com" , "arnd@arndb.de" , "hch@infradead.org" , "m.szyprowski@samsung.com" , "robin.murphy@arm.com" , "thomas.lendacky@amd.com" , "brijesh.singh@amd.com" , "tglx@linutronix.de" , "mingo@redhat.com" , "dave.hansen@linux.intel.com" , Tianyu Lan , "kirill.shutemov@linux.intel.com" , "sathyanarayanan.kuppuswamy@linux.intel.com" , "ak@linux.intel.com" , "isaku.yamahata@intel.com" , "Williams, Dan J" , "jane.chu@oracle.com" , "seanjc@google.com" , "tony.luck@intel.com" , "x86@kernel.org" , "linux-kernel@vger.kernel.org" , "linux-hyperv@vger.kernel.org" , "netdev@vger.kernel.org" , "linux-pci@vger.kernel.org" , "linux-arch@vger.kernel.org" , "iommu@lists.linux.dev" Subject: Re: [Patch v3 01/14] x86/ioremap: Fix page aligned size calculation in __ioremap_caller() Message-ID: References: <1668624097-14884-1-git-send-email-mikelley@microsoft.com> <1668624097-14884-2-git-send-email-mikelley@microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,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 Mon, Nov 21, 2022 at 04:40:16PM +0000, Michael Kelley (LINUX) wrote: > As discussed in a parallel thread [1], the incorrect code here doesn't have > any real impact in already released Linux kernels. It only affects the > transition that my patch series implements to change the way vTOM > is handled. Are you sure? PHYSICAL_PAGE_MASK is controlled by __PHYSICAL_MASK which is determined by CONFIG_DYNAMIC_PHYSICAL_MASK and __PHYSICAL_MASK_SHIFT which all differ depending on configurations and also dynamic. It is probably still ok, in probably all possible cases even though I wouldn't bet on it. And this fix is simple and all clear so lemme ask it differently: what would be any downsides in backporting it to stable, just in case? > I don't know what the tradeoffs are for backporting a fix that doesn't solve > a real problem vs. just letting it be. Every backport carries some overhead > in the process Have you seen the deluge of stable fixes? :-) > and there's always a non-zero risk of breaking something. I don't see how this one would cause any breakage... > I've leaned away from adding the "Fixes:" tag in such cases. But if > it's better to go ahead and add the "Fixes:" tag for what's only a > theoretical problem, I'm OK with doing so. I think this is a good to have fix anyway as it is Obviously Correct(tm). Unless you have any reservations you haven't shared yet... > [1] https://lkml.org/lkml/2022/11/11/1348 Btw, the proper way to reference to a mail message now is simply to do: https://lore.kernel.org/r/ as long as it has been posted on some ML which lore archives. And I think it archives all. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette