Re: [f2fs-dev] [PATCH] f2fs: fix to show encrypt flag in FS_IOC_GETFLAGS

2018-04-04 Thread Sasha Levin via Linux-f2fs-devel
Hi Chao Yu. [This is an automated email] This commit has been processed by the -stable helper bot and determined to be a high probability candidate for -stable trees. (score: 11.4088) The bot has tested the following trees: v4.15.15, v4.14.32, v4.9.92, v4.4.126, v4.15.15: Build OK! v4.14.32: B

[f2fs-dev] [PATCH AUTOSEL 4.18 041/131] f2fs: fix defined but not used build warnings

2018-09-02 Thread Sasha Levin via Linux-f2fs-devel
From: Randy Dunlap [ Upstream commit cb15d1e43db0a6341c1e26ac6a2c74e61b74f1aa ] Fix build warnings in f2fs when CONFIG_PROC_FS is not enabled by marking the unused functions as __maybe_unused. ../fs/f2fs/sysfs.c:519:12: warning: 'segment_info_seq_show' defined but not used [-Wunused-function]

[f2fs-dev] [PATCH AUTOSEL 4.14 28/89] f2fs: fix defined but not used build warnings

2018-09-02 Thread Sasha Levin via Linux-f2fs-devel
From: Randy Dunlap [ Upstream commit cb15d1e43db0a6341c1e26ac6a2c74e61b74f1aa ] Fix build warnings in f2fs when CONFIG_PROC_FS is not enabled by marking the unused functions as __maybe_unused. ../fs/f2fs/sysfs.c:519:12: warning: 'segment_info_seq_show' defined but not used [-Wunused-function]

Re: [f2fs-dev] [PATCH 6.1] f2fs: Require FMODE_WRITE for atomic write ioctls

2024-10-05 Thread Sasha Levin via Linux-f2fs-devel
On Fri, Oct 04, 2024 at 07:34:41PM +, Eric Biggers wrote: From: Jann Horn commit 4f5a100f87f32cb65d4bb1ad282a08c92f6f591e upstream. The F2FS ioctls for starting and committing atomic writes check for inode_owner_or_capable(), but this does not give LSMs like SELinux or Landlock an opportun

[f2fs-dev] [PATCH AUTOSEL 6.12 14/15] f2fs: fix to shrink read extent node in batches

2024-12-04 Thread Sasha Levin via Linux-f2fs-devel
From: Chao Yu [ Upstream commit 3fc5d5a182f6a1f8bd4dc775feb54c369dd2c343 ] We use rwlock to protect core structure data of extent tree during its shrink, however, if there is a huge number of extent nodes in extent tree, during shrink of extent tree, it may hold rwlock for a very long time, whic

[f2fs-dev] [PATCH AUTOSEL 6.11 01/13] f2fs: fix f2fs_bug_on when uninstalling filesystem call f2fs_evict_inode.

