Commit 6c8fcc09 authored by Daniel Vetter's avatar Daniel Vetter Committed by Linus Torvalds
Browse files

mm: don't let userspace spam allocations warnings

memdump_user usually gets fed unchecked userspace input.  Blasting a
full backtrace into dmesg every time is a bit excessive - I'm not sure
on the kernel rule in general, but at least in drm we're trying not to
let unpriviledge userspace spam the logs freely.  Definitely not entire
warning backtraces.

It also means more filtering for our CI, because our testsuite exercises
these corner cases and so hits these a lot.


Signed-off-by: default avatarDaniel Vetter <>
Reviewed-by: default avatarAndrew Morton <>
Acked-by: default avatarMichal Hocko <>
Reviewed-by: default avatarKees Cook <>
Cc: Mike Rapoport <>
Cc: Roman Gushchin <>
Cc: Vlastimil Babka <>
Cc: Jan Stancek <>
Cc: Andrey Ryabinin <>
Cc: "Michael S. Tsirkin" <>
Cc: Huang Ying <>
Cc: Bartosz Golaszewski <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 6373dca1
......@@ -150,7 +150,7 @@ void *memdup_user(const void __user *src, size_t len)
void *p;
p = kmalloc_track_caller(len, GFP_USER);
p = kmalloc_track_caller(len, GFP_USER | __GFP_NOWARN);
if (!p)
return ERR_PTR(-ENOMEM);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment