Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1657089

Re: sparc gcc 7.1 compile issue

From John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Newsgroups linux.kernel
Subject Re: sparc gcc 7.1 compile issue
Date 2017-06-04 17:10 +0200
Message-ID <tOFkd-6N9-7@gated-at.bofh.it> (permalink)
References (1 earlier) <tNVKr-2l4-49@gated-at.bofh.it> <tNXMd-3Dk-7@gated-at.bofh.it> <tNYyC-49F-11@gated-at.bofh.it> <tODBM-5Ak-7@gated-at.bofh.it> <tOF0S-6pS-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi Waldemar!

On 06/04/2017 04:40 PM, Waldemar Brodkorb wrote:
>> So, in your point of view it's perfectly fine if an application is able
>> to crash the whole kernel with just user privileges?
>>
>> Shouldn't the kernel be able to cope with that?
> 
> I think he means your kernel you are running might be miscompiled
> with gcc 7.1.

The kernel wasn't compiled by 7.1. It was built with 6.3:

[    0.000000] PROMLIB: Sun IEEE Boot Prom 'OBP 4.38.8 2017/02/22 13:51'
[    0.000000] PROMLIB: Root node compatible: sun4v
[    0.000000] Linux version 4.12.0-rc1-sparc64-smp (debian-kernel@lists.debian.org) (gcc version 6.3.0 20170510 (Debian 6.3.0-17) ) #1 SMP Debian
4.12~rc1-1~exp1~sparc64 (2017-05-17)

> What kernel version you are running?

This has been haunting us since around kernel 4.6 or so. It also
only shows when building with many parallel jobs.

> Which compiler you used to generate the running kernel?

6.3.0 20170510 from the gcc-6 branch.

> If it is gcc 7.1, what is if you try to
> reproduce the crash with the same kernel version compiled with gcc
> 6.3?

It's simply gcc-7's testsuite that's crashing the kernel since kernel
versions around 4.6. We haven't done any kernel compiles with gcc-7.1
yet since gcc-7.1 not yet the default compiler, we're just building the
package in Debian experimental.

> Wouldn't this show if it is a compiler or kernel bug?

Yes and I think the data suggests it's rather a kernel bug than a bug
in gcc.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz@debian.org
`. `'   Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

sparc gcc 7.1 compile issue Waldemar Brodkorb <wbx@openadk.org> - 2017-05-31 21:40 +0200
  Re: sparc gcc 7.1 compile issue David Miller <davem@davemloft.net> - 2017-05-31 23:20 +0200
    Re: sparc gcc 7.1 compile issue Waldemar Brodkorb <wbx@openadk.org> - 2017-06-01 14:20 +0200
      Re: sparc gcc 7.1 compile issue John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> - 2017-06-01 14:50 +0200
      Re: sparc gcc 7.1 compile issue Anatoly Pugachev <matorola@gmail.com> - 2017-06-01 14:50 +0200
        Re: sparc gcc 7.1 compile issue David Miller <davem@davemloft.net> - 2017-06-01 18:50 +0200
    Re: sparc gcc 7.1 compile issue John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> - 2017-06-02 11:20 +0200
      Re: sparc gcc 7.1 compile issue David Miller <davem@davemloft.net> - 2017-06-02 16:30 +0200
        Re: sparc gcc 7.1 compile issue John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> - 2017-06-02 18:40 +0200
          Re: sparc gcc 7.1 compile issue David Miller <davem@davemloft.net> - 2017-06-02 19:30 +0200
            Re: sparc gcc 7.1 compile issue John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> - 2017-06-04 15:20 +0200
              Re: sparc gcc 7.1 compile issue Waldemar Brodkorb <wbx@openadk.org> - 2017-06-04 16:50 +0200
                Re: sparc gcc 7.1 compile issue John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> - 2017-06-04 17:10 +0200
                Re: sparc gcc 7.1 compile issue David Miller <davem@davemloft.net> - 2017-06-04 22:30 +0200
                Re: sparc gcc 7.1 compile issue John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> - 2017-06-04 22:30 +0200
              Re: sparc gcc 7.1 compile issue John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> - 2017-06-04 22:30 +0200
                Re: sparc gcc 7.1 compile issue John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> - 2017-06-04 22:40 +0200
                Re: sparc gcc 7.1 compile issue John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> - 2017-06-04 22:40 +0200
                Re: sparc gcc 7.1 compile issue David Miller <davem@davemloft.net> - 2017-06-04 22:40 +0200
                Re: sparc gcc 7.1 compile issue David Miller <davem@davemloft.net> - 2017-06-04 22:40 +0200
              Re: sparc gcc 7.1 compile issue David Miller <davem@davemloft.net> - 2017-06-04 22:30 +0200

csiph-web