syzbot


BUG: soft lockup in inet_release

Status: auto-closed as invalid on 2022/07/27 00:21
Reported-by: syzbot+c4b9b33672f785600aa7@syzkaller.appspotmail.com
First crash: 758d, last: 758d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 BUG: soft lockup in inet_release (2) 1 502d 502d 0/1 auto-obsoleted due to no activity on 2023/04/08 16:55
upstream INFO: rcu detected stall in inet_release (3) net 1 497d 497d 0/26 auto-obsoleted due to no activity on 2023/04/07 20:53
upstream INFO: rcu detected stall in inet_release (2) mm kasan 1 809d 809d 0/26 closed as invalid on 2022/02/08 10:10
upstream INFO: rcu detected stall in inet_release (4) net 1 155d 155d 0/26 closed as invalid on 2024/02/01 10:31

Sample crash report:
ieee802154 phy0 wpan0: encryption failed: -22
ieee802154 phy1 wpan1: encryption failed: -22
watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [syz-executor.2:15751]
Modules linked in:
irq event stamp: 50068473
hardirqs last  enabled at (50068472): [<ffffffff81549445>] seqcount_lockdep_reader_access include/linux/seqlock.h:83 [inline]
hardirqs last  enabled at (50068472): [<ffffffff81549445>] read_seqcount_begin include/linux/seqlock.h:164 [inline]
hardirqs last  enabled at (50068472): [<ffffffff81549445>] ktime_get+0x235/0x2f0 kernel/time/timekeeping.c:756
hardirqs last disabled at (50068473): [<ffffffff81003d00>] trace_hardirqs_off_thunk+0x1a/0x1c
softirqs last  enabled at (24326): [<ffffffff86f355af>] ipt_do_table+0xccf/0x1820 net/ipv4/netfilter/ip_tables.c:358
softirqs last disabled at (24328): [<ffffffff86d42c8d>] lwtunnel_xmit_redirect include/net/lwtunnel.h:92 [inline]
softirqs last disabled at (24328): [<ffffffff86d42c8d>] ip_finish_output2+0x28d/0x15a0 net/ipv4/ip_output.c:214
CPU: 0 PID: 15751 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:arch_local_irq_restore arch/x86/include/asm/paravirt.h:789 [inline]
RIP: 0010:seqcount_lockdep_reader_access include/linux/seqlock.h:83 [inline]
RIP: 0010:read_seqcount_begin include/linux/seqlock.h:164 [inline]
RIP: 0010:ktime_get+0x25f/0x2f0 kernel/time/timekeeping.c:756
Code: 48 c7 c0 88 82 f1 89 48 c1 e8 03 42 80 3c 20 00 0f 85 86 00 00 00 48 83 3d 25 ee 9c 08 00 74 35 e8 06 f1 0d 00 48 89 df 57 9d <0f> 1f 44 00 00 e9 ce fe ff ff e8 f2 f0 0d 00 0f 0b e8 eb f0 0d 00
RSP: 0018:ffff888093757318 EFLAGS: 00000293 ORIG_RAX: ffffffffffffff13
RAX: ffff888097ea8600 RBX: 0000000000000293 RCX: 1ffff11012fd51f3
RDX: 0000000000000000 RSI: ffffffff8154946a RDI: 0000000000000293
RBP: fffffbfff13e3050 R08: ffffffff8cd20c30 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: dffffc0000000000
R13: 1ffffffff13e3052 R14: 0000000000000200 R15: 0000000000000001
FS:  0000555556c28400(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2e225000 CR3: 00000000a507b000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 ktime_get_ns include/linux/timekeeping.h:126 [inline]
 tcf_police_act+0x3e8/0xe60 net/sched/act_police.c:240
 tcf_action_exec net/sched/act_api.c:618 [inline]
 tcf_action_exec+0x160/0x400 net/sched/act_api.c:598
 tcf_exts_exec include/net/pkt_cls.h:388 [inline]
 basic_classify+0x184/0x2b0 net/sched/cls_basic.c:52
 tcf_classify+0x120/0x3c0 net/sched/cls_api.c:979
 sfq_classify net/sched/sch_sfq.c:185 [inline]
 sfq_enqueue+0x182/0x3c70 net/sched/sch_sfq.c:360
 __dev_xmit_skb net/core/dev.c:3494 [inline]
 __dev_queue_xmit+0x140a/0x2e00 net/core/dev.c:3807
 neigh_hh_output include/net/neighbour.h:491 [inline]
 neigh_output include/net/neighbour.h:499 [inline]
 ip_finish_output2+0xb6d/0x15a0 net/ipv4/ip_output.c:230
 ip_finish_output+0xae9/0x10b0 net/ipv4/ip_output.c:318
 NF_HOOK_COND include/linux/netfilter.h:278 [inline]
 ip_output+0x203/0x5f0 net/ipv4/ip_output.c:406
 dst_output include/net/dst.h:455 [inline]
 ip_local_out+0xaf/0x170 net/ipv4/ip_output.c:125
 __ip_queue_xmit+0x91e/0x1c10 net/ipv4/ip_output.c:507
 __tcp_transmit_skb+0x1b9c/0x3400 net/ipv4/tcp_output.c:1148
 tcp_transmit_skb net/ipv4/tcp_output.c:1164 [inline]
 tcp_write_xmit+0x989/0x5100 net/ipv4/tcp_output.c:2391
 __tcp_push_pending_frames+0xae/0x310 net/ipv4/tcp_output.c:2572
 tcp_send_fin+0x149/0xb70 net/ipv4/tcp_output.c:3115
 tcp_close+0xb11/0xfd0 net/ipv4/tcp.c:2423
 inet_release+0xd7/0x1e0 net/ipv4/af_inet.c:427
 __sock_release+0xcd/0x2a0 net/socket.c:599
 sock_close+0x15/0x20 net/socket.c:1214
 __fput+0x2ce/0x890 fs/file_table.c:278
 task_work_run+0x148/0x1c0 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:193 [inline]
 exit_to_usermode_loop+0x251/0x2a0 arch/x86/entry/common.c:167
 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:0x7f346221ec8b
Code: 0f 05 48 3d 00 f0 ff ff 77 45 c3 0f 1f 40 00 48 83 ec 18 89 7c 24 0c e8 63 fc ff ff 8b 7c 24 0c 41 89 c0 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 35 44 89 c7 89 44 24 0c e8 a1 fc ff ff 8b 44
RSP: 002b:00007ffd67ce94d0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000007 RCX: 00007f346221ec8b
RDX: 0000000000000000 RSI: 0000001b2e224578 RDI: 0000000000000006
RBP: 00007f3462380960 R08: 0000000000000000 R09: 00000000ee5a3a10
R10: 0000000000000000 R11: 0000000000000293 R12: 000000000004d85c
R13: 00007ffd67ce95d0 R14: 00007ffd67ce95f0 R15: 0000000000000032
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1 skipped: idling at native_safe_halt+0xe/0x10 arch/x86/include/asm/irqflags.h:60
----------------
Code disassembly (best guess):
   0:	48 c7 c0 88 82 f1 89 	mov    $0xffffffff89f18288,%rax
   7:	48 c1 e8 03          	shr    $0x3,%rax
   b:	42 80 3c 20 00       	cmpb   $0x0,(%rax,%r12,1)
  10:	0f 85 86 00 00 00    	jne    0x9c
  16:	48 83 3d 25 ee 9c 08 	cmpq   $0x0,0x89cee25(%rip)        # 0x89cee43
  1d:	00
  1e:	74 35                	je     0x55
  20:	e8 06 f1 0d 00       	callq  0xdf12b
  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:	e9 ce fe ff ff       	jmpq   0xffffff02
  34:	e8 f2 f0 0d 00       	callq  0xdf12b
  39:	0f 0b                	ud2
  3b:	e8 eb f0 0d 00       	callq  0xdf12b

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