udf: backport udf_rename fixes to verify link-count
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | udf_rename(): only access the child content on cross-directory renamefs/ | +6 | 0 replies | |
| 2/2 | udf: Verify inode link counts before performing renamefs/ | +10 | 0 replies |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | Jan Kara | [email protected] |
|---|---|---|
| 1/2 | R-b | |
| 2/2 | T-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 5.15.y 0/2] udf: backport udf_rename fixes to verify link-count
This series backports two upstream commits needed to fix a udf_rename crash reported by syzbot.
https://syzkaller.appspot.com/bug?extid=99bb36d7a3ea562b950e
Patch 1: brings in the prerequisite restructuring of udf_rename from upstream commit 9d35cebb794b ("udf_rename(): only access the child content on cross-directory rename"). This commit introduces is_dir that the later fix depends upon.
Patch 2: backports upstream commit 6756af923e06 ("udf: Verify inode link counts before performing rename"), which adds the link-count verifications.
Both the patches apply cleanly to v5.15.y and this upstream fix is already backported to v6.12.y with commit id 0a65d850c45d and, to v6.6.y with commit id b41d73055284. A similar patch series, to backport this fix is already sent for v6.1.y
The reproducer from syzbot no longer triggers issue with this series applied. The patch containing diffs, combined from both the commit was tested by syzbot and it triggers no issue. The kernel also builds & boots on a native x86_64 machine with this fix applied.
Al Viro (1):
udf_rename(): only access the child content on cross-directory rename
Jan Kara (1):
udf: Verify inode link counts before performing rename
fs/udf/namei.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-)
Signature · 1 line
2.43.0