Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2639037rda; Wed, 25 Oct 2023 08:18:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGH4V02SEo9idytTEtqvyVGdT1KFh5HVJnLNt6owsLM9gEbFIkSbWLWj1Qml+26eOl1gir6 X-Received: by 2002:a05:6214:248f:b0:66d:3e2b:bf0a with SMTP id gi15-20020a056214248f00b0066d3e2bbf0amr19282003qvb.20.1698247139533; Wed, 25 Oct 2023 08:18:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698247139; cv=none; d=google.com; s=arc-20160816; b=TfJuVF3KZWF4nKEKeZAhPPz2uv8fNx2QLcOsmRIh1ZzWDG5tz+2a2ZG5eNq60HZJq8 tBKaujGIkOzjdSDwrpbFUwGO/Vqtdy+OAOZ+lKf/TM0CxF9rQjMs5z2iMSyhHYQojwki 87eT2TXd48irnBq7jWm4rBaky1941WRyuAQuwMw7305chFAviA6sT5pF2Opp4ts/sHty /Ui2Lp6ptWYdzhXhL7PxXd1vbGkuLYqvv3C5KWwu1c9DwFlOp9ONCQo2BZ9U5lrrxpwT wRpsZgmzfpiu6WpT48wv2DVPha54B4hLYDaFKz+fwJronykQZ5Q9HNeUVkyUNAxx1taT mjlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=gUtsuZxLHLWPIpod6LwcGm0DrZ+N+DLIO5p2qxopLtU=; fh=gssQNELK1IM7lfaW01QeKMxkHrP9J1lG5YAyKeItwUE=; b=b0BzmGElE5l2RBBmNPb4vQjNCdudbG1thPncrA8aKm7bu8lmAvSXKcDSeXbjZr3fgJ rS0bwBLyXgETsG6SiwhgwDeXM7kDT2wsXsKlEWeV71LO30sUlwLcVWLeh2eCgdzMk6yU ofVpVuUbo+qQs13VgcDxSi1eO2KxrZ+EfwVT23z3YUYsrYBAFU6dYaDU/YXWcAZ9z/wJ ewTJt+wZzZIKIo9sWHujaqRa6n7MuUH7jc550TxLAMmM+CCkUQiZchULrf3Prigr9LEg VexUkx8ci3jZ3ESMZVr7G5h+IwE1O32bbJ8SgL0E8E2egYYz/RJOj1llIVIhrQ7uYLpI wuPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=OlOAnoY+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id mb7-20020a056214550700b0066cfc438827si9042704qvb.570.2023.10.25.08.18.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 08:18:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=OlOAnoY+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 716AF80C6EB1; Wed, 25 Oct 2023 08:18:32 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344214AbjJYPSQ (ORCPT + 99 others); Wed, 25 Oct 2023 11:18:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234261AbjJYPSP (ORCPT ); Wed, 25 Oct 2023 11:18:15 -0400 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF47A128; Wed, 25 Oct 2023 08:18:13 -0700 (PDT) Received: from pps.filterd (m0353723.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39PFI7FS025881; Wed, 25 Oct 2023 15:18:11 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : subject : from : to : cc : date : in-reply-to : references : content-type : mime-version : content-transfer-encoding; s=pp1; bh=gUtsuZxLHLWPIpod6LwcGm0DrZ+N+DLIO5p2qxopLtU=; b=OlOAnoY+yEeQG2FixC8QoKHI7cZOZLDgzA3JTzC82ROxilm19SlWL19xjeqE8pHCU2kp lXsIJXe7ycagcGFwdqpOv21f/vzkJXO1K4PbXr3lrGJMVkFpj6/rNoA57vqbkBEWcLUc B8Ba/nN+0OXl+mUpqVomzLh8WNOjaLLvHGN8nPu4UW9XpJ87tuzav5FYc29Ty/7BmVTh tAfaGHshnEFcRqWe1++dLyMNvJU/P5eXHi7S/CoqxwJ6YNIjAvchKkeqccdxylKrBNxA AnYr6aZnv0XhFCjWFrPVvcVk2jDvdFrQHIDHtPyaHCMbF8lv8SF7J0GXS2RES1qP8Jku yA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3ty5dpr6k8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 25 Oct 2023 15:18:10 +0000 Received: from m0353723.ppops.net (m0353723.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 39PFIApc026160; Wed, 25 Oct 2023 15:18:10 GMT Received: from ppma11.dal12v.mail.ibm.com (db.9e.1632.ip4.static.sl-reverse.com [50.22.158.219]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3ty5dpr66a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 25 Oct 2023 15:18:07 +0000 Received: from pps.filterd (ppma11.dal12v.mail.ibm.com [127.0.0.1]) by ppma11.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 39PEtjMG012362; Wed, 25 Oct 2023 15:09:30 GMT Received: from smtprelay07.wdc07v.mail.ibm.com ([172.16.1.74]) by ppma11.dal12v.mail.ibm.com (PPS) with ESMTPS id 3tvup1xwdn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 25 Oct 2023 15:09:30 +0000 Received: from smtpav03.dal12v.mail.ibm.com (smtpav03.dal12v.mail.ibm.com [10.241.53.102]) by smtprelay07.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 39PF9Trd16712290 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 25 Oct 2023 15:09:30 GMT Received: from smtpav03.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9D24B58064; Wed, 25 Oct 2023 15:09:29 +0000 (GMT) Received: from smtpav03.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 48BE458063; Wed, 25 Oct 2023 15:09:29 +0000 (GMT) Received: from li-f45666cc-3089-11b2-a85c-c57d1a57929f.ibm.com (unknown [9.61.173.216]) by smtpav03.dal12v.mail.ibm.com (Postfix) with ESMTP; Wed, 25 Oct 2023 15:09:28 +0000 (GMT) Message-ID: <145a91c7044c08928646f65850a518febcf5a5ca.camel@linux.ibm.com> Subject: Re: [PATCH v3] ima: detect changes to the backing overlay file From: Mimi Zohar To: Raul Rangel Cc: linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, Eric Snowberg , Amir Goldstein Date: Wed, 25 Oct 2023 11:09:28 -0400 In-Reply-To: References: <20231025143906.133218-1-zohar@linux.ibm.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 (3.28.5-22.el8) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: Zhcxv_qI73tR23OvSpxt9WB7cJpFQTF9 X-Proofpoint-GUID: _V7ikw0RDR4iOjIEoumI6dHHPmlHeX12 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-25_04,2023-10-25_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 malwarescore=0 mlxscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 spamscore=0 mlxlogscore=735 phishscore=0 bulkscore=0 priorityscore=1501 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2310170001 definitions=main-2310250132 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 25 Oct 2023 08:18:32 -0700 (PDT) On Wed, 2023-10-25 at 08:59 -0600, Raul Rangel wrote: > On Wed, Oct 25, 2023 at 8:39 AM Mimi Zohar wrote: > > + if (!IS_I_VERSION(backing_inode) || > > + backing_inode->i_sb->s_dev != iint->real_dev || > > + backing_inode->i_ino != iint->real_ino || > > + !inode_eq_iversion(backing_inode, iint->version)) { > > + iint->flags &= ~IMA_DONE_MASK; > > + iint->measured_pcrs = 0; > > + } > > + } > > + > Does this mean I need to mount ext4 with `-o iversion`? Or has it been > enabled by default? According to commit 1ff20307393e ("ext4: unconditionally enable the i_version counter") it's now enabled by default. > > I can test this patch out sometime this week and verify it fixes the > performance regression. > > Thanks! Much appreciated! -- thanks, Mimi