[LTP] [PATCH v6] Refactor fork14 using new LTP API

Petr Vorel pvorel@suse.cz
Wed May 15 15:17:19 CEST 2024


Hi Andrea,

...
> +/*\
> + * [Description]
>   *
>   * This test is a reporducer for this patch:
s/reporducer/reproducer/

> + * https://lore.kernel.org/lkml/1335289853-2923-1-git-send-email-siddhesh.poyarekar@gmail.com/
>   * Since vma length in dup_mmap is calculated and stored in a unsigned
>   * int, it will overflow when length of mmaped memory > 16 TB. When
> + * overflow occurs, fork will incorrectly succeed. The patch above fixed it.
> + */

nit: this has been merged to mainline long time ago (kernel 3.5). I'll change before merge to:

/*\
 * [Description]
 *
 * This test is a reproducer for kernel 3.5:
 * 7edc8b0ac16c ("mm/fork: fix overflow in vma length when copying mmap on clone")
 *
 * Since VMA length in dup_mmap() is calculated and stored in a unsigned
 * int, it will overflow when length of mmaped memory > 16 TB. When
 * overflow occurs, fork will incorrectly succeed. The patch above fixed it.
 */

Kind regards,
Petr


More information about the ltp mailing list