lkml.org 
[lkml]   [2017]   [Oct]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [BUG] fs/super: a possible sleep-in-atomic bug in put_super
[CC Vladimir]

On Fri 06-10-17 16:59:18, Jia-Ju Bai wrote:
> According to fs/super.c, the kernel may sleep under a spinlock.
> The function call path is:
> put_super (acquire the spinlock)
> __put_super
> destroy_super
> list_lru_destroy
> list_lru_unregister
> mutex_lock --> may sleep
> memcg_get_cache_ids
> down_read --> may sleep
>
> This bug is found by my static analysis tool and my code review.
>
> Thanks,
> Jia-Ju Bai

--
Michal Hocko
SUSE Labs

\
 
 \ /
  Last update: 2017-10-06 11:07    [W:1.442 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site