On 2/25/22 12:28, He Zhe wrote:
> We experienced system hang when using ramoops/ftrace.
>
> To avoid the deadlock causing the hang, rebase the patch in the following
> link onto v5.10 as 4/9. 1/9, 2/9 and 3/9 are minimum basic change

typo, should have been 1/4 - 4/4.

> backported from mainline.
>
> Link: https://lkml.org/lkml/2021/6/10/868
>
> The code path of ftrace function tracer and the other users of it stays
> unchanged.
>
> This has been tested on arm64 and intel-x86-64 hardwares and qemu.
>
> He Zhe (4):
>   ftrace: Move the recursion testing into global headers
>   ftrace: Add ftrace_test_recursion_trylock() helper function
>   pstore/ftrace: Add recursion protection to the ftrace callback
>   pstore/ftrace: Add and use ftrace_test_recursion_trylock_safe
>
>  fs/pstore/ftrace.c              |  11 ++
>  include/linux/ftrace.h          |   1 +
>  include/linux/trace_recursion.h | 242 ++++++++++++++++++++++++++++++++
>  kernel/trace/trace.h            | 156 --------------------
>  4 files changed, 254 insertions(+), 156 deletions(-)
>  create mode 100644 include/linux/trace_recursion.h
>
>
> 
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#10987): 
https://lists.yoctoproject.org/g/linux-yocto/message/10987
Mute This Topic: https://lists.yoctoproject.org/mt/89382551/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to