Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4976696ybi; Sat, 6 Jul 2019 18:35:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqwgqpnazi5noDboTF/93FAUlh3j69QAhAsodsJ24JKMIY3AO7exkDgOWOu5foe3a7YWdqqU X-Received: by 2002:a17:90a:8a0b:: with SMTP id w11mr14451451pjn.125.1562463325856; Sat, 06 Jul 2019 18:35:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562463325; cv=none; d=google.com; s=arc-20160816; b=d2EhgTwe2BhcrR6/7DuOnKRTJ93Ih2QVq60oCglOI4UWCxKHwboU5VNWJDt65zckCi xhTFdpp7S7nDNDahSy1XpVWu3/uLiiCbbA8AIcOYF/KGKMl7TNt1TiWzE+iZr6Q+8C9a 528dbR16pEEGZduqcnZ4zbzhDQ7yo+ILIYrTC6s+uTzuVzJx6uMpaB4+ImAKBOdcaVpz MV9L1BHfM3CADrUF/gIwPLzQpjecTVhhosvcWx4FRmm5e5LyoypV77b1MrhG2a3vLpYa ssymYJ0XAC75PuW9Nst7cRVDTgXJcPcYlLqQnvYuXgmBWqC5E1HMa5YMSl9wlkzGo5a3 JKeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=VV54JHPbDMGN5F8NjQFt0IiFN40L3IlRzzQedIOl9Fg=; b=A+ZhF5k18fKyzYJ2ivvlVNcZhXjSafAtL5EUNnSmvcHjxclyl5PZFG8m6uHH/PSERJ MZ+FrsyQO4UMDDO6HLMm3SVicqQY4wYEJvREDRJcX+RwPttCzLKzTbfdO/Xc5lE4TcP8 EnZ1dsm2iZ6SgcGUkzQNTMUsBpS+8MwfYhs8C06NKjpSeIKHLpdhFf0UGy0Oem01sFdE pPb619cwnYie9UGBjdT6O0B3ZYYNFAl+EQ7XUCl6vhTZK8mKD5jG+cUclgEb1CbbXurR 9rcLH5dCxEGvXKeg2j2d7+aVKeBy794/e4TCIeiGZ0lNCqbXj0qfXPGNp2R8odu72Drx 7Idg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 123si13501551pgb.374.2019.07.06.18.35.00; Sat, 06 Jul 2019 18:35:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727071AbfGGBcL (ORCPT + 99 others); Sat, 6 Jul 2019 21:32:11 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59116 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726974AbfGGBcL (ORCPT ); Sat, 6 Jul 2019 21:32:11 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9555B31628F9; Sun, 7 Jul 2019 01:32:10 +0000 (UTC) Received: from treble (ovpn-122-197.rdu2.redhat.com [10.10.122.197]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5A81C2A2C0; Sun, 7 Jul 2019 01:32:08 +0000 (UTC) Date: Sat, 6 Jul 2019 20:32:06 -0500 From: Josh Poimboeuf To: Ingo Molnar Cc: bp@alien8.de, hpa@zytor.com, songliubraving@fb.com, tglx@linutronix.de, rostedt@goodmis.org, kasong@redhat.com, daniel@iogearbox.net, ast@kernel.org, peterz@infradead.org, linux-kernel@vger.kernel.org, linux-tip-commits@vger.kernel.org Subject: Re: [tip:x86/urgent] bpf: Fix ORC unwinding in non-JIT BPF code Message-ID: <20190707013206.don22x3tfldec4zm@treble> References: <881939122b88f32be4c374d248c09d7527a87e35.1561685471.git.jpoimboe@redhat.com> <20190706202942.GA123403@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190706202942.GA123403@gmail.com> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.41]); Sun, 07 Jul 2019 01:32:11 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jul 06, 2019 at 10:29:42PM +0200, Ingo Molnar wrote: > > * tip-bot for Josh Poimboeuf wrote: > > > Commit-ID: b22cf36c189f31883ad0238a69ccf82aa1f3b16b > > Gitweb: https://git.kernel.org/tip/b22cf36c189f31883ad0238a69ccf82aa1f3b16b > > Author: Josh Poimboeuf > > AuthorDate: Thu, 27 Jun 2019 20:50:47 -0500 > > Committer: Thomas Gleixner > > CommitDate: Sat, 29 Jun 2019 07:55:14 +0200 > > > > bpf: Fix ORC unwinding in non-JIT BPF code > > > > Objtool previously ignored ___bpf_prog_run() because it didn't understand > > the jump table. This resulted in the ORC unwinder not being able to unwind > > through non-JIT BPF code. > > > > Now that objtool knows how to read jump tables, remove the whitelist and > > annotate the jump table so objtool can recognize it. > > > > Also add an additional "const" to the jump table definition to clarify that > > the text pointers are constant. Otherwise GCC sets the section writable > > flag and the assembler spits out warnings. > > > > Fixes: d15d356887e7 ("perf/x86: Make perf callchains work without CONFIG_FRAME_POINTER") > > Reported-by: Song Liu > > Signed-off-by: Josh Poimboeuf > > Signed-off-by: Thomas Gleixner > > Acked-by: Alexei Starovoitov > > Cc: Peter Zijlstra > > Cc: Kairui Song > > Cc: Steven Rostedt > > Cc: Borislav Petkov > > Cc: Daniel Borkmann > > Link: https://lkml.kernel.org/r/881939122b88f32be4c374d248c09d7527a87e35.1561685471.git.jpoimboe@redhat.com > > > > --- > > kernel/bpf/core.c | 3 +-- > > 1 file changed, 1 insertion(+), 2 deletions(-) > > Hm, I get this new build warning on x86-64 defconfig-ish kernels plus > these enabled: > > CONFIG_BPF=y > CONFIG_BPF_JIT=y > > kernel/bpf/core.o: warning: objtool: ___bpf_prog_run()+0x8da: sibling call from callable instruction with modified stack frame I assume you have CONFIG_RETPOLINE disabled? For some reason that causes GCC to add 166 indirect jumps to that function, which is giving objtool trouble. Looking into it. -- Josh