Re: [RFC PATCH 1/2] kernel/fork.c: add a function to calculate page address from thread_info

From: Jungseok Lee
Date: Wed May 27 2015 - 11:19:55 EST


On May 27, 2015, at 12:49 PM, KOSAKI Motohiro wrote:

Hello, KOSAKI,

> On Sun, May 24, 2015 at 12:01 PM, Jungseok Lee <jungseoklee85@xxxxxxxxx> wrote:
>> A current implementation assumes thread_info address is always correctly
>> calculated via virt_to_page. It restricts a different approach, such as
>> thread_info allocation from vmalloc space.
>>
>> This patch, thus, introduces an independent function to calculate page
>> address from thread_info one.
>>
>> Suggested-by: Sungjinn Chung <barami97@xxxxxxxxx>
>> Signed-off-by: Jungseok Lee <jungseoklee85@xxxxxxxxx>
>> Cc: KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxxxxxxx>
>> Cc: linux-arm-kernel@xxxxxxxxxxxxxxxxxxx
>> ---
>> kernel/fork.c | 7 ++++++-
>> 1 file changed, 6 insertions(+), 1 deletion(-)
>
> I haven't receive a path [2/2] and haven't review whole patches. But
> this patch itself is OK to me.
> Acked-by: KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxxxx>

Thanks!

I didn't add you to Cc list since [PATCH 2/2] is architecture specific.
According to the feedbacks, it is needed to figure out fundamental solutions:
1) reduce stack size and 2) focus on a generic anti-fragmentation logic.

Please refer to https://lkml.org/lkml/2015/5/24/121 for [PATCH 2/2].

Best Regards
Jungseok Lee--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/