linux/fs/hfsplus
Tetsuo Handa 799c492a61 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:19:56 -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:03:10 +01:00
bitmap.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
bnode.c hfsplus: return error when node already exists in hfs_bnode_create 2026-03-04 07:19:20 -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:03:10 +01:00
catalog.c hfsplus: prevent btree data loss on ENOSPC 2018-10-31 08:54:13 -07:00
dir.c hfsplus: fix slab-out-of-bounds read in hfsplus_uni2asc() 2026-02-11 13:35:33 +01:00
extents.c hfsplus: remove mutex_lock check in hfsplus_free_extents 2025-08-28 16:24:05 +02:00
hfsplus_fs.h hfsplus: fix slab-out-of-bounds read in hfsplus_uni2asc() 2026-02-11 13:35:33 +01:00
hfsplus_raw.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
inode.c hfsplus: fix volume corruption issue for generic/498 2026-03-04 07:19:56 -05:00
ioctl.c hfsplus: convert to fileattr 2021-04-12 15:04:29 +02:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02: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 2023-01-12 11:58:46 +01:00
part_tbl.c hfsplus: use bio op accessors 2016-06-07 13:41:38 -06:00
super.c hfsplus: pretend special inodes as regular files 2026-03-04 07:19:56 -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:35:33 +01:00
wrapper.c hfsplus: don't query the device logical block size multiple times 2024-12-14 19:50:43 +01:00
xattr.c hfsplus: fix slab-out-of-bounds read in hfsplus_uni2asc() 2026-02-11 13:35:33 +01:00
xattr.h hfsplus: drop ACL support 2018-08-22 10:52:50 -07:00
xattr_security.c acl: handle idmapped mounts 2021-01-24 14:27:17 +01:00
xattr_trusted.c acl: handle idmapped mounts 2021-01-24 14:27:17 +01:00
xattr_user.c acl: handle idmapped mounts 2021-01-24 14:27:17 +01:00