From: Szymon Wilczek <[email protected]>
Date: 27 Dec 2025
Subject: [PATCH] ntfs3: fix circular locking dependency in run_unpack_ex
Merged: 15 Jan 2026, by Konstantin Komarov
signed, reported, fixes
- Reported-by syzbot reported it
- Tested-by syzbot tested it
- Signed-off-by Szymon Wilczek author
- Signed-off-by Konstantin Komarov maintainer · merged it
diff
@@ -1131,11 +1131,14 @@ int run_unpack_ex(struct runs_tree *run, struct ntfs_sb_info *sbi, CLST ino, struct rw_semaphore *lock = is_mounted(sbi) ? &sbi->mft.ni->file.run_lock : NULL;- if (lock)- down_read(lock);- ntfs_refresh_zone(sbi);- if (lock)- up_read(lock);+ if (lock) {+ if (down_read_trylock(lock)) {+ ntfs_refresh_zone(sbi);+ up_read(lock);+ }+ } else {+ ntfs_refresh_zone(sbi);+ } } up_write(&wnd->rw_lock); if (err) discussion · on the list
v1 · 2 messages
Szymon Wilczek author 27 Dec 2025
[PATCH] ntfs3: fix circular locking dependency in run_unpack_ex
Konstantin Komarov maintainer 16 Jan 2026
Thanks for the patch. It is applied.
Regards,
Konstantin