Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp195238pxb; Thu, 2 Sep 2021 23:25:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyToq6WJnTh/gGa6BYTMNQzULav+9TlArkVSq1OqX4gEHJJ/5Jj9ZZqughTAVSiQfBj8ykM X-Received: by 2002:a05:6638:1642:: with SMTP id a2mr1322682jat.88.1630650341851; Thu, 02 Sep 2021 23:25:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630650341; cv=none; d=google.com; s=arc-20160816; b=anlX3BUbXEmSLh4CuhyEPt+fDza4xV0wv8ATlXOH98p3BPZoUc0O5xgis59bdnBEEi w7umkVwucDhkXBgHXlI2W90b9bGIfWAuJ2PVgVxU05UpcvT7TkZQUFU759xJdfMW5ai3 76fSYEl6jiVHp7MBSVyXDpeDTRApsKXarZlUV0mVtpabx/H3ss8nHvyzhwbNlc6lAcqv pyVgcRtDyR1XvCuNMMnye/KFGyEjlcyGXklIrHWJ093vsHI9bfIG1qpRg8p5FDHNIBRm lJz+8kKu1fgyWDn+Gxjh457n7sYpoIIfNRQ1bf6w5FqWssosR+zF/8ZixgoekZ9qb7UE 5uPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=YVcqIhLjK1aLZFmGstA8aMe5xkC0R7kiAZwq3yD/UZo=; b=08GjLKtiZcWqJ7jDtTPOKm9dy0yNqE1Fbz7/8tsg8M++iW3yXtxgK/r5Dn1/6gXvDR 2feHyoaTuzyfPKMeoF79FLPCONr8ueFG7rRPeCjlqSByAsRifB9yK3hr9n5aaHSAJEj0 ObG+5zowS6y/4QyIjkibRkcpYnpF9nIdRMLsOceGc7bhnY8PAttHEALtIOr7oFYvh3xg ur0PkBbXOFhhJ5lbmFobWI07ITYqQ8ystL+RE90vsIXpHC6Po2wOOwm85cteWsAu7WR3 e69SNlIV0+57VSGkg896GgtZv/+oHhrK9uWcXwe8vPVNqxyWeVPozgTm+AZenMsNurGL cnSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MZDF97QF; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 132si4236460jay.7.2021.09.02.23.25.29; Thu, 02 Sep 2021 23:25:41 -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=@redhat.com header.s=mimecast20190719 header.b=MZDF97QF; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233766AbhICF4d (ORCPT + 99 others); Fri, 3 Sep 2021 01:56:33 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:59457 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233634AbhICF4c (ORCPT ); Fri, 3 Sep 2021 01:56:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1630648532; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=YVcqIhLjK1aLZFmGstA8aMe5xkC0R7kiAZwq3yD/UZo=; b=MZDF97QFhjJS8ErjA7NEtJpZOYG0jzgBTtJjf4MEDi55LTYWJm0NQkO8zD2hI9ZdvbV8B7 JdHMU8OKf5FMjXsOSdZ10gmY8EG6i+BXXJ4jYYKvpdv1+2/KRDnnyn+e91EI+9MAVzNfU1 2ui5sEzDugw9iOOwYwwydq+C0Enj1UA= Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-191-Sq_uaTahOcaKZTlF_qZPlQ-1; Fri, 03 Sep 2021 01:55:31 -0400 X-MC-Unique: Sq_uaTahOcaKZTlF_qZPlQ-1 Received: by mail-qk1-f199.google.com with SMTP id p23-20020a05620a22f700b003d5ac11ac5cso5260294qki.15 for ; Thu, 02 Sep 2021 22:55:30 -0700 (PDT) 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=YVcqIhLjK1aLZFmGstA8aMe5xkC0R7kiAZwq3yD/UZo=; b=uT9UncXhmyO8SR42st0LTr8Txx8t0jdNiC44N9DaX2FDiII8sS8fNmlKMFVup/YZ6X EGEVOIZo4GMkiVfg/P31N1wpdrby6iF4urPSzYWVsFumrt2vqSmRuSGhTPF6A7bDzShQ +RZ4ScPy5rxYspEEXqBKSTIs43QrH0/OVIQfYdq70GwjHJhPBXcBvpiwAAK4rhhtZepR KZONTsOqhbZhyOyFzItF84tTB5c9BMXYfGdCjf4qkDC6adjpYNVHN0DqyzBhVbopfYQ9 ns5wBX2sBs5EZADPyZOy7JNmDlXaFiZk6eZrE5EP0NAziafzXdNRZZrfcLjwk05931FN yKpQ== X-Gm-Message-State: AOAM531uz5qEUCtHZ9K0vPcYNyHOQ4UpdW/AzZyKdNbRtwhhBvxfj+or bg31Dtnlq3Mv98WbcQnv/9gnO043iYc3Nm6PfRUitv0p7eP3+ETOUXdEZgqE+A0bvVUY2ZPXlei 9P2+pT+MDc8d9Pj/PhX0Nw6g9 X-Received: by 2002:a05:620a:1529:: with SMTP id n9mr1829204qkk.322.1630648530598; Thu, 02 Sep 2021 22:55:30 -0700 (PDT) X-Received: by 2002:a05:620a:1529:: with SMTP id n9mr1829187qkk.322.1630648530395; Thu, 02 Sep 2021 22:55:30 -0700 (PDT) Received: from treble ([2600:1700:6e32:6c00::d]) by smtp.gmail.com with ESMTPSA id g8sm3144077qkm.25.2021.09.02.22.55.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Sep 2021 22:55:29 -0700 (PDT) Date: Thu, 2 Sep 2021 22:55:26 -0700 From: Josh Poimboeuf To: Kees Cook Cc: Arnd Bergmann , Peter Zijlstra , linux-arch@vger.kernel.org, Jessica Yu , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Alexander Egorenkov , Sven Schnelle , Ilya Leoshkevich , "Steven Rostedt (VMware)" , Ingo Molnar , Sami Tolvanen , linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH 1/4] vmlinux.lds.h: Use regular *RODATA and *RO_AFTER_INIT_DATA suffixes Message-ID: <20210903055526.mmi6hoomawavkbsp@treble> References: <20210901233757.2571878-1-keescook@chromium.org> <20210901233757.2571878-2-keescook@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210901233757.2571878-2-keescook@chromium.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 01, 2021 at 04:37:54PM -0700, Kees Cook wrote: > Rename the various section macros that live in RODATA and > RO_AFTER_INIT_DATA. Just being called "DATA" implies they are expected > to be writable. > > Cc: Arnd Bergmann > Cc: Josh Poimboeuf > Cc: Peter Zijlstra (Intel) > Cc: linux-arch@vger.kernel.org > Signed-off-by: Kees Cook Acked-by: Josh Poimboeuf -- Josh