All of lore.kernel.org
 help / color / mirror / Atom feed
* [f2fs-dev] kernel BUG at fs/f2fs/extent_cache.c:730 and subsequent warning (6.2-rc8)
@ 2023-02-14 21:07 Ondřej Jirman
  2023-02-14 22:57 ` Ondřej Jirman
  0 siblings, 1 reply; 4+ messages in thread
From: Ondřej Jirman @ 2023-02-14 21:07 UTC (permalink / raw)
  To: linux-f2fs-devel

Hello,

I'm trying 6.2-rc8 on my Orange Pi PC and noticed this bug in dmesg and
locked-up fsync. (impossible to write to the filesystem)

This just happened after first reboot from v6.1.11.

[    5.908783] ------------[ cut here ]------------
[    5.908809] kernel BUG at fs/f2fs/extent_cache.c:730!
[    5.908823] Internal error: Oops - BUG: 0 [#1] SMP ARM
[    5.908833] Modules linked in:
[    5.908845] CPU: 1 PID: 170 Comm: systemd-hwdb Not tainted 6.2.0-rc8-00439-g5af5ffe2dcc6 #6
[    5.908856] Hardware name: Allwinner sun8i Family
[    5.908862] PC is at __update_extent_tree_range+0x3f8/0x5c4
[    5.908881] LR is at 0xc21066b0
[    5.908889] pc : [<c069cb7c>]    lr : [<c21066b0>]    psr: 60070013
[    5.908896] sp : f15b5a98  ip : f15b5b18  fp : 00000000
[    5.908901] r10: c21066a0  r9 : 00000001  r8 : c2119100
[    5.908907] r7 : 00000002  r6 : 00000001  r5 : 00000000  r4 : c2106690
[    5.908913] r3 : 00000000  r2 : 0016c7e3  r1 : 00001000  r0 : 00000000
[    5.908920] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
[    5.908929] Control: 30c5387d  Table: 439252c0  DAC: 1e4456a8
[    5.908934] Register r0 information: NULL pointer
[    5.908946] Register r1 information: non-paged memory
[    5.908953] Register r2 information: non-paged memory
[    5.908960] Register r3 information: NULL pointer
[    5.908967] Register r4 information: slab f2fs_extent_node start c2106690 pointer offset 0 size 56
[    5.908993] Register r5 information: NULL pointer
[    5.909000] Register r6 information: non-paged memory
[    5.909008] Register r7 information: non-paged memory
[    5.909015] Register r8 information: slab kmalloc-rcl-64 start c2119100 pointer offset 0 size 64
[    5.909034] Register r9 information: non-paged memory
[    5.909042] Register r10 information: slab f2fs_extent_node start c2106690 pointer offset 16 size 56
[    5.909061] Register r11 information: NULL pointer
[    5.909069] Register r12 information: 2-page vmalloc region starting at 0xf15b4000 allocated at kernel_clone+0x84/0x2e8
[    5.909091] Process systemd-hwdb (pid: 170, stack limit = 0xf893aa64)
[    5.909103] Stack: (0xf15b5a98 to 0xf15b6000)
[    5.909111] 5a80:                                                       f15b5ae4 f15b5ae8
[    5.909121] 5aa0: f15b5aec 00000000 f15b5adf 00000000 ef780af0 00000001 00000000 00000000
[    5.909130] 5ac0: c2ad7000 00000001 c211911c c2146b98 f15b5b50 00000001 00000000 01000000
[    5.909139] 5ae0: 00000000 00000000 c2106698 c2106690 c2fd6600 c068dfd0 00011d39 00000b30
[    5.909148] 5b00: 00000000 00001000 00000000 00000001 0016c7e3 00000000 00000000 00001000
[    5.909157] 5b20: c2b56000 f15b5bfc 00000000 c2ad7000 00000000 00001000 00000000 00000001
[    5.909167] 5b40: 00000001 c069cf50 f15b5c54 c067e65c 00000001 00000001 0016c7e4 00000000
[    5.909176] 5b60: 00000000 00000000 ef780af0 c22fc3f0 c22fc3f0 00000000 00001000 c03517d4
[    5.909185] 5b80: ef780af0 f15b5c54 f15b5bfc c2ad7000 00000000 00001000 00000000 00000001
[    5.909194] 5ba0: 00000001 c06943e0 00000000 f15b5c54 011d3914 00010000 f15b5c54 ef780b14
[    5.909204] 5bc0: c2146d50 f15b5bfc f15b5d1c c0682f90 00011d39 00011d39 ffffffff c068d700
[    5.909213] 5be0: 00000000 00000000 00000000 00000000 00000000 00000000 c2ad7000 c2146b98
[    5.909222] 5c00: ef780af0 ef780af0 00011d39 00000001 00000001 0016c7e4 00011d3b c2146b98
[    5.909232] 5c20: ef780b14 f15b5e78 c2ad7000 00000b2f f15b5d1c c068349c 00000000 c0687688
[    5.909241] 5c40: 00000000 f15b5d14 00b2fe98 00000001 00000000 c2ad7000 00011d39 00000000
[    5.909250] 5c60: 00000001 00000001 00000800 0016c7e4 ffffffff ef780b14 00000000 00000000
[    5.909259] 5c80: 00000100 00000122 00000001 00000000 00000001 00000000 00000000 00000006
[    5.909269] 5ca0: f15b5e78 f15b5d14 f15b5d28 00000000 00001000 ef780b14 c2146b98 f15b5e78
[    5.909278] 5cc0: 00000001 f15b5d70 fffff000 c2146ca0 00000000 c06838d8 f15b5e78 00000006
[    5.909287] 5ce0: 00000000 00000001 ffffffff 00000001 c2ad7000 00000010 00000000 00000002
[    5.909296] 5d00: 00000006 00000001 00000000 00000001 00000000 00000000 00000010 00000001
[    5.909305] 5d20: 00000000 00000001 00000000 00000000 ef780af0 c2146b98 ffffffff 00000000
[    5.909313] 5d40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    5.909323] 5d60: 00000000 00000000 00000000 00000000 effbc638 ef780b14 ef780b38 ef780b5c
[    5.909332] 5d80: ef780b80 ef780ba4 ef780bc8 ef780bec ef780c10 ef780c34 ef780c58 ef780c7c
[    5.909341] 5da0: ef780ca0 ef780cc4 ef780ce8 ef780d0c 00000000 c2146b98 f15b5e78 c2146ca0
[    5.909351] 5dc0: c2ad7000 c2ad702c 00000006 c034e4fc 7fffffff c0683f80 00000000 00000000
[    5.909360] 5de0: 00000001 c0000000 f15b5de8 f15b5de8 00000000 fffea756 f15b5e78 c2146ca0
[    5.909369] 5e00: c18f1f40 c3832800 c1803d40 c0351268 00000000 c2146ca0 f15b5f20 c0346030
[    5.909379] 5e20: 00000050 00000050 effbc638 00000000 c374e6c0 00000000 00000000 c2de2f80
[    5.909388] 5e40: c2146b98 c2146ca0 f15b5e78 c374e6c0 7fffffff ffffffff c2146ca0 c0345e7c
[    5.909397] 5e60: 00000000 00000000 00000000 c0346584 00000050 00000000 7ffffffe 00000000
[    5.909406] 5e80: 00000000 00000000 ffffffff 7fffffff 00000001 00000000 00000000 c3832800
[    5.909416] 5ea0: c2146b98 00000013 00000000 00000000 00002000 00000000 00000000 00000000
[    5.909425] 5ec0: c374e6c0 c2146b98 00000000 c2ad7000 00000000 00011d39 ffffffff c065d6e8
[    5.909434] 5ee0: ffffffff 7fffffff c2146b98 c2146d50 f15b5f88 00000000 7fffffff 00000000
[    5.909443] 5f00: 00000000 00000000 00000000 00000000 00000001 00000000 00000000 00000000
[    5.909451] 5f20: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    5.909461] 5f40: c2b55c00 ffffffff 7fffffff c374e6c0 00000076 c0200298 c2de2f80 00000076
[    5.909470] 5f60: 00e9b148 c065dd64 ffffffff 7fffffff 00000000 00000000 00000000 c374e6c0
[    5.909479] 5f80: 00000000 c03f5440 ffffffff 7fffffff 00000000 00000050 00ebcbc8 b6f3c400
[    5.909489] 5fa0: 00000020 c0200060 00ebcbc8 b6f3c400 00000003 00000202 00000000 00000000
[    5.909498] 5fc0: 00ebcbc8 b6f3c400 00000020 00000076 00000000 00b2fe98 00e9b166 00e9b148
[    5.909507] 5fe0: bee10ba0 bee11ba0 b6cc35ec b6b166a4 60070010 00000003 00000000 00000000
[    5.909523]  __update_extent_tree_range from __update_extent_cache+0x208/0x300
[    5.909536]  __update_extent_cache from f2fs_outplace_write_data+0x68/0x90
[    5.909554]  f2fs_outplace_write_data from f2fs_do_write_data_page+0x424/0x500
[    5.909572]  f2fs_do_write_data_page from f2fs_write_single_data_page+0x430/0x614
[    5.909585]  f2fs_write_single_data_page from f2fs_write_cache_pages+0x258/0x72c
[    5.909599]  f2fs_write_cache_pages from f2fs_write_data_pages+0x1d4/0x268
[    5.909612]  f2fs_write_data_pages from do_writepages+0x60/0x19c
[    5.909627]  do_writepages from filemap_fdatawrite_wbc+0x64/0x84
[    5.909643]  filemap_fdatawrite_wbc from file_write_and_wait_range+0x80/0xe4
[    5.909658]  file_write_and_wait_range from f2fs_do_sync_file+0xc0/0x700
[    5.909675]  f2fs_do_sync_file from f2fs_sync_file+0x3c/0x4c
[    5.909688]  f2fs_sync_file from do_fsync+0x40/0x74
[    5.909704]  do_fsync from ret_fast_syscall+0x0/0x4c
[    5.909717] Exception stack(0xf15b5fa8 to 0xf15b5ff0)
[    5.909726] 5fa0:                   00ebcbc8 b6f3c400 00000003 00000202 00000000 00000000
[    5.909735] 5fc0: 00ebcbc8 b6f3c400 00000020 00000076 00000000 00b2fe98 00e9b166 00e9b148
[    5.909743] 5fe0: bee10ba0 bee11ba0 b6cc35ec b6b166a4
[    5.909755] Code: e0873003 e0433005 e58d3060 eaffffb9 (e7f001f2) 
[    5.909765] ---[ end trace 0000000000000000 ]---
[    5.909773] ------------[ cut here ]------------
[    5.909778] WARNING: CPU: 1 PID: 170 at kernel/exit.c:812 do_exit+0x75c/0x8a4
[    5.909792] Modules linked in:
[    5.909800] CPU: 1 PID: 170 Comm: systemd-hwdb Tainted: G      D            6.2.0-rc8-00439-g5af5ffe2dcc6 #6
[    5.909809] Hardware name: Allwinner sun8i Family
[    5.909815]  unwind_backtrace from show_stack+0x10/0x14
[    5.909830]  show_stack from dump_stack_lvl+0x40/0x4c
[    5.909844]  dump_stack_lvl from __warn+0x88/0xc8
[    5.909860]  __warn from warn_slowpath_fmt+0x50/0x98
[    5.909878]  warn_slowpath_fmt from do_exit+0x75c/0x8a4
[    5.909893]  do_exit from make_task_dead+0x9c/0x144
[    5.909905]  make_task_dead from die+0x370/0x420
[    5.909916]  die from __und_svc_finish+0x0/0x38
[    5.909926] Exception stack(0xf15b5a48 to 0xf15b5a90)
[    5.909935] 5a40:                   00000000 00001000 0016c7e3 00000000 c2106690 00000000
[    5.909945] 5a60: 00000001 00000002 c2119100 00000001 c21066a0 00000000 f15b5b18 f15b5a98
[    5.909952] 5a80: c21066b0 c069cb7c 60070013 ffffffff
[    5.909958]  __und_svc_finish from __update_extent_tree_range+0x3f8/0x5c4
[    5.909971]  __update_extent_tree_range from __update_extent_cache+0x208/0x300
[    5.909982]  __update_extent_cache from f2fs_outplace_write_data+0x68/0x90
[    5.909998]  f2fs_outplace_write_data from f2fs_do_write_data_page+0x424/0x500
[    5.910014]  f2fs_do_write_data_page from f2fs_write_single_data_page+0x430/0x614
[    5.910027]  f2fs_write_single_data_page from f2fs_write_cache_pages+0x258/0x72c
[    5.910040]  f2fs_write_cache_pages from f2fs_write_data_pages+0x1d4/0x268
[    5.910053]  f2fs_write_data_pages from do_writepages+0x60/0x19c
[    5.910065]  do_writepages from filemap_fdatawrite_wbc+0x64/0x84
[    5.910077]  filemap_fdatawrite_wbc from file_write_and_wait_range+0x80/0xe4
[    5.910092]  file_write_and_wait_range from f2fs_do_sync_file+0xc0/0x700
[    5.910106]  f2fs_do_sync_file from f2fs_sync_file+0x3c/0x4c
[    5.910118]  f2fs_sync_file from do_fsync+0x40/0x74
[    5.910132]  do_fsync from ret_fast_syscall+0x0/0x4c
[    5.910143] Exception stack(0xf15b5fa8 to 0xf15b5ff0)
[    5.910152] 5fa0:                   00ebcbc8 b6f3c400 00000003 00000202 00000000 00000000
[    5.910161] 5fc0: 00ebcbc8 b6f3c400 00000020 00000076 00000000 00b2fe98 00e9b166 00e9b148
[    5.910168] 5fe0: bee10ba0 bee11ba0 b6cc35ec b6b166a4
[    5.910174] ---[ end trace 0000000000000000 ]---

Full dmesg: https://megous.com/dl/tmp/6.2-f2fs-bug

I had to cut power to shutdown the SBC. Afterwards I did run fsck.f2fs
on the uSD card from my PC which did not reveal any errors.

Info: [/dev/sdh3] Disk Model: Storage Device
Info: MKFS version
  "Linux version 4.18.16-arch1-1-ARCH (builduser@heftig-28760) (gcc version 8.2.1 20180831 (GCC)) #1 SMP PREEMPT Sat Oct 20 22:06:45 UTC 2018"
Info: FSCK version
  from "Linux version 5.3.10-00132-gf93775405cf5 (megi@core) (gcc version 9.2.1 20191013 (GCC)) #8 SMP Mon Nov 11 04:41:31 CET 2019"
    to "Linux version 6.1.11-arch1-1 (linux@archlinux) (gcc (GCC) 12.2.1 20230201, GNU ld (GNU Binutils) 2.40) #1 SMP PREEMPT_DYNAMIC Thu, 09 Feb 2023 20:06:08 +0000"
Info: superblock features = 0 :
Info: superblock encrypt level = 0, salt = 00000000000000000000000000000000
Info: Segments per section = 1
Info: Sections per zone = 1
Info: total FS sectors = 29019136 (14169 MB)
Info: CKPT version = 2482aff0
Info: checkpoint state = 40 :  crc sudden-power-off
[FSCK] Check node 1 / 56743 (0.00%)
[FSCK] Check node 5675 / 56743 (10.00%)
[FSCK] Check node 11349 / 56743 (20.00%)
[FSCK] Check node 17023 / 56743 (30.00%)
[FSCK] Check node 22697 / 56743 (40.00%)
[FSCK] Check node 28371 / 56743 (50.00%)
[FSCK] Check node 34045 / 56743 (60.00%)
[FSCK] Check node 39719 / 56743 (70.00%)
[FSCK] Check node 45393 / 56743 (80.00%)
[FSCK] Check node 51067 / 56743 (90.00%)
[FSCK] Check node 56741 / 56743 (100.00%)

[FSCK] Max image size: 5969 MB, Free space: 11907 MB
[FSCK] Unreachable nat entries                        [Ok..] [0x0]
[FSCK] SIT valid block bitmap checking                [Ok..]
[FSCK] Hard link checking for regular file            [Ok..] [0x4f6]
[FSCK] valid_block_count matching with CP             [Ok..] [0x68aad]
[FSCK] valid_node_count matching with CP (de lookup)  [Ok..] [0xdda7]
[FSCK] valid_node_count matching with CP (nat lookup) [Ok..] [0xdda7]
[FSCK] valid_inode_count matched with CP              [Ok..] [0xdd04]
[FSCK] free segment_count matched with CP             [Ok..] [0x1832]
[FSCK] next block offset is free                      [Ok..]
[FSCK] fixing SIT types
[FSCK] other corrupted bugs                           [Ok..]

Done: 0.000000 secs


After next reboot, I got further weird errors (corrupted files,
invalid ELF headers on one .so file, etc.): 

https://megous.com/dl/tmp/d409787d4dcb366a.png

Rebooting back to 6.1 fixes the errors and zle.so that had invalid
ELF header is again readable, and zsh works fine:

root@l1[zsh/5.9/zsh] ldd zle.so                                                                                                                                                                                                          OK #
	linux-vdso.so.1 (0xbeef9000)
	libncursesw.so.6 => /usr/lib/libncursesw.so.6 (0xb6e60000)
	libc.so.6 => /usr/lib/libc.so.6 (0xb6cc0000)
	/usr/lib/ld-linux-armhf.so.3 (0xb6f27000)
	libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xb6c90000)

Other filesystems (I have linux kernel on VFAT /boot partition seem
to work fine). I can update the kernel on VFAT partition and just reboot,
and it correctly reflects the changes and doesn't lock up.

The particular f2fs_bug_on itself seems to be a new thing in
6.2 https://megous.com/dl/tmp/d7b48ff75a19f285.png
This is a 32bit system.

Any ideas or suggestions?

kind regards,
	o.


_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [f2fs-dev] kernel BUG at fs/f2fs/extent_cache.c:730 and subsequent warning (6.2-rc8)
  2023-02-14 21:07 [f2fs-dev] kernel BUG at fs/f2fs/extent_cache.c:730 and subsequent warning (6.2-rc8) Ondřej Jirman
@ 2023-02-14 22:57 ` Ondřej Jirman
  2023-03-07 17:27   ` Jaegeuk Kim
  0 siblings, 1 reply; 4+ messages in thread
From: Ondřej Jirman @ 2023-02-14 22:57 UTC (permalink / raw)
  To: linux-f2fs-devel

On Tue, Feb 14, 2023 at 10:07:23PM +0100, megi xff wrote:
> Hello,
> 
> I'm trying 6.2-rc8 on my Orange Pi PC and noticed this bug in dmesg and
> locked-up fsync. (impossible to write to the filesystem)
> 
> [...]
>
> This is a 32bit system.

A bit of followup... I've tried the same kernel on another 32bit system, and
also on a 64bit system, and this seems specific to 32bit systems (happens
on almost every boot). I've run -rc8 and earlier on several 64bit systems
for many days without issues, but the same kernel bugs out on 32bit systems
very early during boot.

Here is more debugging output that can be helpful:

sysrq w

[  571.133078] sysrq: Show Blocked State
[  571.135646] task:kworker/u8:0    state:D stack:0     pid:9     ppid:2      flags:0x00000000
[  571.135682] Workqueue: writeback wb_workfn (flush-179:0)
[  571.135720]  __schedule from schedule+0x50/0xa0
[  571.135744]  schedule from schedule_preempt_disabled+0xc/0x10
[  571.135763]  schedule_preempt_disabled from __mutex_lock.constprop.0+0x208/0x50c
[  571.135784]  __mutex_lock.constprop.0 from f2fs_write_data_pages+0x1bc/0x268
[  571.135807]  f2fs_write_data_pages from do_writepages+0x60/0x19c
[  571.135828]  do_writepages from __writeback_single_inode+0x2c/0x1e0
[  571.135845]  __writeback_single_inode from writeback_sb_inodes+0x1d0/0x410
[  571.135863]  writeback_sb_inodes from __writeback_inodes_wb+0x38/0xe4
[  571.135880]  __writeback_inodes_wb from wb_writeback+0x170/0x1a8
[  571.135898]  wb_writeback from wb_workfn+0x1ec/0x370
[  571.135914]  wb_workfn from process_one_work+0x1e8/0x3e8
[  571.135941]  process_one_work from worker_thread+0x48/0x540
[  571.135961]  worker_thread from kthread+0xd4/0xf0
[  571.135981]  kthread from ret_from_fork+0x14/0x1c
[  571.136000] Exception stack(0xe0841fb0 to 0xe0841ff8)
[  571.136012] 1fa0:                                     00000000 00000000 00000000 00000000
[  571.136024] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  571.136036] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[  571.136071] task:kworker/u8:1    state:D stack:0     pid:47    ppid:2      flags:0x00000000
[  571.136088] Workqueue: writeback wb_workfn (flush-179:0)
[  571.136108]  __schedule from schedule+0x50/0xa0
[  571.136125]  schedule from schedule_preempt_disabled+0xc/0x10
[  571.136142]  schedule_preempt_disabled from __mutex_lock.constprop.0+0x208/0x50c
[  571.136161]  __mutex_lock.constprop.0 from f2fs_write_data_pages+0x1bc/0x268
[  571.136181]  f2fs_write_data_pages from do_writepages+0x60/0x19c
[  571.136197]  do_writepages from __writeback_single_inode+0x2c/0x1e0
[  571.136213]  __writeback_single_inode from writeback_sb_inodes+0x1d0/0x410
[  571.136231]  writeback_sb_inodes from __writeback_inodes_wb+0x38/0xe4
[  571.136248]  __writeback_inodes_wb from wb_writeback+0x170/0x1a8
[  571.136265]  wb_writeback from wb_workfn+0x1ec/0x370
[  571.136281]  wb_workfn from process_one_work+0x1e8/0x3e8
[  571.136303]  process_one_work from worker_thread+0x48/0x540
[  571.136323]  worker_thread from kthread+0xd4/0xf0
[  571.136341]  kthread from ret_from_fork+0x14/0x1c
[  571.136359] Exception stack(0xe08e9fb0 to 0xe08e9ff8)
[  571.136370] 9fa0:                                     00000000 00000000 00000000 00000000
[  571.136383] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  571.136395] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[  571.136437] task:kworker/u8:2    state:D stack:0     pid:89    ppid:2      flags:0x00000000
[  571.136454] Workqueue: writeback wb_workfn (flush-179:0)
[  571.136473]  __schedule from schedule+0x50/0xa0
[  571.136489]  schedule from schedule_preempt_disabled+0xc/0x10
[  571.136507]  schedule_preempt_disabled from __mutex_lock.constprop.0+0x208/0x50c
[  571.136526]  __mutex_lock.constprop.0 from f2fs_write_data_pages+0x1bc/0x268
[  571.136546]  f2fs_write_data_pages from do_writepages+0x60/0x19c
[  571.136562]  do_writepages from __writeback_single_inode+0x2c/0x1e0
[  571.136579]  __writeback_single_inode from writeback_sb_inodes+0x1d0/0x410
[  571.136596]  writeback_sb_inodes from __writeback_inodes_wb+0x38/0xe4
[  571.136613]  __writeback_inodes_wb from wb_writeback+0x170/0x1a8
[  571.136630]  wb_writeback from wb_workfn+0x1ec/0x370
[  571.136646]  wb_workfn from process_one_work+0x1e8/0x3e8
[  571.136669]  process_one_work from worker_thread+0x48/0x540
[  571.136688]  worker_thread from kthread+0xd4/0xf0
[  571.136706]  kthread from ret_from_fork+0x14/0x1c
[  571.136724] Exception stack(0xe0a05fb0 to 0xe0a05ff8)
[  571.136735] 5fa0:                                     00000000 00000000 00000000 00000000
[  571.136747] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  571.136759] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[  571.136855] task:sshd            state:D stack:0     pid:243   ppid:227    flags:0x00000005
[  571.136880]  __schedule from schedule+0x50/0xa0
[  571.136899]  schedule from io_schedule+0x34/0x44
[  571.136916]  io_schedule from folio_wait_bit_common+0x150/0x308
[  571.136938]  folio_wait_bit_common from __filemap_get_folio+0x1d0/0x3e8
[  571.136961]  __filemap_get_folio from pagecache_get_page+0xc/0x3c
[  571.136980]  pagecache_get_page from f2fs_write_begin+0x6c/0xc84
[  571.136999]  f2fs_write_begin from generic_perform_write+0xa8/0x1b8
[  571.137019]  generic_perform_write from f2fs_buffered_write_iter+0x40/0x9c
[  571.137041]  f2fs_buffered_write_iter from f2fs_file_write_iter+0x69c/0x930
[  571.137061]  f2fs_file_write_iter from vfs_write+0x1bc/0x384
[  571.137082]  vfs_write from ksys_write+0x54/0xc8
[  571.137099]  ksys_write from ret_fast_syscall+0x0/0x4c
[  571.137114] Exception stack(0xe0c8dfa8 to 0xe0c8dff0)
[  571.137126] dfa0:                   000dd280 00000000 00000005 bea113d4 00000180 00000000
[  571.137140] dfc0: 000dd280 00000000 00000005 00000004 00000002 005b91b8 bea12724 0000001c
[  571.137151] dfe0: 00000000 bea11384 b698bf5c b6933c10

Kind regards,
	o.


> Any ideas or suggestions?
> 
> kind regards,
> 	o.


_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [f2fs-dev] kernel BUG at fs/f2fs/extent_cache.c:730 and subsequent warning (6.2-rc8)
  2023-02-14 22:57 ` Ondřej Jirman
