Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2998452ybt; Mon, 29 Jun 2020 12:29:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwR05936d/cki0g7IMY9CB73bJPkqYCq4NgEnsmPkrw2mGQwNwjjXlfmjEqzBMJbCLQbbId X-Received: by 2002:a17:906:da19:: with SMTP id fi25mr15108634ejb.369.1593458973422; Mon, 29 Jun 2020 12:29:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593458973; cv=none; d=google.com; s=arc-20160816; b=EP37vQRuImYoIYxOTqfLiemzM8n8eK94RRgQHc8S+u6rgr4G1J67/+ZnOTN1S9mIcy egYwSuqKpABwTib+XEGn77E+tJnVr+zjGSq8Q8Z1NpxkQE2nbITtGjqwb2n10TwUAlwE FLQCgylq8bDhIw//UegPrpBtMVg5/lpMvt+hGf+3trdUEkoe2qYTbKVtApInycsw5dvm q8YaISfJgYIrEwJXCKg7eOBbgTrTMHSkrLw55v6YVufUBYTvxe4l64Hv76peEgPqshA0 d6pN11LTW7z08wkbkWWFFCqxsIeVq24VaEJt/9rUrrKeLwG/T1QZUD7IpEpLZ4yPiBcX dSxQ== 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:date:from :dkim-signature; bh=wV0NHhglv/mmSSjfHCWkkJCA24T21ipzwYGTvO6LqDY=; b=FERA7w2XrWUXhftaxpMc2+zMHGscMQzdujNpAKG+HlqyDlk9CiOH7EduQCaJ1r70CI 7LqNdnBhxWjSNP8Z+Q7f9+NBqbVhkJapHcAoX6EuWnR5WnhsmMEEx7gY/GM1hV4Pocx4 eKH/hp2FYzYKDamVJ2pAknk/d1Wt1g4HuYPjkk6ryEz+Ork1fAX525G6FxBUtXIuCLOw +ze4Dr/sY5SI+evlIYX9ibz1TdKitGq1yGJuUwUZAU1Zcfm7ChP7lb7l4qU8w5bB8DCV mpz09Ky5ifNxthY9zIqvTBOa1jZGzwzYmVgrlaWa8qAbvB1S7FYOT87/Zmn3JYXpYuQ7 9axg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Db5sQB7X; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cc24si337731edb.15.2020.06.29.12.29.10; Mon, 29 Jun 2020 12:29:33 -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=fail header.i=@gmail.com header.s=20161025 header.b=Db5sQB7X; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728525AbgF2T2o (ORCPT + 99 others); Mon, 29 Jun 2020 15:28:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732748AbgF2T1n (ORCPT ); Mon, 29 Jun 2020 15:27:43 -0400 Received: from mail-qk1-x744.google.com (mail-qk1-x744.google.com [IPv6:2607:f8b0:4864:20::744]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01175C0307A7 for ; Mon, 29 Jun 2020 08:50:15 -0700 (PDT) Received: by mail-qk1-x744.google.com with SMTP id b185so5075960qkg.1 for ; Mon, 29 Jun 2020 08:50:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=wV0NHhglv/mmSSjfHCWkkJCA24T21ipzwYGTvO6LqDY=; b=Db5sQB7Xk+al/PTFGgxDHQDQvknnMbKWujmiJtQgsK1twOoNgXuepQFf7nPjIL/MhM 6gxzlMU4mQdQ1TbdVczRfQa7bMcqL81q7LI2BMk/IroPrpxqPeNxfJisjOMaGRiidWNW VxVCNu2RRERHiHC6hEhxEOSGKEqiDmAudaDqjZ/cn4neAmgT3W63Fg3+4334xeBc87Eo flTT0MQrjooEfkvvDfjWIHWd4zMoYj4KS1NcRpDsz9sMSsg7rEd1rnxzc4xqJbEnmoWN YX9WVbHrlc55z2wcXSPNbcdzgTR1NOtlCkI6zbPslnv1zM/sep+BR3Qu6y7TRja5x3W9 IapA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:date:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=wV0NHhglv/mmSSjfHCWkkJCA24T21ipzwYGTvO6LqDY=; b=ePh0AtpqoH54rxcujrT26XURVWm0y7j88N9o8FxMfH1+NR9sMuM2ZJMVAI/ezM71ml bCB7vaPHpEYb/lW6ThCz0BC075U0hfu0A+/xTTPYrvoCT5IS02kiZRazVYQGCpMeRNBz V9AUjIjJASl0CoCONMoGkBnT3UK44bcLL+/WvrKfMOkpe8Er6/6TTWVrsNiVJ51NJgo9 uv/7mUK7zFOh3AX6omo+pNqrycCeTqaHFx/Xm+oFv26O7OtA5yv6wSJG2r+fSUyetOKz otuYyL3yYp60q4s4u8Ej5RoPMdd6eRpP1kQEAaxR5YD0CsjbSWWj/NrFhe0ebkxKJUmE jU0A== X-Gm-Message-State: AOAM531r4ugj294R96/uoiJTuR7D6P1Bi4PdTWB82grrgpmRuumN5Plu dcOvUXsobdAp1/FoXzECQ7M= X-Received: by 2002:a05:620a:1282:: with SMTP id w2mr15014742qki.196.1593445814064; Mon, 29 Jun 2020 08:50:14 -0700 (PDT) Received: from rani.riverdale.lan ([2001:470:1f07:5f3::b55f]) by smtp.gmail.com with ESMTPSA id b22sm162685qka.43.2020.06.29.08.50.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jun 2020 08:50:13 -0700 (PDT) From: Arvind Sankar X-Google-Original-From: Arvind Sankar Date: Mon, 29 Jun 2020 11:50:11 -0400 To: Kees Cook Cc: Arvind Sankar , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , x86@kernel.org, Nick Desaulniers , Fangrui Song , Dmitry Golovin , clang-built-linux@googlegroups.com, Ard Biesheuvel , Masahiro Yamada , Daniel Kiper , Sedat Dilek , Nathan Chancellor , Arnd Bergmann , "H . J . Lu" , linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 1/7] x86/boot/compressed: Move .got.plt entries out of the .got section Message-ID: <20200629155011.GA900899@rani.riverdale.lan> References: <20200629140928.858507-1-nivedita@alum.mit.edu> <20200629140928.858507-2-nivedita@alum.mit.edu> <202006290846.5A5C76A4D7@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <202006290846.5A5C76A4D7@keescook> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 29, 2020 at 08:48:05AM -0700, Kees Cook wrote: > On Mon, Jun 29, 2020 at 10:09:22AM -0400, Arvind Sankar wrote: > > This is also being done on arm64, and the section was specified slightly > differently (with INFO) which maybe should be done here too? I was actually just about to email you to ask what that INFO is for :) What does it do? > > .got.plt (INFO) : { *(.got.plt) } > ASSERT(SIZEOF(.got.plt) == 0 || SIZEOF(.got.plt) == 0x18, ".got.plt not empty") > > Otherwise, yes, looks good. > > Reviewed-by: Kees Cook > > > + > > .data : { > > _data = . ; > > *(.data) > > @@ -77,3 +80,9 @@ SECTIONS > > > > DISCARDS > > } > > + > > +#ifdef CONFIG_X86_64 > > +ASSERT(SIZEOF(.got.plt) == 0 || SIZEOF(.got.plt) == 0x18, "Unexpected GOT/PLT entries detected!") > > +#else > > +ASSERT(SIZEOF(.got.plt) == 0 || SIZEOF(.got.plt) == 0xc, "Unexpected GOT/PLT entries detected!") > > +#endif > > -- > > 2.26.2 > > > > -- > Kees Cook