Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp310327ybp; Thu, 10 Oct 2019 18:43:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqzGuBuuKUY+0vemtebnuRzRl2qkoXhwX9HNRvPucr6NdNE4oUqXrRP9nk390ulVA8kmaz4U X-Received: by 2002:a17:906:615:: with SMTP id s21mr11372048ejb.276.1570758200180; Thu, 10 Oct 2019 18:43:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570758200; cv=none; d=google.com; s=arc-20160816; b=UTVlAwR9A85lzRqlwF9Hq3SPnjzVECtRqgcj/QnCLNKU9g0PBRcHFUdprN49MTkMCs Xa2RnfpyEZS1EP4d4rFAFBvYhJkFRd01JoOnD5wzJOd7IHwZXBPEHFeMaJH2V4Y0gMW/ xzk3PSYTGWiM6FI5wAc7HE57d7sxj4pnlQkfSfXtmFwChKSV7LkR2ugzxbBIunUZkjAQ ocv6ZNQG+FxpPRN4wRnLsmZtKtJ4KmvIyvH3qZTNSP2qSIVILgX093/Yv7UFGqoBlTio 7yfKyMkP9t4fchU8MoH+7fU/ulkl9rH+pqzal0ejYgrcF+cq+kjDFRsjZMPAVW7k1AS1 h+hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:from:cc:to:subject :content-transfer-encoding:mime-version:references:in-reply-to :user-agent:date:dkim-signature:dkim-filter; bh=TUIhoFcV+31eZTr1kONofaEMms3/RhBG/iU3TdNS+pY=; b=Q+S+ObHpEHqVnf/SpyvjUGoZ1K/RPpcaVDyQQ2eoO2e4Ly5iszPVhYNdUBIPSD/b42 4J/5tPW83U94Y3750MUjfqUDOfW8vNR1DDGzdTzRy10HsyiCZHn3uhaiPUVy7b4Dk6fF OPXmxAV2oX5Ck6p6YzL1R5NNMXBCa8vH1ZDBecUTd4r2RuLVKI/5sTwZn4MsuzVKiETI hFvVX2R+Cg+36kGAH8v6iDBDpdJqsjjkTc9AX37ysXbK490Xew0oR3YnTROdW/EEjROx Uzal+kLlgPXAE5LCIXBwjFPyUTZTKy0WCkhj9s7FXRFUQ7uSE4j/Y8gUvF6WZXSv0wVB Z9yQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@zytor.com header.s=2019091901 header.b=oW9dfaaR; 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=fail (p=NONE sp=NONE dis=NONE) header.from=zytor.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d1si4453145eds.148.2019.10.10.18.42.56; Thu, 10 Oct 2019 18:43:20 -0700 (PDT) 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=fail header.i=@zytor.com header.s=2019091901 header.b=oW9dfaaR; 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=fail (p=NONE sp=NONE dis=NONE) header.from=zytor.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727842AbfJKBj3 (ORCPT + 99 others); Thu, 10 Oct 2019 21:39:29 -0400 Received: from terminus.zytor.com ([198.137.202.136]:40955 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727532AbfJKBj3 (ORCPT ); Thu, 10 Oct 2019 21:39:29 -0400 Received: from [IPv6:2601:646:8600:3281:14ec:615e:cb9c:4171] ([IPv6:2601:646:8600:3281:14ec:615e:cb9c:4171]) (authenticated bits=0) by mail.zytor.com (8.15.2/8.15.2) with ESMTPSA id x9B1cDnV301404 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Thu, 10 Oct 2019 18:38:14 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com x9B1cDnV301404 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2019091901; t=1570757896; bh=TUIhoFcV+31eZTr1kONofaEMms3/RhBG/iU3TdNS+pY=; h=Date:In-Reply-To:References:Subject:To:CC:From:From; b=oW9dfaaRmKd2dWoG3cgkzVO7BvegyKalCQTxvCkvgSHMMP1aHzoAgAKgrdfUT1oLy knMJjvPLF83nLOn/ZAN3CPvsjjRfkJ0aerhHPcT19nudWK5NOitM033cLOnaGvI2e1 LSFP3+8NCXofkKyTku2Ig+hd5GPCzdOhgJdURHIZGaQ2FvCQboeNg++CFWqgbXefQR /SpG4FYMCfGdB5IJbLA+2mNkqs5PSktOsAiaYQAYgeDgNBG+PkAvJWstHjn+LuCQM9 xfo1Giy+1NXKFUnN4iD3tpGhUd+JWd6VRGxDGhkAiURF0SGwTc0cH1h/qmMomAnUUS wkKqLjoRiDOug== Date: Thu, 10 Oct 2019 18:38:03 -0700 User-Agent: K-9 Mail for Android In-Reply-To: <201910101657.234CB71E53@keescook> References: <20190926175602.33098-1-keescook@chromium.org> <20191010180331.GI7658@zn.tnic> <201910101657.234CB71E53@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH 00/29] vmlinux.lds.h: Refactor EXCEPTION_TABLE and NOTES To: Kees Cook , Borislav Petkov CC: Thomas Gleixner , Rick Edgecombe , Ingo Molnar , Dave Hansen , Andy Lutomirski , Arnd Bergmann , linux-arch@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-alpha@vger.kernel.org, linux-ia64@vger.kernel.org, linux-s390@vger.kernel.org, linux-c6x-dev@linux-c6x.org, Yoshinori Sato , Michal Simek , linux-parisc@vger.kernel.org, linux-xtensa@linux-xtensa.org, x86@kernel.org, linux-kernel@vger.kernel.org From: hpa@zytor.com Message-ID: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On October 10, 2019 4:57:36 PM PDT, Kees Cook wro= te: >On Thu, Oct 10, 2019 at 08:03:31PM +0200, Borislav Petkov wrote: >> On Thu, Sep 26, 2019 at 10:55:33AM -0700, Kees Cook wrote: >> > This series works to move the linker sections for NOTES and >> > EXCEPTION_TABLE into the RO_DATA area, where they belong on most >> > (all?) architectures=2E The problem being addressed was the discovery >> > by Rick Edgecombe that the exception table was accidentally marked >> > executable while he was developing his execute-only-memory series=2E >When >> > permissions were flipped from readable-and-executable to >only-executable, >> > the exception table became unreadable, causing things to explode >rather >> > badly=2E :) >> >=20 >> > Roughly speaking, the steps are: >> >=20 >> > - regularize the linker names for PT_NOTE and PT_LOAD program >headers >> > (to "note" and "text" respectively) >> > - regularize restoration of linker section to program header >assignment >> > (when PT_NOTE exists) >> > - move NOTES into RO_DATA >> > - finish macro naming conversions for RO_DATA and RW_DATA >> > - move EXCEPTION_TABLE into RO_DATA on architectures where this is >clear >> > - clean up some x86-specific reporting of kernel memory resources >> > - switch x86 linker fill byte from x90 (NOP) to 0xcc (INT3), just >because >> > I finally realized what that trailing ": 0x9090" meant -- and we >should >> > trap, not slide, if execution lands in section padding >>=20 >> Yap, nice patchset overall=2E > >Thanks! > >> > Since these changes are treewide, I'd love to get >architecture-maintainer >> > Acks and either have this live in x86 -tip or in my own tree, >however >> > people think it should go=2E >>=20 >> Sure, I don't mind taking v2 through tip once I get ACKs from the >> respective arch maintainers=2E > >Okay, excellent=2E I've only had acks from arm64, but I'll call it out >again in v2=2E Thanks for the review! I would like to once again advocate for the generalized link table mechani= sm=2E It is nuts that each individual table should need vmlinux=2Elds hacki= ng across architectures=2E --=20 Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E