linux-stable/arch/xtensa
Max Filippov 7b9acbb6aa xtensa: fix uaccess-related livelock in do_page_fault
If a uaccess (e.g. get_user()) triggers a fault and there's a
fault signal pending, the handler will return to the uaccess without
having performed a uaccess fault fixup, and so the CPU will immediately
execute the uaccess instruction again, whereupon it will livelock
bouncing between that instruction and the fault handler.

https://lore.kernel.org/lkml/20210121123140.GD48431@C02TD0UTHF1T.local/

Cc: stable@vger.kernel.org
Reported-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
2021-03-29 11:25:11 -07:00
..
boot Kbuild updates for v5.9 2020-08-09 14:10:26 -07:00
configs arch: xtensa: Remove CONFIG_OPROFILE support 2021-01-29 10:05:51 +05:30
include locking/arch: Move qrwlock.h include after qspinlock.h 2021-02-11 07:59:54 -05:00
kernel xtensa: move coprocessor_flush to the .text section 2021-03-08 20:15:09 -08:00
lib xtensa: propagate the calling conventions change down into csum_partial_copy_generic() 2020-08-20 15:45:21 -04:00
mm xtensa: fix uaccess-related livelock in do_page_fault 2021-03-29 11:25:11 -07:00
platforms block: store a block_device pointer in struct bio 2021-01-24 18:17:20 -07:00
variants xtensa: add test_kc705_be variant 2018-08-20 12:34:45 -07:00
Kconfig arch: xtensa: Remove CONFIG_OPROFILE support 2021-01-29 10:05:51 +05:30
Kconfig.debug xtensa: make stack dump size configurable 2019-11-26 11:33:39 -08:00
Makefile arch: xtensa: Remove CONFIG_OPROFILE support 2021-01-29 10:05:51 +05:30