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 X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AC9E1C4321A for ; Fri, 28 Jun 2019 01:51:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6B4822064A for ; Fri, 28 Jun 2019 01:51:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726513AbfF1Bvd (ORCPT ); Thu, 27 Jun 2019 21:51:33 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33574 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725770AbfF1Bvd (ORCPT ); Thu, 27 Jun 2019 21:51:33 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B0B673DDBE; Fri, 28 Jun 2019 01:51:32 +0000 (UTC) Received: from treble.redhat.com (ovpn-126-66.rdu2.redhat.com [10.10.126.66]) by smtp.corp.redhat.com (Postfix) with ESMTP id 65439196F6; Fri, 28 Jun 2019 01:51:30 +0000 (UTC) From: Josh Poimboeuf To: x86@kernel.org Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , Song Liu , Kairui Song , Steven Rostedt , Thomas Gleixner , Borislav Petkov , Ingo Molnar , Alexei Starovoitov , Daniel Borkmann Subject: [PATCH v4 0/2] x86: bpf unwinder fixes Date: Thu, 27 Jun 2019 20:50:45 -0500 Message-Id: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Fri, 28 Jun 2019 01:51:32 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Here's the last fix along with its objtool dependency. For testing I verified that a WARN() in ___bpf_prog_run() now gives a clean stack trace. v4: - Redesigned the jump table detection mechanism. Instead of requiring the jump table to have a magic name, place it in a special section. - The other two fixes from v3 have been merged into -tip. Josh Poimboeuf (2): objtool: Add support for C jump tables bpf: Fix ORC unwinding in non-JIT BPF code include/linux/compiler.h | 5 +++++ kernel/bpf/core.c | 3 +-- tools/objtool/check.c | 27 ++++++++++++++++++++------- 3 files changed, 26 insertions(+), 9 deletions(-) -- 2.20.1