* Re: [PATCH 1/1] fat: restore original value when fat_ent_write failed
[not found] <20260525085649.781643-1-n05ec@lzu.edu.cn>
@ 2026-06-28 20:27 ` Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2026-06-28 20:27 UTC (permalink / raw)
To: Ren Wei
Cc: linux-kernel, OGAWA Hirofumi, Yuan Tan, Yifan Wu, Juefei Pu,
Xin Liu, Yemu Lu, linux-fsdevel, Christian Brauner
On Mon, 25 May 2026 16:56:49 +0800 Ren Wei <n05ec@lzu.edu.cn> wrote:
> From: Yemu Lu <prcups@krgm.moe>
>
> fat_ent_write() may have committed the new link to the primary FAT
> but then failed on the mirror copy, leaving the chain pointing to
> new_dclus even though the caller will free it. Restore the original
> value to keep the chain consistent.
Thanks.
When fixing bugs, please be careful to describe the userspace-visible
effects of that bug. Here I'm assuming "dereferences freed pointer,
kernel crashes"?
> Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
> Cc: stable@kernel.org
^ permalink raw reply [flat|nested] only message in thread