Re: [LTP] [PATCH v2] mseal02: Handle multiple errnos for 32-bit compat mode

Petr Vorel
2026-03-20T15:10:15Z

Hi all,

> In 32-bit compat mode, the overflow_size (calculated using a 32-bit ULONG_MAX)
> does not cause a 64-bit integer wrap-around when added to the start address.
> Consequently, the kernel see valid range that points to unmapped space, returning
> ENOMEM instead of the expected EINVAL.

Also LGTM.

Reviewed-by: Petr Vorel <pvorel@suse.cz>

Kind regards,
Petr