Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2047BC636CC for ; Mon, 30 Jan 2023 06:07:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235753AbjA3GHI (ORCPT ); Mon, 30 Jan 2023 01:07:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229578AbjA3GHE (ORCPT ); Mon, 30 Jan 2023 01:07:04 -0500 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B74916338; Sun, 29 Jan 2023 22:07:02 -0800 (PST) Received: from dggpeml500023.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4P4yM56SQQzRr4V; Mon, 30 Jan 2023 14:04:49 +0800 (CST) Received: from [10.67.110.112] (10.67.110.112) by dggpeml500023.china.huawei.com (7.185.36.114) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Mon, 30 Jan 2023 14:06:59 +0800 Message-ID: Date: Mon, 30 Jan 2023 12:02:44 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Subject: Re: [PATCH -next] evm: call dump_security_xattr() in all cases to remove code duplication To: Mimi Zohar , , , , CC: , , References: <20230129004637.191106-1-xiujianfeng@huawei.com> Content-Language: en-US From: xiujianfeng In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.110.112] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpeml500023.china.huawei.com (7.185.36.114) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 2023/1/30 0:15, Mimi Zohar wrote: >> @@ -254,15 +264,9 @@ static int evm_calc_hmac_or_hash(struct dentry *dentry, >> if (is_ima) >> ima_present = true; >> >> - if (req_xattr_value_len < 64) >> - pr_debug("%s: (%zu) [%*phN]\n", req_xattr_name, >> - req_xattr_value_len, >> - (int)req_xattr_value_len, >> - req_xattr_value); >> - else >> - dump_security_xattr(req_xattr_name, >> - req_xattr_value, >> - req_xattr_value_len); >> + dump_security_xattr(req_xattr_name, >> + req_xattr_value, >> + req_xattr_value_len); >> continue; >> } >> size = vfs_getxattr_alloc(&nop_mnt_idmap, dentry, xattr->name, > > Hm, this patch doesn't apply properly. I noticed that the patch fails to apply on linux master, however this patch is meant for linux-next, would you please maybe have a look? > > Mimi> >