]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mips,s390,sh,sparc: gup: Work around the "COW can break either way" issue
authorBen Hutchings <ben@decadent.org.uk>
Mon, 24 Jan 2022 15:11:18 +0000 (16:11 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 08:01:01 +0000 (09:01 +0100)
commit70b5928f5cd289b2ccf34384ca83b1d9ee7a0fad
treefc9bbfca141e609e383784bea4c0defa47f4c156
parent04d1dbd1e8e21fc115a839ef39bf66a26542c98c
mips,s390,sh,sparc: gup: Work around the "COW can break either way" issue

In Linux 4.14 and 4.19 these architectures still have their own
implementations of get_user_pages_fast().  These also need to force
the write flag on when taking the fast path.

Fixes: 407faed92b4a ("gup: document and work around "COW can break either way" issue")
Fixes: 5e24029791e8 ("gup: document and work around "COW can break either way" issue")
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/mips/mm/gup.c
arch/s390/mm/gup.c
arch/sh/mm/gup.c
arch/sparc/mm/gup.c