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

2015-02-21 Thread Ingo Molnar
* 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 have page size 1M and thread size 4096. > This would lead to a division by zero in the calculation of max_threads. > > With 32-bit calculus there

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

2015-02-21 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 in the calculation of max_threads. With 32-bit calculus there is no solution which delivers valid results fo