Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8950170imu; Tue, 4 Dec 2018 17:42:26 -0800 (PST) X-Google-Smtp-Source: AFSGD/UpYK2OdDbuvKRfD5jv2979N+vZwuDryhbxrRQRmdkDA2VDgZv+zRTbMYWhPbxKC9WIUrft X-Received: by 2002:a63:ef47:: with SMTP id c7mr19008673pgk.386.1543974146123; Tue, 04 Dec 2018 17:42:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543974146; cv=none; d=google.com; s=arc-20160816; b=jlWjpZi2SMpiWRWgv4o9f/rNHef7qeY+fwtXuAXdBGWtNJVBNqxyyjyV6pqqmGe7wH ei/9fG/XRHCSiPrNxBj0ntOpJG+4lJTYQsgoIjDnT8/+k4hnkL38bjuw4MpSpmtEcZTR hgVMCiXsYe1kPypH3UvCbg7hVGwBE7KJpf3ufzINwAi8WqWNwJmWcKhWUAD66gzg6gHn g0Om8vCicM4pTuL0vd4Qog9qECT5coIZbCqk+P77bJCC4n2JJQmPxloqIB5xD/vqQGwW yxfqa42jGGRBTo+Cdq0+AQG5jOZW4MsgHP2vCKX4LMlDJjjhJh+uTjYZndQQ4FDVEA85 FOQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=ij1/fX835z15BuHkNrCx7AL64nArDdWQiPwHqoGq17w=; b=Fwrq24V1kZsPsCpwfpS2mV1dv5J/NSuS4yfdHe6fA3RtbDqBBmOFtX4MaalPMZoldF zhE9Xpvs3HA5Hy+a5kGUhCHLSTDdqF+6vmUkpGHPBZoO0yq3kNQK1lRFRDydPb5C0AUK HbY48PCukDCQMuOL5Z+YEcAp3BOMVrKi9gCPH7zC14p7xeTqyvN3J7E0sv5M0nz/KhVK dJpsR/tCL561mqkCaJwW6F8/VcpJ9if/4uZJOW2G99P7y0icuTfRMJaInnnA1+kLqgex hkVKh0xWBOfFoHO+fVPgGsRlY06W/yJH+XXfVhlLkYc39NIFAbRfNkewCNphzoSTgBG+ gGsg== 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 b26si16442087pgl.539.2018.12.04.17.42.11; Tue, 04 Dec 2018 17:42:26 -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 S1726746AbeLEBlJ (ORCPT + 99 others); Tue, 4 Dec 2018 20:41:09 -0500 Received: from mail.cn.fujitsu.com ([183.91.158.132]:50214 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725841AbeLEBlD (ORCPT ); Tue, 4 Dec 2018 20:41:03 -0500 X-IronPort-AV: E=Sophos;i="5.56,316,1539619200"; d="scan'208";a="49008367" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 05 Dec 2018 09:41:01 +0800 Received: from G08CNEXCHPEKD01.g08.fujitsu.local (unknown [10.167.33.80]) by cn.fujitsu.com (Postfix) with ESMTP id 275524B7349F; Wed, 5 Dec 2018 09:40:59 +0800 (CST) Received: from localhost.localdomain (10.167.225.56) by G08CNEXCHPEKD01.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 5 Dec 2018 09:41:03 +0800 Date: Wed, 5 Dec 2018 09:40:44 +0800 From: Chao Fan To: Borislav Petkov CC: Masayoshi Mizuma , , , , , , , , , Subject: Re: [PATCH v12 1/5] x86/boot: Add get_acpi_rsdp() to parse RSDP in cmdline from KEXEC Message-ID: <20181205014044.GF30941@localhost.localdomain> References: <20181129081631.11139-1-fanc.fnst@cn.fujitsu.com> <20181129081631.11139-2-fanc.fnst@cn.fujitsu.com> <20181129211003.saxfvyboxpsn5mdr@gabell> <20181130024346.GB30941@localhost.localdomain> <20181130173515.6zx5wvs52s5aqnge@gabell> <20181201060539.GD30941@localhost.localdomain> <20181204184220.GC16705@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20181204184220.GC16705@zn.tnic> User-Agent: Mutt/1.10.1 (2018-07-13) X-Originating-IP: [10.167.225.56] X-yoursite-MailScanner-ID: 275524B7349F.AB249 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: fanc.fnst@cn.fujitsu.com X-Spam-Status: No Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 04, 2018 at 07:42:20PM +0100, Borislav Petkov wrote: >On Sat, Dec 01, 2018 at 02:05:39PM +0800, Chao Fan wrote: >> >I built your whole patchset and got the error. >> >The error depends on CONFIG_MODVERSIONS. >> >If CONFIG_MODVERSIONS=y, you will get the build error. >> >> Hi Masa, >> >> Thanks, after that, I got the error. >> About your solution, it can fix the error. But I am not sure whether >> it's good. > >What does CONFIG_MODVERSIONS=y have to do with this? I don't see the >connection. > >Also, your patch triggers another build error: > >ld -m elf_x86_64 -z noreloc-overflow -pie --no-dynamic-linker -T arch/x86/boot/compressed/vmlinux.lds arch/x86/boot/compressed/head_64.o arch/x86/boot/compressed/misc.o arch/x86/boot/compressed/string.o arch/x86/boot/compressed/cmdline.o arch/x86/boot/compressed/error.o arch/x86/boot/compressed/piggy.o arch/x86/boot/compressed/cpuflags.o arch/x86/boot/compressed/early_serial_console.o arch/x86/boot/compressed/mem_encrypt.o arch/x86/boot/compressed/pgtable_64.o arch/x86/boot/compressed/eboot.o arch/x86/boot/compressed/efi_stub_64.o drivers/firmware/efi/libstub/lib.a arch/x86/boot/compressed/efi_thunk_64.o -o arch/x86/boot/compressed/vmlinux >ld: arch/x86/boot/compressed/misc.o: in function `_parse_integer_fixup_radix': >misc.c:(.text+0x3057): undefined reference to `_ctype' >make[2]: *** [arch/x86/boot/compressed/Makefile:116: arch/x86/boot/compressed/vmlinux] Error 1 >make[1]: *** [arch/x86/boot/Makefile:112: arch/x86/boot/compressed/vmlinux] Error 2 >make: *** [arch/x86/Makefile:289: bzImage] Error 2 >make: *** Waiting for unfinished jobs.... > >due to misc.o not seeing _ctype. > >Looks like this is going to become too hairy and perhaps it would >be easier and cleaner if you copy all the functions needed into >arch/x86/boot/cmdline.c and this way get rid of the crazy ifdeffery and >the subtle build issues. > >I mean, we do this already in other places like perf tool is copying >stuff selectively from kernel proper and since compressed/ is a >completely separate stage, we probably should do that for the sake of >keeping our sanity. :) Thank you, I will do the copying job and consider more about putting functions to arch/x86/boot/cmdline.c or arch/x86/boot/string.c. Anyway, this method is simple. Thanks, Chao Fan > >Thx. > >-- >Regards/Gruss, > Boris. > >Good mailing practices for 400: avoid top-posting and trim the reply. > >