Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp456191pxa; Fri, 21 Aug 2020 11:32:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyE/+R/Jng6VgRlhIjYHqXcRTo7H7tMNRdqc5dic6oBaETrPSWj174q11bbPBWgjlYmPtsg X-Received: by 2002:aa7:d343:: with SMTP id m3mr4003680edr.326.1598034738459; Fri, 21 Aug 2020 11:32:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598034738; cv=none; d=google.com; s=arc-20160816; b=Jscx464bEywZMZKmwy3TT4cybqsD531Ou2Is4nwmJGgX72h76dMAUKba12kL7Zxa2W 4Gf7ZGf7YIFVh49neXwdC+64rJaJTqC7NYJ26RvckQWj5dUosnlZZdYRHkH/ji8Mxz5G ONMPYRUOCEDWOxzYo4iZ1wrDQkC53nAB89B5jAx9i0vOAMhzEmY5FAfPf4uMGTGKLEOa e9jqK1eXVhGpYM36REiqAePe+DSKC6E3LlgZH+ial2A0ANjxleRjPOxP+ddijBCRBTsB 4Kf1xD9Du3PejEBoM7mzDJo9DvqAxIJ6ykARs3/C4GQU+s+GICsYu8jP9RAEuzkJyITb VG/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=P+HGPUUEt/yeZPA3aGMYIqvfoymS1eSd9/ssdWii5Ww=; b=XB3tZASHygIrB8UY5X4/UsT9o6py0CPFyIWnf8T6L/Iw4Rb7Ys3ASxmJb6VJanRZUu JGNnT8jvRuWdKSEy7bq9CW9/zV88dHEUuFc9ks3gx1v7/euU6yg+do+ztUAh6gRleSAq UrG7PwnVPFO5ysMcViCbTm5j1lkp2zpuWT2hdJCif82gN+cofCxFW6Ww9o8R0HduPe7C TIY6G3REruYerf33AUsKde6N3yGxiwTnG+icZvQTRhDNiKTsCJLcuHbqer8mn7AAbUU0 guKAuQ+aNoWN4xtQ6QX48DcgRMpJBFnekD5UN+ZVzMhiVZS09bzmPSJulKFioq0jPvdU HQmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=gL3E2vI4; 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=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gs8si1675724ejb.665.2020.08.21.11.31.54; Fri, 21 Aug 2020 11:32:18 -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=@chromium.org header.s=google header.b=gL3E2vI4; 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=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726947AbgHUSbS (ORCPT + 99 others); Fri, 21 Aug 2020 14:31:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726718AbgHUSbI (ORCPT ); Fri, 21 Aug 2020 14:31:08 -0400 Received: from mail-pj1-x1043.google.com (mail-pj1-x1043.google.com [IPv6:2607:f8b0:4864:20::1043]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC599C061573 for ; Fri, 21 Aug 2020 11:24:27 -0700 (PDT) Received: by mail-pj1-x1043.google.com with SMTP id kr4so1184266pjb.2 for ; Fri, 21 Aug 2020 11:24:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=P+HGPUUEt/yeZPA3aGMYIqvfoymS1eSd9/ssdWii5Ww=; b=gL3E2vI4RdEkGoqPQ5bhPya5HSCwBlSpXY7p6WmAA99o71qfrPhE/NpMCkBqecqy+V +JME0II/bywwuTEmErR+Mov3glI2MHbzDimh1+IVoyx05yRlgpV32YCuX4SeJi8nxsqH F+DPGriKAagurCtecEduI7KobxI4nsJyNM8PU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=P+HGPUUEt/yeZPA3aGMYIqvfoymS1eSd9/ssdWii5Ww=; b=fokwI8azXZRuKsStd6H1X+q6TJn2XL3um7fjjwxmzRwkO8fdpRRHeArMNotHCNUzVJ sTHdGx1jkDQIZY3cigRKhX45vc2q7Po7a1DkOISfZAujLLGnOoKFZyc7Y9Gn33ZY0qTY 2hwnUjI6iZj0i0XvQkEg9oYOJBlaEbmrAC5vzKtuKDH1NhKzu74hdWi2h3q0IyN5Ku2K UKSrg+MSa/K1VTDvzChjGNjyq3q3m+0Ap6OU8+5WjB1vz8uu2z00vKtLFjQKynPTurZr Zi7r1/tRr0RVSv0U+CnGMd8Ppov+Ho8MCuDSy3GJEeHOEvpuGBJ/XtP4mVsQQrbv/nJv PiKA== X-Gm-Message-State: AOAM531bcv/o9m9bvSi+RjnEKDXm/MhFKXi8xy98nYPuf2uMzuDUU211 zU69Cq6gZsSxkmustZNLXQmHpQ== X-Received: by 2002:a17:90a:34c3:: with SMTP id m3mr3347042pjf.71.1598034267529; Fri, 21 Aug 2020 11:24:27 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id h1sm3273433pfr.39.2020.08.21.11.24.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Aug 2020 11:24:26 -0700 (PDT) Date: Fri, 21 Aug 2020 11:24:25 -0700 From: Kees Cook To: Arvind Sankar Cc: Thomas Gleixner , Will Deacon , Catalin Marinas , Mark Rutland , Ard Biesheuvel , Peter Collingbourne , James Morse , Borislav Petkov , Ingo Molnar , Russell King , Masahiro Yamada , Nick Desaulniers , Nathan Chancellor , Arnd Bergmann , x86@kernel.org, clang-built-linux@googlegroups.com, linux-arch@vger.kernel.org, linux-efi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 32/36] x86/boot/compressed: Reorganize zero-size section asserts Message-ID: <202008211123.AD9EA0441@keescook> References: <20200731230820.1742553-1-keescook@chromium.org> <20200731230820.1742553-33-keescook@chromium.org> <20200801014755.GA2700342@rani.riverdale.lan> <20200801025325.GA2800311@rani.riverdale.lan> <202007312235.4A48157938@keescook> <20200801171225.GB3249534@rani.riverdale.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200801171225.GB3249534@rani.riverdale.lan> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Aug 01, 2020 at 01:12:25PM -0400, Arvind Sankar wrote: > Actually, moving it to the end also requires marking it INFO or > stripping it out when creating the bzImage. Otherwise we get back to > that old problem of materializing .bss/.pgtable in the bzImage. Yeah -- I wonder what the best way to make sure we avoid causing the .bss appearing again... -- Kees Cook