From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.9 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C4662C04AAD for ; Tue, 7 May 2019 18:57:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A07EE2054F for ; Tue, 7 May 2019 18:57:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727543AbfEGS53 (ORCPT ); Tue, 7 May 2019 14:57:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:41400 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727346AbfEGS52 (ORCPT ); Tue, 7 May 2019 14:57:28 -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 6F14220578; Tue, 7 May 2019 18:57:25 +0000 (UTC) Date: Tue, 7 May 2019 14:57:24 -0400 From: Steven Rostedt To: Josh Poimboeuf Cc: linux-kernel@vger.kernel.org, Linus Torvalds , Peter Zijlstra , Andy Lutomirski , 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/3] x86_64: Add gap to int3 to allow for call emulation Message-ID: <20190507145724.132dc8ec@gandalf.local.home> In-Reply-To: <20190507175655.u3kcvedpfao4rchj@treble> References: <20190507174227.673261270@goodmis.org> <20190507174400.064350937@goodmis.org> <20190507175655.u3kcvedpfao4rchj@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:56:55 -0500 Josh Poimboeuf wrote: > > + .if \create_gap == 1 > > + /* > > + * If coming from kernel space, create a 6-word gap to allow the static > > + * call #BP handler to emulate a call instruction. > > Might as well refer to it as the int3 handler, since that's what the > rest of the code calls it. Also, no static calls yet :-) So: > > s/static call #BP handler/int3 handler/ > Done. -- Steve From mboxrd@z Thu Jan 1 00:00:00 1970 From: rostedt at goodmis.org (Steven Rostedt) Date: Tue, 7 May 2019 14:57:24 -0400 Subject: [RFC][PATCH 1/3] x86_64: Add gap to int3 to allow for call emulation In-Reply-To: <20190507175655.u3kcvedpfao4rchj@treble> References: <20190507174227.673261270@goodmis.org> <20190507174400.064350937@goodmis.org> <20190507175655.u3kcvedpfao4rchj@treble> Message-ID: <20190507145724.132dc8ec@gandalf.local.home> On Tue, 7 May 2019 12:56:55 -0500 Josh Poimboeuf wrote: > > + .if \create_gap == 1 > > + /* > > + * If coming from kernel space, create a 6-word gap to allow the static > > + * call #BP handler to emulate a call instruction. > > Might as well refer to it as the int3 handler, since that's what the > rest of the code calls it. Also, no static calls yet :-) So: > > s/static call #BP handler/int3 handler/ > Done. -- Steve From mboxrd@z Thu Jan 1 00:00:00 1970 From: rostedt@goodmis.org (Steven Rostedt) Date: Tue, 7 May 2019 14:57:24 -0400 Subject: [RFC][PATCH 1/3] x86_64: Add gap to int3 to allow for call emulation In-Reply-To: <20190507175655.u3kcvedpfao4rchj@treble> References: <20190507174227.673261270@goodmis.org> <20190507174400.064350937@goodmis.org> <20190507175655.u3kcvedpfao4rchj@treble> Message-ID: <20190507145724.132dc8ec@gandalf.local.home> Content-Type: text/plain; charset="UTF-8" Message-ID: <20190507185724.Tc-54GqMO1-cLx0KlJlpwSzHBNBpxwMPYr1N0FvoUQE@z> On Tue, 7 May 2019 12:56:55 -0500 Josh Poimboeuf wrote: > > + .if \create_gap == 1 > > + /* > > + * If coming from kernel space, create a 6-word gap to allow the static > > + * call #BP handler to emulate a call instruction. > > Might as well refer to it as the int3 handler, since that's what the > rest of the code calls it. Also, no static calls yet :-) So: > > s/static call #BP handler/int3 handler/ > Done. -- Steve