]> Git Repo - qemu.git/commitdiff
linux-user: Handle BUS_ADRALN in host_signal_handler
authorRichard Henderson <[email protected]>
Tue, 5 Oct 2021 02:39:29 +0000 (19:39 -0700)
committerRichard Henderson <[email protected]>
Tue, 2 Nov 2021 11:00:52 +0000 (07:00 -0400)
Handle BUS_ADRALN via cpu_loop_exit_sigbus, but allow other SIGBUS
si_codes to continue into the host-to-guest signal conversion code.

Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Signed-off-by: Richard Henderson <[email protected]>
linux-user/signal.c

index df2c8678d0e577bf06f6e93df880c37a22774b6e..81c45bfce9ca55773e376220080985020e6ffb90 100644 (file)
@@ -860,6 +860,9 @@ static void host_signal_handler(int host_sig, siginfo_t *info, void *puc)
             cpu_loop_exit_sigsegv(cpu, guest_addr, access_type, maperr, pc);
         } else {
             sigprocmask(SIG_SETMASK, &uc->uc_sigmask, NULL);
+            if (info->si_code == BUS_ADRALN) {
+                cpu_loop_exit_sigbus(cpu, guest_addr, access_type, pc);
+            }
         }
 
         sync_sig = true;
This page took 0.020663 seconds and 4 git commands to generate.