panic: kernel diagnostic assertion "(TAILQ_NEXT(inp, inp_queue) == NULL) || (TAILQ_NEXT(inp, inp_queue) == _Q_INVALID)" failed: file "/syzkaller/managers/main/kernel/sys/netinet/in_pcb.c", line 673 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 90188 2771 0 0x14000 0x200 0 softnet0 db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8342cfde) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833df4e4,ffffffff833caf1a,2a1,ffffffff833a396f) at __assert+0x29 sys/kern/subr_prf.c:-1 in_pcbunref(fffffd8065026030) at in_pcbunref+0x206 sys/netinet/in_pcb.c:672 tcp_input_solocked(ffff80002a74b480,ffff80002a74b48c,0,2,ffff80002a74b478) at tcp_input_solocked+0xfd sys/netinet/tcp_input.c:2229 tcp_input_mlist(ffffffff838ebd20,2) at tcp_input_mlist+0x93 sys/netinet/tcp_input.c:-1 if_input_process(ffff800000b11800,ffff80002a74b558,0) at if_input_process+0x229 sys/net/if.c:1015 ifiq_process(ffff800000b11c18) at ifiq_process+0xcd sys/net/ifq.c:874 taskq_thread(ffff80000002c000) at taskq_thread+0xd4 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic *cpu0: kernel diagnostic assertion "(TAILQ_NEXT(inp, inp_queue) == NULL) || (TAILQ_NEXT(inp, inp_queue) == _Q_INVALID)" failed: file "/syzkaller/managers/main/kernel/sys/netinet/in_pcb.c", line 673 ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8342cfde) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833df4e4,ffffffff833caf1a,2a1,ffffffff833a396f) at __assert+0x29 sys/kern/subr_prf.c:-1 in_pcbunref(fffffd8065026030) at in_pcbunref+0x206 sys/netinet/in_pcb.c:672 tcp_input_solocked(ffff80002a74b480,ffff80002a74b48c,0,2,ffff80002a74b478) at tcp_input_solocked+0xfd sys/netinet/tcp_input.c:2229 tcp_input_mlist(ffffffff838ebd20,2) at tcp_input_mlist+0x93 sys/netinet/tcp_input.c:-1 if_input_process(ffff800000b11800,ffff80002a74b558,0) at if_input_process+0x229 sys/net/if.c:1015 ifiq_process(ffff800000b11c18) at ifiq_process+0xcd sys/net/ifq.c:874 taskq_thread(ffff80000002c000) at taskq_thread+0xd4 sys/kern/kern_task.c:446 end trace frame: 0x0, count: -9 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002a74b160 rbx 0 rdx 0 rcx 0 rax 0xffff80002a72c000 r8 0 r9 0x8080808080808080 r10 0xe0c93ac4bb48c8b7 r11 0x3c22f56daa69702c r12 0 r13 0 r14 0 r15 0x1 rip 0xffffffff8167a7f5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a74b150 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (softnet0) tid=90188 pid=2771 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=0xffff80002a72c290,0xffff80002a72c7c0 process=0xffff8000ffffc488 user=0xffff80002a746000, vmspace=0xffffffff83931120 estcpu=0, cpticks=3, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 93284 203211 79340 0 2 0 syz-executor 93284 108698 79340 0 2 0x4000080 syz-executor 57219 82548 72065 60928 2 0x10 syz-executor 57219 36305 72065 60928 3 0x4000090 fsleep syz-executor 89631 389457 96620 0 2 0 syz-executor 89631 316607 96620 0 2 0x4000000 syz-executor 75069 471138 54526 0 2 0xc80 syz-executor 75069 188895 54526 0 3 0x4000080 ttyout syz-executor 96605 514643 19478 0 2 0xc80 syz-executor 96605 355505 19478 0 3 0x4000080 kqpoll syz-executor 96605 366959 19478 0 3 0x4000080 fsleep syz-executor 82891 129339 52798 0 2 0xc80 syz-executor 82891 14837 52798 0 3 0x4000080 bell syz-executor 82891 331237 52798 0 3 0x4000080 bell syz-executor 82891 439956 52798 0 3 0x4000080 fsleep syz-executor 57002 224535 83087 0 2 0xc80 syz-executor 57002 512778 83087 0 3 0x4000080 fsleep syz-executor 57002 232067 83087 0 3 0x4000080 lockf syz-executor 47434 508607 38632 0 2 0xc80 syz-executor 47434 11741 38632 0 3 0x4000080 ttyopn syz-executor 47434 172623 38632 0 3 0x4000080 fsleep syz-executor 83087 257682 23564 0 2 0xc82 syz-executor 77015 206462 0 0 3 0x14200 bored sosplice 19478 194102 23564 0 2 0xc82 syz-executor 79340 205197 23564 0 2 0xc82 syz-executor 52798 235308 23564 0 2 0xc82 syz-executor 38632 45764 23564 0 2 0xc82 syz-executor 96620 383287 23564 0 2 0xc82 syz-executor 72065 368535 23564 0 2 0xc82 syz-executor 54526 214084 23564 0 2 0xc82 syz-executor 23564 319641 7454 0 3 0x82 kqread syz-executor 7454 25180 23639 0 3 0x10008a sigsusp ksh 23639 169204 86552 0 3 0x98 kqread sshd-session 86552 363302 87357 0 3 0x92 kqread sshd-session 98821 343145 1 0 3 0x100083 ttyin getty 87357 322634 1 0 3 0x88 kqread sshd 29550 406867 67866 73 3 0x1100090 kqread syslogd 67866 116646 1 0 3 0x100082 sbwait syslogd 85046 210077 1 0 3 0x100080 kqread resolvd 14008 107130 54512 77 3 0x100092 kqread dhcpleased 56241 395748 54512 77 3 0x100092 kqread dhcpleased 54512 280969 1 0 3 0x80 kqread dhcpleased 29644 134481 0 0 3 0x14200 bored smr 81573 151531 0 0 2 0x14200 zerothread 67686 11678 0 0 3 0x14200 aiodoned aiodoned 16671 269590 0 0 3 0x14200 syncer update 61491 360464 0 0 3 0x14200 cleaner cleaner 58995 3109 0 0 3 0x14200 reaper reaper 47949 453280 0 0 3 0x14200 pgdaemon pagedaemon 72813 219211 0 0 3 0x14200 bored viomb 74449 393852 0 0 3 0x40014200 acpi0 acpi0 32130 456672 0 0 3 0x14200 bored softnet3 11927 284301 0 0 3 0x14200 bored softnet2 40450 353280 0 0 3 0x14200 bored softnet1 * 2771 90188 0 0 7 0x14200 softnet0 43137 478765 0 0 3 0x14200 bored systqmp 14662 509919 0 0 3 0x14200 bored systq 54102 243996 0 0 2 0x40014200 softclock 4399 160315 0 0 3 0x40014200 idle0 1 96729 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10208 11438K 11639K 166960K 12600 0 pcb 17 13K 14K 166960K 150 0 rtable 220 7K 8K 166960K 428 0 pf 35 13K 17K 166960K 75 0 ifaddr 40 6K 7K 166960K 66 0 ifgroup 56 2K 2K 166960K 97 0 sysctl 4 1K 9K 166960K 12 0 counters 34 18K 18K 166960K 49 0 ioctlops 0 0K 4K 166960K 119 0 iov 0 0K 16K 166960K 35 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1401 88K 89K 166960K 1843 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 11 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 23 0 dirhash 15 2K 3K 166960K 30 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 93K 166960K 588 0 sigio 0 0K 0K 166960K 4 0 proc 60 59K 108K 166960K 565 0 subproc 72 4K 4K 166960K 82 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 2 0K 0K 166960K 42 0 in_multi 85 6K 7K 166960K 125 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 67 307K 307K 166960K 67 0 exec 0 0K 1K 166960K 549 0 fusefs mount 1 32K 32K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 237 152K 165K 166960K 6461 0 UVM aobj 80 3K 3K 166960K 81 0 pinsyscall 39 78K 92K 166960K 1616 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 1 0K 0K 166960K 19 0 NDP 15 0K 2K 166960K 43 0 temp 42 8675K 8741K 166960K 24103 0 kqueue 13 20K 33K 166960K 107 0 SYN cache 2 16K 16K 166960K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 55 0 52 1 0 1 1 0 8 0 rtentry 136 136 0 36 4 0 4 4 0 8 0 unpcb 144 236 0 216 1 0 1 1 0 8 0 syncache 336 4 0 4 1 0 1 1 0 8 1 tcpcb 736 81 0 74 1 0 1 1 0 8 0 arp 88 20 0 4 1 0 1 1 0 8 0 inpcb 328 504 0 488 7 0 7 7 0 8 5 ip6q 72 1 0 1 1 0 1 1 0 8 1 ip6af 40 2 0 2 1 0 1 1 0 8 1 nd6 104 34 0 12 1 0 1 1 0 8 0 pkpcb 40 5 0 5 1 0 1 1 0 8 1 kcovpl 48 9 0 1 1 0 1 1 0 8 0 mppekey 1024 1 0 1 1 0 1 1 0 8 1 ppxss 1072 9 0 8 1 0 1 1 0 8 0 pppxif 1384 3 0 3 1 0 1 1 0 8 1 pfanchor 1288 2 0 0 1 0 1 1 0 8 0 pfrule 1344 3 0 1 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 586 0 171 30 0 30 30 0 8 2 art_table 32 587 0 171 4 0 4 4 0 8 0 art_node 16 135 0 44 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 1 1 0 1 1 0 8 0 semupl 112 3 0 3 1 0 1 1 0 8 1 semapl 112 21 0 11 1 0 1 1 0 8 0 shmpl 112 78 0 1 3 0 3 3 0 8 0 dirhash 1024 30 0 11 3 0 3 3 0 8 0 dino2pl 256 2359 0 860 95 0 95 95 0 8 0 ffsino 248 2359 0 860 95 0 95 95 0 8 0 nchpl 144 3194 0 2662 63 34 29 63 0 8 8 rtmask 32 1 0 1 1 0 1 1 0 8 1 uvmvnodes 80 2787 0 0 57 0 57 57 0 8 0 vnodes 216 2787 0 0 155 0 155 155 0 8 0 namei 1024 10384 0 10384 2 0 2 2 0 8 2 kstatmem 264 48 0 22 3 0 3 3 0 8 1 scsiplug 72 2 0 2 1 0 1 1 0 8 1 scxspl 216 10162 0 10162 8 0 8 8 1 8 8 plimitpl 152 254 0 236 1 0 1 1 0 8 0 sigapl 424 858 0 811 6 0 6 6 0 8 0 knotepl 120 23225 0 23178 10 0 10 10 0 8 8 kqueuepl 184 220 0 210 4 0 4 4 0 8 3 pipepl 296 138 0 111 3 0 3 3 0 8 0 fdescpl 440 841 0 811 5 0 5 5 0 8 1 filepl 120 4184 0 3946 11 0 11 11 0 8 3 lockfpl 104 184 0 177 1 0 1 1 0 8 0 lockfspl 48 93 0 87 1 0 1 1 0 8 0 sessionpl 144 22 0 14 1 0 1 1 0 8 0 pgrppl 48 37 0 21 1 0 1 1 0 8 0 ucredpl 104 457 0 445 1 0 1 1 0 8 0 zombiepl 144 811 0 811 1 0 1 1 0 8 1 processpl 1160 858 0 811 4 0 4 4 0 8 0 procpl 656 1493 0 1433 6 0 6 6 0 8 0 sosppl 168 3 0 2 1 0 1 1 0 8 0 sockpl 528 814 0 774 7 0 7 7 0 8 4 mcl64k 65536 11 0 11 1 0 1 1 0 8 1 mcl12k 12288 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 5 0 5 1 0 1 1 0 8 1 mcl4k 4096 3009 0 2958 15 0 15 15 0 8 8 mcl2k2 2112 1 0 1 1 0 1 1 0 8 1 mcl2k 2048 548 0 546 1 0 1 1 0 8 0 mtagpl 96 147 0 81 4 0 4 4 0 8 2 mbufpl 256 8237 0 8002 20 0 20 20 0 8 3 bufpl 280 3237 0 119 223 0 223 223 0 8 0 anonpl 24 129938 0 124541 33 0 33 33 0 187 0 amapchunkpl 152 20511 0 19869 26 0 26 26 0 158 0 amappl16 200 2122 0 2087 5 0 5 5 0 8 2 amappl15 192 3 0 3 1 0 1 1 0 8 1 amappl14 184 109 0 99 1 0 1 1 0 8 0 amappl13 176 6 0 6 1 0 1 1 0 8 1 amappl12 168 1451 0 1421 2 0 2 2 0 8 0 amappl11 160 44 0 34 1 0 1 1 0 8 0 amappl10 152 4 0 4 1 0 1 1 0 8 1 amappl9 144 242 0 241 1 0 1 1 0 8 0 amappl8 136 22 0 20 1 0 1 1 0 8 0 amappl7 128 99 0 89 1 0 1 1 0 8 0 amappl6 120 178 0 175 1 0 1 1 0 8 0 amappl5 112 116 0 109 1 0 1 1 0 8 0 amappl4 104 283 0 265 1 0 1 1 0 8 0 amappl3 96 4052 0 3936 3 0 3 3 0 8 0 amappl2 88 616 0 561 2 0 2 2 0 8 0 amappl1 80 9701 0 9153 13 0 13 13 0 8 1 amappl 88 5728 0 5554 5 0 5 5 0 92 0 dma4096 4096 1 0 1 1 0 1 1 0 8 1 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 0 1 1 0 8 1 dma128 128 253 0 253 1 0 1 1 0 8 1 dma64 64 6 0 6 1 0 1 1 0 8 1 dma32 32 7 0 7 1 0 1 1 0 8 1 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 80 0 1 2 0 2 2 0 8 0 uaddrrnd 24 841 0 811 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 841 0 811 1 0 1 1 0 8 0 vmmpekpl 168 7789 0 7752 2 0 2 2 0 8 0 vmmpepl 168 56889 0 54973 85 0 85 85 0 357 1 vmsppl 360 840 0 811 4 0 4 4 0 8 1 rwobjpl 32 19258 0 15528 31 0 31 31 0 8 0 pdppl 4096 1688 0 1622 96 28 68 80 0 8 2 pvpl 32 363100 0 351848 105 0 105 105 0 265 14 pmappl 216 840 0 811 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 271 0 28 7 0 7 7 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8342cfde) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833df4e4,ffffffff833caf1a,2a1,ffffffff833a396f) at __assert+0x29 sys/kern/subr_prf.c:-1 in_pcbunref(fffffd8065026030) at in_pcbunref+0x206 sys/netinet/in_pcb.c:672 tcp_input_solocked(ffff80002a74b480,ffff80002a74b48c,0,2,ffff80002a74b478) at tcp_input_solocked+0xfd sys/netinet/tcp_input.c:2229 tcp_input_mlist(ffffffff838ebd20,2) at tcp_input_mlist+0x93 sys/netinet/tcp_input.c:-1 if_input_process(ffff800000b11800,ffff80002a74b558,0) at if_input_process+0x229 sys/net/if.c:1015 ifiq_process(ffff800000b11c18) at ifiq_process+0xcd sys/net/ifq.c:874 taskq_thread(ffff80000002c000) at taskq_thread+0xd4 sys/kern/kern_task.c:446 end trace frame: 0x0, count: -9 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff8342cfde) at panic+0x1cf sys/kern/subr_prf.c:198 __assert(ffffffff833df4e4,ffffffff833caf1a,2a1,ffffffff833a396f) at __assert+0x29 sys/kern/subr_prf.c:-1 in_pcbunref(fffffd8065026030) at in_pcbunref+0x206 sys/netinet/in_pcb.c:672 tcp_input_solocked(ffff80002a74b480,ffff80002a74b48c,0,2,ffff80002a74b478) at tcp_input_solocked+0xfd sys/netinet/tcp_input.c:2229 tcp_input_mlist(ffffffff838ebd20,2) at tcp_input_mlist+0x93 sys/netinet/tcp_input.c:-1 if_input_process(ffff800000b11800,ffff80002a74b558,0) at if_input_process+0x229 sys/net/if.c:1015 ifiq_process(ffff800000b11c18) at ifiq_process+0xcd sys/net/ifq.c:874 taskq_thread(ffff80000002c000) at taskq_thread+0xd4 sys/kern/kern_task.c:446 end trace frame: 0x0, count: -9