syzbot


BUG: soft lockup in rcu_process_callbacks

Status: auto-closed as invalid on 2022/07/27 19:15
Reported-by: syzbot+272b1e7dafe06ecaf079@syzkaller.appspotmail.com
First crash: 980d, last: 980d

Sample crash report:
ieee802154 phy1 wpan1: encryption failed: -22
Bluetooth: hci4: command 0x0406 tx timeout
Bluetooth: hci3: command 0x0406 tx timeout
Bluetooth: hci0: command 0x0406 tx timeout
Bluetooth: hci5: command 0x0406 tx timeout
watchdog: BUG: soft lockup - CPU#0 stuck for 24s! [syz-executor.4:13826]
Modules linked in:
irq event stamp: 10588649
hardirqs last  enabled at (10588648): [<ffffffff81983520>] kfree+0x110/0x210 mm/slab.c:3823
hardirqs last disabled at (10588649): [<ffffffff81003d00>] trace_hardirqs_off_thunk+0x1a/0x1c
softirqs last  enabled at (10563936): [<ffffffff88400678>] __do_softirq+0x678/0x980 kernel/softirq.c:318
softirqs last disabled at (10563939): [<ffffffff813927d5>] invoke_softirq kernel/softirq.c:372 [inline]
softirqs last disabled at (10563939): [<ffffffff813927d5>] irq_exit+0x215/0x260 kernel/softirq.c:412
CPU: 0 PID: 13826 Comm: syz-executor.4 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:789 [inline]
RIP: 0010:kfree+0x123/0x210 mm/slab.c:3823
Code: 89 ea 48 89 ee 4c 89 e7 e8 da ee ff ff f6 c7 02 74 ca e8 20 74 cf ff 48 83 3d 60 4d 59 08 00 0f 84 eb 00 00 00 48 89 df 57 9d <0f> 1f 44 00 00 5b 5d 41 5c 41 5d c3 65 8b 05 ea 4b 69 7e 83 f8 07
RSP: 0018:ffff8880ba007df8 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000007 RBX: 0000000000000286 RCX: 1ffff110130f85e5
RDX: 0000000000000000 RSI: ffff8880987c2f30 RDI: 0000000000000286
RBP: ffff8880b3006400 R08: 0000000000400000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff88813bff04c0
R13: ffffffff81514a2d R14: 000000000000000a R15: dffffc0000000000
FS:  00007feb2857f700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c004c91a00 CR3: 0000000009e6d000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 __rcu_reclaim kernel/rcu/rcu.h:231 [inline]
 rcu_do_batch kernel/rcu/tree.c:2584 [inline]
 invoke_rcu_callbacks kernel/rcu/tree.c:2897 [inline]
 __rcu_process_callbacks kernel/rcu/tree.c:2864 [inline]
 rcu_process_callbacks+0xa0d/0x18b0 kernel/rcu/tree.c:2881
 __do_softirq+0x265/0x980 kernel/softirq.c:292
 invoke_softirq kernel/softirq.c:372 [inline]
 irq_exit+0x215/0x260 kernel/softirq.c:412
 exiting_irq arch/x86/include/asm/apic.h:536 [inline]
 smp_apic_timer_interrupt+0x136/0x550 arch/x86/kernel/apic/apic.c:1098
 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894
 </IRQ>
RIP: 0010:lock_page_memcg+0x2/0x220 mm/memcontrol.c:1893
Code: 08 fb ff 48 8b 04 24 e9 70 fe ff ff 48 89 df e8 c4 08 fb ff e9 4b ff ff ff e8 8a 0b fb ff e9 63 ff ff ff 0f 1f 44 00 00 41 57 <41> 56 41 55 41 54 55 53 48 89 fb 48 83 ec 08 e8 1a b2 b3 ff 31 d2
RSP: 0018:ffff8880168ff6f0 EFLAGS: 00000293 ORIG_RAX: ffffffffffffff13
RAX: ffff8880987c2680 RBX: 0000000000000000 RCX: ffffffff818fb0d1
RDX: 0000000000000000 RSI: ffffffff818fb0de RDI: ffffea0001356d00
RBP: ffffea0001356d00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: ffffea0001356d00 R15: 00007feb28f2a000
 page_remove_file_rmap+0x36/0xa30 mm/rmap.c:1212
 page_remove_rmap+0xe5/0x120 mm/rmap.c:1297
 zap_pte_range mm/memory.c:1350 [inline]
 zap_pmd_range mm/memory.c:1463 [inline]
 zap_pud_range mm/memory.c:1492 [inline]
 zap_p4d_range mm/memory.c:1513 [inline]
 unmap_page_range+0x147d/0x2c50 mm/memory.c:1534
 unmap_single_vma+0x198/0x300 mm/memory.c:1579
 unmap_vmas+0xa9/0x180 mm/memory.c:1609
 exit_mmap+0x2b9/0x530 mm/mmap.c:3093
 __mmput kernel/fork.c:1016 [inline]
 mmput+0x14e/0x4a0 kernel/fork.c:1037
 exit_mm kernel/exit.c:549 [inline]
 do_exit+0xaec/0x2be0 kernel/exit.c:857
 do_group_exit+0x125/0x310 kernel/exit.c:967
 get_signal+0x3f2/0x1f70 kernel/signal.c:2589
 do_signal+0x8f/0x1670 arch/x86/kernel/signal.c:799
 exit_to_usermode_loop+0x204/0x2a0 arch/x86/entry/common.c:163
 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:271 [inline]
 do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7feb29c0a049
Code: Bad RIP value.
RSP: 002b:00007feb2857f168 EFLAGS: 00000246 ORIG_RAX: 0000000000000133
RAX: 0000000000000070 RBX: 00007feb29d1cf60 RCX: 00007feb29c0a049
RDX: 0400000000000070 RSI: 0000000020007fc0 RDI: 0000000000000004
RBP: 00007feb29c6408d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fff9412b83f R14: 00007feb2857f300 R15: 0000000000022000
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 18 Comm: ksoftirqd/1 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:rcu_lockdep_current_cpu_online+0x14/0x1b0 kernel/rcu/tree.c:1074
Code: 72 23 47 00 eb 8e 48 c7 c7 34 e1 26 8b e8 64 23 47 00 eb cd 66 90 65 8b 05 d9 a0 b0 7e a9 00 00 10 00 75 0a 8b 05 b0 a1 d5 09 <85> c0 75 06 b8 01 00 00 00 c3 41 55 bf 01 00 00 00 41 54 55 53 48
RSP: 0018:ffff8880b5acfca0 EFLAGS: 00000246
RAX: 0000000000000001 RBX: ffffffff8a45f160 RCX: ffffffff81518c83
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffff8880ba122ad0
RBP: ffff8880b5aba4c0 R08: 0000000000000000 R09: ffffed101742455a
R10: ffff8880ba122ad3 R11: 0000000000000000 R12: ffffffff81514a2d
R13: ffff8880b5acfd60 R14: 000000000000000a R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c029ca06b0 CR3: 00000000a17c6000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 rcu_read_lock_sched_held+0xd3/0x1d0 kernel/rcu/update.c:115
 trace_kfree include/trace/events/kmem.h:137 [inline]
 kfree+0x1e2/0x210 mm/slab.c:3812
 __rcu_reclaim kernel/rcu/rcu.h:231 [inline]
 rcu_do_batch kernel/rcu/tree.c:2584 [inline]
 invoke_rcu_callbacks kernel/rcu/tree.c:2897 [inline]
 __rcu_process_callbacks kernel/rcu/tree.c:2864 [inline]
 rcu_process_callbacks+0xa0d/0x18b0 kernel/rcu/tree.c:2881
 __do_softirq+0x265/0x980 kernel/softirq.c:292
 run_ksoftirqd+0x57/0x110 kernel/softirq.c:653
 smpboot_thread_fn+0x655/0x9e0 kernel/smpboot.c:164
 kthread+0x33f/0x460 kernel/kthread.c:259
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
----------------
Code disassembly (best guess):
   0:	89 ea                	mov    %ebp,%edx
   2:	48 89 ee             	mov    %rbp,%rsi
   5:	4c 89 e7             	mov    %r12,%rdi
   8:	e8 da ee ff ff       	callq  0xffffeee7
   d:	f6 c7 02             	test   $0x2,%bh
  10:	74 ca                	je     0xffffffdc
  12:	e8 20 74 cf ff       	callq  0xffcf7437
  17:	48 83 3d 60 4d 59 08 	cmpq   $0x0,0x8594d60(%rip)        # 0x8594d7f
  1e:	00
  1f:	0f 84 eb 00 00 00    	je     0x110
  25:	48 89 df             	mov    %rbx,%rdi
  28:	57                   	push   %rdi
  29:	9d                   	popfq
* 2a:	0f 1f 44 00 00       	nopl   0x0(%rax,%rax,1) <-- trapping instruction
  2f:	5b                   	pop    %rbx
  30:	5d                   	pop    %rbp
  31:	41 5c                	pop    %r12
  33:	41 5d                	pop    %r13
  35:	c3                   	retq
  36:	65 8b 05 ea 4b 69 7e 	mov    %gs:0x7e694bea(%rip),%eax        # 0x7e694c27
  3d:	83 f8 07             	cmp    $0x7,%eax

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/03/29 19:14 linux-4.19.y 3f8a27f9e27b 6bdac766 .config console log report info ci2-linux-4-19 BUG: soft lockup in rcu_process_callbacks
* Struck through repros no longer work on HEAD.