Received: by 10.223.176.46 with SMTP id f43csp398790wra; Fri, 19 Jan 2018 20:06:48 -0800 (PST) X-Google-Smtp-Source: AH8x2269VieWzVIaBfueZbBlkmTfYEzLIxDNBsWBuveA/cr2zXTPEnpBQ5xzDartgeKV7Ouw0bCh X-Received: by 2002:a17:902:900b:: with SMTP id a11-v6mr354188plp.249.1516421208446; Fri, 19 Jan 2018 20:06:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516421208; cv=none; d=google.com; s=arc-20160816; b=UntAfrlGFmbLJu3LsX/jUwBYJH3fmXql2qDBGJmsVg25a5sJd9Ta2q14Gzba39sK8q vaoDfOH2vncI3ViMBAJX9s0mjfzFfOnrx+fTNjv1XDU2pwoDnm9rKh4LnpfjMOFVcdck exM8GpWr58apvogtdxXN06OFhq1HWQV0XqWY6StKmsBnUm2AMKLjJoQ48OSAOcKmajaJ aJ/UV2pdRaUNnoL+HDpNz5DFvoLS3Opdms4CzSHqtVjoPXgM0r6rRFgneFW3uVuoSurr fkvhccCi+WV/xOQHKelnPpr7v7OG2FldnYT/cBzwcrVGykqcIYIGkJmW+fehCTUm7sZ4 ASxQ== 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:arc-authentication-results; bh=DnZRurNRhePh3n+NuMAFGe+mpvRXpYZSJpUJRU8XXdE=; b=o4d+rTsqzWJbtXMBZlz4i8jlx7M5SjQlZUjiFhDY/uWXhNALFyZTaZbc9aJeD2XJiB +FDPf/vdnutC5fdW99+vcXY4dM0VJ+S3VZV7wjhYA418vdGP4bptUtZYBLviEJGaLBtb rA4SunMiHB3ccNtjCXqnHOqdFJtcI8HQ9OQdtFOgudHTrFYURN2cWYp60QHCjF58TCr7 yZh0pmn3kEF2EOghrkPPxW/muKRwNJNRDCcs3FRo31699RQFtC9YaMrDlZ351dy4eP9I ERyaTg57Dq+p1QIenkiJJMknAIeTSBI1JfQeZHLlKdQta6cK1iLFnMHFHmqApLePpuLm W7PA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l63si9342650pgd.766.2018.01.19.20.06.19; Fri, 19 Jan 2018 20:06:48 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754247AbeATECu (ORCPT + 99 others); Fri, 19 Jan 2018 23:02:50 -0500 Received: from mail-pf0-f171.google.com ([209.85.192.171]:41385 "EHLO mail-pf0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753011AbeATECn (ORCPT ); Fri, 19 Jan 2018 23:02:43 -0500 Received: by mail-pf0-f171.google.com with SMTP id j3so2843774pfh.8 for ; Fri, 19 Jan 2018 20:02:43 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=DnZRurNRhePh3n+NuMAFGe+mpvRXpYZSJpUJRU8XXdE=; b=Fpw/K2BNLn8mGrVz2ABYdD1Rqch+9HZGafcKw9KgkM83hm5de5zOyzMNDydw0K4xrQ xlf9uWbtuj83LsQrOEp4qcupTt9d0xFyXTKzmWCeg8j19sSVT0jc/sNprP2IgUX+Sp0d EtsuyYYHp5kQhUaos+cz+vQorlqUZe0yQringzQYEAw03ZbD3pz5HFavrDVFMOoZz3po ORAq3hyFdxt4BdGiucXe3cp6VGDPm7IrTmQ7YQZIUzxpxeDxgvSKtngm7Ij74FhDpg9a gSusuB1FzNb7mnnHGpnH8AvtAj932bwYGkghGuk0Da/fGFFnYR1Cd2dlgWqmEvwApIja uaWQ== X-Gm-Message-State: AKwxytePtFcMJaxydL7NyZanLosaTZu7RYh5EJKiNEU7YqbPXVAgs5Cz l/dPSdi77LPUgBjepkDBqpmWpn95b5g= X-Received: by 2002:a17:902:8347:: with SMTP id z7-v6mr361754pln.151.1516420962844; Fri, 19 Jan 2018 20:02:42 -0800 (PST) Received: from ?IPv6:2601:602:9802:a8dc::89e6? ([2601:602:9802:a8dc::89e6]) by smtp.gmail.com with ESMTPSA id k71sm7615170pfg.52.2018.01.19.20.02.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Jan 2018 20:02:41 -0800 (PST) Subject: Re: Boot regression with bacf6b499e11 ("x86/mm: Use a struct to reduce parameters for SME PGD mapping") on top of -rc8 To: Gabriel C Cc: Tom Lendacky , Borislav Petkov , Linus Torvalds , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Brijesh Singh , X86 ML , Linux Kernel Mailing List References: <9fdddcb1-d122-7d52-9204-7066ada5ccba@redhat.com> From: Laura Abbott Message-ID: <44505ab1-237b-88ea-1fb1-f80de9b3025a@redhat.com> Date: Fri, 19 Jan 2018 20:02:40 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/19/2018 06:23 PM, Gabriel C wrote: > 2018-01-20 2:23 GMT+01:00 Laura Abbott : >> Hi, > > Hi , > >> >> Fedora got multiple reports of an early bootup crash post -rc8. >> Bisection showed bacf6b499e11 ("x86/mm: Use a struct to reduce >> parameters for SME PGD mapping") . It doesn't revert cleanly >> but if I revert the few other changes in arch/x86/mm/mem_encrypt.c >> as well it boots up fine. >> >> Annoyingly, I can't seem to get any actual kernel logs even with >> earlyprintk. It just reboots immediately (triple fault?). This >> happens on both of my Lenovo machines and I can ask other reporters >> for details as well. >> > > I tested these patches on 2 Lenovo Ideapad both with Skylake CPUs > on a older dual Xeon box , on 2 Toshibas with AMD APUs , on a RYZEN box , > on dual EPYC box .. ofc on EPYC with mem_encrypt=on on the Intel CPUs disabled. > > Also tested on top 4.14.13 , 4.14.14 as well on top 4.15.0-rc7 and on > current master/rc8++ without to see something like this. > > Also we pushed these patches on 4.14.13/14 and didn't got any reports about > something like this. > > What Lenovo boxes are these ? maybe I find one to reproduce. > > >> $ git bisect log >> # bad: [ec835f8104a21f4d4eeb9d316ee71d2b4a7f00de] Merge tag >> 'trace-v4.15-rc4-3' of >> git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace >> # good: [a8750ddca918032d6349adbf9a4b6555e7db20da] Linux 4.15-rc8 >> git bisect start 'origin/master' 'v4.15-rc8' >> # bad: [79683f80e4f07dba13cc08d0ebcf5c7b0aa1bf68] Merge tag >> 'mmc-v4.15-rc2-3' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc >> git bisect bad 79683f80e4f07dba13cc08d0ebcf5c7b0aa1bf68 >> # good: [161f72ed6dbe7fb176585091d3b797125d310399] Merge tag >> 'mac80211-for-davem-2018-01-15' of >> git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211 >> git bisect good 161f72ed6dbe7fb176585091d3b797125d310399 >> # good: [88dc7fca18001fd883e5ace775afa316b68c8f2c] Merge branch >> 'x86-pti-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip >> git bisect good 88dc7fca18001fd883e5ace775afa316b68c8f2c >> # bad: [d47924417319e3b6a728c0b690f183e75bc2a702] x86/intel_rdt/cqm: Prevent >> use after free >> git bisect bad d47924417319e3b6a728c0b690f183e75bc2a702 >> # good: [fc90ccfd286eabb05ec54521367df8663cf0bbbf] Revert "x86/apic: Remove >> init_bsp_APIC()" >> git bisect good fc90ccfd286eabb05ec54521367df8663cf0bbbf >> # bad: [bacf6b499e11760aef73a3bb5ce4e5eea74a3fd4] x86/mm: Use a struct to >> reduce parameters for SME PGD mapping >> git bisect bad bacf6b499e11760aef73a3bb5ce4e5eea74a3fd4 >> # good: [1303880179e67c59e801429b7e5d0f6b21137d99] x86/mm: Clean up register >> saving in the __enc_copy() assembly code >> git bisect good 1303880179e67c59e801429b7e5d0f6b21137d99 >> # first bad commit: [bacf6b499e11760aef73a3bb5ce4e5eea74a3fd4] x86/mm: Use a >> struct to reduce parameters for SME PGD mapping >> >> >> Configuration is at >> https://git.kernel.org/pub/scm/linux/kernel/git/jwboyer/fedora.git/commit/?h=rawhide >> Note that I do think this is something in the Fedora configuration >> because a generic "make defconfig" booted just fine. > > But maybe some of the Fedora patches ? > > Can you try an kernel with the config but without any patches ? > Or a defconfig and just enable CONFIG_AMD_MEM_ENCRYPT ? > The bisect was a vanilla kernel without Fedora patches. >> >> Thanks, >> Laura > > Regards, > > Gabriel C >