Re: [syzbot] KASAN: slab-use-after-free Read in ntfs_show_options
Edward Adam Davis <[email protected]>
| Newsgroups | gmane.linux.kernel |
|---|---|
| Message-ID | <[email protected]> |
#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; }