[LTP] [PATCH v2] cve: add CVE-2025-38236 test
Petr Vorel
pvorel@suse.cz
Tue Aug 12 14:22:15 CEST 2025
Hi Andrea,
Reviewed-by: Petr Vorel <pvorel@suse.cz>
Tested-by: Petr Vorel <pvorel@suse.cz>
> Changes in v2:
> - use MSG_DONTWAIT
> - add reference in the description
> - reduce if/else nesting
> - use different data for send()
> - Link to v1: https://lore.kernel.org/r/20250812-cve_2025_38236-v1-1-e3617ada69c6@suse.com
+1
...
> + ret = recv(sock[0], &dummy, 1, MSG_DONTWAIT);
> + if (ret == -1) {
> + if (errno == EWOULDBLOCK) {
> + tst_res(TPASS, "Can't read out-of-band data from normal stream");
> + return;
> + }
> +
> + tst_brk(TBROK | TERRNO, "recv error");
> + return;
nit: this return is not needed (can be removed before merge).
We have compilers smart enough to know that tst_brk() quits,
although there might be a warning on oldest supported toolchains.
Kind regards,
Petr
> + }
...
More information about the ltp
mailing list