Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2097289imu; Thu, 24 Jan 2019 07:11:18 -0800 (PST) X-Google-Smtp-Source: ALg8bN41SgcKzktmaQvI+k9lp0W4YolfSJdQX6EwMAgK1nudR3ynd+taj3iheBZs3Y6M+GYLFTHV X-Received: by 2002:a62:c505:: with SMTP id j5mr6802875pfg.149.1548342678439; Thu, 24 Jan 2019 07:11:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548342678; cv=none; d=google.com; s=arc-20160816; b=gtL6Lg4DgjTQnMSE9yKsn2l0zvLiAnZKBi0/InWW9NrexT9cwlVCSqy541RXs+K0CE KjnGo7zUszyv3B/cK97CC3FQOsGPAg4TjOgO+KBdl2mnErFb0CrBkuY6dQiP/c7Pr2Lk dv3AWEVhOOyE3Ib8pqLxXy1C4YoJ+BnIXN1+iDLaT87uPGv9oNuNSigbScw9fOyI1SeN mgb1BtkVRs2bgGBCQiLNcVJg4MpBDpL9iPH6oTOEJ47+EoRhYo7phLhVB8yOvsa8YWbA a3duXG8TY+QYHm+5mSzmsCQ8Fb5Q4g/CNT214SziU9LDJVVoVQH1aW3W41GodEL/9Gzx H2bg== 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:dkim-signature; bh=j1yriyyEcyhV3H8Bqa9QLPy2gDxrWpbiN4C8VH523lo=; b=hcRWR5DOKferP0cxQXGkxISCjDSpx3CM69S9mMkEh8bUNJclitoXAsqsGy3jX9LAD9 WeaYddPAFtO8+6JDgvOj4vNx8VBNPPTOjWdwN7TUcb01vtQx5c8qEoJgb2bttfFHUjQU lZ6bcK0/dCkf/r1pZoMAsXktfI+8aeTQDHt9eqGXlIjb6oXDb840PkHOzVIzjtcZjobZ u2qZvA2WO2bp+eN6iwfpDFQGaZ+d9XfYAFqTCOtYv531kyjPSbA77ECJbU3jfRIa6HTB o32n811BRsuFuxn7t+d0hrDgYATgh3oWjwIdk5b/Ocwuu/c42o7LHn8Hf7Xs2zd0KOMf va2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=nFBsDqJG; 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 j6si2330393pfc.57.2019.01.24.07.11.02; Thu, 24 Jan 2019 07:11:18 -0800 (PST) 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; dkim=pass header.i=@c-s.fr header.s=mail header.b=nFBsDqJG; 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 S1728537AbfAXPI5 (ORCPT + 99 others); Thu, 24 Jan 2019 10:08:57 -0500 Received: from pegase1.c-s.fr ([93.17.236.30]:47821 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728010AbfAXPI4 (ORCPT ); Thu, 24 Jan 2019 10:08:56 -0500 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 43llsx4Khnz9txl4; Thu, 24 Jan 2019 16:08:53 +0100 (CET) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=nFBsDqJG; dkim-adsp=pass; dkim-atps=neutral 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 IDxXMoYdTEJl; Thu, 24 Jan 2019 16:08:53 +0100 (CET) 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 43llsx39Flz9txl3; Thu, 24 Jan 2019 16:08:53 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1548342533; bh=j1yriyyEcyhV3H8Bqa9QLPy2gDxrWpbiN4C8VH523lo=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=nFBsDqJG67jyxO6p4m9vWb4aTTLOlRt+zOrp/F2leBb8E8fJNXoEpXaXxZ2wkpWpT b6ULBmRTnTs8x+M7BKAn3axxkeAvpwDm2RqXPOzWJqF2aCdhj1dyeqbvoDs48V1uhI ViLgyXmZFane/qGCXtas0gbocdJwr25CTns6rbYY= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id DBC948B85D; Thu, 24 Jan 2019 16:08:54 +0100 (CET) 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 GW0J63uLUxTz; Thu, 24 Jan 2019 16:08:54 +0100 (CET) Received: from PO15451 (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 57BC58B85C; Thu, 24 Jan 2019 16:08:54 +0100 (CET) Subject: Re: [PATCH v13 00/10] powerpc: Switch to CONFIG_THREAD_INFO_IN_TASK To: Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Nicholas Piggin , Mike Rapoport Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org References: <87zhrx2bf1.fsf@concordia.ellerman.id.au> <07e60b5a-611c-9863-f300-68a4f9ad2efd@c-s.fr> <871s52yins.fsf@concordia.ellerman.id.au> From: Christophe Leroy Message-ID: <0c4cb50d-696b-bd9c-9745-aa19b08aa723@c-s.fr> Date: Thu, 24 Jan 2019 16:08:54 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <871s52yins.fsf@concordia.ellerman.id.au> 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 24/01/2019 à 01:59, Michael Ellerman a écrit : > Christophe Leroy writes: >> Le 19/01/2019 à 11:23, Michael Ellerman a écrit : >>> Christophe Leroy writes: >>> >>>> The purpose of this serie is to activate CONFIG_THREAD_INFO_IN_TASK which >>>> moves the thread_info into task_struct. >>>> >>>> Moving thread_info into task_struct has the following advantages: >>>> - It protects thread_info from corruption in the case of stack >>>> overflows. >>>> - Its address is harder to determine if stack addresses are >>>> leaked, making a number of attacks more difficult. >>>> >>>> Changes since v12: >>>> - Patch 1: Taken comment from Mike (re-introduced the 'panic' in case memblock allocation fails in setup_64.c >>>> - Patch 1: Added alloc_stack() function in setup_32.c to also panic in case of allocation failure. >>> >>> Hi Christophe, >>> >>> I can't get this series to boot on qemu mac99. I'm getting eg: >>> >>> [ 0.981514] NFS: Registering the id_resolver key type >>> [ 0.981752] Key type id_resolver registered >>> [ 0.981868] Key type id_legacy registered >>> [ 0.995711] Unrecoverable exception 0 at 0 (msr=0) >>> [ 0.996091] Oops: Unrecoverable exception, sig: 6 [#1] >>> [ 0.996314] BE PAGE_SIZE=4K MMU=Hash PowerMac >>> [ 0.996617] Modules linked in: >>> [ 0.996869] CPU: 0 PID: 416 Comm: modprobe Not tainted 5.0.0-rc2-gcc-7.3.0-00043-g53f2de798792 #342 >>> [ 0.997138] NIP: 00000000 LR: 00000000 CTR: 00000000 >>> [ 0.997309] REGS: ef237f50 TRAP: 0000 Not tainted (5.0.0-rc2-gcc-7.3.0-00043-g53f2de798792) >>> [ 0.997508] MSR: 00000000 <> CR: 00000000 XER: 00000000 >>> [ 0.997712] >>> [ 0.997712] GPR00: 00000000 ef238000 00000000 00000000 00000000 00000000 00000000 00000000 >>> [ 0.997712] GPR08: 00000000 00000000 00000000 00000000 00000000 00000000 c006477c ef13d8c0 >>> [ 0.997712] GPR16: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 >>> [ 0.997712] GPR24: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 >>> [ 0.998671] NIP [00000000] (null) >>> [ 0.998774] LR [00000000] (null) >>> [ 0.998895] Call Trace: >>> [ 0.999030] Instruction dump: >>> [ 0.999320] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX >>> [ 0.999546] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX 60000000 XXXXXXXX XXXXXXXX XXXXXXXX >>> [ 1.000023] ---[ end trace 925ea3419844fe68 ]--- >> >> No such issue on my side. Do you have a ramdisk with anythink special or >> a special config ? I see your kernel is modprobing something, know what >> it is ? > > It's just a debian installer image, nothing special AFAIK. > >> Especially, what is the amount of memory in your config ? On my side >> there is 128M: > > I have 1G. > > But today I can't reproduce the crash :/ > > So I guess it must have been something else in my config. Or it could be because I didn't protect stack walks ? See https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9bbd4c56b0b642f04396da378296e68096d5afca Anyway, I'll soon send out v14 including a patch for that. Christophe