syzbot


BUG: soft lockup in ip_rcv

Status: upstream: reported C repro on 2021/05/04 03:32
Reported-by: syzbot+b18d5a06aac2503313d6@syzkaller.appspotmail.com
First crash: 1299d, last: 631d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (10)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 BUG: soft lockup in ip_rcv (2) 1 1335d 1335d 0/1 auto-closed as invalid on 2021/07/26 15:49
linux-4.14 BUG: soft lockup in ip_rcv 1 1498d 1498d 0/1 auto-closed as invalid on 2021/02/14 05:25
linux-4.14 BUG: soft lockup in ip_rcv (3) C error 4 811d 931d 0/1 upstream: reported C repro on 2022/05/07 10:08
upstream INFO: rcu detected stall in ip_rcv (3) kernel 1 1314d 1314d 0/28 auto-closed as invalid on 2021/07/17 18:11
upstream INFO: rcu detected stall in ip_rcv (4) bpf net 12 942d 1013d 0/28 auto-closed as invalid on 2022/07/25 09:18
upstream INFO: rcu detected stall in ip_rcv (5) net 2 456d 468d 0/28 auto-obsoleted due to no activity on 2023/11/23 01:36
upstream INFO: rcu detected stall in ip_rcv netfilter 2 1946d 2109d 0/28 auto-closed as invalid on 2019/10/25 14:11
upstream INFO: rcu detected stall in ip_rcv (2) net 1 1453d 1453d 0/28 auto-closed as invalid on 2021/03/01 14:28
linux-4.14 INFO: rcu detected stall in ip_rcv (2) 1 1463d 1463d 0/1 auto-closed as invalid on 2021/03/20 21:11
linux-4.14 INFO: rcu detected stall in ip_rcv 3 1644d 1662d 0/1 auto-closed as invalid on 2020/09/21 12:55

