430 Star 1.6K Fork 1.7K

GVPopenEuler/kernel

【hulk-6.6】【erofs按需加载】【jbd2】WARNING in __jbd2_log_wait_for_space

已完成
任务
创建于  
2024-07-29 14:18

按需加载故障注入测试, ext4 + erofs 报如下 jbd2 WARNING

[ 5224.218106][T139804] __jbd2_log_wait_for_space: needed 256 blocks and only had 217 space available
[ 5224.219377][T139804] __jbd2_log_wait_for_space: no way to get more journal space in sdd-8
[ 5224.220617][T139804] ------------[ cut here ]------------
[ 5224.221403][T139804] WARNING: CPU: 2 PID: 139804 at fs/jbd2/checkpoint.c:109 __jbd2_log_wait_for_space+0x251/0x2e0
[ 5224.223107][T139804] Modules linked in:
[ 5224.223950][T139804] CPU: 2 PID: 139804 Comm: kworker/u8:3 Not tainted 6.6.0-g576141047e7b #1
[ 5224.225364][T139804] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
[ 5224.227386][T139804] Workqueue: fscache fscache_cookie_worker
[ 5224.228728][T139804] RIP: 0010:__jbd2_log_wait_for_space+0x251/0x2e0
[ 5224.229610][T139804] Code: e0 82 c2 90 48 c7 c7 20 82 c2 90 e8 19 dc 8d ff 48 8d 93 28 07 00 00 48 c7 c6 e0 82 cqmp_cmd_name: qmp_capabilities, arguments: {}
qmp_cmd_name: qmp_capabilities, arguments: {}
2 90 48 c7 c7 80 82 c2 90 e8 ff db 8d ff <0f> 0b be fb ff ff ff 48 89 df e8 qmp_cmd_name: human-monitor-command, arguments: {"command-line": "info registers", "cpu-index": 0}
qmp_cmd_name: human-monitor-command, arguments: {"command-line": "info registers", "cpu-index": 0}
60 c6 00 00 e9 9c fe ff ff 48 8d
qmp_cmd_name: human-monitor-command, arguments: {"command-line": "info registers", "cpu-index": 1}
qmp_cmd_name: human-monitor-command, arguments: {"command-line": "info registers", "cpu-index": 1}
[ 5224.233653][T139804] RSP: 0018:ffff888109b77840 EFLAGS: 00010246
qmp_cmd_name: human-monitor-command, arguments: {"command-line": "info registers", "cpu-index": 2}
qmp_cmd_name: human-monitor-command, arguments: {"command-line": "info registers", "cpu-index": 2}
[ 5224.235194][T139804] RAX: 0000000000000044 RBX: ffff888123e44000 RCX: ffffffff8ef2688dqmp_cmd_name: human-monitor-command, arguments: {"command-line": "info registers", "cpu-index": 3}
qmp_cmd_name: human-monitor-command, arguments: {"command-line": "info registers", "cpu-index": 3}

