[LTP] [PATCH v2] security/dirtyc0w_shmem: Add new test for CVE-2022-2590
Martin Doucha
mdoucha@suse.cz
Fri Nov 25 11:37:19 CET 2022
On 23. 11. 22 11:35, David Hildenbrand wrote:
> + uffdio_api.api = UFFD_API;
> + uffdio_api.features = UFFD_FEATURE_MINOR_SHMEM;
> + TEST(ioctl(uffd, UFFDIO_API, &uffdio_api));
> + if (TST_RET < 0) {
One more thing, checking just the ioctl() return value here is not
enough. You need to check that uffdio_api.features still includes the
UFFD_FEATURE_MINOR_SHMEM flag after the call. PPC64 does not seem to
support it on kernel 5.14 and the ioctl() still succeeds there.
--
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