Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp852723yba; Sat, 4 May 2019 14:42:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqzymm8Cx4ZRWEDmuUtIx+xt+QYe+o36MoAxkbTWEMpRFaG5n0ZDXi2eqZcOnR8t6AyrgKpF X-Received: by 2002:a63:778b:: with SMTP id s133mr21077856pgc.198.1557006169971; Sat, 04 May 2019 14:42:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557006169; cv=none; d=google.com; s=arc-20160816; b=MS+8CdOem7Fn/uwmeKPmihBF1OtmYibOAVWj9oxm/+wgxEXsVX6XrgOVNLvTnbKxEw e6tx/jzBRtEIUIgOMuz/yScAUftiPuj0rz+K4wsyHhRZtBaFQhiV/m/euzl6aQbUCrXj pb1U8A1jM1D3yA1fWLgB1n7cmnE4X12DJWilp3aS1mljZ4fAtYGJdp78VLkku1BI5QRF y9pqb5efO3coz2jJkgT+frl7AOixjTpPSL8fLhj71NFgZVJDeB5Mn/BzAiq9wZos50cN 865hBVxYuhoZ/8rSU8RNQCLkd0jx34F4NGW3/w2yK9Dhj1WTk+FtKZ/QErxKAgZHfWpG ksFA== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=avpeditiG05762mr+ZBdVz17aE8sPPywlzbuzRkmGu8=; b=xKRXpvkrb2FG9gfXU4qFK+VjbH+pdSsvM4B1/eDs41I074fkqYhoxVeYFiMf9rW4Uj BDF504U4F5Xa+PZxKm3XJBoODdJmBeysIO36CCsjQv6wr8ycmcONiZjF1ReXzHppImgq uZrrxhp0gELi6gkfCk0hpD3FN2JVpn83cqC2EEzjbjHqZXGrL1Z7Gx/dalsn4tiJ0uLq gyCosq7rjONveZOtG0ZvigF/ZeptUVRvb7rJWSqub6cPkPMHcvkTfkiuIy904syofEdg fT89sCN47Lv410nNVrsQs12bmmwvMIUHLNljHyjwUpehL9KQZl89y/mifLRWW2vTLb/s 1FXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=eBpIF9Qh; 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 e3si8907296pfa.155.2019.05.04.14.42.34; Sat, 04 May 2019 14:42:49 -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=pass header.i=@linux-foundation.org header.s=google header.b=eBpIF9Qh; 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 S1727514AbfEDUge (ORCPT + 99 others); Sat, 4 May 2019 16:36:34 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:38819 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727404AbfEDUgd (ORCPT ); Sat, 4 May 2019 16:36:33 -0400 Received: by mail-lj1-f196.google.com with SMTP id e18so7979812lja.5 for ; Sat, 04 May 2019 13:36:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=avpeditiG05762mr+ZBdVz17aE8sPPywlzbuzRkmGu8=; b=eBpIF9Qh2Hh0a0CcqEOOixnUMFDAfxwLic/0D52BIV/HRO+FWsY+c08Ox/yuCHEacF mJC8j9rp5rLkkT9f+c1BKX/iz9KrtGntnPsK8AK0jGNLBjYY4668h41M7CZS5dbNLsey YaMrbtqOGLf0xVoZWCaQuSJHUjRnRlFE0Y9iQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=avpeditiG05762mr+ZBdVz17aE8sPPywlzbuzRkmGu8=; b=ZboK4SkDtAoq3sbi6g0TJbCcY1nEYUZ0P32m/H2T13ArZIbangja7F/NUyF/uPFd79 Vh4sjuothnWafAHh61O8hRe3fvUYhbFI9gtuztILRl/yPss5ENWv3ajDBV+jFKnORnWr GoOtf3MsZN2AU3jMU13gECeTWjaMnRQ0uTNrj5TVtAsh17hEvjaDLjHngoIaQxw/P/cN ZMuAH15WBPWxvgc8BmUS9/blu2rGA29Uje9HAJBCfj3amtmdvXhjf0hQHBbNgRTbJwD/ bigmCvqeoR7cvA8LBfoFgy/x6+fBtB/nMwSBXN5BYvhiFDo8XOsLNP21S3+Giq+iLYUm YKzg== X-Gm-Message-State: APjAAAWlWjU+YMlDYMXllXlkvHwV942S61oPnrijbJghQdfApouXULou Q6aehdzd3Zm6M3q261G8FblhZ7Boj60= X-Received: by 2002:a2e:6384:: with SMTP id s4mr3669864lje.63.1557002191365; Sat, 04 May 2019 13:36:31 -0700 (PDT) Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com. [209.85.167.54]) by smtp.gmail.com with ESMTPSA id h26sm1108577lfm.11.2019.05.04.13.36.28 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 May 2019 13:36:28 -0700 (PDT) Received: by mail-lf1-f54.google.com with SMTP id h126so6610509lfh.4 for ; Sat, 04 May 2019 13:36:28 -0700 (PDT) X-Received: by 2002:ac2:4567:: with SMTP id k7mr8933590lfm.166.1557002188058; Sat, 04 May 2019 13:36:28 -0700 (PDT) MIME-Version: 1.0 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> <20190503152405.2d741af8@gandalf.local.home> <20190503184919.2b7ef242@gandalf.local.home> <20190504001756.17fad840@oasis.local.home> <2BF1AE4B-8105-49F0-8B6A-AA3B11FD66FD@amacapital.net> In-Reply-To: <2BF1AE4B-8105-49F0-8B6A-AA3B11FD66FD@amacapital.net> From: Linus Torvalds Date: Sat, 4 May 2019 13:36:11 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC][PATCH 1/2] x86: Allow breakpoints to emulate call functions To: Andy Lutomirski Cc: Steven Rostedt , Peter Zijlstra , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, May 4, 2019 at 1:12 PM Andy Lutomirski wrote: > > As an aside, is it even *possible* to get #BP from v8086 mode? On a quic= k SDM read, the INT3 instruction causes #GP if VM=3D1 and IOPL<3. And, if = we allow vm86() to have IOPL=3D3, we should just remove that ability. It=E2= =80=99s nuts. Oh, and I think you mis-read the SDM. Yes, iopl matters for "int X" (cd xx) instruction in vm86 mode. But no, iopl does *not* matter for the special "int3/into/int1" (cc/ce/f1) instructions, I think. Linus