Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D85CDD2E03A for ; Wed, 23 Oct 2024 09:45:31 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4XYPL23R4Gz2yP8; Wed, 23 Oct 2024 20:45:30 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip=65.109.113.108 ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1729676730; cv=none; b=V4bwJ1vnPZtRWAaw762LQpnn9voQ6qeNpRxCodsg/LKY0aRLVJVc3lBNqd8xQB1VEUURZgp4DU/kLk713AzuPP6PjYGMbub1g3JyCVUInLD3/WA1sWtzUznWJ204LLNXFtCEBKe7FFE88KblU7tTeGUtz4rtJ1VR0paiPUOzqeu2RBErj6onA+aMfrZTSDnS0Q3v+uco9KAo/vrBMsdlc8jY+bj0ZSTKJcbi6qpnmAOEFE1IBgLSkzQxoxgRbLTbRfilkbH90Nyb+KwCbO8qxu3Z0odomVMxVcC9rGLXSFQ9P0BOkjc1U6xAAlptE2/c0pq+iswRdF//ekMxRm58kQ== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1729676730; c=relaxed/relaxed; bh=xRuMdK9J2tCbYWS8krmRxv7safBbeT5X2+w+HlX8Rpk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=duxGdJ7U8kNdr7e0msl5DH4a986L7oH+c+1EYPJT9eHxlx4j9L8bIXuYDdsMH89kZAfTi32qOfuuNOkte9o0FpCruW0A6bfdbcqEOlFd3tgoeiU45R8f5mIE11nqn4V/ugDLLIA7OhT5DttMBQh1ndszG3fP7H6wa3jmQIPUktjNitoDyHUpq6BgBlfjKl/mFrrarXi5jnaOmmVdOL7pw+3KR3qfGZ/AuVVZ7eW7ZLTkWt7zFLHVNm6ICQp4B2TiEQ/M+D36Y/YgX9XPLAzOr63EnI/IBHsSHIkoSWE+hkGit6/m2A7LCNvlpC/8h3CltsvXcoZJDJNSrNTpU2IwBg== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=alien8.de; dkim=pass (4096-bit key; unprotected) header.d=alien8.de header.i=@alien8.de header.a=rsa-sha256 header.s=alien8 header.b=emjVegVn; dkim-atps=neutral; spf=pass (client-ip=65.109.113.108; helo=mail.alien8.de; envelope-from=bp@alien8.de; receiver=lists.ozlabs.org) smtp.mailfrom=alien8.de Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=alien8.de Authentication-Results: lists.ozlabs.org; dkim=pass (4096-bit key; unprotected) header.d=alien8.de header.i=@alien8.de header.a=rsa-sha256 header.s=alien8 header.b=emjVegVn; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=alien8.de (client-ip=65.109.113.108; helo=mail.alien8.de; envelope-from=bp@alien8.de; receiver=lists.ozlabs.org) Received: from mail.alien8.de (mail.alien8.de [65.109.113.108]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4XYPKw34gbz2xY0 for ; Wed, 23 Oct 2024 20:45:24 +1100 (AEDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id 5F30840E0263; Wed, 23 Oct 2024 09:45:11 +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 HgmO6BCblXDQ; Wed, 23 Oct 2024 09:45:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1729676707; bh=xRuMdK9J2tCbYWS8krmRxv7safBbeT5X2+w+HlX8Rpk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=emjVegVnoWx8fS8bbOm6MR9KWS1S+PcsFf63GL9pgeVJAUuaxkOvpiZTvz/X/Iasb Nv0oeJZsTCuBMQBxbz9FQc81l80L46oTuJl8fbvJsY4YQ+AVlUErYh5Pfxv76sg9LA ai5BDhSvHttrjizGRzlGjoLR6Jkt2jX1WGTWWcMLKR4SUH6QwAWkoCywLsaz0pw5Qz voCSeQbfcG+NNzLeMqLZqgia5QVdRZgwjKwWT0svSmpTglLllD8xYIwsocmHFLTXa+ DuSwkhjQU9ZD6ExZznK1On+GjexKsYqtDMaf4KbNsoF3Xr3gafUOXz4EnOrnlY1crz qWWGIGnKUY0SgPGVSd3L3oPPhHMBNF/BQaIT9MGZErR5p53YryCb2txVnvNJjOAY/1 RlkqBI1+319tfrAU57mOzthbKSD+OgGKTE2+L8I3O4KbDzckkmWVqyEBhFH8Z0C1Lh ip8gXzG9xNTZeBI6lbEdt57x5fJT75SweXQXFo5CGPC7WyqYTfKLJ43zusU7cVJO3H rdLSmJpOniGJEV9fBrnRBOakRa06cRo+2EPeyTI5G7tKThFzGFWtqcIi/jtjtWk7kl 3qrIfgoDll03zWKhdJr4bPc/lNXhJhQAGCyBfwY6T2JVn7cJLr/pl+bJN+8kj9FY1u r8aUWgkmmcAbFcnQLDhSVHyw= Received: from zn.tnic (p5de8e8eb.dip0.t-ipconnect.de [93.232.232.235]) (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 3FCBC40E0191; Wed, 23 Oct 2024 09:44:53 +0000 (UTC) Date: Wed, 23 Oct 2024 11:44:48 +0200 From: Borislav Petkov To: Linus Torvalds Cc: Josh Poimboeuf , Andrew Cooper , "Kirill A. Shutemov" , x86@kernel.org, Thomas Gleixner , Peter Zijlstra , Pawan Gupta , Waiman Long , Dave Hansen , Ingo Molnar , Michael Ellerman , linuxppc-dev@lists.ozlabs.org, Mark Rutland Subject: Re: [PATCH] x86/uaccess: Avoid barrier_nospec() in copy_from_user() Message-ID: <20241023094448.GAZxjFkEOOF_DM83TQ@fat_crate.local> References: <20241014035436.nsleqolyj3xxysrr@treble> <064d7068-c666-49f0-b7df-774c2e281abc@citrix.com> <20241020224444.zhoscljpe7di5yv3@treble> <20241020231112.erso2jzqwkbin4kh@treble> X-Mailing-List: linuxppc-dev@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Archive: , List-Subscribe: , , List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: On Sun, Oct 20, 2024 at 04:35:21PM -0700, Linus Torvalds wrote: > So I think this time we push back on the hardware people and tell them > it's *THEIR* damn problem, and if they can't even be bothered to say > yay-or-nay, we just sit tight. So I was able to get some info: CLAC/STAC in everything Zen4 and older is serializing so there's no issue there. Zen5 is a different story and AC is being renamed there and thus, non-serializing. So we'd need to do something there, perhaps something like Josh's patch... But the good thing is we can alternative it out only for those machines, apart from the rest. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette