Skip to content

udf: backport udf_rename fixes to verify link-count

Sukrut Heroorkar lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2udf_rename(): only access the child content on cross-directory renamefs/udf/namei.c+6 -10 replies
2/2udf: Verify inode link counts before performing renamefs/udf/namei.c+10 -00 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchJan Kara[email protected]
1/2R-b
2/2T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 6.1.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=72f20dcde8dd7e4a788a

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 v6.1.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.

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