]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
exfat: fix missing shutdown check
authorYuezhang Mo <Yuezhang.Mo@sony.com>
Thu, 6 Mar 2025 07:02:07 +0000 (15:02 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Apr 2025 12:39:26 +0000 (14:39 +0200)
commit4a9595eb024b8319957c178be3cdeed613ac0795
tree661315c150327f9c18f08bbc785cb00515a54bed
parent6a14075325006dad7fef2f980f60dea8acb097a2
exfat: fix missing shutdown check

[ Upstream commit 47e35366bc6fa3cf189a8305bce63992495f3efa ]

xfstests generic/730 test failed because after deleting the device
that still had dirty data, the file could still be read without
returning an error. The reason is the missing shutdown check in
->read_iter.

I also noticed that shutdown checks were missing from ->write_iter,
->splice_read, and ->mmap. This commit adds shutdown checks to all
of them.

Fixes: f761fcdd289d ("exfat: Implement sops->shutdown and ioctl")
Signed-off-by: Yuezhang Mo <Yuezhang.Mo@sony.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/exfat/file.c