Re: [PATCH 1/1] kernel/fork.c: avoid division by zero

2015-02-17 Thread Heinrich Schuchardt
On 17.02.2015 08:56, Vladimir Davydov wrote: > On Mon, Feb 16, 2015 at 07:00:44PM +0100, Heinrich Schuchardt wrote: >> diff --git a/kernel/fork.c b/kernel/fork.c >> index cf65139..71e2583 100644 >> --- a/kernel/fork.c >> +++ b/kernel/fork.c >> @@ -273,7 +273,8 @@ void __init fork_init(unsigned

Re: [PATCH 1/1] kernel/fork.c: avoid division by zero

2015-02-17 Thread Heinrich Schuchardt
On 17.02.2015 08:56, Vladimir Davydov wrote: On Mon, Feb 16, 2015 at 07:00:44PM +0100, Heinrich Schuchardt wrote: diff --git a/kernel/fork.c b/kernel/fork.c index cf65139..71e2583 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -273,7 +273,8 @@ void __init fork_init(unsigned long mempages)

Re: [PATCH 1/1] kernel/fork.c: avoid division by zero

2015-02-16 Thread Vladimir Davydov
On Mon, Feb 16, 2015 at 07:00:44PM +0100, Heinrich Schuchardt wrote: > diff --git a/kernel/fork.c b/kernel/fork.c > index cf65139..71e2583 100644 > --- a/kernel/fork.c > +++ b/kernel/fork.c > @@ -273,7 +273,8 @@ void __init fork_init(unsigned long mempages) >* value: the thread structures

Re: [PATCH 1/1] kernel/fork.c: avoid division by zero

2015-02-16 Thread Guenter Roeck
On 02/16/2015 10:45 AM, Heinrich Schuchardt wrote: I am resending this mail because the linux-kernel list was not CCed. Yes, sorry, that got lost. The "forward" feature on lkml.org doesn't work as well as it used to, unfortunately, and I keep forgetting. On 16.02.2015 19:23, Guenter Roeck

Re: [PATCH 1/1] kernel/fork.c: avoid division by zero

2015-02-16 Thread Heinrich Schuchardt
I am resending this mail because the linux-kernel list was not CCed. On 16.02.2015 19:23, Guenter Roeck wrote: > On Mon, Feb 16, 2015 at 07:00:44PM +0100, Heinrich Schuchardt wrote: >> PAGE_SIZE is not guaranteed to be equal to or less than 8 times the >> THREAD_SIZE. >> >> E.g. architecture

[PATCH 1/1] kernel/fork.c: avoid division by zero

2015-02-16 Thread Heinrich Schuchardt
PAGE_SIZE is not guaranteed to be equal to or less than 8 times the THREAD_SIZE. E.g. architecture hexagon may have page size 1M and thread size 4096. This would lead to a division by zero. Signed-off-by: Heinrich Schuchardt --- kernel/fork.c | 3 ++- 1 file changed, 2 insertions(+), 1

Re: [PATCH 1/1] kernel/fork.c: avoid division by zero

2015-02-16 Thread Heinrich Schuchardt
I am resending this mail because the linux-kernel list was not CCed. On 16.02.2015 19:23, Guenter Roeck wrote: On Mon, Feb 16, 2015 at 07:00:44PM +0100, Heinrich Schuchardt wrote: PAGE_SIZE is not guaranteed to be equal to or less than 8 times the THREAD_SIZE. E.g. architecture hexagon may

Re: [PATCH 1/1] kernel/fork.c: avoid division by zero

2015-02-16 Thread Guenter Roeck
On 02/16/2015 10:45 AM, Heinrich Schuchardt wrote: I am resending this mail because the linux-kernel list was not CCed. Yes, sorry, that got lost. The forward feature on lkml.org doesn't work as well as it used to, unfortunately, and I keep forgetting. On 16.02.2015 19:23, Guenter Roeck

[PATCH 1/1] kernel/fork.c: avoid division by zero

2015-02-16 Thread Heinrich Schuchardt
PAGE_SIZE is not guaranteed to be equal to or less than 8 times the THREAD_SIZE. E.g. architecture hexagon may have page size 1M and thread size 4096. This would lead to a division by zero. Signed-off-by: Heinrich Schuchardt xypron.g...@gmx.de --- kernel/fork.c | 3 ++- 1 file changed, 2

Re: [PATCH 1/1] kernel/fork.c: avoid division by zero

2015-02-16 Thread Vladimir Davydov
On Mon, Feb 16, 2015 at 07:00:44PM +0100, Heinrich Schuchardt wrote: diff --git a/kernel/fork.c b/kernel/fork.c index cf65139..71e2583 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -273,7 +273,8 @@ void __init fork_init(unsigned long mempages) * value: the thread structures can