42 Star 54 Fork 378

OpenHarmony / kernel_linux_5.10

 / 详情

Internal error: Oops - BUG: 0 [#1] SMP

挂起
缺陷 成员
创建于  
2022-05-17 11:54

【enhancedswap_必现】简要描述:

【环境信息】:

  • 网络环境:NA
  • 硬件开发板型号:RK3568
  • 软件版本信息或tag节点:3.2.2.2
  • 测试环境:NA
  • 其他

【预置条件】:
1、使能enhancedswap
【测试步骤】:
1、执行enhancedswap_t测试;
2、执行wukong测试
【预期结果】:
1、系统长时间执行wukong测试,系统正常
【实际结果】:
1、系统panic
【恢复手段】:
1、系统panic后自动重启
【出现概率】:问题出现次数/实际测试次数
2/2
【定位信息】:

[42097.316286] Internal error: Oops - BUG: 0 [#1] SMP
[42097.345234] [D/analog_headset_adc] HeadsetInterrupt: read headset io level old status == now status =1.

[42097.817350] Modules linked in:
[42097.817373] CPU: 2 PID: 132 Comm: zswapd0 Tainted: G        W         5.10.79 #1
[42097.817377] Hardware name: rockchip,rk3568-toybrick-dev-linux-x0 (DT)
[42097.817385] pstate: 60c00009 (nZCv daif +PAN +UAO -TCO BTYPE=--)
[42097.817405] pc : free_eid+0x54/0xd8
[42097.817408] lr : free_eid+0x54/0xd8
[42097.817411] sp : ffffffc0126936a0
[42097.817415] x29: ffffffc0126936a0 x28: 0000000000001000 
[42097.817422] x27: fffffffebffbbd00 x26: 000000000001b6fa 
[42097.817427] x25: 00000000000000f9 x24: 0000000000000e26 
.732829] [ZRAM_GROUP]insert obj 94787 to group 1
[42096.732864] [ZRAM_GROUP]insert obj 94788 to group 1
[42096.732899] [ZRAM_GROUP]insert obj 94789 to group 1
[42096.732931] [ZRAM_GROUP]insert obj 94790 to g[42097.817432] x23: 0000000000000002 x22: ffffffc0114a2000 
[42097.817437] x21: 0000000000000e26 x20: 0000000000000001 
roup 1
[42096.732963] [ZRAM_GROUP]insert obj 94791 to group 1
[42096.739754] [[42097.817442] x19: ffffffc011ece4e8 x18: 000000000000000a 
[42097.817446] x17: 0000000000000feb x16: 0000000000000000 
ZRAM_GROUP]insert obj 94895 to gr[42097.817451] x15: 000000000004d348 x14: ffffffc0926932b7 
[42097.817455] x13: ffffffffffffffff x12: 0000000000000030 
[42097.817460] x11: 00000000fffffffe x10: ffffffc0126932bf 
[42097.817464] x9 : 0000000005f5e0ff x8 : 6120746f6e207369 
[42097.817469] x7 : 206469655d444c4f x6 : ffffffc011c2e5f8 
[42097.817473] x5 : c00000010015996a x4 : ffffffc011be4078 
[42097.817477] x3 : 0000000000000000 x2 : aa217abe981be500 
[42097.817481] x1 : 0000000000000000 x0 : 000000000000001e 
[42097.817487] Call trace:
[42097.817493]  free_eid+0x54/0xd8
[42097.817500]  hyperhold_should_free_extent+0x58/0x70
[42097.817510]  zram_group_untrack_obj+0x16c/0x204
[42097.817515]  zram_free_page+0x2c/0x11c
[42097.817519]  zram_bvec_rw.isra.35+0x450/0x52c
[42097.817522]  zram_rw_page+0xa4/0x138
[42097.817532]  bdev_write_page+0x78/0xc4
[42097.817539]  __swap_writepage+0x1fc/0x2b4
[42097.817542]  swap_writepage+0x54/0x58
[42097.817551]  shrink_page_list+0x7e8/0xaac
[42097.817565]  shrink_inactive_list+0x17c/0x3ac
[42097.834892]  zswapd_shrink_anon+0x2c4/0x2f8
[42097.835266]  zswapd_shrink_node+0xe0/0x200
[42097.835638]  zswapd+0x234/0x378
[42097.835927]  kthread+0xf0/0x100
[42097.836214]  ret_from_fork+0x10/0x18
[42097.836549] Code: 540000a
��2022-05-17 10:07:30:477��1 f0005c60 91305c00 941d61b8 (d4210000) 
[42097.837096] ---[ end trace 73385f502c45007d ]---

��2022-05-17 10:07:30:537��[42097.895695] Kernel panic - not syncing: Oops - BUG: Fatal exception
[42097.896261] SMP: stopping secondary CPUs
[42097.896619] PMU CRU:
[42097.896828] 00000000: 00006064 00001481 00000000 00000007 00007f00 00000000 00000000 00000000
[42097.897578] 00000020: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[42097.898328] 00000040: 00002063 00001481 00000000 00000007 00007f00 00000000 00000000 00000000
[42097.899077] 00000060: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[42097.899828] 00000080: 00000001 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[42097.900577] 000000a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[42097.901326] 000000c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[42097.902076] 000000e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[42097.902826] 00000100: 00000080 0040b71b 00000001 00000001 00000800 00000000 00000001 00000009
[42097.903575] 00000120: 0000050f 00008888 00000000 00000000 00000000 00000000 00000000 00000000
[42097.904324] 00000140: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[42097.905073] 00000160: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[42097.905823] 00000180: 00000000 000000c3 00000000 00000000 00000000 00000000 00000000 00000000
[42097.906571] 000001a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[42097.907321] 000001c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[42097.908070] 000001e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[42097.908818] 00000200: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[42097.909566] 00000220: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[42097.910311] 00000240: 00040020 00000000
[42097.910656] CRU:
[42097.910825] 00000000: 00001053 00001441 00000000 00000007 00007f00 00000000 00000000 00000000
[42097.911572] 00000020: 00004082 00001441 00000000 00000007 00007f00 00000000 00000000 00000000
[42097.912320] 00000040: 00002063 00001441 00000000 00000007 00007f00 00000000 00000000 00000000
[42097.913069] 00000060: 0000107d 00001443 00000000 00000007 00007f00 00000000 00000000 00000000
[42097.913818] 00000080: 00002064 00001441 00000000 00000000 00000000 00000000 00000000 00000000
[42097.914565] 000000a0: 00004064 00001441 00000000 00000000 00000000 00000000 00000000 00000000
[42097.915312] 000000c0: 00005455 00000000 00000000 00000000 00640064 00000000 00000000 00000103
[42097.916062] 000000e0: 00000001 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[42097.916810] 00000100: 000080c0 00000000 00008100 00000606 00000d0d 00000111 00004155 00000011
[42097.917558] 00000120: 00000053 00000100 00000001 00008000 00010001 00008000 00010001 00000401
[42097.918306] 00000140: 01885091 00008401 01885091 00008000 00010001 00008000 00010001 00004000
[42097.919055] 00000160: 00010001 0000000b 00000000 00000010 00001031 00001c30 00000520 00000000
[42097.919803] 00000180: 00000220 00000000 00000310 0000c043 0000c0c0 00003100 00000001 00000000
[42097.920551] 000001a0: 00000407 00000003 00000103 00002100 00000203 00000003 00000000 00000103
[42097.921299] 000001c0: 00000003 00000303 00000001 00001725 0000200b 00000000 0000200b 00000000
[42097.922046] 000001e0: 0000200b 00000000 0000200b 00000000 0000200b 00000000 0000200b 00000000
[42097.922794] 00000200: 0000200b 00000000 0000200b 00000000 0000200b 00000000 00000303 00000203
[42097.923542] 00000220: 00001500 00000000 0000001f 00000302 00000705 00000f0b 0000013b 00000303
[42097.924290] 00000240: 00000f07 00002713 00001f09 00008000 00010001 00003b2f 00000101 00000302
[42097.925038] 00000260: 00000704 0000130f 00001f27 00000000 00000000 00000000 00000000 00000000
[42097.925785] 00000280: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[42097.926533] 000002a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[42097.927281] 000002c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[42097.928029] 000002e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[42097.928777] 00000300: 00000000 00000600 00000009 00000000 00000000 00000000 00000033 0000c333
[42097.929525] 00000320: 00000000 00000000 00000000 00000000 00000000 0000001f 00000000 00000000
[42097.930273] 00000340: 00000000 00000003 00000007 00000107 00001400 00000000 00001033 0000f180
[42097.931021] 00000360: 000001c3 000001f3 00000000 00000000 00000000 00000900 000003d3 00000000
[42097.931768] 00000380: 00000400 00002000 00000000 00000000 00000000 00000000 00000000 00000000
[42097.932517] 000003a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[42097.933264] 000003c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[42097.934013] 000003e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[42097.934760] 00000400: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[42097.935508] 00000420: 00000000 00000000 00000002 00000002 00000000 00000000 00000000 00000000
[42097.936256] 00000440: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[42097.937004] 00000460: 00000000 00000000 00000400 00000000 00000000 00000000 00000000 00000000
[42097.937751] 00000480: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[42097.938498] 000004a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[42097.939247] 000004c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[42097.939995] 000004e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[42097.940743] 00000500: 00040020 00000000 00040020 00000000 00040020 00000000 00040020 00000000
[42097.941489] 00000520: 00040020 00000000 00040020 00000000 00040020 00000000 00040020 00000000
[42097.942237] 00000540: 00040020 00000000 00040020 00000000 00000000 00000000 00000000 00000000
[42097.942985] 00000560: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[42097.943728] 00000580: 00000002 00000000

��2022-05-17 10:07:30:708��[42098.001328] Call trace:
[42098.001569]  dump_backtrace+0x0/0x1a8
[42098.001896]  show_stack+0x2c/0x38
[42098.002201]  bbox_notify_error+0xd4/0x19c
[42098.002560]  bbox_task_panic+0x60/0x88
[42098.002897]  notifier_call_chain+0x70/0x90
[42098.003267]  atomic_notifier_call_chain+0x3c/0x58
[42098.003684]  panic+0x1bc/0x390
[42098.003962]  die+0x180/0x208
[42098.004219]  bug_handler+0x48/0x6c
[42098.004523]  brk_handler+0x9c/0xbc
[42098.004825]  do_debug_exception+0xb4/0x100
[42098.005196]  el1_dbg+0x34/0x4c
[42098.005473]  el1_sync_handler+0x80/0xb0
[42098.005820]  el1_sync+0x84/0x140
[42098.006112]  free_eid+0x54/0xd8
[42098.006391]  hyperhold_should_free_extent+0x58/0x70
[42098.006831]  zram_group_untrack_obj+0x16c/0x204
[42098.007234]  zram_free_page+0x2c/0x11c
[42098.007570]  zram_bvec_rw.isra.35+0x450/0x52c
[42098.007962]  zram_rw_page+0xa4/0x138
[42098.008289]  bdev_write_page+0x78/0xc4
[42098.008627]  __swap_writepage+0x1fc/0x2b4
[42098.008984]  swap_writepage+0x54/0x58
[42098.009310]  shrink_page_list+0x7e8/0xaac
[42098.009670]  shrink_inactive_list+0x17c/0x3ac
[42098.010064]  zswapd_shrink_anon+0x2c4/0x2f8
[42098.010433]  zswapd_shrink_node+0xe0/0x200
[42098.010803]  zswapd+0x234/0x378
[42098.011084]  kthread+0xf0/0x100
[42098.011363]  ret_from_fork+0x10/0x18
[42098.011691] bbox:[err][blackbox_core.c:299] info: 000000002c7a8277, ops: 00000000186e2c00!
[42098.012415] bbox:[info][blackbox_common.c:20] reset the system now!
DDR Version V1.10 20210810
In
ddrconfig:0
LPDDR4X, 324MHz
    1. Log、截图、多媒体文件等,所有和问题有关的信息:

评论 (1)

Mahone 创建了缺陷
Mahone 负责人设置为fanchengyang
Mahone 任务状态待办的 修改为修复中
展开全部操作日志

问题发生在eswap交换分区空间释放过程中,此处为eswap检测到正在释放的交换区存储空间单元,在释放前就已被置为释放状态时,因此主动触发panic。猜测可能有double free问题。
由于发现问题后测试未复现,暂未定位根因。

fanchengyang 任务状态修复中 修改为挂起

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(2)
1
https://gitee.com/openharmony/kernel_linux_5.10.git
git@gitee.com:openharmony/kernel_linux_5.10.git
openharmony
kernel_linux_5.10
kernel_linux_5.10

搜索帮助