]> www.infradead.org Git - users/dwmw2/linux.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:04:34 +0000 (09:04 +0100)
commit294c7a9fb608c29a9e49010b515228e20ccbec8f
tree72323c946bf09b443edf16556f728c84504e92fd
parent1550a97e4a5d8bf29071bd6c17355ca173e90f73
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