From mboxrd@z Thu Jan 1 00:00:00 1970 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 238BE1A8F9A for ; Fri, 3 Jan 2025 15:52:17 +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=1735919539; cv=none; b=sckjOFBdnybO1yIGUjzdK/JORoJLelpknECBIytPVBU3SnFkbMnDu6yJGR5yQTBvxirdeUPHKYrAIVm7ES9/kQeySAmuot+l9gP7vLfovl6NUxuu5s/Xb8H033Rvp/6B079cw0jlxH9feV/5dodhzcRgC6R929r43VPmfMg76CA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735919539; c=relaxed/simple; bh=2b10Ew6wmmwVVz34EEdvTu3JUnE4y2ajwbL/gLExRKU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=q1EY3JoJcFaky0kcW2+9D9y25gWrU5ACUT13EtuKapdjNqQZRSfGQSbG/tomqK75/tuDVXDhwe1TFqMW0BhHoQmIb4ISH+sFsGnpaC0982Xkds2Gm1KnZve5tMF/1y/WH4/QUO9DpRDx4KG9X9v/0m8ecLURER3PG22N1qWaqPE= 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; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b=UnQ+WyTS; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b="UnQ+WyTS" Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id 267E340E021D; Fri, 3 Jan 2025 15:52:16 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.alien8.de Authentication-Results: mail.alien8.de (amavisd-new); dkim=pass (4096-bit key) header.d=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 d_R1wM4dfKqf; Fri, 3 Jan 2025 15:52:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1735919532; bh=DAjAD8p1qJButyEbG/t+G+JKvrT1mVEBPAIYpa6Kc9o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UnQ+WyTS2nEQQszSKisbmeEf3+LNT7XMmDOKI96+S42v9VL37yx72u2nKz+fEgFl+ +z0MqtY2PC9/uYImMhE4ZA5zvmVdCvbCYHkNx/65o9b90lR04dEJcInmli4WuBHbbY IhFxPUBO1IEH05BdjCqpOeXMHhVOHDicVrCHEVavFHKrQgTZ2qRgYLlk2kazgQJuu9 lITRxnCMrpEt2IVPLdyfRkgRFLN+p+XLSvf6m6AhtsLe8hBXLPCf42X15T55q4rdPl nsMCNnPhJ8Ej9cxX92z+Aosk86h1wKgdsPnV8GFTglgecSeFPRZL2B7WyIDgiUstDK MqPBfHb8KlwxsNQR5pOteKbcIfxDPegH664rA+x9VDllyNg+8R+m7b7v/HHhEHvqyd 3Pj9bzeZWSzrvODDiBGGHSMuPs649ArmR3g28jFSFPOK+8Z8n4ayfV6++K4TtYqdtI abcsXBiwp5MbAbJrE6rEXSTVtKc+TOSklaJThui+dquyIH1Qew+TzXfaZMznraXqv0 VEnJEW+Er445r1xLwjqveF32e5Kfyh0Y6XMU569oIK895eCOuIZIcouPKHJEfk+1JL pDqQb7UKNv6SspAmxcCj/pJqeTLt1GfHHJpNYjONBKBnSRJe0oIt3ML2ao10nIhS6q CIwsiSIyV9a/AIMPyuHILGaE= Received: from zn.tnic (p200300eA971f93bA329C23FFfEA6A903.dip0.t-ipconnect.de [IPv6:2003:ea:971f:93ba:329c:23ff:fea6:a903]) (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 ADF9740E015F; Fri, 3 Jan 2025 15:52:02 +0000 (UTC) Date: Fri, 3 Jan 2025 16:51:54 +0100 From: Borislav Petkov To: "Kaplan, David" Cc: Thomas Gleixner , Peter Zijlstra , Josh Poimboeuf , Pawan Gupta , Ingo Molnar , Dave Hansen , "x86@kernel.org" , "H . Peter Anvin" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v2 20/35] x86/bugs: Define attack vectors Message-ID: <20250103155154.GFZ3gHmkzkQytZPI5C@fat_crate.local> References: <20241105215455.359471-1-david.kaplan@amd.com> <20241105215455.359471-21-david.kaplan@amd.com> <20250103151905.GCZ3f_6U97nnsMrSR_@fat_crate.local> 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: On Fri, Jan 03, 2025 at 03:29:03PM +0000, Kaplan, David wrote: > The concept of attack vectors are generic (like how mitigations=off is > generic), while the bugs involved are arch-specific. Other architectures > support speculative mitigations too (for many of the same bugs), but I'm not > enough of an expert in those architectures personally to implement/document > attack vector controls for them. It shouldn't be too hard though for > someone who knows them better. > > Imo, keeping them in generic code is more forward-looking and prevents the > next developer from having to move them back here once another architecture > implements them. But I can move them to bugs.c if that is the preference... Right, the intent is for other arches to move them themselves *only* when they wanna use them. Otherwise, this could remain in generic code and if other arches don't, then it'll be at the wrong place. So I'd like for them to do that explicitly and not someone else to start the work with the hope that others will take it up. And this is the usual process anyway when other arches want to reuse x86 code - stuff gets moved to arch-agnostic place first and then shared. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette