Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1700211
| From | Mikael Pettersson <mikpelinux@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: strace-4.18 test suite oopses sparc64 4.12 and 4.13-rc kernels |
| Date | 2017-07-31 19:20 +0200 |
| Message-ID | <u9mwi-Ac-19@gated-at.bofh.it> (permalink) |
| References | <u7WXg-1XP-3@gated-at.bofh.it> <u85QR-7Sb-5@gated-at.bofh.it> <u8986-1mx-19@gated-at.bofh.it> <u8xDr-140-5@gated-at.bofh.it> <u8yJc-20W-17@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Mikael Pettersson writes:
> Anatoly Pugachev writes:
> > On Fri, Jul 28, 2017 at 11:45 AM, Mikael Pettersson
> > <mikpelinux@gmail.com> wrote:
> > > It's an rpmbuild --rebuild of Fedora's strace-4.18-1.fc24.src.rpm, but according to the
> > > build log the following should do it:
> > >
> > > export CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -grecord-gcc-switches -m32 -mcpu=ultrasparc'
> > > ./configure --build=sparcv9-unknown-linux-gnu --host=sparcv9-unknown-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/u
> > > sr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --local
> > > statedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info
> > > make -j2
> > > make -j2 -k check VERBOSE=1
> >
> > cant' reproduce it here on debian sparc64 LDOM:
>
> DaveM was also unable to reproduce it.
>
> I'll be investigating a possible kernel miscompile next.
I don't think it's a miscompile.
First I recompiled 4.13-rc2 with each of gcc-7, gcc-6, and gcc-5, each
bootstrapped and regtested from the head of the respective FSF GCC branch:
no change, kernel 4.11 works while kernels >= 4.12 OOPS. So a miscompile
seems unlikely.
Then I ran a git bisect between v4.11 (good) and v4.12 (bad), booting
each kernel and trying the problematic strace test binaries. That
identified the following as the first bad commit:
commit 31af2f36d50e3b9b2fb7f17aa430c11c91f946c4
Author: Al Viro <viro@zeniv.linux.org.uk>
Date: Tue Mar 21 17:04:45 2017 -0400
sparc: switch to RAW_COPY_USER
... and drop zeroing in sparc32.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
That touches the CPU model specific assembly code in arch/sparc/lib/ for
copy_{to,from}_user and changes how it's wired into the rest of the kernel.
There's different code for different UltraSPARC and Niagara generations,
so if there is a bug in e.g. the USIII code, you won't see it on Niagara.
Unfortunately I don't see anything obviously wrong in Al's patch...
/Mikael
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
strace-4.18 test suite oopses sparc64 4.12 and 4.13-rc kernels Mikael Pettersson <mikpelinux@gmail.com> - 2017-07-27 21:50 +0200
Re: strace-4.18 test suite oopses sparc64 4.12 and 4.13-rc kernels David Miller <davem@davemloft.net> - 2017-07-28 07:20 +0200
Re: strace-4.18 test suite oopses sparc64 4.12 and 4.13-rc kernels Mikael Pettersson <mikpelinux@gmail.com> - 2017-07-28 10:50 +0200
Re: strace-4.18 test suite oopses sparc64 4.12 and 4.13-rc kernels David Miller <davem@davemloft.net> - 2017-07-28 20:30 +0200
Re: strace-4.18 test suite oopses sparc64 4.12 and 4.13-rc kernels David Miller <davem@davemloft.net> - 2017-07-28 20:40 +0200
Re: strace-4.18 test suite oopses sparc64 4.12 and 4.13-rc kernels Anatoly Pugachev <matorola@gmail.com> - 2017-07-29 13:00 +0200
Re: strace-4.18 test suite oopses sparc64 4.12 and 4.13-rc kernels Mikael Pettersson <mikpelinux@gmail.com> - 2017-07-29 14:10 +0200
Re: strace-4.18 test suite oopses sparc64 4.12 and 4.13-rc kernels Mikael Pettersson <mikpelinux@gmail.com> - 2017-07-31 19:20 +0200
Re: strace-4.18 test suite oopses sparc64 4.12 and 4.13-rc kernels Anatoly Pugachev <matorola@gmail.com> - 2017-07-31 23:50 +0200
Re: strace-4.18 test suite oopses sparc64 4.12 and 4.13-rc kernels David Miller <davem@davemloft.net> - 2017-08-01 00:00 +0200
Re: strace-4.18 test suite oopses sparc64 4.12 and 4.13-rc kernels David Miller <davem@davemloft.net> - 2017-08-01 00:10 +0200
Re: strace-4.18 test suite oopses sparc64 4.12 and 4.13-rc kernels Mikael Pettersson <mikpelinux@gmail.com> - 2017-08-01 09:30 +0200
Re: strace-4.18 test suite oopses sparc64 4.12 and 4.13-rc kernels Sam Ravnborg <sam@ravnborg.org> - 2017-08-01 23:00 +0200
Re: strace-4.18 test suite oopses sparc64 4.12 and 4.13-rc kernels Sam Ravnborg <sam@ravnborg.org> - 2017-08-02 23:40 +0200
Re: strace-4.18 test suite oopses sparc64 4.12 and 4.13-rc kernels David Miller <davem@davemloft.net> - 2017-08-03 01:30 +0200
Re: strace-4.18 test suite oopses sparc64 4.12 and 4.13-rc kernels Mikael Pettersson <mikpelinux@gmail.com> - 2017-08-03 22:10 +0200
Re: strace-4.18 test suite oopses sparc64 4.12 and 4.13-rc kernels David Miller <davem@davemloft.net> - 2017-08-04 00:00 +0200
Re: strace-4.18 test suite oopses sparc64 4.12 and 4.13-rc kernels Sam Ravnborg <sam@ravnborg.org> - 2017-08-04 07:50 +0200
Re: strace-4.18 test suite oopses sparc64 4.12 and 4.13-rc kernels Mikael Pettersson <mikpelinux@gmail.com> - 2017-08-04 10:10 +0200
Re: strace-4.18 test suite oopses sparc64 4.12 and 4.13-rc kernels David Miller <davem@davemloft.net> - 2017-08-04 18:50 +0200
Re: strace-4.18 test suite oopses sparc64 4.12 and 4.13-rc kernels Anatoly Pugachev <matorola@gmail.com> - 2017-08-01 00:10 +0200
csiph-web