syzbot


BUG: soft lockup in do_wp_page (3)

Status: auto-closed as invalid on 2020/10/05 22:00
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+5c676f4efe769e17b7c5@syzkaller.appspotmail.com
First crash: 1389d, last: 1387d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: soft lockup in do_wp_page (2) kernel 1 1559d 1555d 0/26 auto-closed as invalid on 2020/04/16 05:42
upstream BUG: soft lockup in do_wp_page kernel 1 2043d 2042d 0/26 auto-closed as invalid on 2019/03/19 22:21
upstream BUG: soft lockup in do_wp_page (4) mm 31 1086d 1133d 0/26 auto-closed as invalid on 2021/09/01 04:11

Sample crash report:
watchdog: BUG: soft lockup - CPU#1 stuck for 123s! [syz-executor.2:22104]
Modules linked in:
irq event stamp: 33900
hardirqs last  enabled at (33899): [<ffffffff88000c42>] asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:596
hardirqs last disabled at (33900): [<ffffffff87e462cd>] idtentry_enter_cond_rcu+0x1d/0x50 arch/x86/entry/common.c:607
softirqs last  enabled at (4062): [<ffffffff812a8896>] memcpy include/linux/string.h:406 [inline]
softirqs last  enabled at (4062): [<ffffffff812a8896>] fpu__copy+0x176/0x750 arch/x86/kernel/fpu/core.c:195
softirqs last disabled at (4060): [<ffffffff812a87c1>] fpu__copy+0xa1/0x750 arch/x86/kernel/fpu/core.c:183
CPU: 1 PID: 22104 Comm: syz-executor.2 Not tainted 5.8.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:csd_lock_wait kernel/smp.c:108 [inline]
RIP: 0010:smp_call_function_single+0x192/0x4f0 kernel/smp.c:382
Code: 10 8b 7c 24 1c 48 8d 74 24 40 48 89 44 24 50 48 8b 44 24 08 48 89 44 24 58 e8 fa f9 ff ff 41 89 c5 eb 07 e8 f0 ff 0a 00 f3 90 <44> 8b 64 24 48 31 ff 41 83 e4 01 44 89 e6 e8 5b fc 0a 00 45 85 e4
RSP: 0000:ffffc90005427940 EFLAGS: 00000293
RAX: 0000000000000000 RBX: 1ffff92000a84f2c RCX: ffffffff8168b785
RDX: ffff8880516fa440 RSI: ffffffff8168b770 RDI: 0000000000000005
RBP: ffffc90005427a20 R08: 0000000000000001 R09: ffff8880ae636dc7
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000001
R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000040
FS:  000000000116d940(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000078c000 CR3: 000000008ddd3000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 smp_call_function_many_cond+0x1a4/0x990 kernel/smp.c:518
 on_each_cpu_cond_mask+0x50/0x290 kernel/smp.c:766
 __flush_tlb_others arch/x86/include/asm/paravirt.h:74 [inline]
 flush_tlb_others arch/x86/mm/tlb.c:856 [inline]
 flush_tlb_mm_range+0x295/0x4d0 arch/x86/mm/tlb.c:943
 flush_tlb_page arch/x86/include/asm/tlbflush.h:235 [inline]
 ptep_clear_flush+0x12b/0x160 mm/pgtable-generic.c:97
 wp_page_copy+0x919/0x1870 mm/memory.c:2713
 do_wp_page+0x6a1/0x1950 mm/memory.c:2982
 handle_pte_fault mm/memory.c:4243 [inline]
 __handle_mm_fault mm/memory.c:4357 [inline]
 handle_mm_fault+0x2aed/0x43f0 mm/memory.c:4394
 do_user_addr_fault+0x5a2/0xd00 arch/x86/mm/fault.c:1295
 handle_page_fault arch/x86/mm/fault.c:1365 [inline]
 exc_page_fault+0xab/0x170 arch/x86/mm/fault.c:1418
 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:565
RIP: 0033:0x410225
Code: Bad RIP value.
RSP: 002b:00007fffe83928c0 EFLAGS: 00010297
RAX: 0000000000000030 RBX: 000000000078bfac RCX: 0000000000000000
RDX: 00000000000000a0 RSI: 00007f2bcdb00db0 RDI: 000000000078bfa8
RBP: 000000000078bfa0 R08: 0000000000000000 R09: 00007f2bcdb01700
R10: 00007f2bcdb019d0 R11: 0000000000000202 R12: 0000000000000064
R13: 0000000000000001 R14: 000000000000007c R15: 000000000078bfac
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 22108 Comm: syz-executor.2 Not tainted 5.8.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:lock_acquire+0x28b/0xad0 kernel/locking/lockdep.c:4931
Code: 08 00 0f 84 a6 05 00 00 48 8b 7c 24 08 57 9d 0f 1f 44 00 00 48 b8 00 00 00 00 00 fc ff df 48 03 44 24 10 48 c7 00 00 00 00 00 <48> c7 40 08 00 00 00 00 48 8b 84 24 b8 00 00 00 65 48 2b 04 25 28
RSP: 0018:ffffc90000007cd8 EFLAGS: 00000086
RAX: fffff52000000f9f RBX: ffff88803f822180 RCX: 0000000000000001
RDX: dffffc0000000000 RSI: 0000000000000008 RDI: 0000000000000082
RBP: 0000000000000000 R08: 0000000000000000 R09: ffffffff8c58fa2f
R10: fffffbfff18b1f45 R11: 0000000000000000 R12: 0000000000000000
R13: ffff8880ae627758 R14: 0000000000000000 R15: ffff88803f822180
FS:  00007f2bcdb22700(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000400200 CR3: 000000008ddd3000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 __raw_spin_lock_irq include/linux/spinlock_api_smp.h:128 [inline]
 _raw_spin_lock_irq+0x5b/0x80 kernel/locking/spinlock.c:167
 __run_hrtimer kernel/time/hrtimer.c:1524 [inline]
 __hrtimer_run_queues+0x252/0xfc0 kernel/time/hrtimer.c:1584
 hrtimer_interrupt+0x32a/0x930 kernel/time/hrtimer.c:1646
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1080 [inline]
 __sysvec_apic_timer_interrupt+0x142/0x5e0 arch/x86/kernel/apic/apic.c:1097
 asm_call_on_stack+0xf/0x20 arch/x86/entry/entry_64.S:711
 </IRQ>
 __run_on_irqstack arch/x86/include/asm/irq_stack.h:22 [inline]
 run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:48 [inline]
 sysvec_apic_timer_interrupt+0xe0/0x120 arch/x86/kernel/apic/apic.c:1091
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:596
RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:765 [inline]
RIP: 0010:on_each_cpu+0x149/0x240 kernel/smp.c:702
Code: 00 fc ff df 48 c1 e8 03 80 3c 10 00 0f 85 e6 00 00 00 48 83 3d 57 12 4c 08 00 0f 84 af 00 00 00 e8 6c e9 0a 00 48 89 df 57 9d <0f> 1f 44 00 00 e8 5d e9 0a 00 bf 01 00 00 00 e8 83 a4 e6 ff 31 ff
RSP: 0018:ffffc90005377d70 EFLAGS: 00000212
RAX: 0000000000000576 RBX: 0000000000000212 RCX: ffffc9000ecae000
RDX: 0000000000040000 RSI: ffffffff8168cdf4 RDI: 0000000000000212
RBP: 0000000000000200 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: ffffc90005377ed0 R15: ffffffffa0fb1319
 clock_was_set+0x18/0x20 kernel/time/hrtimer.c:872
 do_settimeofday64 kernel/time/timekeeping.c:1257 [inline]
 do_settimeofday64+0x350/0x4e0 kernel/time/timekeeping.c:1223
 do_sys_settimeofday64 kernel/time/time.c:195 [inline]
 do_sys_settimeofday64+0x1de/0x260 kernel/time/time.c:169
 __do_sys_clock_settime kernel/time/posix-timers.c:1079 [inline]
 __se_sys_clock_settime kernel/time/posix-timers.c:1067 [inline]
 __x64_sys_clock_settime+0x197/0x260 kernel/time/posix-timers.c:1067
 do_syscall_64+0x60/0xe0 arch/x86/entry/common.c:359
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x45cb29
Code: Bad RIP value.
RSP: 002b:00007f2bcdb21c78 EFLAGS: 00000246 ORIG_RAX: 00000000000000e3
RAX: ffffffffffffffda RBX: 00000000004db560 RCX: 000000000045cb29
RDX: 0000000000000000 RSI: 0000000020000400 RDI: 0000000000000000
RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 000000000000007b R14: 00000000004c34ac R15: 00007f2bcdb226d4

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/07/07 21:59 upstream 7cc2a8ea1048 51095195 .config console log report ci-upstream-kasan-gce-root
2020/07/05 22:44 upstream 7cc2a8ea1048 51095195 .config console log report ci-upstream-kasan-gce-selinux-root
2020/07/05 10:08 upstream 7cc2a8ea1048 51095195 .config console log report ci-upstream-kasan-gce-smack-root
* Struck through repros no longer work on HEAD.