diff options
author | Jingbo Xu <[email protected]> | 2023-05-15 18:39:41 +0800 |
---|---|---|
committer | Gao Xiang <[email protected]> | 2023-05-23 16:56:21 +0800 |
commit | 0a17567b4a85243ac1620886b75b3813acde41fc (patch) | |
tree | 1980cb84da8bbfd20ee88a74f4ecf7cb1780c701 /tools/perf/scripts/python/intel-pt-events.py | |
parent | f1fcbaa18b28dec10281551dfe6ed3a3ed80e3d6 (diff) |
erofs: fix null-ptr-deref caused by erofs_xattr_prefixes_init
Fragments and dedupe share one feature bit, and thus packed inode may not
exist when fragment feature bit (dedupe feature bit exactly) is set, e.g.
when deduplication feature is in use while fragments feature is not. In
this case, sbi->packed_inode could be NULL while fragments feature bit
is set.
Fix this by accessing packed inode only when it exists.
Reported-by: [email protected]
Link: https://syzkaller.appspot.com/bug?extid=902d5a9373ae8f748a94
Reported-and-tested-by: [email protected]
Fixes: 9e382914617c ("erofs: add helpers to load long xattr name prefixes")
Fixes: 6a318ccd7e08 ("erofs: enable long extended attribute name prefixes")
Signed-off-by: Jingbo Xu <[email protected]>
Reviewed-by: Yue Hu <[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 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions