diff options
| author | Jingbo Xu <[email protected]> | 2023-04-14 06:18:10 +0000 |
|---|---|---|
| committer | Gao Xiang <[email protected]> | 2023-04-16 17:15:54 +0000 |
| commit | 1b3567a1969b26f709d82a874498c0754ea841c3 (patch) | |
| tree | db06f33e0421125b0aa08966f83b52dcf679faaf /Documentation/filesystems | |
| parent | erofs: get rid of z_erofs_fill_inode() (diff) | |
| download | kernel-1b3567a1969b26f709d82a874498c0754ea841c3.tar.gz kernel-1b3567a1969b26f709d82a874498c0754ea841c3.zip | |
erofs: fix potential overflow calculating xattr_isize
Given on-disk i_xattr_icount is 16 bits and xattr_isize is calculated
from i_xattr_icount multiplying 4, xattr_isize has a theoretical maximum
of 256K (64K * 4).
Thus declare xattr_isize as unsigned int to avoid the potential overflow.
Fixes: bfb8674dc044 ("staging: erofs: add erofs in-memory stuffs")
Signed-off-by: Jingbo Xu <[email protected]>
Reviewed-by: Gao Xiang <[email protected]>
Reviewed-by: Chao Yu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Gao Xiang <[email protected]>
Diffstat (limited to 'Documentation/filesystems')
0 files changed, 0 insertions, 0 deletions
