Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp12364396rwl; Tue, 3 Jan 2023 13:14:23 -0800 (PST) X-Google-Smtp-Source: AMrXdXv6xHsp0HAhblngKtagETRa3uDRkCjUTAJXvdXF50d2tQdIL/R6nyWD0e1Kf+elYsWfQtcJ X-Received: by 2002:a17:906:910:b0:7c1:9519:5cfa with SMTP id i16-20020a170906091000b007c195195cfamr37848365ejd.77.1672780463063; Tue, 03 Jan 2023 13:14:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1672780462; cv=pass; d=google.com; s=arc-20160816; b=x9WnvOe0m0BQOSn6PRZtv5u7WVKUzxsieTmq/g/K0zodbddWyNK6ORUFlpBVH8SLCR 0EzQzxV+wjvajO7AFmUbsexmg0uo/wjBmDBKmcSADyKYifC4yxv7VZ/W9qnCWX5WAiyu sKJetgifhsluYr4wyAThrLfigH5oG/mmiE8p65RiV/J9U3xcLHCSUNhwToIqf4QopqV5 luc7VV1GWK7YvgZi5yKumnKZGurNeAb6/Siun8Q6fvR1EEuViCEGq7CFJeZ/1ZOjzHl/ n2nuHg8WWhOqkQcX9R2zaKQr2yNNNpBtluL/bjPqBGdcXRO4x9Nt8fXYx4obU75zSC5e 9UyQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature:dkim-signature; bh=PMWevr6d4J682B7tfyH8LkkhLNv+gcCfzKsdi7NhCZE=; b=g+TF8DqkeXfUS9a+a+u80joO9r8auR9rwdQuT65wUojORWfuaJJZx2p/bA0iJjU7cg SU1JTeWWRsAq+VCK6HeZ5RYhF4MUliqwcNDq7DfpSMeWKdLNuMY/gp/ab5FnH3c08bCj 8wgcCyP9s4APNmvyh+aiRRu+R4kofAydjZrGr3NqPSF7Z88DNmN3vsECqWSQiHM/lswr bSrMV3Zv3YhTy5tYYow7bfz8EoAhpuppdbUjV4QS3++RhEfUn7uE6tKWurXCWzyD46qy uyJufLsswmulLexhWbvivjInyFKsaqZ4hqQR3tJplvGLUI5/nOvqN7ZTK0r+gBNxlJg4 8Ftg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2022-7-12 header.b=nd2trsc4; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=MJU5uWrN; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bb6-20020a1709070a0600b007c3d44b41cfsi27764348ejc.988.2023.01.03.13.14.09; Tue, 03 Jan 2023 13:14:22 -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=@oracle.com header.s=corp-2022-7-12 header.b=nd2trsc4; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=MJU5uWrN; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229937AbjACUmL (ORCPT + 59 others); Tue, 3 Jan 2023 15:42:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238730AbjACUlu (ORCPT ); Tue, 3 Jan 2023 15:41:50 -0500 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40CEEF0D for ; Tue, 3 Jan 2023 12:41:49 -0800 (PST) Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 303Jn0ac005591; Tue, 3 Jan 2023 20:41:13 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=message-id : date : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2022-7-12; bh=PMWevr6d4J682B7tfyH8LkkhLNv+gcCfzKsdi7NhCZE=; b=nd2trsc4+12C7q/7zRvaNkXkPnx/0ejO8moafSoxlrAm2JhnHwYKptCG8WZMUlYBMGkJ pxEbyw6vmQnyNCmDT4soxD8NztIwcrjKHGSsxyVqI3M9HsOIvzkbJuvmeGIy/7hRcH/c l2kRPG9GKrKVpkwRBU6tVtrQf+qL1aYw8c9OdwNSvFmm4mhlpQcS3wXD0Dfavr+vRzjh b9byZryfdclBh238baG8UXgH1iIvEEDhDNP3GNbjTzPdSfbxMY51RvyIxZIrHJFF8qJx BIEaS/5BgzGF0B4EtLtm85lEMYq0mcX5Bvdl4hSJEdBFkKcrmGjw30HW59ZgWIj3Mei4 Jg== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3mtbv2w4h7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 03 Jan 2023 20:41:13 +0000 Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 303KIn43023165; Tue, 3 Jan 2023 20:41:12 GMT Received: from nam04-mw2-obe.outbound.protection.outlook.com (mail-mw2nam04lp2171.outbound.protection.outlook.com [104.47.73.171]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3mvu9s0wnr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 03 Jan 2023 20:41:12 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DNQUo2+lB00qyENmtMdgCjwesqpzLgdLfIZBiYFqYnjLZOJlndHyNoEoOvYAK7I41OMuToLAXiQVrv/kdanCoV7F0gK6URYIc0lWFTyI2xWLDPY2hjEdkWfG8p7g56/naDnIMz9+vI/YBotIYTrQYhzxMO/84jLQl+QGTMyX8yRrRNZKBbEH5kllUVACWlXoo56DrwGFsWOTlBa+pX1isnUMtXxV4eaeWP2XXdNxDolv8bvdv2WZTgmSa3XaOIyO4wj3RU25NtZATerXUSYdaNX9bdRuYg2OZ6qqn1WkvtKXYjB8qS9yKdBQgNLJ2T5Fd1aq7mq1U0uEfVlsnrzdPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=PMWevr6d4J682B7tfyH8LkkhLNv+gcCfzKsdi7NhCZE=; b=Z0Q4gUQQHKtkdngFWn+9/VbJ94XAGpXOrpPhC3H90MIYrDL3jrc6zRlVO2eu30WLk3uvILNU46AgR0YEQ0T7bwoAHnR8ZhJGqnJsXul/zrzfkOMURr2w70LHJ0mc1FPJc37tkW2QGRGEVc4+fBdsSlgHA0U1xqFIUhmeNa3AzRzu7UiTzTPFD73dT/oxUyJSYk+6T6kFHq4312tFa+8X5ScJY3cQ8PMLd9gX7/JXdZh6X/BsPqgXzY7v7eJEFfxYygdDiISnV0qPoZzfxcw/ZAUwYNykTXlMCo9jQ30Sluo3FQOxY8XfGAdFYkN67a/Gnlw65VmE5d/5gIOoWpG+QA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PMWevr6d4J682B7tfyH8LkkhLNv+gcCfzKsdi7NhCZE=; b=MJU5uWrNBr8HQUmh81E3YXppBk7ko0cVsW46s3ESe3SPDj85WGg36WHRJePKk4hTgQWrtKFGFafnhdEi9gzeQrrzkEyUAuIROx3P79vjiRXw6ikSgOc+MzRmpYpsV5NqfUK11DJHsDDJYmrrHtm+CKck1wpfAPjij7Zu8nD1NSg= Received: from BY5PR10MB3793.namprd10.prod.outlook.com (2603:10b6:a03:1f6::14) by BY5PR10MB4146.namprd10.prod.outlook.com (2603:10b6:a03:20d::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.19; Tue, 3 Jan 2023 20:36:09 +0000 Received: from BY5PR10MB3793.namprd10.prod.outlook.com ([fe80::e21f:383b:e0bc:afb4]) by BY5PR10MB3793.namprd10.prod.outlook.com ([fe80::e21f:383b:e0bc:afb4%3]) with mapi id 15.20.5944.019; Tue, 3 Jan 2023 20:36:08 +0000 Message-ID: <6dbb8c10-1c3d-2ad8-0491-049af8ccd89b@oracle.com> Date: Tue, 3 Jan 2023 15:36:03 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: [PATCH v2 0/2] x86: Check return values for early memory/IO remap calls Content-Language: en-US To: linux-kernel@vger.kernel.org, x86@kernel.org, bp@alien8.de Cc: dpsmith@apertussolutions.com, tglx@linutronix.de, mingo@redhat.com, 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, jgross@suse.com, boris.ostrovsky@oracle.com, andrew.cooper3@citrix.com References: <20221110154521.613472-1-ross.philipson@oracle.com> From: Ross Philipson In-Reply-To: <20221110154521.613472-1-ross.philipson@oracle.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: BN9PR03CA0543.namprd03.prod.outlook.com (2603:10b6:408:138::8) To BY5PR10MB3793.namprd10.prod.outlook.com (2603:10b6:a03:1f6::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY5PR10MB3793:EE_|BY5PR10MB4146:EE_ X-MS-Office365-Filtering-Correlation-Id: ed08d174-8445-49ac-e4cc-08daedca2493 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: iHACh/TdwfV/ZHDhxnPq1AawOD0xs1skenzpmGR9AgUL/MnvZq11muFcrPVxs3GWvQYIy4ZIep2knTbkJPsyHBspFey3PboGUxUvrb1BCe4VRuvHFFZ947tEFKKJVtXcX1SB6WAFsVp/4nXhKoJF229iEJk2mlfxprYfONY1EXsrlyzX6HbaddGIG31yxztMXni8J4xaa4XMIPKADcXQt8SuqKxtWJNk34XABnho97OaRrKOpw9wapZDokp/qGkX+Hv/ZHWCoLLKJ0eDxOyjNqXYlUsPB4AE+rcz6WpMnXWQJk/s1P3hxaJ/PdnCcQllwjEEQ64HUCxqWlMhnY/GTqgBdd60X9txKXH8LODKBRSkVKuxV/5duKnC3GZSWtM8PMKbTUruSfAyUXkqyO+/ovimOgiS3E6cDS3hfQNzL5V+H5F6j+ULyrIEJIvj0jG6Bww+4XcOnohpzU94H6/a2sww4FwzJhgACuzwF0Kyv4Vp+nBe1kKEVXRoSUrXF7wXCkjxcseAn4DDTzuwBndEE6ywS7LwDpvtY96Bxz/7+SepYg2M5pR/v9mo4Dz0ZbuRBSWD9ZDA9uYALH9dLJestIZP66GrB46+D7dl8MH/o9eVxkuWJC+7JigIsDe8Pc76rVhIBakOVliYlYjiqKPV5JIlVW9l1CLCdOjb8L5obCjiQgl+rgfxK396TYzXjzashv1IgKRPwQoufuZ8LbJS9YyBPGvOTXj5sB9A3NwUtIraV7wcPp6nbVOsFnV/+Fo64IdRp5a5lTSXX0Y0EQCtnA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY5PR10MB3793.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(366004)(376002)(39860400002)(396003)(136003)(346002)(451199015)(7416002)(5660300002)(2906002)(8936002)(44832011)(8676002)(4326008)(41300700001)(66476007)(66946007)(316002)(6486002)(478600001)(31686004)(66556008)(53546011)(6512007)(186003)(6506007)(6666004)(83380400001)(2616005)(38100700002)(31696002)(86362001)(36756003)(22166006)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?L084TUFxSkJFa0xXcUJ3dEZVcnh0S1lKUkh1SnZZUXMxTzlhYVV3b1FQQUtl?= =?utf-8?B?em1nSG84N0dHcWFuSHkxVGhieHpCdlZFSjRNKzNIZS9Jc1lyNHVhRnVuV3hP?= =?utf-8?B?QkZUWUc4dmJVN3ZYQU13Smg5bWtBNWNRbEdSR1lSMU9qQ1QwSEVXbDFUaHJt?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XRJMmVIVjBUVlc3Z0pSZVhkWi96TmtkSXRmcXhkeDg2bS9WUjVWYWMyNnBh?= =?utf-8?B?MWErRGxHV3ZCbjI0V0oxaEFnKzc2UXdWamlwSG12U1BqTDJhRldqOFFJclY0?= =?utf-8?B?VS9tQWRFeVNPeUwzeUJSVi9Ec3cwNC9MMW5KY01FaXd3TUc0TkxGL284a3R4?= =?utf-8?B?Ry90amVmRmFFT2hHa3Bqd2Z0UEs3dFErODZGU1MvSGVSWHVUTkNFMlFIaEQ5?= =?utf-8?B?c3lyVUhvUmtFMjMrVlpzeXpqdFlDbXdsaUYrTUJYNlVzZHdCT0w4amVRPT0=?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: ed08d174-8445-49ac-e4cc-08daedca2493 X-MS-Exchange-CrossTenant-AuthSource: BY5PR10MB3793.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jan 2023 20:36:08.2007 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 3wUYta/Sway5MJS5K1zPkGzSmHXn3y6PYL0T0pQkqNW5bBxQLCpYXQ6IKvf8+W2zrD7YJlBfI+yW6bHuNDSj8IEovoM5nmcxhKZuLKPQ9AA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR10MB4146 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2023-01-03_07,2023-01-03_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 phishscore=0 suspectscore=0 mlxlogscore=999 adultscore=0 malwarescore=0 bulkscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301030175 X-Proofpoint-GUID: OcoREfwsY4SJgwNelb5L45jMWqgk5Nsj X-Proofpoint-ORIG-GUID: OcoREfwsY4SJgwNelb5L45jMWqgk5Nsj X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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/10/22 10:45, Ross Philipson wrote: > While sending an earlier patch set it was discovered that there are a > number of places in early x86 code were the functions early_memremap() > and early_ioremap() are called but the returned pointer is not checked > for NULL. Since NULL can be returned for a couple of reasons, the return > value should be checked for NULL. > > This set fixes the places where the checks were missing. It was not always > clear what the best failure mode should be when NULL is detected. In modules > where other places tended to pr_warn or panic e.g., the same was done for > the checks. In other places it was based on how significantly fatal the > failure would end up being. The review process may point out places where > this should be changed. Borislav, I just wanted to get your thoughts here since it was by your prompting that I sent this second patch set to make checking of return values from early_memremap() and early_ioremap() consistent. I have gotten Reviewed-by's from some of the maintainers in specific areas that they approve of the return handling. I also got two replies basically questioning the underlying approach. I replied that I basically did what you asked me to do. I have not heard back. How would you like me to proceed? Thanks, Ross Philipson > > Changes in v2: > - Added notes in comments about why panic() was used in some cases and > the fact that maintainers approved the usage. > - Added pr_fmt macros in changed files to allow proper usage of pr_* > printing macros. > > Ross Philipson (2): > x86: Check return values from early_memremap calls > x86: Check return values from early_ioremap calls > > arch/x86/kernel/apic/x2apic_uv_x.c | 2 ++ > arch/x86/kernel/devicetree.c | 13 ++++++++++ > arch/x86/kernel/e820.c | 12 +++++++-- > arch/x86/kernel/early_printk.c | 2 ++ > arch/x86/kernel/jailhouse.c | 6 +++++ > arch/x86/kernel/mpparse.c | 51 ++++++++++++++++++++++++++++---------- > arch/x86/kernel/setup.c | 19 +++++++++++--- > arch/x86/kernel/vsmp_64.c | 3 +++ > arch/x86/xen/enlighten_hvm.c | 2 ++ > arch/x86/xen/mmu_pv.c | 8 ++++++ > arch/x86/xen/setup.c | 2 ++ > 11 files changed, 102 insertions(+), 18 deletions(-) >