Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751311AbdFDOkw (ORCPT ); Sun, 4 Jun 2017 10:40:52 -0400 Received: from helium.openadk.org ([89.238.66.15]:59648 "EHLO helium.openadk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751159AbdFDOkr (ORCPT ); Sun, 4 Jun 2017 10:40:47 -0400 Date: Sun, 4 Jun 2017 16:40:45 +0200 From: Waldemar Brodkorb To: John Paul Adrian Glaubitz Cc: David Miller , wbx@openadk.org, linux-kernel@vger.kernel.org, sparclinux@vger.kernel.org Subject: Re: sparc gcc 7.1 compile issue Message-ID: <20170604144044.GK26922@waldemar-brodkorb.de> References: <20170602091717.GA7452@physik.fu-berlin.de> <20170602.102259.363059784928463769.davem@davemloft.net> <1f8e2488-d051-7688-2d40-089f4acab6ce@physik.fu-berlin.de> <20170602.132809.1754806777743128355.davem@davemloft.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Operating-System: Linux 3.16.0-4-amd64 x86_64 User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 904 Lines: 26 Hi Adrian, John Paul Adrian Glaubitz wrote, > On 06/02/2017 07:28 PM, David Miller wrote: > >> Isn't a bug in the kernel if an application is able to crash to the point > >> that the machine has to be hard-rebooted? > > > > It can be a bug in the compiler too and not necessarily the kernel's > > fault which is what I think is happening in your case. > > 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. What kernel version you are running? Which compiler you used to generate the running kernel? 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? Wouldn't this show if it is a compiler or kernel bug? best regards Waldemar