Re: [syzbot] KASAN: slab-use-after-free Read in ntfs_show_options
From: Edward Adam Davis
Date: Sat Aug 08 2026 - 22:56:58 EST
#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;
}