Re: [PATCH] x86/signals: Fix lower/upper bound reporting in compat siginfo
From: Joerg Roedel
Date: Tue Apr 04 2017 - 17:53:56 EST
On Tue, Apr 04, 2017 at 09:56:45AM -0700, Dave Hansen wrote:
> On 04/04/2017 09:15 AM, Joerg Roedel wrote:
> > Put the right values from the original siginfo into the
> > userspace compat-siginfo.
> >
> > This fixes the 32-bit mpx tabletest on a 64-bit kernel.
>
> Ugh, thanks for finding that.
Yeah, I was also looking at the vaddrexhaust test, but is that supposed
to work? It does pretty weird things at least, on 64 bit the function
effectivly does nothing because nr_to_fill evaluates to 0 there, and on
32 bit it gets a (probably #BF) exception which is not caught, so that
the test fails.
I am a bit confused, but maybe I just didn't stare long enough at it :-)
Hope you can sched some light on it.
Joerg