Re: [PATCH v3 1/4] powerpc: Remove probe_user_read_inst()

2021-04-21 Thread Michael Ellerman
On Wed, 14 Apr 2021 13:08:40 + (UTC), Christophe Leroy wrote: > Its name comes from former probe_user_read() function. > That function is now called copy_from_user_nofault(). > > probe_user_read_inst() uses copy_from_user_nofault() to read only > a few bytes. It is suboptimal. > > It does the

[PATCH v3 1/4] powerpc: Remove probe_user_read_inst()

2021-04-14 Thread Christophe Leroy
Its name comes from former probe_user_read() function. That function is now called copy_from_user_nofault(). probe_user_read_inst() uses copy_from_user_nofault() to read only a few bytes. It is suboptimal. It does the same as get_user_inst() but in addition disables page faults. But on the other