Re: [PATCH] kthread: move the cgroup info initialization early

2017-11-07 Thread Andrew Morton
On Tue, 7 Nov 2017 09:57:03 -0800 Shaohua Li wrote: > kthread() could bail out early before we initialize blkcg_css (if the > kthread is killed very soon), which confuses free_kthread_struct. Move > the blkcg_css initialization early. Changelog is... minimal. I guess it doesn't matter much. >

Re: [PATCH] kthread: move the cgroup info initialization early

2017-11-07 Thread Tejun Heo
On Tue, Nov 07, 2017 at 09:57:03AM -0800, Shaohua Li wrote: > kthread() could bail out early before we initialize blkcg_css (if the > kthread is killed very soon), which confuses free_kthread_struct. Move > the blkcg_css initialization early. > > Reported-by: syzbot > Fix: 05e3db9(kthread: add a

[PATCH] kthread: move the cgroup info initialization early

2017-11-07 Thread Shaohua Li
kthread() could bail out early before we initialize blkcg_css (if the kthread is killed very soon), which confuses free_kthread_struct. Move the blkcg_css initialization early. Reported-by: syzbot Fix: 05e3db9(kthread: add a mechanism to store cgroup info) Cc: Andrew Morton Cc: Ingo Molnar Cc: