linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Official documentation from Intel stating that poking INT3 (single-byte) concurrently is OK ?
@ 2023-02-21 16:44 Mathieu Desnoyers
  2023-02-21 17:50 ` Steven Rostedt
  0 siblings, 1 reply; 5+ messages in thread
From: Mathieu Desnoyers @ 2023-02-21 16:44 UTC (permalink / raw)
  To: H . Peter Anvin
  Cc: Peter Zijlstra, Thomas Gleixner, rostedt, Olivier Dion,
	linux-kernel, Jiri Kosina, Masami Hiramatsu, Dave Hansen

Hi Peter,

I have emails from you dating from a few years back unofficially stating
that it's OK to update the first byte of an instruction with a single-byte
int3 concurrently:

https://lkml.indiana.edu/hypermail/linux/kernel/1001.1/01530.html

It is referred in the original implementation of text_poke_bp():
commit fd4363fff3d9 ("x86: Introduce int3 (breakpoint)-based instruction patching")

Olivier Dion is working on the libpatch [1,2] project aiming to use this
property for low-latency/low-overhead live code patching in user-space as
well, but we cannot find an official statement from Intel that guarantees
this breakpoint-bypass technique is indeed OK without stopping the world
while patching.

Do you know where I could find an official statement of this guarantee ?

Thanks!

Mathieu

[1] https://www.dorsal.polymtl.ca/files/may2022/odion_may2022_libpatch_binary_patcher.pdf
[2] https://git.sr.ht/~old/libpatch

-- 
Mathieu Desnoyers
EfficiOS Inc.
https://www.efficios.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-02-22 16:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-21 16:44 Official documentation from Intel stating that poking INT3 (single-byte) concurrently is OK ? Mathieu Desnoyers
2023-02-21 17:50 ` Steven Rostedt
2023-02-21 18:42   ` Mathieu Desnoyers
2023-02-22  9:20     ` Peter Zijlstra
2023-02-22 16:41       ` Mathieu Desnoyers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).