linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Namjae Jeon <linkinjeon@kernel.org>
To: "Yuezhang.Mo@sony.com" <Yuezhang.Mo@sony.com>
Cc: Sang-Heon Jeon <ekffu200098@gmail.com>,
	 "sj1557.seo@samsung.com" <sj1557.seo@samsung.com>,
	 "linux-fsdevel@vger.kernel.org" <linux-fsdevel@vger.kernel.org>,
	 "syzbot+3e9cb93e3c5f90d28e19@syzkaller.appspotmail.com"
	<syzbot+3e9cb93e3c5f90d28e19@syzkaller.appspotmail.com>
Subject: Re: [PATCH v2] exfat: combine iocharset and utf8 option setup
Date: Sun, 28 Sep 2025 18:27:28 +0900	[thread overview]
Message-ID: <CAKYAXd-d1V4-umsqShGHSXqCCnRVFEYXDs95Ym_U2jkbNVJy5Q@mail.gmail.com> (raw)
In-Reply-To: <PUZPR04MB631693629BCE735F5C5BBDC48118A@PUZPR04MB6316.apcprd04.prod.outlook.com>

On Sun, Sep 28, 2025 at 11:04 AM Yuezhang.Mo@sony.com
<Yuezhang.Mo@sony.com> wrote:
>
> On Sat, 27 Sep 2025 00:35:22 +0900 Sang-Heon Jeon <ekffu200098@gmail.com> wrote:
> > Currently, exfat utf8 mount option depends on the iocharset option
> > value. After exfat remount, utf8 option may become inconsistent with
> > iocharset option.
> >
> > If the options are inconsistent; (specifically, iocharset=utf8 but
> > utf8=0) readdir may reference uninitalized NLS, leading to a null
> > pointer dereference.
> >
> > Extract and combine utf8/iocharset setup logic into exfat_set_iocharset().
> > Then Replace iocharset setup logic to exfat_set_iocharset to prevent
> > utf8/iocharset option inconsistentcy after remount.
> >
> > Reported-by: syzbot+3e9cb93e3c5f90d28e19@syzkaller.appspotmail.com
> > Closes: https://syzkaller.appspot.com/bug?extid=3e9cb93e3c5f90d28e19
> > Signed-off-by: Sang-Heon Jeon <ekffu200098@gmail.com>
> > Fixes: acab02ffcd6b ("exfat: support modifying mount options via remount")
> > Tested-by: syzbot+3e9cb93e3c5f90d28e19@syzkaller.appspotmail.com
> > ---
> > Changes from v1 [1]
> > - extract utf8/iocharset setup logic to tiny function
> > - apply utf8/iocharset setup to exfat_init_fs_context()
> >
> > [1] https://lore.kernel.org/all/20250925184040.692919-1-ekffu200098@gmail.com/
>
> Looks good to me.
> Reviewed-by: Yuezhang Mo <Yuezhang.Mo@sony.com>
Applied it to #dev.
Thanks!

      reply	other threads:[~2025-09-28  9:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-26 15:35 [PATCH v2] exfat: combine iocharset and utf8 option setup Sang-Heon Jeon
2025-09-28  2:04 ` Yuezhang.Mo
2025-09-28  9:27   ` Namjae Jeon [this message]

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=CAKYAXd-d1V4-umsqShGHSXqCCnRVFEYXDs95Ym_U2jkbNVJy5Q@mail.gmail.com \
    --to=linkinjeon@kernel.org \
    --cc=Yuezhang.Mo@sony.com \
    --cc=ekffu200098@gmail.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=sj1557.seo@samsung.com \
    --cc=syzbot+3e9cb93e3c5f90d28e19@syzkaller.appspotmail.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;
as well as URLs for NNTP newsgroup(s).