@ 2023-03-07 17:27   ` Jaegeuk Kim
  2023-03-07 17:57     ` Ondřej Jirman
  0 siblings, 1 reply; 4+ messages in thread
From: Jaegeuk Kim @ 2023-03-07 17:27 UTC (permalink / raw)
  To: Ondřej Jirman; +Cc: linux-f2fs-devel

Hi,

I think this should fix the issue. By any chance, could you give it a try?

https://patchwork.kernel.org/project/f2fs/patch/20230307151408.58490-1-chao@kernel.org/

Thanks,

On 02/14, Ondřej Jirman wrote:
> On Tue, Feb 14, 2023 at 10:07:23PM +0100, megi xff wrote:
> > Hello,
> > 
> > I'm trying 6.2-rc8 on my Orange Pi PC and noticed this bug in dmesg and
> > locked-up fsync. (impossible to write to the filesystem)
> > 
> > [...]
> >
> > This is a 32bit system.
> 
> A bit of followup... I've tried the same kernel on another 32bit system, and
> also on a 64bit system, and this seems specific to 32bit systems (happens
> on almost every boot). I've run -rc8 and earlier on several 64bit systems
> for many days without issues, but the same kernel bugs out on 32bit systems
> very early during boot.
> 
> Here is more debugging output that can be helpful:
> 
> sysrq w
> 
> [  571.133078] sysrq: Show Blocked State
> [  571.135646] task:kworker/u8:0    state:D stack:0     pid:9     ppid:2      flags:0x00000000
> [  571.135682] Workqueue: writeback wb_workfn (flush-179:0)
> [  571.135720]  __schedule from schedule+0x50/0xa0
> [  571.135744]  schedule from schedule_preempt_disabled+0xc/0x10
> [  571.135763]  schedule_preempt_disabled from __mutex_lock.constprop.0+0x208/0x50c
> [  571.135784]  __mutex_lock.constprop.0 from f2fs_write_data_pages+0x1bc/0x268
> [  571.135807]  f2fs_write_data_pages from do_writepages+0x60/0x19c
> [  571.135828]  do_writepages from __writeback_single_inode+0x2c/0x1e0
> [  571.135845]  __writeback_single_inode from writeback_sb_inodes+0x1d0/0x410
> [  571.135863]  writeback_sb_inodes from __writeback_inodes_wb+0x38/0xe4
> [  571.135880]  __writeback_inodes_wb from wb_writeback+0x170/0x1a8
> [  571.135898]  wb_writeback from wb_workfn+0x1ec/0x370
> [  571.135914]  wb_workfn from process_one_work+0x1e8/0x3e8
> [  571.135941]  process_one_work from worker_thread+0x48/0x540
> [  571.135961]  worker_thread from kthread+0xd4/0xf0
> [  571.135981]  kthread from ret_from_fork+0x14/0x1c
> [  571.136000] Exception stack(0xe0841fb0 to 0xe0841ff8)
> [  571.136012] 1fa0:                                     00000000 00000000 00000000 00000000
> [  571.136024] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
> [  571.136036] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000
> [  571.136071] task:kworker/u8:1    state:D stack:0     pid:47    ppid:2      flags:0x00000000
> [  571.136088] Workqueue: writeback wb_workfn (flush-179:0)
> [  571.136108]  __schedule from schedule+0x50/0xa0
> [  571.136125]  schedule from schedule_preempt_disabled+0xc/0x10
> [  571.136142]  schedule_preempt_disabled from __mutex_lock.constprop.0+0x208/0x50c
> [  571.136161]  __mutex_lock.constprop.0 from f2fs_write_data_pages+0x1bc/0x268
> [  571.136181]  f2fs_write_data_pages from do_writepages+0x60/0x19c
> [  571.136197]  do_writepages from __writeback_single_inode+0x2c/0x1e0
> [  571.136213]  __writeback_single_inode from writeback_sb_inodes+0x1d0/0x410
> [  571.136231]  writeback_sb_inodes from __writeback_inodes_wb+0x38/0xe4
> [  571.136248]  __writeback_inodes_wb from wb_writeback+0x170/0x1a8
> [  571.136265]  wb_writeback from wb_workfn+0x1ec/0x370
> [  571.136281]  wb_workfn from process_one_work+0x1e8/0x3e8
> [  571.136303]  process_one_work from worker_thread+0x48/0x540
> [  571.136323]  worker_thread from kthread+0xd4/0xf0
> [  571.136341]  kthread from ret_from_fork+0x14/0x1c
> [  571.136359] Exception stack(0xe08e9fb0 to 0xe08e9ff8)
> [  571.136370] 9fa0:                                     00000000 00000000 00000000 00000000
> [  571.136383] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
> [  571.136395] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000
> [  571.136437] task:kworker/u8:2    state:D stack:0     pid:89    ppid:2      flags:0x00000000
> [  571.136454] Workqueue: writeback wb_workfn (flush-179:0)
> [  571.136473]  __schedule from schedule+0x50/0xa0
> [  571.136489]  schedule from schedule_preempt_disabled+0xc/0x10
> [  571.136507]  schedule_preempt_disabled from __mutex_lock.constprop.0+0x208/0x50c
> [  571.136526]  __mutex_lock.constprop.0 from f2fs_write_data_pages+0x1bc/0x268
> [  571.136546]  f2fs_write_data_pages from do_writepages+0x60/0x19c
> [  571.136562]  do_writepages from __writeback_single_inode+0x2c/0x1e0
> [  571.136579]  __writeback_single_inode from writeback_sb_inodes+0x1d0/0x410
> [  571.136596]  writeback_sb_inodes from __writeback_inodes_wb+0x38/0xe4
> [  571.136613]  __writeback_inodes_wb from wb_writeback+0x170/0x1a8
> [  571.136630]  wb_writeback from wb_workfn+0x1ec/0x370
> [  571.136646]  wb_workfn from process_one_work+0x1e8/0x3e8
> [  571.136669]  process_one_work from worker_thread+0x48/0x540
> [  571.136688]  worker_thread from kthread+0xd4/0xf0
> [  571.136706]  kthread from ret_from_fork+0x14/0x1c
> [  571.136724] Exception stack(0xe0a05fb0 to 0xe0a05ff8)
> [  571.136735] 5fa0:                                     00000000 00000000 00000000 00000000
> [  571.136747] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
> [  571.136759] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000
> [  571.136855] task:sshd            state:D stack:0     pid:243   ppid:227    flags:0x00000005
> [  571.136880]  __schedule from schedule+0x50/0xa0
> [  571.136899]  schedule from io_schedule+0x34/0x44
> [  571.136916]  io_schedule from folio_wait_bit_common+0x150/0x308
> [  571.136938]  folio_wait_bit_common from __filemap_get_folio+0x1d0/0x3e8
> [  571.136961]  __filemap_get_folio from pagecache_get_page+0xc/0x3c
> [  571.136980]  pagecache_get_page from f2fs_write_begin+0x6c/0xc84
> [  571.136999]  f2fs_write_begin from generic_perform_write+0xa8/0x1b8
> [  571.137019]  generic_perform_write from f2fs_buffered_write_iter+0x40/0x9c
> [  571.137041]  f2fs_buffered_write_iter from f2fs_file_write_iter+0x69c/0x930
> [  571.137061]  f2fs_file_write_iter from vfs_write+0x1bc/0x384
> [  571.137082]  vfs_write from ksys_write+0x54/0xc8
> [  571.137099]  ksys_write from ret_fast_syscall+0x0/0x4c
> [  571.137114] Exception stack(0xe0c8dfa8 to 0xe0c8dff0)
> [  571.137126] dfa0:                   000dd280 00000000 00000005 bea113d4 00000180 00000000
> [  571.137140] dfc0: 000dd280 00000000 00000005 00000004 00000002 005b91b8 bea12724 0000001c
> [  571.137151] dfe0: 00000000 bea11384 b698bf5c b6933c10
> 
> Kind regards,
> 	o.
> 
> 
> > Any ideas or suggestions?
> > 
> > kind regards,
> > 	o.
> 
> 
> _______________________________________________
> Linux-f2fs-devel mailing list
> Linux-f2fs-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel


