Re: [PATCH 1/5] mm/damon/core: use kvmalloc for target regions array
From: SJ Park
Date: Tue Jun 30 2026 - 01:57:41 EST
On Mon, 29 Jun 2026 07:55:32 -0700 SJ Park <sj@xxxxxxxxxx> wrote:
> From: Akinobu Mita <akinobu.mita@xxxxxxxxx>
>
> damon_commit_target_regions() temporarily allocates a single contiguous
> memory region using kmalloc to store copies of all damon_regions of the
> damon_target.
> However, if the damon_target has a large number of damon_regions, the
> total size may exceed KMALLOC_MAX_SIZE.
>
> This problem can be avoided by using kvmalloc instead of kmalloc.
>
> Signed-off-by: Akinobu Mita <akinobu.mita@xxxxxxxxx>
> Reviewed-by: SJ Park <sj@xxxxxxxxxxx>
Oops, another typo... Should do s/kkernel/kernel/
Andrew, I saw this is already picked up to mm-new. Could you please fix this
up in place? Let me know if you'd prefer sending a new revision with the fix.
Thanks,
SJ
[...]