aboutsummaryrefslogtreecommitdiff
path: root/lib/netdev-notifier-error-inject.c
diff options
context:
space:
mode:
authorShaohua Li <[email protected]>2017-11-07 11:09:50 -0800
committerJens Axboe <[email protected]>2017-11-10 19:53:25 -0700
commite10237cc76ef9a4066a84aa2cc710bfd708cc341 (patch)
tree6e096297e263119d7c6b80f7e8ff538827e04e3f /lib/netdev-notifier-error-inject.c
parent18c53e40487f56369c3ba9331ec3597d9b48d97c (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