Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp758765ybh; Thu, 12 Mar 2020 10:34:14 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuU3hvr5DTqHl7mJ6cjwdqViB8Vn5Q3eR8rNEvWGp4LnP6Q27I5u73Jk4gNFBMUhBwkRsH5 X-Received: by 2002:aca:d503:: with SMTP id m3mr2672115oig.165.1584034454767; Thu, 12 Mar 2020 10:34:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584034454; cv=none; d=google.com; s=arc-20160816; b=1IknpYOoZu5Gujw5HibyBEY6sEAnHbwoSnWMutSHE6wseAsQnkRLzJRQJL2KoMxFqT SFCDG6C/3hwHj7/1kaE2WbEk4E8RiIXqiGpRvkaA0DfRVV6UGNTGE/UD/UmtpCfTYZBD A64zA47Qbmwq5iaIdmWrYV7U/8BWryQIR4H9tkLv96+d6rRjK+s5Lqauc9FSXna5TU4F dEi8fPhQNVTBCdnjRlpHwpk7Xzqx/ptYvUn9ZsaERWR73WNv6DUg8mFZ+X/Z7oSpz4cJ T5QwU7Sw0nsqtkzb/OoQnFXSYHipyhaxHHJ5mpVX9dE6skq+GIZI2QeT1sfbQIZ9Pdix fL1g== 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:dkim-signature; bh=3R2Gqj26CcpZZ/eyppvbqet2wzOeK+LC4RTK9uEl04I=; b=Y0UowEGgGbIJJ/nYcgZh5z/EIUnW45QMDwz4nbHymtJOZDT7+qWtKFkG0sbOXOd39o FLeg8LCicE/RA7DRqtEa+kFtlunkLGS9vDomkbfwnbMEWmtbqWuhH4GMNKzlm9wU41GC y/jPPfdu6LdEJ6ZxKoRZ7T2DnrY52l4v+JmDscp9dfVmFhhTOe1Ru4mk2mV+4oORtIkw rnsIA6j7zDPiIsGDxKZ6F5HsNZoCdNNf1Dr7h2xmqfntJfszcNSCqyBKaDn4anP7JGBI xHvxDfopmv6iTPtRRlxzg520IrcUPvt0jNQ1dXcFXk0UI43V1SR7wc8S6U+ppRjTuIgY WAAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=F2C6OCux; 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=pass (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 b21si3336583otp.79.2020.03.12.10.33.48; Thu, 12 Mar 2020 10:34:14 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=F2C6OCux; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726533AbgCLRa5 (ORCPT + 99 others); Thu, 12 Mar 2020 13:30:57 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:51995 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726194AbgCLRa5 (ORCPT ); Thu, 12 Mar 2020 13:30:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1584034256; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=3R2Gqj26CcpZZ/eyppvbqet2wzOeK+LC4RTK9uEl04I=; b=F2C6OCuxD8tX8FdtRyfqDPEYZqJfpU2VzV312ux160TGfM1Ei38QVbqRBWaQ9xeeDX63Cp c8ksBHV4RLQJjL/tEm3micviIN7AzrcbaS6Jtjttu3LRmB72kHA/TyBfasdR95R5q8yIYo FiibXbnVowWSMHPOZjNvuUv37G3VArY= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-225-fi-tcavTNiqQ7jN_0gUoaw-1; Thu, 12 Mar 2020 13:30:52 -0400 X-MC-Unique: fi-tcavTNiqQ7jN_0gUoaw-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 0F56710BEC26; Thu, 12 Mar 2020 17:30:50 +0000 (UTC) Received: from treble.redhat.com (ovpn-122-137.rdu2.redhat.com [10.10.122.137]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7F0CD60BEC; Thu, 12 Mar 2020 17:30:48 +0000 (UTC) From: Josh Poimboeuf To: x86@kernel.org Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , Vince Weaver , Dave Jones , Jann Horn , Miroslav Benes , Andy Lutomirski , Steven Rostedt , Thomas Gleixner Subject: [PATCH 00/14] x86/unwind/orc: ORC fixes Date: Thu, 12 Mar 2020 12:30:19 -0500 Message-Id: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Several ORC unwinder cleanups, fixes, and debug improvements. Jann Horn (1): x86/entry/64: Fix unwind hints in rewind_stack_do_exit() Josh Poimboeuf (12): x86/dumpstack: Add SHOW_REGS_IRET mode objtool: Fix stack offset tracking for indirect CFAs x86/entry/64: Fix unwind hints in register clearing code x86/entry/64: Fix unwind hints in kernel exit path x86/entry/64: Fix unwind hints in __switch_to_asm() x86/unwind/orc: Convert global variables to static x86/unwind: Prevent false warnings for non-current tasks x86/unwind/orc: Prevent unwinding before ORC initialization x86/unwind/orc: Fix error path for bad ORC entry type x86/unwind/orc: Fix premature unwind stoppage due to IRET frames x86/unwind/orc: Add more unwinder warnings x86/unwind/orc: Add 'unwind_debug' cmdline option Miroslav Benes (1): x86/unwind/orc: Don't skip the first frame for inactive tasks .../admin-guide/kernel-parameters.txt | 6 + arch/x86/entry/calling.h | 40 ++-- arch/x86/entry/entry_64.S | 14 +- arch/x86/include/asm/kdebug.h | 1 + arch/x86/include/asm/unwind.h | 2 +- arch/x86/kernel/dumpstack.c | 27 +-- arch/x86/kernel/dumpstack_64.c | 3 +- arch/x86/kernel/process_64.c | 7 +- arch/x86/kernel/unwind_frame.c | 3 + arch/x86/kernel/unwind_orc.c | 185 ++++++++++++++---- tools/objtool/check.c | 2 +- 11 files changed, 201 insertions(+), 89 deletions(-) --=20 2.21.1