syzbot


BUG: soft lockup in sctp_generate_heartbeat_event

Status: upstream: reported C repro on 2021/05/06 15:10
Reported-by: syzbot+11c587b549b3bdcfc082@syzkaller.appspotmail.com
First crash: 1318d, last: 652d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: soft lockup in sctp_generate_heartbeat_event sctp 1 2401d 2401d 0/28 closed as invalid on 2018/05/19 09:33
linux-4.14 BUG: soft lockup in sctp_generate_heartbeat_event (2) 1 1361d 1361d 0/1 auto-closed as invalid on 2021/07/22 12:40
linux-4.14 BUG: soft lockup in sctp_generate_heartbeat_event 2 1702d 1746d 0/1 auto-closed as invalid on 2020/08/15 07:16
upstream INFO: rcu detected stall in sctp_generate_heartbeat_event (4) sctp 1 1106d 1106d 0/28 closed as invalid on 2022/02/08 10:10

Sample crash report:
watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [syz-executor201:10799]
Modules linked in:
irq event stamp: 4177301
hardirqs last  enabled at (4177300): [<ffffffff881950e9>] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline]
hardirqs last  enabled at (4177300): [<ffffffff881950e9>] _raw_spin_unlock_irqrestore+0x79/0xe0 kernel/locking/spinlock.c:184
hardirqs last disabled at (4177301): [<ffffffff81003d00>] trace_hardirqs_off_thunk+0x1a/0x1c
softirqs last  enabled at (4173786): [<ffffffff88400678>] __do_softirq+0x678/0x980 kernel/softirq.c:318
softirqs last disabled at (4173789): [<ffffffff813927d5>] invoke_softirq kernel/softirq.c:372 [inline]
softirqs last disabled at (4173789): [<ffffffff813927d5>] irq_exit+0x215/0x260 kernel/softirq.c:412
CPU: 0 PID: 10799 Comm: syz-executor201 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023
RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:789 [inline]
RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0xa3/0xe0 kernel/locking/spinlock.c:184
Code: 48 c7 c0 88 82 f1 89 48 ba 00 00 00 00 00 fc ff df 48 c1 e8 03 80 3c 10 00 75 2f 48 83 3d 7c 31 d8 01 00 74 15 48 89 df 57 9d <0f> 1f 44 00 00 eb b2 e8 fb eb e6 f8 eb c0 0f 0b 0f 0b 48 c7 c7 88
RSP: 0018:ffff8880ba0078e0 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13
RAX: 1ffffffff13e3051 RBX: 0000000000000286 RCX: 1ffff11016036db4
RDX: dffffc0000000000 RSI: ffff8880b01b6d80 RDI: 0000000000000286
RBP: ffff8880ba022b40 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000022b40 R14: 0000000000000000 R15: ffff8880ba022b40
FS:  00007fb21a225700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055555629e708 CR3: 0000000009e6d000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 __mod_timer kernel/time/timer.c:1071 [inline]
 mod_timer+0x4ea/0x1010 kernel/time/timer.c:1114
 sctp_transport_reset_hb_timer+0x192/0x200 net/sctp/transport.c:212
 sctp_cmd_interpreter net/sctp/sm_sideeffect.c:1677 [inline]
 sctp_side_effects net/sctp/sm_sideeffect.c:1199 [inline]
 sctp_do_sm+0x39c9/0x5110 net/sctp/sm_sideeffect.c:1170
 sctp_generate_heartbeat_event+0x2af/0x490 net/sctp/sm_sideeffect.c:406
 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:arch_local_irq_restore arch/x86/include/asm/paravirt.h:789 [inline]
