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 *254851 27855 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(fffffd807060a528) at in_pcbunref+0x206 sys/netinet/in_pcb.c:672 tcp_input_solocked(ffff80002a74b620,ffff80002a74b62c,0,2,ffff80002a74b618) 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,ffff80002a74b6f8,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(fffffd807060a528) at in_pcbunref+0x206 sys/netinet/in_pcb.c:672 tcp_input_solocked(ffff80002a74b620,ffff80002a74b62c,0,2,ffff80002a74b618) 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,ffff80002a74b6f8,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 0xffff80002a74b300 rbx 0 rdx 0 rcx 0 rax 0xffff80002a72c000 r8 0x101010101010101 r9 0x8080808080808080 r10 0xdbdb48b616abcf4b r11 0xff6dc2c69ad01c21 r12 0 r13 0 r14 0 r15 0x1 rip 0xffffffff8167a7f5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a74b2f0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (softnet0) tid=254851 pid=27855 tcnt=1 stat=onproc flags process=14000 proc=200 runpri=32, usrpri=51, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a72c7b0,0xffff80002a72c2a0 process=0xffff8000ffffd6a8 user=0xffff80002a746000, vmspace=0xffffffff83931120 estcpu=1, cpticks=2, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 22520 76217 18216 0 2 0 syz-executor 22520 204135 18216 0 2 0x4000080 syz-executor 34216 415281 93104 0 2 0 syz-executor 34216 233382 93104 0 3 0x4000080 fsleep syz-executor 34216 389314 93104 0 3 0x4000080 fsleep syz-executor 99107 67326 33999 0 2 0xc80 syz-executor 99107 198309 33999 0 3 0x4000080 fsleep syz-executor 99107 91868 33999 0 3 0x4000080 kqread syz-executor 99107 181900 33999 0 3 0x4000080 fsleep syz-executor 89183 204435 51732 0 2 0 syz-executor 89183 461100 51732 0 3 0x4000080 fsleep syz-executor 87043 334370 4352 0 2 0 syz-executor 87043 1572 4352 0 3 0x4000080 dtread syz-executor 87043 181317 4352 0 3 0x4000080 fsleep syz-executor 87043 171140 4352 0 2 0x4000000 syz-executor 63653 50504 7092 0 3 0x80 nanoslp syz-executor 63653 287359 7092 0 3 0x4000080 ttyout syz-executor 63653 464985 7092 0 3 0x4000080 fsleep syz-executor 63653 243602 7092 0 3 0x4000080 fsleep syz-executor 63653 398468 7092 0 3 0x4000080 fsleep syz-executor 50666 241970 0 0 3 0x14200 bored sosplice 18216 370983 71639 0 3 0x82 nanoslp syz-executor 89287 25537 1 0 3 0x100083 ttyin getty 65660 122622 41581 0 3 0x100082 sbwait arp 41581 390487 70586 0 3 0x10008a sigsusp sh 7092 334691 71639 0 3 0x82 nanoslp syz-executor 13178 345486 71639 0 2 0x2 syz-executor 51732 467933 71639 0 3 0x82 nanoslp syz-executor 93104 148280 71639 0 3 0x82 nanoslp syz-executor 70586 341327 71639 0 3 0x82 wait syz-executor 33999 12222 71639 0 3 0x82 nanoslp syz-executor 4352 366938 71639 0 3 0x82 nanoslp syz-executor 71639 489979 57660 0 3 0x82 kqread syz-executor 57660 460151 9940 0 3 0x10008a sigsusp ksh 9940 134109 73209 0 3 0x98 kqread sshd-session 73209 502920 96205 0 3 0x92 kqread sshd-session 96205 203171 1 0 3 0x88 kqread sshd 94359 237461 79730 73 3 0x1100090 kqread syslogd 79730 495392 1 0 3 0x100082 sbwait syslogd 72466 434460 1 0 3 0x100080 kqread resolvd 38314 152123 87224 77 3 0x100092 kqread dhcpleased 57896 230843 87224 77 3 0x100092 kqread dhcpleased 87224 496462 1 0 3 0x80 kqread dhcpleased 26099 423717 0 0 3 0x14200 bored smr 76563 327220 0 0 2 0x14200 zerothread 32115 377255 0 0 3 0x14200 aiodoned aiodoned 90375 331452 0 0 3 0x14200 syncer update 18106 98022 0 0 3 0x14200 cleaner cleaner 10650 31219 0 0 3 0x14200 reaper reaper 33604 452431 0 0 3 0x14200 pgdaemon pagedaemon 69693 320919 0 0 3 0x14200 bored viomb 94963 328042 0 0 3 0x40014200 acpi0 acpi0 76114 125105 0 0 3 0x14200 bored softnet3 10598 261339 0 0 3 0x14200 bored softnet2 70122 205173 0 0 3 0x14200 bored softnet1 *27855 254851 0 0 7 0x14200 softnet0 16657 133393 0 0 3 0x14200 bored systqmp 43829 328543 0 0 3 0x14200 bored systq 68655 145430 0 0 2 0x40014200 softclock 71827 173932 0 0 3 0x40014200 idle0 1 284680 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 10235 11290K 11953K 166960K 13167 0 pcb 17 16K 18K 166960K 124 0 rtable 200 7K 8K 166960K 429 0 pf 28 12K 14K 166960K 68 0 ifaddr 36 6K 7K 166960K 65 0 ifgroup 46 2K 2K 166960K 104 0 sysctl 4 1K 9K 166960K 11 0 counters 31 17K 18K 166960K 52 0 ioctlops 0 0K 4K 166960K 84 0 iov 0 0K 16K 166960K 29 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1434 90K 91K 166960K 2377 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 13 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 36 0 dirhash 12 2K 2K 166960K 24 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 97K 166960K 808 0 sigio 0 0K 0K 166960K 12 0 proc 60 59K 91K 166960K 583 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 0 0K 0K 166960K 298 0 in_multi 75 5K 6K 166960K 129 0 ether_multi 1 0K 0K 166960K 8 0 mrt 1 0K 0K 166960K 2 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 61 281K 281K 166960K 61 0 exec 0 0K 2K 166960K 456 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 2 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 239 137K 160K 166960K 8696 0 UVM aobj 95 4K 4K 166960K 97 0 pinsyscall 40 80K 96K 166960K 1866 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 29 0 NDP 10 0K 1K 166960K 42 0 temp 65 8684K 8802K 166960K 48273 0 kqueue 14 22K 29K 166960K 134 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 139 0 134 3 2 1 3 0 8 0 rtentry 136 128 0 40 4 0 4 4 0 8 0 unpcb 144 550 0 535 8 4 4 5 0 8 3 syncache 336 6 0 6 2 1 1 1 0 8 1 tcpqe 32 1 0 1 1 0 1 1 0 8 1 tcpcb 736 239 0 230 8 6 2 7 0 8 0 arp 88 21 0 4 1 0 1 1 0 8 0 ipq 40 2 0 0 1 0 1 1 0 8 0 ipqe 40 3 0 0 1 0 1 1 0 8 0 inpcb 328 797 0 782 12 2 10 10 0 8 8 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 26 0 7 1 0 1 1 0 8 0 pkpcb 40 3 0 3 1 0 1 1 0 8 1 kcovpl 48 9 0 1 1 0 1 1 0 8 0 ppxss 1072 12 0 12 2 1 1 1 0 8 1 pppxif 1384 1 0 1 1 1 0 1 0 8 0 pfrule 1344 1 0 1 1 0 1 1 0 8 1 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 522 0 167 29 1 28 28 0 8 4 art_table 32 525 0 167 4 0 4 4 0 8 0 art_node 16 126 0 48 1 0 1 1 0 8 0 sysvmsgpl 40 42 0 2 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 34 0 24 1 0 1 1 0 8 0 shmpl 112 94 0 2 3 0 3 3 0 8 0 dirhash 1024 25 0 8 3 0 3 3 0 8 0 dino2pl 256 2815 0 1320 95 0 95 95 0 8 0 ffsino 248 2815 0 1320 95 0 95 95 0 8 0 nchpl 144 3924 0 2243 63 0 63 63 0 8 0 rtmask 32 1 0 1 1 0 1 1 0 8 1 uvmvnodes 80 3597 0 0 74 0 74 74 0 8 0 vnodes 216 3597 0 0 200 0 200 200 0 8 0 namei 1024 13829 0 13828 3 2 1 2 0 8 0 kstatmem 264 52 0 32 2 0 2 2 0 8 0 scsiplug 72 3 0 3 1 0 1 1 0 8 1 scxspl 216 11832 0 11832 8 7 1 8 1 8 1 plimitpl 152 131 0 113 1 0 1 1 0 8 0 sigapl 424 1089 0 1042 7 1 6 7 0 8 0 knotepl 120 305280 0 305232 37 26 11 24 0 8 8 kqueuepl 184 204 0 193 1 0 1 1 0 8 0 pipepl 296 137 0 110 3 0 3 3 0 8 0 fdescpl 440 1072 0 1042 5 0 5 5 0 8 0 filepl 120 6523 0 6267 19 7 12 15 0 8 4 lockfpl 104 305 0 303 1 0 1 1 0 8 0 lockfspl 48 144 0 142 1 0 1 1 0 8 0 sessionpl 144 24 0 16 1 0 1 1 0 8 0 pgrppl 48 39 0 23 1 0 1 1 0 8 0 ucredpl 104 924 0 913 1 0 1 1 0 8 0 zombiepl 144 1283 0 1283 2 1 1 1 0 8 1 processpl 1160 1089 0 1042 4 0 4 4 0 8 0 procpl 656 2128 0 2067 6 0 6 6 0 8 0 sosppl 168 7 0 7 2 1 1 1 0 8 1 sockpl 528 1513 0 1478 18 9 9 14 0 8 6 mcl64k 65536 84 0 84 2 1 1 1 0 8 1 mcl16k 16384 8 0 8 1 1 0 1 0 8 0 mcl9k 9216 13 0 13 2 1 1 1 0 8 1 mcl8k 8192 12 0 12 2 1 1 1 0 8 1 mcl4k 4096 3494 0 3440 12 4 8 12 0 8 0 mcl2k2 2112 9 0 9 2 1 1 1 0 8 1 mcl2k 2048 785 0 783 3 1 2 2 0 8 1 mtagpl 96 125 0 14 3 0 3 3 0 8 0 mbufpl 256 11924 0 11639 26 1 25 25 0 8 4 bufpl 280 3568 0 121 247 0 247 247 0 8 0 anonpl 24 184668 0 176250 78 1 77 78 0 187 1 amapchunkpl 152 35865 0 35287 47 10 37 38 0 158 12 amappl16 200 3898 0 3641 27 1 26 27 0 8 0 amappl15 192 8 0 8 1 1 0 1 0 8 0 amappl14 184 107 0 96 1 0 1 1 0 8 0 amappl13 176 9 0 9 1 1 0 1 0 8 0 amappl12 168 1732 0 1701 3 0 3 3 0 8 0 amappl11 160 48 0 38 1 0 1 1 0 8 0 amappl10 152 20 0 20 1 1 0 1 0 8 0 amappl9 144 243 0 243 1 1 0 1 0 8 0 amappl8 136 23 0 21 1 0 1 1 0 8 0 amappl7 128 111 0 100 1 0 1 1 0 8 0 amappl6 120 182 0 178 1 0 1 1 0 8 0 amappl5 112 136 0 129 1 0 1 1 0 8 0 amappl4 104 287 0 271 1 0 1 1 0 8 0 amappl3 96 5657 0 5547 4 0 4 4 0 8 1 amappl2 88 636 0 578 2 0 2 2 0 8 0 amappl1 80 10886 0 10295 15 1 14 14 0 8 1 amappl 88 7934 0 7761 5 0 5 5 0 92 0 dma4096 4096 1 0 1 1 1 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 7 0 7 2 1 1 1 0 8 1 dma32 32 8 0 8 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 96 0 2 2 0 2 2 0 8 0 uaddrrnd 24 1072 0 1042 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1072 0 1042 1 0 1 1 0 8 0 vmmpekpl 168 9492 0 9448 3 0 3 3 0 8 0 vmmpepl 168 72833 0 70675 107 1 106 107 0 357 1 vmsppl 360 1071 0 1042 4 0 4 4 0 8 0 rwobjpl 32 24690 0 19856 42 2 40 40 0 8 0 pdppl 4096 2150 0 2084 98 30 68 82 0 8 2 pvpl 32 483922 0 469860 164 10 154 157 0 265 9 pmappl 216 1071 0 1042 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 290 0 51 8 0 8 8 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(fffffd807060a528) at in_pcbunref+0x206 sys/netinet/in_pcb.c:672 tcp_input_solocked(ffff80002a74b620,ffff80002a74b62c,0,2,ffff80002a74b618) 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,ffff80002a74b6f8,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(fffffd807060a528) at in_pcbunref+0x206 sys/netinet/in_pcb.c:672 tcp_input_solocked(ffff80002a74b620,ffff80002a74b62c,0,2,ffff80002a74b618) 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,ffff80002a74b6f8,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