linux-yocto/fs/hfsplus
Tetsuo Handa 1bb8da27ff hfsplus: don't use BUG_ON() in hfsplus_create_attributes_file()
[ Upstream commit c7c6363ca1 ]

When the volume header contains erroneous values that do not reflect
the actual state of the filesystem, hfsplus_fill_super() assumes that
the attributes file is not yet created, which later results in hitting
BUG_ON() when hfsplus_create_attributes_file() is called. Replace this
BUG_ON() with -EIO error with a message to suggest running fsck tool.

Reported-by: syzbot <syzbot+1107451c16b9eb9d29e6@syzkaller.appspotmail.com>
Closes: https://syzkaller.appspot.com/bug?extid=1107451c16b9eb9d29e6
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Reviewed-by: Viacheslav Dubeyko <slava@dubeyko.com>
Link: https://lore.kernel.org/r/7b587d24-c8a1-4413-9b9a-00a33fbd849f@I-love.SAKURA.ne.jp
Signed-off-by: Viacheslav Dubeyko <slava@dubeyko.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-08-20 18:30:19 +02:00
..
attributes.c
bfind.c hfsplus: fix to avoid false alarm of circular locking 2024-06-21 11:41:04 +02:00
bitmap.c
bnode.c hfsplus: fix slab-out-of-bounds in hfsplus_bnode_read() 2025-08-20 18:30:18 +02:00
brec.c
btree.c
catalog.c hfsplus: convert to new timestamp accessors 2023-10-18 14:08:22 +02:00
dir.c hfsplus: convert to ctime accessor functions 2023-07-24 10:30:00 +02:00
extents.c hfsplus: remove mutex_lock check in hfsplus_free_extents 2025-08-15 12:13:32 +02:00
hfsplus_fs.h hfsplus: don't query the device logical block size multiple times 2024-12-05 14:01:15 +01:00
hfsplus_raw.h
inode.c hfsplus: make splice write available again 2025-08-15 12:13:32 +02: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
options.c
part_tbl.c
super.c hfsplus: switch to rcu-delayed unloading of nls and freeing ->s_fs_info 2024-02-25 02:10:31 -05:00
tables.c
unicode.c hfsplus: fix slab-out-of-bounds read in hfsplus_uni2asc() 2025-08-20 18:30:19 +02:00
wrapper.c hfsplus: don't query the device logical block size multiple times 2024-12-05 14:01:15 +01:00
xattr_security.c
xattr_trusted.c
xattr_user.c
xattr.c hfsplus: don't use BUG_ON() in hfsplus_create_attributes_file() 2025-08-20 18:30:19 +02:00
xattr.h hfsplus: move hfsplus_xattr_handlers to .rodata 2023-10-09 16:24:19 +02:00