android_kernel_motorola_sm6375/fs/hfsplus
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Tetsuo Handa bb0eea8e37 hfsplus: don't use BUG_ON() in hfsplus_create_attributes_file()
[ Upstream commit c7c6363ca186747ebc2df10c8a1a51e66e0e32d9 ]

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 <[email protected]>
Closes: https://syzkaller.appspot.com/bug?extid=1107451c16b9eb9d29e6
Signed-off-by: Tetsuo Handa <[email protected]>
Reviewed-by: Viacheslav Dubeyko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Viacheslav Dubeyko <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
2025-08-28 16:21:24 +02:00
..
attributes.c
bfind.c hfsplus: fix to avoid false alarm of circular locking 2024-08-19 05:33:25 +02:00
bitmap.c
bnode.c hfsplus: fix slab-out-of-bounds in hfsplus_bnode_read() 2025-08-28 16:21:24 +02:00
brec.c
btree.c
catalog.c
dir.c
extents.c hfsplus: remove mutex_lock check in hfsplus_free_extents 2025-08-28 16:21:18 +02:00
hfsplus_fs.h hfsplus: don't query the device logical block size multiple times 2024-12-14 19:44:22 +01:00
hfsplus_raw.h
inode.c fs: hfsplus: remove WARN_ON() from hfsplus_cat_{read,write}_inode() 2023-05-30 12:44:02 +01:00
ioctl.c
Kconfig
Makefile
options.c
part_tbl.c
super.c fs: hfsplus: fix UAF issue in hfsplus_put_super 2023-03-11 16:43:59 +01:00
tables.c
unicode.c hfsplus: fix slab-out-of-bounds read in hfsplus_uni2asc() 2025-08-28 16:21:24 +02:00
wrapper.c hfsplus: don't query the device logical block size multiple times 2024-12-14 19:44:22 +01:00
xattr.c hfsplus: don't use BUG_ON() in hfsplus_create_attributes_file() 2025-08-28 16:21:24 +02:00
xattr.h
xattr_security.c
xattr_trusted.c
xattr_user.c