Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2743362ybd; Thu, 27 Jun 2019 18:51:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqw/sxYYNt0v6YbElMnFc7S+BQSo5mT3qvO+vpVQ6RM4R6UiucaiWaa2vXQPoxjVhWmWk5JQ X-Received: by 2002:a17:90a:db52:: with SMTP id u18mr9905625pjx.107.1561686715184; Thu, 27 Jun 2019 18:51:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561686715; cv=none; d=google.com; s=arc-20160816; b=zmk7KT0TyBExx67dfatCzHJkgc2sfLAQt2++NMnfEq+lKln9Pzgt1rj/viSZ1DAene 5FQzHgfmmCSJZ0J4sNzhDDi9tl8Fz6oN0DGuBEX9C1RiF94jnSldQFCfCIt7Ue3HyO17 dvHGX7bJHNfI3qJE6JplB6uBuyH21PiLR/csXq+LV5KlGZiB77qfnC1dLxPnTux6nM0w JQ0deMNLbGWmYjCqPtPkyO2x8LkcPaa9pT6DMWHfZpduZ2Ubia//XPN90PZ7wdyjRitg RiOJSTLPI9DhKlOtkQii7jUw7zHwa/G7q3R/Gx62VOHuRhh05AWiBuvz6R9YFTtRs8Nc oPTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=UjPC0oSsh0nbmC7IcN1moy+pAkFM6Q5AgEDyk8oNrUs=; b=uY/OQQCLiKGlhBlO0DMXI07FdcK+ZZ1df4r+xtmBbJcF9qhzxVWCuNkDXJdZDOaUhh A8OIPJOVNZVOkNWXGOfjYBxIt8uEYvUW+Y8OjRg65Yww3djZ5JtS7JOQ/3XCFZiRrNWT 86zszvKEbP4afwzK719QPt36yhpvmGWtVPKpxO0qDTJFHc/r7/H94wF4+ON8kkKgi9h3 vSD7wPuPgTE9cAuqxl5C6+tlfVxSKeexmLm+xnqkO/MYGHXEUun5ShzwbI3dDyOiAao2 l5ShwfFBjr1sERKMl0BZCwY1UHmFRoDqgOpOyVj0SeJbt04KK0tPWIW2Xbs98PzDt77j 2i8A== 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 m32si649601pld.236.2019.06.27.18.51.39; Thu, 27 Jun 2019 18:51:55 -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 S1726487AbfF1Bvd (ORCPT + 99 others); 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