public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [REGRESSION 5.8] x86/entry: DR0 break-on-write not working
@ 2020-08-19 17:53 Kyle Huey
  2020-08-19 18:41 ` peterz
  0 siblings, 1 reply; 8+ messages in thread
From: Kyle Huey @ 2020-08-19 17:53 UTC (permalink / raw)
  To: Thomas Gleixner, Alexandre Chartre, Peter Zijlstra,
	Andy Lutomirski
  Cc: Robert O'Callahan, LKML,
	maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT), Paul E. McKenney,
	Frederic Weisbecker, Paolo Bonzini, Sean Christopherson,
	Masami Hiramatsu, Petr Mladek, Steven Rostedt, Joel Fernandes,
	Boris Ostrovsky, Juergen Gross, Brian Gerst, Mathieu Desnoyers,
	Josh Poimboeuf, Will Deacon

rr, a userspace record and replay debugger[0], has a test suite that
attempts to exercise strange corners of the Linux API. One such
test[1] began failing after 2bbc68f8373c0631ebf137f376fbea00e8086be7.
I have not tried to understand what has changed in the kernel here but
since the commit message says "No functional change" I assume
something has gone wrong.

The test expects to get a SIGTRAP when watchvar is written to in the
forked child, but instead the program just exits normally and we get a
status value corresponding to that (exit code 77 = wait status
0x4d00). This test program should be usable outside of rr's test suite
if you replace the test_assert/atomic_puts functions with
assert/printf and replace the util.h include with appropriate standard
includes.

This regression is present in 5.8.

- Kyle

[0] https://rr-project.org/
[1] https://github.com/mozilla/rr/blob/master/src/test/x86/ptrace_debug_regs.c#L55

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

end of thread, other threads:[~2020-08-20  8:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-19 17:53 [REGRESSION 5.8] x86/entry: DR0 break-on-write not working Kyle Huey
2020-08-19 18:41 ` peterz
2020-08-19 19:28   ` Kyle Huey
2020-08-19 21:35     ` Peter Zijlstra
2020-08-19 22:47       ` Josh Poimboeuf
2020-08-20  0:14         ` Andy Lutomirski
2020-08-20  3:46           ` Josh Poimboeuf
2020-08-20  8:35             ` peterz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox