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
You need to sign in or sign up before continuing.
  • linux
  • kernel
  • kthread.c
Find file BlameHistoryPermalink
  • Shaohua Li's avatar
    kthread: zero the kthread data structure · e10237cc
    Shaohua Li authored Nov 07, 2017
    
    
    kthread() could bail out early before we initialize blkcg_css (if the
    kthread is killed very early. Please see xchg() statement in kthread()),
    which confuses free_kthread_struct. Instead of moving the blkcg_css
    initialization early, we simply zero the whole 'self' data structure,
    which doesn't sound much overhead.
    
    Reported-by: default avatarsyzbot <syzkaller@googlegroups.com>
    Fixes: 05e3db95
    
     ("kthread: add a mechanism to store cgroup info")
    Cc: Andrew Morton <akpm@linux-foundation.org>
    Cc: Ingo Molnar <mingo@kernel.org>
    Cc: Dmitry Vyukov <dvyukov@google.com>
    Acked-by: default avatarTejun Heo <tj@kernel.org>
    Signed-off-by: default avatarShaohua Li <shli@fb.com>
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    e10237cc
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7