RIP: 0010:lock_acquire+0x1ec/0x3c0 kernel/locking/lockdep.c:3911
Code: 08 00 00 00 00 00 00 48 c1 e8 03 80 3c 10 00 0f 85 b7 01 00 00 48 83 3d 09 2e a6 08 00 0f 84 2a 01 00 00 48 8b 7c 24 08 57 9d <0f> 1f 44 00 00 48 83 c4 18 5b 5d 41 5c 41 5d 41 5e 41 5f c3 65 8b
RSP: 0018:ffff888076057668 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13
RAX: 1ffffffff13e3051 RBX: ffff8880b01b6480 RCX: 101c7ce80a9a1d98
RDX: dffffc0000000000 RSI: 00000000015b370c RDI: 0000000000000286
RBP: ffffffff89f85fa0 R08: 00000000c985a8da R09: 0000000000000001
R10: ffff8880b01b6d30 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000002 R15: 0000000000000000
 rcu_lock_acquire include/linux/rcupdate.h:242 [inline]
 rcu_read_lock include/linux/rcupdate.h:627 [inline]
 lock_page_memcg+0x36/0x220 mm/memcontrol.c:1908
 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:0x7fb21aa9d189
Code: Bad RIP value.
RSP: 002b:00007fb21a2251f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: fffffffffffffe00 RBX: 00007fb21ab2d298 RCX: 00007fb21aa9d189
RDX: 000000000000006b RSI: 0000000000000084 RDI: 0000000000000005
RBP: 00007fb21ab2d290 R08: 000000000000001c R09: 0000000000000000
R10: 000000002055bfe4 R11: 0000000000000246 R12: 00007fb21ab2d29c
R13: 00007ffdc384512f R14: 00007fb21a225300 R15: 0000000000022000

Crashes (14):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/03/03 09:29 linux-4.19.y 3f8a27f9e27b f8902b57 .config console log report syz C [disk image] [vmlinux] ci2-linux-4-19 BUG: soft lockup in sctp_generate_heartbeat_event
2022/07/05 00:31 linux-4.19.y 3f8a27f9e27b bff65f44 .config console log report syz C ci2-linux-4-19 BUG: soft lockup in sctp_generate_heartbeat_event
2021/10/27 12:25 linux-4.19.y 3f8a27f9e27b d50eb50a .config console log report syz ci2-linux-4-19 BUG: soft lockup in sctp_generate_heartbeat_event
2022/07/04 19:21 linux-4.19.y 3f8a27f9e27b bff65f44 .config console log report info ci2-linux-4-19 BUG: soft lockup in sctp_generate_heartbeat_event
2022/05/13 22:20 linux-4.19.y 3f8a27f9e27b 107f6434 .config console log report info ci2-linux-4-19 BUG: soft lockup in sctp_generate_heartbeat_event
2022/01/08 03:53 linux-4.19.y 3f8a27f9e27b 2ca0d385 .config console log report info ci2-linux-4-19 BUG: soft lockup in sctp_generate_heartbeat_event
2021/12/13 12:02 linux-4.19.y 3f8a27f9e27b 0304899b .config console log report info ci2-linux-4-19 BUG: soft lockup in sctp_generate_heartbeat_event
2021/12/02 00:39 linux-4.19.y 3f8a27f9e27b 61f86278 .config console log report info ci2-linux-4-19 BUG: soft lockup in sctp_generate_heartbeat_event
2021/11/05 02:37 linux-4.19.y 3f8a27f9e27b 4c1be0be .config console log report info ci2-linux-4-19 BUG: soft lockup in sctp_generate_heartbeat_event
2021/10/26 12:40 linux-4.19.y 3f8a27f9e27b d50eb50a .config console log report info ci2-linux-4-19 BUG: soft lockup in sctp_generate_heartbeat_event
2021/10/15 06:50 linux-4.19.y 3f8a27f9e27b aab7690b .config console log report info ci2-linux-4-19 BUG: soft lockup in sctp_generate_heartbeat_event
2021/07/27 16:50 linux-4.19.y 4938296e03bd 17d6ab15 .config console log report info ci2-linux-4-19 BUG: soft lockup in sctp_generate_heartbeat_event
2021/05/12 19:20 linux-4.19.y 3c8c23092588 ed7d41c5 .config console log report info ci2-linux-4-19 BUG: soft lockup in sctp_generate_heartbeat_event
2021/05/06 15:09 linux-4.19.y 97a8651cadce 06585184 .config console log report info ci2-linux-4-19 BUG: soft lockup in sctp_generate_heartbeat_event
* Struck through repros no longer work on HEAD.