OpenCloudOS-Kernel/fs/erofs
Gao Xiang 0c9b52bfee erofs: fix incorrect symlink detection in fast symlink
[ Upstream commit 9ed50b8231e37b1ae863f5dec8153b98d9f389b4 ]

Fast symlink can be used if the on-disk symlink data is stored
in the same block as the on-disk inode, so we don’t need to trigger
another I/O for symlink data.  However, currently fs correction could be
reported _incorrectly_ if inode xattrs are too large.

In fact, these should be valid images although they cannot be handled as
fast symlinks.

Many thanks to Colin for reporting this!

Reported-by: Colin Walters <walters@verbum.org>
Reported-by: https://honggfuzz.dev/
Link: https://lore.kernel.org/r/bb2dd430-7de0-47da-ae5b-82ab2dd4d945@app.fastmail.com
Fixes: 431339ba90 ("staging: erofs: add inode operations")
[ Note that it's a runtime misbehavior instead of a security issue. ]
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Link: https://lore.kernel.org/r/20240909031911.1174718-1-hsiangkao@linux.alibaba.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-10-04 16:29:00 +02:00
..
Kconfig erofs: boost negative xattr lookup with bloom filter 2023-08-11 12:11:44 +08:00
Makefile erofs: DEFLATE compression support 2023-08-11 12:11:17 +08:00
compress.h erofs: simplify compression configuration parser 2024-01-25 15:35:57 -08:00
data.c erofs: fix NULL dereference of dif->bdev_handle in fscache mode 2024-07-05 09:34:05 +02:00
decompressor.c erofs: avoid debugging output for (de)compressed data 2024-08-19 06:04:26 +02:00
decompressor_deflate.c erofs: avoid allocating DEFLATE streams before mounting 2024-06-16 13:47:31 +02:00
decompressor_lzma.c erofs: simplify compression configuration parser 2024-01-25 15:35:57 -08:00
dir.c erofs: keep meta inode into erofs_buf 2023-04-17 01:15:50 +08:00
erofs_fs.h erofs: update on-disk format for xattr name filter 2023-08-11 12:11:44 +08:00
fscache.c erofs: fix lockdep false positives on initializing erofs_pseudo_mnt 2024-03-26 18:19:40 -04:00
inode.c erofs: fix incorrect symlink detection in fast symlink 2024-10-04 16:29:00 +02:00
internal.h erofs: get rid of erofs_fs_context 2024-05-25 16:22:53 +02:00
namei.c erofs: fix refcount on the metabuf used for inode lookup 2024-03-01 13:35:01 +01:00
pcpubuf.c erofs: mark z_erofs_lzma_init/erofs_pcpubuf_init w/ __init 2023-03-09 22:49:30 +08:00
super.c erofs: reliably distinguish block based and fscache mode 2024-05-25 16:22:53 +02:00
sysfs.c erofs: make kobj_type structures constant 2023-02-15 08:11:26 +08:00
utils.c erofs: fix erofs_insert_workgroup() lockref usage 2023-11-20 11:59:23 +01:00
xattr.c erofs: boost negative xattr lookup with bloom filter 2023-08-11 12:11:44 +08:00
xattr.h Changes since last update: 2023-04-24 14:25:39 -07:00
zdata.c erofs: fix ztailpacking for subpage compressed blocks 2024-02-05 20:14:16 +00:00
zmap.c erofs: ensure m_llen is reset to 0 if metadata is invalid 2024-07-25 09:50:54 +02:00