linux/fs/minix
Tetsuo Handa 446a54d357 minixfs: Verify inode mode when loading from disk
[ Upstream commit 7386197093 ]

The inode mode loaded from corrupted disk can be invalid. Do like what
commit 0a9e740513 ("isofs: Verify inode mode when loading from disk")
does.

Reported-by: syzbot <syzbot+895c23f6917da440ed0d@syzkaller.appspotmail.com>
Closes: https://syzkaller.appspot.com/bug?extid=895c23f6917da440ed0d
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Link: https://lore.kernel.org/ec982681-84b8-4624-94fa-8af15b77cbd2@I-love.SAKURA.ne.jp
Signed-off-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-10-19 16:34:05 +02:00
..
bitmap.c minix: convert to new timestamp accessors 2023-10-18 14:08:23 +02:00
dir.c buffer: Convert block_write_end() to take a folio 2024-08-07 11:31:59 +02:00
file.c splice: Use filemap_splice_read() instead of generic_file_splice_read() 2023-05-24 08:42:17 -06:00
inode.c minixfs: Verify inode mode when loading from disk 2025-10-19 16:34:05 +02:00
itree_common.c minix: convert to new timestamp accessors 2023-10-18 14:08:23 +02:00
itree_v1.c fs/minix: remove expected error message in block_to_path() 2020-08-12 10:58:00 -07:00
itree_v2.c fs/minix: remove expected error message in block_to_path() 2020-08-12 10:58:00 -07:00
Kconfig fs: add CONFIG_BUFFER_HEAD 2023-08-02 09:13:09 -06:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
minix.h minixfs: Convert minix_prepare_chunk() to take a folio 2024-08-07 11:31:57 +02:00
namei.c minixfs: Convert minix_delete_entry() to work on a folio 2024-08-07 11:31:57 +02:00