_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [f2fs-dev] kernel BUG at fs/f2fs/extent_cache.c:730 and subsequent warning (6.2-rc8)
  2023-03-07 17:27   ` Jaegeuk Kim
@ 2023-03-07 17:57     ` Ondřej Jirman
  0 siblings, 0 replies; 4+ messages in thread
From: Ondřej Jirman @ 2023-03-07 17:57 UTC (permalink / raw)
  To: Jaegeuk Kim; +Cc: linux-f2fs-devel

Hello,

On Tue, Mar 07, 2023 at 09:27:45AM -0800, Jaegeuk Kim wrote:
> Hi,
> 
> I think this should fix the issue. By any chance, could you give it a try?
> 
> https://patchwork.kernel.org/project/f2fs/patch/20230307151408.58490-1-chao@kernel.org/

That seems to fix the issue.

Thank you,
	o.

> Thanks,
> 
> On 02/14, Ondřej Jirman wrote:
> > On Tue, Feb 14, 2023 at 10:07:23PM +0100, megi xff wrote:
> > > Hello,
> > > 
> > > I'm trying 6.2-rc8 on my Orange Pi PC and noticed this bug in dmesg and
> > > locked-up fsync. (impossible to write to the filesystem)
> > > 
> > > [...]
> > >
> > > This is a 32bit system.
> > 
> > A bit of followup... I've tried the same kernel on another 32bit system, and
> > also on a 64bit system, and this seems specific to 32bit systems (happens
> > on almost every boot). I've run -rc8 and earlier on several 64bit systems
> > for many days without issues, but the same kernel bugs out on 32bit systems
> > very early during boot.
> > 
> > Here is more debugging output that can be helpful:
> > 
> > sysrq w
> > 
> > [  571.133078] sysrq: Show Blocked State
> > [  571.135646] task:kworker/u8:0    state:D stack:0     pid:9     ppid:2      flags:0x00000000
> > [  571.135682] Workqueue: writeback wb_workfn (flush-179:0)
> > [  571.135720]  __schedule from schedule+0x50/0xa0
> > [  571.135744]  schedule from schedule_preempt_disabled+0xc/0x10
> > [  571.135763]  schedule_preempt_disabled from __mutex_lock.constprop.0+0x208/0x50c
> > [  571.135784]  __mutex_lock.constprop.0 from f2fs_write_data_pages+0x1bc/0x268
> > [  571.135807]  f2fs_write_data_pages from do_writepages+0x60/0x19c
> > [  571.135828]  do_writepages from __writeback_single_inode+0x2c/0x1e0
> > [  571.135845]  __writeback_single_inode from writeback_sb_inodes+0x1d0/0x410
> > [  571.135863]  writeback_sb_inodes from __writeback_inodes_wb+0x38/0xe4
> > [  571.135880]  __writeback_inodes_wb from wb_writeback+0x170/0x1a8
> > [  571.135898]  wb_writeback from wb_workfn+0x1ec/0x370
> > [  571.135914]  wb_workfn from process_one_work+0x1e8/0x3e8
> > [  571.135941]  process_one_work from worker_thread+0x48/0x540
> > [  571.135961]  worker_thread from kthread+0xd4/0xf0
> > [  571.135981]  kthread from ret_from_fork+0x14/0x1c
> > [  571.136000] Exception stack(0xe0841fb0 to 0xe0841ff8)
> > [  571.136012] 1fa0:                                     00000000 00000000 00000000 00000000
> > [  571.136024] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
> > [  571.136036] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000
> > [  571.136071] task:kworker/u8:1    state:D stack:0     pid:47    ppid:2      flags:0x00000000
> > [  571.136088] Workqueue: writeback wb_workfn (flush-179:0)
> > [  571.136108]  __schedule from schedule+0x50/0xa0
> > [  571.136125]  schedule from schedule_preempt_disabled+0xc/0x10
> > [  571.136142]  schedule_preempt_disabled from __mutex_lock.constprop.0+0x208/0x50c
> > [  571.136161]  __mutex_lock.constprop.0 from f2fs_write_data_pages+0x1bc/0x268
> > [  571.136181]  f2fs_write_data_pages from do_writepages+0x60/0x19c
> > [  571.136197]  do_writepages from __writeback_single_inode+0x2c/0x1e0
> > [  571.136213]  __writeback_single_inode from writeback_sb_inodes+0x1d0/0x410
> > [  571.136231]  writeback_sb_inodes from __writeback_inodes_wb+0x38/0xe4
> > [  571.136248]  __writeback_inodes_wb from wb_writeback+0x170/0x1a8
> > [  571.136265]  wb_writeback from wb_workfn+0x1ec/0x370
> > [  571.136281]  wb_workfn from process_one_work+0x1e8/0x3e8
> > [  571.136303]  process_one_work from worker_thread+0x48/0x540
> > [  571.136323]  worker_thread from kthread+0xd4/0xf0
> > [  571.136341]  kthread from ret_from_fork+0x14/0x1c
> > [  571.136359] Exception stack(0xe08e9fb0 to 0xe08e9ff8)
> > [  571.136370] 9fa0:                                     00000000 00000000 00000000 00000000
> > [  571.136383] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
> > [  571.136395] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000
> > [  571.136437] task:kworker/u8:2    state:D stack:0     pid:89    ppid:2      flags:0x00000000
> > [  571.136454] Workqueue: writeback wb_workfn (flush-179:0)
> > [  571.136473]  __schedule from schedule+0x50/0xa0
> > [  571.136489]  schedule from schedule_preempt_disabled+0xc/0x10
> > [  571.136507]  schedule_preempt_disabled from __mutex_lock.constprop.0+0x208/0x50c
> > [  571.136526]  __mutex_lock.constprop.0 from f2fs_write_data_pages+0x1bc/0x268
> > [  571.136546]  f2fs_write_data_pages from do_writepages+0x60/0x19c
> > [  571.136562]  do_writepages from __writeback_single_inode+0x2c/0x1e0
> > [  571.136579]  __writeback_single_inode from writeback_sb_inodes+0x1d0/0x410
> > [  571.136596]  writeback_sb_inodes from __writeback_inodes_wb+0x38/0xe4
> > [  571.136613]  __writeback_inodes_wb from wb_writeback+0x170/0x1a8
> > [  571.136630]  wb_writeback from wb_workfn+0x1ec/0x370
> > [  571.136646]  wb_workfn from process_one_work+0x1e8/0x3e8
> > [  571.136669]  process_one_work from worker_thread+0x48/0x540
> > [  571.136688]  worker_thread from kthread+0xd4/0xf0
> > [  571.136706]  kthread from ret_from_fork+0x14/0x1c
> > [  571.136724] Exception stack(0xe0a05fb0 to 0xe0a05ff8)
> > [  571.136735] 5fa0:                                     00000000 00000000 00000000 00000000
> > [  571.136747] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
> > [  571.136759] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000
> > [  571.136855] task:sshd            state:D stack:0     pid:243   ppid:227    flags:0x00000005
> > [  571.136880]  __schedule from schedule+0x50/0xa0
> > [  571.136899]  schedule from io_schedule+0x34/0x44
> > [  571.136916]  io_schedule from folio_wait_bit_common+0x150/0x308
> > [  571.136938]  folio_wait_bit_common from __filemap_get_folio+0x1d0/0x3e8
> > [  571.136961]  __filemap_get_folio from pagecache_get_page+0xc/0x3c
> > [  571.136980]  pagecache_get_page from f2fs_write_begin+0x6c/0xc84
> > [  571.136999]  f2fs_write_begin from generic_perform_write+0xa8/0x1b8
> > [  571.137019]  generic_perform_write from f2fs_buffered_write_iter+0x40/0x9c
> > [  571.137041]  f2fs_buffered_write_iter from f2fs_file_write_iter+0x69c/0x930
> > [  571.137061]  f2fs_file_write_iter from vfs_write+0x1bc/0x384
> > [  571.137082]  vfs_write from ksys_write+0x54/0xc8
> > [  571.137099]  ksys_write from ret_fast_syscall+0x0/0x4c
> > [  571.137114] Exception stack(0xe0c8dfa8 to 0xe0c8dff0)
> > [  571.137126] dfa0:                   000dd280 00000000 00000005 bea113d4 00000180 00000000
> > [  571.137140] dfc0: 000dd280 00000000 00000005 00000004 00000002 005b91b8 bea12724 0000001c
> > [  571.137151] dfe0: 00000000 bea11384 b698bf5c b6933c10
> > 
> > Kind regards,
> > 	o.
> > 
> > 
> > > Any ideas or suggestions?
> > > 
> > > kind regards,
> > > 	o.
> > 
> > 
> > _______________________________________________
> > Linux-f2fs-devel mailing list
> > Linux-f2fs-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel


_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-03-07 17:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-14 21:07 [f2fs-dev] kernel BUG at fs/f2fs/extent_cache.c:730 and subsequent warning (6.2-rc8) Ondřej Jirman
2023-02-14 22:57 ` Ondřej Jirman
2023-03-07 17:27   ` Jaegeuk Kim
2023-03-07 17:57     ` Ondřej Jirman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.