Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4437784imu; Sat, 19 Jan 2019 09:22:38 -0800 (PST) X-Google-Smtp-Source: ALg8bN4ctou46fSvMzP1NIV2XqAMR0VsnvKeeaEwnWesbhWNHSk60YdlOCVHNEt5hBe2Exz4uvCH X-Received: by 2002:a17:902:43e4:: with SMTP id j91mr23183245pld.147.1547918557997; Sat, 19 Jan 2019 09:22:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547918557; cv=none; d=google.com; s=arc-20160816; b=Ro0ZSju5Sx+CiO+6DZGvuW6VtsE7Nj/NeiXXZB/Fuov+uZUbj5xd/BA06xGJCMcKpu FNciSmFtqE7WpCFeR1CXKVMAWzOiPuzeNZvaaZFiF32pA9uHjJOkCrCIhPaEjO0tJzM6 NizIXbJnz17757hIocAaA9w/m1gOFPdF/cCPY0+p/eVeLloXX+CpiR5DtIRXld78jSEj q4CZVUfDE5Hm2NbzqAOVr89EBVEE/9be7lLvVhWW+27scv2JOscQFHaqbt83wLGQgIKz 3LX/BQZzYp+RQCVcxrR15HsMKU2l16Osg9RoR8lXoitWYK2Z/DKM25lVWAS93U3AzFR+ auZw== 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-disposition:mime-version:user-agent:in-reply-to:references :subject:cc:to:from:message-id:date; bh=/dxjWlBxGxR9TjB3tTeIerm4QIvEKVFmHSqkwJmhYRg=; b=vqhJilgoAr9tstB9LYXEz8hfQvXbT5Ix3bhdhoWRCikypw77aySpETk+ym5fV/ya7O LgylijuLDoR1+2G4hCQC+7z4euQxSIyEibeualw36ZzUKd1izUy9Og7myfsLFdWegUkP bGPTr/jcBMRQWetgJRb4qm5PeCWYN6DXNePfk/ZXKzUa6OGD1WbFW8kz15QzDEKwPcMh E9F3HhgTvuTQpdDUxw1fcoBD9suzssAb+TeOuwNwndTur+gtVsrF0FWqpKslVahbl+ku Bde0mc82xOva3pjcPJDKfivdlWV7TGrRIzY0gKjE/85KnRA9QBznQfyI6MPpDkx0Fi0a tMZQ== 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 80si8396717pfz.11.2019.01.19.09.22.22; Sat, 19 Jan 2019 09:22:37 -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; 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 S1728668AbfASRVT convert rfc822-to-8bit (ORCPT + 99 others); Sat, 19 Jan 2019 12:21:19 -0500 Received: from pegase1.c-s.fr ([93.17.236.30]:55263 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726748AbfASRVT (ORCPT ); Sat, 19 Jan 2019 12:21:19 -0500 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 43hl2x5BSBz9vCJC; Sat, 19 Jan 2019 18:21:13 +0100 (CET) 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 2B8lMW7w35Gr; Sat, 19 Jan 2019 18:21:13 +0100 (CET) Received: from vm-hermes.si.c-s.fr (vm-hermes.si.c-s.fr [192.168.25.253]) by pegase1.c-s.fr (Postfix) with ESMTP id 43hl2x4D1Kz9vCJ9; Sat, 19 Jan 2019 18:21:13 +0100 (CET) Received: by vm-hermes.si.c-s.fr (Postfix, from userid 33) id 25AAE79; Sat, 19 Jan 2019 18:21:13 +0100 (CET) Received: from 37-170-18-222.coucou-networks.fr (37-170-18-222.coucou-networks.fr [37.170.18.222]) by messagerie.si.c-s.fr (Horde Framework) with HTTP; Sat, 19 Jan 2019 18:21:13 +0100 Date: Sat, 19 Jan 2019 18:21:13 +0100 Message-ID: <20190119182113.Horde.DK6jqX3cEzsvR0fKFZrY2g4@messagerie.si.c-s.fr> From: LEROY Christophe To: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Mike Rapoport , Nicholas Piggin , Paul Mackerras , Benjamin Herrenschmidt Subject: Re: [PATCH v13 00/10] powerpc: Switch to CONFIG_THREAD_INFO_IN_TASK References: <87zhrx2bf1.fsf@concordia.ellerman.id.au> In-Reply-To: <87zhrx2bf1.fsf@concordia.ellerman.id.au> User-Agent: Internet Messaging Program (IMP) H5 (6.2.3) Content-Type: text/plain; charset=UTF-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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: Problem new with version 13 or it is the first time you test ? > > [ 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 Comm:modprobe ==> Something wrong with modules ? I never tested with CONFIG_MODULES. Christophe > [ 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 ]--- > > I haven't had time to dig any further. > > cheers