Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1453947ybv; Thu, 6 Feb 2020 04:27:53 -0800 (PST) X-Google-Smtp-Source: APXvYqyilFGQVtN9V224hflhvUCKqP7CmeB4Z4yRa7oeW2PAzitZDAbZDSyG35SgdXB28g55zQv4 X-Received: by 2002:aca:b70a:: with SMTP id h10mr7039523oif.20.1580992073119; Thu, 06 Feb 2020 04:27:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580992073; cv=none; d=google.com; s=arc-20160816; b=vPLCRMQyhdF4RPzhDvAokPuhEVz1+brcTdENw5HARzibfi/W3XNDHG/AKvmnN/41de yE0yKYKBNczSZlToA8oq/vwj72j6sYGHGUFPywooGiErg8dcmO7s1+gzkKUowwDiBcZX NL4JXaND1ZRl57RHqiZAFtB9maEye0vwtck/kwbNqZR2m9R/n9KrZt+YseDwPfgfbCQg /aUX9San/vk+Cf4C5LsmwZzGDRSymd6RiWDzHP5w1eOHd37lXKjr3EesDdDTfWoOsHil Xtjsk8qVrDJcWVn6rSVls/49B+ZwTBtMJDbOlhfUiWmNTvm8N/6O9/3x3F+2TDjJspV9 ZPQg== 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=jy0CnJlvOas43+pFTR7ABDjKL2TXvtkTC2vp+5n1KXg=; b=jiXAL0XsiuvSCXFw5c5ai03p+4fsVR1vFc9n+3Djh+yE9ljaq7ZyM53XSwmxpAcyiV 8FJ+AQSCcLbsZG/gxn3H0zFXPhmo+V2nfyKFzTmzSK5yuX3T06835AY8Abl1xwo2kF7b s5+Oqje7QI0aBM1+okw5iccfioeOqhNvi+9/mnMaFF18Gk9qKQigWRFerc3OgloNw0i5 7H4TjA6vOO8HE4gCatpDTqUCV9ydghse9s4leIulIlBn28+LlJ+Lodgr9XEdrQoCnV9O vL+qSZmE5TsjZZ1JCd0wpY3zc5+hUAm1WVYKgEfLPefBhBbbfam5ERthW29289S2yWFY rEkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ONakVT6t; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a205si2010081oif.159.2020.02.06.04.27.40; Thu, 06 Feb 2020 04:27:53 -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; dkim=pass header.i=@chromium.org header.s=google header.b=ONakVT6t; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727565AbgBFLpD (ORCPT + 99 others); Thu, 6 Feb 2020 06:45:03 -0500 Received: from mail-oi1-f194.google.com ([209.85.167.194]:46941 "EHLO mail-oi1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727111AbgBFLpD (ORCPT ); Thu, 6 Feb 2020 06:45:03 -0500 Received: by mail-oi1-f194.google.com with SMTP id a22so4230988oid.13 for ; Thu, 06 Feb 2020 03:44:56 -0800 (PST) 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=jy0CnJlvOas43+pFTR7ABDjKL2TXvtkTC2vp+5n1KXg=; b=ONakVT6tfkQcyhj4YBW/4z8SAQxXM9Agcc1+RSXbaSD8K338Y7VQjuV7od7jMjE0z3 q/gCnJ6Moy7DeX0SiuPEB3nqJSEdJNNgcbhguI4PN62WjhS/vycCHXSuAacXUEBH79FF tfaIg7sxMToGwKaC+8ZEsJPW1l7/qpl8ZvO6Y= 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=jy0CnJlvOas43+pFTR7ABDjKL2TXvtkTC2vp+5n1KXg=; b=QlCiGU7wDPeoXzLERYL+vvQ19VxXqBnn1sE/a8xyk3G9vJSF7mN3XL/dW5dJPSt5Rl UL6sHmu+IysJM+aAJmIKjnVhRQr9fcgTI30DjR7pAKaBtlvqdgEUKvEnL+j8oMa0wpFP ylX230kGVFeK/sV+x3iR0JdPIZKY5ZT7Llco8Ypn8P1y/w4Q9gXQ1SBUk9NaWIfnT63N IUSd3OZIe/zjN24yN63IRsj6WVjRMePeIs4eNV+rDMM2wSlUjlphQAFmOalPGUv9b/aG 2bG9fPLw3qY/UQnc0fazFowE+RMxeLU/5pArWIq5CYQ0MRl1zxkqDBt+syj2rDbsjo5Q E6VQ== X-Gm-Message-State: APjAAAUI2zVeWlm67x01YZhq+f/UI/9rS5z0KarrGVMmlQoCqox4lUWv 0uhgdkaq7ZtpGZUiL4soXglHCQ== X-Received: by 2002:aca:4183:: with SMTP id o125mr6340760oia.125.1580989495806; Thu, 06 Feb 2020 03:44:55 -0800 (PST) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id q5sm842562oia.21.2020.02.06.03.44.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Feb 2020 03:44:54 -0800 (PST) Date: Thu, 6 Feb 2020 03:44:52 -0800 From: Kees Cook To: Arvind Sankar Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] x86/boot/compressed: Remove unnecessary sections from bzImage Message-ID: <202002060320.2B76A4E6@keescook> References: <20200109150218.16544-1-nivedita@alum.mit.edu> <20200109150218.16544-2-nivedita@alum.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200109150218.16544-2-nivedita@alum.mit.edu> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 09, 2020 at 10:02:18AM -0500, Arvind Sankar wrote: > Discarding the sections that are unused in the compressed kernel saves > about 10 KiB on 32-bit and 6 KiB on 64-bit, mostly from .eh_frame. > > Signed-off-by: Arvind Sankar Looks good to me. I was worried this would paper over the problem, but actually this solves it even more directly by removing the troublesome sections. So, yes, let's do this too. :) Acked-by: Kees Cook -- Kees Cook