From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933935AbcLSSMq (ORCPT ); Mon, 19 Dec 2016 13:12:46 -0500 Received: from userp1040.oracle.com ([156.151.31.81]:16842 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932318AbcLSSMo (ORCPT ); Mon, 19 Dec 2016 13:12:44 -0500 Subject: Re: [PATCH] x86/microcode: Adjust ramdisk address when accessing by virtual address To: Borislav Petkov References: <1482161533-21097-1-git-send-email-boris.ostrovsky@oracle.com> <20161219153714.rhbpvcauc5xigzua@pd.tnic> <383d2984-fdd0-a198-4477-677b992fc955@oracle.com> <20161219164027.ejbf3h6qsnkjjezy@pd.tnic> <20161219180709.2tsvsebagdiyxxrs@pd.tnic> Cc: x86@kernel.org, linux-kernel@vger.kernel.org From: Boris Ostrovsky Message-ID: Date: Mon, 19 Dec 2016 13:12:25 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <20161219180709.2tsvsebagdiyxxrs@pd.tnic> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Source-IP: aserv0021.oracle.com [141.146.126.233] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/19/2016 01:07 PM, Borislav Petkov wrote: > On Mon, Dec 19, 2016 at 05:40:27PM +0100, Borislav Petkov wrote: >> On Mon, Dec 19, 2016 at 11:10:29AM -0500, Boris Ostrovsky wrote: >>> config attached. I'll see how I can get you the initrd. >> Wait a bit, lemme see if I can repro with my initrd here. > Hmm, it boots here (btw, this is with the 4 patches applied). > > [ 0.000000] Linux version 4.9.0upstream-11409-gf3302378ed83-dirty (boris@pd) (gcc version 6.2.1 20161124 (Debian 6.2.1-5) ) #1 SMP Mon Dec 19 18:50:17 CET 2016 > [ 0.000000] x86/fpu: Legacy x87 FPU detected. > [ 0.000000] e820: BIOS-provided physical RAM map: > ... > [ 0.000000] RAMDISK: [mem 0x37845000-0x37c19fff] > [ 0.000000] Allocated new RAMDISK: [mem 0x36470000-0x36844f5e] > [ 0.000000] Move RAMDISK from [mem 0x37845000-0x37c19f5e] to [mem 0x36470000-0x36844f5e] > ... > [ 0.243326] smpboot: CPU0: AMD E-350 Processor (family: 0x14, model: 0x1, stepping: 0x0) IIUIC find_microcode_in_initrd() is called with paging on only on Intel (which is where I observed it). > [ 0.243637] Performance Events: AMD PMU driver. > ... > [ 1.307957] microcode: microcode updated early to new patch_level=0x05000029 > [ 1.308212] microcode: CPU0: patch_level=0x05000029 > [ 1.308374] microcode: CPU1: patch_level=0x05000029 > [ 1.308726] microcode: Microcode Update Driver: v2.2. > > $ uname -a > Linux x1 4.9.0upstream-11409-gf3302378ed83-dirty #1 SMP Mon Dec 19 18:50:17 CET 2016 i686 GNU/Linux > > So I guess I wanna take a look at the initrd now... It'll have to wait until (my) evening, I'll ping you then. -boris