Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp530297imm; Fri, 12 Oct 2018 02:21:35 -0700 (PDT) X-Google-Smtp-Source: ACcGV62r/+rqTRjTL2llQ38RiWoD/4eYFZ3NSoEB014GXIKLvBDUma981OIZiclEk2dHt5nitDbY X-Received: by 2002:a17:902:8a89:: with SMTP id p9-v6mr5220532plo.183.1539336095054; Fri, 12 Oct 2018 02:21:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539336095; cv=none; d=google.com; s=arc-20160816; b=lepkfdUihvVBEedQfbY/LybAO1G3r5x2dj4Qeixtb17DswDe7nn9ECDc0AZpG21Q6f 9ZuxaWOjaTkEU7qHarV+ugRCKi3DG96hkFBmo6SliPt7cbTlZsKLYO0h6p10wr8TBjAX S2xStoDk6aVQS7cWIX0GyYVMzGF5FIcHt/ieEtOY8RN8cE/nkiRinavJfel2ImOilWeh mdwE7+Zm8tq1TTQ9tNDCcZH8NgbnNAsk/dzwZasTsEUSl3vsMhpdqZyELYzmPHOz3a+b f0RWsYXF/h8YAJiCTxyoSPkuD2GkbkpIlxr4nBT2xG7axAqs6XBZtQvAh6vNbCq2hmQO /DmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=GALBoWtnSIy06y3JZpLzgiO2or4bRi3MQ/tzMvU5fIY=; b=S9vtZGdQ+6Xd4zlZ17RWVURm5ul2smTliNlOIuF4mA+HsQjnfDudD80Awomw+RcROm KD1wSJJUhVMXDl8ZHmXhf/xa61GvNoupryrso1CUhUGRYWBnmBeS7WrtZrvlkMLc+8rM 1JxBR/hcht7LLJ8mqcmLNFxV/Dikbyeil/P41Ue1G2NHdb3xZnJjE7iIoSfP7A548g+M 7WG7bseBUVy/vt/tTuph23B6YZPfpD97xtA8Y/ppyuqwn+FTtbVGeI1TIZrEnNNmJb4e QyEgTimdM/RxAI7Y7x/afpy4a6Y9MbbUnxVI1BUQQ4tqBxb/yimoeUthfHV1GTwxwLG9 LuwA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r15-v6si721234pgh.88.2018.10.12.02.21.20; Fri, 12 Oct 2018 02:21:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728153AbeJLQw1 (ORCPT + 99 others); Fri, 12 Oct 2018 12:52:27 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:64594 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727808AbeJLQw1 (ORCPT ); Fri, 12 Oct 2018 12:52:27 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 42Wj4N4NLmz9ttG2; Fri, 12 Oct 2018 11:20:52 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id 2lKVWPxyWXgL; Fri, 12 Oct 2018 11:20:52 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 42Wj4N3ZPVz9ttCS; Fri, 12 Oct 2018 11:20:52 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 17FE48B8C7; Fri, 12 Oct 2018 11:20:56 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id o19KkQJs_lNu; Fri, 12 Oct 2018 11:20:56 +0200 (CEST) Received: from PO15451 (unknown [192.168.232.3]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 9D7228B8C2; Fri, 12 Oct 2018 11:20:55 +0200 (CEST) Subject: Re: [BUG][linux-next][ppc] kernel panic - not syncing: stack-protector: Kernel stack is corrupted in: __schedule+0x978/0xa80 To: "Aneesh Kumar K.V" , Abdul Haleem , linuxppc-dev Cc: sachinp , Stephen Rothwell , linux-kernel , npiggin , linux-next , manvanth References: <1539330331.17569.32.camel@abdul.in.ibm.com> <1539330499.17569.33.camel@abdul.in.ibm.com> From: Christophe LEROY Message-ID: Date: Fri, 12 Oct 2018 11:20:55 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 12/10/2018 à 11:02, Aneesh Kumar K.V a écrit : > On 10/12/18 1:38 PM, Christophe LEROY wrote: >> >> >> Le 12/10/2018 à 09:48, Abdul Haleem a écrit : >>> On Fri, 2018-10-12 at 13:15 +0530, Abdul Haleem wrote: >>>> Greeting's >>>> >>>> Today's linux-next fails to boot on powerpc bare-metal with this error >>>> >>>> POWER8 performance monitor hardware support registered >>>> rcu: Hierarchical SRCU implementation. >>>> smp: Bringing up secondary CPUs ... >>>> Kernel panic - not syncing: stack-protector: Kernel stack is >>>> corrupted in: __schedule+0x978/0xa80 >>>> CPU: 1 PID: 0 Comm: swapper/1 Not tainted >>>> 4.19.0-rc7-next-20181010-autotest-autotest #1 >>>> Call Trace: >>>> [c000001fed5b3bf0] [c000000000a0ef3c] dump_stack+0xb0/0xf4 (unreliable) >>>> [c000001fed5b3c30] [c0000000000f9d68] panic+0x140/0x308 >>>> [c000001fed5b3cc0] [c0000000000f9844] __stack_chk_fail+0x24/0x30 >>>> [c000001fed5b3d20] [c000000000a2c3a8] __schedule+0x978/0xa80 >>>> [c000001fed5b3e00] [c000000000a2c9b4] schedule_idle+0x34/0x60 >>>> [c000001fed5b3e30] [c00000000013d344] do_idle+0x224/0x3d0 >>>> [c000001fed5b3ec0] [c00000000013d6e0] cpu_startup_entry+0x30/0x50 >>>> [c000001fed5b3ef0] [c000000000047f34] start_secondary+0x4d4/0x520 >>>> [c000001fed5b3f90] [c00000000000b370] start_secondary_prolog+0x10/0x14 >>>> Rebooting in 10 seconds.. >>>> >>>> Machine: Power 8 bare-metal >>>> kernel version: 4.19.0-rc7-next-20181010 >>>> gcc version: 4.8.5 20150623 >>>> config attach >>> >>> Attaching the kernel config file >>> >> >> # Linux/powerpc 4.11.0-rc4 Kernel Configuration >> >> This is not the correct config file. Can you send the .config ? >> >> Christophe > > modified   kernel/sched/idle.c > @@ -352,7 +352,6 @@ void cpu_startup_entry(enum cpuhp_state state) >       * make this generic (ARM and SH have never invoked the canary >       * init for the non boot CPUs!). Will be fixed in 3.11 >       */ > -#ifdef CONFIG_X86 >      /* >       * If we're the non-boot CPU, nothing set the stack canary up >       * for us. The boot CPU already has it initialized but no harm > @@ -361,7 +360,6 @@ void cpu_startup_entry(enum cpuhp_state state) >       * canaries already on the stack wont ever trigger). >       */ >      boot_init_stack_canary(); > -#endif >      arch_cpu_idle_prepare(); >      cpuhp_online_idle(state); >      while (1) > > > This fixes it for me. But we may have to look at the other arch details > mentioned there. Otherwise, we can call boot_init_stack_canary() from start_secondary() before calling cpu_startup_entry() can't we ? Christophe