Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2295731ybz; Thu, 30 Apr 2020 14:34:36 -0700 (PDT) X-Google-Smtp-Source: APiQypJSrRCf1+P1hqTH4cyDS3iqt/zoilOGe3PuOZgMqosrCOCGxSbmDs/poU3Ay2VpwBbB+icb X-Received: by 2002:a05:6402:221b:: with SMTP id cq27mr1004125edb.65.1588282476248; Thu, 30 Apr 2020 14:34:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588282476; cv=none; d=google.com; s=arc-20160816; b=Zi0cwsGlUINBID8sZeW2x1wjaIk7pKrYbnSHehldSJmVyg/jlQjEU9ZHWt+J0xoi2S ce3TbblZDG1RDcWSSsKf6Hv9Qc68R29cryAO/9v+6gWJTHF/xfNh81R5FZmKRgQ5GzRS Ou8NHphxxTO9cRnZIAEiB81ZVAeF94HBLGQ7YgOJM7aZ5BLezf0P8OSShVkrHnvBmd9G HoygsNRtA6FwrwYAr2co1Nyx1iQdzpsjH0D3i1QZMtWH7gRoN1BZpbxfTLpzBmYgOik2 hu2nvaT6Do9MPnaEWDo7cPyhn3IV6HA7QW/D46/zPRAd683FHzNRSFCYZ2Z02oVMHDVm ATcQ== 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:mail-followup-to:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=Jzrv5wRZ4K7XtvWDWWDISsbmjMxGQe+9BSaROBXcFYM=; b=J0XGHpB3ZBjSlGzCLyWLYmcl0x6VOCJWM6Ykqut5Rg935U4ZPUh2Fq8craXOaYFsMW Sb0my15lIkSG/elTpYqY9YyjAbIH+qxPwwBOqPsxyjn2Zcomc6EK2ajYYclras9zKA8G NAc86WtEggrHz11oOhydPB9bsZblJN1CPZgqHhD7krS2WAtpTIdXqXOgkYvPBzmbPqhe 0YgT/47OCS02PMh9O69//VUwRf+4byj32L/cti3OVpHaBJ2eVWsHqXkuODtmSyrBPy12 QVvO6y3TwJ5NMBndtqwcYfk5f/n0vJNbyWSzcmmbAtTtX+tMH+YIYwDyu+HVlnkbFPpv 204A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GY696NEo; 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 a23si532515edy.59.2020.04.30.14.34.12; Thu, 30 Apr 2020 14:34:36 -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=GY696NEo; 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 S1727101AbgD3VcY (ORCPT + 99 others); Thu, 30 Apr 2020 17:32:24 -0400 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:26146 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726336AbgD3VcY (ORCPT ); Thu, 30 Apr 2020 17:32:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1588282342; h=from:from:reply-to: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=Jzrv5wRZ4K7XtvWDWWDISsbmjMxGQe+9BSaROBXcFYM=; b=GY696NEo5LOX3ASixzG+GHdHN+8eAJkHbSETwU1emugMOKwlUrepykj0WMYwIkNt/w3DyG nTRBz0+ikVppz4QgeD1GOECWvewksqD4SyXxKEy69NVvpjK+Qu88O8qaX2zxKL7gTGdZHn +Ntj3yxQ4xWd/7cE8Y+J2lm64X3+kNc= Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-124-pNke-0I0PzK6aSxeZP0gMg-1; Thu, 30 Apr 2020 17:32:18 -0400 X-MC-Unique: pNke-0I0PzK6aSxeZP0gMg-1 Received: by mail-qk1-f197.google.com with SMTP id k138so7915601qke.15 for ; Thu, 30 Apr 2020 14:32:18 -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:reply-to :mail-followup-to:references:mime-version:content-disposition :in-reply-to; bh=Jzrv5wRZ4K7XtvWDWWDISsbmjMxGQe+9BSaROBXcFYM=; b=oG+ObIccwN5ucGpCPnlwhf7P0J7jHgd6uTvlFI64LW69EPZjIuDOVk+BBY1cklvG4B 1XI0xk1c1nqwLGaq309EgjIlte9/o+pFDx1dcIMuXxkxADRCglBoTkWxHhi9fHsJNBkW ZlQdUmyGGhqco3KzLzH0Ll9TSFKBZFvYpDPVB3mxe8iNgG240gpnoqSrR2VDsBQC9HHu q73JSj4+nCiq4Uvxr63HFfYbx3N2ayCOWZ8uG9GpBsXbH3HP5Q/ObfQMrj9RqGNRrd7v jG9jjfKp4sd6iEdzXJwpvI/vBBV/0+LydTg73z4pKH5emRL4o/H30eWd8WYssQLmkpGG U04g== X-Gm-Message-State: AGi0Publokydn+DQQxixc9Clg3pQq8w+0rUzja228uEMm6zajxwc8GUD nLufAkQrXs4L1z3V0BGKPbMAHiwEzOV4hMADu17NcwPK/zhSC6d9pebszQi6xdWZXSkFz3HZRq1 xueH22M9jfqmxj1iYZ3fJd8w/ X-Received: by 2002:a37:5846:: with SMTP id m67mr569354qkb.78.1588282338108; Thu, 30 Apr 2020 14:32:18 -0700 (PDT) X-Received: by 2002:a37:5846:: with SMTP id m67mr569335qkb.78.1588282337907; Thu, 30 Apr 2020 14:32:17 -0700 (PDT) Received: from localhost (ip70-163-223-149.ph.ph.cox.net. [70.163.223.149]) by smtp.gmail.com with ESMTPSA id x16sm1077258qkh.14.2020.04.30.14.32.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Apr 2020 14:32:17 -0700 (PDT) Date: Thu, 30 Apr 2020 14:32:15 -0700 From: Jerry Snitselaar To: Ard Biesheuvel Cc: Arnd Bergmann , Ingo Molnar , Ard Biesheuvel , Ben Dooks , Dave Young , Jarkko Sakkinen , Lukas Wunner , Lyude Paul , Matthew Garrett , Octavian Purdila , Peter Jones , Peter Zijlstra , Scott Talbert , Thomas Gleixner , linux-efi , linux-integrity@vger.kernel.org, "# 3.4.x" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] efi/tpm: fix section mismatch warning Message-ID: <20200430213215.jqt2rj452hawj3j7@cantor> Reply-To: Jerry Snitselaar Mail-Followup-To: Ard Biesheuvel , Arnd Bergmann , Ingo Molnar , Ard Biesheuvel , Ben Dooks , Dave Young , Jarkko Sakkinen , Lukas Wunner , Lyude Paul , Matthew Garrett , Octavian Purdila , Peter Jones , Peter Zijlstra , Scott Talbert , Thomas Gleixner , linux-efi , linux-integrity@vger.kernel.org, "# 3.4.x" , "linux-kernel@vger.kernel.org" References: <20200429190119.43595-1-arnd@arndb.de> <20200430211516.gkwaefjrzj2dypmr@cantor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu Apr 30 20, Ard Biesheuvel wrote: >On Thu, 30 Apr 2020 at 23:21, Arnd Bergmann wrote: >> >> On Thu, Apr 30, 2020 at 11:15 PM Jerry Snitselaar wrote: >> > >> > On Wed Apr 29 20, Arnd Bergmann wrote: >> > >Building with gcc-10 causes a harmless warning about a section mismatch: >> > > >> > >WARNING: modpost: vmlinux.o(.text.unlikely+0x5e191): Section mismatch in reference from the function tpm2_calc_event_log_size() to the function .init.text:early_memunmap() >> > >The function tpm2_calc_event_log_size() references >> > >the function __init early_memunmap(). >> > >This is often because tpm2_calc_event_log_size lacks a __init >> > >annotation or the annotation of early_memunmap is wrong. >> > > >> > >Add the missing annotation. >> > > >> > >Fixes: e658c82be556 ("efi/tpm: Only set 'efi_tpm_final_log_size' after successful event log parsing") >> > >Signed-off-by: Arnd Bergmann >> > >> > Minor thing, but should the Fixes be c46f3405692d ("tpm: Reserve the TPM final events table")? Or what am I missing >> > about e658c82be556 that causes this? Just trying to understand what I did. :) >> >> You are right, I misread the git history. Can you fix it up when applying the >> patch, or should I resend it? >> > >I can fix it up, no worries. > With the fix applied: Reviewed-by: Jerry Snitselaar