======================================
| xx__-> echo $?
| 0
| xx__-> [ 1170.834918][T11507] Mirror/redirect action on
| [ 1243.382315][ C3] irq 4: nobody cared (try booting with the "irqpoll" option)
[ 1243.383387][ C3] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
[ 1243.383761][ C3] Call Trace:
[ 1243.383896][ C3]
[ 1243.383988][ C3] dump_stack_lvl (lib/dump_stack.c:117)
[ 1243.384163][ C3] __report_bad_irq (kernel/irq/spurious.c:214)
[ 1243.384329][ C3] note_interrupt (kernel/irq/spurious.c:423)
[ 1243.384503][ C3] handle_irq_event (kernel/irq/handle.c:198 kernel/irq/handle.c:210)
[ 1243.384664][ C3] handle_edge_irq (kernel/irq/chip.c:833)
[ 1243.384836][ C3] __common_interrupt (./include/linux/irqdesc.h:173 arch/x86/kernel/irq.c:247 arch/x86/kernel/irq.c:259 arch/x86/kernel/irq.c:285)
[ 1243.385015][ C3] common_interrupt (arch/x86/kernel/irq.c:278 (discriminator 13))
[ 1243.385184][ C3] asm_common_interrupt (./arch/x86/include/asm/idtentry.h:693)
[ 1243.385351][ C3] RIP: 0010:handle_softirqs (kernel/softirq.c:540)
[ 1243.385525][ C3] Code: c8 83 83 1c 0a 00 00 01 c7 44 24 18 0a 00 00 00 48 89 44 24 10 65 66 c7 05 4b f4 88 61 00 00 e8 0e 79 38 00 fb bb ff ff ff ff <49> c7 c2 c0 a0 e0 a1 41 0f bc dc 83 c3 01 4c 89 d5 0f 84 b1 00 00
All code
========
0: c8 83 83 1c enter $0x8383,$0x1c
4: 0a 00 or (%rax),%al
6: 00 01 add %al,(%rcx)
8: c7 44 24 18 0a 00 00 movl $0xa,0x18(%rsp)
f: 00
10: 48 89 44 24 10 mov %rax,0x10(%rsp)
15: 65 66 c7 05 4b f4 88 movw $0x0,%gs:0x6188f44b(%rip) # 0x6188f46a
1c: 61 00 00
1f: e8 0e 79 38 00 call 0x387932
24: fb sti
25: bb ff ff ff ff mov $0xffffffff,%ebx
2a:* 49 c7 c2 c0 a0 e0 a1 mov $0xffffffffa1e0a0c0,%r10 <-- trapping instruction
31: 41 0f bc dc bsf %r12d,%ebx
35: 83 c3 01 add $0x1,%ebx
38: 4c 89 d5 mov %r10,%rbp
3b: 0f .byte 0xf
3c: 84 .byte 0x84
3d: b1 00 mov $0x0,%cl
...
Code starting with the faulting instruction
===========================================
0: 49 c7 c2 c0 a0 e0 a1 mov $0xffffffffa1e0a0c0,%r10
7: 41 0f bc dc bsf %r12d,%ebx
b: 83 c3 01 add $0x1,%ebx
e: 4c 89 d5 mov %r10,%rbp
11: 0f .byte 0xf
12: 84 .byte 0x84
13: b1 00 mov $0x0,%cl
...
[ 1243.386101][ C3] RSP: 0018:ffffc90000298f80 EFLAGS: 00000202
[ 1243.386322][ C3] RAX: 00000000020f0c0e RBX: 00000000ffffffff RCX: 1ffffffff482fd1a
[ 1243.386581][ C3] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff9e7ad3e2
[ 1243.386869][ C3] RBP: ffffc90000c2fa18 R08: 0000000000000001 R09: fffffbfff482aea8
[ 1243.387125][ C3] R10: ffffffffa4157547 R11: ffff88802f9bdc80 R12: 0000000000000002
[ 1243.387380][ C3] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
[ 1243.387633][ C3] ? handle_softirqs (./arch/x86/include/asm/irqflags.h:42 ./arch/x86/include/asm/irqflags.h:77 kernel/softirq.c:538)
[ 1243.387819][ C3] irq_exit_rcu (kernel/softirq.c:589 kernel/softirq.c:428 kernel/softirq.c:637 kernel/softirq.c:649)
[ 1243.387940][ C3] sysvec_apic_timer_interrupt (arch/x86/kernel/apic/apic.c:1043 arch/x86/kernel/apic/apic.c:1043)
[ 1243.388101][ C3]
[ 1243.388193][ C3]
[ 1243.388275][ C3] asm_sysvec_apic_timer_interrupt (./arch/x86/include/asm/idtentry.h:702)
[ 1243.388490][ C3] RIP: 0010:_raw_spin_unlock_irqrestore (./include/linux/spinlock_api_smp.h:152 kernel/locking/spinlock.c:194)
[ 1243.388700][ C3] Code: 10 e8 b1 4a 92 fd 48 89 ef e8 29 bb 92 fd 81 e3 00 02 00 00 75 1d 9c 58 f6 c4 02 75 29 48 85 db 74 01 fb 65 ff 0d 85 ac 06 5f <74> 0e 5b 5d c3 cc cc cc cc e8 5f 31 b6 fd eb dc 0f 1f 44 00 00 5b
All code
========
0: 10 e8 adc %ch,%al
2: b1 4a mov $0x4a,%cl
4: 92 xchg %eax,%edx
5: fd std
6: 48 89 ef mov %rbp,%rdi
9: e8 29 bb 92 fd call 0xfffffffffd92bb37
e: 81 e3 00 02 00 00 and $0x200,%ebx
14: 75 1d jne 0x33
16: 9c pushf
17: 58 pop %rax
18: f6 c4 02 test $0x2,%ah
1b: 75 29 jne 0x46
1d: 48 85 db test %rbx,%rbx
20: 74 01 je 0x23
22: fb sti
23: 65 ff 0d 85 ac 06 5f decl %gs:0x5f06ac85(%rip) # 0x5f06acaf
2a:* 74 0e je 0x3a <-- trapping instruction
2c: 5b pop %rbx
2d: 5d pop %rbp
2e: c3 ret
2f: cc int3
30: cc int3
31: cc int3
32: cc int3
33: e8 5f 31 b6 fd call 0xfffffffffdb63197
38: eb dc jmp 0x16
3a: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
3f: 5b pop %rbx
Code starting with the faulting instruction
===========================================
0: 74 0e je 0x10
2: 5b pop %rbx
3: 5d pop %rbp
4: c3 ret
5: cc int3
6: cc int3
7: cc int3
8: cc int3
9: e8 5f 31 b6 fd call 0xfffffffffdb6316d
e: eb dc jmp 0xffffffffffffffec
10: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
15: 5b pop %rbx
[ 1243.389274][ C3] RSP: 0018:ffffc90000c2fac0 EFLAGS: 00000286
[ 1243.389481][ C3] RAX: 0000000000000002 RBX: 0000000000000200 RCX: 1ffffffff482fd1a
[ 1243.389727][ C3] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffa0fd1b91
[ 1243.389976][ C3] RBP: ffffffffa4a400e0 R08: 0000000000000001 R09: fffffbfff482aea8
[ 1243.390214][ C3] R10: ffffffffa4157547 R11: 0000000000000000 R12: 0000000000000001
[ 1243.390461][ C3] R13: 0000000000000282 R14: ffffffffa4a400e0 R15: ffff88800782e800
[ 1243.390718][ C3] ? _raw_spin_unlock_irqrestore (./include/linux/spinlock_api_smp.h:151 kernel/locking/spinlock.c:194)
[ 1243.390921][ C3] uart_write (drivers/tty/serial/serial_core.c:74 drivers/tty/serial/serial_core.c:634)
[ 1243.391048][ C3] process_output_block (drivers/tty/n_tty.c:574)
[ 1243.391209][ C3] ? lockdep_hardirqs_on_prepare (kernel/locking/lockdep.c:4300 kernel/locking/lockdep.c:4359)
[ 1243.391414][ C3] n_tty_write (drivers/tty/n_tty.c:2380)
[ 1243.391585][ C3] ? __pfx_n_tty_write (drivers/tty/n_tty.c:2350)
[ 1243.391757][ C3] ? trace_lock_acquire (./include/trace/events/lock.h:24 (discriminator 52))
[ 1243.391922][ C3] ? __pfx_woken_wake_function (kernel/sched/wait.c:439)
[ 1243.392096][ C3] ? iterate_tty_write (drivers/tty/tty_io.c:954 drivers/tty/tty_io.c:973)
[ 1243.392260][ C3] ? lock_acquire (kernel/locking/lockdep.c:5727)
[ 1243.392436][ C3] ? iterate_tty_write (drivers/tty/tty_io.c:954 drivers/tty/tty_io.c:973)
[ 1243.392602][ C3] iterate_tty_write (drivers/tty/tty_io.c:1021)
[ 1243.392775][ C3] ? tty_ldisc_ref_wait (drivers/tty/tty_ldisc.c:244)
[ 1243.392949][ C3] file_tty_write.constprop.0 (drivers/tty/tty_io.c:1096)
[ 1243.393120][ C3] vfs_write (fs/read_write.c:497 fs/read_write.c:590)
[ 1243.393244][ C3] ? __pfx___lock_release (kernel/locking/lockdep.c:5406)
[ 1243.393412][ C3] ? trace_lock_acquire (./include/trace/events/lock.h:24 (discriminator 52))
[ 1243.393581][ C3] ? __might_fault (mm/memory.c:6233 mm/memory.c:6226)
[ 1243.393745][ C3] ? lock_acquire (kernel/locking/lockdep.c:5727)
[ 1243.393914][ C3] ? __pfx_vfs_write (fs/read_write.c:571)
[ 1243.394082][ C3] ? __might_fault (mm/memory.c:6233 mm/memory.c:6226)
[ 1243.394250][ C3] ? __rseq_handle_notify_resume (kernel/rseq.c:316)
[ 1243.394463][ C3] ? __fget_light (./include/linux/atomic/atomic-arch-fallback.h:479 ./include/linux/atomic/atomic-instrumented.h:50 fs/file.c:1145)
[ 1243.394632][ C3] ksys_write (fs/read_write.c:643)
[ 1243.394765][ C3] ? __pfx_ksys_write (fs/read_write.c:633)
[ 1243.394945][ C3] do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83)
[ 1243.395111][ C3] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130)
[ 1243.395341][ C3] RIP: 0033:0x7fb2f6be2957
[ 1243.395508][ C3] Code: 0b 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 f3 0f 1e fa 64 8b 04 25 18 00 00 00 85 c0 75 10 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 51 c3 48 83 ec 28 48 89 54 24 18 48 89 74 24
All code
========
0: 0b 00 or (%rax),%eax
2: f7 d8 neg %eax
4: 64 89 02 mov %eax,%fs:(%rdx)
7: 48 c7 c0 ff ff ff ff mov $0xffffffffffffffff,%rax
e: eb b7 jmp 0xffffffffffffffc7
10: 0f 1f 00 nopl (%rax)
13: f3 0f 1e fa endbr64
17: 64 8b 04 25 18 00 00 mov %fs:0x18,%eax
1e: 00
1f: 85 c0 test %eax,%eax
21: 75 10 jne 0x33
23: b8 01 00 00 00 mov $0x1,%eax
28: 0f 05 syscall
2a:* 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax <-- trapping instruction
30: 77 51 ja 0x83
32: c3 ret
33: 48 83 ec 28 sub $0x28,%rsp
37: 48 89 54 24 18 mov %rdx,0x18(%rsp)
3c: 48 rex.W
3d: 89 .byte 0x89
3e: 74 24 je 0x64
Code starting with the faulting instruction
===========================================
0: 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax
6: 77 51 ja 0x59
8: c3 ret
9: 48 83 ec 28 sub $0x28,%rsp
d: 48 89 54 24 18 mov %rdx,0x18(%rsp)
12: 48 rex.W
13: 89 .byte 0x89
14: 74 24 je 0x3a
[ 1243.396060][ C3] RSP: 002b:00007fffc63e0b38 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
[ 1243.396310][ C3] RAX: ffffffffffffffda RBX: 000055d5b12ac1d0 RCX: 00007fb2f6be2957
[ 1243.396551][ C3] RDX: 0000000000000001 RSI: 000055d5b12ac1d0 RDI: 0000000000000001
[ 1243.396804][ C3] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000002000
[ 1243.397042][ C3] R10: 0000000000000001 R11: 0000000000000246 R12: 000055d5b12985c0
Finger prints:
__report_bad_irq:note_interrupt:handle_irq_event:handle_edge_irq:__common_interrupt