Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp2126354lqe; Tue, 9 Apr 2024 10:10:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW9iq5rmKU2eoeZ68QoANAf4rnf1l6EsK3vNkjSyjq+6yvSK2eSemig7LVFPvo/IXbLMBquKN1gySoVlw8QuSXrh4Wmcy9GemxYFlFUjA== X-Google-Smtp-Source: AGHT+IHEmULvMIAaneh8KTIb22OtLcf5uvS4ALmmHXmvQNDTQ05+dfc5uN1yKrstgAUtBlOSu0lB X-Received: by 2002:a05:6402:c4a:b0:56e:6e9a:f64f with SMTP id cs10-20020a0564020c4a00b0056e6e9af64fmr3374512edb.19.1712682600121; Tue, 09 Apr 2024 10:10:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712682600; cv=pass; d=google.com; s=arc-20160816; b=tYQukYfuv9dZjVPpwF7OBk+9p47LGvAu0mRr50K4jT6DpeEmMO+hTvQQnHalktsJLV glGjEk3fYjhVWxSBjvQFNsmm2BLK3NPIfCtReAp6y1njx6s4B02IzIwKvEikBPAWOK7H mIHDzUM9kYbmaPw+C2PrzmXmlr4qYNilxhfB90Y34N/1OTjSWCfEZJbf0vc4XdepRdiZ JhWDgNIxVgFuR944bbvfqHCsHNMsMc/kxdF/z3gOtpvpBsYvu9kd+w/Dd6acaKcHDW5T vW+Dru/78UYhhBULlzo7aenL02zjN/1iAB2ziqWJ931xCFW5IyZ7ZsouZJ3+JRQ0qAv0 5npA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=ltdVuaH1TeQRVD+j87Prb/IAR1+8FAZq5LDVgQKagK8=; fh=yOXSm0E/8tOfmRnhk0JfE6MKLQieMwDr2DHng9Fw+Y4=; b=oYTd5ex73jT/ZMsZDA0rymeuj6DFJafoDpKIx2P+rdjejr3nkNb1OALf4aUaTj7tu2 9k+C3j+/y0QaD5d6zRUmdhycmC1H1HdJyY8S4NGV3nfGzG2lnlMskKjQ4T178l5MsfjF 3lnJCypEzgQ0RLYMgwglHBYYbGp+xY+laOjFyK8Ha7AQkrUUFdCq4vQW+NgAy07M0tjb XKAR78B5PopLlh+bNiQkW1iKPVcGLsK7wvSdvbmjM6/fwumX9eqjTj1N+PZ+lbgBI2jV 5OHMDRHi2CaMGmmMkTFNzqNGqhajj+ak4tfltt2j9nUNV8DEueV72pX49KY1Pn5GQuOy 9zJQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=alien8.de dmarc=pass fromdomain=alien8.de); spf=pass (google.com: domain of linux-kernel+bounces-137369-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137369-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id b14-20020a056402278e00b0056e69a1c603si1697723ede.314.2024.04.09.10.10.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 10:10:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-137369-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=alien8.de dmarc=pass fromdomain=alien8.de); spf=pass (google.com: domain of linux-kernel+bounces-137369-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137369-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alien8.de 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 am.mirrors.kernel.org (Postfix) with ESMTPS id B417C1F232C2 for ; Tue, 9 Apr 2024 17:09:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C7707155397; Tue, 9 Apr 2024 17:09:51 +0000 (UTC) Received: from mail.alien8.de (mail.alien8.de [65.109.113.108]) (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 5E00F153826 for ; Tue, 9 Apr 2024 17:09:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=65.109.113.108 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712682591; cv=none; b=FWx22334qyCsU6MA3ftNFXLzBjIRc+78PG8pDjZaOZuLVH8JBFo5PpguLBi3FKe/0g6GnMJbrAb6Qt1nWOdwtOMma2QLl6wNiB+ZVC3PaKNRL6DfRnDRPnGQzpY9daTwr05LeXIUdlchC/l75lK/XlCKhl7fiNbfItTxIcEQmRg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712682591; c=relaxed/simple; bh=auzz5duMFq+QgDwdD2uySQTTN2yYy3Ubzon6A1IEd3o=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=E8H94WNElvVB5qv7b3hsbW9Qq4wxX7Tu9SBpVP+0PP75mT+eoTwOTPJLri6tzMQbFzTOjDPjd+2aSzdXWjStbvPFdo+q7jLs+S/C7nli4A+I1arjZb0Ad7d+XO8LcjS4e/TeSyNv98XfcmxJjKk5hc9DCjumuLxWwEmdrAZsyi8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de; spf=pass smtp.mailfrom=alien8.de; arc=none smtp.client-ip=65.109.113.108 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alien8.de Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id DB87640E01C5; Tue, 9 Apr 2024 17:09:40 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.alien8.de Received: from mail.alien8.de ([127.0.0.1]) by localhost (mail.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id djey4s2-02-2; Tue, 9 Apr 2024 17:09:37 +0000 (UTC) Received: from zn.tnic (p5de8ecf7.dip0.t-ipconnect.de [93.232.236.247]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id CAB5A40E00B2; Tue, 9 Apr 2024 17:09:22 +0000 (UTC) Date: Tue, 9 Apr 2024 19:09:17 +0200 From: Borislav Petkov To: Tom Lendacky Cc: linux-kernel@vger.kernel.org, x86@kernel.org, linux-coco@lists.linux.dev, svsm-devel@coconut-svsm.dev, Thomas Gleixner , Ingo Molnar , Dave Hansen , "H. Peter Anvin" , Andy Lutomirski , Peter Zijlstra , Dan Williams , Michael Roth , Ashish Kalra Subject: Re: [PATCH v3 01/14] x86/sev: Rename snp_init() in the boot/compressed/sev.c file Message-ID: <20240409170917.GCZhV2PWPhmzTHhMRO@fat_crate.local> References: <425afa6512994b1ca1bb366eb7abfb24d65175aa.1711405593.git.thomas.lendacky@amd.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <425afa6512994b1ca1bb366eb7abfb24d65175aa.1711405593.git.thomas.lendacky@amd.com> On Mon, Mar 25, 2024 at 05:26:20PM -0500, Tom Lendacky wrote: > The snp_init() in boot/compressed/sev.c is local to that file and is not > called from outside of the file. Change the name so that it is not tied > to the function definition in arch/x86/include/asm/sev.h. That part I don't understand: I can rename the function without making it static and it builds fine, so where is it "tied" to the function definition in kernel proper? Don't get me wrong - leaking kernel proper symbols into the decompressor has been a pet peeve of mine for a while now but this is not the case here, is it? And yes, the patch is fine - I'm just asking... Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette