panic: kernel diagnostic assertion "(TAILQ_NEXT(inp, inp_queue) == NULL) || (TAILQ_NEXT(inp, inp_queue) == _Q_INVALID)" failed: file "/syzkaller/managers/multicore/kernel/sys/netinet/in_pcb.c", line 673 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *258151 28330 0 0x14000 0x200 1 softnet1 289610 66936 0 0x14000 0x40000200 0 softclock db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8346707c) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff83416998,ffffffff83352072,2a1,ffffffff833d3098) at __assert+0x29 sys/kern/subr_prf.c:-1 in_pcbunref(fffffd8063f2c7c8) at in_pcbunref+0x206 sys/netinet/in_pcb.c:672 tcp_input_solocked(ffff80002a2161a0,ffff80002a2161ac,0,2,ffff80002a216198) at tcp_input_solocked+0x11a sys/netinet/tcp_input.c:2229 tcp_input_mlist(ffffffff8394b420,2) at tcp_input_mlist+0x93 sys/netinet/tcp_input.c:-1 if_input_process(ffff800000b2c000,ffff80002a216278,1) at if_input_process+0x229 sys/net/if.c:1015 ifiq_process(ffff800000b2d200) at ifiq_process+0xcd sys/net/ifq.c:874 taskq_thread(ffff80000002c100) at taskq_thread+0x157 sys/kern/kern_task.c:446 end trace frame: 0x0, count: 6 https://www.openbsd.org/ddb.html describes the minimum info required in bug reports. Insufficient info makes it difficult to find and fix bugs. ddb{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic *cpu1: kernel diagnostic assertion "(TAILQ_NEXT(inp, inp_queue) == NULL) || (TAILQ_NEXT(inp, inp_queue) == _Q_INVALID)" failed: file "/syzkaller/managers/multicore/kernel/sys/netinet/in_pcb.c", line 673 ddb{1}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8346707c) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff83416998,ffffffff83352072,2a1,ffffffff833d3098) at __assert+0x29 sys/kern/subr_prf.c:-1 in_pcbunref(fffffd8063f2c7c8) at in_pcbunref+0x206 sys/netinet/in_pcb.c:672 tcp_input_solocked(ffff80002a2161a0,ffff80002a2161ac,0,2,ffff80002a216198) at tcp_input_solocked+0x11a sys/netinet/tcp_input.c:2229 tcp_input_mlist(ffffffff8394b420,2) at tcp_input_mlist+0x93 sys/netinet/tcp_input.c:-1 if_input_process(ffff800000b2c000,ffff80002a216278,1) at if_input_process+0x229 sys/net/if.c:1015 ifiq_process(ffff800000b2d200) at ifiq_process+0xcd sys/net/ifq.c:874 taskq_thread(ffff80000002c100) at taskq_thread+0x157 sys/kern/kern_task.c:446 end trace frame: 0x0, count: -9 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff80002a215e70 rbx 0xffff8000299dedd7 rdx 0 rcx 0xffff8000ffffe000 rax 0xffff8000299ddff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x5c944ac36d07f4d7 r11 0x99e90264b507511 r12 0xffff8000299debd8 r13 0 r14 0 r15 0x1 rip 0xffffffff831d9a35 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a215e60 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{1}> show proc PROC (softnet1) tid=258151 pid=28330 tcnt=1 stat=onproc flags process=14000 proc=200 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000ffffe290,0xffff8000ffffe530 process=0xffff8000ffff8e88 user=0xffff80002a211000, vmspace=0xffffffff83a24878 estcpu=0, cpticks=2, pctcpu=0.0, user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 21851 157242 297 0 2 0 syz-executor 53708 20085 55512 0 2 0 syz-executor 53708 261374 55512 0 2 0x4000080 syz-executor 66166 174085 37331 0 2 0 syz-executor 8676 460218 78062 0 2 0 syz-executor 49176 212365 53362 0 2 0 syz-executor 49176 245350 53362 0 3 0x4000080 fsleep syz-executor 98557 180182 48450 0 2 0 syz-executor 98557 74277 48450 0 2 0x4000000 syz-executor 24581 114829 95456 0 2 0x4000000 syz-executor 24581 244997 95456 0 2 0x4000000 syz-executor 24581 517812 95456 0 3 0x4000080 fsleep syz-executor 56348 424134 97050 0 3 0x80 nanoslp syz-executor 56348 226839 97050 0 3 0x4000080 fsleep syz-executor 56348 86655 97050 0 3 0x4000080 fsleep syz-executor 56348 467075 97050 0 3 0x4000080 fsleep syz-executor 52929 465117 0 0 3 0x14200 acct acct 78062 158022 33851 0 2 0xc82 syz-executor 50133 283467 1 0 3 0x100083 ttyin getty 95456 232084 33851 0 2 0xc82 syz-executor 297 91567 33851 0 3 0x82 nanoslp syz-executor 55512 460995 33851 0 3 0x82 nanoslp syz-executor 46792 156250 0 0 3 0x14200 bored sosplice 80249 409217 6364 0 3 0x100082 sbwait ndp 6364 56572 1 0 3 0x10008a sigsusp sh 97050 20598 33851 0 3 0x82 nanoslp syz-executor 48450 213640 33851 0 3 0x82 nanoslp syz-executor 37331 489800 33851 0 2 0xc82 syz-executor 53362 246689 33851 0 2 0xc82 syz-executor 33851 376961 75244 0 3 0x82 kqread syz-executor 75244 167721 71128 0 3 0x10008a sigsusp ksh 71128 24383 15908 0 3 0x98 kqread sshd-session 15908 324500 44593 0 3 0x92 kqread sshd-session 44593 212995 1 0 3 0x88 kqread sshd 75524 326261 12547 74 3 0x1100092 bpf pflogd 12547 385399 1 0 3 0x80 sbwait pflogd 27973 471477 7316 73 3 0x1100090 kqread syslogd 7316 24307 1 0 3 0x100082 sbwait syslogd 66702 503429 1 0 3 0x100080 kqread resolvd 74613 328458 96524 77 3 0x100092 kqread dhcpleased 19966 130799 96524 77 3 0x100092 kqread dhcpleased 96524 457426 1 0 3 0x80 kqread dhcpleased 15049 241788 0 0 3 0x14200 bored smr 71625 85478 0 0 2 0x14200 zerothread 4210 523952 0 0 3 0x14200 aiodoned aiodoned 5085 124584 0 0 3 0x14200 syncer update 53391 483450 0 0 3 0x14200 cleaner cleaner 26942 360991 0 0 3 0x14200 reaper reaper 91268 448584 0 0 3 0x14200 pgdaemon pagedaemon 7983 211820 0 0 3 0x14200 bored viomb 10044 179298 0 0 3 0x40014200 acpi0 acpi0 88547 437857 0 0 3 0x40014200 idle1 38764 150276 0 0 3 0x14200 bored softnet3 32985 466848 0 0 3 0x14200 bored softnet2 *28330 258151 0 0 7 0x14200 softnet1 99922 497175 0 0 2 0x14200 softnet0 35620 44719 0 0 3 0x14200 bored systqmp 4486 216454 0 0 3 0x14200 bored systq 81519 371888 0 0 3 0x14200 tmoslp softclockmp 66936 289610 0 0 7 0x40014200 softclock 9099 501713 0 0 3 0x40014200 idle0 1 50589 0 0 3 0x80082 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{1}> show all locks Process 53708 (syz-executor) thread 0xffff80002a7d7220 (20085) Process 28330 (softnet1) thread 0xffff8000ffffe000 (258151) ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10257 11127K 11605K 166960K 15059 0 pcb 17 15K 16K 166960K 536 0 rtable 188 10K 10K 166960K 782 0 pf 38 18K 21K 166960K 240 0 ifaddr 36 6K 7K 166960K 172 0 ifgroup 63 2K 3K 166960K 309 0 sysctl 4 1K 9K 166960K 18 0 counters 72 37K 38K 166960K 332 0 ioctlops 0 0K 4K 166960K 1860 0 iov 0 0K 24K 166960K 262 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1405 88K 89K 166960K 3438 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 38 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 1K 166960K 223 0 dirhash 15 2K 3K 166960K 66 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 20 73K 93K 166960K 2187 0 sigio 0 0K 0K 166960K 119 0 proc 72 91K 128K 166960K 899 0 subproc 81 5K 5K 166960K 126 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 622 0 in_multi 66 4K 7K 166960K 238 0 ether_multi 1 0K 0K 166960K 29 0 mrt 1 0K 0K 166960K 21 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 241 1076K 1076K 166960K 241 0 exec 0 0K 1K 166960K 757 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 248 162K 176K 166960K 21903 0 UVM aobj 12 4K 4K 166960K 13 0 pinsyscall 46 92K 106K 166960K 3435 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 137 0 NDP 14 0K 1K 166960K 125 0 temp 82 8696K 8948K 166960K 116128 0 kqueue 13 20K 32K 166960K 415 0 SYN cache 2 16K 16K 166960K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 26 0 0 1 0 1 1 0 8 0 rtpcb 120 212 0 208 2 1 1 2 0 8 0 rtentry 176 250 0 175 6 0 6 6 0 8 0 unpcb 144 1450 0 1431 12 10 2 6 0 8 1 syncache 336 5 0 5 3 2 1 1 0 8 1 tcpcb 736 803 0 796 18 14 4 7 0 8 3 arp 128 43 0 27 1 0 1 1 0 8 0 inpcb 328 2694 0 2679 22 17 5 7 0 8 3 nd6 144 44 0 27 1 0 1 1 0 8 0 pkpcb 40 18 0 18 6 5 1 1 0 8 1 kcovpl 48 14 0 5 1 0 1 1 0 8 0 mppekey 1024 3 0 3 3 3 0 1 0 8 0 ppxss 1192 100 0 100 3 2 1 1 0 8 1 pppxif 1504 15 0 15 6 5 1 1 0 8 1 pffrag 232 16 0 7 1 0 1 1 0 482 0 pffrnode 88 12 0 4 1 0 1 1 0 8 0 pffrent 40 56 0 47 1 0 1 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfanchor 1288 2 0 0 1 0 1 1 0 8 0 pfstitem 24 164 0 85 1 0 1 1 0 8 0 pfstkey 128 164 0 85 3 0 3 3 0 8 0 pfstate 384 164 0 85 9 0 9 9 0 8 0 pfrule 1344 23 0 16 2 1 1 2 0 8 0 rttmr 136 9 0 9 8 7 1 1 0 8 1 art_heap8 4096 4 0 0 4 0 4 4 0 8 0 art_heap4 256 1050 0 717 35 12 23 29 0 8 0 art_table 32 1054 0 717 4 0 4 4 0 8 0 art_node 16 235 0 169 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 9 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 217 0 207 1 0 1 1 0 8 0 shmpl 112 10 0 1 1 0 1 1 0 8 0 dirhash 1024 53 0 34 3 0 3 3 0 8 0 dino2pl 256 5649 0 4136 96 0 96 96 0 8 0 ffsino 288 5649 0 4136 109 0 109 109 0 8 0 nchpl 144 8615 0 6911 64 0 64 64 0 8 0 rtmask 32 16 0 16 4 3 1 1 0 8 1 uvmvnodes 80 3478 0 0 71 0 71 71 0 8 0 vnodes 216 3478 0 0 194 0 194 194 0 8 0 namei 1024 31572 0 31572 4 3 1 2 0 8 1 percpumem 16 181 0 130 1 0 1 1 0 8 0 kstatmem 264 200 0 166 3 0 3 3 0 8 0 acpiwqpl 32 1 0 1 1 0 1 1 1 8 1 scsiplug 72 3 0 3 3 3 0 1 0 8 0 scxspl 216 28245 0 28245 17 15 2 8 1 8 2 plimitpl 152 634 0 616 1 0 1 1 0 8 0 sigapl 424 2488 0 2434 7 0 7 7 0 8 0 knotepl 120 610 0 0 18 0 18 18 0 8 0 kqueuepl 224 881 0 870 13 12 1 5 0 8 0 pipepl 336 416 0 386 13 10 3 8 0 8 0 fdescpl 520 2459 0 2425 3 0 3 3 0 8 0 filepl 160 17762 0 17528 33 20 13 18 0 8 0 lockfpl 104 820 0 818 1 0 1 1 0 8 0 lockfspl 48 358 0 356 1 0 1 1 0 8 0 sessionpl 144 29 0 20 1 0 1 1 0 8 0 pgrppl 48 73 0 55 1 0 1 1 0 8 0 ucredpl 104 3307 0 3294 1 0 1 1 0 8 0 zombiepl 144 3323 0 3323 2 1 1 1 0 8 1 processpl 1240 2488 0 2434 5 0 5 5 0 8 0 procpl 656 6072 0 6010 7 0 7 7 0 8 0 srpgc 96 24 0 24 6 6 0 1 0 8 0 sosppl 168 9 0 9 5 5 0 1 0 8 0 sockpl 728 4430 0 4392 35 27 8 18 0 8 3 mcl64k 65536 4 0 0 1 0 1 1 0 8 0 mcl16k 16384 4 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 12 0 0 2 0 2 2 0 8 0 mcl4k 4096 133 0 0 17 0 17 17 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 45 0 0 4 0 4 4 0 8 0 mtagpl 96 87 0 0 3 0 3 3 0 8 0 mbufpl 256 1314 0 0 78 0 78 78 0 8 0 bufpl 280 7636 0 1494 439 0 439 439 0 8 0 anonpl 32 11701 0 0 95 0 95 95 0 246 0 amapchunkpl 152 74335 0 73788 48 20 28 32 0 158 3 amappl16 200 5159 0 5095 66 50 16 20 0 8 8 amappl15 192 3 0 3 1 1 0 1 0 8 0 amappl14 184 124 0 110 1 0 1 1 0 8 0 amappl12 168 3195 0 3161 3 1 2 2 0 8 0 amappl11 160 74 0 60 1 0 1 1 0 8 0 amappl10 152 1 0 1 1 1 0 1 0 8 0 amappl9 144 257 0 256 2 1 1 1 0 8 0 amappl8 136 18 0 15 1 0 1 1 0 8 0 amappl7 128 115 0 102 1 0 1 1 0 8 0 amappl6 120 233 0 228 1 0 1 1 0 8 0 amappl5 112 142 0 132 1 0 1 1 0 8 0 amappl4 104 333 0 310 1 0 1 1 0 8 0 amappl3 96 15268 0 15158 6 2 4 4 0 8 0 amappl2 88 736 0 671 2 0 2 2 0 8 0 amappl1 80 17495 0 16856 15 0 15 15 0 8 0 amappl 88 20733 0 20563 5 0 5 5 0 92 0 dma4096 4096 2 0 2 2 2 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 253 0 253 1 1 0 1 0 8 0 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 12 0 1 1 0 1 1 0 8 0 uaddrrnd 24 2459 0 2425 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2459 0 2425 1 0 1 1 0 8 0 vmmpekpl 168 19553 0 19496 4 1 3 3 0 8 0 vmmpepl 168 155118 0 152979 142 35 107 107 0 357 10 vmsppl 480 2458 0 2425 5 0 5 5 0 8 0 rwobjpl 72 41704 0 37204 96 8 88 88 0 8 3 pdppl 4096 4925 0 4850 125 50 75 85 0 8 0 pvpl 32 20750 0 0 167 0 167 167 0 265 0 pmappl 256 2458 0 2425 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 523 0 97 13 0 13 13 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffffffff838baff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff839ee670) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:131 [inline] __mp_lock(ffffffff839ee670) at __mp_lock+0x192 sys/kern/kern_lock.c:162 softintr_dispatch(0) at softintr_dispatch+0x12a sys/kern/kern_softintr.c:83 dosoftint(0) at dosoftint+0x54 sys/arch/amd64/amd64/intr.c:847 Xsoftclock() at Xsoftclock+0x27 __mp_lock(ffffffff839ee670) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:131 [inline] __mp_lock(ffffffff839ee670) at __mp_lock+0x192 sys/kern/kern_lock.c:162 __mp_acquire_count(ffffffff839ee670,1) at __mp_acquire_count+0x58 sys/kern/kern_lock.c:-1 sleep_finish(ffffffffffffffff,1) at sleep_finish+0x2da sys/kern/kern_synch.c:366 softclock_thread_run(ffffffff838a8438) at softclock_thread_run+0x79 sys/kern/kern_timeout.c:845 softclock_thread(ffff8000fffff480) at softclock_thread+0x10a sys/kern/kern_timeout.c:867 end trace frame: 0x0, count: 3 ddb{0}> trace x86_ipi_db(ffffffff838baff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff839ee670) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:131 [inline] __mp_lock(ffffffff839ee670) at __mp_lock+0x192 sys/kern/kern_lock.c:162 softintr_dispatch(0) at softintr_dispatch+0x12a sys/kern/kern_softintr.c:83 dosoftint(0) at dosoftint+0x54 sys/arch/amd64/amd64/intr.c:847 Xsoftclock() at Xsoftclock+0x27 __mp_lock(ffffffff839ee670) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:131 [inline] __mp_lock(ffffffff839ee670) at __mp_lock+0x192 sys/kern/kern_lock.c:162 __mp_acquire_count(ffffffff839ee670,1) at __mp_acquire_count+0x58 sys/kern/kern_lock.c:-1 sleep_finish(ffffffffffffffff,1) at sleep_finish+0x2da sys/kern/kern_synch.c:366 softclock_thread_run(ffffffff838a8438) at softclock_thread_run+0x79 sys/kern/kern_timeout.c:845 softclock_thread(ffff8000fffff480) at softclock_thread+0x10a sys/kern/kern_timeout.c:867 end trace frame: 0x0, count: -12 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x25: addq $0x8,%rsp db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8346707c) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff83416998,ffffffff83352072,2a1,ffffffff833d3098) at __assert+0x29 sys/kern/subr_prf.c:-1 in_pcbunref(fffffd8063f2c7c8) at in_pcbunref+0x206 sys/netinet/in_pcb.c:672 tcp_input_solocked(ffff80002a2161a0,ffff80002a2161ac,0,2,ffff80002a216198) at tcp_input_solocked+0x11a sys/netinet/tcp_input.c:2229 tcp_input_mlist(ffffffff8394b420,2) at tcp_input_mlist+0x93 sys/netinet/tcp_input.c:-1 if_input_process(ffff800000b2c000,ffff80002a216278,1) at if_input_process+0x229 sys/net/if.c:1015 ifiq_process(ffff800000b2d200) at ifiq_process+0xcd sys/net/ifq.c:874 taskq_thread(ffff80000002c100) at taskq_thread+0x157 sys/kern/kern_task.c:446 end trace frame: 0x0, count: 6 ddb{1}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8346707c) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff83416998,ffffffff83352072,2a1,ffffffff833d3098) at __assert+0x29 sys/kern/subr_prf.c:-1 in_pcbunref(fffffd8063f2c7c8) at in_pcbunref+0x206 sys/netinet/in_pcb.c:672 tcp_input_solocked(ffff80002a2161a0,ffff80002a2161ac,0,2,ffff80002a216198) at tcp_input_solocked+0x11a sys/netinet/tcp_input.c:2229 tcp_input_mlist(ffffffff8394b420,2) at tcp_input_mlist+0x93 sys/netinet/tcp_input.c:-1 if_input_process(ffff800000b2c000,ffff80002a216278,1) at if_input_process+0x229 sys/net/if.c:1015 ifiq_process(ffff800000b2d200) at ifiq_process+0xcd sys/net/ifq.c:874 taskq_thread(ffff80000002c100) at taskq_thread+0x157 sys/kern/kern_task.c:446 end trace frame: 0x0, count: -9