]> www.infradead.org Git - users/dwmw2/linux.git/commit
s390/futex: Avoid KMSAN instrumention for user pointers
authorHeiko Carstens <hca@linux.ibm.com>
Tue, 21 Jan 2025 14:55:03 +0000 (15:55 +0100)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Sun, 26 Jan 2025 16:24:08 +0000 (17:24 +0100)
commitd8eebb11e933b784f6e5071da93d977f9187b2b5
treebae6a549b1e9b87e9764169e680d80780757184f
parentc4891f4599410e50a1e42b8e76ca769cac83d846
s390/futex: Avoid KMSAN instrumention for user pointers

Similar to commit eb6efdfeaeca ("s390/uaccess: add KMSAN support to
put_user() and get_user()") disable KMSAN instrumention for futex inline
assemblies, which contain dereferenced user pointers. With KMSAN
instrumentation this would lead to accesses of shadows for user pointers,
which should not happen.

Handle the futex operations like they copy a value (old) from user
space to kernel space.

Acked-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
arch/s390/include/asm/futex.h