Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4223315yba; Tue, 7 May 2019 14:25:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqxJhdnBHxgBgBXe9P3epZfXn2pCNySRfytE7ToCIAprJQVQLCchaKsR+M3VaNBzZmTp4WC5 X-Received: by 2002:a17:902:5c5:: with SMTP id f63mr41586883plf.327.1557264336539; Tue, 07 May 2019 14:25:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557264336; cv=none; d=google.com; s=arc-20160816; b=hnMH+icXLDNxncwkxdcajSX1RBD/3HiOYxH+GE7OmMU1VZb6CGe2C3pMOD0QQWb49t dQ0tP7klu8hwY2yRUk6rsMFHx5eoU9IDvqrpBwBoD57PB29qYmMqY2rxGDwWc2n2IuU4 DHgplO0WIcxAbvUrP1GeoY+kpIqlMu0DQr22m7TxyGTH3hS6jeEDZ0sQEEDCLW6MhBSO xmOHy6zvR9m8iW4YsEEuxOjlFsVwzdEnnwu5R6vIMIMRvzYJe/ddxaAvI/bbkPN01aRr DE4iVhAL1mbwSE7pLWehR8y3OnTTRiuS8zhnMTXpf8Qs0aFEcQvrWjVj2UCg0BWLN/LW bdCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=8fz5pCY9GKJhqlwUPHi8uKd9RKWRorghwcURUcMUhgY=; b=rdCJgo1iSanHVTwqKHIOCdM5f9OhlhzHurgHm2hyZDCriggC49oTd8V/NfKsSNhicw JWNv3UsP+QbD3NljCFrAD3q/1SzzBEVoqlcHeryJOWPxPlvs2epxLCsa26LCjh0BDMQW SEkub3A/Sw+XRUa+Nycdm27j+DuIdkGt/rZP2pxvmpndl3dSoCDi9fguGLWR6nOBQEFB YpuVyMVs97lgOXf7PWDPlGDVnLnwxKZeqdx9AWE/XKQ+HRppGhY0/FUfYlbkDR+mvskA bBNIETcSi2nFgIVCY1DrI0CVGOIUBwpwPgiB1lQio9/mdfCZS+THQ6IGu15HJbK293hs yPaw== ARC-Authentication-Results: i=1; mx.google.com; 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 1si21482652plf.240.2019.05.07.14.25.14; Tue, 07 May 2019 14:25:36 -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; 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 S1727410AbfEGVYY (ORCPT + 99 others); Tue, 7 May 2019 17:24:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:52096 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726811AbfEGVYX (ORCPT ); Tue, 7 May 2019 17:24:23 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1E57320656; Tue, 7 May 2019 21:24:20 +0000 (UTC) Date: Tue, 7 May 2019 17:24:18 -0400 From: Steven Rostedt To: Josh Poimboeuf Cc: Linus Torvalds , Peter Zijlstra , 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 , 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: <20190507172418.67ef6fc3@gandalf.local.home> In-Reply-To: <20190507172159.5t3bm3mjkwagvite@treble> References: <20190506225819.11756974@oasis.local.home> <20190506232158.13c9123b@oasis.local.home> <20190507111227.1d4268d7@gandalf.local.home> <20190507163440.GV2606@hirez.programming.kicks-ass.net> <20190507172159.5t3bm3mjkwagvite@treble> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 7 May 2019 12:21:59 -0500 Josh Poimboeuf wrote: > regs->sp is *undefined* on x86-32. We're damning our future selves to > have to always remember to use that darn kernel_stack_pointer() helper > for eternity just because of x86-32. And there's been several times I forget that regs->sp can not be read directly. Especially most of my bug reports are for x86_64 these days. But when I had that seldom x86_32 one, and go debugging, I would print out "regs->sp" and then the system would crash. And I spend some time wondering why? It's been a bane of mine for some time. -- Steve