diff options
| author | Tetsuo Handa <[email protected]> | 2024-12-21 07:47:29 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-12-31 01:59:11 +0000 |
| commit | dd2a5b5514ab0e690f018595e34dd1fcb981d345 (patch) | |
| tree | a2bf0a1933cb15addb2618c6d5ce738304484ec9 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | mm, madvise: fix potential workingset node list_lru leaks (diff) | |
| download | kernel-dd2a5b5514ab0e690f018595e34dd1fcb981d345.tar.gz kernel-dd2a5b5514ab0e690f018595e34dd1fcb981d345.zip | |
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 6c2c97a24f09
("memdup_user(): switch to GFP_USER") does and add __GFP_NOWARN like
commit 6c8fcc096be9 ("mm: don't let userspace spam allocations warnings")
does. Also, use dedicated slab buckets like commit d73778e4b867
("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]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions
