Re: [PATCH 1/2] kthread: make struct kthread kmalloc'ed

2016-10-28 Thread Thomas Gleixner
On Fri, 28 Oct 2016, Oleg Nesterov wrote: > I still think we should kill struct kthread in its current form, but this > needs cleanups outside of kthread.c. > > So make it kmalloc'ed for now to avoid the problems with stack corruption, > for example the crashed kthread will likely OOPS again

Re: [PATCH 1/2] kthread: make struct kthread kmalloc'ed

2016-10-28 Thread Thomas Gleixner
On Fri, 28 Oct 2016, Oleg Nesterov wrote: > I still think we should kill struct kthread in its current form, but this > needs cleanups outside of kthread.c. > > So make it kmalloc'ed for now to avoid the problems with stack corruption, > for example the crashed kthread will likely OOPS again

[PATCH 1/2] kthread: make struct kthread kmalloc'ed

2016-10-28 Thread Oleg Nesterov
I still think we should kill struct kthread in its current form, but this needs cleanups outside of kthread.c. So make it kmalloc'ed for now to avoid the problems with stack corruption, for example the crashed kthread will likely OOPS again because its .exited was destroyed by

[PATCH 1/2] kthread: make struct kthread kmalloc'ed

2016-10-28 Thread Oleg Nesterov
I still think we should kill struct kthread in its current form, but this needs cleanups outside of kthread.c. So make it kmalloc'ed for now to avoid the problems with stack corruption, for example the crashed kthread will likely OOPS again because its .exited was destroyed by