linux/fs/ntfs3
Huacai Chen 2fef55d8f7
fs/ntfs3: Update log->page_{mask,bits} if log->page_size changed
If an NTFS file system is mounted to another system with different
PAGE_SIZE from the original system, log->page_size will change in
log_replay(), but log->page_{mask,bits} don't change correspondingly.
This will cause a panic because "u32 bytes = log->page_size - page_off"
will get a negative value in the later read_log_page().

Cc: stable@vger.kernel.org
Fixes: b46acd6a6a ("fs/ntfs3: Add NTFS journal")
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
2024-07-11 12:19:46 +03:00
..
lib fs/ntfs3: Add missing header and guards to lib/ headers 2021-09-13 19:41:44 +03:00
attrib.c fs/ntfs3: Keep runs for $MFT::$ATTR_DATA and $MFT::$ATTR_BITMAP 2024-07-11 12:19:43 +03:00
attrlist.c fs/ntfs3: Use kvfree to free memory allocated by kvmalloc 2024-01-16 11:31:56 +03:00
bitfunc.c fs/ntfs3: Add ntfs_bitmap_weight_le function and refactoring 2022-11-14 19:50:42 +03:00
bitmap.c fs/ntfs3: Missed error return 2024-07-11 12:19:42 +03:00
debug.h fs/ntfs3. Add forward declarations for structs to debug.h 2021-09-13 19:41:43 +03:00
dir.c fs/ntfs3: Redesign legacy ntfs support 2024-07-11 12:19:45 +03:00
file.c fs/ntfs3: Implement simple fileattr 2024-07-11 12:19:45 +03:00
frecord.c fs/ntfs3: Do copy_to_user out of run_lock 2024-07-11 12:19:43 +03:00
fslog.c fs/ntfs3: Update log->page_{mask,bits} if log->page_size changed 2024-07-11 12:19:46 +03:00
fsntfs.c fs/ntfs3: Use macros NTFS_LABEL_MAX_LENGTH instead of hardcoded value 2024-06-07 14:31:06 +03:00
index.c fs/ntfs3: Fix field-spanning write in INDEX_HDR 2024-06-26 15:48:58 +03:00
inode.c fs/ntfs3: Redesign legacy ntfs support 2024-07-11 12:19:45 +03:00
Kconfig ntfs3: serve as alias for the legacy ntfs driver 2024-04-16 10:45:26 +02:00
lznt.c fs/ntfs3: Code formatting 2023-07-03 00:21:27 +04:00
Makefile
namei.c fs/ntfs3: Implement simple fileattr 2024-07-11 12:19:45 +03:00
ntfs_fs.h fs/ntfs3: Implement simple fileattr 2024-07-11 12:19:45 +03:00
ntfs.h fs/ntfs3: Fix field-spanning write in INDEX_HDR 2024-06-26 15:48:58 +03:00
record.c fs/ntfs3: Taking DOS names into account during link counting 2024-04-23 09:34:20 +03:00
run.c fs/ntfs3: Code formatting 2023-07-03 00:21:27 +04:00
super.c fs/ntfs3: Redesign legacy ntfs support 2024-07-11 12:19:45 +03:00
upcase.c fs/ntfs3: Add option "nocase" 2022-09-30 17:39:47 +03:00
xattr.c fs/ntfs3: Minor ntfs_list_ea refactoring 2024-07-11 12:19:44 +03:00