diff options
| author | Suren Baghdasaryan <[email protected]> | 2025-08-06 22:00:22 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2025-08-12 06:00:59 +0000 |
| commit | aba6faec0103ed8f169be8dce2ead41fcb689446 (patch) | |
| tree | 4f2b6863b9aa1dc54c4d326f4e790a93f57e5816 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |
| parent | mm: pass page directly instead of using folio_page (diff) | |
| download | kernel-aba6faec0103ed8f169be8dce2ead41fcb689446.tar.gz kernel-aba6faec0103ed8f169be8dce2ead41fcb689446.zip | |
userfaultfd: fix a crash in UFFDIO_MOVE when PMD is a migration entry
When UFFDIO_MOVE encounters a migration PMD entry, it proceeds with
obtaining a folio and accessing it even though the entry is swp_entry_t.
Add the missing check and let split_huge_pmd() handle migration entries.
While at it also remove unnecessary folio check.
[[email protected]: remove extra folio check, per David]
Link: https://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/[email protected]
Fixes: adef440691ba ("userfaultfd: UFFDIO_MOVE uABI")
Signed-off-by: Suren Baghdasaryan <[email protected]>
Reported-by: [email protected]
Closes: https://lore.kernel.org/all/[email protected]/
Reviewed-by: Peter Xu <[email protected]>
Acked-by: David Hildenbrand <[email protected]>
Cc: Andrea Arcangeli <[email protected]>
Cc: Lokesh Gidra <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions
