Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp225922lqb; Tue, 4 Jun 2024 09:30:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWqMFZdMKTyYsjuXcaXlCevAPapJqRxRtQ1WHeF5nOr6AWFYDoWlji9utTcr8sSmT5HZWLfEZ71bgZji599F+o8ML5uNq5isYzaAZT9PA== X-Google-Smtp-Source: AGHT+IGZu6DnJUC/ZK3zuI0yV1xMRBwZmPDN7JZmDrmrjTgL0e+VjQRIvxdygVycPQNeHhhyqWZz X-Received: by 2002:a17:90a:b78f:b0:2a4:b831:5017 with SMTP id 98e67ed59e1d1-2c1dc5d8e46mr10130029a91.48.1717518628467; Tue, 04 Jun 2024 09:30:28 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c1c282bee4si8653464a91.110.2024.06.04.09.30.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 09:30:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201072-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=WjrlL7D6; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-201072-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201072-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id C314F2834E5 for ; Tue, 4 Jun 2024 16:30:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1160414885E; Tue, 4 Jun 2024 16:29:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="WjrlL7D6" Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2079.outbound.protection.outlook.com [40.107.243.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 69A2514830B; Tue, 4 Jun 2024 16:29:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.243.79 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717518545; cv=fail; b=rbA+KCuNEixdmZ8KHy+zWd3O+SsbQiXhyG+R+zbOLR5ArAxAngkmeIaZSlI+Pu/kvfdRBcR1GxKI7fMH0E9N7uW8ce37l5m4AcbbYp8qmrQ5vk4dUfZLnweOVyVwnF19XZgBcPaq1bk/wL3Oyp0yjzPLeR3u9ui14hcmdTllnEA= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717518545; c=relaxed/simple; bh=12WGguNaM9mjQahSLWL9WFk1CnXCLNZeTFcJlrVML+o=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=mt4jW+mkSZd741tDrTNqa5m3IOj90oHvFlPjq0lekbXkV/v/kVXDCJMOG+ptBB5VvyETwhPSXWhxkHZzpNycG35QGJF2Iy2kAl+2UGQcIuiH4j+ZhpisodON6k1UO6+iThWxof1AgV7ux4paGN2juc/AcCzHIFj8gO9OfU8TEL4= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=WjrlL7D6; arc=fail smtp.client-ip=40.107.243.79 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lKvAuU7rsSamErJkmfRGeK6iFaM6YhiJjbz0G2RtE05qO6uR7jERwKp8o+uSGJAXVtq6oxaySba5snfGJsZCptGvPGkTpGUUAPDAKLFVFGBHQUI+rDQZiz3FRhb6A6SbltsDOz/Ooqe4DEAnue2g9Uxx1aSA0NpVhebrDNQatr9VNedoAxLD+jp+FfbHAb8NAjNJca7p1cJHDBGO8YhJRbyQVyd3wKHekSA5Btjg9uNtKf1GQNUqhWL1bTzUk0mps8MgJGU7XcQY3MdbFFb5TtjWHsgyguaPvVL6EuI81EYbzjwGEnhQLZek6GM5v+udscrzxvPyP7GjB0DNbJEMFw== 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=BH0oweUn3bO6VT9Sgv3lMeAc9c992sWbMPA0q/6k5GY=; b=hRqphVPj5Gnv7DeeVYZ86y/ZBh8phcPFyeoQV43jdaGVzBOYkbDG2+HZQjRVTQQ47jWoZekGgRT7ppb9a6q9rAZIaWCpjPX84PtTh0EhcPvez3ZH6XyNAndYsY15yR/TZrHHmgTBr+UnVi5iah4SrHT6cjjuLkZLOsQV8VejWyxQNnNjl1t/1qF4gPv3rfbGGioI5XI22cq+dABirDSr3xLPRTz9oGPrmax1uZkA8KfxzonVVTjj6vRvdJ3oaMEj4muo50e1J4Tirq4hbKk3aXr4PpfcgQKhKLnt0muTG4wW8wy1o/rrepi1UMNtoUcPLMnNn2yUxC8WGGYjDrTRVA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BH0oweUn3bO6VT9Sgv3lMeAc9c992sWbMPA0q/6k5GY=; b=WjrlL7D6dif7CrKU8ua3TzTaMIJhiZvpsGsw0Qmj97bFUcKdvKcpMw5jGdr6fllweZpE2PbHMdLiVXwVcTWsjcfe56fTXCFt2tXqvPjLkPzxkmvoPSdYq3MO1Fe/L8XVlJMF4mDubWXyTj/6yq34SCsae5fOG8PZyZ5PflthFCU= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from BL1PR12MB5732.namprd12.prod.outlook.com (2603:10b6:208:387::17) by MW4PR12MB7309.namprd12.prod.outlook.com (2603:10b6:303:22f::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.25; Tue, 4 Jun 2024 16:29:00 +0000 Received: from BL1PR12MB5732.namprd12.prod.outlook.com ([fe80::bf0:d462:345b:dc52]) by BL1PR12MB5732.namprd12.prod.outlook.com ([fe80::bf0:d462:345b:dc52%7]) with mapi id 15.20.7633.021; Tue, 4 Jun 2024 16:29:00 +0000 Message-ID: <99c5b19c-a8a3-484d-9adb-b313c57bc1f7@amd.com> Date: Tue, 4 Jun 2024 11:28:57 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH] crypto: ccp - Fix null pointer dereference in __sev_snp_shutdown_locked Content-Language: en-US To: Kim Phillips , Ashish Kalra , John Allen , Herbert Xu , "David S . Miller" Cc: Mario Limonciello , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org References: <20240603151212.18342-1-kim.phillips@amd.com> From: Tom Lendacky In-Reply-To: <20240603151212.18342-1-kim.phillips@amd.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: DM6PR01CA0022.prod.exchangelabs.com (2603:10b6:5:296::27) To BL1PR12MB5732.namprd12.prod.outlook.com (2603:10b6:208:387::17) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL1PR12MB5732:EE_|MW4PR12MB7309:EE_ X-MS-Office365-Filtering-Correlation-Id: cc9a16d4-c3f3-482f-76d0-08dc84b3704b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|366007|376005|1800799015; X-Microsoft-Antispam-Message-Info: =?utf-8?B?NUplRHNsTE9OMS8xUFd3azNpenE4c2hpMWcwRnZqUW5OOXJCMVZqL3lGS3A1?= =?utf-8?B?L0NHRjF1S0xTMEtDQ28xc29wQ29aWWxGRDFSc0JLem1PUkRxc3hlRE5xQVhZ?= =?utf-8?B?TGhmenhRa00xL2lDZFp2c2hYQ3JjQlo3YTVPVGVxNll5L2ExdGg0dGJ3d08y?= =?utf-8?B?RE5XY0pRSVVlNUxVbGxFZEVqZUNBWVRXNlZ6Tk5JdTR2ckJnZnVXVDVjTXI3?= =?utf-8?B?azVKUVlFcUJObWx2Kys1VTRQcVRhQ2tqL1ZNYlRabmxyZmZRbVZXZS9pRUtr?= =?utf-8?B?cmZpM1lBWVVxNEFQbGphQ3o1MDZGZjZqRUFEYlN1UFd2WnZ6R1ZURXY3S1dl?= =?utf-8?B?U2Z5a1lQWmxCRVg5WHdhTXIxeWd2ZnZDRW9ZeTZGT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2VaSytxV3M5bTZsMTRHOHpHOHU2b2hwR2tUSk90NGJ1bzhT?= =?utf-8?B?aW5Cd0toZHNKYXgrRmNjeEFnOG1mVXQyRHdtWENHUzNRcWhCUmZXYlF3TUVS?= =?utf-8?B?YWNVWUlFWXU3TlRqTkZQa0l5RHZ2L01INm1IY0hvcWl0cDZ0NGQ2UlU5akdQ?= =?utf-8?B?cmhaQS9DS3FUZ2kxOFlmVkhzWGx2SmNJZFk2VCtTcXU0dmloOG9Fem5BU0lE?= =?utf-8?B?cG5PRVdyWWpmY3J4NEhZeTY3T1pjQnhycTdlQnJ4MDdXM3VRckNQMWhLYlRL?= =?utf-8?B?KzNNMktTTHl0RUFUTTZkSmxHdXNXak5lQ29wRnUyZzA2VU1XaGpXaFZJa1pS?= =?utf-8?B?N0x3Z1R0UCtXNkdtMXd5aFdOdWFRSG9ZT2lrV2dVclZ1cEpTajZJaU1TSitv?= =?utf-8?B?TERhSjlnVy8yMGlvOFpWMkxVZkVqekFZRjBlVy9ra0ZwSXJKZForQmh3PT0=?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BL1PR12MB5732.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366007)(376005)(1800799015);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?K3o2aEZ3S280aG5Jb3ovbE9xaUhsaWV2UHNHbTJGaFkwVjFRekcySWpDVlNL?= =?utf-8?B?NmlvVFJkbmtqRDhIa0luVnZvNzVlaUh6WTNHbGZpZlFHS2hNeG5NckVSSmpC?= =?utf-8?B?TnRvL3Y2dnBZN0V6Z1BKeTcwbHVXYXRXMFVSK2Izb1RsNXNtM21tV1JyTnlF?= =?utf-8?B?Mnd0YitrOWhhOE9VMTVCSk9YUVR6QTNneHVnQm52dytxUkJOcjREYnR1Rmpt?= =?utf-8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w?= =?utf-8?B?N21xQlV4UEVnKzdtMjVENFI0d0VrNEFVcFpKTklCQ2R6OTdnM1VwVmNDdkJK?= =?utf-8?Q?56U5cuK6iNn+OdlWhiRri0ZCM?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: cc9a16d4-c3f3-482f-76d0-08dc84b3704b X-MS-Exchange-CrossTenant-AuthSource: BL1PR12MB5732.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jun 2024 16:28:59.9098 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: LI2tzFONU11fT951QEb2AVlvKQfqWNkeeTxEsktDa/P36jHiys4hFwvW5IU7LONSXa7jlDLOjdWFtrjOyIa7Lw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR12MB7309 On 6/3/24 10:12, Kim Phillips wrote: > Another DEBUG_TEST_DRIVER_REMOVE induced splat found, this time > in __sev_snp_shutdown_locked(). > > > Fixes: ccb88e9549e7 ("crypto: ccp - Fix null pointer dereference in __sev_platform_shutdown_locked") Shouldn't the Fixes tag be: 1ca5614b84ee ("crypto: ccp: Add support to initialize the AMD-SP for SEV-SNP") Thanks, Tom > Cc: stable@vger.kernel.org > Signed-off-by: Kim Phillips > --- > drivers/crypto/ccp/sev-dev.c | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) >