kernel/seccomp.c:1302:2: warning: mutex 'get_current().signal->cred_guard_mutex' is not held on every path through here [-Wthread-safety-analysis]
spin_lock_irq(¤t->sighand->siglock);
^
kernel/seccomp.c:1299:6: note: mutex acquired here
mutex_lock_killable(¤t->signal->cred_guard_mutex))
^
kernel/seccomp.c:1317:3: warning: releasing mutex 'get_current().signal->cred_guard_mutex' that was not held [-Wthread-safety-analysis]
mutex_unlock(¤t->signal->cred_guard_mutex);
^
seccomp_set_mode_filter() only tries to lock and unlock current->signal->cred_guard_mutex when the SECCOMP_FILTER_FLAG_TSYNC is set.
seccomp_set_mode_filter()
only tries to lock and unlockcurrent->signal->cred_guard_mutex
when theSECCOMP_FILTER_FLAG_TSYNC
is set.