Linus Torvalds writes: (Summary) wrote:
Side note: I have a patch to the user access code to do "asm goto" for the exception handling too.
the exception handling too.
In fact, the infrastructure is there already, but because we supported older gcc versions that didn't have asm goto, I never applied the final patch to actually make use of it.
final patch to actually make use of it.
See "unsafe_put_user()", which currently does See "unsafe_put_user()", which currently does
[...]
do runtime branch patching.Side note: I have a patch to the user access code to do "asm goto" for the exception handling too.
the exception handling too.
In fact, the infrastructure is there already, but because we supported older gcc versions that didn't have asm goto, I never applied the final patch to actually make use of it.
final patch to actually make use of it.
See "unsafe_put_user()", which currently does See "unsafe_put_user()", which currently does
if (unlikely(__pu_err)) goto err_label;