Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp1971099rdg; Sun, 13 Aug 2023 04:08:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFGI8fXSP+Lw1IascRiGGKJlECgSrVNkms3vIMx6Dj9pMdTIX/mRi/mjwL/gEtcqa9iYaPa X-Received: by 2002:a05:6402:3481:b0:523:4e41:2a37 with SMTP id v1-20020a056402348100b005234e412a37mr12081305edc.11.1691924899484; Sun, 13 Aug 2023 04:08:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691924899; cv=none; d=google.com; s=arc-20160816; b=0+QBQOM5GHSs1K7lnyh1P+nOTy1h2MbNa7uIo0h0hgqaNktJVuqLeIPC0RTikGouKJ Yliu/SIDwq1VvuY0TkJhNYw4LfCfu/U2ToAlx4hx6/Z55/WT0h/bHSIoLj8JD5EJrudD pLo2v79b2iEjwI4SuFMmIL2x3/NYLJcPYpJrSENizHyoWAAQ2++4xzzl8F5lmN5S7LUN IlBzjzsHonj7RS6mlxy46NRn8em46qUIjf/Q4Ptm+IqEGtkGM2CshRL2rvK4k4yNIbZf mhaUWNKjXXlYVxgevT4Wn+r23Z2oDaA5FKLL39afp/9YircC4IM7YQWcwZOUqK7ZYl2q 0XFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=G3ibQwU37RFcsYxcrChlV1/YJThVqCmpLaOJU4zCpg8=; fh=djNQO1eV7XIuLn3PJkk74lRHWDbEGoFiIlyhOA6GTlk=; b=nIEjdCPj0VAEtbGapMx/XyzdCeVqgUVkPrx8Tw5nMJDyfBPaz6dYHFezV0y+A/BJzE xraEI73AeMMjLy4wfgUtV3ht6++Yb7Gj94meUhOgnBPaScELYcnvKVVJn2NsotcZXgmp KYVJhNKDAS6dv2fWvzIZ4eNXpr4+DbljiHPQ+kF4UoJH4jEo0u6jbc0myOIRFLBIUqp7 rDc2ONMbwtFO76OtBLvFR0MgM0GcPqWuvwUFOClAbvXYmphGG+bDpZFjgTZ5J1DvG2k2 DdoUXwuZ38OwMksqvuj+J/FKokyqYU7LMNqA5nr6dPTYDl9nYrkrZBS33jvGrIsimUVp NtyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=Hmn78Njp; 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=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f11-20020a056402150b00b00523f5fc7b6dsi2931910edw.333.2023.08.13.04.07.54; Sun, 13 Aug 2023 04:08:19 -0700 (PDT) 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=@alien8.de header.s=alien8 header.b=Hmn78Njp; 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=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230393AbjHMIY0 (ORCPT + 99 others); Sun, 13 Aug 2023 04:24:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230395AbjHMIYZ (ORCPT ); Sun, 13 Aug 2023 04:24:25 -0400 Received: from mail.alien8.de (mail.alien8.de [IPv6:2a01:4f9:3051:3f93::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B23081712 for ; Sun, 13 Aug 2023 01:24:26 -0700 (PDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id 1A34F40E0196; Sun, 13 Aug 2023 08:24:25 +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 atE8nOIJa23x; Sun, 13 Aug 2023 08:24:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1691915062; bh=G3ibQwU37RFcsYxcrChlV1/YJThVqCmpLaOJU4zCpg8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Hmn78NjpPNcfc0Rmcp/sHlT8GByDZtJpAEk3v2iyPo9aEvL+ZVKZfj5ipMGovWci7 hZa+xLB+2k7bzXEdI/n5vPqqzia2B9LnMLVz0YQRPGujk2nEp8zrcKUg8Il/b3c6Z4 sTcu2T9UAnoVBwDoFgZKrjc5vOl8ntoND69V1NL9vUr6Ukz98PT27jHyObxeFrfDBz 33xKreoVIEWkJaGPTxjS9MYW7ARAPAgUvrggrAx3xwGlyvw2nnd8HEwx2DyFgYkYdd VutDuBnNYqpdN7Y7D8GAUbbO23iU2jzEeRugErkhU9Qqf29QHmt1bkHeSysJNlT9RF pC9zcffsrTE1O3vToXkiRzzqyhw8fwstlJU5lfU6jyLzJX0XA3z3AQaPjjg5ku9z0Z whjk79bSNr48etaa/1hsyrpCAPGzYL0iM+nGat27S1aW/s+RgTRjrg8nO7741NPdfv z6fR2YfiIStuzGRBCIRoUSRJltUaAhVZmeWKfXGDTC15hcNj1PBxNRWWqLlHHeZQF1 fsKWCZJe0t5FmODlI+pTbigvlf5ScHJEkYW3WdPNZ1kjZfMU07gndGJsozdkx0P+Dd 6nFwZfZ3LtoqQxOs3kC62fJAuDLHL7OoFTJyj1qaw7x8drU9XDmSwym5aQBclXDGYc bJ3vKMUZ9gZtDm8/XmOQT6jo= Received: from zn.tnic (pd9530d32.dip0.t-ipconnect.de [217.83.13.50]) (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 A5C4140E0185; Sun, 13 Aug 2023 08:24:19 +0000 (UTC) Date: Sun, 13 Aug 2023 10:24:13 +0200 From: Borislav Petkov To: Mikhail Gavrilov Cc: Linux List Kernel Mailing , x86@kernel.org Subject: Re: [regression/bisected] Add IBPB decreases performance in two times Message-ID: <20230813082413.GAZNiTLaOxUNUHPvlf@fat_crate.local> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS 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 Sun, Aug 13, 2023 at 03:55:11AM +0500, Mikhail Gavrilov wrote: > Hi, > I use Fedora Rawhide and noted that between commits 14f9643dc90a and > 13b937206866 the gaming performance of my computer decreased in two > times. > I start bisecting and bisect blame this commit > 138bcddb86d8a4f842e4ed6f0585abc9b1a764ff. What do you have on your kernel command line? What does grep -r . /sys/devices/system/cpu/vulnerabilities/ say? Please send a full dmesg, privately is fine too. If the bisection points to this patch, then it sounds like you have IBPB enabled as SRSO mitigation which is the heaviest one. The default one - safe RET - should be a lot better. > Maybe it is possible to find another approach for solving security > issue without slowing down? Yeah, magic. :-) > If not, then provide an option to turn off this slowdown. spec_rstack_overflow=off HTH. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette