Files
android_kernel_xiaomi_sm8450/arch/s390/include/asm
Gerald Schaefer 582b4e5540 s390/mm: fix panic in gup_fast on large pud
On s390 there currently is no implementation of pud_write(). That was ok
as long as we had our own implementation of get_user_pages_fast() which
checked for pud protection by testing the bit directly w/o using
pud_write(). The other callers of pud_write() are not reachable on s390.

After commit 1a42010cdc ("s390/mm: convert to the generic
get_user_pages_fast code") we use the generic get_user_pages_fast(), which
does call pud_write() in pud_access_permitted() for FOLL_WRITE access on
a large pud. Without an s390 specific pud_write(), the generic version is
called, which contains a BUG() statement to remind us that we don't have a
proper implementation. This results in a kernel panic.

Fix this by providing an implementation of pud_write().

Cc: <stable@vger.kernel.org> # 5.2+
Fixes: 1a42010cdc ("s390/mm: convert to the generic get_user_pages_fast code")
Signed-off-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
2020-03-04 11:18:03 +01:00
..
2020-01-22 13:05:35 +01:00
2017-12-05 07:51:09 +01:00
2019-04-29 10:47:10 +02:00
2019-04-25 15:34:10 +02:00
2019-04-29 10:47:10 +02:00
2019-06-19 17:54:27 +02:00
2019-08-21 12:41:43 +02:00
2019-04-29 10:47:10 +02:00
2019-02-05 14:29:23 +01:00
2020-01-30 13:07:55 +01:00
2019-04-29 10:47:10 +02:00
2019-06-07 10:09:37 +02:00
2019-02-07 18:06:18 -08:00
2019-06-07 10:09:42 +02:00
2019-04-03 10:32:57 +02:00
2019-06-07 10:09:37 +02:00
2019-07-23 10:45:53 +02:00
2019-11-30 10:52:44 +01:00
2017-12-05 07:51:09 +01:00