From: Paolo Bonzini <pbonzini@redhat.com>
To: Kees Cook <keescook@chromium.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
KVM list <kvm@vger.kernel.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Sean Christopherson <seanjc@google.com>, Willy Tarreau <w@1wt.eu>,
syzbot+e0de2333cbf95ea473e8@syzkaller.appspotmail.com
Subject: Re: [PATCH] mm: allow huge kvmalloc() calls if they're accounted to memcg
Date: Mon, 18 Oct 2021 17:24:25 +0200 [thread overview]
Message-ID: <59ccbca6-72ed-7c9f-8569-233627a399d0@redhat.com> (raw)
In-Reply-To: <202110180817.A2C3AE34@keescook>
On 18/10/21 17:19, Kees Cook wrote:
> Ah, so memcg wasn't doing sanity checks?
>
> Is there a cheap way to resolve the question "does this much memory
> exist"? The "__" versions end up lacking context for why they're "__"
> versions. I.e. do we want something more descriptive, like
> __huge_kvmalloc_node() or __unbounded_kvmalloc_node()?
No problem with that, I think "unbounded" is descriptive enough that we
can remove the __ too. So that would be kvmalloc_node_unbounded /
kvmalloc_array_unbounded / kvcallc_unbounded?
Paolo
next prev parent reply other threads:[~2021-10-18 15:24 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-16 6:43 [PATCH] mm: allow huge kvmalloc() calls if they're accounted to memcg Paolo Bonzini
2021-10-16 15:39 ` Linus Torvalds
2021-10-16 17:53 ` Paolo Bonzini
2021-10-16 18:10 ` Linus Torvalds
2021-10-16 23:17 ` Paolo Bonzini
2021-10-18 15:19 ` Kees Cook
2021-10-18 15:24 ` Paolo Bonzini [this message]
2021-10-16 6:51 Paolo Bonzini
2021-10-18 15:09 ` Kees Cook
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=59ccbca6-72ed-7c9f-8569-233627a399d0@redhat.com \
--to=pbonzini@redhat.com \
--cc=keescook@chromium.org \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=seanjc@google.com \
--cc=syzbot+e0de2333cbf95ea473e8@syzkaller.appspotmail.com \
--cc=torvalds@linux-foundation.org \
--cc=w@1wt.eu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).