Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2825525rdb; Mon, 4 Dec 2023 08:28:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IFohP6IWF+5eNc+g8jj1p5B4kv/wjoOOD3WpHl4T9jTXkZvQn0hDN3ocTmy+ReGSuZyPlPV X-Received: by 2002:a17:902:f545:b0:1d0:b6d1:d464 with SMTP id h5-20020a170902f54500b001d0b6d1d464mr878437plf.78.1701707331835; Mon, 04 Dec 2023 08:28:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701707331; cv=none; d=google.com; s=arc-20160816; b=Gayhmq5yDButzKahwHA8a4PJk+OCBhssnLDSMOfMJ0p3qns8tw2TU9XgKKstj0qfqb eP3aivYJKo+Tmzs+9yCplURmXzsRIYWHx5q0beYFRvcE4b+Z4ZKrVsMy5yKclVMXKEWl XyrX8uPjU4FqCl0MWg/qCBQltp8vPLBkLmHRmQ0cG4wPivCyGpjX0o6Wz4eziJm5A7Iv X2W8gSKoWv9K04EW6afqWks7bqNOVPJL7TtbaRJk2ciOdLfHPXvk7n0VVR++u9L329v+ 3cz394rQhRZpAqPYjecsK1hv1rT02WapdcrIkWLYQwMaqJd9j0h04WPIFHSxd1r2yfcc NaGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=0ExnfZxVYVMvXtVrPDzieFUCNS347qRDxh4C9hinedE=; fh=H4+9s64gv10iLfgUqR0dxcqbRbvwH0SJAUs2zQxx+1A=; b=xI6RwSkpwVqR2jfMTd8z8oR8Hnnq4QTyAb/tHj8Iwg+qCMrn6dCBigsjpoRtxoK1d/ RLycxGcwecoeqUC2XQa1e5NyuMYQhbQf4NjfEdpqhjpzzpPVMEbrTNaIBm4dZ5HVt/J4 iqw05G1DR+8YGM3oYuQmh4rldumJnIwKBQMDdmOv9if3x/QYCzBf6qSfXTA5oQcpuTR4 7heY3t0tQgviqoy63NjbkKWKRETaphN7usnJpiST7xreABYwerkWWMdNJomZLKillqlO mOxwlj8PFuZJVWZKUJiII67DYiY1Ubt4d1yzHK8k7YsLHYGUHLxQdvLO1Tzs9JLXU97e uj9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=qEWxb0RO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id v8-20020a1709029a0800b001cc2ef72ab2si7825143plp.68.2023.12.04.08.28.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 08:28:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=qEWxb0RO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id B1E0D804E2C0; Mon, 4 Dec 2023 08:28:50 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344696AbjLDQ2e (ORCPT + 99 others); Mon, 4 Dec 2023 11:28:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234798AbjLDQ2c (ORCPT ); Mon, 4 Dec 2023 11:28:32 -0500 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0719AB9 for ; Mon, 4 Dec 2023 08:28:37 -0800 (PST) Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-332d5c852a0so3578036f8f.3 for ; Mon, 04 Dec 2023 08:28:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1701707315; x=1702312115; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=0ExnfZxVYVMvXtVrPDzieFUCNS347qRDxh4C9hinedE=; b=qEWxb0ROnOfJMhKvDo4MvjXpD2MAGB8kZvwAzAiVX4jO7/Zy/TDimvW0xcVAKwfkUo YHqMPNAcD4lFRVqqeAacrPYdVJuoGVVZru978HyGQA4o7u39bexQrL48ebV6IoSu6Zed tqPaBGdPcJLnQH99LDPc23sIB3omMCEp5JPTk9Lm2ri5mjqXr7gGMGjhBsaERjUUn0P/ Hwpr91AgtC8e5CKVcudPbZax3lY2Mu6dcfNHy35ovolNgehGP1+AjQXquq8auod1DjbI VbA5yoJNtpqNso76h1MCuT946WNW3NSS075h7x1FgFmPAbV70GtkT2E188PToy5sLHTc Xh0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701707315; x=1702312115; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0ExnfZxVYVMvXtVrPDzieFUCNS347qRDxh4C9hinedE=; b=F1lDAX0YcAxtaaNTlthVkIL7PH47oSdHF9j3QTDcPfEYHD9nWRpP75Rr2i6n8Qslar c0D+fnFNM3iKeGuMJiLYC9oVffA4Px+6NryYkHetzpAwEP07l8eJw87Hn6WOxr1ft16K vaUJFexIzFp7Wmd4uC3NTuUZ6/prv5GKA7WiD+z0vrJHWYym3fYyxcQze23HWklgkDPN hqmRHcL58LgTdEiXqo4mQ20jgFuSh7Ev4P5zA9PLKtd7Yujy8xfO8qNo+O7nlQebvZBw UdtVVq7OMWdBRHfQWIG3Zjv4ph9fDyOH9xbDwHK/9mD+ieZbF6yERwtblGZI8CG7XV+n ldew== X-Gm-Message-State: AOJu0YzniribysRKzHTTzryZ4TCP1OVuP/i6lpBzCwWAxXpJkx1hf3Eb G1zWvO6rIcuLP7/nP9KYYy4489YOMCL3zF7iS1632Q== X-Received: by 2002:a5d:50c2:0:b0:333:2fd2:5d51 with SMTP id f2-20020a5d50c2000000b003332fd25d51mr3535271wrt.131.1701707315273; Mon, 04 Dec 2023 08:28:35 -0800 (PST) MIME-Version: 1.0 References: <20231120144642.591358648@infradead.org> <20231120154948.708762225@infradead.org> <20231122021817.ggym3biyfeksiplo@macbook-pro-49.dhcp.thefacebook.com> <20231122111517.GR8262@noisy.programming.kicks-ass.net> In-Reply-To: From: Nick Desaulniers Date: Mon, 4 Dec 2023 08:28:21 -0800 Message-ID: Subject: Re: [PATCH 2/2] x86/cfi,bpf: Fix BPF JIT call To: Sami Tolvanen Cc: Peter Zijlstra , Alexei Starovoitov , paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, davem@davemloft.net, dsahern@kernel.org, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, martin.lau@linux.dev, song@kernel.org, yonghong.song@linux.dev, john.fastabend@gmail.com, kpsingh@kernel.org, sdf@google.com, haoluo@google.com, jolsa@kernel.org, Arnd Bergmann , keescook@chromium.org, nathan@kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-arch@vger.kernel.org, llvm@lists.linux.dev, jpoimboe@kernel.org, joao@overdrivepizza.com, mark.rutland@arm.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 04 Dec 2023 08:28:50 -0800 (PST) On Fri, Dec 1, 2023 at 3:54=E2=80=AFPM Sami Tolvanen wrote: > > On Wed, Nov 22, 2023 at 3:15=E2=80=AFAM Peter Zijlstra wrote: > > > > So the kCFI thing is 'new' but readily inspected by objdump or godbolt: > > > > https://godbolt.org/z/sGe18z3ca > > > > (@Sami, that .Ltmp15 thing, I don't see that in the kernel, what > > compiler flag makes that go away?) > > Hmm, that looks like that's what we emit to .kcfi_traps. I suppose > Godbolt just doesn't show the section directives? Filter > [uncheck] Directives > > https://github.com/llvm/llvm-project/blob/main/llvm/test/CodeGen/X86/kcfi= .ll#L30 > > Sami --=20 Thanks, ~Nick Desaulniers