From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2BE58C49ED6 for ; Tue, 10 Sep 2019 07:05:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id ED902216F4 for ; Tue, 10 Sep 2019 07:05:07 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="lAi7DV+B" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732198AbfIJHFH (ORCPT ); Tue, 10 Sep 2019 03:05:07 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:39982 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726141AbfIJHFG (ORCPT ); Tue, 10 Sep 2019 03:05:06 -0400 Received: by mail-lf1-f68.google.com with SMTP id w18so646011lfk.7; Tue, 10 Sep 2019 00:05:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=DozwmUHwj3k2SEoSTTzpSe/D0hTydvpHRMjDyd8vPuA=; b=lAi7DV+BNuqvg25v5XsQCJO5S8QiXZvZkSuoSs2U68BKHCzQM0o9qMWIdQqkSXCk3g dEh04utjhe4CEOk9udh1fJlL/L395nobKw6BYunahGbX5dUKH9U6alypvLCdFo7gJ2wM g9akrlRq4pGN8otw8b2NbJa1n6JVNnMdPG2JnqGhdS2nMR6an/B/ZjzEqMNk09hneAQ/ PXhj3enJtyWalEuVEq/GQQgOetj6SfQBY+LUKP6oxeubFlSeFZpxBDxogBodwgRauln8 y/TruqX2F/KIe1S6gxjsQ8HSOJ6Sqa8PP1hcZmoLvM2iBHXfS6+xaOs/IFIeCk2zq68p jxMQ== 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; bh=DozwmUHwj3k2SEoSTTzpSe/D0hTydvpHRMjDyd8vPuA=; b=ZBpVOIXocGyKFAR65epjIP1sC0f/0rHaoVSn346rWn64Xbv2glyRQoL6qIgZ8G8X7I W6gok/Tzvwi8BDMwBMcULLwbA4Jpyex8A1PQuU8Eawq0FfdFgXGBwsv1L+TQmvebaQwR c9GJ+Qj0dFC/8pZ1nqwiFJ1kXpHkeOJyvAU2HnqqG5HU8RMWtlRfxcb7OGUDPpQVmm0m d4OHeJeTSneNpxK+niRptVlgdh3CaqULtam1pT9tpr9BrFWfRR1aXAn7ybmZ0rGMhTob Viev/RBbmZ7V3shvue2YpGFsTYVFzbJ+PoIUCs5HIiL6P7ahZwZzXZoTD5r1z9aCfnee mByA== X-Gm-Message-State: APjAAAV3R9Qt8xt2zYNVsWNJ7G55uqjioCxjLGjsxqm+ekaof3HjThWW mIJ0bqDoDgDZBN7sUFrFRHR4qIeJbiwCp9ctKV0= X-Google-Smtp-Source: APXvYqyca1SH9H5DaRx8OiIKHA6rL3hTD1AqM+2vgGminaPlWP06PPODcpw0VTaopULzgbXjfkmUz2/0N+cTcywUsIc= X-Received: by 2002:a19:ac0c:: with SMTP id g12mr19380686lfc.128.1568099104597; Tue, 10 Sep 2019 00:05:04 -0700 (PDT) MIME-Version: 1.0 References: <20190902094540.12786-1-janne.karhunen@gmail.com> <20190909213938.GA105935@gmail.com> In-Reply-To: <20190909213938.GA105935@gmail.com> From: Janne Karhunen Date: Tue, 10 Sep 2019 10:04:53 +0300 Message-ID: Subject: Re: [PATCH 1/3] ima: keep the integrity state of open files up to date To: Janne Karhunen , linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, Mimi Zohar , linux-mm@kvack.org, viro@zeniv.linux.org.uk, Konsta Karsisto Content-Type: text/plain; charset="UTF-8" Sender: owner-linux-security-module@vger.kernel.org Precedence: bulk List-ID: On Tue, Sep 10, 2019 at 12:39 AM Eric Biggers wrote: > > Core file operations (open, close, sync, msync, truncate) are > > now allowed to update the measurement immediately. In order > > to maintain sufficient write performance for writes, add a > > latency tunable delayed work workqueue for computing the > > measurements. > > This still doesn't make it crash-safe. So why is it okay? If Android is the load, this makes it crash safe 99% of the time and that is considerably better than 0% of the time. That said, we have now a patch draft forming up that pushes the update to the ext4 journal. With this patch on top we should reach the magical 100% given data=journal mount. One step at a time. -- Janne