Hi,
the code looks good, though it might make sense to simply integrate the
check into ptrace08. Just 6 extra lines in the existing test should
achieve the same coverage.

It also seems the bug existed long before the CVE 2018-1000199 fix
because the test fails on vulnerable kernels as well.

Anyway, if you prefer to keep the patch as is:

Reviewed-by: Martin Doucha <mdou...@suse.cz>

On 04. 09. 20 20:00, Cyril Hrubis wrote:
> New regression test for a kernel commit:
> 
> commit bd14406b78e6daa1ea3c1673bda1ffc9efdeead0
> Author: Jiri Olsa <jo...@kernel.org>
> Date:   Mon Aug 27 11:12:25 2018 +0200
> 
>     perf/hw_breakpoint: Modify breakpoint even if the new attr has disabled 
> set
> 
> Signed-off-by: Cyril Hrubis <chru...@suse.cz>
> CC: Andy Lutomirski <l...@kernel.org>
> CC: Peter Zijlstra <pet...@infradead.org>
> CC: Thomas Gleixner <t...@linutronix.de>
> CC: Alexandre Chartre <alexandre.char...@oracle.com>
> ---


-- 
Martin Doucha   mdou...@suse.cz
QA Engineer for Software Maintenance
SUSE LINUX, s.r.o.
CORSO IIa
Krizikova 148/34
186 00 Prague 8
Czech Republic

Reply via email to