]> git.baikalelectronics.ru Git - kernel.git/commit
userfaultfd: selftest: avoid my_bcmp false positives with powerpc
authorAndrea Arcangeli <aarcange@redhat.com>
Tue, 22 Sep 2015 21:59:00 +0000 (14:59 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 22 Sep 2015 22:09:53 +0000 (15:09 -0700)
commitbaea3642b75951cda47c11c384a7154d8b559d6e
tree128e8442c6a20e983b9c7939b2e91c55e03f6df5
parentb5c09a39077b77aed8dab5d91234f91ffe2073e4
userfaultfd: selftest: avoid my_bcmp false positives with powerpc

Keep a non-zero placeholder after the count, for the my_bcmp comparison
of the page against the zeropage.  The lockless increment between 255 to
256 against a lockless my_bcmp could otherwise return false positives on
ppc32le.

Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Tested-by: Michael Ellerman <mpe@ellerman.id.au>
Cc: Dr. David Alan Gilbert <dgilbert@redhat.com>
Cc: Shuah Khan <shuahkh@osg.samsung.com>
Cc: Thierry Reding <treding@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
tools/testing/selftests/vm/userfaultfd.c