syzbot


BUG: soft lockup in dccp_write_timer

Status: auto-closed as invalid on 2022/04/02 05:38
Reported-by: syzbot+e443eb5085626929cac5@syzkaller.appspotmail.com
First crash: 1097d, last: 1097d

Sample crash report:
watchdog: BUG: soft lockup - CPU#0 stuck for 21s! [syz-executor.2:11444]
Modules linked in:
irq event stamp: 3962485
hardirqs last  enabled at (3962484): [<ffffffff81003ce4>] trace_hardirqs_on_thunk+0x1a/0x1c
hardirqs last disabled at (3962485): [<ffffffff81003d00>] trace_hardirqs_off_thunk+0x1a/0x1c
softirqs last  enabled at (3213296): [<ffffffff88400678>] __do_softirq+0x678/0x980 kernel/softirq.c:318
softirqs last disabled at (3213299): [<ffffffff813927d5>] invoke_softirq kernel/softirq.c:372 [inline]
softirqs last disabled at (3213299): [<ffffffff813927d5>] irq_exit+0x215/0x260 kernel/softirq.c:412
CPU: 0 PID: 11444 Comm: syz-executor.2 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:slab_pre_alloc_hook mm/slab.h:424 [inline]
RIP: 0010:slab_alloc mm/slab.c:3383 [inline]
RIP: 0010:kmem_cache_alloc+0x37/0x370 mm/slab.c:3557
Code: f5 53 8b 1d 97 d4 8e 09 21 f3 89 df 41 89 dc e8 1f 6c e6 ff 89 df e8 08 6b e6 ff 41 81 e4 00 00 20 00 0f 85 25 02 00 00 89 de <4c> 89 ef e8 e1 3a f0 ff 85 c0 0f 85 38 02 00 00 0f 1f 44 00 00 4d
RSP: 0018:ffff8880ba007c38 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000007 RBX: 0000000000480020 RCX: ffffffff86710154
RDX: 0000000000000000 RSI: 0000000000480020 RDI: ffff8880434e8464
RBP: 0000000000480020 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
R13: ffff8880b5b8fd80 R14: 0000000000000000 R15: ffff88804a81228e
FS:  00007f1224120700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055ee1f6031e8 CR3: 00000000afac8000 CR4: 00000000003426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 skb_clone+0x151/0x3d0 net/core/skbuff.c:1293
 dccp_retransmit_skb+0x100/0x160 net/dccp/output.c:391
 dccp_retransmit_timer net/dccp/timer.c:105 [inline]
 dccp_write_timer+0x3ec/0x13c0 net/dccp/timer.c:157
 call_timer_fn+0x177/0x700 kernel/time/timer.c:1338
 expire_timers+0x243/0x4e0 kernel/time/timer.c:1375
 __run_timers kernel/time/timer.c:1696 [inline]
 run_timer_softirq+0x21c/0x670 kernel/time/timer.c:1709
 __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:zap_pte_range mm/memory.c:1316 [inline]
RIP: 0010:zap_pmd_range mm/memory.c:1463 [inline]
RIP: 0010:zap_pud_range mm/memory.c:1492 [inline]
RIP: 0010:zap_p4d_range mm/memory.c:1513 [inline]
RIP: 0010:unmap_page_range+0xaa2/0x2c50 mm/memory.c:1534
Code: 4c 01 f0 48 89 84 24 88 00 00 00 49 8d 87 00 f0 ff ff 48 89 44 24 70 e8 dc ee d6 ff 48 8b 44 24 30 48 c1 e8 03 42 80 3c 30 00 <0f> 85 4d 1c 00 00 48 8b 44 24 30 31 ff 4c 8b 20 4c 89 e3 48 83 e3
RSP: 0018:ffff8882388a7770 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
RAX: 1ffff110474bfc5f RBX: 00007f1224d22000 RCX: ffffffff818b9c86
RDX: 0000000000000000 RSI: ffffffff818b9694 RDI: 0000000000000006
RBP: ffffea0002bc5630 R08: 0000000000000000 R09: 00007f1224d22000
R10: 0000000000000006 R11: 0000000000000000 R12: dead000000000100
R13: ffffea0002bc5600 R14: dffffc0000000000 R15: 00007f1224c60000
 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:0x7f1226baaae9
