qemu unaligned handler crashes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



When running parisc-linux in qemu, I regularily face this crash.
I'm out of ideas, maybe someone on the list has an idea what to check next?

The very same issue happens with: 
- SMP and UP kernels
- independend of kernel version
- with 32-bit kernel only (qemu only supports 32bit up to now)

The unaligned handler fault is misleading.
What happens is, that the kernel tries to read from page zero:

root@phantom:~# ./disasm 0e781093
   0:   0e 78 10 93     ldw c(r19),r19
r19 is 0.

For me it seems that some memory corruption happens which
leads to this crash. Maybe in the SCSI code.

And I wonder why the unaligned handler crash happens at all.
Basically I'd expect a protection fault crash instead...? 

Many open questions in here...

[34802.448356] Unaligned handler failed, ret = -2
[34802.454815]       _______________________________
[34802.454815]      < Your System ate a SPARC! Gah! >
[34802.454815]       -------------------------------
[34802.454815]              \   ^__^
[34802.454815]                  (__)\       )\/\
[34802.454815]                   U  ||----w |
[34802.454815]                      ||     ||
[34802.458868] swapper/1 (pid 0): Unaligned data reference (code 28)
[34802.459995] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.18.0-2-parisc-smp #1 Debian 4.18.10-2
[34802.462580]
[34802.462826]      YZrvWESTHLNXBCVMcbcbcbcbOGFRQPDI
[34802.464205] PSW: 00000000000001000000000000001110 Not tainted
[34802.465597] r00-03  0004000e 10a40950 102729f4 edfe3380
[34802.466663] r04-07  10a40bb0 00000000 dde64000 00000001
[34802.467455] r08-11  10187040 00000001 edfeb040 10a3cd40
[34802.468084] r12-15  10a40584 10ad3100 10947828 10947850
[34802.469252] r16-19  10a61950 00000002 00000000 00000000
[34802.470882] r20-23  00000000 00000000 00000000 00000000
[34802.472885] r24-27  00000001 00000000 00000000 10a40150
[34802.473871] r28-31  1018b930 00000000 edfe33c0 00000000
[34802.474617] sr00-03  00000000 00000000 00000000 0000017c
[34802.475156] sr04-07  00000000 00000000 00000000 00000000
[34802.475653]
[34802.475891] IASQ: 00000000 00000000 IAOQ: 102e6d60 102e6d64
[34802.476572]  IIR: 0e781093    ISR: 00000000  IOR: 0000000d
[34802.477396]  CPU:        1   CR30: ed928000 CR31: 00000000
[34802.477896]  ORIG_R28: 10943528
[34802.480131]  IAOQ[0]: irq_work_run+0x24/0x6c
[34802.481331]  IAOQ[1]: irq_work_run+0x28/0x6c
[34802.483985]  RP(r2): flush_smp_call_function_queue+0xb8/0x19c
[34802.485410] Backtrace: 
[34802.488657]  [<102729f4>] flush_smp_call_function_queue+0xb8/0x19c
[34802.490554]  [<10273ae4>] generic_smp_call_function_single_interrupt+0x30/0x40
[34802.493022]  [<1089f9e0>] ipi_interrupt+0x194/0x244

[34802.495289]  [<10232120>] __handle_irq_event_percpu+0xd0/0x348
[34802.496823]  [<102323dc>] handle_irq_event_percpu+0x44/0x8c
[34802.497574]  [<102381e8>] handle_percpu_irq+0xa4/0xd0
[34802.498082]  [<102311e4>] generic_handle_irq+0x60/0x80
[34802.498758]  [<101997d8>] call_on_stack+0x24/0x30
[34802.499705]  [<101940c8>] execute_on_irq_stack+0xac/0xbc
[34802.500131]
[34802.500611] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.18.0-2-parisc-smp #1 Debian 4.18.10-2
[34802.501462] Backtrace: 
[34802.501462]  [<101924a4>] show_stack+0x3c/0x50
[34802.501462]  [<1087fc08>] dump_stack+0x8c/0x110
[34802.501462]  [<101925d4>] die_if_kernel+0xe0/0x204
[34802.501462]  [<101a0ad8>] handle_unaligned+0x5dc/0x790
[34802.501462]  [<10192b88>] handle_interruption+0x2a0/0x1130
[34802.501462]  [<10198074>] intr_check_sig+0x0/0x38
[34802.501462]  [<00a90fac>] scsi_end_request+0x130/0x1e8 [scsi_mod]
[34802.501462]
[34802.510381] Kernel panic - not syncing: Fatal exception in interrupt

PDC_CHASSIS: Fault (1), CHASSIS  0

PDC_CHASSIS: Shutdown (4), CHASSIS  0


SeaBIOS: PDC_BROADCAST_RESET (reset system) called with ARG3=10aef150 ARG4=0
SeaBIOS wants SYSTEM RESET.
***************************
[34802.555377] Backtrace: 
[34802.556464]
[34802.556919]
[34802.557893] Bad Address (null pointer deref?): Code=15 (Data TLB miss fault) regs=848df0c5 (Addr=f0000084)
[34802.558742] CPU: 2 PID: 17430 Comm: buildd-watcher Tainted: G      D           4.18.0-2-parisc-smp #1 Debian 4.18.10-2
[34802.558742]

[34802.556919]
[34802.557893] Bad Address (null pointer deref?): Code=15 (Data TLB miss fault) regs=848df0c5 (Addr=f0000084)
[34802.558742] CPU: 2 PID: 17430 Comm: buildd-watcher Tainted: G      D           4.18.0-2-parisc-smp #1 Debian 4.18.10-2
[34802.558742]
[34802.558742]      YZrvWESTHLNXBCVMcbcbcbcbOGFRQPDI
[34802.558742] PSW: 00000000000001001011111100001110 Tainted: G      D
[34802.558742] r00-03  0004bf0e 10ad2950 1089f8e8 edff9240
[34802.558742] r04-07  00000000 fff12000 10a40bb0 ee001008
[34802.558742] r08-11  10187040 00000002 ee001040 10a3cd40
[34802.558742] r12-15  10a40584 10ad3100 10947828 10947850
[34802.558742] r16-19  10a61950 00000002 0093691c 00000001
[34802.558742] r20-23  0000000e 00000001 10a40584 00000000
[34802.558742] r24-27  00000004 1089eb28 102b3dcc 10a40150
[34802.558742] r28-31  10ad3100 0000000e edff92c0 10a40584
[34802.558742] sr00-03  00000000 00000000 00000000 00002e54
[34802.558742] sr04-07  00000000 00000000 00000000 00000000
[34802.558742]
[34802.558742] IASQ: 00000000 00000000 IAOQ: f0000084 f0000088
[34802.558742]  IIR: 00000000    ISR: 00000000  IOR: f0000084
[34802.558742]  CPU:        2   CR30: 4f1f8000 CR31: 00000000
[34802.558742]  ORIG_R28: 00000001
[34802.558742]  IAOQ[0]: 0xf0000084
[34802.558742]  IAOQ[1]: 0xf0000088
[34802.558742]  RP(r2): ipi_interrupt+0x9c/0x244
[34802.558742] Backtrace: 
[34802.558742]
[34802.558742] Backtrace: 
[34802.558742]  [<1024fd00>] collect_expieaBred_IOtimSe rs+0x3c/0x13c




[Index of Archives]     [Linux SoC]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux