[LTP] [PATCH v2 1/1] runtest/cve: Add some existing CVE tests to runtest file

Cyril Hrubis chrubis@suse.cz
Wed Jun 21 14:52:53 CEST 2023


Hi!
> > Thanks for the info. I look a while why can't build them
> > as fake programs and only exit with TCONF on non-x86,
> > but seems it has some platform-dependent assembly language
> > and the linker rule unsupport that.
> 
> The KVM Makefile is complicated because we build a raw machine code 
> binary which will be executed in the VM and then link it inside the test 
> program as a data blob. Adding extra conditions to skip the blob 
> compilation and safely TCONF in the test programs would make everything 
> even more complicated so it's not worth the effort at this point because 
> the KVM test coverage is still quite small.

I guess that proper solution could be implemented in the new generation
LTP executor. For instance if these tests have arch tag in tst_test set
to x86_64 the executor can read the metadata and wouldn't even attempt
to run these tests.

The whole point of the metadata parsing is to make the test execution
more flexible, since the runtest file based approach does not scale and
was outdated even ten years ago...

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list