fs/ntfs3: Add rough attr alloc_size check
PATCH 1/1 fs/ntfs3: Add rough attr alloc_size check
From: Konstantin Komarov <[email protected]>
[ Upstream commit c4a8ba334262e9a5c158d618a4820e1b9c12495c ]
---
Verified the build test.
--- fs/ntfs3/record.c | 3 +++ 1 file changed, 3 insertions(+)
fs/ntfs3/record.c +3 -0
@@ -325,6 +325,9 @@ struct ATTRIB *mi_enum_attr(struct mft_inode *mi, struct ATTRIB *attr) }else {if (attr->nres.c_unit)return NULL ; + +if (alloc_size > mi->sbi->volume.size) +return NULL ; }return attr;
Signature · 1 line
2.34.1
Sasha Levin
maintainer[ Sasha's backport helper bot ]
Hi,
✅ All tests passed successfully. No issues detected. No action required from the submitter.
The upstream commit SHA1 provided is correct: c4a8ba334262e9a5c158d618a4820e1b9c12495c
WARNING: Author mismatch between patch and upstream commit:
Backport author: [email protected]
Commit author: Konstantin Komarov<[email protected]>
Status in newer kernel trees:
6.13.y | Present (exact SHA1)
6.12.y | Present (exact SHA1)
6.6.y | Present (different SHA1: e91fbb21f248)
Note: The patch differs from the upstream commit:
---
1: c4a8ba334262e ! 1: ae4a5f7e9e7f0 fs/ntfs3: Add rough attr alloc_size check
@@ Metadata
## Commit message ##
fs/ntfs3: Add rough attr alloc_size check
+ [ Upstream commit c4a8ba334262e9a5c158d618a4820e1b9c12495c ]
+
+ Signed-off-by: Bin Lan <[email protected]>
+ Signed-off-by: He Zhe <[email protected]>
## fs/ntfs3/record.c ##
@@ fs/ntfs3/record.c: struct ATTRIB *mi_enum_attr(struct mft_inode *mi, struct ATTRIB *attr)
-
+ } else {
if (attr->nres.c_unit)
return NULL;
+
---
Results of testing on various branches:
| Branch | Patch Apply | Build Test | |---------------------------|-------------|------------| | stable/linux-6.1.y | Success | Success |