commit | 6ddd0ccb622f16f34eaf409b065f75f844fe8d89 | [log] [tgz] |
---|---|---|
author | Chao Yu <chao@kernel.org> | Tue Jul 18 12:05:23 2023 +0800 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Oct 27 03:34:19 2023 +0000 |
tree | 925d33f6f6f369ffb4bbb7afc94351a60c2ef27e | |
parent | 2e1a923ec49275476a43b85cc212f9c3cc09dd43 [diff] |
DO NOT MERGE - f2fs-tools: do sanity check on xattr entry If there are corrupted xattr entries in xattr space, it may cause traversing across end of xattr space issue, this patch adds sanity check during xattr traverse to avoid such issue. This patch synchronizes kernel commits: 2777e654371d ("f2fs: fix to avoid accessing xattr across the boundary") 688078e7f36c ("f2fs: fix to avoid memory leakage in f2fs_listxattr") Bug: 305658663 Signed-off-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org> (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:c208057ce971b24990fb6bd1fee7e39b90ee796e) Merged-In: Ib481ef79f4e0498098559f58066bcb6367d4de29 Change-Id: Ib481ef79f4e0498098559f58066bcb6367d4de29