Commit dd2a5b5
mm/util: make memdup_user_nul() similar to memdup_user()
Since the string data to copy from userspace is likely less than PAGE_SIZE
bytes, replace GFP_KERNEL with GFP_USER like commit 6c2c97a
("memdup_user(): switch to GFP_USER") does and add __GFP_NOWARN like
commit 6c8fcc0 ("mm: don't let userspace spam allocations warnings")
does. Also, use dedicated slab buckets like commit d73778e
("mm/util: Use dedicated slab buckets for memdup_user()") does.
Link: https://lkml.kernel.org/r/[email protected]
Reported-by: [email protected]
Closes: https://syzkaller.appspot.com/bug?extid=7e12e97b36154c54414b
Signed-off-by: Tetsuo Handa <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>1 parent 62e72d2 commit dd2a5b5
1 file changed
+1
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
| 300 | + | |
306 | 301 | | |
307 | 302 | | |
308 | 303 | | |
| |||
0 commit comments