Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2236529ybh; Fri, 24 Jul 2020 07:49:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz3hwfIcIEx8Ae3Gvl/FpxN1FvYJJugvWsXz8xXibrzBHZaISc07sVTWtnm1hEw8pVUt8bB X-Received: by 2002:a17:906:c1c3:: with SMTP id bw3mr799769ejb.8.1595602160418; Fri, 24 Jul 2020 07:49:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595602160; cv=none; d=google.com; s=arc-20160816; b=BJ6mVNwMo2tRedqAmLMAse7BV3SsovjJ6xLnFbGC8N+Iivl6QE86LFinLFVxJ+c/K8 9t1i/Og3GeBRklcz64867LZhlJbm4xsfgXIiFt9R0I3ANb6OWwWdMkWaXYvQZuMG0rVB iMZTaNpILgQ7vEbFz4gCgOU/+P219Xequp1xYDg1LyPm/C8JKzxInMFma6ohfZZpYA8X e9jiwSelyGopZK9laA4F71en86kL1oEIbm1SwHcczSFSM4et9r0Q6OqsPCWhfRvjw1hL IhPXQIw7DA84rrNn22O7W5nW5CRsuHTCmgFVlElcxAudR1JviaeDlYPMUSHiwIkqBha+ KL/A== 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=AfTbl+xYnSMnr2dDiDoDcPiQOlraklTTHYcmYhyUnOg=; b=lbycawagQ1ZDCOgd4pqrQkms2BCcD5kWIxWJsA+RTTjJpGRWFBIngR+IyYO/TAO/iI lsbi9Kmvio47fxk5fEoHMhpqfok4qFcbpVwG2BZeSkGw6bDgPwPWZzTZ/0JikCLb4iW+ vKpXf/sQl2ae51vuSzftukaC5kZp71dBHm6yvPEtVUgCZayKGqHqRbBxRkJNqVxNj2HN K5xCvSlpJ2zkwFJeGb+Y4tYW5nyn7Yb9yeW5J1kKaewbZCwsXpxn6kmg1KC1Eiv0xTxS RAPd/yeV73m0YewaQ3uUYPm6MGVT9OlswyW+4hraMqi5gJdQ0F2SnPPnBBRxUZxQ2eiM JwLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="HiEu5S/7"; 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 d14si782265eje.95.2020.07.24.07.48.58; Fri, 24 Jul 2020 07:49:20 -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="HiEu5S/7"; 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 S1726539AbgGXOss (ORCPT + 99 others); Fri, 24 Jul 2020 10:48:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726366AbgGXOss (ORCPT ); Fri, 24 Jul 2020 10:48:48 -0400 Received: from mail-il1-x141.google.com (mail-il1-x141.google.com [IPv6:2607:f8b0:4864:20::141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 577D9C0619D3; Fri, 24 Jul 2020 07:48:48 -0700 (PDT) Received: by mail-il1-x141.google.com with SMTP id q3so7415430ilt.8; Fri, 24 Jul 2020 07:48:48 -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=AfTbl+xYnSMnr2dDiDoDcPiQOlraklTTHYcmYhyUnOg=; b=HiEu5S/7+v33uYgp7Yy4N5KJQWU46qvkheSu4OxEeyWGCGYKoVn3tYCw/URpePmCWC P9Sc1Gyf897uYvdoecbrMUInjQs434jXcvWwiePIajv6zsSJS0Gx7Sp/vsZYwwLuvoJH 1jhvHxLj/aGt0gkuLefzXVW3as5pCUp8ZNcj9aReIDN5rrLX2k2AkM43pgw1wcqNYZcz 7rOzxbYJQJ67iP3ybkxtLhG12iLJfmWhN8AJ6ugufemno1ihbWP6Mlq4lVG+FTwdob6A YjFfkI9ju2+jtYo1fKPz/EPuAodonpTCxmqwJqYtqNAHCiOlHjR7VEHidlMhrEgkFmZK GrgQ== 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=AfTbl+xYnSMnr2dDiDoDcPiQOlraklTTHYcmYhyUnOg=; b=YEVvdvfgX+yIZNoenfP/9XkbheoIibMxasJ9toLaFpACfxPSEl/rAXXYNd30EXGyxM WfOUXwUNhXNPOQ3wb72FmgVN8nMQXRXPlpanWFiHQ8cW750hJUJQQJ5Ro2ky8tmiVHh8 OwppjQCxR/gszb6ZuW30lAqAeX+e0gbP85D5ddhYdf2E20KHj+qOnltLDSskoLQlQipT vnBnHk/vCuNXGP9odnX8QrRv474dYofuae6wQLRfouK5zKBH7S/GfhggngAXBQ9jUmV3 3jHP9N6vBkUFLIVgIa5y+BX6cwmpBwOXNFTr/hXveAg1A96MaDvZzpvA4E2kOHdS2dSO jVpQ== X-Gm-Message-State: AOAM530CFYNtL3Wf+Mx6TxHZIhJXpMHpgevg9DtM6Q8feD3/3l0SLXIH 6Pt0msP7Yz8F5nE2myibvtkrpET/Tjo90ovs8UY= X-Received: by 2002:a92:290a:: with SMTP id l10mr11127609ilg.204.1595602127620; Fri, 24 Jul 2020 07:48:47 -0700 (PDT) MIME-Version: 1.0 References: <20200723192801.351114-1-nickrterrell@gmail.com> <20200723192801.351114-7-nickrterrell@gmail.com> <20200724143022.GA601509@rani.riverdale.lan> In-Reply-To: <20200724143022.GA601509@rani.riverdale.lan> Reply-To: sedat.dilek@gmail.com From: Sedat Dilek Date: Fri, 24 Jul 2020 16:48:36 +0200 Message-ID: Subject: Re: [PATCH v8 6/7] x86: Add support for ZSTD compressed kernel To: Arvind Sankar Cc: Nick Terrell , Borislav Petkov , Thomas Gleixner , linux-kernel@vger.kernel.org, Chris Mason , linux-kbuild@vger.kernel.org, x86@kernel.org, gregkh@linuxfoundation.org, Petr Malat , Kees Cook , Kernel Team , Adam Borowski , Patrick Williams , rmikey@fb.com, mingo@kernel.org, Patrick Williams , Norbert Lange , Andrew Morton , Alex Xu , Nick Terrell 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 Fri, Jul 24, 2020 at 4:30 PM Arvind Sankar wrote: > > On Fri, Jul 24, 2020 at 02:50:34AM +0200, Sedat Dilek wrote: > > On Thu, Jul 23, 2020 at 9:30 PM Nick Terrell wrote: > > > > > > From: Nick Terrell > > > > > > * Add support for zstd compressed kernel > > > * Define __DISABLE_EXPORTS in misc.c > > > * Bump the heap size for zstd. > > > * Update the documentation. > > > > > > Integrates the ZSTD decompression code to the x86 pre-boot code. > > > > > > Zstandard requires slightly more memory during the kernel decompression > > > on x86 (192 KB vs 64 KB), and the memory usage is independent of the > > > window size. > > > > > > __DISABLE_EXPORTS is defined in misc.c instead of the Makefile because > > > kaslr.c defines __DISABLE_EXPORTS, and defining it in the Makefile gives > > > duplicate definition warnings. > > > > > > > That was reported by Arvind - feel free to add a Reported-by: ... > > > > - Sedat - > > > > It's not necessary to add Reported-by's for problems encountered while > developing the series. Especially as it was my drive-by suggestion to > use __DISABLE_EXPORTS that introduced the issue in the first place :) > It is up to you with credits. > I'd have added it to the Makefile and just dropped the definition in > kaslr.c -- should be no reason for anything in here to use EXPORT_SYMBOL. > I cannot follow - this is no more needed as this was due to some of your local changes in kaslr.c? - Sedat -