2024-12-04 Thread Sasha Levin via Linux-f2fs-devel
From: Qi Han [ Upstream commit d5c367ef8287fb4d235c46a2f8c8d68715f3a0ca ] creating a large files during checkpoint disable until it runs out of space and then delete it, then remount to enable checkpoint again, and then unmount the filesystem triggers the f2fs_bug_on as below: [ cut

[f2fs-dev] [PATCH AUTOSEL 6.12 15/15] f2fs: add a sysfs node to limit max read extent count per-inode

2024-12-04 Thread Sasha Levin via Linux-f2fs-devel
From: Chao Yu [ Upstream commit 009a8241a8e5a14ea2dd0b8db42dbf283527dd44 ] Quoted: "at this time, there are still 1086911 extent nodes in this zombie extent tree that need to be cleaned up. crash_arm64_sprd_v8.0.3++> extent_tree.node_cnt ff80896cc500 node_cnt = { counter = 1086911 }

[f2fs-dev] [PATCH AUTOSEL 6.12 13/15] f2fs: print message if fscorrupted was found in f2fs_new_node_page()

2024-12-04 Thread Sasha Levin via Linux-f2fs-devel
From: Chao Yu [ Upstream commit 81520c684ca67aea6a589461a3caebb9b11dcc90 ] If fs corruption occurs in f2fs_new_node_page(), let's print more information about corrupted metadata into kernel log. Meanwhile, it updates to record ERROR_INCONSISTENT_NAT instead of ERROR_INVALID_BLKADDR if blkaddr i

[f2fs-dev] [PATCH AUTOSEL 6.11 13/13] f2fs: fix to shrink read extent node in batches

2024-12-04 Thread Sasha Levin via Linux-f2fs-devel
From: Chao Yu [ Upstream commit 3fc5d5a182f6a1f8bd4dc775feb54c369dd2c343 ] We use rwlock to protect core structure data of extent tree during its shrink, however, if there is a huge number of extent nodes in extent tree, during shrink of extent tree, it may hold rwlock for a very long time, whic

[f2fs-dev] [PATCH AUTOSEL 5.4 1/4] f2fs: fix f2fs_bug_on when uninstalling filesystem call f2fs_evict_inode.

2024-12-04 Thread Sasha Levin via Linux-f2fs-devel
From: Qi Han [ Upstream commit d5c367ef8287fb4d235c46a2f8c8d68715f3a0ca ] creating a large files during checkpoint disable until it runs out of space and then delete it, then remount to enable checkpoint again, and then unmount the filesystem triggers the f2fs_bug_on as below: [ cut

[f2fs-dev] [PATCH AUTOSEL 5.10 1/4] f2fs: fix f2fs_bug_on when uninstalling filesystem call f2fs_evict_inode.

2024-12-04 Thread Sasha Levin via Linux-f2fs-devel
From: Qi Han [ Upstream commit d5c367ef8287fb4d235c46a2f8c8d68715f3a0ca ] creating a large files during checkpoint disable until it runs out of space and then delete it, then remount to enable checkpoint again, and then unmount the filesystem triggers the f2fs_bug_on as below: [ cut

[f2fs-dev] [PATCH AUTOSEL 6.11 12/13] f2fs: print message if fscorrupted was found in f2fs_new_node_page()

2024-12-04 Thread Sasha Levin via Linux-f2fs-devel
From: Chao Yu [ Upstream commit 81520c684ca67aea6a589461a3caebb9b11dcc90 ] If fs corruption occurs in f2fs_new_node_page(), let's print more information about corrupted metadata into kernel log. Meanwhile, it updates to record ERROR_INCONSISTENT_NAT instead of ERROR_INVALID_BLKADDR if blkaddr i

[f2fs-dev] [PATCH AUTOSEL 6.6 11/12] f2fs: print message if fscorrupted was found in f2fs_new_node_page()

2024-12-04 Thread Sasha Levin via Linux-f2fs-devel
From: Chao Yu [ Upstream commit 81520c684ca67aea6a589461a3caebb9b11dcc90 ] If fs corruption occurs in f2fs_new_node_page(), let's print more information about corrupted metadata into kernel log. Meanwhile, it updates to record ERROR_INCONSISTENT_NAT instead of ERROR_INVALID_BLKADDR if blkaddr i

[f2fs-dev] [PATCH AUTOSEL 6.6 12/12] f2fs: fix to shrink read extent node in batches

2024-12-04 Thread Sasha Levin via Linux-f2fs-devel
From: Chao Yu [ Upstream commit 3fc5d5a182f6a1f8bd4dc775feb54c369dd2c343 ] We use rwlock to protect core structure data of extent tree during its shrink, however, if there is a huge number of extent nodes in extent tree, during shrink of extent tree, it may hold rwlock for a very long time, whic

[f2fs-dev] [PATCH AUTOSEL 6.1 1/6] f2fs: fix f2fs_bug_on when uninstalling filesystem call f2fs_evict_inode.

2024-12-04 Thread Sasha Levin via Linux-f2fs-devel
From: Qi Han [ Upstream commit d5c367ef8287fb4d235c46a2f8c8d68715f3a0ca ] creating a large files during checkpoint disable until it runs out of space and then delete it, then remount to enable checkpoint again, and then unmount the filesystem triggers the f2fs_bug_on as below: [ cut

[f2fs-dev] [PATCH AUTOSEL 5.15 1/6] f2fs: fix f2fs_bug_on when uninstalling filesystem call f2fs_evict_inode.

2024-12-04 Thread Sasha Levin via Linux-f2fs-devel
From: Qi Han [ Upstream commit d5c367ef8287fb4d235c46a2f8c8d68715f3a0ca ] creating a large files during checkpoint disable until it runs out of space and then delete it, then remount to enable checkpoint again, and then unmount the filesystem triggers the f2fs_bug_on as below: [ cut

[f2fs-dev] [PATCH AUTOSEL 6.12 01/15] f2fs: fix f2fs_bug_on when uninstalling filesystem call f2fs_evict_inode.

2024-12-04 Thread Sasha Levin via Linux-f2fs-devel
From: Qi Han [ Upstream commit d5c367ef8287fb4d235c46a2f8c8d68715f3a0ca ] creating a large files during checkpoint disable until it runs out of space and then delete it, then remount to enable checkpoint again, and then unmount the filesystem triggers the f2fs_bug_on as below: [ cut

[f2fs-dev] [PATCH AUTOSEL 6.6 01/12] f2fs: fix f2fs_bug_on when uninstalling filesystem call f2fs_evict_inode.

2024-12-04 Thread Sasha Levin via Linux-f2fs-devel
From: Qi Han [ Upstream commit d5c367ef8287fb4d235c46a2f8c8d68715f3a0ca ] creating a large files during checkpoint disable until it runs out of space and then delete it, then remount to enable checkpoint again, and then unmount the filesystem triggers the f2fs_bug_on as below: [ cut

[f2fs-dev] [PATCH AUTOSEL 5.15 08/16] f2fs: fix to avoid out-of-bounds access in f2fs_truncate_inode_blocks()

2025-04-05 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 253/294] f2fs: introduce f2fs_base_attr for global sysfs entries

2025-05-05 Thread Sasha Levin via Linux-f2fs-devel
From: Jaegeuk Kim [ Upstream commit 21925ede449e038ed6f9efdfe0e79f15bddc34bc ] In /sys/fs/f2fs/features, there's no f2fs_sb_info, so let's avoid to get the pointer. Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/sysfs.c | 74 ++

[f2fs-dev] [PATCH AUTOSEL 6.1 062/212] f2fs: defer readonly check vs norecovery

2025-05-05 Thread Sasha Levin via Linux-f2fs-devel
From: Eric Sandeen [ Upstream commit 9cca49875997a1a7e92800a828a62bacb0f577b9 ] Defer the readonly-vs-norecovery check until after option parsing is done so that option parsing does not require an active superblock for the test. Add a helpful message, while we're at it. (I think could be moved

[f2fs-dev] [PATCH AUTOSEL 5.15 044/153] f2fs: defer readonly check vs norecovery

2025-05-05 Thread Sasha Levin via Linux-f2fs-devel
From: Eric Sandeen [ Upstream commit 9cca49875997a1a7e92800a828a62bacb0f577b9 ] Defer the readonly-vs-norecovery check until after option parsing is done so that option parsing does not require an active superblock for the test. Add a helpful message, while we're at it. (I think could be moved

[f2fs-dev] [PATCH AUTOSEL 6.14 156/642] f2fs: defer readonly check vs norecovery

2025-05-05 Thread Sasha Levin via Linux-f2fs-devel
From: Eric Sandeen [ Upstream commit 9cca49875997a1a7e92800a828a62bacb0f577b9 ] Defer the readonly-vs-norecovery check until after option parsing is done so that option parsing does not require an active superblock for the test. Add a helpful message, while we're at it. (I think could be moved

[f2fs-dev] [PATCH AUTOSEL 6.14 539/642] f2fs: introduce f2fs_base_attr for global sysfs entries

2025-05-05 Thread Sasha Levin via Linux-f2fs-devel
From: Jaegeuk Kim [ Upstream commit 21925ede449e038ed6f9efdfe0e79f15bddc34bc ] In /sys/fs/f2fs/features, there's no f2fs_sb_info, so let's avoid to get the pointer. Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/sysfs.c | 74 ++

[f2fs-dev] [PATCH AUTOSEL 6.12 125/486] f2fs: defer readonly check vs norecovery

2025-05-05 Thread Sasha Levin via Linux-f2fs-devel
From: Eric Sandeen [ Upstream commit 9cca49875997a1a7e92800a828a62bacb0f577b9 ] Defer the readonly-vs-norecovery check until after option parsing is done so that option parsing does not require an active superblock for the test. Add a helpful message, while we're at it. (I think could be moved

[f2fs-dev] [PATCH AUTOSEL 6.12 416/486] f2fs: introduce f2fs_base_attr for global sysfs entries

2025-05-05 Thread Sasha Levin via Linux-f2fs-devel
From: Jaegeuk Kim [ Upstream commit 21925ede449e038ed6f9efdfe0e79f15bddc34bc ] In /sys/fs/f2fs/features, there's no f2fs_sb_info, so let's avoid to get the pointer. Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/sysfs.c | 74 ++

[f2fs-dev] [PATCH AUTOSEL 6.6 078/294] f2fs: defer readonly check vs norecovery

2025-05-05 Thread Sasha Levin via Linux-f2fs-devel
From: Eric Sandeen [ Upstream commit 9cca49875997a1a7e92800a828a62bacb0f577b9 ] Defer the readonly-vs-norecovery check until after option parsing is done so that option parsing does not require an active superblock for the test. Add a helpful message, while we're at it. (I think could be moved

[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

[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 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.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.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.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.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.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.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.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 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.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 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.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.15 004/118] f2fs: use vmalloc instead of kvmalloc in .init_{, de}compress_ctx

2025-06-03 Thread Sasha Levin via Linux-f2fs-devel
From: Chao Yu [ Upstream commit 70dd07c888451503c3e93b6821e10d1ea1ec9930 ] .init_{,de}compress_ctx uses kvmalloc() to alloc memory, it will try to allocate physically continuous page first, it may cause more memory allocation pressure, let's use vmalloc instead to mitigate it. [Test] cd /data/l

[f2fs-dev] [PATCH AUTOSEL 6.15 106/118] f2fs: fix to set atomic write status more clear

2025-06-03 Thread Sasha Levin via Linux-f2fs-devel
From: Chao Yu [ Upstream commit db03c20c0850dc8d2bcabfa54b9438f7d666c863 ] 1. After we start atomic write in a database file, before committing all data, we'd better not set inode w/ vfs dirty status to avoid redundant updates, instead, we only set inode w/ atomic dirty status. 2. After we comm

[f2fs-dev] [PATCH AUTOSEL 6.14 004/108] f2fs: use vmalloc instead of kvmalloc in .init_{, de}compress_ctx

2025-06-03 Thread Sasha Levin via Linux-f2fs-devel
From: Chao Yu [ Upstream commit 70dd07c888451503c3e93b6821e10d1ea1ec9930 ] .init_{,de}compress_ctx uses kvmalloc() to alloc memory, it will try to allocate physically continuous page first, it may cause more memory allocation pressure, let's use vmalloc instead to mitigate it. [Test] cd /data/l

[f2fs-dev] [PATCH AUTOSEL 6.14 062/108] f2fs: fix to bail out in get_new_segment()

2025-06-03 Thread Sasha Levin via Linux-f2fs-devel
From: Chao Yu [ Upstream commit bb5eb8a5b222fa5092f60d867a05ebc3bdf2 ] [ cut here ] WARNING: CPU: 3 PID: 579 at fs/f2fs/segment.c:2832 new_curseg+0x5e8/0x6dc pc : new_curseg+0x5e8/0x6dc Call trace: new_curseg+0x5e8/0x6dc f2fs_allocate_data_block+0xa54/0xe28 do_writ

[f2fs-dev] [PATCH AUTOSEL 6.12 04/93] f2fs: use vmalloc instead of kvmalloc in .init_{, de}compress_ctx

2025-06-03 Thread Sasha Levin via Linux-f2fs-devel
From: Chao Yu [ Upstream commit 70dd07c888451503c3e93b6821e10d1ea1ec9930 ] .init_{,de}compress_ctx uses kvmalloc() to alloc memory, it will try to allocate physically continuous page first, it may cause more memory allocation pressure, let's use vmalloc instead to mitigate it. [Test] cd /data/l

[f2fs-dev] [PATCH AUTOSEL 6.12 53/93] f2fs: fix to bail out in get_new_segment()

2025-06-03 Thread Sasha Levin via Linux-f2fs-devel
From: Chao Yu [ Upstream commit bb5eb8a5b222fa5092f60d867a05ebc3bdf2 ] [ cut here ] WARNING: CPU: 3 PID: 579 at fs/f2fs/segment.c:2832 new_curseg+0x5e8/0x6dc pc : new_curseg+0x5e8/0x6dc Call trace: new_curseg+0x5e8/0x6dc f2fs_allocate_data_block+0xa54/0xe28 do_writ

[f2fs-dev] [PATCH AUTOSEL 6.12 85/93] f2fs: fix to set atomic write status more clear

2025-06-03 Thread Sasha Levin via Linux-f2fs-devel
From: Chao Yu [ Upstream commit db03c20c0850dc8d2bcabfa54b9438f7d666c863 ] 1. After we start atomic write in a database file, before committing all data, we'd better not set inode w/ vfs dirty status to avoid redundant updates, instead, we only set inode w/ atomic dirty status. 2. After we comm

[f2fs-dev] [PATCH AUTOSEL 6.6 55/62] f2fs: fix to set atomic write status more clear

2025-06-03 Thread Sasha Levin via Linux-f2fs-devel
From: Chao Yu [ Upstream commit db03c20c0850dc8d2bcabfa54b9438f7d666c863 ] 1. After we start atomic write in a database file, before committing all data, we'd better not set inode w/ vfs dirty status to avoid redundant updates, instead, we only set inode w/ atomic dirty status. 2. After we comm

[f2fs-dev] [PATCH AUTOSEL 6.15 069/118] f2fs: fix to bail out in get_new_segment()

2025-06-03 Thread Sasha Levin via Linux-f2fs-devel
From: Chao Yu [ Upstream commit bb5eb8a5b222fa5092f60d867a05ebc3bdf2 ] [ cut here ] WARNING: CPU: 3 PID: 579 at fs/f2fs/segment.c:2832 new_curseg+0x5e8/0x6dc pc : new_curseg+0x5e8/0x6dc Call trace: new_curseg+0x5e8/0x6dc f2fs_allocate_data_block+0xa54/0xe28 do_writ

[f2fs-dev] [PATCH AUTOSEL 6.14 097/108] f2fs: fix to set atomic write status more clear

2025-06-03 Thread Sasha Levin via Linux-f2fs-devel
From: Chao Yu [ Upstream commit db03c20c0850dc8d2bcabfa54b9438f7d666c863 ] 1. After we start atomic write in a database file, before committing all data, we'd better not set inode w/ vfs dirty status to avoid redundant updates, instead, we only set inode w/ atomic dirty status. 2. After we comm

[f2fs-dev] [PATCH AUTOSEL 6.6 04/62] f2fs: use vmalloc instead of kvmalloc in .init_{, de}compress_ctx

2025-06-03 Thread Sasha Levin via Linux-f2fs-devel
From: Chao Yu [ Upstream commit 70dd07c888451503c3e93b6821e10d1ea1ec9930 ] .init_{,de}compress_ctx uses kvmalloc() to alloc memory, it will try to allocate physically continuous page first, it may cause more memory allocation pressure, let's use vmalloc instead to mitigate it. [Test] cd /data/l

[f2fs-dev] [PATCH AUTOSEL 6.16-6.6] f2fs: check the generic conditions first

2025-08-08 Thread Sasha Levin via Linux-f2fs-devel
From: Jaegeuk Kim [ Upstream commit e23ab8028de0d92df5921a570f5212c0370db3b5 ] Let's return errors caught by the generic checks. This fixes generic/494 where it expects to see EBUSY by setattr_prepare instead of EINVAL by f2fs for active swapfile. Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Ki

[f2fs-dev] [PATCH AUTOSEL 6.16] f2fs: handle nat.blkaddr corruption in f2fs_get_node_info()

2025-08-08 Thread Sasha Levin via Linux-f2fs-devel
From: Chao Yu [ Upstream commit 1773f63d108b1b9b9d053d8c95f8300c556f93b8 ] F2FS-fs (dm-55): access invalid blkaddr:972878540 Call trace: dump_backtrace+0xec/0x128 show_stack+0x18/0x28 dump_stack_lvl+0x40/0x88 dump_stack+0x18/0x24 __f2fs_is_valid_blkaddr+0x360/0x3b4 f2fs_is_valid_blkaddr+0x