Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1092306pxb; Thu, 21 Oct 2021 15:43:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywtCTs0bXynmfnyusINbZWHPlaJOiNA6IMrnTdNkQRbGql3+sEX7xJlzHK5V08cKcqRr2j X-Received: by 2002:a17:90a:a389:: with SMTP id x9mr9856528pjp.167.1634856225899; Thu, 21 Oct 2021 15:43:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634856225; cv=none; d=google.com; s=arc-20160816; b=Dbn2pQDp6kOvbX7YfQx4AwTa8melr58B6Nap4zYYHxMol4VItSA+0fYUYUpeSzoWJV qCZNjmmZRkn2J+94C+Bdyyg+O/g2QZCU6sYyFQaQWFPoMVi4YfbMHLO1wuDE7SOQSBT+ N1fSdDt9WPLQ/MYWlHpSIcNkcmWYjiTDCihbSF3EHJ3qv45W9fBzy+OMTZFg0CURcagm V3Y2XClBMgNkZ7ZPymDgAQdXbS4kF8WDECwve2FfrWdbiYFhrERmt3ZBVf8y5sDn8G6P FOMJ2Hr8PqQawXCAxbxB7l3gVwKmyBQSf4QsJfatYnCv8JpCysJY4YLplCFc8b3YMlqj DkcA== 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=nBPXAxp8jG+dtVLA+/+js/8q7VpKJL9S5SfJVd3OHdA=; b=jAHAljq3Jmg37zL6K51NJ58DpZhuOOuc+cjG7lShX+CEQtKyJTn59Y5Tj4fT9TPOyI lGjlZlw70Hyk5xdXdRqNxWxxECLJiAi+3tAq8bg6v+jGmb84MExlOGnPaNZPSDfsVdaZ h7YR3UaHhvHQn0XTL27kg159Q27LtDcfEu19nJWpjZ6N6eF5jcGROMk58y7P5MgkuOCR QUPeKnPlUchtL0JZopzDYIDoF0BVZu7hjqLQbV0Fz0vh1KEVWhcD4PRhEQkLZpc8w5s+ cUllodZokmMEEZIQZJrtjMhaH6pShxkGdLAuT4zEh7bcbC+5xHp/gkYrqHiRLo0m7GBt eeRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=CLbUATGo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a193si8935987pge.638.2021.10.21.15.43.33; Thu, 21 Oct 2021 15:43:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=CLbUATGo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231750AbhJUWor (ORCPT + 99 others); Thu, 21 Oct 2021 18:44:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229567AbhJUWoq (ORCPT ); Thu, 21 Oct 2021 18:44:46 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC944C061764; Thu, 21 Oct 2021 15:42:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=nBPXAxp8jG+dtVLA+/+js/8q7VpKJL9S5SfJVd3OHdA=; b=CLbUATGoOs/6ClJd2fwn+OILI9 hjv5AbGJ/3+NU6ugBWQ8/BfSLtEmfrFhID3S2SCRLoJjM13ZoQOgAKQmk0l+DJMDQIzCzCLqCEvME 4Z8eDfqnQIpmQxV3OJWDrujyPBgwSp0ZYMmu/LuWWWO3D7NAKw8nGSDO7GqAoJmGgRxgLsuSDdc8g 0Se17LIMGs5XlXDI3lbNg81zBlKdeU3dguH1/52py+83elFGH+jZgits82CI4hlS5pgfeRxq4RjdF Gr2cMovnOT2ruZCm3pIekTNHJFiQMRRUYvu2TOoeZ0p9/P6mS+eL+SlDIJoxzZ+8HfS/QLzl5gFRj sWyIQJ3Q==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=worktop.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mdggc-00DYya-FP; Thu, 21 Oct 2021 22:38:00 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id 7E2F79812EB; Fri, 22 Oct 2021 00:37:19 +0200 (CEST) Date: Fri, 22 Oct 2021 00:37:19 +0200 From: Peter Zijlstra To: Alexei Starovoitov Cc: X86 ML , Josh Poimboeuf , Andrew Cooper , LKML , Nick Desaulniers , Daniel Borkmann , bpf , Andrii Nakryiko Subject: Re: [PATCH v2 14/14] bpf,x86: Respect X86_FEATURE_RETPOLINE* Message-ID: <20211021223719.GY174703@worktop.programming.kicks-ass.net> References: <20211020104442.021802560@infradead.org> <20211020105843.345016338@infradead.org> <20211021000502.ltn5o6ji6offwzeg@ast-mbp.dhcp.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 21, 2021 at 11:03:33AM -0700, Alexei Starovoitov wrote: > > I nicked it from emit_bpf_tail_call() in the 32bit jit :-) It seemed a > > lot more robust than the 64bit one and I couldn't figure out why the > > difference. > > Interesting. Daniel will recognize that trick then :) > > Is there concurrency on the jit? > > The JIT of different progs can happen in parallel. In that case I don't think the patch is safe. I'll see if I can find a variant that doesn't use static storage.