Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp7693742yba; Thu, 2 May 2019 14:34:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqy7EuJ5YWX353YA0eMahxPQqxxyQ7KmPfFIm7FwXiQ3FMbSnMgYYPF632ET9QYNfTqgkLen X-Received: by 2002:a63:9dc8:: with SMTP id i191mr6164188pgd.91.1556832864769; Thu, 02 May 2019 14:34:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556832864; cv=none; d=google.com; s=arc-20160816; b=MUEmnQW1KcA1r/0Od7G3iyOmVh79pBHEu11RoROZhzcZKG3hGeEU9SYqUgAUzm2HPV 8Sovc3Y0FSRCmcpl+LxKWWDUDm7j0mDY1GSA5OtsHbcd2wBZmw+k3dZ/ISU/H/deL4nC xPUb7COZk1xMYAB3sSNrQb60s2WTiGF4oyDZYu4hCDdOIPOoxVQGcH3hQtMoAnYZCgAo kKxC0XlU/IY0oB5L3njPiLU8Uixuiwebuoy0sEi6opNxFUIV6xwaL7gxgUuC+mWrynEs jO+jtH5hhAARpb6Bdg/+JDcVGxvpSTB3Ld8ttDmvSG/OSkJXm5fhSOSYHKKWhOXO2LlS pG8Q== 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=ZXqnuo0JSIuRggTcqyOSAvcyo1xhZ/4jSajZfdhhW24=; b=ASHeh7f1Y5jnNFlSQiA0TMH+khj6dDvdaaRDrHZYRe64XBcPW/6LB9WHwhGv3gCeRV okxRcFVptA1SytUfioCSxFGuHnjl0juGoc73oxbo2OFtfoQTdXvVBnX9Y2inEDoKF9e9 11efQdewk/lHAo8KYb6HJqFQVfbQ6Tdby3XaBNR+PzNzMxUfvmffu/gDtMfbft6DPI0r 1GcMBaTlOUQdX3diq0AvKkWO3lAXd+g+rdDeQRtRVGFWjnGAd6K6TmUbMddb3xNXCOK0 TF8r/1r2fXywobJ5ec59reG9JLhezyqZBKffY32KIkqdrb9zGBZvJYHtG4EIr8H7XepO 8Fww== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=RQWf4Str; 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 33si290775plk.421.2019.05.02.14.34.09; Thu, 02 May 2019 14:34:24 -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=RQWf4Str; 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 S1726270AbfEBVdN (ORCPT + 99 others); Thu, 2 May 2019 17:33:13 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:55544 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726022AbfEBVdN (ORCPT ); Thu, 2 May 2019 17:33:13 -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=ZXqnuo0JSIuRggTcqyOSAvcyo1xhZ/4jSajZfdhhW24=; b=RQWf4StrNHmwEF6NAVXxFPJ2s Sxzl51CDrOJuvMAA+fYwI41eZ3d7WnH69VgOI8/coS6GZjyfBkyouvMkqz0y4EFDW6C90it/y+BMI lstFwapGleV7DCIkgIZCWUp78icSvdsGnF5QiJREea/5Sw6MNdWEEGOIFUwkl15Yx1+ai0jlv3w91 +yrUGaP4xHamqYJCQa6ZPGC0dYo1uWWJGS+rA8yjN4/fPvrYV9Wu2PDu4v0yjn4rk7OzEJt25cg7C nC1O8DHz7/yJdbKdhlfmTV8mChs6Kt8K8AGEb7fQWqMw48YUjfCXSTLGkvupy9TvKXNgjlIhJmEXi 1/2p9Dl+A==; 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 1hMJJq-0004Nq-5V; Thu, 02 May 2019 21:32:42 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 69A4F209A1C85; Thu, 2 May 2019 23:32:39 +0200 (CEST) Date: Thu, 2 May 2019 23:32:39 +0200 From: Peter Zijlstra To: Linus Torvalds Cc: Steven Rostedt , 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 Subject: Re: [RFC][PATCH 1/2] x86: Allow breakpoints to emulate call functions Message-ID: <20190502213239.GA2623@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> <20190502181811.GY2623@hirez.programming.kicks-ass.net> <20190502202146.GZ2623@hirez.programming.kicks-ass.net> 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 Thu, May 02, 2019 at 01:49:29PM -0700, Linus Torvalds wrote: > We *could* also make this kernel-mode-only do_int3() be a special > function, and do something like I think I prefer the variant we have now. The int3_emulate_*() things work uniformly and as expected on 32 and 64 bit (it would even work for userspace if it weren't for SMAP). So while the 32bit kernel entry is 'special' all the INT3 handlers can uniformly prod at pt_regs in a natural way and have it work. Making it special -- just for 32bit, seems like the wrong thing to me.