Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751139AbdLWITz (ORCPT ); Sat, 23 Dec 2017 03:19:55 -0500 Received: from mx4.wp.pl ([212.77.101.11]:23591 "EHLO mx4.wp.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750747AbdLWITy (ORCPT ); Sat, 23 Dec 2017 03:19:54 -0500 Date: Sat, 23 Dec 2017 00:19:45 -0800 From: Jakub Kicinski To: Andy Lutomirski Cc: Andrey Ryabinin , Thomas Gleixner , Ingo Molnar , LKML Subject: Re: linux/master crashes on boot with KASAN=y Message-ID: <20171223001945.1e8f6bd3@cakuba.netronome.com> In-Reply-To: <20171223000143.0af3366d@cakuba.netronome.com> References: <20171223000143.0af3366d@cakuba.netronome.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-WP-MailID: ee31e2d1628b2a7558b30cf1e66798fd X-WP-AV: skaner antywirusowy Poczty Wirtualnej Polski X-WP-SPAM: NO 000000A [QbOU] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2170 Lines: 48 On Sat, 23 Dec 2017 00:01:43 -0800, Jakub Kicinski wrote: > commit 21506525fb8ddb0342f2a2370812d47f6a1f3833 (HEAD, refs/bisect/bad) > Author: Andy Lutomirski > Date: Mon Dec 4 15:07:16 2017 +0100 > > x86/kasan/64: Teach KASAN about the cpu_entry_area > > The cpu_entry_area will contain stacks. Make sure that KASAN has > appropriate shadow mappings for them. > [ 22.562224] BUG: unable to handle kernel paging request at fffffbffffe8ee04 > [ 22.562234] IP: check_memory_region+0x5c/0x190 > [ 22.562235] PGD 87ffd9067 P4D 87ffd9067 PUD 87ffd8067 PMD 87ffd7067 PTE 0 Reverting this doesn't get me far, though. Boot stops after: [ 0.216037] Performance Events: PEBS fmt2+, Broadwell events, 16-deep LBR, full-width counters, Intel PMU driver. [ 0.220029] ... version: 3 [ 0.224007] ... bit width: 48 [ 0.228002] ... generic registers: 8 [ 0.232002] ... value mask: 0000ffffffffffff [ 0.236002] ... max period: 00007fffffffffff [ 0.240002] ... fixed-purpose events: 3 [ 0.244002] ... event mask: 00000007000000ff [ 0.256006] Hierarchical SRCU implementation. [ 0.277436] NMI watchdog: Enabled. Permanently consumes one hw-PMU counter. [ 0.288005] smp: Bringing up secondary CPUs ... [ 0.324086] x86: Booting SMP configuration: [ 0.328009] .... node #1, CPUs: #1 [ 0.448004] .... node #0, CPUs: #2 [ 0.484005] .... node #1, CPUs: #3 [ 0.520004] .... node #0, CPUs: #4 [ 0.556005] .... node #1, CPUs: #5 [ 0.592004] .... node #0, CPUs: #6 [ 0.628005] .... node #1, CPUs: #7 [ 0.664004] .... node #0, CPUs: #8 [ 0.700006] .... node #1, CPUs: #9 [ 0.736004] .... node #0, CPUs: #10 [ 0.772006] .... node #1, CPUs: #11 [ 0.808004] .... node #0, CPUs: #12 [ 0.844005] .... node #1, CPUs: #13 [ 0.880004] .... node #0, CPUs: #14 [ 0.916005] .... node #1, CPUs: #15 [ 0.952004] .... node #0, CPUs: #16 [ 0.988006] .... node #1, CPUs: #17 [ 1.024004] .... node #0, CPUs: #18 Without producing any splat.