Messages in this thread | | | Date | Tue, 30 Mar 2021 22:02:08 +0200 | From | Thomas Bogendoerfer <> | Subject | Re: [PATCH 1/3] MIPS: uaccess: Added __get/__put_kernel_nofault |
| |
On Tue, Mar 30, 2021 at 07:48:35PM +0200, Christoph Hellwig wrote: > On Tue, Mar 30, 2021 at 07:26:58PM +0200, Thomas Bogendoerfer wrote: > > Added __get/__put_kernel_nofault as preparation for removing > > get/set_fs. > > For !CONFIG_EVA __get_user_common is simply defined to > __get_kernel_common, which probably does the wrong thing here > as it would allow access to user space addresses, won't it?
it does, so I'm missing a copy_from_kernel_nofault_allowed() function, which only allows kernel access, right ?
Thomas.
-- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]
| |