Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1507636

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

From Roman Penyaev <roman.penyaev@profitbricks.com>
Newsgroups linux.kernel
Subject Re: [PATCH v2 1/2] kthread: allocate kthread structure using kmalloc
Date 2016-10-24 21:20 +0200
Message-ID <svSWR-3rd-5@gated-at.bofh.it> (permalink)
References <svPYZ-1uD-5@gated-at.bofh.it> <svQBH-1Ks-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Oct 24, 2016 at 6:42 PM, Peter Zijlstra <peterz@infradead.org> 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 nice consequences) after the commit 2deb4be28
>
> 2deb4be28077 ("x86/dumpstack: When OOPSing, rewind the stack before do_exit()")
>
> Is the normal quoting style.
>
> .gitconfig:
>
> [core]
>         abbrev = 12
> [alias]
>         one = show -s --pretty='format:%h (\"%s\")'

Nice tip. Thanks.

--
Roman

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 1/2] kthread: allocate kthread structure using kmalloc Roman Pen <roman.penyaev@profitbricks.com> - 2016-10-24 18:10 +0200
  Re: [PATCH v2 1/2] kthread: allocate kthread structure using kmalloc Peter Zijlstra <peterz@infradead.org> - 2016-10-24 18:50 +0200
    Re: [PATCH v2 1/2] kthread: allocate kthread structure using kmalloc Roman Penyaev <roman.penyaev@profitbricks.com> - 2016-10-24 21:20 +0200
  Re: [PATCH v2 1/2] kthread: allocate kthread structure using kmalloc Andy Lutomirski <luto@amacapital.net> - 2016-10-24 19:10 +0200
    Re: [PATCH v2 1/2] kthread: allocate kthread structure using kmalloc Roman Penyaev <roman.penyaev@profitbricks.com> - 2016-10-24 21:40 +0200

csiph-web