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 Starting stack trace... panic(ffffffff8342de09) at panic+0x1ba sys/kern/subr_prf.c:229 __assert(ffffffff833de45c,ffffffff833c8dfd,2a1,ffffffff833a183a) at __assert+0x29 sys/kern/subr_prf.c:-1 in_pcbunref(fffffd806c4c0000) at in_pcbunref+0x206 sys/netinet/in_pcb.c:672 tcp_input_solocked(ffff80002a74b850,ffff80002a74b85c,0,2,ffff80002a74 b848) at tcp_input_solocked+0xfd sys/netinet/tcp_input.c:2229 tcp_input_mlist(ffffffff839cae60,2) at tcp_input_mlist+0x93 sys/netinet/tcp_input.c:-1 if_input_process(ffff800000b11800,ffff80002a74b928,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: 249 End of stack trace. syncing disks...29 28 done set $lines = 0 WARNING: SPL NOT LOWERED ON SYSCALL 91 -432276232 EXIT 0 3 Stopped at savectx+0xae: movl $0,%gs:0x688 TID PID UID PRFLAGS PFLAGS CPU COMMAND * 52664 91304 0 0x2 0 0 syz-executor savectx() at savectx+0xae end of kernel end trace frame: 0x7445e63bfce0, count: 14 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> 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 savectx() at savectx+0xae end of kernel end trace frame: 0x7445e63bfce0, count: -1 ddb> show registers rdi 0 rsi 0 rbp 0xffff80003c9bde70 rbx 0 rdx 0 rcx 0 rax 0x3b r8 0xffff80003c9bdda0 r9 0 r10 0x56776397598e5 r11 0x84ce53770bf4cb71 r12 0 r13 0 r14 0xffff80003c9587e8 r15 0 rip 0xffffffff818273ee savectx+0xae cs 0x8 rflags 0x46 rsp 0xffff80003c9bddf0 ss 0x10 savectx+0xae: movl $0,%gs:0x688 ddb> show proc PROC (syz-executor) tid=52664 pid=91304 tcnt=1 stat=onproc flags process=2 proc=0 runpri=79, usrpri=78, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003c9582c8,0xffff80002f904550 process=0xffff80002f900db0 user=0xffff80003c9b8000, vmspace=0xfffffd806ed38e18 estcpu=28, cpticks=1, pctcpu=0.4, user=4, sys=34, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 35180 32492 36204 0 3 0 kmmaplk syz-executor 35180 128352 36204 0 3 0x4000080 fsleep syz-executor 8403 416741 76315 0 3 0 kmmaplk syz-executor 8403 433538 76315 0 3 0x4000080 fsleep syz-executor 31600 140279 21047 0 3 0 kmmaplk syz-executor 31600 199572 21047 0 3 0x4000080 fsleep syz-executor 60690 13112 99434 0 2 0 syz-executor 60690 43437 99434 0 3 0x4000080 fsleep syz-executor 60690 289710 99434 0 2 0x4000000 syz-executor 5693 297086 77255 0 3 0 kmmaplk syz-executor 5693 244910 77255 0 3 0x4000080 fsleep syz-executor 99516 195582 91304 0 2 0 syz-executor 99516 192953 91304 0 2 0x4000080 syz-executor 99516 127421 91304 0 3 0x4000080 fsleep syz-executor 31917 250450 82229 0 2 0xc82 syz-executor 13946 440701 0 0 3 0x14200 acct acct *91304 52664 82229 0 7 0x2 syz-executor 73568 219070 82229 0 2 0xc82 syz-executor 76315 193152 82229 0 2 0xc82 syz-executor 36204 382854 82229 0 2 0xc82 syz-executor 99434 419139 82229 0 2 0xc82 syz-executor 77255 31551 82229 0 2 0xc82 syz-executor 50434 99385 0 0 3 0x14200 bored sosplice 21047 393003 82229 0 2 0xc82 syz-executor 82229 222586 91647 0 3 0x2 netlock syz-executor 91647 12069 89210 0 3 0x10008a sigsusp ksh 89210 375802 91102 0 3 0x98 kqread sshd-session 91102 422930 62291 0 3 0x92 kqread sshd-session 92428 304317 1 0 3 0x100003 kmmaplk getty 62291 199705 1 0 3 0x88 kqread sshd 82542 344253 67968 73 3 0x1100090 kqread syslogd 67968 363533 1 0 3 0x100082 sbwait syslogd 8037 441979 1 0 3 0x100080 kqread resolvd 94367 433357 41089 77 3 0x100092 kqread dhcpleased 80656 42550 41089 77 3 0x100092 kqread dhcpleased 41089 383717 1 0 3 0x80 kqread dhcpleased 465 41354 0 0 3 0x14200 bored smr 37146 164870 0 0 2 0x14200 zerothread 97343 288896 0 0 3 0x14200 aiodoned aiodoned 89863 236347 0 0 2 0x14200 update 74657 505410 0 0 3 0x14200 cleaner cleaner 81095 194801 0 0 3 0x14200 kmmaplk reaper 55684 522527 0 0 3 0x14200 pgdaemon pagedaemon 96579 379450 0 0 3 0x14200 bored viomb 99035 119039 0 0 3 0x40014200 acpi0 acpi0 36342 482314 0 0 3 0x14200 bored softnet3 93427 451932 0 0 3 0x14200 bored softnet2 27401 474852 0 0 3 0x14200 bored softnet1 29926 310722 0 0 3 0x14200 netlock softnet0 81926 477394 0 0 3 0x14200 bored systqmp 66587 335461 0 0 3 0x14200 bored systq 60713 397162 0 0 3 0x40014200 netlock softclock 35939 307042 0 0 3 0x40014200 idle0 1 243760 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10220 11221K 15255K 166960K 20779 0 pcb 17 22K 27K 166960K 974 0 rtable 238 20K 20K 166960K 1337 0 pf 30 12K 20K 166960K 433 0 ifaddr 39 7K 9K 166960K 231 0 ifgroup 50 2K 2K 166960K 390 0 sysctl 4 1K 9K 166960K 29 0 counters 32 17K 18K 166960K 173 0 ioctlops 0 0K 4K 166960K 749 0 iov 0 0K 18K 166960K 188 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1558 98K 98K 166960K 6585 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 69 0 VM map 2 1K 1K 166960K 2 0 sem 30 80K 80K 166960K 104 0 dirhash 9 1K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 240K 166960K 4467 0 sigio 0 0K 0K 166960K 58 0 proc 63 67K 83K 166960K 1315 0 subproc 72 4K 4K 166960K 226 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 1 0K 0K 166960K 732 0 in_multi 76 5K 7K 166960K 430 0 ether_multi 1 0K 0K 166960K 43 0 mrt 1 0K 0K 166960K 20 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 217 970K 970K 166960K 217 0 exec 0 0K 1K 166960K 1001 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 8 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 236 161K 177K 166960K 40713 0 UVM aobj 131 6K 6K 166960K 138 0 pinsyscall 38 76K 94K 166960K 5901 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 221 0 NDP 11 0K 1K 166960K 168 0 temp 80 8688K 8816K 166960K 186621 0 kqueue 14 22K 31K 166960K 676 0 SYN cache 2 8K 16K 166960K 3 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 554 0 550 5 2 3 3 0 8 2 rtentry 136 441 0 346 4 0 4 4 0 8 0 unpcb 144 2591 0 2576 11 5 6 6 0 8 5 syncache 336 6 0 6 2 1 1 1 0 8 1 tcpcb 736 1747 0 1740 26 17 9 13 0 8 8 arp 88 79 0 60 1 0 1 1 0 8 0 ipq 40 12 0 11 1 0 1 1 0 8 0 ipqe 40 15 0 14 1 0 1 1 0 8 0 inpcb 328 5191 0 5179 38 29 9 18 0 8 7 ip6q 72 12 0 12 1 0 1 1 0 8 1 ip6af 40 16 0 16 1 0 1 1 0 8 1 nd6 104 96 0 75 1 0 1 1 0 8 0 pkpcb 40 102 0 102 1 0 1 1 0 8 1 kcovpl 48 25 0 17 1 0 1 1 0 8 0 mppekey 1024 1 0 1 1 0 1 1 0 8 1 ppxss 1072 85 0 85 1 0 1 1 0 8 1 pppxif 1384 9 0 9 2 1 1 1 0 8 1 pfosfp 40 1 0 0 1 0 1 1 0 8 0 pfosfpen 112 1 0 0 1 0 1 1 0 8 0 pfrktable 1344 6 0 5 2 1 1 1 0 8 0 pfanchor 1288 1 0 0 1 0 1 1 0 8 0 pftag 88 3 0 2 2 1 1 1 0 8 0 pfrule 1344 18 0 7 1 0 1 1 0 8 0 rttmr 136 3 0 3 1 1 0 1 0 8 0 art_heap8 4096 4 0 0 4 0 4 4 0 8 0 art_heap4 256 1699 0 1311 33 3 30 30 0 8 4 art_table 32 1703 0 1311 4 0 4 4 0 8 0 art_node 16 427 0 343 1 0 1 1 0 8 0 sysvmsgpl 40 21 0 15 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 98 0 70 1 0 1 1 0 8 0 shmpl 112 135 0 7 4 0 4 4 0 8 0 dirhash 1024 17 0 10 3 1 2 3 0 8 0 dino2pl 256 9043 0 7514 96 0 96 96 0 8 0 ffsino 248 9043 0 7514 96 0 96 96 0 8 0 nchpl 144 14799 0 13081 64 0 64 64 0 8 0 rtmask 32 20 0 20 2 1 1 1 0 8 1 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 216 5926 0 0 330 0 330 330 0 8 0 namei 1024 53996 0 53995 3 1 2 2 0 8 1 kstatmem 264 230 0 208 2 0 2 2 0 8 0 acpiwqpl 32 3 0 3 1 0 1 1 1 8 1 scsiplug 72 21 0 21 2 1 1 1 0 8 1 scxspl 216 42947 0 42946 10 7 3 8 1 8 2 plimitpl 152 934 0 918 1 0 1 1 0 8 0 sigapl 424 4703 0 4655 8 0 8 8 0 8 1 knotepl 120 838561 0 838443 36 23 13 17 0 8 6 kqueuepl 184 1292 0 1282 7 3 4 4 0 8 3 pipepl 296 551 0 462 8 0 8 8 0 8 0 fdescpl 440 4662 0 4633 5 1 4 5 0 8 0 filepl 120 31604 0 31264 20 7 13 17 0 8 2 lockfpl 104 2665 0 2661 3 1 2 2 0 8 1 lockfspl 48 1204 0 1200 1 0 1 1 0 8 0 sessionpl 144 38 0 30 1 0 1 1 0 8 0 pgrppl 48 105 0 89 1 0 1 1 0 8 0 ucredpl 104 4867 0 4856 1 0 1 1 0 8 0 zombiepl 144 6616 0 6614 1 0 1 1 0 8 0 processpl 1160 4703 0 4655 5 0 5 5 0 8 0 procpl 656 11614 0 11558 8 0 8 8 0 8 2 sosppl 168 27 0 27 2 1 1 1 0 8 1 sockpl 528 8541 0 8510 35 24 11 16 0 8 8 mcl64k 65536 247 0 247 2 1 1 1 0 8 1 mcl16k 16384 78 0 78 2 1 1 1 0 8 1 mcl12k 12288 25 0 25 2 1 1 1 0 8 1 mcl9k 9216 17 0 17 2 1 1 1 0 8 1 mcl8k 8192 125 0 125 2 1 1 1 0 8 1 mcl4k 4096 9231 0 9173 15 6 9 14 0 8 1 mcl2k2 2112 19 0 19 2 1 1 1 0 8 1 mcl2k 2048 4539 0 4535 7 4 3 6 0 8 1 mtagpl 96 505 0 391 6 1 5 5 0 8 0 mbufpl 256 55646 0 55346 252 222 30 233 0 8 8 bufpl 280 11712 0 5485 446 0 446 446 0 8 0 anonpl 24 558757 0 545358 131 0 131 131 0 187 24 amapchunkpl 152 148162 0 147524 53 15 38 43 0 158 10 amappl16 200 10609 0 10087 54 13 41 41 0 8 1 amappl15 192 7 0 6 1 0 1 1 0 8 0 amappl14 184 135 0 125 1 0 1 1 0 8 0 amappl13 176 6 0 6 2 1 1 1 0 8 1 amappl12 168 5534 0 5505 3 1 2 3 0 8 0 amappl11 160 46 0 36 1 0 1 1 0 8 0 amappl10 152 5 0 5 1 1 0 1 0 8 0 amappl9 144 254 0 254 1 1 0 1 0 8 0 amappl8 136 23 0 21 1 0 1 1 0 8 0 amappl7 128 137 0 126 1 0 1 1 0 8 0 amappl6 120 336 0 332 1 0 1 1 0 8 0 amappl5 112 180 0 173 1 0 1 1 0 8 0 amappl4 104 342 0 325 1 0 1 1 0 8 0 amappl3 96 29683 0 29576 4 0 4 4 0 8 0 amappl2 88 865 0 806 2 0 2 2 0 8 0 amappl1 80 26646 0 26091 13 1 12 13 0 8 0 amappl 88 39053 0 38882 5 0 5 5 0 92 0 dma65536 65536 1 0 1 1 0 1 1 0 8 1 dma32768 32768 1 0 1 1 1 0 1 0 8 0 dma16384 16384 1 0 1 1 0 1 1 0 8 1 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 2 0 1 1 0 1 1 0 8 0 dma256 256 10 0 10 2 1 1 1 0 8 1 dma128 128 262 0 262 2 1 1 1 0 8 1 dma64 64 7 0 7 2 1 1 1 0 8 1 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 19 0 18 1 0 1 1 0 8 0 aobjpl 72 137 0 7 3 0 3 3 0 8 0 uaddrrnd 24 4662 0 4633 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 4662 0 4633 1 0 1 1 0 8 0 vmmpekpl 168 30585 0 30517 4 0 4 4 0 8 0 vmmpepl 168 292410 0 290003 147 17 130 133 0 357 10 vmsppl 360 4661 0 4632 4 1 3 4 0 8 0 rwobjpl 32 73170 0 65748 63 0 63 63 0 8 0 pdppl 4096 9330 0 9264 184 118 66 80 0 8 0 pvpl 32 1900056 0 1881137 242 10 232 232 0 265 45 pmappl 216 4661 0 4632 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 639 0 379 14 2 12 14 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace savectx() at savectx+0xae end of kernel end trace frame: 0x7445e63bfce0, count: -1 ddb> machine ddbcpu 1 No such command ddb> trace savectx() at savectx+0xae end of kernel end trace frame: 0x7445e63bfce0, count: -1