[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 7/7] util/oslib-posix: Forward SIGBUS to MCE handler under
From: |
Daniel P . Berrangé |
Subject: |
Re: [PATCH v3 7/7] util/oslib-posix: Forward SIGBUS to MCE handler under Linux |
Date: |
Tue, 28 Sep 2021 17:59:54 +0100 |
User-agent: |
Mutt/2.0.7 (2021-05-04) |
On Mon, Aug 16, 2021 at 11:47:39AM +0200, David Hildenbrand wrote:
> Temporarily modifying the SIGBUS handler is really nasty, as we might be
> unlucky and receive an MCE SIGBUS while having our handler registered.
> Unfortunately, there is no way around messing with SIGBUS when
> MADV_POPULATE_WRITE is not applicable or not around.
>
> Let's forward SIGBUS that don't belong to us to the already registered
> handler and document the situation.
>
> Signed-off-by: David Hildenbrand <david@redhat.com>
> ---
> softmmu/cpus.c | 4 ++++
> util/oslib-posix.c | 36 +++++++++++++++++++++++++++++++++---
> 2 files changed, 37 insertions(+), 3 deletions(-)
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
- Re: [PATCH v3 7/7] util/oslib-posix: Forward SIGBUS to MCE handler under Linux,
Daniel P . Berrangé <=