Re: [RFC V2] fs/kcore: change copy_to_user to copy_in_user

2015-08-20 Thread Andrew Morton
On Thu, 20 Aug 2015 18:46:56 +0800 yalin wang wrote: > The copy_to_user() here expect can fix the fault on both kernel and > user address, this is not true on other platforms except x86, > change to user copy_in_user() so that can detect the source and > destination address page fault, work as

[RFC V2] fs/kcore: change copy_to_user to copy_in_user

2015-08-20 Thread yalin wang
The copy_to_user() here expect can fix the fault on both kernel and user address, this is not true on other platforms except x86, change to user copy_in_user() so that can detect the source and destination address page fault, work as expected: ENTRY(copy_user_generic_string) ASM_STAC

[RFC V2] fs/kcore: change copy_to_user to copy_in_user

2015-08-20 Thread yalin wang
The copy_to_user() here expect can fix the fault on both kernel and user address, this is not true on other platforms except x86, change to user copy_in_user() so that can detect the source and destination address page fault, work as expected: ENTRY(copy_user_generic_string) ASM_STAC

Re: [RFC V2] fs/kcore: change copy_to_user to copy_in_user

2015-08-20 Thread Andrew Morton
On Thu, 20 Aug 2015 18:46:56 +0800 yalin wang yalin.wang2...@gmail.com wrote: The copy_to_user() here expect can fix the fault on both kernel and user address, this is not true on other platforms except x86, change to user copy_in_user() so that can detect the source and destination address