On Tue, Aug 13, 2024 at 04:35:14PM +0200, Mikulas Patocka wrote: > kmalloc is unreliable when allocating more than 8 pages of memory. It may > fail when there is plenty of free memory but the memory is fragmented. > Zdenek Kabelac observed such failure in his tests. > > This commit changes kmalloc to kvmalloc - kvmalloc will fall back to > vmalloc if the large allocation fails. Should add this tag here: Reported-by: Zdenek Kabelac <zkabelac@xxxxxxxxxx> > Signed-off-by: Mikulas Patocka <mpatocka@xxxxxxxxxx> > Cc: stable@xxxxxxxxxxxxxxx Reviewed-by: Mike Snitzer <snitzer@xxxxxxxxxx>