Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3897550ybb; Tue, 31 Mar 2020 14:22:34 -0700 (PDT) X-Google-Smtp-Source: APiQypKMKi00h2rTl5rsO5zM5grud91ofwxYKLjr2F/XyheFEz6UobbqGlfLmbpvIsMFj7UmXa7H X-Received: by 2002:aca:3b82:: with SMTP id i124mr661817oia.61.1585689753891; Tue, 31 Mar 2020 14:22:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585689753; cv=none; d=google.com; s=arc-20160816; b=BJ/MC/3l/oDYhjbFXuuR7jmW5NMHA0l9ArHJCa8WhnwZQ8wgG6JRk/+pVlH35XolJZ 5/CVDUi0m1sKBFBGCGjcD5mGhTKt6UqEk+We90ffrCsaz6FRGDYuil1QEWoYHGRSREuv fdkZkf3qBVibec+yLV94awf4hgodhLV74GGkd+ODTTq4zqmT9S6wka4s5YJ/LasWdjOo 7m6R8OIJFvzBf7MWsuwWgzWf6U3c6qLfB1h/bZkd07PX7yztWwEi5KLfgmGPHFRH7kqm OOfRSBcK9OW7W+JUSMgxDWaC2Ezx7BVdkixhOddXdCynvD9IUa20+GoEH/iXaWNkNmx7 5dww== 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=l1sC/bXso8WfBMNU+dzmS1e2mbgER1BAzZT3b2y34d0=; b=ndXdFMrLJRlnndmd3zS1cIVcxdcX/biWSeEAFO4ZjIDz3D/Xi9W1spG/H4rC42TI83 hUiw6dKETccXPJcOwsZgI5isGadLJdrU3t1wDlkYZ3f8Afo3Ye+ysE/LfGTcA/bNnsvf xz5uIxj0A4k+5bAbwSPL1AhYXxNphPl3m7oeVoXfONE96UpeOAPeaVW5E5mSj952JL2p prWAK2D1HTET8f1vuYQfn6u+ETFaui6wZeqJ9qW0PT1M+P/4UdqoiR71bFB8YuqPiGQZ Sj3rWapgrNa3uhEocZftlX5ew6XFuVKf7rJFbO/T3qfSLE3LjZbsRNo/poae1u3Ea8Ef cA+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=H7DG0Sgf; 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 b12si10638817ots.192.2020.03.31.14.22.21; Tue, 31 Mar 2020 14:22:33 -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=H7DG0Sgf; 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 S1731303AbgCaVUs (ORCPT + 99 others); Tue, 31 Mar 2020 17:20:48 -0400 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:47156 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727852AbgCaVUr (ORCPT ); Tue, 31 Mar 2020 17:20:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585689646; 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=l1sC/bXso8WfBMNU+dzmS1e2mbgER1BAzZT3b2y34d0=; b=H7DG0SgfjCSO3j0Ph6/RPnun5CAwqCIvDVMlxTKyG/DStyn9rRnqS7FJo7xyXWvuzmJTLO C+5GCs9H32LyeEW0MtM1sX3LfxrFRTzOItYi0dcwKcUTakIRC+Hl6jQaIEZXKSLiC66eSu d7bWbESI8RUD3y870WW2HM8xNNOyo2c= 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-162-Ib-n9lOpMtC0VpYryZW9KQ-1; Tue, 31 Mar 2020 17:20:45 -0400 X-MC-Unique: Ib-n9lOpMtC0VpYryZW9KQ-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 8171D8017CC; Tue, 31 Mar 2020 21:20:43 +0000 (UTC) Received: from treble (ovpn-118-135.phx2.redhat.com [10.3.118.135]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4E2FB5E009; Tue, 31 Mar 2020 21:20:42 +0000 (UTC) Date: Tue, 31 Mar 2020 16:20:40 -0500 From: Josh Poimboeuf To: Peter Zijlstra Cc: tglx@linutronix.de, linux-kernel@vger.kernel.org, x86@kernel.org, mhiramat@kernel.org, mbenes@suse.cz, Steven Rostedt Subject: Re: [RFC][PATCH] objtool,ftrace: Implement UNWIND_HINT_RET_OFFSET Message-ID: <20200331212040.7lrzmj7tbbx2jgrj@treble> References: <20200326154938.GO20713@hirez.programming.kicks-ass.net> <20200326195718.GD2452@worktop.programming.kicks-ass.net> <20200327010001.i3kebxb4um422ycb@treble> <20200330170200.GU20713@hirez.programming.kicks-ass.net> <20200330190205.k5ssixd5hpshpjjq@treble> <20200330200254.GV20713@hirez.programming.kicks-ass.net> <20200331111652.GH20760@hirez.programming.kicks-ass.net> <20200331202315.zialorhlxmml6ec7@treble> <20200331204047.GF2452@worktop.programming.kicks-ass.net> <20200331211755.pb7f3wa6oxzjnswc@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200331211755.pb7f3wa6oxzjnswc@treble> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 31, 2020 at 04:17:58PM -0500, Josh Poimboeuf wrote: > > I'm not against adding a second/separate hint for this. In fact, I > > almost considered teaching objtool how to interpret the whole IRET frame > > so that we can do it without hints. It's just that that's too much code > > for this one case. > > > > HINT_IRET_SELF ? > > Despite my earlier complaint about stack size knowledge, we could just > forget the hint and make "iretq in C code" equivalent to "reduce stack > size by arch_exception_stack_size()" and keep going. There's > file->c_file which tells you it's a C file. Or maybe "iretq in an STT_FUNC" is better since this pattern could presumably happen in a callable asm function. -- Josh