Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3954134yba; Tue, 7 May 2019 09:37:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqyL1Bkfu+sBJ1GanAQW4OsAonsnekfpRjYxbp4ZnulWUiqaYt4yoW9/wXsioe8c5Gr33+Oj X-Received: by 2002:a63:ee15:: with SMTP id e21mr41064107pgi.180.1557247066810; Tue, 07 May 2019 09:37:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557247066; cv=none; d=google.com; s=arc-20160816; b=q2NWZxH0FW8ROFMczZCg/sKqAk57QcWLyrBrB451Jjkwz4evJ2F3cO0hsrMTmSx6nw 1lLLYXh+XwxllenG036DVUxwN28fIt7QqxBgmI42wjsY2BOIrXDcp0tQcLQMCIL5iDnf vpaMQ/ZaDUSToGSacB5qBSdLZ+VxZ7OWSmopQYG5GPjb8+tXPikZ9NPZmNfLL3z9/2fJ BLNhXAK51mm61CpTRCZJxEYiIStZ9iZzE8v1eIOyKEqd03Dm/COqhzxDWkCWn3ct2J1m LAFFKaDuYGQsXpvQ98yk3O5/0gi0+IU+vf89aKurA/18iFf8n9t0djtYa5q7gD/Bcjp9 1X0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=OwZTZ1ye0D7Ag0dmc5Qr6LUWP6U5n+yawypfjqqzLy4=; b=sDtppwCcL8/aji8jerNb3Foi9sXwjhgJaMrAnGWtQ8XitayIgW9sgFXeLepoVyamgE CXUTq7zpUwCTCe+TJ9DM6aKJcvTRUuKMUIWkoqnwf+iM9xiWG1QqF7wibnp9clAd/+Od bhCOM6uw3ym5D/2M0z+Jv+4fVF3hcoaUhOoDgkOy6YP3IRi4ssEKqZe58DsEKmNbUB6E eFRweQkeIZTDrzFZ/LmqCo1sDMEzygLQdaQrusDgvsM5gXClgf7UeD47XBPdbnOC6NVH pbWQ14te3Md8YjTPbzazRigsY6omD5CzjrA+rfVjjxXIt120BG1B4RdSmTwTEfixYt5k Pg3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=ZlA04PGR; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j9si18488633pgp.285.2019.05.07.09.37.30; Tue, 07 May 2019 09:37:46 -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=fail header.i=@infradead.org header.s=merlin.20170209 header.b=ZlA04PGR; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726694AbfEGQfY (ORCPT + 99 others); Tue, 7 May 2019 12:35:24 -0400 Received: from merlin.infradead.org ([205.233.59.134]:40306 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726197AbfEGQfY (ORCPT ); Tue, 7 May 2019 12:35:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.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:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=OwZTZ1ye0D7Ag0dmc5Qr6LUWP6U5n+yawypfjqqzLy4=; b=ZlA04PGR8vVdeot8a14D0ychS eWlNjZpfHpgXS1NucZeTFXBN6jJkNeLPtBeU8nc6mOgBgLRA1xaPZuwO3hTJ77EaFcmQFRWUBCeqP pO44MV2/RaY16zho2uINk0qCw4dSVUhH10mHw3LlTxvGNWIJ52/B93mC630NkcbkEWz4NZtDvSoY6 dXyLN3Nt8Adquvr7tqbkZzVGmNW9CrqxJ+5NkPrpdKvDDW3jx9uFyc5VIRe/3NoO8SWwXSOAaaS/1 M6ADRbzJItWnPrqpwVoIpbeAlzU/AHKAqtcQkPYt/aIoQVcTZy6A4Rk3O551zLBoYmjkiO2TyskkC miJyDezIw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hO33D-0001Qi-BY; Tue, 07 May 2019 16:34:43 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id C52CC20F40185; Tue, 7 May 2019 18:34:40 +0200 (CEST) Date: Tue, 7 May 2019 18:34:40 +0200 From: Peter Zijlstra To: Linus Torvalds Cc: Steven Rostedt , Andy Lutomirski , Linux List Kernel Mailing , Ingo Molnar , Andrew Morton , Andy Lutomirski , Nicolai Stange , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , the arch/x86 maintainers , Josh Poimboeuf , Jiri Kosina , Miroslav Benes , Petr Mladek , Joe Lawrence , Shuah Khan , Konrad Rzeszutek Wilk , Tim Chen , Sebastian Andrzej Siewior , Mimi Zohar , Juergen Gross , Nick Desaulniers , Nayna Jain , Masahiro Yamada , Joerg Roedel , "open list:KERNEL SELFTEST FRAMEWORK" , stable , Masami Hiramatsu Subject: Re: [RFC][PATCH 1/2] x86: Allow breakpoints to emulate call functions Message-ID: <20190507163440.GV2606@hirez.programming.kicks-ass.net> References: <20190506215353.14a8ef78@oasis.local.home> <20190506225819.11756974@oasis.local.home> <20190506232158.13c9123b@oasis.local.home> <20190507111227.1d4268d7@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 07, 2019 at 08:31:14AM -0700, Linus Torvalds wrote: > The reality is that changing something fundamental like the kernel > stack at this point for an architecture that will not change in the > future is silly. In my eyes it makes sense because i386 is a minority architecture at this point, and 'nobody' wants to care about how its different if they don't have to. > The reality is that Peter's patch is much bigger than mine, because it > needed a lot of other changes *because* it did that change. Yes, I change the way stack layout works on i386, and yes that affects a lot of code. _However_ all of that code is now more like x86_64 than it was. Earlier you said that kernel_stack_pointer() was a horrible thing; and most/all the code that I ended up touching was similarly horrible. Would you consider my approach later on, under the guise of unification? We can work on it for a while, and make sure all the iffy bits are sorted, no need to rush?