yama_ptracer_del can be called in softirq context, also
can be run in common process context, so take spin_lock_bh
in yama_ptracer_del to fix it, othewise deadlock may be
produced.
SRU Justification:
Impact:
- lockdep warning is triggered if lockdep config options are
enabled
- probably deadlock can be produced in yama_ptracer_del path
Fix:
- After applying the patch, lockdep warning is fixefd
BugLink: http://bugs.launchpad.net/bugs/791019
Signed-off-by: Ming Lei <ming.lei@canonical.com>
---
security/yama/yama_lsm.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)