Hi Michael, On Wed, Feb 22, 2023 at 8:52 PM Michael Schmitz <schmitzmic@xxxxxxxxx> wrote:
__get_kernel_nofault() does copy data in supervisor mode when forcing a task backtrace dump through the sysrq trigger. Our 030 bus error handler is ill equipped to deal with this: Whenever ssw indicates a kernel mode access on a data fault, we don't even attempt to handle the fault and instead send a bus error signal (or panic). As a result, the check for exception handling at the fault PC (buried in send_sig_fault() which gets called from do_page_fault() eventually) is never used. Both 040 and 060 access error handlers do not care whether a fault happened on supervisor mode access, and will call do_page_fault() even on those. Add a check in bus_error030 to call do_page_fault() in case we do have an entry for the fault PC in our exception table. Tested on 030 Atari Falcon.
Thanks for your patch!
Signed-off-by: Michael Schmitz <schmitzmic@xxxxxxxxx># Please enter the commit message for your changes. Lines starting
Please remove the comment ;-)
CC: Eero Tamminen <oak@xxxxxxxxxxxxxx> CC: Finn Thain <ftain@xxxxxxxxxxxxxx> CC: Andreas Schwab <schwab@xxxxxxxxxxxxxx> CC: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> Link: https://lore.kernel.org/r/daca2f68-19fa-a2b6-97c6-16b5b7e26afe@xxxxxxxxxxxxxx
404 I assume that a message from debian-68k? Do you have a https://lists.debian.org/debian-68k/ link? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds