Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp653424pxb; Wed, 11 Nov 2020 12:42:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJy2dEMSE+DTNePMX6z11GiX1obvjRAhm2bu//xQ9jlcWC4Z0MHoAREn/uEyVfGDekjX6neR X-Received: by 2002:a17:906:2886:: with SMTP id o6mr28419099ejd.259.1605127372137; Wed, 11 Nov 2020 12:42:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605127372; cv=none; d=google.com; s=arc-20160816; b=r+GYRPouJm9WZrqrx/niVtpBYM+T0p7yu7GTTBEDvJk6CD+nQBd4NEcYo9FApr+9wr a5gAVVFoyUL0hMdpPuDrkzvGYet7c9QF8US8POCiNDRmmM1XGSEpr41jL29XoWY6tURu kgYrCVumRahSyrFMcsyCsnIGqcHua+dXHnbOYCMBr6b+SimbNH5xSOhc8MQDo5JjrAsO StxAGjy3HxSG7gHuqNd/fjlFSYzaK/q3rkdRACTQ2G2BY+te35DoNHGiglgKD9iIkPXJ 48hpDLPL07EcbauMYu/6G8Hjjl9mqfJgUnixOrQdUuf53YG7xS/semPOghwqizbhpeh8 O7Eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=+xuKYc0X+UN/uYD5LNznUOLcd4BbelJ9pcfJxobTWf8=; b=ziwrJ/+L9CfmPhDHU8u5d6jyIqjHTYnkca7owcd1y9DW2WrjG/6pF1M8PPHiyop2Rg Lh3Loh9BmaqEzqIuIGhjJWxwBqSoJEwySmdUhtdpwM/ppKZV1RNsVRMA7ArV+5rIcR3H M3CUbDBuDKXDYvzMq29XjN2TqQNIaJ0bccOMA3CdEOC4n7LCZ8ri0PNfvZwYFHCylbdF MwkdxzUQ/flZddRGeVI39DyKyf6BhYI982GaMAQuMIOOJo34bG9aizBmhsB9SJ/pn5lV C5SeyjqBCcpndb8lptHgp4BU5u0fURq5wZSIm72k6fhQA8WNG9KtdP9p/kVU0CfWglxe Tw+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=ZvdQIxRD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u4si2274939eda.182.2020.11.11.12.42.29; Wed, 11 Nov 2020 12:42:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=ZvdQIxRD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726348AbgKKUjt (ORCPT + 99 others); Wed, 11 Nov 2020 15:39:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725900AbgKKUjt (ORCPT ); Wed, 11 Nov 2020 15:39:49 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 239E6C0613D1 for ; Wed, 11 Nov 2020 12:39:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=+xuKYc0X+UN/uYD5LNznUOLcd4BbelJ9pcfJxobTWf8=; b=ZvdQIxRDcDVreTfUZpwVhiNEFJ 5qV1CT9de2hFKXm2ckHMZPEMyzTF759KfYhLLhiV6bNgXNB3DUGZivkBzvTwrBA+jLZ5LsCkdV7/X kRfq3QuKvbRDzyf7li86dLmFrwI2bRbIBRluJdPaUVkKH7rWMLpLxXdDOBirSSVbrECTdYBis9fmh UrSjuWg/lLvHgvrZn8GAOeQ7fIhZ71AHFgQIo0EBDn/LNP6IIEmL2oR/U3YLzCDb7GlorOuaUxL0V Yvbzb6YZbX9MHqr7rDs6DTx1N8Ot+0kDbCAcRaLKT79VInE/7ppSxeu6G4DBckyLL5oCaXnrnimAF 93zdWtRg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kcwu6-0007yl-B6; Wed, 11 Nov 2020 20:39:42 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id DB4C3301EE3; Wed, 11 Nov 2020 21:39:41 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id C78CD2BCE964C; Wed, 11 Nov 2020 21:39:41 +0100 (CET) Date: Wed, 11 Nov 2020 21:39:41 +0100 From: Peter Zijlstra To: Andrew Cooper Cc: Josh Poimboeuf , Shinichiro Kawasaki , "linux-kernel@vger.kernel.org" , Nicholas Piggin , Damien Le Moal , jgross@suse.com, x86@kernel.org Subject: Re: WARNING: can't access registers at asm_common_interrupt Message-ID: <20201111203941.GP2628@hirez.programming.kicks-ass.net> References: <20201106060414.edtcb7nrbzm4a32t@shindev.dhcp.fujisawa.hgst.com> <20201111170536.arx2zbn4ngvjoov7@treble> <20201111174736.GH2628@hirez.programming.kicks-ass.net> <20201111181328.mbxcz2uap2vnqpxq@treble> <33843b7f-ed8a-8fcb-19bc-c76cf00f453d@citrix.com> <20201111194206.GK2628@hirez.programming.kicks-ass.net> <20201111195900.2x7kfce2ejkmrzi3@treble> <20201111200730.GM2628@hirez.programming.kicks-ass.net> <20201111201506.bftpmx4svxn376tn@treble> <61b2538f-7be6-8f4a-9395-03071b5cc6f0@citrix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <61b2538f-7be6-8f4a-9395-03071b5cc6f0@citrix.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 11, 2020 at 08:25:36PM +0000, Andrew Cooper wrote: > > Right, it makes objtool's job a _little_ easier, since it already knows > > how to read alternatives. But it still has to learn to deal with the > > conflicting stack layouts. > > I suppose the needed abstraction is "these blocks will start and end > with the same stack layout", while allowing the internals to diverge. It's a little more complicated than that due to the fact that there is only a single ORC table. So something like: alt0 alt1 0x00 push 0x00 nop 0x01 nop 0x01 push is impossible to correctly unwind.