Re: [PATCH v3 0/4] MIPS: Remove get_fs/set_fs

2021-04-06 Thread Thomas Bogendoerfer
On Thu, Apr 01, 2021 at 02:56:33PM +0200, Thomas Bogendoerfer wrote: > This series replaces get_fs/set_fs and removes it from MIPS arch code. > > Changes in v3: > - use get_user/get_kernel_nofault for helper functions > > Changes in v2: > - added copy_from_kernel_nofault_allowed() for !EVA to res

Re: [PATCH v3 0/4] MIPS: Remove get_fs/set_fs

2021-04-06 Thread Thomas Bogendoerfer
On Tue, Apr 06, 2021 at 09:24:43AM +0200, Christoph Hellwig wrote: > Btw, there is a bunch of cleanups that would fit in nicely on top of > this: > > - remove the unused __invoke_copy_from function I've removed in the last patch before applying to mips-next. > - fold __get_user_check into get_

Re: [PATCH v3 0/4] MIPS: Remove get_fs/set_fs

2021-04-06 Thread Christoph Hellwig
Btw, there is a bunch of cleanups that would fit in nicely on top of this: - remove the unused __invoke_copy_from function - fold __get_user_check into get_user as it is the only caller - fold __get_user_nocheck into __get_user as it is the only caller - fold __put_user_check into put_user as

[PATCH v3 0/4] MIPS: Remove get_fs/set_fs

2021-04-01 Thread Thomas Bogendoerfer
This series replaces get_fs/set_fs and removes it from MIPS arch code. Changes in v3: - use get_user/get_kernel_nofault for helper functions Changes in v2: - added copy_from_kernel_nofault_allowed() for !EVA to restrict access of __get/__put_kernel_nofault - replaced __get_data macro by helper