From: Rusty Russell Date: Tue, 28 Jul 2015 20:22:14 +0000 (+0930) Subject: module: weaken locking assertion for oops path. X-Git-Tag: omap-for-v4.3/fixes-merge-window~148^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe0d34d242fa1e0dec059e774d146a705420bc9a;p=pandora-kernel.git module: weaken locking assertion for oops path. We don't actually hold the module_mutex when calling find_module_all from module_kallsyms_lookup_name: that's because it's used by the oops code and we don't want to deadlock. However, access to the list read-only is safe if preempt is disabled, so we can weaken the assertion. Keep a strong version for external callers though. Fixes: 0be964be0d45 ("module: Sanitize RCU usage and locking") Reported-by: He Kuang Cc: stable@kernel.org Acked-by: Peter Zijlstra (Intel) Signed-off-by: Rusty Russell --- Reading git-diff-tree failed