[f2fs-dev] [PATCH v5] f2fs: prevent the current section from being selected as a victim during GC

2025-04-03 Thread yohan.joung
When selecting a victim using next_victim_seg in a large section, the selected section might already have been cleared and designated as the new current section, making it actively in use. This behavior causes inconsistency between the SIT and SSA. F2FS-fs (dm-54): Inconsistent segment (70961) typ

[f2fs-dev] [PATCH AUTOSEL 6.1 09/18] f2fs: fix to avoid out-of-bounds access in f2fs_truncate_inode_blocks()

2025-04-03 Thread Sasha Levin via Linux-f2fs-devel
From: Chao Yu [ Upstream commit e6494977bd4a83862118a05f57a8df40256951c0 ] syzbot reports an UBSAN issue as below: [ cut here ] UBSAN: array-index-out-of-bounds in fs/f2fs/node.h:381:10 index 18446744073709550692 is out of range for type '__le32[5]' (aka 'unsigned int[5

[f2fs-dev] [PATCH AUTOSEL 6.6 02/26] f2fs: don't retry IO for corrupted data scenario

2025-04-03 Thread Sasha Levin via Linux-f2fs-devel
From: Chao Yu [ Upstream commit 1534747d3170646ddeb9ea5f7caaac90359707cf ] F2FS-fs (dm-105): inconsistent node block, nid:430, node_footer[nid:2198964142,ino:598252782,ofs:118300154,cpver:5409237455940746069,blkaddr:2125070942] F2FS-fs (dm-105): inconsistent node block, nid:430, node_footer[ni

[f2fs-dev] [PATCH AUTOSEL 6.12 31/47] Revert "f2fs: rebuild nat_bits during umount"

2025-04-03 Thread Sasha Levin via Linux-f2fs-devel
From: Chao Yu [ Upstream commit 19426c4988aa85298c1b4caf2889d37ec5c80fea ] This reverts commit 94c821fb286b545d37549ff30a0c341e066f0d6c. It reports that there is potential corruption in node footer, the most suspious feature is nat_bits, let's revert recovery related code. Signed-off-by: Chao

[f2fs-dev] [PATCH AUTOSEL 5.10 07/15] f2fs: fix to avoid out-of-bounds access in f2fs_truncate_inode_blocks()

2025-04-03 Thread Sasha Levin via Linux-f2fs-devel
From: Chao Yu [ Upstream commit e6494977bd4a83862118a05f57a8df40256951c0 ] syzbot reports an UBSAN issue as below: [ cut here ] UBSAN: array-index-out-of-bounds in fs/f2fs/node.h:381:10 index 18446744073709550692 is out of range for type '__le32[5]' (aka 'unsigned int[5

[f2fs-dev] [PATCH AUTOSEL 6.6 15/26] f2fs: fix to avoid out-of-bounds access in f2fs_truncate_inode_blocks()

2025-04-03 Thread Sasha Levin via Linux-f2fs-devel
From: Chao Yu [ Upstream commit e6494977bd4a83862118a05f57a8df40256951c0 ] syzbot reports an UBSAN issue as below: [ cut here ] UBSAN: array-index-out-of-bounds in fs/f2fs/node.h:381:10 index 18446744073709550692 is out of range for type '__le32[5]' (aka 'unsigned int[5

[f2fs-dev] [PATCH AUTOSEL 6.6 18/26] Revert "f2fs: rebuild nat_bits during umount"

2025-04-03 Thread Sasha Levin via Linux-f2fs-devel
From: Chao Yu [ Upstream commit 19426c4988aa85298c1b4caf2889d37ec5c80fea ] This reverts commit 94c821fb286b545d37549ff30a0c341e066f0d6c. It reports that there is potential corruption in node footer, the most suspious feature is nat_bits, let's revert recovery related code. Signed-off-by: Chao

[f2fs-dev] [PATCH AUTOSEL 6.1 01/18] f2fs: don't retry IO for corrupted data scenario

2025-04-03 Thread Sasha Levin via Linux-f2fs-devel
From: Chao Yu [ Upstream commit 1534747d3170646ddeb9ea5f7caaac90359707cf ] F2FS-fs (dm-105): inconsistent node block, nid:430, node_footer[nid:2198964142,ino:598252782,ofs:118300154,cpver:5409237455940746069,blkaddr:2125070942] F2FS-fs (dm-105): inconsistent node block, nid:430, node_footer[ni

[f2fs-dev] [PATCH AUTOSEL 6.12 27/47] f2fs: fix to avoid out-of-bounds access in f2fs_truncate_inode_blocks()

2025-04-03 Thread Sasha Levin via Linux-f2fs-devel
From: Chao Yu [ Upstream commit e6494977bd4a83862118a05f57a8df40256951c0 ] syzbot reports an UBSAN issue as below: [ cut here ] UBSAN: array-index-out-of-bounds in fs/f2fs/node.h:381:10 index 18446744073709550692 is out of range for type '__le32[5]' (aka 'unsigned int[5

[f2fs-dev] [PATCH AUTOSEL 6.12 09/47] f2fs: don't retry IO for corrupted data scenario

2025-04-03 Thread Sasha Levin via Linux-f2fs-devel
From: Chao Yu [ Upstream commit 1534747d3170646ddeb9ea5f7caaac90359707cf ] F2FS-fs (dm-105): inconsistent node block, nid:430, node_footer[nid:2198964142,ino:598252782,ofs:118300154,cpver:5409237455940746069,blkaddr:2125070942] F2FS-fs (dm-105): inconsistent node block, nid:430, node_footer[ni

[f2fs-dev] [PATCH AUTOSEL 6.13 31/49] Revert "f2fs: rebuild nat_bits during umount"

2025-04-03 Thread Sasha Levin via Linux-f2fs-devel
From: Chao Yu [ Upstream commit 19426c4988aa85298c1b4caf2889d37ec5c80fea ] This reverts commit 94c821fb286b545d37549ff30a0c341e066f0d6c. It reports that there is potential corruption in node footer, the most suspious feature is nat_bits, let's revert recovery related code. Signed-off-by: Chao

[f2fs-dev] [PATCH AUTOSEL 6.13 27/49] f2fs: fix to avoid out-of-bounds access in f2fs_truncate_inode_blocks()

2025-04-03 Thread Sasha Levin via Linux-f2fs-devel
From: Chao Yu [ Upstream commit e6494977bd4a83862118a05f57a8df40256951c0 ] syzbot reports an UBSAN issue as below: [ cut here ] UBSAN: array-index-out-of-bounds in fs/f2fs/node.h:381:10 index 18446744073709550692 is out of range for type '__le32[5]' (aka 'unsigned int[5

[f2fs-dev] [PATCH AUTOSEL 6.13 09/49] f2fs: don't retry IO for corrupted data scenario

2025-04-03 Thread Sasha Levin via Linux-f2fs-devel
From: Chao Yu [ Upstream commit 1534747d3170646ddeb9ea5f7caaac90359707cf ] F2FS-fs (dm-105): inconsistent node block, nid:430, node_footer[nid:2198964142,ino:598252782,ofs:118300154,cpver:5409237455940746069,blkaddr:2125070942] F2FS-fs (dm-105): inconsistent node block, nid:430, node_footer[ni

[f2fs-dev] [PATCH AUTOSEL 6.14 34/54] Revert "f2fs: rebuild nat_bits during umount"

2025-04-03 Thread Sasha Levin via Linux-f2fs-devel
From: Chao Yu [ Upstream commit 19426c4988aa85298c1b4caf2889d37ec5c80fea ] This reverts commit 94c821fb286b545d37549ff30a0c341e066f0d6c. It reports that there is potential corruption in node footer, the most suspious feature is nat_bits, let's revert recovery related code. Signed-off-by: Chao

[f2fs-dev] [PATCH AUTOSEL 6.14 30/54] f2fs: fix to avoid out-of-bounds access in f2fs_truncate_inode_blocks()

2025-04-03 Thread Sasha Levin via Linux-f2fs-devel
From: Chao Yu [ Upstream commit e6494977bd4a83862118a05f57a8df40256951c0 ] syzbot reports an UBSAN issue as below: [ cut here ] UBSAN: array-index-out-of-bounds in fs/f2fs/node.h:381:10 index 18446744073709550692 is out of range for type '__le32[5]' (aka 'unsigned int[5

[f2fs-dev] [PATCH AUTOSEL 6.14 11/54] f2fs: don't retry IO for corrupted data scenario

2025-04-03 Thread Sasha Levin via Linux-f2fs-devel
From: Chao Yu [ Upstream commit 1534747d3170646ddeb9ea5f7caaac90359707cf ] F2FS-fs (dm-105): inconsistent node block, nid:430, node_footer[nid:2198964142,ino:598252782,ofs:118300154,cpver:5409237455940746069,blkaddr:2125070942] F2FS-fs (dm-105): inconsistent node block, nid:430, node_footer[ni

Re: [f2fs-dev] [PATCH v4] f2fs: prevent the current section from being selected as a victim during GC

2025-04-03 Thread kernel test robot
Hi yohan.joung, kernel test robot noticed the following build errors: [auto build test ERROR on jaegeuk-f2fs/dev-test] [also build test ERROR on jaegeuk-f2fs/dev linus/master v6.14 next-20250403] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch

Re: [f2fs-dev] [PATCH v4] f2fs: prevent the current section from being selected as a victim during GC

2025-04-03 Thread kernel test robot
Hi yohan.joung, kernel test robot noticed the following build errors: [auto build test ERROR on jaegeuk-f2fs/dev-test] [also build test ERROR on jaegeuk-f2fs/dev linus/master v6.14 next-20250403] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch

[f2fs-dev] [PATCH v4] f2fs: prevent the current section from being selected as a victim during GC

2025-04-03 Thread yohan.joung
When selecting a victim using next_victim_seg in a large section, the selected section might already have been cleared and designated as the new current section, making it actively in use. This behavior causes inconsistency between the SIT and SSA. F2FS-fs (dm-54): Inconsistent segment (70961) typ

Re: [f2fs-dev] [PATCH v4] f2fs: prevent the current section from being selected as a victim during GC

2025-04-03 Thread Chao Yu via Linux-f2fs-devel
On 2025/4/3 15:10, yohan.joung wrote: When selecting a victim using next_victim_seg in a large section, the selected section might already have been cleared and designated as the new current section, making it actively in use. This behavior causes inconsistency between the SIT and SSA. F2FS-fs (

Re: [f2fs-dev] [PATCH v3] f2fs: prevent the current section from being selected as a victim during GC

2025-04-03 Thread yohan.joung
On Thu, 3 Apr 2025 14:26:59 +0800 Chao Yu via Linux-f2fs-devel wrote: > On 2025/4/2 16:04, yohan.joung wrote: > > When selecting a victim using next_victim_seg in a large section, the > > selected section might already have been cleared and designated as the > > new current section, making it act