diff options
| author | Suren Baghdasaryan <[email protected]> | 2024-01-11 17:39:35 -0800 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-01-12 15:20:49 -0800 |
| commit | 5d4747a6cc8e78ce74742d557fc9b7697fcacc95 (patch) | |
| tree | 8e459befcdcd7ff84cdb2e7a582198a46182ff12 /lib/crypto/mpi/mpi-add.c | |
| parent | aa8f91910bf5fb11dcd176e6efac2dbe2cecebea (diff) | |
userfaultfd: avoid huge_zero_page in UFFDIO_MOVE
While testing UFFDIO_MOVE ioctl, syzbot triggered VM_BUG_ON_PAGE caused by
a call to PageAnonExclusive() with a huge_zero_page as a parameter.
UFFDIO_MOVE does not yet handle zeropages and returns EBUSY when one is
encountered. Add an early huge_zero_page check in the PMD move path to
avoid this situation.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: adef440691ba ("userfaultfd: UFFDIO_MOVE uABI")
Reported-by: [email protected]
Signed-off-by: Suren Baghdasaryan <[email protected]>
Acked-by: David Hildenbrand <[email protected]>
Cc: Andrea Arcangeli <[email protected]>
Cc: Peter Xu <[email protected]>
Cc: Stephen Rothwell <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-add.c')
0 files changed, 0 insertions, 0 deletions