Re: [PATCH v3 7/7] util/oslib-posix: Forward SIGBUS to MCE handler under Linux

2021-09-28 Thread David Hildenbrand
On 28.09.21 18:59, Daniel P. Berrangé wrote: 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 me

Re: [PATCH v3 7/7] util/oslib-posix: Forward SIGBUS to MCE handler under Linux

2021-09-28 Thread Daniel P . Berrangé
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_WRI

[PATCH v3 7/7] util/oslib-posix: Forward SIGBUS to MCE handler under Linux

2021-08-16 Thread David Hildenbrand
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