[LTP] [PATCH v3] overcommit_memory: Fix integer overflow and 32-bit limits
    Petr Vorel 
    pvorel@suse.cz
       
    Fri Oct 17 18:22:45 CEST 2025
    
    
  
Hi all,
> The overcommit test uses sum_total, the sum (memory and swap) to test
> the overcommit settings.
> This fixes two problems on 32-bit systems. The first is seen with a
> integer overflow can occur when calculating sum_total * 2, if the
> sum_total is larger than 2GB. The second is limited virtual address
> space (2-3GB) means the test can fail from address space exhaustion
> before overcommit has been tested.
> Now the test runs correctly on low-memory 32-bit systems while avoiding
> both the overflow bug and virtual address space issues.
Thanks, also this patch merged!
Kind regards,
Petr
    
    
More information about the ltp
mailing list