[f2fs-dev] [PATCH AUTOSEL 4.19 11/13] f2fs: fix to drop all dirty pages during umount() if cp_error is set

2023-05-04 Thread Sasha Levin
From: Chao Yu [ Upstream commit c9b3649a934d13115354bcbb638076f03a30 ] xfstest generic/361 reports a bug as below: f2fs_bug_on(sbi, sbi->fsync_node_num); kernel BUG at fs/f2fs/super.c:1627! RIP: 0010:f2fs_put_super+0x3a8/0x3b0 Call Trace: generic_shutdown_super+0x8c/0x1b0 kill_block_supe

[f2fs-dev] [PATCH AUTOSEL 5.4 13/18] f2fs: fix to drop all dirty pages during umount() if cp_error is set

2023-05-04 Thread Sasha Levin
From: Chao Yu [ Upstream commit c9b3649a934d13115354bcbb638076f03a30 ] xfstest generic/361 reports a bug as below: f2fs_bug_on(sbi, sbi->fsync_node_num); kernel BUG at fs/f2fs/super.c:1627! RIP: 0010:f2fs_put_super+0x3a8/0x3b0 Call Trace: generic_shutdown_super+0x8c/0x1b0 kill_block_supe

[f2fs-dev] [PATCH AUTOSEL 5.10 15/24] f2fs: fix to drop all dirty pages during umount() if cp_error is set

2023-05-04 Thread Sasha Levin
From: Chao Yu [ Upstream commit c9b3649a934d13115354bcbb638076f03a30 ] xfstest generic/361 reports a bug as below: f2fs_bug_on(sbi, sbi->fsync_node_num); kernel BUG at fs/f2fs/super.c:1627! RIP: 0010:f2fs_put_super+0x3a8/0x3b0 Call Trace: generic_shutdown_super+0x8c/0x1b0 kill_block_supe

[f2fs-dev] [PATCH AUTOSEL 5.15 18/30] f2fs: fix to check readonly condition correctly

2023-05-04 Thread Sasha Levin
From: Chao Yu [ Upstream commit d78dfefcde9d311284434560d69c0478c55a657e ] With below case, it can mount multi-device image w/ rw option, however one of secondary device is set as ro, later update will cause panic, so let's introduce f2fs_dev_is_readonly(), and check multi-devices rw status in f

[f2fs-dev] [PATCH AUTOSEL 5.15 17/30] f2fs: fix to drop all dirty pages during umount() if cp_error is set

2023-05-04 Thread Sasha Levin
From: Chao Yu [ Upstream commit c9b3649a934d13115354bcbb638076f03a30 ] xfstest generic/361 reports a bug as below: f2fs_bug_on(sbi, sbi->fsync_node_num); kernel BUG at fs/f2fs/super.c:1627! RIP: 0010:f2fs_put_super+0x3a8/0x3b0 Call Trace: generic_shutdown_super+0x8c/0x1b0 kill_block_supe

[f2fs-dev] [PATCH AUTOSEL 6.1 24/49] f2fs: fix to check readonly condition correctly

2023-05-04 Thread Sasha Levin
From: Chao Yu [ Upstream commit d78dfefcde9d311284434560d69c0478c55a657e ] With below case, it can mount multi-device image w/ rw option, however one of secondary device is set as ro, later update will cause panic, so let's introduce f2fs_dev_is_readonly(), and check multi-devices rw status in f

[f2fs-dev] [PATCH AUTOSEL 6.1 22/49] f2fs: Fix system crash due to lack of free space in LFS

2023-05-04 Thread Sasha Levin
From: Yonggil Song [ Upstream commit d11cef14f8146f3babd286c2cc8ca09c166295e2 ] When f2fs tries to checkpoint during foreground gc in LFS mode, system crash occurs due to lack of free space if the amount of dirty node and dentry pages generated by data migration exceeds free space. The reproduct

[f2fs-dev] [PATCH AUTOSEL 6.1 23/49] f2fs: fix to drop all dirty pages during umount() if cp_error is set

2023-05-04 Thread Sasha Levin
From: Chao Yu [ Upstream commit c9b3649a934d13115354bcbb638076f03a30 ] xfstest generic/361 reports a bug as below: f2fs_bug_on(sbi, sbi->fsync_node_num); kernel BUG at fs/f2fs/super.c:1627! RIP: 0010:f2fs_put_super+0x3a8/0x3b0 Call Trace: generic_shutdown_super+0x8c/0x1b0 kill_block_supe

[f2fs-dev] [PATCH AUTOSEL 6.2 26/53] f2fs: fix to drop all dirty pages during umount() if cp_error is set

2023-05-04 Thread Sasha Levin
From: Chao Yu [ Upstream commit c9b3649a934d13115354bcbb638076f03a30 ] xfstest generic/361 reports a bug as below: f2fs_bug_on(sbi, sbi->fsync_node_num); kernel BUG at fs/f2fs/super.c:1627! RIP: 0010:f2fs_put_super+0x3a8/0x3b0 Call Trace: generic_shutdown_super+0x8c/0x1b0 kill_block_supe

[f2fs-dev] [PATCH AUTOSEL 6.2 25/53] f2fs: Fix system crash due to lack of free space in LFS