[ 5224.237213][T139804] RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff8881f7144e60
[ 5224.238353][T139804] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed102136eecc
[ 5224.239505][T139804] R10: ffff888109b77667 R11: 0000000000000001 R12: ffff888123e440b8
[ 5224.240687][T139804] R13: ffff888123e44388 R14: ffff888123e44770 R15: ffff888123e44198
[ 5224.241845][T139804] FS:  0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
[ 5224.243158][T139804] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 5224.244114][T139804] CR2: 00007f9fe9d9d405 CR3: 0000000109d58006 CR4: 0000000000770ee0
[ 5224.245264][T139804] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 5224.246373][T139804] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 5224.247479][T139804] PKRU: 55555554
[ 5224.248025][T139804] Call Trace:
[ 5224.248487][T139804]  <TASK>
[ 5224.248949][T139804]  ? __warn+0xa1/0x1f0
[ 5224.249527][T139804]  ? __jbd2_log_wait_for_space+0x251/0x2e0
[ 5224.250398][T139804]  ? report_bug+0x1de/0x200
[ 5224.251100][T139804]  ? handle_bug+0x3c/0x70
[ 5224.251757][T139804]  ? exc_invalid_op+0x13/0x60
[ 5224.252417][T139804]  ? asm_exc_invalid_op+0x16/0x20
[ 5224.253193][T139804]  ? tick_nohz_tick_stopped+0x1d/0x30
[ 5224.253984][T139804]  ? __jbd2_log_wait_for_space+0x251/0x2e0
[ 5224.254901][T139804]  add_transaction_credits+0x5d1/0x5e0
[ 5224.255708][T139804]  ? __pfx_lock_acquire+0x10/0x10
[ 5224.256454][T139804]  ? __pfx_add_transaction_credits+0x10/0x10
[ 5224.257329][T139804]  ? check_chain_key+0x1fb/0x2a0
[ 5224.258063][T139804]  ? start_this_handle+0x2f4/0x6a0
[ 5224.258858][T139804]  start_this_handle+0x1ef/0x6a0
[ 5224.259573][T139804]  ? __pfx_start_this_handle+0x10/0x10
[ 5224.260370][T139804]  ? lockdep_hardirqs_on_prepare.part.0+0xf9/0x1c0
[ 5224.261292][T139804]  ? _raw_spin_unlock_irqrestore+0x45/0x60
[ 5224.262154][T139804]  ? rcu_is_watching+0x1f/0x40
[ 5224.262853][T139804]  ? kmem_cache_alloc+0x433/0x5f0
[ 5224.263593][T139804]  jbd2__journal_start+0x18b/0x340
[ 5224.264365][T139804]  ext4_dirty_inode+0x5d/0xb0
[ 5224.265086][T139804]  __mark_inode_dirty+0xe4/0x5d0
[ 5224.265832][T139804]  generic_update_time+0x60/0x70
[ 5224.266525][T139804]  touch_atime+0x26e/0x2a0
[ 5224.267197][T139804]  cachefiles_open_file+0x1ce/0x3b0
[ 5224.267976][T139804]  ? __pfx_cachefiles_open_file+0x10/0x10
[ 5224.268825][T139804]  ? rcu_is_watching+0x1f/0x40
[ 5224.269517][T139804]  cachefiles_lookup_cookie+0x98/0x180
[ 5224.270394][T139804]  fscache_perform_lookup+0x6b/0x310
[ 5224.271185][T139804]  fscache_cookie_state_machine+0x405/0x740
[ 5224.272080][T139804]  fscache_cookie_worker+0x6b/0x120
[ 5224.272851][T139804]  process_one_work+0x41a/0x880
[ 5224.273572][T139804]  ? __pfx_process_one_work+0x10/0x10
[ 5224.274343][T139804]  ? __try_to_del_timer_sync+0xb4/0x100
[ 5224.275162][T139804]  ? __list_add_valid_or_report+0x33/0xd0
[ 5224.276063][T139804]  worker_thread+0x375/0x660
[ 5224.276798][T139804]  ? __pfx_worker_thread+0x10/0x10
[ 5224.277509][T139804]  kthread+0x16a/0x1a0
[ 5224.278115][T139804]  ? __pfx_kthread+0x10/0x10
[ 5224.278810][T139804]  ret_from_fork+0x2d/0x50
[ 5224.279426][T139804]  ? __pfx_kthread+0x10/0x10
[ 5224.280200][T139804]  ret_from_fork_asm+0x1b/0x30
[ 5224.280981][T139804]  </TASK>
[ 5224.281416][T139804] Kernel panic - not syncing: kernel: panic_on_warn set ...
[ 5224.282408][T139804] CPU: 2 PID: 139804 Comm: kworker/u8:3 Not tainted 6.6.0-g576141047e7b #1
[ 5224.283293][T168993] erofs: (device erofs): erofs_read_superblock: cannot read erofs superblock
[ 5224.284740][T139804] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
[ 5224.286366][T139804] Workqueue: fscache fscache_cookie_worker
[ 5224.287173][T139804] Call Trace:
[ 5224.287642][T139804]  <TASK>
[ 5224.288072][T139804]  dump_stack_lvl+0x58/0xc0
[ 5224.288723][T139804]  panic+0x41b/0x470
[ 5224.289266][T139804]  ? __pfx_panic+0x10/0x10
[ 5224.289954][T139804]  ? __jbd2_log_wait_for_space+0x251/0x2e0
[ 5224.290762][T139804]  check_panic_on_warn+0x5d/0x80
[ 5224.291439][T139804]  __warn+0xad/0x1f0
[ 5224.291998][T139804]  ? __jbd2_log_wait_for_space+0x251/0x2e0
[ 5224.292814][T139804]  report_bug+0x1de/0x200
[ 5224.293438][T139804]  handle_bug+0x3c/0x70
[ 5224.294020][T139804]  exc_invalid_op+0x13/0x60
[ 5224.294655][T139804]  asm_exc_invalid_op+0x16/0x20
[ 5224.295322][T139804] RIP: 0010:__jbd2_log_wait_for_space+0x251/0x2e0
[ 5224.296203][T139804] Code: e0 82 c2 90 48 c7 c7 20 82 c2 90 e8 19 dc 8d ff 48 8d 93 28 07 00 00 48 c7 c6 e0 82 c2 90 48 c7 c7 80 82 c2 90 e8 ff db 8d ff <0f> 0b be fb ff ff ff 48 89 df e8 60 c6 00 00 e9 9c fe ff ff 48 8d
[ 5224.298797][T139804] RSP: 0018:ffff888109b77840 EFLAGS: 00010246
[ 5224.299630][T139804] RAX: 0000000000000044 RBX: ffff888123e44000 RCX: ffffffff8ef2688d
[ 5224.300714][T139804] RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff8881f7144e60
[ 5224.301783][T139804] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed102136eecc
[ 5224.302851][T139804] R10: ffff888109b77667 R11: 0000000000000001 R12: ffff888123e440b8
[ 5224.303930][T139804] R13: ffff888123e44388 R14: ffff888123e44770 R15: ffff888123e44198
[ 5224.305039][T139804]  ? tick_nohz_tick_stopped+0x1d/0x30
[ 5224.305845][T139804]  add_transaction_credits+0x5d1/0x5e0
[ 5224.306603][T139804]  ? __pfx_lock_acquire+0x10/0x10
[ 5224.307302][T139804]  ? __pfx_add_transaction_credits+0x10/0x10
block_lib.sh: line 63: ///sys//kernel/debug//fail_function/verbose: No such file or directory
[ 5224.308149][T139804]  ? check_chain_key+0x1fb/0x2a0
[ 5224.309006][T139804]  ? start_this_handle+0x2f4/0x6a0
[ 5224.309751][T139804]  start_this_handle+0x1ef/0x6a0
[ 5224.310456][T139804]  ? __pfx_start_this_handle+0x10/0x10
[ 5224.311216][T139804]  ? lockdep_hardirqs_on_prepare.part.0+0xf9/0x1c0
[ 5224.312116][T139804]  ? _raw_spin_unlock_irqrestore+0x45/0x60
[ 5224.312925][T139804]  ? rcu_is_watching+0x1f/0x40
[ 5224.313583][T139804]  ? kmem_cache_alloc+0x433/0x5f0
[ 5224.314325][T139804]  jbd2__journal_start+0x18b/0x340
[ 5224.315057][T139804]  ext4_dirty_inode+0x5d/0xb0
[ 5224.315732][T139804]  __mark_inode_dirty+0xe4/0x5d0
[ 5224.316435][T139804]  generic_update_time+0x60/0x70
[ 5224.317128][T139804]  touch_atime+0x26e/0x2a0
[ 5224.317808][T139804]  cachefiles_open_file+0x1ce/0x3b0
[ 5224.318529][T139804]  ? __pfx_cachefiles_open_file+0x10/0x10
[ 5224.319337][T139804]  ? rcu_is_watching+0x1f/0x40
[ 5224.320030][T139804]  cachefiles_lookup_cookie+0x98/0x180
[ 5224.320807][T139804]  fscache_perform_lookup+0x6b/0x310
[ 5224.321540][T139804]  fscache_cookie_state_machine+0x405/0x740
[ 5224.322375][T139804]  fscache_cookie_worker+0x6b/0x120
[ 5224.323104][T139804]  process_one_work+0x41a/0x880
[ 5224.323824][T139804]  ? __pfx_process_one_work+0x10/0x10
[ 5224.324549][T139804]  ? __try_to_del_timer_sync+0xb4/0x100
[ 5224.325315][T139804]  ? __list_add_valid_or_report+0x33/0xd0
[ 5224.326174][T139804]  worker_thread+0x375/0x660
[ 5224.326866][T139804]  ? __pfx_worker_thread+0x10/0x10
[ 5224.327568][T139804]  kthread+0x16a/0x1a0
[ 5224.328152][T139804]  ? __pfx_kthread+0x10/0x10
[ 5224.328807][T139804]  ret_from_fork+0x2d/0x50
[ 5224.329465][T139804]  ? __pfx_kthread+0x10/0x10
[ 5224.330115][T139804]  ret_from_fork_asm+0x1b/0x30
[ 5224.330847][T139804]  </TASK>
[ 5224.331447][T139804] Kernel Offset: 0xdc00000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
[ 5224.333072][T139804] ---[ end Kernel panic - not syncing: kernel: panic_on_warn set ... ]---

评论 (2)

LiBaokun 创建了任务 10个月前

Hi cool-water, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: Kernel, and any of the maintainers.

openeuler-ci-bot 添加了
 
sig/Kernel
标签
10个月前

登录 后才可以发表评论

状态
负责人
项目
预计工期 (小时)
开始日期   -   截止日期
-
置顶选项
优先级
分支
参与者(2)
5329419 openeuler ci bot 1632792936 LiBaokun-cool-water
C
1
https://gitee.com/openeuler/kernel.git
git@gitee.com:openeuler/kernel.git
openeuler
kernel
kernel

搜索帮助