Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 5.10.y/5.15.y 0/3] ARM: fix might_sleep() WARNING for mmap_write_lock() around show_pte()
@ 2026-09-17  2:30 Xie Yuanbin
  2026-09-17  2:30 ` [PATCH v2 5.10.y/5.15.y 1/3] ARM: fix hash_name() fault Xie Yuanbin
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Xie Yuanbin @ 2026-09-17  2:30 UTC (permalink / raw)
  To: sashal, gregkh, linux, bigeasy, clrkwllms, rostedt, rmk+kernel,
	linusw, kuninori.morimoto.gx, arnd, xiqi2, ljs, wozizhi
  Cc: linux-arm-kernel, linux-kernel, linux-rt-devel, stable, patches,
	lisongze2, wangbing6, Xie Yuanbin

On linux-5.10.y and linux-5.15.y, commit 07e4d5380f2a844ab7a1 ("ARM:
9485/1: mm: acquire mmap write lock around show_pte() for user faults")
introduces a might_sleep() WARNING when using mmap write lock. This is
due to the lack of upstream commit 59e4f3b45b96a24fc9b7 ("ARM: ensure
interrupts are enabled in __do_user_fault()") and
commit e79ca91165d4fd18549c ("ARM: 9484/1: enable interrupts when
unhandled user faults are triggered") .

This series backports all these upstream patches into the linux-5.10.y:
1. commit 7733bc7d299d682f2723 ("ARM: fix hash_name() fault")
2. commit fd2dee1c6e2256f726ba ("ARM: fix branch predictor hardening")
3. commit 59e4f3b45b96a24fc9b7 ("ARM: ensure interrupts are enabled in
   __do_user_fault()")

In the upstream version, the following patches are a patch set:
a. commit dea20281ac8822661576 ("ARM: group is_permission_fault() with
   is_translation_fault()")
b. commit 40b466db1dffb41f0529 ("ARM: allow __do_kernel_fault() to report
   execution of memory faults")
c. commit 7733bc7d299d682f2723 ("ARM: fix hash_name() fault"):
   which is 1.
d. commit fd2dee1c6e2256f726ba ("ARM: fix branch predictor hardening"):
   which is 2.
The fixed issues by this patch set also exist in linux-5.10 && linux-5.15.
a. and b. do not need to be backported, and after c. and d.
is backported, 3. can be safely patched.

V1->V2: https://lore.kernel.org/20260916084807.176359-1-xieyuanbin1@huawei.com


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-09-18  0:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-17  2:30 [PATCH v2 5.10.y/5.15.y 0/3] ARM: fix might_sleep() WARNING for mmap_write_lock() around show_pte() Xie Yuanbin
2026-09-17  2:30 ` [PATCH v2 5.10.y/5.15.y 1/3] ARM: fix hash_name() fault Xie Yuanbin
2026-09-17  2:30 ` [PATCH v2 5.10.y/5.15.y 2/3] ARM: fix branch predictor hardening Xie Yuanbin
2026-09-17  2:30 ` [PATCH v2 5.10.y/5.15.y 3/3] ARM: ensure interrupts are enabled in __do_user_fault() Xie Yuanbin
2026-09-18  0:52 ` [PATCH v2 5.10.y/5.15.y 0/3] ARM: fix might_sleep() WARNING for mmap_write_lock() around show_pte() Sasha Levin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox