Re: [LTP] [PATCH] syscall/ptrace08: Simplify the test.
From: Cyril Hrubis
Date: Fri Sep 04 2020 - 09:35:35 EST
Hi!
> This is failing on our 4.4 and 4.15 kernels, though they passed with the
> previous test and have commit f67b15037a7a applied.
>
> So, this is dependent on some other behavior/commit that has changed. It passes
> on 5.4, for example. I'll try to investigate further.
We are looking at it now in SUSE, looks like the initial fix to the
kernel postponed the check to the write to the dr7 that enabled the
breakpoint, so when the dr0 wasn't enabled you could write anything
there.
Also looks like somehow the EINVAL is not propagated into the POKEUSER
call to the dr7 as it should have been.
--
Cyril Hrubis
chrubis@xxxxxxx