Re: [PATCH v2 1/2] kthread: allocate kthread structure using kmalloc

2016-10-24 Thread Roman Penyaev
On Mon, Oct 24, 2016 at 7:08 PM, Andy Lutomirski wrote: > On Mon, Oct 24, 2016 at 9:08 AM, Roman Pen > wrote: >> This patch avoids allocation of kthread structure on a stack, and simply >> uses kmalloc. Allocation on a stack became a huge problem (with memory >> corruption and all other not nice

Re: [PATCH v2 1/2] kthread: allocate kthread structure using kmalloc

2016-10-24 Thread Roman Penyaev
On Mon, Oct 24, 2016 at 6:42 PM, Peter Zijlstra wrote: > On Mon, Oct 24, 2016 at 06:08:13PM +0200, Roman Pen wrote: >> This patch avoids allocation of kthread structure on a stack, and simply >> uses kmalloc. Allocation on a stack became a huge problem (with memory >> corruption and all other not

Re: [PATCH v2 1/2] kthread: allocate kthread structure using kmalloc

2016-10-24 Thread Andy Lutomirski
On Mon, Oct 24, 2016 at 9:08 AM, Roman Pen wrote: > This patch avoids allocation of kthread structure on a stack, and simply > uses kmalloc. Allocation on a stack became a huge problem (with memory > corruption and all other not nice consequences) after the commit 2deb4be28 > by Andy Lutomirski,

Re: [PATCH v2 1/2] kthread: allocate kthread structure using kmalloc

2016-10-24 Thread Peter Zijlstra
On Mon, Oct 24, 2016 at 06:08:13PM +0200, Roman Pen wrote: > This patch avoids allocation of kthread structure on a stack, and simply > uses kmalloc. Allocation on a stack became a huge problem (with memory > corruption and all other not nice consequences) after the commit 2deb4be28 2deb4be28077

[PATCH v2 1/2] kthread: allocate kthread structure using kmalloc

2016-10-24 Thread Roman Pen
This patch avoids allocation of kthread structure on a stack, and simply uses kmalloc. Allocation on a stack became a huge problem (with memory corruption and all other not nice consequences) after the commit 2deb4be28 by Andy Lutomirski, which rewinds the stack on oops, thus ooopsed kthread steps