Sample crash report:
IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50
wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50
IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [syz-executor154:9489]
Modules linked in:
irq event stamp: 2785783
hardirqs last  enabled at (2785782): [<ffffffff81003ce4>] trace_hardirqs_on_thunk+0x1a/0x1c
hardirqs last disabled at (2785783): [<ffffffff81003d00>] trace_hardirqs_off_thunk+0x1a/0x1c
softirqs last  enabled at (2565440): [<ffffffff88400678>] __do_softirq+0x678/0x980 kernel/softirq.c:318
softirqs last disabled at (2565443): [<ffffffff813927d5>] invoke_softirq kernel/softirq.c:372 [inline]
softirqs last disabled at (2565443): [<ffffffff813927d5>] irq_exit+0x215/0x260 kernel/softirq.c:412
CPU: 0 PID: 9489 Comm: syz-executor154 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:orc_find arch/x86/kernel/unwind_orc.c:150 [inline]
RIP: 0010:unwind_next_frame+0x285/0x1400 arch/x86/kernel/unwind_orc.c:422
Code: 48 89 54 24 30 48 89 74 24 28 44 89 5c 24 20 e8 71 de 6e 00 48 8b 54 24 30 48 8b 74 24 28 44 8b 5c 24 20 8b 0c 95 bc 91 17 8c <8d> 56 01 48 b8 00 00 00 00 00 fc ff df 48 8d 3c 95 bc 91 17 8c 49
RSP: 0018:ffff8880ba006d08 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000003 RBX: 1ffff11017400daa RCX: 000000000000a1f4
RDX: 000000000000299b RSI: 000000000000299b RDI: ffffffff8c183828
RBP: 0000000000000002 R08: 0000000000000000 R09: ffff8880ba006f18
R10: ffff8880ba006f4f R11: 0000000000074071 R12: ffff8880ba006f38
R13: ffff8880ba006f25 R14: ffff8880ba006ef0 R15: ffffffff81299b24
FS:  00005555568bc3c0(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005563f2e738b8 CR3: 00000000b24a9000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 __unwind_start+0x5b8/0x960 arch/x86/kernel/unwind_orc.c:667
 unwind_start arch/x86/include/asm/unwind.h:60 [inline]
 __save_stack_trace+0x72/0x190 arch/x86/kernel/stacktrace.c:43
 save_stack mm/kasan/kasan.c:448 [inline]
 set_track mm/kasan/kasan.c:460 [inline]
 kasan_kmalloc+0xeb/0x160 mm/kasan/kasan.c:553
 kmem_cache_alloc_node+0x146/0x3b0 mm/slab.c:3649
 __alloc_skb+0x71/0x560 net/core/skbuff.c:193
 alloc_skb include/linux/skbuff.h:995 [inline]
 sctp_packet_transmit+0x246/0x3660 net/sctp/output.c:584
 sctp_outq_flush_transports+0x19d/0x340 net/sctp/outqueue.c:1166
 sctp_outq_flush net/sctp/outqueue.c:1214 [inline]
 sctp_outq_uncork+0x185/0x200 net/sctp/outqueue.c:777
 sctp_cmd_interpreter net/sctp/sm_sideeffect.c:1815 [inline]
 sctp_side_effects net/sctp/sm_sideeffect.c:1199 [inline]
 sctp_do_sm+0x72a/0x5110 net/sctp/sm_sideeffect.c:1170
 sctp_assoc_bh_rcv+0x345/0x650 net/sctp/associola.c:1073
 sctp_inq_push+0x1da/0x270 net/sctp/inqueue.c:95
 sctp_rcv+0x1642/0x3300 net/sctp/input.c:268
 ip_local_deliver_finish+0x495/0xc00 net/ipv4/ip_input.c:215
 NF_HOOK include/linux/netfilter.h:289 [inline]
 ip_local_deliver+0x188/0x500 net/ipv4/ip_input.c:256
 dst_input include/net/dst.h:461 [inline]
 ip_rcv_finish+0x1ca/0x2e0 net/ipv4/ip_input.c:414
 NF_HOOK include/linux/netfilter.h:289 [inline]
 ip_rcv+0xca/0x3c0 net/ipv4/ip_input.c:524
 __netif_receive_skb_one_core+0x114/0x180 net/core/dev.c:4954
 __netif_receive_skb+0x27/0x1c0 net/core/dev.c:5066
 process_backlog+0x241/0x700 net/core/dev.c:5849
 napi_poll net/core/dev.c:6280 [inline]
 net_rx_action+0x4ac/0xfb0 net/core/dev.c:6346
 __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:preempt_schedule_irq+0xa6/0x140 kernel/sched/core.c:3744
Code: 00 00 e8 3d 04 29 f9 e8 58 3f 4f f9 4c 89 e8 48 c1 e8 03 80 3c 18 00 75 69 48 83 3d 9b 18 d9 01 00 74 5b fb 66 0f 1f 44 00 00 <bf> 01 00 00 00 e8 40 d1 ff ff 48 c7 c0 90 82 f1 89 48 c1 e8 03 80
RSP: 0018:ffff8880a3086cb0 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13
RAX: 1ffffffff13e3053 RBX: dffffc0000000000 RCX: 1ffff11013e63585
RDX: 0000000000000000 RSI: ffff88809f31ac30 RDI: ffff88809f31ac04
RBP: ffffed1013e63470 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff88809f31a380
R13: ffffffff89f18298 R14: 0000000000000000 R15: 0000000000000000
 retint_kernel+0x1b/0x2d
RIP: 0010:should_resched arch/x86/include/asm/preempt.h:99 [inline]
RIP: 0010:__local_bh_enable_ip+0x18d/0x270 kernel/softirq.c:196
Code: 00 00 00 00 fc ff df 48 c1 e8 03 80 3c 10 00 0f 85 dd 00 00 00 48 83 3d c8 5f b8 08 00 0f 84 8d 00 00 00 fb 66 0f 1f 44 00 00 <65> 8b 05 6c bc c8 7e 85 c0 74 7d 5b 5d 41 5c c3 80 3d f3 87 d5 09
RSP: 0018:ffff8880a3086d88 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13
RAX: 1ffffffff13e3053 RBX: 0000000000000200 RCX: 1ffff11013e63585
RDX: dffffc0000000000 RSI: ffff88809f31ac30 RDI: ffff88809f31ac04
RBP: ffffffff870217f6 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff88809f31a380
R13: ffff88809576ae40 R14: ffff88809b44c350 R15: ffff8880a4f87a80
 local_bh_enable include/linux/bottom_half.h:32 [inline]
 rcu_read_unlock_bh include/linux/rcupdate.h:721 [inline]
 ip6_finish_output2+0x11a9/0x2290 net/ipv6/ip6_output.c:121
 ip6_finish_output+0x89b/0x10f0 net/ipv6/ip6_output.c:192
 NF_HOOK_COND include/linux/netfilter.h:278 [inline]
 ip6_output+0x205/0x770 net/ipv6/ip6_output.c:209
 dst_output include/net/dst.h:455 [inline]
 NF_HOOK include/linux/netfilter.h:289 [inline]
 ip6_xmit+0xdbf/0x20a0 net/ipv6/ip6_output.c:313
 sctp_v6_xmit+0x377/0x710 net/sctp/ipv6.c:229
 sctp_packet_transmit+0x1e21/0x3660 net/sctp/output.c:641
 sctp_outq_flush_transports+0x19d/0x340 net/sctp/outqueue.c:1166
 sctp_outq_flush net/sctp/outqueue.c:1214 [inline]
 sctp_outq_uncork+0x185/0x200 net/sctp/outqueue.c:777
 sctp_cmd_interpreter net/sctp/sm_sideeffect.c:1815 [inline]
 sctp_side_effects net/sctp/sm_sideeffect.c:1199 [inline]
 sctp_do_sm+0x72a/0x5110 net/sctp/sm_sideeffect.c:1170
 sctp_assoc_bh_rcv+0x345/0x650 net/sctp/associola.c:1073
 sctp_inq_push+0x1da/0x270 net/sctp/inqueue.c:95
 sctp_backlog_rcv+0x1e9/0x11e0 net/sctp/input.c:356
 sk_backlog_rcv include/net/sock.h:952 [inline]
 __release_sock+0x134/0x3a0 net/core/sock.c:2362
 release_sock+0x54/0x1b0 net/core/sock.c:2901
 sctp_wait_for_connect+0x301/0x530 net/sctp/socket.c:8635
 __sctp_connect+0xb6e/0xd00 net/sctp/socket.c:1273
 __sctp_setsockopt_connectx+0x132/0x1c0 net/sctp/socket.c:1381
 sctp_setsockopt_connectx_old net/sctp/socket.c:1397 [inline]
 sctp_setsockopt+0x29d9/0x4b40 net/sctp/socket.c:4354
 __sys_setsockopt+0x14d/0x240 net/socket.c:2013
 __do_sys_setsockopt net/socket.c:2024 [inline]
 __se_sys_setsockopt net/socket.c:2021 [inline]
 __x64_sys_setsockopt+0xba/0x150 net/socket.c:2021
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f0888ff4df9
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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffc3ac1f58 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f0888ff4df9
RDX: 000000000000006b RSI: 0000000000000084 RDI: 0000000000000006
RBP: 0000000000000000 R08: 000000000000001c R09: 00007fffc3ac1fe0
R10: 000000002055bfe4 R11: 0000000000000246 R12: 00007fffc3ac1f8c
R13: 00007fffc3ac1fe0 R14: 00007fffc3ac1fa0 R15: 0000000000000000
----------------
Code disassembly (best guess):
   0:	48 89 54 24 30       	mov    %rdx,0x30(%rsp)
   5:	48 89 74 24 28       	mov    %rsi,0x28(%rsp)
   a:	44 89 5c 24 20       	mov    %r11d,0x20(%rsp)
   f:	e8 71 de 6e 00       	callq  0x6ede85
  14:	48 8b 54 24 30       	mov    0x30(%rsp),%rdx
  19:	48 8b 74 24 28       	mov    0x28(%rsp),%rsi
  1e:	44 8b 5c 24 20       	mov    0x20(%rsp),%r11d
  23:	8b 0c 95 bc 91 17 8c 	mov    -0x73e86e44(,%rdx,4),%ecx
* 2a:	8d 56 01             	lea    0x1(%rsi),%edx <-- trapping instruction
  2d:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  34:	fc ff df
  37:	48 8d 3c 95 bc 91 17 	lea    -0x73e86e44(,%rdx,4),%rdi
  3e:	8c
  3f:	49                   	rex.WB

Crashes (16):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/05/14 07:24 linux-4.19.y 3f8a27f9e27b 107f6434 .config console log report syz C ci2-linux-4-19 BUG: soft lockup in ip_rcv
2021/10/26 19:53 linux-4.19.y 3f8a27f9e27b d50eb50a .config console log report syz C ci2-linux-4-19 BUG: soft lockup in ip_rcv
2021/10/07 01:27 linux-4.19.y 6db10b4d5efd 62ee0987 .config console log report syz C ci2-linux-4-19 BUG: soft lockup in ip_rcv
2021/12/13 21:04 linux-4.19.y 3f8a27f9e27b 0304899b .config console log report syz ci2-linux-4-19 BUG: soft lockup in ip_rcv
2021/09/21 02:25 linux-4.19.y b172b44fcb17 af796c18 .config console log report syz ci2-linux-4-19 BUG: soft lockup in ip_rcv
2023/03/03 03:34 linux-4.19.y 3f8a27f9e27b f8902b57 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 BUG: soft lockup in ip_rcv
2022/01/13 23:42 linux-4.19.y 3f8a27f9e27b b8d780ab .config console log report info ci2-linux-4-19 BUG: soft lockup in ip_rcv
2022/01/13 13:37 linux-4.19.y 3f8a27f9e27b 44d1319a .config console log report info ci2-linux-4-19 BUG: soft lockup in ip_rcv
2022/01/01 03:16 linux-4.19.y 3f8a27f9e27b e1768e9c .config console log report info ci2-linux-4-19 BUG: soft lockup in ip_rcv
2021/12/30 16:30 linux-4.19.y 3f8a27f9e27b 2e49f10d .config console log report info ci2-linux-4-19 BUG: soft lockup in ip_rcv
2021/11/09 03:47 linux-4.19.y 3f8a27f9e27b 8ab17e57 .config console log report info ci2-linux-4-19 BUG: soft lockup in ip_rcv
2021/10/27 18:00 linux-4.19.y 3f8a27f9e27b be531bb4 .config console log report info ci2-linux-4-19 BUG: soft lockup in ip_rcv
2021/10/14 18:46 linux-4.19.y 3f8a27f9e27b 7aa5fe41 .config console log report info ci2-linux-4-19 BUG: soft lockup in ip_rcv
2021/07/20 10:55 linux-4.19.y fcfbdfe9626e bc48c9ab .config console log report info ci2-linux-4-19 BUG: soft lockup in ip_rcv
2021/05/04 03:31 linux-4.19.y 97a8651cadce 09efdd63 .config console log report info ci2-linux-4-19 BUG: soft lockup in ip_rcv
2021/07/11 13:21 linux-4.19.y fcfbdfe9626e 8f5a7b8c .config console log report info ci2-linux-4-19 INFO: rcu detected stall in ip_rcv
* Struck through repros no longer work on HEAD.