[LTP] [PATCH] Drop the mem01 test

Martin Doucha mdoucha@suse.cz
Mon Aug 17 10:30:34 CEST 2020


On 17. 08. 20 5:46, Yang Xu wrote:
> [root@localhost ltp]# git grep mem01
> testcases/kernel/syscalls/ioctl/ioctl_sg01.c: * a read-accessible
> SCSI-compatible device (e.g. SATA disk). Running mem01
> [root@localhost ltp]#
> 
> ioctl_sg01.c has such description " Running mem01
>  * test program before this one may increase the chance of successfully
>  * reproducing the bug."
> 
> I guess we should also remove this or use oom testcases can also
> increase this rate(I don't try ).

OOM testcases will work fine. ioctl_sg01 is a CVE test checking for
kernel information disclosure bug so it just needs the kernel to reuse
some dirty block of memory for the device buffer that then gets copied
to userspace.

Maybe I should improve the test by dirtying some kernel memory myself in
the test setup...

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


More information about the ltp mailing list