From: Daehyeon Ko <4ncienth@gmail.com>
To: Amir Goldstein <amir73il@gmail.com>
Cc: Jan Kara <jack@suse.cz>, Miklos Szeredi <mszeredi@redhat.com>,
linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [BUG] fanotify: destroy/add race leaves a mark on a detached connector
Date: Wed, 2 Sep 2026 16:03:58 +0900 [thread overview]
Message-ID: <20260902070359.4163607-1-4ncienth@gmail.com> (raw)
In-Reply-To: <CAOQ4uxjbEY12XMmfCXTPTpASmECCXcGBQR+bS93k=4vgqzFDZA@mail.gmail.com>
Hi Amir,
I tested the exact attached patch (SHA-256
9fa187507909ae14c8de8a117e775122e3daa425c69081b7115b3dc979fca14d)
on Linux v7.2, commit 8d3ae59288f1, with an x86_64 KASAN kernel.
The capless prerequisite probe passed as UID/GID 65534 with CapEff=0 and
NoNewPrivs=1. I then ran the original reproducer command
fanotify_destroy_add_race 10000 1 1024 256
in three fresh 2-vCPU boots. All three runs completed 10,000 iterations with
10,000 successful adds, zero add errors, and 10,000 fdinfo reads. The complete
serial logs contain no fsnotify_conn_mask() warning, other kernel warning,
KASAN report, Oops, panic, or kernel BUG, and both guest and host exited 0.
This tests the originally reported race reproducer. I did not yet test the
new permission/pre-content, duplicate FAN_DELETE_SELF, open_by_handle_at(), or
NFS/export-filesystem semantics discussed later in the thread.
Tested-by: Daehyeon Ko <4ncienth@gmail.com>
Thanks,
Daehyeon
next prev parent reply other threads:[~2026-09-02 7:04 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-27 4:50 Daehyeon Ko
2026-08-27 12:45 ` Amir Goldstein
2026-08-27 16:30 ` Jan Kara
2026-08-28 4:24 ` Daehyeon Ko
2026-08-28 9:05 ` Jan Kara
2026-08-28 10:18 ` Amir Goldstein
2026-08-28 17:36 ` Jan Kara
2026-08-29 15:04 ` Amir Goldstein
2026-08-31 11:39 ` Jan Kara
2026-08-31 14:54 ` Amir Goldstein
2026-09-01 16:57 ` Jan Kara
2026-09-01 21:53 ` Amir Goldstein
2026-09-02 7:03 ` Daehyeon Ko [this message]
2026-09-02 7:58 ` Amir Goldstein
2026-09-02 21:50 ` Daehyeon Ko
2026-09-03 13:07 ` Amir Goldstein
2026-09-02 16:52 ` Jan Kara
2026-09-02 17:08 ` Amir Goldstein
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260902070359.4163607-1-4ncienth@gmail.com \
--to=4ncienth@gmail.com \
--cc=amir73il@gmail.com \
--cc=jack@suse.cz \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mszeredi@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®