Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp4744133ybf; Wed, 4 Mar 2020 09:48:30 -0800 (PST) X-Google-Smtp-Source: ADFU+vu5n0MeWvS0QueI+4BdbGV75phDn7JajO0SS3NvauQRDR99Ql9syrzItPGEWfnLaD9amAgH X-Received: by 2002:a05:6808:8d5:: with SMTP id k21mr2629688oij.121.1583344110031; Wed, 04 Mar 2020 09:48:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583344110; cv=none; d=google.com; s=arc-20160816; b=hyq4Phz42u8Ti4qLUndaKkh0ppZEEDgVFLPv6s11PzFhih6LRNCbhISDktEO2oLEa0 DDDbOSpDvdxVNGXtjxjjjV1++HBbFdOvhMFQYRHTJiqLTnzWjLHmSEXooc8JTFWmMD0O D3apl6oefTj6LSsU6iStpUQI4HAaj7eZD1bGdGYHq1idXgx7N2xQTXVS80xeM4rUIf/h VoatGFGD+0ddhN/ASPH9uI6fQaKtmCe8A/8P11dhJgiJt7ReT0NQBW1bIXuMfyNvshHh 1voBxNX4wSLgLyySZQ48DiT3QRFVNzN8rj9xpHTASI+kqkYuB+ZhgeSmJfMBea5Jdetb 3Zgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=qFsgHwaWXmIBlPzKK/shVPEiYQi0kQM9th6g/XxIkjg=; b=waWue6K/lbzm0/d8vXAeMeLkztFW4zS8JkU1qDKPefyRDNSLJ7iQAbQ2nJB6d3j1g0 jbJRN5CMdEfG0z1SS/ft3wRB3w9f6h1uyrUpvxPEROvyQu6Yz7j/APNVC0s73krOBdtP gqaU09TTURvUU2lya/IzfoDzl9mAxJmClKPtYiru2Iog6/AZArj+QEO7iKB/rjjhp++6 PK5ysuG9NqFhL3H4oAjphdXrUOrBYJrRQKg6TLtsX2hK7MGVqhM1pjZ6Jcdyrw05AX2c k+cpiTKAFIzEMuLvBDHe3jt5ci+AWM9CsomBP4RJwWLjdtRjgpm+tKDJWLcLZhk+IpdG i6fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=VIFzhcIu; 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 24si1527295oiq.162.2020.03.04.09.48.15; Wed, 04 Mar 2020 09:48:30 -0800 (PST) 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=VIFzhcIu; 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 S1729979AbgCDRr5 (ORCPT + 99 others); Wed, 4 Mar 2020 12:47:57 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:33208 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729904AbgCDRr5 (ORCPT ); Wed, 4 Mar 2020 12:47:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1583344076; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=qFsgHwaWXmIBlPzKK/shVPEiYQi0kQM9th6g/XxIkjg=; b=VIFzhcIuGqdaSkzWalEA7OWm10VLvdueXUGKkynPSrEKs7n9bh3UFoaTiaUDhpOdBRKd79 KbHjHXKsrelSznnj1yN/+XXzvwv2tjDul9YxNpB2SdZis0aSq+vq1fBIKfnPOh3cMwlvdi gTr8DbuDZ5qhh05vbfsm+avypNaXQDI= 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-148-98uK-k8WNZ2HS1UAWR7nsw-1; Wed, 04 Mar 2020 12:47:54 -0500 X-MC-Unique: 98uK-k8WNZ2HS1UAWR7nsw-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 162A3107ACCD; Wed, 4 Mar 2020 17:47:53 +0000 (UTC) Received: from treble (ovpn-121-218.rdu2.redhat.com [10.10.121.218]) by smtp.corp.redhat.com (Postfix) with ESMTPS id DBE9F8B56A; Wed, 4 Mar 2020 17:47:51 +0000 (UTC) Date: Wed, 4 Mar 2020 11:47:49 -0600 From: Josh Poimboeuf To: Miroslav Benes Cc: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, linux-kernel@vger.kernel.org, x86@kernel.org Subject: Re: [PATCH] x86/unwind/orc: Do not skip the first frame unless explicitly asked for Message-ID: <20200304174749.iwoyf5gp4lkb22t5@treble> References: <20200304123259.32199-1-mbenes@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200304123259.32199-1-mbenes@suse.cz> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 04, 2020 at 01:32:59PM +0100, Miroslav Benes wrote: > ORC unwinder can currently skip the first frame even if a user does not > ask for it. If both regs and first_frame parameters of unwind_start() > are set to NULL, state->sp and first_frame are later initialized to the > same value for an inactive task. Given there is "less than or equal to" > comparison used at the end of __unwind_start() for skipping stack frames, > the first frame is always skipped in this case. > > Drop the equal part of the comparison and make it equivalent to the > frame pointer unwinder. > > Signed-off-by: Miroslav Benes Acked-by: Josh Poimboeuf -- Josh