Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp944131rwb; Thu, 10 Nov 2022 09:11:19 -0800 (PST) X-Google-Smtp-Source: AA0mqf5Lmjh04wHDb9NrFP+zrGOX6I7w0gRAdLGP0rWBuBBiv/l6NtOfyxoE1EVtrEh7Tr26Wpxt X-Received: by 2002:a63:c65:0:b0:470:48c0:f389 with SMTP id 37-20020a630c65000000b0047048c0f389mr2622218pgm.197.1668100279309; Thu, 10 Nov 2022 09:11:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668100279; cv=none; d=google.com; s=arc-20160816; b=dCaTiJ8drW5sYGS5GTPqu5lfDwQFU5R8yaAjsZPRlaWtyPBfqcG/FW8ysS6Ke8cmRO HiuavGAGKXujFHlRo5OKYPdhLQUjQ0NwdXpqeXBXNdOBA2eaILrPOiBi46KUrfMDAKg6 WcN95QYWoDwY9qROlSuucILiZ++6Pvl8OWALjXsjMR0bXXhqoiY0C4POyMEfdmtpQZWU XIJlGg4wtiPJMxOLy+mIsV+T/EpUcsX7qoQZ4WRCPZCAsU/AwfSc2k9etnoXVB+w3V7H coyyjkhog5xy0FPBRBg4vW2C51nZu3Jpp7ZWtU8wZolFWoLkrDOvJ/pOduCnt6wZOPQ2 vE1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :dkim-signature; bh=EV/Fk1WylZ737nbacAp1wmPRQUJJLl/hYoCm6tBJc+g=; b=JYSmUdigMi6w/7x9pMZygfDi/2MU9C4tqazDr/EQwJDVNZV3hkggXEsTA04RTMUaPn rIMFOXKCWhDfaTCySjd3udV8ZsyhY2AEPymEHLXxSK0lF+ol0VmhLfgQdGf82sn5xYmz lJ2+tRwsZmnb5Gsgqjaz1JfC579mpN9U8xqr+jMFIpJf8+lgHxMvpHtmEj6JusBe6VMa Jv0+TS/Q6o9SERKciTg3v9/63zd+q28e4hZw6kjKdqkjL9HoKzb6xOQ5lJhOubnXQDRq 4lhUAFd/q99zqHEzP8O5nH5TkeWlJ4QGHihHqT3VWUfiAL0Sb+2M7bUA1dHGCrx+4poK HFbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=nuCNQXMw; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z22-20020aa78896000000b0053652e1c0b6si23197271pfe.12.2022.11.10.09.11.06; Thu, 10 Nov 2022 09:11:19 -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=@suse.com header.s=susede1 header.b=nuCNQXMw; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230117AbiKJQHt (ORCPT + 92 others); Thu, 10 Nov 2022 11:07:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229763AbiKJQHs (ORCPT ); Thu, 10 Nov 2022 11:07:48 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7DD5E2B62D for ; Thu, 10 Nov 2022 08:07:46 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 13E231FE12; Thu, 10 Nov 2022 16:07:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1668096465; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=EV/Fk1WylZ737nbacAp1wmPRQUJJLl/hYoCm6tBJc+g=; b=nuCNQXMwMuX6G2Ywwfd8gVZ2wx1nduLSo8n016Ry6i7Ai2xJgEo5F7kImLJPYrEARtt5aR zicwAYOimOh1id6LFb/dlBRh8GSw7k/usqkL95l8ooNl96keOYmDkB8bWvVeTHxz228Hf3 LfdewH9uHlZDWLzRL7zi6eNVDMgxnhM= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 996B01332F; Thu, 10 Nov 2022 16:07:44 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 9TMgJNAhbWMSXgAAMHmgww (envelope-from ); Thu, 10 Nov 2022 16:07:44 +0000 Message-ID: <66c5c5a8-7a8b-aefc-6466-c7d20236550e@suse.com> Date: Thu, 10 Nov 2022 17:07:44 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.0 Subject: Re: [PATCH v2 1/2] x86: Check return values from early_memremap calls Content-Language: en-US To: Ross Philipson , linux-kernel@vger.kernel.org, x86@kernel.org Cc: dpsmith@apertussolutions.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, luto@amacapital.net, dave.hansen@linux.intel.com, kanth.ghatraju@oracle.com, trenchboot-devel@googlegroups.com, jailhouse-dev@googlegroups.com, jan.kiszka@siemens.com, xen-devel@lists.xenproject.org, boris.ostrovsky@oracle.com, andrew.cooper3@citrix.com References: <20221110154521.613472-1-ross.philipson@oracle.com> <20221110154521.613472-2-ross.philipson@oracle.com> From: Juergen Gross In-Reply-To: <20221110154521.613472-2-ross.philipson@oracle.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------mBxoMJgcAlsBu0oRWxNGGnrZ" X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, 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 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------mBxoMJgcAlsBu0oRWxNGGnrZ Content-Type: multipart/mixed; boundary="------------dd6c6hUQlWDPpqABWqQLDgwl"; protected-headers="v1" From: Juergen Gross To: Ross Philipson , linux-kernel@vger.kernel.org, x86@kernel.org Cc: dpsmith@apertussolutions.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, luto@amacapital.net, dave.hansen@linux.intel.com, kanth.ghatraju@oracle.com, trenchboot-devel@googlegroups.com, jailhouse-dev@googlegroups.com, jan.kiszka@siemens.com, xen-devel@lists.xenproject.org, boris.ostrovsky@oracle.com, andrew.cooper3@citrix.com Message-ID: <66c5c5a8-7a8b-aefc-6466-c7d20236550e@suse.com> Subject: Re: [PATCH v2 1/2] x86: Check return values from early_memremap calls References: <20221110154521.613472-1-ross.philipson@oracle.com> <20221110154521.613472-2-ross.philipson@oracle.com> In-Reply-To: <20221110154521.613472-2-ross.philipson@oracle.com> --------------dd6c6hUQlWDPpqABWqQLDgwl Content-Type: multipart/mixed; boundary="------------5DbFnzzLZhZ4rEqvlNR47BD1" --------------5DbFnzzLZhZ4rEqvlNR47BD1 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 T24gMTAuMTEuMjIgMTY6NDUsIFJvc3MgUGhpbGlwc29uIHdyb3RlOg0KPiBUaGVyZSBhcmUg YSBudW1iZXIgb2YgcGxhY2VzIHdoZXJlIGVhcmx5X21lbXJlbWFwIGlzIGNhbGxlZA0KPiBi dXQgdGhlIHJldHVybiBwb2ludGVyIGlzIG5vdCBjaGVja2VkIGZvciBOVUxMLiBUaGUgY2Fs bA0KPiBjYW4gcmVzdWx0IGluIGEgTlVMTCBiZWluZyByZXR1cm5lZCBzbyB0aGUgY2hlY2tz IG11c3QNCj4gYmUgYWRkZWQuDQo+IA0KPiBOb3RlIHRoYXQgdGhlIG1haW50YWluZXJzIGZv ciBib3RoIHRoZSBKYWlsaG91c2UgYW5kIFhlbiBjb2RlDQo+IGFwcHJvdmVkIG9mIHVzaW5n IHBhbmljKCkgdG8gaGFuZGxlIGFsbG9jYXRpb24gZmFpbHVyZXMuDQo+IA0KPiBJbiBhZGRp dGlvbiB0byBjaGVja2luZyB0aGUgcmV0dXJuIHZhbHVlcywgYSBiaXQgb2YgZXh0cmENCj4g Y2xlYW51cCBvZiBwcl8qIHVzYWdlcyB3YXMgZG9uZSBzaW5jZSB0aGUgcHJfZm10IG1hY3Jv IHdhcw0KPiBpbnRyb2R1Y2VkIGluIHRoZSBtb2R1bGVzIHRvdWNoZWQgYnkgdGhpcyBwYXRj aC4NCj4gDQo+IFNpZ25lZC1vZmYtYnk6IFJvc3MgUGhpbGlwc29uIDxyb3NzLnBoaWxpcHNv bkBvcmFjbGUuY29tPg0KPiAtLS0NCj4gICBhcmNoL3g4Ni9rZXJuZWwvZGV2aWNldHJlZS5j IHwgMTMgKysrKysrKysrKysNCj4gICBhcmNoL3g4Ni9rZXJuZWwvZTgyMC5jICAgICAgIHwg MTIgKysrKysrKysrLS0NCj4gICBhcmNoL3g4Ni9rZXJuZWwvamFpbGhvdXNlLmMgIHwgIDYg KysrKysrDQo+ICAgYXJjaC94ODYva2VybmVsL21wcGFyc2UuYyAgICB8IDUxICsrKysrKysr KysrKysrKysrKysrKysrKysrKysrKysrKy0tLS0tLS0tLS0tDQo+ICAgYXJjaC94ODYva2Vy bmVsL3NldHVwLmMgICAgICB8IDE5ICsrKysrKysrKysrKysrLS0tDQo+ICAgYXJjaC94ODYv eGVuL2VubGlnaHRlbl9odm0uYyB8ICAyICsrDQo+ICAgYXJjaC94ODYveGVuL21tdV9wdi5j ICAgICAgICB8ICA4ICsrKysrKysNCj4gICBhcmNoL3g4Ni94ZW4vc2V0dXAuYyAgICAgICAg IHwgIDIgKysNCj4gICA4IGZpbGVzIGNoYW5nZWQsIDk1IGluc2VydGlvbnMoKyksIDE4IGRl bGV0aW9ucygtKQ0KDQpGb3IgdGhlIFhlbiBwYXJ0czoNCg0KUmV2aWV3ZWQtYnk6IEp1ZXJn ZW4gR3Jvc3MgPGpncm9zc0BzdXNlLmNvbT4NCg0KDQpKdWVyZ2VuDQoNCg== --------------5DbFnzzLZhZ4rEqvlNR47BD1 Content-Type: application/pgp-keys; name="OpenPGP_0xB0DE9DD628BF132F.asc" Content-Disposition: attachment; filename="OpenPGP_0xB0DE9DD628BF132F.asc" Content-Description: OpenPGP public key Content-Transfer-Encoding: quoted-printable -----BEGIN PGP PUBLIC KEY BLOCK----- xsBNBFOMcBYBCACgGjqjoGvbEouQZw/ToiBg9W98AlM2QHV+iNHsEs7kxWhKMjri oyspZKOBycWxw3ie3j9uvg9EOB3aN4xiTv4qbnGiTr3oJhkB1gsb6ToJQZ8uxGq2 kaV2KL9650I1SJvedYm8Of8Zd621lSmoKOwlNClALZNew72NjJLEzTalU1OdT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ncr 0xSwFmHEgnSEjK/PAjppgmyc57BwKII3sV4on+gDVFJR6Y8ZRwgnBC5mVM6JjQ5x Dk8WRXljExRfUX9pNhdE5eBOZJrDRoLUmmjDtKzWaDhIg/+1Hzz93X4fCQkNVbVF LELU9bMaLPBG/x5q4iYZ2k2ex6d47YE1ZFdMm6YBYMOljGkZKwYde5ldM9mo45mm we0icXKLkpEdIXKTZeKDO+Hdv1aqFuAcccTg9RXDQjmwhC3yEmrmcfl0+rPghO0I v3OOImwTEe4co3c1mwARAQABwsBfBBgBAgAJBQJTjHAWAhsMAAoJELDendYovxMv Q/gH/1ha96vm4P/L+bQpJwrZ/dneZcmEwTbe8YFsw2V/Buv6Z4Mysln3nQK5ZadD 534CF7TDVft7fC4tU4PONxF5D+/tvgkPfDAfF77zy2AH1vJzQ1fOU8lYFpZXTXIH b+559UqvIB8AdgR3SAJGHHt4RKA0F7f5ipYBBrC6cyXJyyoprT10EMvU8VGiwXvT yJz3fjoYsdFzpWPlJEBRMedCot60g5dmbdrZ5DWClAr0yau47zpWj3enf1tLWaqc suylWsviuGjKGw7KHQd3bxALOknAp4dN3QwBYCKuZ7AddY9yjynVaD5X7nF9nO5B jR/i1DG86lem3iBDXzXsZDn8R38=3D =3D2wuH -----END PGP PUBLIC KEY BLOCK----- --------------5DbFnzzLZhZ4rEqvlNR47BD1-- --------------dd6c6hUQlWDPpqABWqQLDgwl-- --------------mBxoMJgcAlsBu0oRWxNGGnrZ Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsB5BAABCAAjFiEEhRJncuj2BJSl0Jf3sN6d1ii/Ey8FAmNtIdAFAwAAAAAACgkQsN6d1ii/Ey/Z uwf9GfCYNTgYAn6tunrIu6M+RENPMwwvmUVC0CjrSU/ln3KvegZRL+VgXLxTe01E1j8c3VGle1xW tzawO3vkDoilvke4V7OwBvIWKzgUJxNboCy5d9B2TOPbjZTi1qediSlKKv8K5Rckxe9ff/GLhcMr yJzHkVbt8O1QzPN/sWEA0cKUG9DPRY5mKks9ysu1pF7gbaiRTKs8dSMg0q1XU7Cpaw33aozsaYlu DMfWdMzGQFfQooVaJzJl2nHQR6RSb5lKouJ8lps4g0dZzGoFLD3SUIKfiMhRwQFltl7ej8S6W8U+ j7qVorWMIVyGqkPQFDZhgGI89ST+XlCqNVonfOCz6w== =AnkP -----END PGP SIGNATURE----- --------------mBxoMJgcAlsBu0oRWxNGGnrZ--