[LTP] [PATCH v2] fsconfig: New case cover CVE-2022-0185

Petr Vorel pvorel@suse.cz
Thu Feb 9 16:18:20 CET 2023


...
> > I guess something like this should be used:

> > 	for (unsigned int i = 0; i < 5000; i++) {
> > 		TST_EXP_FAIL_SILENT(fsconfig(fd, FSCONFIG_SET_STRING, "\x00", val, 0),
> > 							EINVAL);

> It doesn't fail on older kernels, or did I misinterpret something? There
> are three stable kernel trees based on kernels that are supposedly
> affected, we do want to run this test for them too.

IT fails on new (fixed) kernels (tested on 6.2.0-rc6), it's about test does not
crash anything).


More information about the ltp mailing list