diff options
author | 2025-01-15 11:51:56 -0500 | |
---|---|---|
committer | 2025-01-15 11:51:56 -0500 | |
commit | 5cf32aff2088e650f73f6e291d96cdadd5c02c7a (patch) | |
tree | dba4b4f7e735212aa5ee9fd8e16b754179072390 /mm/util.c | |
parent | Merge tag 'kvm-x86-fixes-6.13-rcN' of https://github.com/kvm-x86/linux into HEAD (diff) | |
parent | LoongArch: KVM: Add hypercall service support for usermode VMM (diff) | |
download | wireguard-linux-5cf32aff2088e650f73f6e291d96cdadd5c02c7a.tar.xz wireguard-linux-5cf32aff2088e650f73f6e291d96cdadd5c02c7a.zip |
Merge tag 'loongarch-kvm-6.14' of git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson into HEAD
LoongArch KVM changes for v6.14
1. Clear LLBCTL if secondary mmu mapping changed.
2. Add hypercall service support for usermode VMM.
This is a really small changeset, because the Chinese New Year
(Spring Festival) is coming. Happy New Year!
Diffstat (limited to 'mm/util.c')
-rw-r--r-- | mm/util.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/mm/util.c b/mm/util.c index c1c3b06ab4f9..60aa40f612b8 100644 --- a/mm/util.c +++ b/mm/util.c @@ -297,12 +297,7 @@ void *memdup_user_nul(const void __user *src, size_t len) { char *p; - /* - * Always use GFP_KERNEL, since copy_from_user() can sleep and - * cause pagefault, which makes it pointless to use GFP_NOFS - * or GFP_ATOMIC. - */ - p = kmalloc_track_caller(len + 1, GFP_KERNEL); + p = kmem_buckets_alloc_track_caller(user_buckets, len + 1, GFP_USER | __GFP_NOWARN); if (!p) return ERR_PTR(-ENOMEM); |