Code: Bad RIP value.
RSP: 002b:00007f1224120188 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: fffffffffffffffc RBX: 00007f1226cbdf60 RCX: 00007f1226baaae9
RDX: 9999999999999999 RSI: 0000000000000000 RDI: 0000000020002100
RBP: 00007f1226c04f6d R08: ffffffffffffffff R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd8edec3df R14: 00007f1224120300 R15: 0000000000022000
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 11442 Comm: syz-executor.0 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__lock_acquire+0x6fc/0x3ff0 kernel/locking/lockdep.c:3393
Code: 24 28 4c 89 54 24 20 e8 d2 e6 ff ff 4c 8b 54 24 20 85 c0 44 8b 4c 24 28 44 8b 44 24 30 0f 84 91 fa ff ff 48 c7 c2 60 37 24 8d <48> b8 00 00 00 00 00 fc ff df 48 c1 ea 03 0f b6 14 02 48 c7 c0 60
RSP: 0018:ffff8880ba106c38 EFLAGS: 00000002
RAX: 0000000000000001 RBX: 0000000000000000 RCX: 1ffff1101183dd29
RDX: ffffffff8d243760 RSI: ffff88808c1ee928 RDI: ffffffff8cd630c0
RBP: 0000000000000000 R08: 000000000000002e R09: 0000000000000004
R10: ffff88808c1ee928 R11: ffffffff8c66505b R12: 00000000000a602e
R13: ffff88808c1ee000 R14: ffff88808c1ee940 R15: 0000000000000000
FS:  00007fdb09b54700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f5dbf3873a4 CR3: 00000000a9245000 CR4: 00000000003426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 lock_acquire+0x170/0x3c0 kernel/locking/lockdep.c:3908
 rcu_lock_acquire include/linux/rcupdate.h:242 [inline]
 rcu_read_lock include/linux/rcupdate.h:627 [inline]
 __perf_event_output kernel/events/core.c:6614 [inline]
 perf_event_output_forward+0xa5/0x270 kernel/events/core.c:6634
 __perf_event_overflow+0x13c/0x370 kernel/events/core.c:7907
 perf_swevent_hrtimer+0x272/0x3e0 kernel/events/core.c:9261
 __run_hrtimer kernel/time/hrtimer.c:1465 [inline]
 __hrtimer_run_queues+0x3f6/0xe60 kernel/time/hrtimer.c:1527
 hrtimer_interrupt+0x326/0x9e0 kernel/time/hrtimer.c:1585
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1071 [inline]
 smp_apic_timer_interrupt+0x10c/0x550 arch/x86/kernel/apic/apic.c:1096
 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894
RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:789 [inline]
RIP: 0010:lock_is_held_type+0x17a/0x210 kernel/locking/lockdep.c:3948
Code: 00 00 00 00 fc ff df c7 85 84 08 00 00 00 00 00 00 48 c1 e8 03 80 3c 10 00 75 63 48 83 3d 45 cc a6 08 00 74 2c 48 89 df 57 9d <0f> 1f 44 00 00 48 83 c4 08 44 89 e0 5b 5d 41 5c c3 48 83 c4 08 41
RSP: 0018:ffff8880ba107510 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13
RAX: 1ffffffff13e3051 RBX: 0000000000000286 RCX: ffffffff870786e1
RDX: dffffc0000000000 RSI: 00000000ffffffff RDI: 0000000000000286
RBP: ffff88808c1ee000 R08: ffff888091fe93c0 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000003 R14: ffff88809c1a7680 R15: dffffc0000000000
 lock_is_held include/linux/lockdep.h:344 [inline]
 lockdep_rtnl_is_held+0x17/0x30 net/core/rtnetlink.c:136
 __in6_dev_get include/net/addrconf.h:340 [inline]
 fib6_ignore_linkdown net/ipv6/route.c:655 [inline]
 find_match.part.0+0xb44/0x1530 net/ipv6/route.c:673
 find_match net/ipv6/route.c:670 [inline]
 find_rr_leaf net/ipv6/route.c:719 [inline]
 rt6_select net/ipv6/route.c:769 [inline]
 fib6_table_lookup+0x4c2/0xf40 net/ipv6/route.c:1876
 ip6_pol_route+0x180/0x1270 net/ipv6/route.c:1909
 fib6_rule_lookup+0x22d/0x4e0 net/ipv6/fib6_rules.c:122
 ip6_route_output_flags+0x2b0/0x350 net/ipv6/route.c:2163
 ip6_dst_lookup_tail+0x566/0x19b0 net/ipv6/ip6_output.c:1019
 ip6_dst_lookup_flow+0x8c/0x1d0 net/ipv6/ip6_output.c:1120
 inet6_sk_rebuild_header+0x549/0xc40 net/ipv6/af_inet6.c:743
 dccp_retransmit_skb+0x8f/0x160 net/dccp/output.c:385
 dccp_retransmit_timer net/dccp/timer.c:105 [inline]
 dccp_write_timer+0x3ec/0x13c0 net/dccp/timer.c:157
 call_timer_fn+0x177/0x700 kernel/time/timer.c:1338
 expire_timers+0x243/0x4e0 kernel/time/timer.c:1375
 __run_timers kernel/time/timer.c:1696 [inline]
 run_timer_softirq+0x21c/0x670 kernel/time/timer.c:1709
 __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:__tlb_remove_page_size+0xf8/0x470 mm/memory.c:316
