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

Petr Vorel
2023-02-09T15:18:37Z

...
> > 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).