Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2343951rdb; Fri, 8 Dec 2023 05:41:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IGC9rDyLxXWNpTWwgcI2Z6b0fB17uaew55GFPa2mKZFrqcMy5ldpdOOuqUuQupyWQqJ9XwZ X-Received: by 2002:a05:6a00:2d13:b0:6ce:270f:2eba with SMTP id fa19-20020a056a002d1300b006ce270f2ebamr19202pfb.34.1702042908847; Fri, 08 Dec 2023 05:41:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702042908; cv=none; d=google.com; s=arc-20160816; b=kbkfX/pjOR5T0gAyUYTUgyE5WAxuIF2yBPa9XdXilF1rK1EnLoenX/p7rNJ9FiDxh3 KKdfvMKGSVrjh5Nur8HoaHaOjAJbFCuzkszLoO6vLKYVkxtiFqy3rkEh7W+g+ORtcqD6 zAeK2O1ZJUfFA43jl0wb3Tpn/AtMSmbamocRhZkUneBNiylcbP/hylWX3zzB906wxgTs CVbOQD6UJVB6FZI7m67mhQppLM2EGlEgLPHK25s1bKOFwVEImtEEkpMkUKxXRzc3TIiD Q3U6+ctt+4V+z+qsdhvtfqk3B7WlfMrinWysotOkkRS7ASfPX3yq1r6fnSmrKYJ77hwv 965A== 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=mEwzSQj49+1V+0OqU5JPdRDMA9pBIqO9QxdbK1+psok=; fh=31pHNESfIDSRXSirSss2cSA7Q2Y3tA2WaWyHSS2Dgno=; b=IjlS76iYUUCz1b7KNMD2njJK3wUBmCUFyHM33tJbni5TDU/44Hs/JDe5MWkZDnKFGe o5wlTz7S2m4tTX6BgJIYkiXoLb4vQuMtWlfB2WuJyrC8mECyj3krKNtHVGdUJ5KomkYg TqeIOobvnYmWxk9eW3Xlp2H3NtnGNt4dYaJBlyd/oRWAMGhfVR0k82A1SzIZtW5iXSHx pN6GyB21jecqpHOSL3lYkwZElUcUdVsKa4yW+9sHcywmbxDjuAiYw6p6qZmVIF+EycmF J9G2ihdQchqj7j9eDSeYpqtQI3oYM7m6m96OWGEVWlu9HPfpEQo6CCDjwiEaLG1bS3hh 2nvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=UZDv1w4D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id 23-20020a630017000000b005c5e276b55esi1532624pga.441.2023.12.08.05.41.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 05:41:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=UZDv1w4D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 5554F824631B; Fri, 8 Dec 2023 05:41:46 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233658AbjLHNl3 (ORCPT + 99 others); Fri, 8 Dec 2023 08:41:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229844AbjLHNl2 (ORCPT ); Fri, 8 Dec 2023 08:41:28 -0500 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 229EC1998; Fri, 8 Dec 2023 05:41:31 -0800 (PST) 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=mEwzSQj49+1V+0OqU5JPdRDMA9pBIqO9QxdbK1+psok=; b=UZDv1w4D/0pm8nMQazAuCgRLvP kUoVvd6ilj8Hjwd0Y5fIUgaEUgLc20msRFexR7C9e/R5jJFuu7bZjqIgiL/klT2qwoH/SACGyjE5D pIY+B9k0Lyqc1ioJ98358Ce9+VsG8tCGQG0nIhqFli9RrusQihcQTNhejxgQ19eW4p1pvj3KvnFig MMidSdAN6qqBAZeYoFmUr/sVh9/o3dTb62t0uTDjAvWYahnB8nERNNsZtaGrTwGnY2ZzvDdXs6hji c+xdyrIm44MYQPUN7hS1K511Z1iwDJHo+/f6P9zSOKIaQo/HioUiRcnxmR7aXAYVsIuA48UUj04b+ r9rIzZCQ==; 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 1rBb5u-006bFJ-00; Fri, 08 Dec 2023 13:40:42 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id A3EDA3003F0; Fri, 8 Dec 2023 14:40:41 +0100 (CET) Date: Fri, 8 Dec 2023 14:40:41 +0100 From: Peter Zijlstra To: Alexei Starovoitov Cc: Jiri Olsa , Song Liu , Song Liu , Paul Walmsley , Palmer Dabbelt , Albert Ou , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , X86 ML , "H. Peter Anvin" , "David S. Miller" , David Ahern , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Arnd Bergmann , Sami Tolvanen , Kees Cook , Nathan Chancellor , Nick Desaulniers , linux-riscv , LKML , Network Development , bpf , linux-arch , clang-built-linux , Josh Poimboeuf , Joao Moreira , Mark Rutland Subject: Re: [PATCH v2 2/2] x86/cfi,bpf: Fix BPF JIT call Message-ID: <20231208134041.GD28727@noisy.programming.kicks-ass.net> References: <20231204181614.GA7299@noisy.programming.kicks-ass.net> <20231204183354.GC7299@noisy.programming.kicks-ass.net> <20231206163814.GB36423@noisy.programming.kicks-ass.net> <20231206183713.GA35897@noisy.programming.kicks-ass.net> <20231207093105.GA28727@noisy.programming.kicks-ass.net> <20231208102940.GB28727@noisy.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231208102940.GB28727@noisy.programming.kicks-ass.net> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 08 Dec 2023 05:41:46 -0800 (PST) On Fri, Dec 08, 2023 at 11:29:40AM +0100, Peter Zijlstra wrote: > The only problem I now have is the one XXX, I'm not entirely sure what > signature to use there. > @@ -119,6 +119,7 @@ int bpf_struct_ops_test_run(struct bpf_p > op_idx = prog->expected_attach_type; > err = bpf_struct_ops_prepare_trampoline(tlinks, link, > &st_ops->func_models[op_idx], > + /* XXX */ NULL, > image, image + PAGE_SIZE); > if (err < 0) > goto out; Duh, that should ofcourse be something of dummy_ops_test_ret_fn type. Let me go fix that.