Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1707786 > unrolled thread
| Started by | Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
|---|---|
| First post | 2017-08-09 21:50 +0200 |
| Last post | 2017-08-11 17:40 +0200 |
| Articles | 4 — 3 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 4.4 01/58] parisc: Increase thread and stack size to 32kb Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-08-09 21:50 +0200
Re: [PATCH 4.4 01/58] parisc: Increase thread and stack size to 32kb Ben Hutchings <ben.hutchings@codethink.co.uk> - 2017-08-11 03:40 +0200
Re: [PATCH 4.4 01/58] parisc: Increase thread and stack size to 32kb Helge Deller <deller@gmx.de> - 2017-08-11 09:30 +0200
Re: [PATCH 4.4 01/58] parisc: Increase thread and stack size to 32kb Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-08-11 17:40 +0200
| From | Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
|---|---|
| Date | 2017-08-09 21:50 +0200 |
| Subject | [PATCH 4.4 01/58] parisc: Increase thread and stack size to 32kb |
| Message-ID | <ucF9p-3gT-43@gated-at.bofh.it> |
4.4-stable review patch. If anyone has any objections, please let me know.
------------------
From: Helge Deller <deller@gmx.de>
commit 8f8201dfed91a43ac38c899c82f81eef3d36afd9 upstream.
Since kernel 4.11 the thread and irq stacks on parisc randomly overflow
the default size of 16k. The reason why stack usage suddenly grew is yet
unknown.
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
arch/parisc/include/asm/thread_info.h | 2 +-
arch/parisc/kernel/irq.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
--- a/arch/parisc/include/asm/thread_info.h
+++ b/arch/parisc/include/asm/thread_info.h
@@ -34,7 +34,7 @@ struct thread_info {
/* thread information allocation */
-#define THREAD_SIZE_ORDER 2 /* PA-RISC requires at least 16k stack */
+#define THREAD_SIZE_ORDER 3 /* PA-RISC requires at least 32k stack */
/* Be sure to hunt all references to this down when you change the size of
* the kernel stack */
#define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER)
--- a/arch/parisc/kernel/irq.c
+++ b/arch/parisc/kernel/irq.c
@@ -380,7 +380,7 @@ static inline int eirr_to_irq(unsigned l
/*
* IRQ STACK - used for irq handler
*/
-#define IRQ_STACK_SIZE (4096 << 2) /* 16k irq stack size */
+#define IRQ_STACK_SIZE (4096 << 3) /* 32k irq stack size */
union irq_stack_union {
unsigned long stack[IRQ_STACK_SIZE/sizeof(unsigned long)];
[toc] | [next] | [standalone]
| From | Ben Hutchings <ben.hutchings@codethink.co.uk> |
|---|---|
| Date | 2017-08-11 03:40 +0200 |
| Message-ID | <ud75E-5qQ-11@gated-at.bofh.it> |
| In reply to | #1707786 |
On Wed, 2017-08-09 at 12:41 -0700, Greg Kroah-Hartman wrote:
> 4.4-stable review patch. If anyone has any objections, please let me know.
>
> ------------------
>
> From: Helge Deller <deller@gmx.de>
>
> commit 8f8201dfed91a43ac38c899c82f81eef3d36afd9 upstream.
>
> Since kernel 4.11 the thread and irq stacks on parisc randomly overflow
> the default size of 16k. The reason why stack usage suddenly grew is yet
> unknown.
So we don't need this for 4.4.
Ben.
> Signed-off-by: Helge Deller <deller@gmx.de>
> Signed-off-by: Helge Deller <deller@gmx.de>
> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
>
> ---
> arch/parisc/include/asm/thread_info.h | 2 +-
> arch/parisc/kernel/irq.c | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> --- a/arch/parisc/include/asm/thread_info.h
> +++ b/arch/parisc/include/asm/thread_info.h
> @@ -34,7 +34,7 @@ struct thread_info {
>
> /* thread information allocation */
>
> -#define THREAD_SIZE_ORDER 2 /* PA-RISC requires at least 16k stack */
> +#define THREAD_SIZE_ORDER 3 /* PA-RISC requires at least 32k stack */
> /* Be sure to hunt all references to this down when you change the size of
> * the kernel stack */
> #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER)
> --- a/arch/parisc/kernel/irq.c
> +++ b/arch/parisc/kernel/irq.c
> @@ -380,7 +380,7 @@ static inline int eirr_to_irq(unsigned l
> /*
> * IRQ STACK - used for irq handler
> */
> -#define IRQ_STACK_SIZE (4096 << 2) /* 16k irq stack size */
> +#define IRQ_STACK_SIZE (4096 << 3) /* 32k irq stack size */
>
> union irq_stack_union {
> unsigned long stack[IRQ_STACK_SIZE/sizeof(unsigned long)];
>
>
--
Ben Hutchings
Software Developer, Codethink Ltd.
[toc] | [prev] | [next] | [standalone]
| From | Helge Deller <deller@gmx.de> |
|---|---|
| Date | 2017-08-11 09:30 +0200 |
| Message-ID | <udcyl-A7-7@gated-at.bofh.it> |
| In reply to | #1709163 |
On 11.08.2017 03:33, Ben Hutchings wrote:
> On Wed, 2017-08-09 at 12:41 -0700, Greg Kroah-Hartman wrote:
>> 4.4-stable review patch. If anyone has any objections, please let me know.
>>
>> ------------------
>>
>> From: Helge Deller <deller@gmx.de>
>>
>> commit 8f8201dfed91a43ac38c899c82f81eef3d36afd9 upstream.
>>
>> Since kernel 4.11 the thread and irq stacks on parisc randomly overflow
>> the default size of 16k. The reason why stack usage suddenly grew is yet
>> unknown.
>
> So we don't need this for 4.4.
Correct.
I had Cc: stable@vger.kernel.org # 4.11+
in the commit itself:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8f8201dfed91a43ac38c899c82f81eef3d36afd9
Helge
>
> Ben.
>
>> Signed-off-by: Helge Deller <deller@gmx.de>
>> Signed-off-by: Helge Deller <deller@gmx.de>
>> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
>>
>> ---
>> arch/parisc/include/asm/thread_info.h | 2 +-
>> arch/parisc/kernel/irq.c | 2 +-
>> 2 files changed, 2 insertions(+), 2 deletions(-)
>>
>> --- a/arch/parisc/include/asm/thread_info.h
>> +++ b/arch/parisc/include/asm/thread_info.h
>> @@ -34,7 +34,7 @@ struct thread_info {
>>
>> /* thread information allocation */
>>
>> -#define THREAD_SIZE_ORDER 2 /* PA-RISC requires at least 16k stack */
>> +#define THREAD_SIZE_ORDER 3 /* PA-RISC requires at least 32k stack */
>> /* Be sure to hunt all references to this down when you change the size of
>> * the kernel stack */
>> #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER)
>> --- a/arch/parisc/kernel/irq.c
>> +++ b/arch/parisc/kernel/irq.c
>> @@ -380,7 +380,7 @@ static inline int eirr_to_irq(unsigned l
>> /*
>> * IRQ STACK - used for irq handler
>> */
>> -#define IRQ_STACK_SIZE (4096 << 2) /* 16k irq stack size */
>> +#define IRQ_STACK_SIZE (4096 << 3) /* 32k irq stack size */
>>
>> union irq_stack_union {
>> unsigned long stack[IRQ_STACK_SIZE/sizeof(unsigned long)];
>>
>>
>
[toc] | [prev] | [next] | [standalone]
| From | Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
|---|---|
| Date | 2017-08-11 17:40 +0200 |
| Message-ID | <udkcy-5fX-27@gated-at.bofh.it> |
| In reply to | #1709332 |
On Fri, Aug 11, 2017 at 09:21:15AM +0200, Helge Deller wrote: > On 11.08.2017 03:33, Ben Hutchings wrote: > > On Wed, 2017-08-09 at 12:41 -0700, Greg Kroah-Hartman wrote: > >> 4.4-stable review patch. If anyone has any objections, please let me know. > >> > >> ------------------ > >> > >> From: Helge Deller <deller@gmx.de> > >> > >> commit 8f8201dfed91a43ac38c899c82f81eef3d36afd9 upstream. > >> > >> Since kernel 4.11 the thread and irq stacks on parisc randomly overflow > >> the default size of 16k. The reason why stack usage suddenly grew is yet > >> unknown. > > > > So we don't need this for 4.4. > > Correct. > > I had Cc: stable@vger.kernel.org # 4.11+ > in the commit itself: > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8f8201dfed91a43ac38c899c82f81eef3d36afd9 > Yes, my fault, I shouldn't have applied it there, now dropped. thanks, greg k-h
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web