[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CA+55aFwoThxqUeAZSsMhf--ODyhGkmOENH5R6=4+CuaopFx9eA@mail.gmail.com>
Date: Fri, 13 Apr 2018 09:33:17 -0700
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Russell King - ARM Linux <linux@...linux.org.uk>
Cc: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
"Dmitry V. Levin" <ldv@...linux.org>,
"Eric W. Biederman" <ebiederm@...ssion.com>,
sparclinux <sparclinux@...r.kernel.org>,
ppc-dev <linuxppc-dev@...ts.ozlabs.org>,
linux-arm-kernel <linux-arm-kernel@...ts.infradead.org>
Subject: Re: sparc/ppc/arm compat siginfo ABI regressions: sending SIGFPE via
kill() returns wrong values in si_pid and si_uid
On Fri, Apr 13, 2018 at 2:42 AM, Russell King - ARM Linux
<linux@...linux.org.uk> wrote:
>
> Yes, it does solve the problem at hand with strace - the exact patch I
> tested against 4.16 is below.
Ok, good.
> However, FPE_FLTUNK is not defined in older kernels, so while we can
> fix it this way for the current merge window, that doesn't help 4.16.
I wonder if we should even bother with FPE_FLTUNK.
I suspect we might as well use FPE_FLTINV, I suspect, and not have
this complexity at all. That case is not worth worrying about, since
it's a "this shouldn't happen anyway" and the *real* reason will be in
the kernel logs due to vfs_panic().
So it's not like this is something that the user should ever care
about the si_code about.
> Given that the path we're talking about is unlikely to happen (as
> mentioned in my second paragraph) I still think reverting Eric's patch
> is the right way forward for older kernels.
I'd much rather get rid of that FPE_FIXME, and leave that whole mess behind.
So the attached patch seems simple and should work with 4.16 too.
Let's not leave this as some kind of nasty maintenance issue, and just
go for simple and stupid.
Hmm?
Linus
View attachment "patch.diff" of type "text/x-patch" (1037 bytes)
Powered by blists - more mailing lists