2023-05-04 Thread Sasha Levin
From: Yonggil Song [ Upstream commit d11cef14f8146f3babd286c2cc8ca09c166295e2 ] When f2fs tries to checkpoint during foreground gc in LFS mode, system crash occurs due to lack of free space if the amount of dirty node and dentry pages generated by data migration exceeds free space. The reproduct

[f2fs-dev] [PATCH AUTOSEL 6.2 27/53] f2fs: fix to check readonly condition correctly

2023-05-04 Thread Sasha Levin
From: Chao Yu [ Upstream commit d78dfefcde9d311284434560d69c0478c55a657e ] With below case, it can mount multi-device image w/ rw option, however one of secondary device is set as ro, later update will cause panic, so let's introduce f2fs_dev_is_readonly(), and check multi-devices rw status in f

[f2fs-dev] [PATCH AUTOSEL 6.3 43/59] f2fs: relax sanity check if checkpoint is corrupted

2023-05-04 Thread Sasha Levin
From: Jaegeuk Kim [ Upstream commit bd90c5cd339a9d7cdc609d2d6310b80dc697070d ] 1. extent_cache - let's drop the largest extent_cache 2. invalidate_block - don't show the warnings Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/checkpoint.c | 10 +++

[f2fs-dev] [PATCH AUTOSEL 6.3 28/59] f2fs: Fix system crash due to lack of free space in LFS

2023-05-04 Thread Sasha Levin
From: Yonggil Song [ Upstream commit d11cef14f8146f3babd286c2cc8ca09c166295e2 ] When f2fs tries to checkpoint during foreground gc in LFS mode, system crash occurs due to lack of free space if the amount of dirty node and dentry pages generated by data migration exceeds free space. The reproduct

[f2fs-dev] [PATCH AUTOSEL 6.3 29/59] f2fs: fix to drop all dirty pages during umount() if cp_error is set

2023-05-04 Thread Sasha Levin
From: Chao Yu [ Upstream commit c9b3649a934d13115354bcbb638076f03a30 ] xfstest generic/361 reports a bug as below: f2fs_bug_on(sbi, sbi->fsync_node_num); kernel BUG at fs/f2fs/super.c:1627! RIP: 0010:f2fs_put_super+0x3a8/0x3b0 Call Trace: generic_shutdown_super+0x8c/0x1b0 kill_block_supe

[f2fs-dev] [PATCH AUTOSEL 6.3 30/59] f2fs: fix to check readonly condition correctly

2023-05-04 Thread Sasha Levin
From: Chao Yu [ Upstream commit d78dfefcde9d311284434560d69c0478c55a657e ] With below case, it can mount multi-device image w/ rw option, however one of secondary device is set as ro, later update will cause panic, so let's introduce f2fs_dev_is_readonly(), and check multi-devices rw status in f

[f2fs-dev] [PATCH] f2fs: fix to call invalidate_mapping_pages in f2fs_move_file_range

2023-05-04 Thread Yangtao Li via Linux-f2fs-devel
In the following scenario, after executing the move_range ioctl syscall, the block size of the source file is 0, but data can still be read. # stat test File: test Size: 6 Blocks: 8 IO Block: 4096 regular file # ./new_f2fs_io move_range test test_move_range 0 0 0

[f2fs-dev] [PATCH] f2fs_io: support move_range command

2023-05-04 Thread Yangtao Li via Linux-f2fs-devel
This patch supports a new sub-command 'move_range' in f2fs_io to move a range of data blocks from source file to destination file via F2FS_IOC_MOVE_RANGE ioctl. Signed-off-by: Yangtao Li --- man/f2fs_io.8 | 4 tools/f2fs_io/f2fs_io.c | 35 +++ 2 fi

Re: [f2fs-dev] [syzbot] [f2fs?] WARNING: lock held when returning to user space in f2fs_write_single_data_page

2023-05-04 Thread Aleksandr Nogikh via Linux-f2fs-devel
On Thu, May 4, 2023 at 3:48 PM Chao Yu wrote: > > Hi, > > On 2023/5/4 21:31, syzbot wrote: > > Hello, > > > > syzbot has tested the proposed patch but the reproducer is still triggering > > an issue: > > It said the reproducer is still triggering an issue, however, there is > no error output from

Re: [f2fs-dev] [syzbot] [f2fs?] WARNING: lock held when returning to user space in f2fs_write_single_data_page

2023-05-04 Thread Chao Yu
Hi, On 2023/5/4 21:31, syzbot wrote: Hello, syzbot has tested the proposed patch but the reproducer is still triggering an issue: It said the reproducer is still triggering an issue, however, there is no error output from the test. Could you please help to check whether such status is norma

Re: [f2fs-dev] [syzbot] [f2fs?] WARNING: lock held when returning to user space in f2fs_write_single_data_page

2023-05-04 Thread syzbot
Hello, syzbot has tested the proposed patch but the reproducer is still triggering an issue: no output from test machine Tested on: commit: 2adb872d f2fs: fix potential deadlock due to unpaired .. git tree: https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git dev-test

[f2fs-dev] Fotovoltaické rozvodnice

2023-05-04 Thread Leoš Sládek via Linux-f2fs-devel
Dobrý den, obracím se na Vás jménem dlouholetého výrobce fotovoltaických rozvodnic určených pro soukromé i průmyslové použití. Dodáváme fotovoltaické rozvodnice na zakázku a jsme schopni realizovat i ty nejnáročnější požadavky instalačních firem, velkoobchodů a distributorů. Využíváme nejkvali