summaryrefslogtreecommitdiffstats
path: root/fs/userfaultfd.c
diff options
context:
space:
mode:
authorAndrea Arcangeli2015-09-05 00:47:20 +0200
committerLinus Torvalds2015-09-05 01:54:41 +0200
commit230c92a8797e0e717c6732de0fffdd5726c0f48f (patch)
treed492aa522ed4c65c77401cd0c91fa759fadb219c /fs/userfaultfd.c
parentuserfaultfd: allow signals to interrupt a userfault (diff)
downloadkernel-qcow2-linux-230c92a8797e0e717c6732de0fffdd5726c0f48f.tar.gz
kernel-qcow2-linux-230c92a8797e0e717c6732de0fffdd5726c0f48f.tar.xz
kernel-qcow2-linux-230c92a8797e0e717c6732de0fffdd5726c0f48f.zip
userfaultfd: propagate the full address in THP faults
The THP faults were not propagating the original fault address. The latest version of the API with uffd.arg.pagefault.address is supposed to propagate the full address through THP faults. This was not a kernel crashing bug and it wouldn't risk to corrupt user memory, but it would cause a SIGBUS failure because the wrong page was being copied. For various reasons this wasn't easily reproducible in the qemu workload, but the strestest exposed the problem immediately. Signed-off-by: Andrea Arcangeli <aarcange@redhat.com> Cc: Pavel Emelyanov <xemul@parallels.com> Cc: Dave Hansen <dave.hansen@intel.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/userfaultfd.c')
0 files changed, 0 insertions, 0 deletions