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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 58EF3C83F2D for ; Sun, 3 Sep 2023 11:16:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234890AbjICLQL (ORCPT ); Sun, 3 Sep 2023 07:16:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236578AbjICLQK (ORCPT ); Sun, 3 Sep 2023 07:16:10 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD1F9127 for ; Sun, 3 Sep 2023 04:16:06 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-401ec23be82so5904575e9.0 for ; Sun, 03 Sep 2023 04:16:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693739765; x=1694344565; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=MOSMOfJkm95HqZ+oR17svgKVSt1ZRz2Ck1qxs9N8/dk=; b=Adof8gylEYBFB0eFWTIpX1yYI1NjM6coTWlWRvIugsAx7OmfaxjDDN0CD2/AJobECy 70PDZeCP5lX05OGuEciO5M0DXUuJR5+oHfPGWs7VVCgea+WiLiLq5vDYjFBJVcbLVPxS bcctm9dARonOcKd1X2tdc4GF6ZuVWBcnpdweUFnY59zJBdSy7cjHKe5IMb+cd5gifSmp W9dD3eNput0FwnKSM60ZkfJN63qxoZ6+8wCq+LJZqH/7lLzfTd6F6uAEq5Xe7EW8wkmX gTK4rP1tq42bvCFUXfm/5RqHqX6CDpf4jY2GBDP24A8OwDMb+YFiRHJSXUtyko//5GfV YxVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693739765; x=1694344565; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=MOSMOfJkm95HqZ+oR17svgKVSt1ZRz2Ck1qxs9N8/dk=; b=KeMwmPye5cxAgiIdRjT7HMqH5WSYHyka/7QR86aJSVRs3RnOaPv5E+Gm1tiUV4xtV7 UAg5UVhkDdu2rDkRqo8DbN+9K9kWXk5+N4QPSm5P6Nq55vR2hiwd1G4ppe74QBDGbedG QYewtmRXU3skbn9DK9hVx78RplJgB+VM/aUMrGU9tDqwv6iy5ynTDdsscIwksQVRReRw lJQuULmZOx9jQxhYb5rDq2EhODzO3dkzjfuzjj7lGCjI8pZjPkyqXnTcak/D1JRM91V0 k/x/Q7bf782o8Skrdb7toCGONk9Zv8aUXHL2aD1H4i9kG0gjzCDEt22xtUChYYw6r2wh vlmA== X-Gm-Message-State: AOJu0YydRToKy9FXqUfCA102dZzuemfu4rlqzPjGAbOkJLzicjfZbr49 oO+LhIUizw5r8KDCbFt+j9s= X-Google-Smtp-Source: AGHT+IE2id2RYENoL/o5YvIsarDyNaawi+1iHnpkxfbgj9QkZyH0bp50b3hFvC/CwADEqqeevvLFPg== X-Received: by 2002:a05:600c:220b:b0:3fe:5501:d284 with SMTP id z11-20020a05600c220b00b003fe5501d284mr5145081wml.11.1693739765050; Sun, 03 Sep 2023 04:16:05 -0700 (PDT) Received: from amir-ThinkPad-T480.lan ([5.29.249.86]) by smtp.gmail.com with ESMTPSA id 9-20020a05600c228900b003fc080acf68sm13899065wmf.34.2023.09.03.04.16.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Sep 2023 04:16:04 -0700 (PDT) From: Amir Goldstein To: Petr Vorel Cc: Cyril Hrubis , Jan Kara , Christian Brauner , Miklos Szeredi , linux-unionfs@vger.kernel.org, ltp@lists.linux.it Subject: [PATCH 0/3] Tests for fanotify and overlayfs Date: Sun, 3 Sep 2023 14:15:55 +0300 Message-Id: <20230903111558.2603332-1-amir73il@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-unionfs@vger.kernel.org Hi Petr, Kernel 6.5 and upcoming kernel 6.6 have several improvements to the integration of fanotify and overlayfs. Kernel 6.5 includes the fix to generate fanotify events on watched overlayfs underlying filesystem (tst_variant 1). Kernel 6.5 also added support for the new AT_HANDLE_FID flag, which is used in this test. Kernel 6.6 brings overlayfs support for AT_HANDLE_FID and with it better support for watching overlayfs with fanotify (tst_variant 2). tst_variant 2 is duely skipped on kernel 6.5 and tst_variant 1 is skipped on older kernels. Since the overlayfs changes are not in a release kernel yet, and since this is not a new test that can go to staging tests, I will leave it to you to decide how and when you want to merge these new test variants. Thanks, Amir. Amir Goldstein (3): fanotify13: Test watching overlayfs upper fs fanotify13: Test watching overlayfs with FAN_REPORT_FID fanotify13: Test unique overlayfs fsid lib/tst_fs_setup.c | 2 +- testcases/kernel/syscalls/fanotify/fanotify.h | 36 ++++++++- .../kernel/syscalls/fanotify/fanotify13.c | 77 +++++++++++++++++-- 3 files changed, 105 insertions(+), 10 deletions(-) -- 2.34.1 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 Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 78551C83F2C for ; Sun, 3 Sep 2023 11:16:20 +0000 (UTC) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 1E8593CDFD3 for ; Sun, 3 Sep 2023 13:16:18 +0200 (CEST) Received: from in-3.smtp.seeweb.it (in-3.smtp.seeweb.it [217.194.8.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 8120A3CB8FC for ; Sun, 3 Sep 2023 13:16:06 +0200 (CEST) Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-3.smtp.seeweb.it (Postfix) with ESMTPS id DBD4E1A00800 for ; Sun, 3 Sep 2023 13:16:05 +0200 (CEST) Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-401bbfc05fcso5759515e9.3 for ; Sun, 03 Sep 2023 04:16:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693739765; x=1694344565; darn=lists.linux.it; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=MOSMOfJkm95HqZ+oR17svgKVSt1ZRz2Ck1qxs9N8/dk=; b=ANZvUKJZ23+WNcoXhA059v4nONHcOMFtmeSIAuF+Yg3CCvfOb5OljuCY9oIyQ3qNWm K0M1NFNCASAakk8N0xx8pJm7B/T3yoYrFw3LILkmGKxA/sIe+ibvoquoDE+GUEOhzcgi DAHip9IbnpkM1P+G3ckxsCuRrXuFzE7HsWtHEeOlwMOlfyn/gi/weTQLOD74psY1+Bkh fTna9q01v6NDR13FokII+zUHqKFlNFgcb5CmhpTZtI8ZH0F1Cd8Qyin4XjUe48FRia0Q faP9bQ6ya1e+UYeGy5GbYnNt7FQRhRIqmVUrVBkBg67zunFGuoNSHdaV5M1lnEoNxOy3 tnWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693739765; x=1694344565; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=MOSMOfJkm95HqZ+oR17svgKVSt1ZRz2Ck1qxs9N8/dk=; b=ZYyy14x6eA2EC3ON/ExO2ZCge6qWW4GBwT5gv7vaYKibjEWrkCyxVljHDgBfS2dfaT qeYpAJahQqnaAIhUR1L3/7EfNNUYosLDs4/E83L+LxW9sYuA99YKwODztJIesMk1UgxW mPVpF8QSAaG7s+r+pupevqrrYOp6RX0Qm4pGJMQFEGJIfwHmPm/7aZVr30pPXYhnASzJ GQ773cbBd9CZMJANF8Xj0zE13+X0gxfyhqKA/Ol1305rWg9aFoacmLaN9ZYPHLKeL8h9 Z3bpnVx+hURZ4f+H+5zcVqf7F3EHXfjBERUsv/U0bQKMACSjCETcrw6u0i7jWNiPB1FN fjJw== X-Gm-Message-State: AOJu0YwbwprCR14WrZinIgqL32pRwYtv9sb/IW2S6wccPvWa1ybZ4eMJ /DcQSC4H3lZYxS9wWmY0rQI= X-Google-Smtp-Source: AGHT+IE2id2RYENoL/o5YvIsarDyNaawi+1iHnpkxfbgj9QkZyH0bp50b3hFvC/CwADEqqeevvLFPg== X-Received: by 2002:a05:600c:220b:b0:3fe:5501:d284 with SMTP id z11-20020a05600c220b00b003fe5501d284mr5145081wml.11.1693739765050; Sun, 03 Sep 2023 04:16:05 -0700 (PDT) Received: from amir-ThinkPad-T480.lan ([5.29.249.86]) by smtp.gmail.com with ESMTPSA id 9-20020a05600c228900b003fc080acf68sm13899065wmf.34.2023.09.03.04.16.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Sep 2023 04:16:04 -0700 (PDT) From: Amir Goldstein To: Petr Vorel Date: Sun, 3 Sep 2023 14:15:55 +0300 Message-Id: <20230903111558.2603332-1-amir73il@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 1.0.1 at in-3.smtp.seeweb.it X-Virus-Status: Clean Subject: [LTP] [PATCH 0/3] Tests for fanotify and overlayfs X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Christian Brauner , Jan Kara , Miklos Szeredi , linux-unionfs@vger.kernel.org, ltp@lists.linux.it Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-bounces+ltp=archiver.kernel.org@lists.linux.it Sender: "ltp" Hi Petr, Kernel 6.5 and upcoming kernel 6.6 have several improvements to the integration of fanotify and overlayfs. Kernel 6.5 includes the fix to generate fanotify events on watched overlayfs underlying filesystem (tst_variant 1). Kernel 6.5 also added support for the new AT_HANDLE_FID flag, which is used in this test. Kernel 6.6 brings overlayfs support for AT_HANDLE_FID and with it better support for watching overlayfs with fanotify (tst_variant 2). tst_variant 2 is duely skipped on kernel 6.5 and tst_variant 1 is skipped on older kernels. Since the overlayfs changes are not in a release kernel yet, and since this is not a new test that can go to staging tests, I will leave it to you to decide how and when you want to merge these new test variants. Thanks, Amir. Amir Goldstein (3): fanotify13: Test watching overlayfs upper fs fanotify13: Test watching overlayfs with FAN_REPORT_FID fanotify13: Test unique overlayfs fsid lib/tst_fs_setup.c | 2 +- testcases/kernel/syscalls/fanotify/fanotify.h | 36 ++++++++- .../kernel/syscalls/fanotify/fanotify13.c | 77 +++++++++++++++++-- 3 files changed, 105 insertions(+), 10 deletions(-) -- 2.34.1 -- Mailing list info: https://lists.linux.it/listinfo/ltp