[PATCH] exfat: check for utf8 option change in exfat_reconfigure

Pedro Demarchi Gomes posted 1 patch 6 days, 7 hours ago
fs/exfat/super.c | 1 +
1 file changed, 1 insertion(+)
[PATCH] exfat: check for utf8 option change in exfat_reconfigure
Posted by Pedro Demarchi Gomes 6 days, 7 hours ago
Check for utf8 option change since it depends on iocharset

Reported-by: syzbot+3e9cb93e3c5f90d28e19@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=3e9cb93e3c5f90d28e19
Signed-off-by: Pedro Demarchi Gomes <pedrodemargomes@gmail.com>
---
 fs/exfat/super.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fs/exfat/super.c b/fs/exfat/super.c
index e1cffa46eb73..500eb9c20657 100644
--- a/fs/exfat/super.c
+++ b/fs/exfat/super.c
@@ -762,6 +762,7 @@ static int exfat_reconfigure(struct fs_context *fc)
 	 * inodes or dentries, they cannot be modified dynamically.
 	 */
 	if (strcmp(new_opts->iocharset, cur_opts->iocharset) ||
+	    new_opts->utf8 != cur_opts->utf8 ||
 	    new_opts->keep_last_dots != cur_opts->keep_last_dots ||
 	    new_opts->sys_tz != cur_opts->sys_tz ||
 	    new_opts->time_offset != cur_opts->time_offset ||
-- 
2.43.0