Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1822169pxb; Wed, 20 Oct 2021 12:26:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwp/fPCP01BoEd0kjOyVGL/J8UtZk5MeEm558A+WzHAheWGK/gZePAD27ir5v6tq3wm1MAr X-Received: by 2002:a05:6402:3547:: with SMTP id f7mr1080203edd.395.1634757966278; Wed, 20 Oct 2021 12:26:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634757966; cv=none; d=google.com; s=arc-20160816; b=i5LomLkVzyolFVMydgsD55jmltT6eMmJRT/ikzvnQEzTXT1rjA0dVFODKviySdqV+T r3GPZtWI6FS0b5spWw704DeVUFLNawd8sgrYKHJT5JF1e5ePMBMDdQ/BiBYj0ICNE/tN KyGAAfjdmzLP/Zi5nsIhfrC2Pm+MG+CRE8+CWKJdpAA/B51/bzVb8dANwAxZoPh8P6Fn vFXdQ/fKCBGE0FAFYw3c+ZlZe4Qi+57t4CQz3dd/DW2wDt9B3jukYqbZkweWHS386llb 8srNlyob+llFwxFnVV1EaClc20RFwo/JWH9bMYMwnZu2EG1MDkA06LMPlomuwXFcYV8s oJ6Q== 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=80kq77wLo4tISSEgSJEwjE/WA2Ew5k8rlteIWmD2+uM=; b=v+0gqhEFrW05wjSaD9echUhGSrixXUh9UXy/0HzZv+n3OCGSh7PYPUmh1qHUKM5COV MOhdbZcX1GsLRH2V+vOv7CloPAWJ2GMa8SDDEMwbIjnmZY3NJt4P8Ifu25ShfyWPqE8f tL8GzOl29fM5aN946ZxrzTb1qpR9NhQNGlOsK5fbfxgnsOEg3HK7Clc3Kt6jiUYgJLp3 OjZBTZaEbQM7gKvtALuon8kBFDRM0019FKi9npyteGH86gbQ0XB43ikrcSZq7MzgM8E2 15/m+CCXljJlGfhx3g9yr/b7C32vT2pRV3CdW7S0arck/VVcB3derY0kmaRb9mi6W8DO hm7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=DgRUBxvM; 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 t9si3808636edr.281.2021.10.20.12.25.42; Wed, 20 Oct 2021 12:26:06 -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=desiato.20200630 header.b=DgRUBxvM; 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 S231547AbhJTT0I (ORCPT + 99 others); Wed, 20 Oct 2021 15:26:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231485AbhJTT0G (ORCPT ); Wed, 20 Oct 2021 15:26:06 -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 9CB27C06161C for ; Wed, 20 Oct 2021 12:23:50 -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-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=80kq77wLo4tISSEgSJEwjE/WA2Ew5k8rlteIWmD2+uM=; b=DgRUBxvMRdXzg7dP/aNv8Rz1Uy kAdAN9Vuznnf+PmTTfBBpJGg/X+z2AhB0JcPgnWPQAZGVLbh13nK2zDSR+VeRn2/R8bZj7AFrwGe1 jugXfqKVH9hEHZw+QHreYlJxrUN7Ds3nkIP/B49C7pdEsjUmKT59/EXDmwgl6M85rAeJ4O1EPc+Fr IJ/xhL/tuHc6VyZQMAcFMJjs/moG3uDuogDRcN7zckvHnoifVuxvmdTF5T8ole3Y5xwLPhWeV22mw FuBO1IqRfCNn27zmWT9ojRi8VxzhmMzbK5bS2kKr3IB9hs9ra+IrmXJGH7WQveIs5evP67Y0nIsI/ VtG4mdkg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=worktop.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mdHBd-00B0gk-JJ; Wed, 20 Oct 2021 19:23:42 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id 6C98D986DD9; Wed, 20 Oct 2021 21:23:41 +0200 (CEST) Date: Wed, 20 Oct 2021 21:23:41 +0200 From: Peter Zijlstra To: Josh Poimboeuf Cc: x86@kernel.org, andrew.cooper3@citrix.com, linux-kernel@vger.kernel.org, alexei.starovoitov@gmail.com, ndesaulniers@google.com Subject: Re: [PATCH v2 14/14] bpf,x86: Respect X86_FEATURE_RETPOLINE* Message-ID: <20211020192341.GQ174703@worktop.programming.kicks-ass.net> References: <20211020104442.021802560@infradead.org> <20211020105843.345016338@infradead.org> <20211020165655.632slp4ujsajis4j@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211020165655.632slp4ujsajis4j@treble> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 20, 2021 at 09:56:55AM -0700, Josh Poimboeuf wrote: > On Wed, Oct 20, 2021 at 01:09:51PM +0200, Peter Zijlstra wrote: > > Alexei; could the above not be further improved with something like the > > below? > > > > Despite several hours trying and Song helping, I can't seem to run > > anything bpf, that stuff is cursed. So I've no idea if the below > > actually works, but it seems reasonable. > > The below fix gets it to run with test_verififer. Argh, I;m fast running out of brown paper bags at this rate :/ > > I do like it, it does seem less fiddly and more robust against future > changes, though it probably needs a comment for 'out_label' clarifying > it only works because this function is always called at least twice for > a given bpf_tail_call emission. Right.