Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • drivers
  • block
  • loop.h
Find file BlameHistoryPermalink
  • Tetsuo Handa's avatar
    loop: make autoclear operation asynchronous · 322c4293
    Tetsuo Handa authored Dec 13, 2021
    syzbot is reporting circular locking problem at __loop_clr_fd() [1], for
    commit 87579e9b ("loop: use worker per cgroup instead of kworker")
    is calling destroy_workqueue() with disk->open_mutex held.
    
    This circular dependency cannot be broken unless we call __loop_clr_fd()
    without holding disk->open_mutex. Therefore, defer __loop_clr_fd() from
    lo_release() to a WQ context.
    
    Link: https://syzkaller.appspot.com/bug?extid=643e4ce4b6ad1347d372
    
     [1]
    Reported-by: default avatarsyzbot <syzbot+643e4ce4b6ad1347d372@syzkaller.appspotmail.com>
    Suggested-by: default avatarChristoph Hellwig <hch@infradead.org>
    Cc: Jan Kara <jack@suse.cz>
    Tested-by: default avatar <syzbot+643e4ce4b6ad1347d372@syzkaller.appspotmail.com>
    Signed-off-by: default avatarTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
    Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
    Link: https://lore.kernel.org/r/1ed7df28-ebd6-71fb-70e5-1c2972e05ddb@i-love.sakura.ne.jp
    
    
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    322c4293
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7