Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1944911ybh; Tue, 14 Jul 2020 11:17:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwd5zrAZp3xXeI9efhF59xikjmzuQKq39ySFKT2KrBaNNOqc843KtLkKbEKXRgSUX/DoSsR X-Received: by 2002:a17:906:c0d9:: with SMTP id bn25mr5613790ejb.176.1594750620290; Tue, 14 Jul 2020 11:17:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594750620; cv=none; d=google.com; s=arc-20160816; b=XUhEm6jsBsZ7yJzUyr82/EAAOEPkktRLdUzN4J5k/7szl2/lwp+3NnGrQd45S+A5QN BCEifHkMDxFTnw8VdGUyNefy5gYNpStL3dFz7YKgaoIJUofwoVbAc8IESIncEufzKJ+8 Xo1eYj9uZtr8FkTorL1/TZFScicFGbLfejEbceEdZYvrAIhhm26LHLu50MmbWHRADVhZ k/jpfLUhKE+aD99/lb0ihc4L2kvBXGCqqvAyj/LOFFveZbtHC06W9/AlPDiQ7IJxw1g4 z/vw97Z0/y8UQVoLsLndG/nZy9tdhiiS9JRIA8V0TQzfZUIiEV3IOc1N5xgz4OeZR0N/ OFAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :reply-to:in-reply-to:references:mime-version:dkim-signature; bh=DkaDz2vQpSy5XI1g9Hw7BaXUJBJ+MBpnR3NMIQZfDRQ=; b=rzdxIkKoK5ECHKQc/0fDD7+k0sYAeox/M6crAfa3RDYJcFWr0IpiuKPl8HAhyt/g+S s1eNTipBUtK3d8E8itRg8xy8XyPluwWVHf0IOz/fH0kQOcIjaQ1hi4QiLOhSajS8FPMQ SVAQqAdF9APiVh7RH4wl/bHOocfgKB28CTfEMHearRzScY2nQGe8iTdZ++GLVoYt5thZ p3mWtCK0dKNMWq85jrhcAdEWKbGAWE3LePb4+M1RCAyXs1hBa+DATir7Z5d0V7E265g1 91oIThbOrq8RN4SUAPb/+rQexjj46PPKkAs14r7w7KefyeSi1hj91znaOEsnvawrSAst r8Eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XnYy2yXl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g22si12713511edr.336.2020.07.14.11.16.37; Tue, 14 Jul 2020 11:17:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XnYy2yXl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729107AbgGNSN1 (ORCPT + 99 others); Tue, 14 Jul 2020 14:13:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727772AbgGNSN0 (ORCPT ); Tue, 14 Jul 2020 14:13:26 -0400 Received: from mail-io1-xd43.google.com (mail-io1-xd43.google.com [IPv6:2607:f8b0:4864:20::d43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93012C061755 for ; Tue, 14 Jul 2020 11:13:26 -0700 (PDT) Received: by mail-io1-xd43.google.com with SMTP id f23so18305995iof.6 for ; Tue, 14 Jul 2020 11:13:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc; bh=DkaDz2vQpSy5XI1g9Hw7BaXUJBJ+MBpnR3NMIQZfDRQ=; b=XnYy2yXleZye8c+VETEcwH80zwMNR3nr9eif0Wzo7JSdEClHNSE12TUJ1PbAwivEye 2zRCazYW0wztkcByTKdsg7Wh8JR0X8qZuRD43vBWCUsVRPykqNSY38hDq4sHNvm7e91L hlZFRkX0eLcoCCtCBZjmD0+Sl3vN+E6hRowfOFlBP/1H7ppKql0wtAnIyhOROmGmxp93 tEL6m0i/F/faqSrh3Eb4dTZ6epUQSfDpTuG3Z+L6jow044fRrO2eaw/D9WNtqMYhcpxf PcJzaHNXo4l7wCq7pkHOKSC/tcav1qJ/28Um26umY/bOAMQ1zZCBGvfROInM/0WhcjLj Dc5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=DkaDz2vQpSy5XI1g9Hw7BaXUJBJ+MBpnR3NMIQZfDRQ=; b=udUeRWb0v146vq2u1Xm6BRTDHEXk/q1pXrgMSRzCWU6glKr11OxxvXO6Q7rDVLHATW COQBkgrSLsBu+1rfm25nfPZOy90s+Y2Qk+dNhKFUQyu5a0aoSXYmrjy6X075seQwg+Fj 0UPYneI4dch+LLX337Dt6/rT5K1MbIxIZkA1a9afw85POmPeoLjE7Th9zFmBgOa9iRTw l6DQr/KuBQadQtHGpvGSA/6QuNo71JAXrISmPUL8OsK+kVZw24ebkz/+k1AgTLoT1yBp WFXfAp4xLvJBH7UgzDSN1nJ5eu505prwhrJgMab4JdveCruStwiAEWVLOSMNgdmJl3JA 05dw== X-Gm-Message-State: AOAM530ajUg7jugVx6ee2hAn2kR0BTqIvp5ed6ikXgGe8UcdnGiT2agW QFE1QTP1KQBY8e5Qzud4fOzV/gXZhbMR+L/2bXs= X-Received: by 2002:a02:a909:: with SMTP id n9mr7259618jam.70.1594750405993; Tue, 14 Jul 2020 11:13:25 -0700 (PDT) MIME-Version: 1.0 References: <20200629140928.858507-1-nivedita@alum.mit.edu> <20200714023836.2310569-1-nivedita@alum.mit.edu> <20200714141550.GA329060@rani.riverdale.lan> In-Reply-To: <20200714141550.GA329060@rani.riverdale.lan> Reply-To: sedat.dilek@gmail.com From: Sedat Dilek Date: Tue, 14 Jul 2020 20:13:14 +0200 Message-ID: Subject: Re: [PATCH v4 0/7] x86/boot: Remove runtime relocations from compressed kernel To: Arvind Sankar Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , x86@kernel.org, Nick Desaulniers , Fangrui Song , Dmitry Golovin , Clang-Built-Linux ML , Ard Biesheuvel , Masahiro Yamada , Daniel Kiper , Kees Cook , Nathan Chancellor , Arnd Bergmann , "H . J . Lu" , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 14, 2020 at 4:15 PM Arvind Sankar wrote: > > On Tue, Jul 14, 2020 at 03:15:49PM +0200, Sedat Dilek wrote: > > > > How to test this series without building a full new kernel? > > > > make $make_opts vmlinux > > > > - Sedat - > > > > Not sure I understood the question: you do have to build a full new > kernel with this patch series to test it. Since the changes are to the > compressed kernel, you would need to make bzImage, which is the end > product of the full kernel build. > > Thanks. > Thanks for the informations. make bzImage ...was the last I tried - gasped 15mins on this - after gasping 30mins on make vmlinux I did a full new build... ...and it fails with ld.lld-11 as linker: ld.lld-11 -m elf_x86_64 -pie --no-dynamic-linker -r -o arch/x86/boot/compressed/.tmp_misc.o arch/x86/boot/compressed/misc.o -T arch/x86/boot/compressed/.tmp_misc.ver; mv -f arch/x86/boot/compressed/.tmp_misc.o arch/x86/boot/compressed/misc.o; rm -f arch/x86/boot/compressed/.tmp_misc.ver; fi *** ld.lld-11: error: -r and -pie may not be used together *** make[5]: *** [scripts/Makefile.build:281: arch/x86/boot/compressed/misc.o] Error 1 It's annoying to fail on the last minutes of a build. Sorry for being very honest. - Sedat -