syzbot


BUG: spinlock cpu recursion on CPU, syz-executor

Status: auto-closed as invalid on 2020/11/23 20:37
Reported-by: syzbot+8044079055291d26cc6b@syzkaller.appspotmail.com
First crash: 1580d, last: 1580d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: spinlock cpu recursion on CPU, syz-executor kvm syz error error 1 2209d 2208d 0/28 auto-obsoleted due to no activity on 2022/08/30 20:45

Sample crash report:
BUG: spinlock cpu recursion on CPU#0, syz-executor.4/21341
 lock: 0xffff888000178e48, .magic: dead4ead, .owner: <none>/-1, .owner_cpu: 0
CPU: 0 PID: 21341 Comm: syz-executor.4 Not tainted 4.14.189-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/0x283 lib/dump_stack.c:58
 debug_spin_lock_before kernel/locking/spinlock_debug.c:85 [inline]
 do_raw_spin_lock+0x140/0x200 kernel/locking/spinlock_debug.c:112
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:117 [inline]
 _raw_spin_lock_irqsave+0x94/0xc0 kernel/locking/spinlock.c:160
 try_to_wake_up+0x6a/0x1100 kernel/sched/core.c:1997
 hrtimer_wakeup+0x43/0x60 kernel/time/hrtimer.c:1441
 __run_hrtimer kernel/time/hrtimer.c:1223 [inline]
 __hrtimer_run_queues+0x30b/0xc80 kernel/time/hrtimer.c:1287
 hrtimer_interrupt+0x1e6/0x5e0 kernel/time/hrtimer.c:1321
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1075 [inline]
 smp_apic_timer_interrupt+0x117/0x5e0 arch/x86/kernel/apic/apic.c:1100
 apic_timer_interrupt+0x93/0xa0 arch/x86/entry/entry_64.S:793
 </IRQ>
RIP: 0010:try_to_freeze include/linux/freezer.h:65 [inline]
RIP: 0010:freezer_count include/linux/freezer.h:128 [inline]
RIP: 0010:freezable_schedule include/linux/freezer.h:173 [inline]
RIP: 0010:do_nanosleep+0x262/0x600 kernel/time/hrtimer.c:1483
RSP: 0018:ffff8882152cfce8 EFLAGS: 00000202 ORIG_RAX: ffffffffffffff10
RAX: 0000000000000000 RBX: ffff8882152cfde8 RCX: 0000000000000000
RDX: 0000000000000007 RSI: 1ffff11042a59f8b RDI: ffff8880584722e4
RBP: ffff8882152cfda0 R08: ffffffff8a08f908 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: dffffc0000000000
R13: ffff8882152cfe28 R14: ffff8880584722c0 R15: ffff8880584722c0
 hrtimer_nanosleep+0x1da/0x450 kernel/time/hrtimer.c:1537
 SYSC_nanosleep kernel/time/hrtimer.c:1569 [inline]
 SyS_nanosleep+0x116/0x170 kernel/time/hrtimer.c:1556
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x45a891
RSP: 002b:00007fff1ba75f10 EFLAGS: 00000293 ORIG_RAX: 0000000000000023
RAX: ffffffffffffffda RBX: 00000000000ab4bf RCX: 000000000045a891
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00007fff1ba75f20
RBP: 0000000000000001 R08: 00000000f14a8ab1 R09: 0000000000000000
R10: 00007fff1ba76020 R11: 0000000000000293 R12: 000000000078bf00
R13: 000000000078c900 R14: ffffffffffffffff R15: 000000000078bfac
netlink: 24 bytes leftover after parsing attributes in process `syz-executor.0'.
------------[ cut here ]------------
kernel BUG at arch/x86/mm/physaddr.c:27!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 0 PID: 3649 Comm: systemd-udevd Not tainted 4.14.189-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff88808fdde280 task.stack: ffff88808fde0000
RIP: 0010:__phys_addr+0x80/0xe0 arch/x86/mm/physaddr.c:27
RSP: 0018:ffff88808fde7af8 EFLAGS: 00010297
RAX: ffff88808fdde280 RBX: ffff000000000000 RCX: 1ffffffff1027b88
RDX: 0000000000000000 RSI: ffffffff86e45a40 RDI: ffff000000000000
RBP: ffff000080000000 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: ffff88808fdde280 R12: ffff778000000000
R13: ffff88808fde7b50 R14: 0000000000000000 R15: 0000000000000282
FS:  00007fe3a191e8c0(0000) GS:ffff8880aea00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000744694 CR3: 0000000090429000 CR4: 00000000001426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 virt_to_head_page include/linux/mm.h:612 [inline]
 qlink_to_cache mm/kasan/quarantine.c:127 [inline]
 qlist_free_all+0xbb/0x140 mm/kasan/quarantine.c:163
 quarantine_reduce+0x185/0x200 mm/kasan/quarantine.c:259
 kasan_kmalloc+0xa2/0x160 mm/kasan/kasan.c:536
 slab_post_alloc_hook mm/slab.h:442 [inline]
 slab_alloc mm/slab.c:3390 [inline]
 kmem_cache_alloc+0x111/0x3c0 mm/slab.c:3550
 getname_flags+0xc8/0x550 fs/namei.c:138
 do_sys_open+0x1ce/0x410 fs/open.c:1075
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x7fe3a07916f0
RSP: 002b:00007ffce5638de8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 00005638102e7450 RCX: 00007fe3a07916f0
RDX: 00000000000001b6 RSI: 0000000000080000 RDI: 00007ffce5638f90
RBP: 0000000000000008 R08: 0000000000000008 R09: 0000000000000001
R10: 0000000000080000 R11: 0000000000000246 R12: 000056380fb6168a
R13: 0000000000000001 R14: 00005638102e1f40 R15: 00007ffce5639010
Code: c2 7f 04 84 d2 75 26 0f b6 0d e6 59 68 07 4c 89 e0 48 d3 e8 48 85 c0 75 0d e8 fd 9e 31 00 4c 89 e0 5b 5d 41 5c c3 e8 f0 9e 31 00 <0f> 0b 48 c7 c7 49 51 92 88 e8 e2 66 5b 00 eb cc e8 db 9e 31 00 
RIP: __phys_addr+0x80/0xe0 arch/x86/mm/physaddr.c:27 RSP: ffff88808fde7af8
---[ end trace 53ff0a7f1baf55e8 ]---

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/07/26 20:36 linux-4.14.y 69b94dd6dcd1 51265195 .config console log report ci2-linux-4-14
* Struck through repros no longer work on HEAD.