Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp2552009rdg; Mon, 14 Aug 2023 06:19:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEnj/IuXuHUPDywe12wSAVT5AIC6vGeuz4WA0vVbfzFzOMb6msLp58m98L/9kTTJ1cq2z5x X-Received: by 2002:a05:6a20:1444:b0:127:76ab:a6ff with SMTP id a4-20020a056a20144400b0012776aba6ffmr16395281pzi.22.1692019151591; Mon, 14 Aug 2023 06:19:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692019151; cv=none; d=google.com; s=arc-20160816; b=LaT18qkY92XaOzaGwzLqL8x3WhXLta2eQcw9iKj6QkJFovCXUQeM/CL7eBxgOtna/j ru+lMUPT0+0or7vu9Je63eLvya1peUGCqDIbemNv89MIU+DRDIv1dF7rIXFCX5vy4W7l IeUwIfO+4xcsnW8aI2p0vHrfMbb56hvqEyPrEHZaxEnR2J1Xy229xWXqaiK+NUhv8kl/ ugMilfb3SSw+CGE3jYHBT7+vnonwMBejg7E8rbnjx+cgAELsIMtTkg8jGcMSF0z7F/JA HcG85dUbLD/N451oayThpTc6y/LIskoOwbsD4S5rWeArbfoL5Lzqqv9g8bsH6558oNWl mV8g== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=VmbUR9tUP0TcTP+lPR92EBnfGUDP6/2qUwJVhdNUHNs=; fh=WsHM+/0CMcpxR32zEWkjQHg/KVtcarw6mgdpQItOzEY=; b=lVHt2rirqIvO3w2EuSv9aLf41QHBDSstcC/GOb5moaskwn1KDWoFfmB8Iw0scr2i2k TemdUTFeW/2gVKL7kKur45tj7WLJ4hmtKeXSUgWfNY7iNsJOv6xs6kk1WkLk0ESHxMQq jnophF6JQvvNArv2RI6qJmC3vRCyQXpvj2YpbZRwSwmmYPKInAw6nHKACxLsZRy6EJJ4 e3b16qgoYg167Jt5OVM+zx+qDJTs+vtnBzasa/WIfzr13z7Dv1ayzvlmeziU3esVb0wU /jCSIDVkgPFaAv2+h5yrkRjeHF/nJJNV4bSH1EWPJIw8VINdUJFY3KI7zWHeiAGzOzGm Xbbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=rHFIPdQC; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x66-20020a636345000000b00563fbc0000csi8397636pgb.254.2023.08.14.06.18.59; Mon, 14 Aug 2023 06:19:11 -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=@infradead.org header.s=desiato.20200630 header.b=rHFIPdQC; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229896AbjHNMhh (ORCPT + 99 others); Mon, 14 Aug 2023 08:37:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230063AbjHNMhW (ORCPT ); Mon, 14 Aug 2023 08:37:22 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D203E4A for ; Mon, 14 Aug 2023 05:37:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Transfer-Encoding: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description; bh=VmbUR9tUP0TcTP+lPR92EBnfGUDP6/2qUwJVhdNUHNs=; b=rHFIPdQCNKT6dKcmT7hnfDKxtb sPjTomS5yXHNPdbBfSsv5p8eanIcFFMpdZq7KX3YDJ59RXoZnrzTIGxaMA9ANElpW8vXRKMlIVoAa XbOhpWp3ahvz2WGghZT8eOGC9Q+8Jj/rmIddaEoVUAa9ZlU+mmDKWxqCJ/VEc3VB9X6FxdoxVUrqF ELBfU9SvyTd5PxUEyJfLDlIFys74+ljtqn/vSPAe6iZPSMMBkoQjr6iFyBZbK1F1656opUQ+YQqBa uo9QnijZnqZsDjDKt3a2FDlh6448YhQiXYhToSI8in7gOdWOVL2tNDbGKLRMB9stgVdCYuZZTzChu 2Ep/8muA==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qVWor-00Aac3-2R; Mon, 14 Aug 2023 12:37:14 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 6946F300137; Mon, 14 Aug 2023 14:37:13 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 51F0420C1700F; Mon, 14 Aug 2023 14:37:13 +0200 (CEST) Date: Mon, 14 Aug 2023 14:37:13 +0200 From: Peter Zijlstra To: Mikhail Gavrilov Cc: Borislav Petkov , Linux List Kernel Mailing , x86@kernel.org Subject: Re: [regression/bisected] Add IBPB decreases performance in two times Message-ID: <20230814123713.GI776869@hirez.programming.kicks-ass.net> References: <20230813082413.GAZNiTLaOxUNUHPvlf@fat_crate.local> <20230813093502.GBZNijxgueFxBTxWwG@fat_crate.local> <20230813111425.GEZNi7EXyHOLQTNzFg@fat_crate.local> <20230813141945.GFZNjmgZbHvMhLYtJl@fat_crate.local> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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 Mon, Aug 14, 2023 at 03:30:51AM +0500, Mikhail Gavrilov wrote: > On Sun, Aug 13, 2023 at 7:19 PM Borislav Petkov wrote: > > Nah, most people search the net and usually find the documentation, as > > past experience shows. In this case, they will find: > > > > https://kernel.org/doc/html/latest/admin-guide/hw-vuln/srso.html > > > > It will be there next week but here's the source: > > > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/admin-guide/hw-vuln/srso.rst > > > > -- > > Regards/Gruss, > > Boris. > > > > https://people.kernel.org/tglx/notes-about-netiquette > > I am figure out why I noticed lage impact of safe RET on my system. > safe-ret + KASAN = decrease performance for 50% in all scenarios > I use KASAN on a daily basis to catch bugs. > Is it possible for systems with KASAN to make a more optimal approach of SRSO? Why do you care about speculation things on a dev box?