]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
netfs: Prevent duplicate unlocking
authorLizhi Xu <lizhi.xu@windriver.com>
Fri, 5 Sep 2025 01:59:25 +0000 (09:59 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 12 Oct 2025 11:01:02 +0000 (13:01 +0200)
commit97bbf79b53ae71d8373070f543c2cd42d6ccf883
tree0c034ff289dbddcc935bb0fd8584c315aa0a8524
parent08fdd07ae5abef7fd3556cc64e85d5648dc45d83
netfs: Prevent duplicate unlocking

[ Upstream commit 66d938e89e940e512f4c3deac938ecef399c13f9 ]

The filio lock has been released here, so there is no need to jump to
error_folio_unlock to release it again.

Reported-by: syzbot+b73c7d94a151e2ee1e9b@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=b73c7d94a151e2ee1e9b
Signed-off-by: Lizhi Xu <lizhi.xu@windriver.com>
Acked-by: David Howells <dhowells@redhat.com>
Reviewed-by: Paulo Alcantara (Red Hat) <pc@manguebit.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/netfs/buffered_write.c