Re: [PATCH 1/2] ipc sem: use kvmalloc for sem_undo allocation

From: Roman Gushchin
Date: Mon Apr 26 2021 - 16:29:37 EST


On Mon, Apr 26, 2021 at 01:18:09PM +0300, Vasily Averin wrote:
> size of sem_undo can exceed one page and with the maximum possible
> nsems = 32000 it can grow up to 64Kb. Let's switch its allocation
> to kvmalloc to avoid user-triggered disruptive actions like OOM killer
> in case of high-order memory shortage.
>
> Signed-off-by: Vasily Averin <vvs@xxxxxxxxxxxxx>

Acked-by: Roman Gushchin <guro@xxxxxx>