Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2838309ybi; Mon, 17 Jun 2019 11:12:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqxo25QCfi7gBjyMAxdQfq/9AXWoWraz28TDP38Ew0ytSSEdXdi3LsyErDt0nbnZ0FWFZHAR X-Received: by 2002:a17:90a:b908:: with SMTP id p8mr86296pjr.94.1560795177868; Mon, 17 Jun 2019 11:12:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560795177; cv=none; d=google.com; s=arc-20160816; b=DdWhrCN55pofSGRm8r5syyg1XRl97JJH2X+xcI6QvyTN0m8C6e1HCtJxNjTTzS4PYX Yv+wWA95ga2K3KCa/ZHkU4U3F164O/3HA+dED7PCPOALleALWV/RFsbL9LHTv7pht60+ wL2OJBY5aTKKGw67PASH6YbgNkIlLClcQCXF4B7D6PBh3pCzgRdeE2QMDsabOs6Rzifj cFmR/oVwLyzNi9hptH6mi6RCsIGB/8e/HczJ0NGr/sUbNhmQvK9OjZ1nk4FuHMfJ4Hwh d1QSziUsLM3kJ1EUJK9e0GHnbxxJ9QKlbwjLExoHidfaF3Pel+GDMCWMaETC10sDVwO8 qJtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=rqLR3+io55yTkVH0xo2KKsawZfYNasymj8LNCY5Zbr8=; b=T46SR6mpsA7DFOQH4XNYoxmTOYfWgbTED6NIBkqn0KUwaDue10HnrDjRo7+1G7Nl1T tWy2okqRHFs1M+MXblwIK466XuRWMKdhTgbRzrqmPhh40PRWWYj7G1Fq8vI9zvjaWitS R/oTKynUtH4bI7kSSEzXVkmD43OIfs/dJdFOPmpnZskz9IY849LOrinq6syQaCJSLnwd nU1DH+RkXpUPZzb7PJj/uv1bxvbjgHf4opdYiDF6uZlXchCfUGJYwSjjNDJHypQfni00 Ddm1KCx0oqri4WjFQ0raPtmKhwRRoWMuvKYf11EhOXpOMqDtmc31YRjwFfBItdMBac0j FPYw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w7si11001160pgs.168.2019.06.17.11.12.42; Mon, 17 Jun 2019 11:12:57 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728060AbfFQSLV (ORCPT + 99 others); Mon, 17 Jun 2019 14:11:21 -0400 Received: from namei.org ([65.99.196.166]:39700 "EHLO namei.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727523AbfFQSLU (ORCPT ); Mon, 17 Jun 2019 14:11:20 -0400 Received: from localhost (localhost [127.0.0.1]) by namei.org (8.14.4/8.14.4) with ESMTP id x5HIB5hc026662; Mon, 17 Jun 2019 18:11:05 GMT Date: Mon, 17 Jun 2019 11:11:05 -0700 (PDT) From: James Morris To: Geert Uytterhoeven cc: Nayna Jain , Mimi Zohar , "Serge E . Hallyn" , linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] integrity: Fix __integrity_init_keyring() section mismatch In-Reply-To: <20190617074452.12901-1-geert@linux-m68k.org> Message-ID: References: <20190617074452.12901-1-geert@linux-m68k.org> User-Agent: Alpine 2.21 (LRH 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 17 Jun 2019, Geert Uytterhoeven wrote: > With gcc-4.6.3: > > WARNING: vmlinux.o(.text.unlikely+0x24c64): Section mismatch in reference from the function __integrity_init_keyring() to the function .init.text:set_platform_trusted_keys() > The function __integrity_init_keyring() references > the function __init set_platform_trusted_keys(). > This is often because __integrity_init_keyring lacks a __init > annotation or the annotation of set_platform_trusted_keys is wrong. > > Indeed, if the compiler decides not to inline __integrity_init_keyring(), > a warning is issued. > > Fix this by adding the missing __init annotation. > > Fixes: 9dc92c45177ab70e ("integrity: Define a trusted platform keyring") > Signed-off-by: Geert Uytterhoeven Reviewed-by: James Morris -- James Morris