Code: 28 48 8d 7d 08 48 89 fa 48 c1 ea 03 0f b6 04 02 84 c0 74 08 3c 03 0f 8e e0 02 00 00 48 b8 00 00 00 00 00 fc ff df 44 8b 65 08 <4a> 8d 7c e5 10 45 8d 6c 24 01 48 89 fa 48 c1 ea 03 44 89 6d 08 80
RSP: 0018:ffff888238fbf738 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
RAX: dffffc0000000000 RBX: ffff888238fbf9b0 RCX: ffffffff818b3334
RDX: 1ffff11013a02801 RSI: ffffffff818b3342 RDI: ffff88809d014008
RBP: ffff88809d014000 R08: 0000000000000000 R09: 0000000000001000
R10: 0000000000000004 R11: 0000000000000000 R12: 0000000000000101
R13: ffffea0002d2c240 R14: ffffea0002d2c240 R15: ffff888238fbf9d8
 __tlb_remove_page include/asm-generic/tlb.h:161 [inline]
 zap_pte_range mm/memory.c:1353 [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+0x14e7/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:0x7fdb0c5deae9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fdb09b54188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: 0000000000000094 RBX: 00007fdb0c6f1f60 RCX: 00007fdb0c5deae9
RDX: 0000000000000000 RSI: 000000002000c2c0 RDI: 0000000000000004
RBP: 00007fdb0c638f6d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffcd031ed1f R14: 00007fdb09b54300 R15: 0000000000022000
----------------
Code disassembly (best guess):
   0:	f5                   	cmc
   1:	53                   	push   %rbx
   2:	8b 1d 97 d4 8e 09    	mov    0x98ed497(%rip),%ebx        # 0x98ed49f
   8:	21 f3                	and    %esi,%ebx
   a:	89 df                	mov    %ebx,%edi
   c:	41 89 dc             	mov    %ebx,%r12d
   f:	e8 1f 6c e6 ff       	callq  0xffe66c33
  14:	89 df                	mov    %ebx,%edi
  16:	e8 08 6b e6 ff       	callq  0xffe66b23
  1b:	41 81 e4 00 00 20 00 	and    $0x200000,%r12d
  22:	0f 85 25 02 00 00    	jne    0x24d
  28:	89 de                	mov    %ebx,%esi
* 2a:	4c 89 ef             	mov    %r13,%rdi <-- trapping instruction
  2d:	e8 e1 3a f0 ff       	callq  0xfff03b13
  32:	85 c0                	test   %eax,%eax
  34:	0f 85 38 02 00 00    	jne    0x272
  3a:	0f 1f 44 00 00       	nopl   0x0(%rax,%rax,1)
  3f:	4d                   	rex.WRB

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/12/03 05:38 linux-4.19.y 3f8a27f9e27b 61f86278 .config console log report info ci2-linux-4-19 BUG: soft lockup in dccp_write_timer
* Struck through repros no longer work on HEAD.