From mboxrd@z Thu Jan 1 00:00:00 1970 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5EB9DC433F5 for ; Thu, 21 Oct 2021 22:42:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 46785603E8 for ; Thu, 21 Oct 2021 22:42:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231515AbhJUWoq (ORCPT ); Thu, 21 Oct 2021 18:44:46 -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: bpf@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.