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.