Re: [PATCH v2 06/15] powerpc/align: Don't use __get_user_instr() on kernel addresses

2021-03-25 Thread Daniel Axtens
Christophe Leroy writes: > In the old days, when we didn't have kernel userspace access > protection and had set_fs(), it was wise to use __get_user() > and friends to read kernel memory. > > Nowadays, get_user() is granting userspace access and is exclusively > for userspace access. > > In

[PATCH v2 06/15] powerpc/align: Don't use __get_user_instr() on kernel addresses

2021-03-10 Thread Christophe Leroy
In the old days, when we didn't have kernel userspace access protection and had set_fs(), it was wise to use __get_user() and friends to read kernel memory. Nowadays, get_user() is granting userspace access and is exclusively for userspace access. In alignment exception handler, use