Skip to content
  • Jan Kara's avatar
    audit: Fix sleep in atomic · be29d20f
    Jan Kara authored
    
    
    Audit tree code was happily adding new notification marks while holding
    spinlocks. Since fsnotify_add_mark() acquires group->mark_mutex this can
    lead to sleeping while holding a spinlock, deadlocks due to lock
    inversion, and probably other fun. Fix the problem by acquiring
    group->mark_mutex earlier.
    
    CC: Paul Moore <paul@paul-moore.com>
    Signed-off-by: default avatarJan Kara <jack@suse.cz>
    Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
    be29d20f