본문 바로가기

Core BSP 분석/리눅스 커널 핵심 분석

kernel panic - PANIC

[  513.56334 01-01 00:08:38.070 CPU1] lkdtm: Performing direct entry PANIC
[  513.56355 01-01 00:08:38.070 CPU1] Kernel panic - not syncing: dumptest
[  513.56372 01-01 00:08:38.070 CPU1] CPU: 1 PID: 1981 Comm: sh Tainted: G        W    3.10.20-x86_64_moor-dirty #4
[  513.56386 01-01 00:08:38.070 CPU1]  0000000000000006 ffff8800592d5e18 ffffffff82a13ac1 ffff8800592d5e90
[  513.56408 01-01 00:08:38.070 CPU1]  ffffffff82a0cdb0 0000000000000008 ffff8800592d5ea0 ffff8800592d5e40
[  513.56429 01-01 00:08:38.070 CPU1]  0000000000000000 ffffffff820b4fb5 0000000000000000 ffff88007ea8efc8
[  513.56449 01-01 00:08:38.070 CPU1] Call Trace:
[  513.56462 01-01 00:08:38.070 CPU1]  [<ffffffff82a13ac1>] dump_stack+0x19/0x1b
[  513.56476 01-01 00:08:38.070 CPU1]  [<ffffffff82a0cdb0>] panic+0xc8/0x1d6
[  513.56489 01-01 00:08:38.070 CPU1]  [<ffffffff820b4fb5>] ? console_unlock+0x225/0x470
[  513.56503 01-01 00:08:38.070 CPU1]  [<ffffffff82435f66>] lkdtm_do_action+0xe6/0x1d0
[  513.56517 01-01 00:08:38.070 CPU1]  [<ffffffff82436687>] direct_entry+0xe7/0xf0
[  513.56524 01-01 00:08:38.070 CPU1]  [<ffffffff821ba566>] vfs_write+0xb6/0x1c0
[  513.56528 01-01 00:08:38.070 CPU1]  [<ffffffff821ba9fd>] SyS_write+0x4d/0x90
[  513.56531 01-01 00:08:38.070 CPU1]  [<ffffffff82a24925>] sysenter_dispatch+0x7/0x23
[  513.58588 01-01 00:08:38.080 CPU1] SCU trace on Kernel panic:
[  513.58591 01-01 00:08:38.080 CPU1] SCU trace logging data:
[  513.58594 01-01 00:08:38.080 CPU1] EW0:0x5343554c
[  513.59768 01-01 00:08:38.080 CPU1] EW508:0x00000008
[  513.59778 01-01 00:08:38.080 CPU1] Rebooting in 2 seconds..
[  515.59755 01-01 00:08:38.080 CPU1] Jump FW upgrade process
[  515.59759 01-01 00:08:38.080 CPU1] BUG: sleeping function called from invalid context at /home/austin.kim/src/mof_kk_mr2_release_main/android/linux/kernel/kernel/sched/core.c:3329
[  515.59763 01-01 00:08:38.080 CPU1] in_atomic(): 1, irqs_disabled(): 1, pid: 1981, name: sh
[  515.59766 01-01 00:08:38.080 CPU1] INFO: lockdep is turned off.
[  515.59769 01-01 00:08:38.080 CPU1] CPU: 1 PID: 1981 Comm: sh Tainted: G        W    3.10.20-x86_64_moor-dirty #4
[  515.59773 01-01 00:08:38.080 CPU1]  ffffffff83d4aba0 ffff8800592d5d48 ffffffff82a13ac1 ffff8800592d5d60
[  515.59778 01-01 00:08:38.080 CPU1]  ffffffff820e59c0 000000000000012c ffff8800592d5db8 ffffffff82a1ad13
[  515.59784 01-01 00:08:38.080 CPU1]  0000000000000000 ffffffff82f5a52f 0000000000000000 00000000592d5da8
[  515.59789 01-01 00:08:38.080 CPU1] Call Trace:
[  515.59792 01-01 00:08:38.080 CPU1]  [<ffffffff82a13ac1>] dump_stack+0x19/0x1b
[  515.59796 01-01 00:08:38.080 CPU1]  [<ffffffff820e59c0>] __might_sleep+0x110/0x120
[  515.59799 01-01 00:08:38.080 CPU1]  [<ffffffff82a1ad13>] wait_for_completion_timeout+0x33/0x120
[  515.59804 01-01 00:08:38.080 CPU1]  [<ffffffff8272bef9>] intel_scu_ipc_check_status+0x119/0x170
[  515.59807 01-01 00:08:38.080 CPU1]  [<ffffffff8209cdf7>] intel_mid_reboot+0x57/0xe0
[  515.59811 01-01 00:08:38.080 CPU1]  [<ffffffff82023849>] machine_emergency_restart+0x19/0x20
[  515.59815 01-01 00:08:38.080 CPU1]  [<ffffffff820cb6a8>] emergency_restart+0x18/0x20
[  515.59818 01-01 00:08:38.080 CPU1]  [<ffffffff82a0ce77>] panic+0x18f/0x1d6
[  515.59822 01-01 00:08:38.080 CPU1]  [<ffffffff820b4fb5>] ? console_unlock+0x225/0x470
[  515.59826 01-01 00:08:38.080 CPU1]  [<ffffffff82435f66>] lkdtm_do_action+0xe6/0x1d0
[  515.59829 01-01 00:08:38.080 CPU1]  [<ffffffff82436687>] direct_entry+0xe7/0xf0
[  515.59833 01-01 00:08:38.080 CPU1]  [<ffffffff821ba566>] vfs_write+0xb6/0x1c0
[  515.59836 01-01 00:08:38.080 CPU1]  [<ffffffff821ba9fd>] SyS_write+0x4d/0x90
[  515.59840 01-01 00:08:38.080 CPU1]  [<ffffffff82a24925>] sysenter_dispatch+0x7/0x23
[  515.59855 01-01 00:08:40.120 CPU1] intel_scu_watchdog_evo: timeout=15s, pre_timeout=15s
[  515.59859 01-01 00:08:40.120 CPU1] BUG: sleeping function called from invalid context at /home/austin.kim/src/mof_kk_mr2_release_main/android/linux/kernel/kernel/mutex.c:95
[  515.59864 01-01 00:08:40.120 CPU1] in_atomic(): 1, irqs_disabled(): 0, pid: 1981, name: sh
[  515.59867 01-01 00:08:40.120 CPU1] INFO: lockdep is turned off.
[  515.59870 01-01 00:08:40.120 CPU1] CPU: 1 PID: 1981 Comm: sh Tainted: G        W    3.10.20-x86_64_moor-dirty #4
[  515.59873 01-01 00:08:40.120 CPU1]  0000000000000000 ffff88007ea83dc0 ffffffff82a13ac1 ffff88007ea83dd8
[  515.59879 01-01 00:08:40.120 CPU1]  ffffffff820e59c0 ffff88007b8da808 ffff88007ea83df0 ffffffff82a19ea0
[  515.59884 01-01 00:08:40.120 CPU1]  ffff88007b8da808 ffff88007ea83e10 ffffffff82a19ee0 ffff88007b8da808
[  515.59889 01-01 00:08:40.120 CPU1] Call Trace:
[  515.59891 01-01 00:08:40.120 CPU1]  <IRQ>  [<ffffffff82a13ac1>] dump_stack+0x19/0x1b
[  515.59896 01-01 00:08:40.120 CPU1]  [<ffffffff820e59c0>] __might_sleep+0x110/0x120
[  515.59900 01-01 00:08:40.120 CPU1]  [<ffffffff82a19ea0>] _mutex_lock+0x20/0x40
[  515.59903 01-01 00:08:40.120 CPU1]  [<ffffffff82a19ee0>] mutex_lock_nested+0x20/0x60
[  515.59907 01-01 00:08:40.120 CPU1]  [<ffffffff8273f12c>] rpmsg_send_command+0x5c/0x220
[  515.59910 01-01 00:08:40.120 CPU1]  [<ffffffff8267261b>] watchdog_set_timeouts_and_start+0x3b/0x60
[  515.59914 01-01 00:08:40.120 CPU1]  [<ffffffff82672679>] watchdog_config_and_start+0x39/0x70
[  515.59918 01-01 00:08:40.120 CPU1]  [<ffffffff826726c8>] watchdog_panic_tasklet_body+0x18/0x30
[  515.59921 01-01 00:08:40.120 CPU1]  [<ffffffff820bbdac>] tasklet_action+0x6c/0xe0
[  515.59925 01-01 00:08:40.120 CPU1]  [<ffffffff820bb870>] __do_softirq+0x110/0x2d0
[  515.59928 01-01 00:08:40.120 CPU1]  [<ffffffff82a2488c>] call_softirq+0x1c/0x30
[  515.59932 01-01 00:08:40.120 CPU1]  [<ffffffff820042fd>] do_softirq+0x6d/0xa0
[  515.59935 01-01 00:08:40.120 CPU1]  [<ffffffff820bbbc5>] irq_exit+0xb5/0xc0
[  515.59938 01-01 00:08:40.120 CPU1]  [<ffffffff82a2501b>] smp_apic_timer_interrupt+0x6b/0x98
[  515.59942 01-01 00:08:40.120 CPU1]  [<ffffffff82a2416f>] apic_timer_interrupt+0x6f/0x80
[  515.59945 01-01 00:08:40.120 CPU1]  <EOI>  [<ffffffff820046d1>] ? show_stack_log_lvl+0xc1/0x1b0
[  515.59950 01-01 00:08:40.120 CPU1]  [<ffffffff82a1adaf>] ? wait_for_completion_timeout+0xcf/0x120
[  515.59954 01-01 00:08:40.120 CPU1]  [<ffffffff82a1cfc2>] ? _raw_spin_unlock_irq+0x32/0x60
[  515.59957 01-01 00:08:40.120 CPU1]  [<ffffffff82a1cfbc>] ? _raw_spin_unlock_irq+0x2c/0x60
[  515.59961 01-01 00:08:40.120 CPU1]  [<ffffffff82a1adaf>] wait_for_completion_timeout+0xcf/0x120
[  515.59965 01-01 00:08:40.120 CPU1]  [<ffffffff820eb3e0>] ? try_to_wake_up+0x320/0x320
[  515.59968 01-01 00:08:40.120 CPU1]  [<ffffffff8272bef9>] intel_scu_ipc_check_status+0x119/0x170
[  515.59972 01-01 00:08:40.120 CPU1]  [<ffffffff8209cdf7>] intel_mid_reboot+0x57/0xe0
[  515.59976 01-01 00:08:40.120 CPU1]  [<ffffffff82023849>] machine_emergency_restart+0x19/0x20
[  515.59979 01-01 00:08:40.120 CPU1]  [<ffffffff820cb6a8>] emergency_restart+0x18/0x20
[  515.59983 01-01 00:08:40.120 CPU1]  [<ffffffff82a0ce77>] panic+0x18f/0x1d6
[  515.59986 01-01 00:08:40.120 CPU1]  [<ffffffff820b4fb5>] ? console_unlock+0x225/0x470
[  515.59990 01-01 00:08:40.120 CPU1]  [<ffffffff82435f66>] lkdtm_do_action+0xe6/0x1d0
[  515.59993 01-01 00:08:40.120 CPU1]  [<ffffffff82436687>] direct_entry+0xe7/0xf0
[  515.59997 01-01 00:08:40.120 CPU1]  [<ffffffff821ba566>] vfs_write+0xb6/0x1c0
[  515.60000 01-01 00:08:40.120 CPU1]  [<ffffffff821ba9fd>] SyS_write+0x4d/0x90
[  515.60003 01-01 00:08:40.120 CPU1]  [<ffffffff82a24925>] sysenter_dispatch+0x7/0x23
[  515.60009 01-01 00:08:40.120 CPU1] BUG: scheduling while atomic: sh/1981/0x00000103
[  515.60012 01-01 00:08:40.120 CPU1] INFO: lockdep is turned off.
[  515.60015 01-01 00:08:40.120 CPU1] Modules linked in: dfrgx snd_intel_sst snd_soc_sst_platform atomisp_css2401a0_v21 m10mo_spi m10mo_isp imx1x5 libmsrlisthelper rmi4 bcm_bt_lpm videobuf_vmalloc videobuf_core fps_throttle snd_moor_dpcm_rt5647 hds_max14688 snd_soc_rt5647 snd_hwdep
[  515.60031 01-01 00:08:40.120 CPU1] CPU: 1 PID: 1981 Comm: sh Tainted: G        W    3.10.20-x86_64_moor-dirty #4
[  515.60035 01-01 00:08:40.120 CPU1]  ffff88007c300000 ffff88007ea83a70 ffffffff82a13ac1 ffff88007ea83a88
[  515.60040 01-01 00:08:40.120 CPU1]  ffffffff82a0d549 ffff88007ea93d00 ffff88007ea83af8 ffffffff82a1b86b
[  515.60045 01-01 00:08:40.120 CPU1]  ffff88007c300000 ffff8800592d5fd8 ffff880041ac8000 ffff8800592d5fd8
[  515.60051 01-01 00:08:40.120 CPU1] Call Trace:
[  515.60053 01-01 00:08:40.120 CPU1]  <IRQ>  [<ffffffff82a13ac1>] dump_stack+0x19/0x1b
[  515.60058 01-01 00:08:40.120 CPU1]  [<ffffffff82a0d549>] __schedule_bug+0x61/0x70
[  515.60061 01-01 00:08:40.120 CPU1]  [<ffffffff82a1b86b>] __schedule+0x7fb/0x880
[  515.60064 01-01 00:08:40.120 CPU1]  [<ffffffff82a1b979>] schedule+0x29/0x70
[  515.60068 01-01 00:08:40.120 CPU1]  [<ffffffff82a1800e>] schedule_timeout+0x13e/0x270
[  515.60072 01-01 00:08:40.120 CPU1]  [<ffffffff826a3de0>] ? read_measured_perf_ctrs+0x70/0x70
[  515.60075 01-01 00:08:40.120 CPU1]  [<ffffffff820c34b0>] ? __internal_add_timer+0x140/0x140
[  515.60079 01-01 00:08:40.120 CPU1]  [<ffffffff82a1adb7>] wait_for_completion_timeout+0xd7/0x120
[  515.60083 01-01 00:08:40.120 CPU1]  [<ffffffff820eb3e0>] ? try_to_wake_up+0x320/0x320
[  515.60087 01-01 00:08:40.120 CPU1]  [<ffffffff8272bef9>] intel_scu_ipc_check_status+0x119/0x170
[  515.60090 01-01 00:08:40.120 CPU1]  [<ffffffff8272c034>] intel_scu_ipc_raw_cmd+0xe4/0x170
[  515.60094 01-01 00:08:40.120 CPU1]  [<ffffffff8273cf3d>] scu_ipc_raw_command+0x3d/0x50
[  515.60097 01-01 00:08:40.120 CPU1]  [<ffffffff8273d225>] scu_ipc_rpmsg_handle+0x165/0x260
[  515.60101 01-01 00:08:40.120 CPU1]  [<ffffffff8273d690>] intel_mid_rproc_msg_handle+0x70/0xd0
[  515.60105 01-01 00:08:40.120 CPU1]  [<ffffffff8273cdc9>] intel_rproc_scu_kick+0xb9/0x150
[  515.60108 01-01 00:08:40.120 CPU1]  [<ffffffff8273c1b2>] rproc_virtio_notify+0x32/0x60
[  515.60112 01-01 00:08:40.120 CPU1]  [<ffffffff823a48ec>] virtqueue_kick+0x1c/0x30
[  515.60115 01-01 00:08:40.120 CPU1]  [<ffffffff8273db96>] rpmsg_send_offchannel_raw+0x106/0x390
[  515.60119 01-01 00:08:40.120 CPU1]  [<ffffffff82a19ea8>] ? _mutex_lock+0x28/0x40
[  515.60122 01-01 00:08:40.120 CPU1]  [<ffffffff8273f1d2>] rpmsg_send_command+0x102/0x220
[  515.60126 01-01 00:08:40.120 CPU1]  [<ffffffff8267261b>] watchdog_set_timeouts_and_start+0x3b/0x60
[  515.60130 01-01 00:08:40.120 CPU1]  [<ffffffff82672679>] watchdog_config_and_start+0x39/0x70
[  515.60133 01-01 00:08:40.120 CPU1]  [<ffffffff826726c8>] watchdog_panic_tasklet_body+0x18/0x30
[  515.60137 01-01 00:08:40.120 CPU1]  [<ffffffff820bbdac>] tasklet_action+0x6c/0xe0
[  515.60140 01-01 00:08:40.120 CPU1]  [<ffffffff820bb870>] __do_softirq+0x110/0x2d0
[  515.60144 01-01 00:08:40.120 CPU1]  [<ffffffff82a2488c>] call_softirq+0x1c/0x30
[  515.60147 01-01 00:08:40.120 CPU1]  [<ffffffff820042fd>] do_softirq+0x6d/0xa0
[  515.60150 01-01 00:08:40.120 CPU1]  [<ffffffff820bbbc5>] irq_exit+0xb5/0xc0
[  515.60154 01-01 00:08:40.120 CPU1]  [<ffffffff82a2501b>] smp_apic_timer_interrupt+0x6b/0x98
[  515.60157 01-01 00:08:40.120 CPU1]  [<ffffffff82a2416f>] apic_timer_interrupt+0x6f/0x80
[  515.60160 01-01 00:08:40.120 CPU1]  <EOI>  [<ffffffff820046d1>] ? show_stack_log_lvl+0xc1/0x1b0
[  515.60165 01-01 00:08:40.120 CPU1]  [<ffffffff82a1adaf>] ? wait_for_completion_timeout+0xcf/0x120
[  515.60169 01-01 00:08:40.120 CPU1]  [<ffffffff82a1cfc2>] ? _raw_spin_unlock_irq+0x32/0x60
[  515.60173 01-01 00:08:40.120 CPU1]  [<ffffffff82a1cfbc>] ? _raw_spin_unlock_irq+0x2c/0x60
[  515.60176 01-01 00:08:40.120 CPU1]  [<ffffffff82a1adaf>] wait_for_completion_timeout+0xcf/0x120
[  515.60180 01-01 00:08:40.120 CPU1]  [<ffffffff820eb3e0>] ? try_to_wake_up+0x320/0x320
[  515.60183 01-01 00:08:40.120 CPU1]  [<ffffffff8272bef9>] intel_scu_ipc_check_status+0x119/0x170
[  515.60187 01-01 00:08:40.120 CPU1]  [<ffffffff8209cdf7>] intel_mid_reboot+0x57/0xe0
[  515.60191 01-01 00:08:40.120 CPU1]  [<ffffffff82023849>] machine_emergency_restart+0x19/0x20
[  515.60194 01-01 00:08:40.120 CPU1]  [<ffffffff820cb6a8>] emergency_restart+0x18/0x20
[  515.60198 01-01 00:08:40.120 CPU1]  [<ffffffff82a0ce77>] panic+0x18f/0x1d6
[  515.60201 01-01 00:08:40.120 CPU1]  [<ffffffff820b4fb5>] ? console_unlock+0x225/0x470
[  515.60205 01-01 00:08:40.120 CPU1]  [<ffffffff82435f66>] lkdtm_do_action+0xe6/0x1d0
[  515.60208 01-01 00:08:40.120 CPU1]  [<ffffffff82436687>] direct_entry+0xe7/0xf0
[  515.60211 01-01 00:08:40.120 CPU1]  [<ffffffff821ba566>] vfs_write+0xb6/0x1c0
[  515.60215 01-01 00:08:40.120 CPU1]  [<ffffffff821ba9fd>] SyS_write+0x4d/0x90
[  515.60218 01-01 00:08:40.120 CPU1]  [<ffffffff82a24925>] sysenter_dispatch+0x7/0x23

'Core BSP 분석 > 리눅스 커널 핵심 분석' 카테고리의 다른 글

kernel panic - WRITE_AFTER_FREE  (0) 2023.05.05
kernel panic - OVERWRITE_ALLOCATION  (0) 2023.05.05
kernel panic - OVERFLOW  (0) 2023.05.05
kernel panic - SOFTLOCKUP  (0) 2023.05.05
kernel panic - HARDLOCKUP  (0) 2023.05.05