From: Guenter Roeck Date: Mon, 11 Aug 2014 03:50:30 +0000 (-0700) Subject: seccomp: Replace BUG(!spin_is_locked()) with assert_spin_lock X-Git-Tag: omap-for-v3.17/fixes-against-rc2~67^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69f6a34bdeea4fec50bb90619bc9602973119572;p=pandora-kernel.git seccomp: Replace BUG(!spin_is_locked()) with assert_spin_lock Current upstream kernel hangs with mips and powerpc targets in uniprocessor mode if SECCOMP is configured. Bisect points to commit dbd952127d11 ("seccomp: introduce writer locking"). Turns out that code such as BUG_ON(!spin_is_locked(&list_lock)); can not be used in uniprocessor mode because spin_is_locked() always returns false in this configuration, and that assert_spin_locked() exists for that very purpose and must be used instead. Fixes: dbd952127d11 ("seccomp: introduce writer locking") Cc: Kees Cook Signed-off-by: Guenter Roeck Signed-off-by: Kees Cook --- Reading git-diff-tree failed