From: Edward Adam Davis <eadavis@qq.com>
To: syzbot+4c22f022eb39c86b9d19@syzkaller.appspotmail.com
Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] KASAN: slab-use-after-free Read in ntfs_show_options
Date: Sun, 9 Aug 2026 10:56:44 +0800 [thread overview]
Message-ID: <tencent_2FCF9F8D9425910DF3121BDDB3DDA7994407@qq.com> (raw)
In-Reply-To: <6a778cc0.01d0871a.3a0d52.006c.GAE@google.com>
#syz test: upstream master
diff --git a/fs/ntfs3/super.c b/fs/ntfs3/super.c
index 3305fe406cb2..58540491e68b 100644
--- a/fs/ntfs3/super.c
+++ b/fs/ntfs3/super.c
@@ -461,7 +461,7 @@ static int ntfs_fs_reconfigure(struct fs_context *fc)
}
sync_filesystem(sb);
- swap(sbi->options, fc->fs_private);
+ memcpy(sbi->options, fc->fs_private, sizeof(*sbi->options));
return 0;
}
next prev parent reply other threads:[~2026-08-09 2:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-08 20:08 [syzbot] KASAN: slab-use-after-free Read in ntfs_show_options syzbot
2026-08-09 2:56 ` Edward Adam Davis [this message]
2026-08-09 6:02 ` syzbot
2026-08-09 6:07 ` [PATCH] ntfs3: Update only the member values without replacing the opts pointer Edward Adam Davis
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=tencent_2FCF9F8D9425910DF3121BDDB3DDA7994407@qq.com \
--to=eadavis@qq.com \
--cc=linux-kernel@vger.kernel.org \
--cc=syzbot+4c22f022eb39c86b9d19@syzkaller.appspotmail.com \
--cc=syzkaller-bugs@googlegroups.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