Thread (6 messages) flat view 6 messages, 4 authors, 2021-12-15

Re: [PATCH kernel] KVM: PPC: Book3S: Suppress warnings when allocating too big memory slots

From: Michael Ellerman <hidden>
Date: 2021-12-15 00:46:01

On Wed, 1 Sep 2021 18:45:12 +1000, Alexey Kardashevskiy wrote:
The userspace can trigger "vmalloc size %lu allocation failure: exceeds
total pages" via the KVM_SET_USER_MEMORY_REGION ioctl.

This silences the warning by checking the limit before calling vzalloc()
and returns ENOMEM if failed.

This does not call underlying valloc helpers as __vmalloc_node() is only
exported when CONFIG_TEST_VMALLOC_MODULE and __vmalloc_node_range() is not
exported at all.

[...]
Applied to powerpc/next.

[1/1] KVM: PPC: Book3S: Suppress warnings when allocating too big memory slots
      https://git.kernel.org/powerpc/c/511d25d6b789fffcb20a3eb71899cf974a31bd9d

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help