diff options
author | Shaohua Li <[email protected]> | 2017-11-07 11:09:50 -0800 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2017-11-10 19:53:25 -0700 |
commit | e10237cc76ef9a4066a84aa2cc710bfd708cc341 (patch) | |
tree | 6e096297e263119d7c6b80f7e8ff538827e04e3f /lib/netdev-notifier-error-inject.c | |
parent | 18c53e40487f56369c3ba9331ec3597d9b48d97c (diff) |
kthread: zero the kthread data structure
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: syzbot <[email protected]>
Fixes: 05e3db95ebfc ("kthread: add a mechanism to store cgroup info")
Cc: Andrew Morton <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Dmitry Vyukov <[email protected]>
Acked-by: Tejun Heo <[email protected]>
Signed-off-by: Shaohua Li <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions