syzbot


WARNING: can't dereference registers at ADDR for ip common_interrupt

Status: upstream: reported C repro on 2020/05/26 10:47
Reported-by: syzbot+a36286c38cd8ead29be5@syzkaller.appspotmail.com
First crash: 1482d, last: 882d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 WARNING: can't dereference registers at ADDR for ip common_interrupt C error 83 474d 1475d 0/1 upstream: reported C repro on 2020/06/02 10:44
Last patch testing requests (10)
Created Duration User Patch Repo Result
2023/02/09 21:32 14m retest repro linux-4.14.y report log
2023/02/09 20:32 13m retest repro linux-4.14.y report log
2023/02/09 18:32 14m retest repro linux-4.14.y report log
2023/02/09 17:32 9m retest repro linux-4.14.y report log
2023/02/09 16:32 13m retest repro linux-4.14.y report log
2022/09/19 14:29 13m retest repro linux-4.14.y report log
2022/09/19 13:29 11m retest repro linux-4.14.y report log
2022/09/19 11:29 14m retest repro linux-4.14.y report log
2022/09/19 09:29 15m retest repro linux-4.14.y report log
2022/09/19 08:29 10m retest repro linux-4.14.y report log

Sample crash report:
WARNING: can't dereference registers at ffff88809c1e4928 for ip common_interrupt+0x93/0x93 arch/x86/entry/entry_64.S:576
==================================================================
BUG: KASAN: stack-out-of-bounds in unwind_next_frame+0x1360/0x17d0 arch/x86/kernel/unwind_orc.c:470
Read of size 8 at addr ffff8880ba407ca8 by task syz-executor959/8000

CPU: 0 PID: 8000 Comm: syz-executor959 Not tainted 4.14.229-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 <IRQ>
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x1b2/0x281 lib/dump_stack.c:58
 print_address_description.cold+0x54/0x1d3 mm/kasan/report.c:252
 kasan_report_error.cold+0x8a/0x191 mm/kasan/report.c:351
 kasan_report mm/kasan/report.c:409 [inline]
 __asan_report_load8_noabort+0x68/0x70 mm/kasan/report.c:430
 unwind_next_frame+0x1360/0x17d0 arch/x86/kernel/unwind_orc.c:470
 perf_callchain_kernel+0x38c/0x520 arch/x86/events/core.c:2343
 get_perf_callchain+0x2de/0x740 kernel/events/callchain.c:217
 perf_callchain+0x147/0x190 kernel/events/callchain.c:190
 perf_prepare_sample+0xd77/0x1380 kernel/events/core.c:6164
 __perf_event_output kernel/events/core.c:6280 [inline]
 perf_event_output_forward+0xc9/0x1f0 kernel/events/core.c:6298
 __perf_event_overflow+0x113/0x310 kernel/events/core.c:7547
 perf_swevent_overflow kernel/events/core.c:7623 [inline]
 perf_swevent_event+0x299/0x460 kernel/events/core.c:7651
 perf_tp_event+0x540/0x6e0 kernel/events/core.c:8085
 perf_trace_run_bpf_submit+0x119/0x200 kernel/events/core.c:8055
 perf_trace_lock_acquire+0x332/0x510 include/trace/events/lock.h:13
 trace_lock_acquire include/trace/events/lock.h:13 [inline]
 lock_acquire+0x2b8/0x3f0 kernel/locking/lockdep.c:3997
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
 _raw_spin_lock_irqsave+0x8c/0xc0 kernel/locking/spinlock.c:160
 debug_object_active_state lib/debugobjects.c:687 [inline]
 debug_object_active_state+0xe7/0x330 lib/debugobjects.c:675
 debug_rcu_head_unqueue kernel/rcu/rcu.h:161 [inline]
 rcu_do_batch kernel/rcu/tree.c:2698 [inline]
 invoke_rcu_callbacks kernel/rcu/tree.c:2962 [inline]
 __rcu_process_callbacks kernel/rcu/tree.c:2929 [inline]
 rcu_process_callbacks+0x82d/0x1180 kernel/rcu/tree.c:2946
 __do_softirq+0x24d/0x9ff kernel/softirq.c:288
 invoke_softirq kernel/softirq.c:368 [inline]
 irq_exit+0x193/0x240 kernel/softirq.c:409
 exiting_irq arch/x86/include/asm/apic.h:638 [inline]
 smp_apic_timer_interrupt+0x141/0x5e0 arch/x86/kernel/apic/apic.c:1106
 apic_timer_interrupt+0x93/0xa0 arch/x86/entry/entry_64.S:793
 </IRQ>
RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:779 [inline]
RIP: 0010:kmem_cache_free+0x173/0x2b0 mm/slab.c:3759
RSP: 0018:ffff8880a2fbfb80 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff10
RAX: 0000000000000007 RBX: ffff8880b5364a80 RCX: 1ffff1101677d93d
RDX: 0000000000000000 RSI: ffff8880b3bec9c8 RDI: 0000000000000286
RBP: ffff88823f8301c0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000286
R13: ffffffff81783069 R14: ffff8880b55a7ec0 R15: ffff8880b5364a90
 anon_vma_chain_free mm/rmap.c:134 [inline]
 unlink_anon_vmas+0x289/0x7e0 mm/rmap.c:401
 free_pgtables+0x178/0x2b0 mm/memory.c:655
 exit_mmap+0x27f/0x4d0 mm/mmap.c:3059
 __mmput kernel/fork.c:930 [inline]
 mmput kernel/fork.c:951 [inline]
 mmput+0xfa/0x420 kernel/fork.c:946
 exit_mm kernel/exit.c:548 [inline]
 do_exit+0x984/0x2850 kernel/exit.c:855
 do_group_exit+0x100/0x2e0 kernel/exit.c:965
 SYSC_exit_group kernel/exit.c:976 [inline]
 SyS_exit_group+0x19/0x20 kernel/exit.c:974
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x43eac9
RSP: 002b:00007ffd41b8eb08 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 00000000004b02f0 RCX: 000000000043eac9
RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffffffffffc0 R09: 0000000000000001
R10: 00000000ffffffff R11: 0000000000000246 R12: 00000000004b02f0
R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000001

The buggy address belongs to the page:
page:ffffea0002e901c0 count:1 mapcount:0 mapping:          (null) index:0x0
flags: 0xfff00000000800(reserved)
raw: 00fff00000000800 0000000000000000 0000000000000000 00000001ffffffff
raw: ffffea0002e901e0 ffffea0002e901e0 0000000000000000 0000000000000000
page dumped because: kasan: bad access detected

Memory state around the buggy address:
 ffff8880ba407b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff8880ba407c00: 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 f1
>ffff8880ba407c80: f1 04 f2 00 f3 f3 f3 00 00 00 00 00 00 00 00 00
                                  ^
 ffff8880ba407d00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff8880ba407d80: 00 00 00 f1 f1 f1 f1 f1 f1 00 00 00 00 00 f3 f3
==================================================================

Crashes (27):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/04/10 09:42 linux-4.14.y 0cc244011f40 6a81331a .config console log report syz C ci2-linux-4-14 WARNING: can't dereference registers at ADDR for ip common_interrupt
2021/03/29 09:46 linux-4.14.y 670d6552eda8 a8529b82 .config console log report syz C ci2-linux-4-14 WARNING: can't dereference registers at ADDR for ip common_interrupt
2021/02/07 17:49 linux-4.14.y 2c8a3fceddf0 2ce644fc .config console log report syz C ci2-linux-4-14 WARNING: can't dereference registers at ADDR for ip common_interrupt
2020/08/16 23:52 linux-4.14.y 14b58326976d 5ce13532 .config console log report syz C ci2-linux-4-14
2021/05/17 07:49 linux-4.14.y 7d7d1c0ab3eb f54a5c09 .config console log report syz ci2-linux-4-14 WARNING: can't dereference registers at ADDR for ip common_interrupt
2022/01/16 06:53 linux-4.14.y 4ba8e26127c3 723cfaf0 .config console log report info ci2-linux-4-14 WARNING: can't dereference registers at ADDR for ip common_interrupt
2021/05/07 19:56 linux-4.14.y 7d7d1c0ab3eb f6da8120 .config console log report info ci2-linux-4-14 WARNING: can't dereference registers at ADDR for ip common_interrupt
2021/05/07 17:06 linux-4.14.y 7d7d1c0ab3eb f6da8120 .config console log report info ci2-linux-4-14 WARNING: can't dereference registers at ADDR for ip common_interrupt
2021/05/07 04:55 linux-4.14.y 7d7d1c0ab3eb 06585184 .config console log report info ci2-linux-4-14 WARNING: can't dereference registers at ADDR for ip common_interrupt
2021/04/23 22:38 linux-4.14.y cf256fbcbe34 17f0b706 .config console log report info ci2-linux-4-14 WARNING: can't dereference registers at ADDR for ip common_interrupt
2021/04/23 19:53 linux-4.14.y cf256fbcbe34 17f0b706 .config console log report info ci2-linux-4-14 WARNING: can't dereference registers at ADDR for ip common_interrupt
2021/04/22 19:51 linux-4.14.y cf256fbcbe34 33c28d03 .config console log report info ci2-linux-4-14 WARNING: can't dereference registers at ADDR for ip common_interrupt
2021/04/20 04:17 linux-4.14.y cf256fbcbe34 4285c989 .config console log report info ci2-linux-4-14 WARNING: can't dereference registers at ADDR for ip common_interrupt
2021/03/25 22:51 linux-4.14.y 670d6552eda8 6a383ecf .config console log report info ci2-linux-4-14 WARNING: can't dereference registers at ADDR for ip common_interrupt
2021/02/26 16:08 linux-4.14.y 3242aa3a635c 4c37c133 .config console log report info ci2-linux-4-14 WARNING: can't dereference registers at ADDR for ip common_interrupt
2021/02/04 00:05 linux-4.14.y 2c8a3fceddf0 624dad51 .config console log report info ci2-linux-4-14 WARNING: can't dereference registers at ADDR for ip common_interrupt
2021/02/02 11:59 linux-4.14.y 2c8a3fceddf0 19e09687 .config console log report info ci2-linux-4-14 WARNING: can't dereference registers at ADDR for ip common_interrupt
2021/01/28 14:49 linux-4.14.y 2d2791fce891 eefc07f2 .config console log report info ci2-linux-4-14 WARNING: can't dereference registers at ADDR for ip common_interrupt
2021/01/05 10:51 linux-4.14.y 1752938529c6 a0234d98 .config console log report info ci2-linux-4-14
2021/01/01 07:39 linux-4.14.y 1752938529c6 79264ae3 .config console log report info ci2-linux-4-14
2020/07/14 18:34 linux-4.14.y b850307b279c 6f458026 .config console log report ci2-linux-4-14
2020/07/12 17:21 linux-4.14.y b850307b279c 115e1930 .config console log report ci2-linux-4-14
2020/06/13 05:47 linux-4.14.y b850307b279c f4724dd3 .config console log report ci2-linux-4-14
2020/06/12 02:38 linux-4.14.y b850307b279c 1beaee21 .config console log report ci2-linux-4-14
2020/06/08 15:24 linux-4.14.y c6db52a88798 7604bb03 .config console log report ci2-linux-4-14
2020/06/01 23:50 linux-4.14.y 4f68020fef1c a0331e89 .config console log report ci2-linux-4-14
2020/05/26 10:46 linux-4.14.y a41ba30d9df2 8ca3b7d2 .config console log report ci2-linux-4-14
* Struck through repros no longer work on HEAD.