Re: [PATCH 6.1.y] f2fs: fix to detect potential corrupted nid in free_nid_list

From: Sasha Levin

Date: Thu Apr 30 2026 - 20:54:30 EST


On Thu, Apr 30, 2026 at 01:55:37PM +0800, Robert Garcia wrote:
> From: Chao Yu <chao@xxxxxxxxxx>
>
> [ Upstream commit 8fc6056dcf79937c46c97fa4996cda65956437a9 ]
>
> As reported, on-disk footer.ino and footer.nid is the same and
> out-of-range, let's add sanity check on f2fs_alloc_nid() to detect
> any potential corruption in free_nid_list.

Thanks, queued for 6.1.y.

--
Thanks,
Sasha