Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp3861950ybg; Sun, 7 Jun 2020 13:01:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3+ZgTO7H8JkLMWPe8JQyQpkhw87m0zSWeTH7gdRF8JNVWZXCw08arBJ63JW5+VJjt2IMT X-Received: by 2002:a50:f18f:: with SMTP id x15mr19416053edl.228.1591560117127; Sun, 07 Jun 2020 13:01:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591560117; cv=none; d=google.com; s=arc-20160816; b=0Isu5BrMddsooSdj7veR/tEtw2HTDMNkB7wvhBvyrUbUznFuaNz1c2fE2u16MdkLX2 E2/G6M14TMGH9Hvp9qX00FlKtvOu6CQQu/MQCmbTzJZZ+QWEC8rXnlDbkbx4caXXs/rz SU+/HeCw5eYaCpcM7PeEMfX62c5uaVEHRBVAXdN4M5LqYiG5YQEBsrhaYoZ3pQlBz4U6 FsrvuQOYgyCa5YYAXfJLZsL7nGM/9ua2OfyULWhDUfZJGQJLXGLSfZHyi7Y6dBTZuNAf tIW5caQ+0GKpZZom522wUV/YlH2l6i3na8hAyd/M/cgletXG6jxxPNtnOnzhVJ/CQZOC 70CA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=sfFkjoxj9fOIuKPRJb0FDkBxNdU4BLvuGT9ldDD2gzo=; b=exbmgCmHliV1eEGKJKdsOanYvoBKQH/SCqLcLay8uUKqmBN8DvVk5g+BGITdfmtk93 uTIhAsWORdlu6KVVKmQea0zGtkhnpMuiL+slLlw0eTUX8onWC0bWZl5IOc8O7HwCKIXE m3vP/Fh34DHgYABcSs7IZWBMhK0vTs0QxoHAlaZ62qE5ObD7egaxtmzSqaqOTEjIbWIn LzB1qkHs9Kl+NwKCTApKOizuMc+hfhH0Ozftm8Y8J70daJsmWFR0JPtNumRTde6G8Ufx wz33If+rlWtcK/t5LqqbRYnGahBegKfk72WJknicKEdsPufmbv3OkLZn6yWAKc5YVeY9 Te4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b="Z/UxSQFS"; 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 o7si7768331edt.103.2020.06.07.13.01.31; Sun, 07 Jun 2020 13:01:57 -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=@linux-foundation.org header.s=google header.b="Z/UxSQFS"; 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 S1727065AbgFGT7X (ORCPT + 99 others); Sun, 7 Jun 2020 15:59:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726872AbgFGT7X (ORCPT ); Sun, 7 Jun 2020 15:59:23 -0400 Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3E4DC08C5C4 for ; Sun, 7 Jun 2020 12:59:21 -0700 (PDT) Received: by mail-lj1-x241.google.com with SMTP id i27so6922681ljb.12 for ; Sun, 07 Jun 2020 12:59:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sfFkjoxj9fOIuKPRJb0FDkBxNdU4BLvuGT9ldDD2gzo=; b=Z/UxSQFSg3CDWwOVJuymkitl0NLXIOoRBih0s5v1TS0bvysDNE7rbLrJqwHBvcXhIc lHvnCJXF/bTw/cJJkyXraQFWjE5VkIE4f7yumSh8zxnuOzwkU+uZYNxoNLZrPUU7QZWm matRTgJ+GFJInbWVu4kDVi/ok+81m/ZgikWSw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=sfFkjoxj9fOIuKPRJb0FDkBxNdU4BLvuGT9ldDD2gzo=; b=UBYv73Nk5iAqlIpTIakRuDD/AWXp4lQzNLHMasWGkM7ddblWRJ+AaYjN7EAOM0vQ1L 89goNNu3vYgI6OUPtUGApq2zZzXx8YBWPQuWpgOwErtFAPzhdRFjI+it8ZsS1iiMUeQJ K2LIgFUWljq7NI5PiFUQWfA7Ta0rURDlOkygpRc6v/AueZ4IshrfZJYDHAKQXDUgIIIA EghfZ0xkOYbUbNi4uqNkXbecjuYHAQqE2K7CzsXfmmxyPzBEBobTvEhmHwq4SxG/5vFr XyiTwlD/fFxnZaTuYdXXdlfBXzkJMzyinnB9bcWe5+gsubutPM0OwB28t2v64rntcaMg +s2A== X-Gm-Message-State: AOAM533n5vetpPObpToeGKVTYLZhP4AewVfK+XDJS9OWJVJ8MZTSHQTw 5hUUAPKGV8rM+LjvTaT6pWy1GArYun8= X-Received: by 2002:a2e:4812:: with SMTP id v18mr9778822lja.353.1591559959612; Sun, 07 Jun 2020 12:59:19 -0700 (PDT) Received: from mail-lj1-f169.google.com (mail-lj1-f169.google.com. [209.85.208.169]) by smtp.gmail.com with ESMTPSA id a1sm3225873ljk.133.2020.06.07.12.59.18 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 07 Jun 2020 12:59:18 -0700 (PDT) Received: by mail-lj1-f169.google.com with SMTP id a25so17877396ljp.3 for ; Sun, 07 Jun 2020 12:59:18 -0700 (PDT) X-Received: by 2002:a2e:8991:: with SMTP id c17mr8444228lji.421.1591559957881; Sun, 07 Jun 2020 12:59:17 -0700 (PDT) MIME-Version: 1.0 References: <1591376548.5816.14.camel@linux.ibm.com> In-Reply-To: <1591376548.5816.14.camel@linux.ibm.com> From: Linus Torvalds Date: Sun, 7 Jun 2020 12:59:01 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] integrity subsystem updates for v5.8 To: Mimi Zohar Cc: linux-integrity , linux-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 5, 2020 at 10:03 AM Mimi Zohar wrote: > > The main changes are extending the TPM 2.0 PCR banks with bank > specific file hashes, calculating the "boot_aggregate" based on other > TPM PCR banks, using the default IMA hash algorithm, instead of SHA1, > as the basis for the cache hash table key, and preventing the mprotect > syscall to circumvent an IMA mmap appraise policy rule. I'm not sure why I didn't notice this during my test builds, but this results in a new warning: WARNING: modpost: vmlinux.o(.text+0x496264): Section mismatch in reference from the function ima_calc_boot_aggregate() to the function .init.text:ima_pcrread() The function ima_calc_boot_aggregate() references the function __init ima_pcrread(). This is often because ima_calc_boot_aggregate lacks a __init annotation or the annotation of ima_pcrread is wrong. and I think the warning is real - and the problem is real, not just a missing annotation. It looks like ima_calc_boot_aggregate() may be called not only at init time (ima_eventdigest_init() is referenced from "struct ima_template_field supported_fields[]", for example) So calling an __init function would be very wrong, because it might be gone by that time. Hmm? Linus