Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3220007pxj; Mon, 10 May 2021 22:36:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhragQfQFbVxLhxrNto7vE80hNwYSlkL2oNaVYWNU/d3LicvWHIdU4wNYQT5BF8JTYZOiy X-Received: by 2002:a05:6638:120f:: with SMTP id n15mr6711974jas.56.1620711383440; Mon, 10 May 2021 22:36:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620711383; cv=none; d=google.com; s=arc-20160816; b=aeKWlCIWBduDU3nP3xIiqqoIm4y5r5Pr7S3G6TZ/zwdae34zpqRppieWKCXNsiiJRW RrIbK4zR1Xnem0I4CTfttUKKwWx7idjXJen82d5zZFRQ8mxaMAVZiniheoQ0UTfO2dwy M64/M5MF/DwJZB61++cAgWaiA7zafUz2x+eEOngYHB/K75Ticaax8Kk/yCoOg0jLnWaJ IKzZCGq2iA0jXnvJa7061BF0iCncIurVWeak10FnBTo/dZTctH+viNKOTHmHqQiXt5JN g7G/jY/s/WUksDigwxgpGovFi526Ij/R1udfNBeXkvX8m7tDKIzClaQjt3Meb1OlsWGW xQ8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=KHcwI/UqVLWOnQVXqyCpg94GINhlFNsywd9HJ84O9Gs=; b=nGQ4VaqH9GCYbl1uBP2QVL4hmsVubfSRK2x/nz/5fgo+8e0JvleqLc4cLIYV9rFNci ytNl7SvNUW6rEpl2l2kzBeqr8oT4MbJFz+798c2N9CgzrEReJYbreIFWENQ0mLLVcRZJ ya/veYdfvQJWQG7juCUm94+rRpKqbZDXVnZ+9g2pzC3TDr5X3NwSK+1+P7YtJCR0i7xj bTEcNGc0MBiCEd9mE8BSjMI+9Rk6ASjLZiWAY1yfYcosuumBmY5WnlBoy3pE0Cve1xwv k+L7wJ937qbTffB0WxFhd6Pf4Ne3rnFjv12eeub2Pq1d6lARmX1DkN4zoYbF1Y9In/xP eSaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=OL3NnLL9; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k10si17868803iow.62.2021.05.10.22.36.03; Mon, 10 May 2021 22:36:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=OL3NnLL9; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230109AbhEKFhI (ORCPT + 99 others); Tue, 11 May 2021 01:37:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229885AbhEKFhH (ORCPT ); Tue, 11 May 2021 01:37:07 -0400 Received: from mail-qt1-x82f.google.com (mail-qt1-x82f.google.com [IPv6:2607:f8b0:4864:20::82f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF9C6C06175F for ; Mon, 10 May 2021 22:36:00 -0700 (PDT) Received: by mail-qt1-x82f.google.com with SMTP id f8so9636570qth.6 for ; Mon, 10 May 2021 22:36:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KHcwI/UqVLWOnQVXqyCpg94GINhlFNsywd9HJ84O9Gs=; b=OL3NnLL9fmr9EkyQChT32JPI2B7JOaC2v0k5hJp4Zo6/pgT3uFS+QICFMC4d61yxy9 r0VzPe3A5tOmIbJlVEQ+dfxAtM2MFR+IgH9V2B8kj0dqnS8cS5TZQlaEkKAu0Ul5tLF7 4WBZk5pjYo6J4PvgJVLAF9q57rLCQw0kVoOftOJCUVhqr5xDvrD1qBGmWvrXsDcHexO5 7iV31ObZlPyDK0CNQgML+DyGXxSo0qJcuu3hcTL/E6grs43ESDeIegLlT2xybZbYAWdo H8TEy4hf3OoBrXdzsTCrMSjtchZ/Q5V1C3QXTuU1B9NaCTZwKfimjbgfDwo3G444gCZP B0Pg== 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:cc; bh=KHcwI/UqVLWOnQVXqyCpg94GINhlFNsywd9HJ84O9Gs=; b=V+SLdn7trAApXxEvFYr0TCHDlssCV3ZHAu2b6FCeyw5MQko/v7wGWZ2KlBJBFWV1oh er1MkoOIiYclwyXMUiUMBv3nVJa9IQYtr1AIyei6EaNwKff8/BCQMDK5j7C0pERfUSSA B6MDQ4rfy9wnY+12OfvjRGD7wl5gEX3gPRsS1uoQIhyWy4HRex+EVsUO2sFK6JadSvwt zOPWgqcJhGNZvIEcxaC03T0lK2YiPdqo/kKDPTmKwojRNt2F1gwFvJGzsq8uo/DPUhok 6Y4PgjnsLl/trjnBivmYFbFWXbOMoYOsGKvYMF6u0KpqI4bUXLHyGWdrYOqjbIlh3OVB nunw== X-Gm-Message-State: AOAM531gQ/KQKkg35KsgwS7p/b+Y9nXzBm2YqyQYKOnf5h4A3X0EIT9C GIOKGDvm/VndojG1IDfBwt6QOdRwKaGsJotxosOTOA== X-Received: by 2002:aed:2167:: with SMTP id 94mr26322781qtc.378.1620711359716; Mon, 10 May 2021 22:35:59 -0700 (PDT) MIME-Version: 1.0 References: <20210426184201.4177978-1-krisman@collabora.com> <20210426184201.4177978-11-krisman@collabora.com> <87lf9153yy.fsf@collabora.com> In-Reply-To: <87lf9153yy.fsf@collabora.com> From: Khazhy Kumykov Date: Mon, 10 May 2021 22:35:48 -0700 Message-ID: Subject: Re: [PATCH RFC 10/15] fanotify: Introduce code location record To: Gabriel Krisman Bertazi Cc: Amir Goldstein , Theodore Tso , "Darrick J. Wong" , Dave Chinner , Jan Kara , David Howells , linux-fsdevel , Ext4 , kernel@collabora.com Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="000000000000e86c5905c20744c9" Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org --000000000000e86c5905c20744c9 Content-Type: text/plain; charset="UTF-8" On Thu, Apr 29, 2021 at 11:40 AM Gabriel Krisman Bertazi wrote: > > Amir Goldstein writes: > > > On Mon, Apr 26, 2021 at 9:43 PM Gabriel Krisman Bertazi > > wrote: > >> > >> This patch introduces an optional info record that describes the > >> source (as in the region of the source-code where an event was > >> initiated). This record is not produced for other type of existing > >> notification, but it is optionally enabled for FAN_ERROR notifications. > >> > > > > I find this functionality controversial, because think that the fs provided > > s_last_error*, s_first_error* is more reliable and more powerful than this > > functionality. > > > > Let's leave it for a future extending proposal, should fanotify event reporting > > proposal pass muster, shall we? > > Or do you think that without this optional extension fanotify event reporting > > will not be valuable enough? > > I think it is valuable enough without this bit, at least on a first > moment. I understand it would be useful for ext4 to analyse information > through this interface, but the main priority is to have a way to push > out the information that an error occured, as you mentioned. Ack, if it's deemed cleaner we could look at sysfs on notification, but having the information in the same event provides some convenience factor, and avoids racing in the event that we're looking at an error after the first one. > > Also, this might be more powerful if we stick to the ring buffer instead > of single stlot, as it would allow more data to be collected than just > first/last. > > > > Thanks, > > Amir. > > -- > Gabriel Krisman Bertazi --000000000000e86c5905c20744c9 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIPmAYJKoZIhvcNAQcCoIIPiTCCD4UCAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0BBwGg ggzyMIIEtjCCA56gAwIBAgIQeAMYYHb81ngUVR0WyMTzqzANBgkqhkiG9w0BAQsFADBMMSAwHgYD VQQLExdHbG9iYWxTaWduIFJvb3QgQ0EgLSBSMzETMBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UE AxMKR2xvYmFsU2lnbjAeFw0yMDA3MjgwMDAwMDBaFw0yOTAzMTgwMDAwMDBaMFQxCzAJBgNVBAYT AkJFMRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNhMSowKAYDVQQDEyFHbG9iYWxTaWduIEF0bGFz IFIzIFNNSU1FIENBIDIwMjAwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCvLe9xPU9W dpiHLAvX7kFnaFZPuJLey7LYaMO8P/xSngB9IN73mVc7YiLov12Fekdtn5kL8PjmDBEvTYmWsuQS 6VBo3vdlqqXZ0M9eMkjcKqijrmDRleudEoPDzTumwQ18VB/3I+vbN039HIaRQ5x+NHGiPHVfk6Rx c6KAbYceyeqqfuJEcq23vhTdium/Bf5hHqYUhuJwnBQ+dAUcFndUKMJrth6lHeoifkbw2bv81zxJ I9cvIy516+oUekqiSFGfzAqByv41OrgLV4fLGCDH3yRh1tj7EtV3l2TngqtrDLUs5R+sWIItPa/4 AJXB1Q3nGNl2tNjVpcSn0uJ7aFPbAgMBAAGjggGKMIIBhjAOBgNVHQ8BAf8EBAMCAYYwHQYDVR0l BBYwFAYIKwYBBQUHAwIGCCsGAQUFBwMEMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFHzM CmjXouseLHIb0c1dlW+N+/JjMB8GA1UdIwQYMBaAFI/wS3+oLkUkrk1Q+mOai97i3Ru8MHsGCCsG AQUFBwEBBG8wbTAuBggrBgEFBQcwAYYiaHR0cDovL29j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