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. Change-Id: I64348ea04e1535c9e97a57a04d721b6d223e3ef0 Fixes: dbd952127d11 ("seccomp: introduce writer locking") Cc: Kees Cook <keescook@chromium.org> Signed-off-by:Guenter Roeck <linux@roeck-us.net> Signed-off-by:
Kees Cook <keescook@chromium.org> Git-commit: 9ac860041db860a59bfd6ac82b31d6b6f76ebb52 Git-repo: https://www.codeaurora.org/cgit/external/gigabyte/kernel/msm Signed-off-by:
Ravi Kumar Siddojigari <rsiddoji@codeaurora.org>
Loading
Please register or sign in to comment