[PATCH v9 4/7] powerpc/code-patching: Verify instruction patch succeeded

Benjamin Gray bgray at linux.ibm.com
Wed Oct 26 11:47:21 AEDT 2022


It occurred to me that we don't require holding a lock when patching
text. Many use cases do hold text_mutex, but it's not required, so it's
possible for this warning to show false positives.

If we do want text_mutex be held, then lockdep_assert_held(&text_mutex)
ought to be added too.


More information about the Linuxppc-dev mailing list