linux/fs/hfsplus
Tetsuo Handa d209ebaee9 hfsplus: pretend special inodes as regular files
[ Upstream commit ed8889ca21 ]

Since commit af153bb63a ("vfs: catch invalid modes in may_open()")
requires any inode be one of S_IFDIR/S_IFLNK/S_IFREG/S_IFCHR/S_IFBLK/
S_IFIFO/S_IFSOCK type, use S_IFREG for special inodes.

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>
Reviewed-by: Viacheslav Dubeyko <slava@dubeyko.com>
Signed-off-by: Viacheslav Dubeyko <slava@dubeyko.com>
Link: https://lore.kernel.org/r/d0a07b1b-8b73-4002-8e29-e2bd56871262@I-love.SAKURA.ne.jp
Signed-off-by: Viacheslav Dubeyko <slava@dubeyko.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2026-03-04 07:20:51 -05:00
..
attributes.c hfsplus: fix crash and filesystem corruption when deleting files 2020-04-10 15:36:20 -07:00
bfind.c hfsplus: fix KMSAN uninit-value issue in __hfsplus_ext_cache_extent() 2025-10-29 14:08:52 +01:00
bitmap.c hfsplus: convert kmap() to kmap_local_page() in bitmap.c 2022-09-11 21:55:04 -07:00
bnode.c hfsplus: return error when node already exists in hfs_bnode_create 2026-03-04 07:19:21 -05:00
brec.c hfsplus: fix BUG on bnode parent update 2018-10-31 08:54:13 -07:00
btree.c hfs: validate record offset in hfsplus_bmap_alloc 2025-10-29 14:08:52 +01:00
catalog.c hfsplus: convert to new timestamp accessors 2023-10-18 14:08:22 +02:00
dir.c hfsplus: fix slab-out-of-bounds read in hfsplus_uni2asc() 2026-02-11 13:40:18 +01:00
extents.c hfsplus: remove mutex_lock check in hfsplus_free_extents 2025-08-15 12:13:32 +02:00
hfsplus_fs.h hfsplus: fix slab-out-of-bounds read in hfsplus_uni2asc() 2026-02-11 13:40:18 +01:00
hfsplus_raw.h hfsplus: use struct_group_attr() for memcpy() region 2022-01-20 08:52:54 +02:00
inode.c hfsplus: fix volume corruption issue for generic/498 2026-03-04 07:20:51 -05:00
ioctl.c vfs: rename parent_ino to d_parent_ino and make it use RCU 2024-06-27 18:34:21 +02:00
Kconfig fs: add CONFIG_BUFFER_HEAD 2023-08-02 09:13:09 -06:00
Makefile hfsplus: drop ACL support 2018-08-22 10:52:50 -07:00
options.c hfsplus: fix bug causing custom uid and gid being unable to be assigned with mount 2022-12-11 19:30:20 -08:00
part_tbl.c fs/hfsplus: Use the enum req_op and blk_opf_t types 2022-07-14 12:14:32 -06:00
super.c hfsplus: pretend special inodes as regular files 2026-03-04 07:20:51 -05:00
tables.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
unicode.c hfsplus: fix slab-out-of-bounds read in hfsplus_uni2asc() 2026-02-11 13:40:18 +01:00
wrapper.c hfsplus: don't query the device logical block size multiple times 2024-12-05 14:01:15 +01:00
xattr.c hfsplus: fix slab-out-of-bounds read in hfsplus_uni2asc() 2026-02-11 13:40:18 +01:00
xattr.h hfsplus: move hfsplus_xattr_handlers to .rodata 2023-10-09 16:24:19 +02:00
xattr_security.c fs: port xattr to mnt_idmap 2023-01-19 09:24:28 +01:00
xattr_trusted.c fs: port xattr to mnt_idmap 2023-01-19 09:24:28 +01:00
xattr_user.c fs: port xattr to mnt_idmap 2023-01-19 09:24:28 +01:00