Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4037626ybl; Mon, 3 Feb 2020 11:18:21 -0800 (PST) X-Google-Smtp-Source: APXvYqz45EarAhX/IzugVm4os3h7tVb+vJTy+PPXExgzWPWeCVHLBErTA2DeEkQV4rPLF8DHQ1cg X-Received: by 2002:a05:6830:2093:: with SMTP id y19mr9384234otq.216.1580757501280; Mon, 03 Feb 2020 11:18:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580757501; cv=none; d=google.com; s=arc-20160816; b=LwZ34nCDn/5uRZPLWekxS+wKi9qhQXmxSHQjhAYf5p2BAng1Cmaw6FnGEz03F+IhfN +BRcEQzvuNzEv7mKFuim4rg/qyj+dhnxEUeUh0KfucyupVAJipL9TWvYQtemwWTnMWIY aE7yCVXekLy302qQEFQyuZWvFHC88Li/bHGxxTqmYvQeso+HQbDopH6m+xFmbUnUneqw lEsZBeuGlw2g7vRW9mTkHBy7hyF3/LFNH1NuPfl+HGz1yvAlpslaLSrIqjy3kiqb0gWy FAKgo1ERFHSzu76chtTUzTx6dFcxI/CEYIMVgHRDtVz3cf1O/YJTuGHdeVbKEM4JvjyM Tnjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=ie8CpiNgWDcburcuPjt9H+F+5SRbzWgUOwncPrTzNjY=; b=V4QAh8YbYNbMqgq2tQk2hXwFaRyLVrC17DxUfEzaxI/4pZmeXHb+vC+QcjsypqRooN 26ZHut+bb6xmfed3TUnPV1j+U65NKDTVTG/uQuJAN3NKDegRPO8wdLTnT/tZ0N3SqeKm jct28LW2RQHrOKpvH8lUkrilpzSx98Tnd8eDf+qe8jIaY+A5vwnZDdjLXvOYTzWxblY1 ZHDpHQt5cxE2Iqk85SuaJw1GF6nmiDBUk/B1sdFy7dNXUM42G4d66tWiNnHZRjA9zRB6 vhbFZ3k0qVaTACHpdNVNO8BB8UHrHfZXs6qwlvFE7DDkKLlrNcNOaaTwrI9zPWQEUI9y XfCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=VaUcSm01; 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 f16si8441032oib.269.2020.02.03.11.18.08; Mon, 03 Feb 2020 11:18:21 -0800 (PST) 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; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=VaUcSm01; 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 S1729867AbgBCSz0 (ORCPT + 99 others); Mon, 3 Feb 2020 13:55:26 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:37683 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727275AbgBCSzZ (ORCPT ); Mon, 3 Feb 2020 13:55:25 -0500 Received: by mail-wm1-f67.google.com with SMTP id f129so549258wmf.2 for ; Mon, 03 Feb 2020 10:55:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=ie8CpiNgWDcburcuPjt9H+F+5SRbzWgUOwncPrTzNjY=; b=VaUcSm01GK2R+CNaS7gDPrQciZt9PkQZViXyJJN1yKtmv5CEpy6eHLWR7NHgUXiP+w NGdJdKcjqITXZ6FgRLg/5ib+Sf7Fzhrg+IZjXvecsrs29ShnFPdpitU2qpYIcs6TnE7m coHz6yHHPGGVS3TQrMNKlpHbYs14wOtYBtq2Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ie8CpiNgWDcburcuPjt9H+F+5SRbzWgUOwncPrTzNjY=; b=V0lA2WtvpLvEZgig7CXvMhLLDCIAmRxpJ/pVcvApfaQzOA4sL84dIlrYBy55GLROSI zG+Nou6teoAE8WIWa1haNKSWsuqCrOpyuvKmXr/ti8Pw9yzYcfLadE2AYU7pUf9ZucLR h6LzoT+7J2LfFWJr/6AO9VmvXEumjQZBbRxXgULIGbfDH/gDce15YA88m9J2HvAb/ZXs rc5DUdSmmxlMYB86beRYnjrjUzX4macuzjPiJ0zNbhpTzZaFXP0w7MZohMY8gDS25ZuH lDOFqX/Du1anMD7sM5eEtZp9yqoDXRaOwEPQ7Cjko37sOOFgxgU7rM1CRGqe/JRoNDnP QOEg== X-Gm-Message-State: APjAAAWdRXlTe8SkHEJwp5lPODqHl+DKZ4721SGMPPOGF09AFfHjmi+g au7GRKDDYa9oKSJrDea+XdHM3I1nsaanEQ== X-Received: by 2002:a1c:7717:: with SMTP id t23mr461827wmi.17.1580756124265; Mon, 03 Feb 2020 10:55:24 -0800 (PST) Received: from [172.16.13.174] (host81-133-38-158.in-addr.btopenworld.com. [81.133.38.158]) by smtp.gmail.com with ESMTPSA id h10sm24728152wre.3.2020.02.03.10.55.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 03 Feb 2020 10:55:23 -0800 (PST) Subject: Re: [PATCH] security/integrity: Include __func__ in messages for easier debug To: Mimi Zohar , Joe Perches , jmorris@namei.org, serge@hallyn.com, mpe@ellerman.id.au, erichte@linux.ibm.com, nayna@linux.ibm.com, yuehaibing@huawei.com Cc: linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, Shuah Khan References: <20200130020129.15328-1-skhan@linuxfoundation.org> <1580736077.5585.4.camel@linux.ibm.com> From: Shuah Khan Message-ID: <475ab05c-300b-fdbe-5de0-6fce8d1a360d@linuxfoundation.org> Date: Mon, 3 Feb 2020 11:55:22 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <1580736077.5585.4.camel@linux.ibm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/3/20 6:21 AM, Mimi Zohar wrote: > On Wed, 2020-01-29 at 19:08 -0800, Joe Perches wrote: >> On Wed, 2020-01-29 at 19:01 -0700, Shuah Khan wrote: >>> Change messages to messages to make it easier to debug. The following >>> error message isn't informative enough to figure out what failed. >>> Change messages to include function information. >>> >>> Signed-off-by: Shuah Khan >>> --- >>> .../integrity/platform_certs/load_powerpc.c | 14 ++++++++------ >>> security/integrity/platform_certs/load_uefi.c | 17 ++++++++++------- >>> 2 files changed, 18 insertions(+), 13 deletions(-) >>> >>> diff --git a/security/integrity/platform_certs/load_powerpc.c b/security/integrity/platform_certs/load_powerpc.c >> >> perhaps instead add #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt >> so all the pr_ logging is more specific. >> >> This would prefix all pr_ output with "integrity: " > Joe! Sorry for the delay in getting back to you. > Agreed.  Joe, could you post a patch with a proper patch description > for this? > I have been looking into this a bit more and there is an opportunity here to add #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt to integrity.h and get rid of duplicate defines. thanks, -- Shuah