Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2623197rda; Wed, 25 Oct 2023 07:59:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGZlQt8+1CUNmF9KQfY4k1MfzqUXmDV8E41Pb6aXjnFpQEMfkMbiFuvlMT2s8c+is+AW5L5 X-Received: by 2002:a05:6358:c8a:b0:168:dd67:2fe5 with SMTP id o10-20020a0563580c8a00b00168dd672fe5mr8726700rwj.8.1698245981089; Wed, 25 Oct 2023 07:59:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698245981; cv=none; d=google.com; s=arc-20160816; b=NmKd21JNu4Z1bmRYJphhbMWDOpHIo6hHnFR7x/12jEn4+LE9FGQgY+FJVMmsvfQncb x4mv8KIzYlOpMw2l2+psPP9SGM4JX7WWT9PwgiFCgtmcRv1iid5jkb4kF5/J3ymRepgI 5iHWHNU1gPzXBOU9OuZl+UDXF5+szBOMnTyQ7/UK1255S6qNEM7KGL18AddINA/m4OE0 JISGsKyV2cGI7+T9nUh9U5eGoggJCGpw+Vf+i5+/SGXGdIFuStwP3kW6zleE2BA++d4w tPCzLvmFVVNiciH82kfYTYGB+PdtqXH5AaW68bXmmyqBwKgdvGm0pS2ecnT9z5GsRS3B AVRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=iYQ3okT5d3Nr7vbYAmBVtOHd+MxXyv8cMuIfiU00t8Q=; fh=fgxxq+uZ0hFA1FkD0kQ6dmqSF2n2sKdwoHaV8sGKAr0=; b=AK0LqP248iljwdAhaYJRiCiLYBuSR81VyVOwI9v61JRFU7MD2YwD5chl69cTcazcG4 8TqhDevbXkG9WK/Nc1Uwtj5hcuqLQ4AaHhv1CyglB1vAJ5oc+LJM7aQLz5hz50fUuKkG 7dwXDWKPeoG99u3hS85tJHwB180xbHXS5rJ3c3pgElTjTvSbwWS0O1QylSu8AeoPJjOp 9dem3q/Rjv0S4LnSTBMPLEmMTIIVbaVkOVbL/j42husB7iYve/MkWu6ap3h4YKNzwOxv AEqD+lamDYpkcKOGKyEvp/Z2hKfRxVRD/BCWxkoUsrtv5mmf8+BcD6OSwdKd748sTVI8 ZorQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ADGaA0xm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id c18-20020a81df12000000b0058696be138dsi11080296ywn.238.2023.10.25.07.59.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 07:59:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ADGaA0xm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id A213F81489E1; Wed, 25 Oct 2023 07:59:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344016AbjJYO7c (ORCPT + 99 others); Wed, 25 Oct 2023 10:59:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343878AbjJYO7b (ORCPT ); Wed, 25 Oct 2023 10:59:31 -0400 Received: from mail-vk1-xa36.google.com (mail-vk1-xa36.google.com [IPv6:2607:f8b0:4864:20::a36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D80B4B0 for ; Wed, 25 Oct 2023 07:59:28 -0700 (PDT) Received: by mail-vk1-xa36.google.com with SMTP id 71dfb90a1353d-495d687b138so2208768e0c.3 for ; Wed, 25 Oct 2023 07:59:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1698245967; x=1698850767; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=iYQ3okT5d3Nr7vbYAmBVtOHd+MxXyv8cMuIfiU00t8Q=; b=ADGaA0xmleuK1l6FS4+GodnO0Qyh6/xhZt3WB0utPAcFv0AXCjKJAbuqZXj0PUE4WX 8VN49wv5sVU/q8bI2A1e5H2XxuQHN6YmKcv1GIMoB593XxZH7Ji7z2nfZwTqrnwYQA1h hQ7kywC6XQ6VkAlItZXQ0sl1b7Q96tMVIhU7o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698245967; x=1698850767; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iYQ3okT5d3Nr7vbYAmBVtOHd+MxXyv8cMuIfiU00t8Q=; b=wdVsUp7HPED4C0ahzNlBZzAd+5KUD4K5t/54Nu44lDI/meFI1qKoo5BnLumgd9BugW 59OSwbA9Y3Khp9pJG+Ijwwba3LL/vcDU4Wc1x6Y6IL//TwjRQNF7oHbVlD1d2l17MLPR HLPu0J33vE0J1mQShDzKzWZ1jiMUIuW2+59eujAxILsdyg28E6HqQe4zTACDV0awTS9T pVoE3zRrwurAi517ebg9x9YkCNPMhVm/FwvF4+BigGtXITcyhpvt8CS6sJlLl1nUC+Y7 XxmrkQVNo3qF4GPMjBmFZFWM7NPEVR2Qy3q55A75M2FaFE/CBKUu1wAgdTo0//nHw29x SAnA== X-Gm-Message-State: AOJu0Yy4Gv2JUavzaDjPzrEhyGpIXh+TWLlADM78q9Y/XPgRPOQJxced 5wd1lwgPYkDi0oxQu5BcrWAQsjrB37p30aDZD2E= X-Received: by 2002:a1f:f486:0:b0:493:7df9:bcc4 with SMTP id s128-20020a1ff486000000b004937df9bcc4mr10267864vkh.4.1698245967608; Wed, 25 Oct 2023 07:59:27 -0700 (PDT) Received: from mail-vk1-f174.google.com (mail-vk1-f174.google.com. [209.85.221.174]) by smtp.gmail.com with ESMTPSA id p11-20020a1f290b000000b0049aa4300a86sm1173vkp.39.2023.10.25.07.59.27 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 25 Oct 2023 07:59:27 -0700 (PDT) Received: by mail-vk1-f174.google.com with SMTP id 71dfb90a1353d-49d9ef118a5so2214920e0c.1 for ; Wed, 25 Oct 2023 07:59:27 -0700 (PDT) X-Received: by 2002:a67:c190:0:b0:458:8ef9:a27d with SMTP id h16-20020a67c190000000b004588ef9a27dmr12269216vsj.20.1698245966786; Wed, 25 Oct 2023 07:59:26 -0700 (PDT) MIME-Version: 1.0 References: <20231025143906.133218-1-zohar@linux.ibm.com> In-Reply-To: <20231025143906.133218-1-zohar@linux.ibm.com> From: Raul Rangel Date: Wed, 25 Oct 2023 08:59:13 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3] ima: detect changes to the backing overlay file To: Mimi Zohar Cc: linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, Eric Snowberg , Amir Goldstein Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Wed, 25 Oct 2023 07:59:37 -0700 (PDT) On Wed, Oct 25, 2023 at 8:39=E2=80=AFAM Mimi Zohar wr= ote: > + if (!IS_I_VERSION(backing_inode) || > + backing_inode->i_sb->s_dev !=3D iint->real_dev || > + backing_inode->i_ino !=3D iint->real_ino || > + !inode_eq_iversion(backing_inode, iint->version)) { > + iint->flags &=3D ~IMA_DONE_MASK; > + iint->measured_pcrs =3D 0; > + } > + } > + Does this mean I need to mount ext4 with `-o iversion`? Or has it been enabled by default? I can test this patch out sometime this week and verify it fixes the performance regression. Thanks!