Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp7422118yba; Thu, 2 May 2019 09:32:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqys53hY7aoGN0YadFj0Xw+V9Dn8YlkCTqsyLrNxAmpD7LE9TGj/t9ypMRtHjkgJy0WZo8Gq X-Received: by 2002:a17:902:6b44:: with SMTP id g4mr4713226plt.157.1556814753656; Thu, 02 May 2019 09:32:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556814753; cv=none; d=google.com; s=arc-20160816; b=I2Jc0xrRCEhZUoSxwcvgwLQzjxSSjMTsiM3tgnbc/6d3OOkIpI3XdS0ktD1ku/aiHs pqcrLX7YiUYVeC2huaWE1gbgqE2SX0IO6RpP8Ir2YEVoHYUWuVzEpFNbiW0zUQ36085H Vk/nenT3bbeIi7jarmrKtl8iTTyjs5lP29i/hfT4bl5fM4vsNNsZnAoV4RVcsANR3rjh wCGOEN/w801gOAeIdddaX18/SVQ9cWvBwBDJs5boLHIjY+hb5OIIIPvQDT6in59MmIaI rkK66Xm+1hUq4Uz6ICjN1Q/OpCSu5OPdIojwakKRyJJJ2Ra85Yp9ek9dmC74fMoxfx1b OUyA== 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=d/mogJNEljMgTR4EF767wY8IUbjJwC9Mjt7j8iKP5Ss=; b=Z2P2yPrrQDnlgtLbNq0x1/i6nW1MsNlpoAW1iYvmM/Qc654kVE9nJ6vrFRtkS5QDUX 8yK8iWcctxHz1gCiMsCsKXQWme0jnaZmvV2fl6dWHeUQoHHA61FUDMB4S7VdMjy9PHCy 01MKjAtsVIxPPyeRBqdKdt7X/t3eidwxQKxhmTwxHVF2Xthko1IKSE5RMZDgZptiTLMb bco5UgbZMzS4aKo2/KZRx8c5XtArPupkSU0RSu/Rqn4WEIWosE+ICE/5iRBtwYbz+KR2 6urPF8ekcSY3oaINnO9sK38tiNKMdNBOCyq/foL3F1VExNK4h4vObotOa5vfyf14aoAz CVYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=uhbId7pi; 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 d66si1866408pfa.201.2019.05.02.09.32.17; Thu, 02 May 2019 09:32: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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=uhbId7pi; 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 S1726572AbfEBQaH (ORCPT + 99 others); Thu, 2 May 2019 12:30:07 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:50860 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726303AbfEBQaH (ORCPT ); Thu, 2 May 2019 12:30:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.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=d/mogJNEljMgTR4EF767wY8IUbjJwC9Mjt7j8iKP5Ss=; b=uhbId7piLVXP4Ru9l8Ti/O27c ZcWp8dbZDP2EGhcZiHtQyJwDR6ECvulcXyh31Bfw9jLNVY1wXFCNjhVqGmcwuLgv01ylniHTj656j BGjYd13Oj/Ed3fuRuLCD1SxAwYtPwBz8Q49QPzObe1qDRW8l/SqWMBPgNlqfPdWjgH3b3AWeRHnDe 93gJa2g8w6lRp/RFbg1zNtxJD6Ud/S6mw0Sxn0Xuh2i5+kAvE84A1khjbYt4X/s3H1Eay6Y9ShL+X abYQVze9WZPb32yxMlSmduNDCFkN5+jsfIUUUasO4/VxybjcYcJulmOXwn0m8y56SWoZ+H63RXMeU phN+LLNwA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hMEaX-00016L-GN; Thu, 02 May 2019 16:29:37 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id BCCE22066BB89; Thu, 2 May 2019 18:29:35 +0200 (CEST) Date: Thu, 2 May 2019 18:29:35 +0200 From: Peter Zijlstra To: Steven Rostedt Cc: linux-kernel@vger.kernel.org, Linus Torvalds , 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@vger.kernel.org Subject: Re: [RFC][PATCH 1/2] x86: Allow breakpoints to emulate call functions Message-ID: <20190502162935.GC2650@hirez.programming.kicks-ass.net> References: <20190501202830.347656894@goodmis.org> <20190501203152.397154664@goodmis.org> <20190501232412.1196ef18@oasis.local.home> <20190502162133.GX2623@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190502162133.GX2623@hirez.programming.kicks-ass.net> 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 Thu, May 02, 2019 at 06:21:33PM +0200, Peter Zijlstra wrote: > Much thanks to Joerg Roedel for talking entry_32.S with me. > > TL;DR, on x86_32 kernel->kernel IRET frames are only 3 entries and do > not include ESP/SS, so not only wasn't regs->sp setup, if you changed it > it wouldn't be effective and corrupt random stack state. Also, i386 is bloody insane...