Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4104086imu; Sat, 19 Jan 2019 02:26:08 -0800 (PST) X-Google-Smtp-Source: ALg8bN65HomXH7ajIwKBMLxDA86ZoR9efcwP9KKQpLVgTwzziG0HPxzL6A/AZEt+8ekDTKQgrbgl X-Received: by 2002:aa7:810c:: with SMTP id b12mr22680257pfi.44.1547893568111; Sat, 19 Jan 2019 02:26:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547893568; cv=none; d=google.com; s=arc-20160816; b=C+SJmWy48b8/7vSLiAFKu3C81IEsi5t5oyNFoC2L1h7KxrXXFrcacIy89wVpzF681v oI6VpQC3+UoLzviO7nyeWd5o7dXLpU/6iyND3PAqmRCcrIp8HkW/GH/EsMLRnDze8y3g sbG9rB5Xv5YJWlGQNAfzpNC9+/xpHBSxgQ+vAk2eEX+05VY8laoeETI+6wCmm4lqukvr 7Gjp9djVl7hHJjy3WdH5VbaXn37hCcdrAGIQi0UybSu86qK5+/OJ5HAUAVcYFUXKxQT/ zbtXYxgbWmKLvVAz8m9VBPxQhPaH86k6kEZ9PqxtXYH5cGamGWPS+KwBdMyaxq7pp0HI MIvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=HrKhKX5QElw8FazSDmKGlOQD5Tny3frqeQswaIIFFTY=; b=XY5Fcb0otTvSIBeoejiLWaPOy5oTr3WwVZrRmore9DRxF1jpS8VEwBmU1RoPDd2KMl 7WcCD5vJbFbEBABIRUBCX0R6+Pi9wb1nlVTURkaLK086m6DCe4ftxtH4sFWZlLrNHOsX +gHzO4Zrp3eCAoHLL+A2cIkvGSeJvgIH+yQ18KsZC/HL+I1tFfxcZV6PeeaR0CNbgaWJ 6k1+e8EU9YRbJBxX8qd/1AX3PSBP0ONiG9WEKApIfJmCcfYwrQp7ffWSAjNWYmZqUAhE Jvd0gwQye11vIJAOCe8a4W56U7iIAnbyMaDAiwsQ/ofyFgsOvpaK3iiYVbJmKA9DxC1v +h1A== 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 z8si7461963pgf.577.2019.01.19.02.25.37; Sat, 19 Jan 2019 02:26:08 -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 S1727733AbfASKXv (ORCPT + 99 others); Sat, 19 Jan 2019 05:23:51 -0500 Received: from ozlabs.org ([203.11.71.1]:34757 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726733AbfASKXu (ORCPT ); Sat, 19 Jan 2019 05:23:50 -0500 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 43hYnH30Dqz9sBQ; Sat, 19 Jan 2019 21:23:47 +1100 (AEDT) From: Michael Ellerman To: Christophe Leroy , Benjamin Herrenschmidt , Paul Mackerras , Nicholas Piggin , Mike Rapoport Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH v13 00/10] powerpc: Switch to CONFIG_THREAD_INFO_IN_TASK In-Reply-To: References: Date: Sat, 19 Jan 2019 21:23:46 +1100 Message-ID: <87zhrx2bf1.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 ]--- I haven't had time to dig any further. cheers