public inbox for linux-fsdevel@vger.kernel.org
 help / color / mirror / Atom feed
From: Sungjong Seo <sjdev.seo@gmail.com>
To: Namjae Jeon <linkinjeon@kernel.org>, Al Viro <viro@zeniv.linux.org.uk>
Cc: linux-fsdevel@vger.kernel.org
Subject: Re: [RFC] weird stuff in exfat_lookup()
Date: Sat, 1 Mar 2025 01:03:23 +0900	[thread overview]
Message-ID: <394ca686-a45a-e71c-bc45-33794463b5fc@samsung.com> (raw)
In-Reply-To: <CAKYAXd_-v601SX44WZ970LyZjsCH3L3HFjJXxZH960r1PXo+Bw@mail.gmail.com>

Hello? This is Sungjong. Currently, I am unable to reply using my
samsung.com email, so I am responding with my other Gmail account.

On 2/28/25 14:44, Namjae Jeon wrote:
> On Fri, Feb 28, 2025 at 7:48 AM Al Viro <viro@zeniv.linux.org.uk> wrote:
>>
>>         There's a really odd comment in that thing:
>>                 /*
>>                  * Unhashed alias is able to exist because of revalidate()
>>                  * called by lookup_fast. You can easily make this status
>>                  * by calling create and lookup concurrently
>>                  * In such case, we reuse an alias instead of new dentry
>>                  */
>> and AFAICS it had been there since the original merge.  What I don't
>> understand is how the hell could revalidate result in that -
>> exfat_d_revalidate() always returns 1 on any positive dentry and alias is
>> obviously positive (it has the same inode as the one we are about to use).
>>
>> It mentions a way to reproduce that, but I don't understand what does
>> that refer to; could you give details?
> We need to find out the history of it.
> Sungjong, Could you please check the history of how this code came in?
I believe this code is intended to address issues that could arise from
the stacked FS nested mount structure used in older versions of Android,
which are unlikely to occur in the general Linux VFS. However, I will
need to look into the modification history to confirm this, and it might
take some time.

Additionally, there is unnecessary code remaining in `exfat_lookup`.
This is because linux-exfat is based on Samsung's fat/exfat integrated
implementation, sdfat. We need to address these legacy issues one by one.

Thank you.
> 
> Thanks.
> 

  reply	other threads:[~2025-02-28 16:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-27 22:48 [RFC] weird stuff in exfat_lookup() Al Viro
2025-02-28  5:44 ` Namjae Jeon
2025-02-28 16:03   ` Sungjong Seo [this message]
2025-03-13 12:39     ` Sungjong Seo
2026-04-03 19:54       ` Al Viro
2026-04-03 20:02         ` Al Viro

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=394ca686-a45a-e71c-bc45-33794463b5fc@samsung.com \
    --to=sjdev.seo@gmail.com \
    --cc=linkinjeon@kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=sj1557.seo@samsung.com \
    --cc=viro@zeniv.linux.org.uk \
    /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