panic: kernel diagnostic assertion "cifp != NULL" failed: file "/syzkaller/managers/main/kernel/sys/net/route.c", line 951 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *236907 23398 0 0 0x4000000 0 syz-executor.1 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 __assert(ffffffff821dd4de,ffffffff821af01f,3b7,ffffffff821bf626) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff8000148844a8,38,ffff800014884418,0) at rtrequest+0xbf1 sys/net/route.c:951 rtm_output(ffff800000b15200,ffff800014884550,ffff8000148844a8,38,0) at rtm_output+0x62f sys/net/rtsock.c:901 route_output(fffffd8035100c00,fffffd803700e480,0,0) at route_output+0x7d9 sys/net/rtsock.c:819 route_usrreq(fffffd803700e480,9,fffffd8035100c00,0,0,ffff8000ffff33d8) at route_usrreq+0x363 sys/net/rtsock.c:275 sosend(fffffd803700e480,0,ffff800014884750,0,0,80) at sosend+0x63d sys/kern/uipc_socket.c:524 sendit(ffff8000ffff33d8,4,ffff800014884830,0,ffff800014884910) at sendit+0x52b sys/kern/uipc_syscalls.c:662 sys_sendto(ffff8000ffff33d8,ffff8000148848c8,ffff800014884910) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800014884990) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffffd8,0,6,c453234010) at Xsyscall+0x128 end of kernel end trace frame: 0xc7375b01f0, count: 3 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 kernel diagnostic assertion "cifp != NULL" failed: file "/syzkaller/managers/main/kernel/sys/net/route.c", line 951 ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 __assert(ffffffff821dd4de,ffffffff821af01f,3b7,ffffffff821bf626) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff8000148844a8,38,ffff800014884418,0) at rtrequest+0xbf1 sys/net/route.c:951 rtm_output(ffff800000b15200,ffff800014884550,ffff8000148844a8,38,0) at rtm_output+0x62f sys/net/rtsock.c:901 route_output(fffffd8035100c00,fffffd803700e480,0,0) at route_output+0x7d9 sys/net/rtsock.c:819 route_usrreq(fffffd803700e480,9,fffffd8035100c00,0,0,ffff8000ffff33d8) at route_usrreq+0x363 sys/net/rtsock.c:275 sosend(fffffd803700e480,0,ffff800014884750,0,0,80) at sosend+0x63d sys/kern/uipc_socket.c:524 sendit(ffff8000ffff33d8,4,ffff800014884830,0,ffff800014884910) at sendit+0x52b sys/kern/uipc_syscalls.c:662 sys_sendto(ffff8000ffff33d8,ffff8000148848c8,ffff800014884910) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800014884990) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffffd8,0,6,c453234010) at Xsyscall+0x128 end of kernel end trace frame: 0xc7375b01f0, count: -12 ddb> show registers rdi 0xffffffff8117ea37 db_enter+0x17 rsi 0x4002 __ALIGN_SIZE+0x3002 rbp 0xffff800014884220 rbx 0xffff8000148842d0 rdx 0x4003 __ALIGN_SIZE+0x3003 rcx 0xffff800016d5c000 rax 0xffff800016d5c000 r8 0xffff8000148841e0 r9 0x1 r10 0xffff800000b14dc0 r11 0xdf30eb2043f54589 r12 0x3000000008 r13 0xffff800014884230 r14 0x100 r15 0x1 rip 0xffffffff8117ea38 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800014884210 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=236907 stat=onproc flags process=0 proc=4000000 pri=80, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff3b40,0xffffffff82575d38 process=0xffff8000ffff6370 user=0xffff80001487f000, vmspace=0xfffffd803f013dd0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 23398 202971 54263 0 2 0 syz-executor.1 *23398 236907 54263 0 7 0x4000000 syz-executor.1 41818 314863 21815 0 2 0 syz-executor.0 41818 311402 21815 0 3 0x4000080 fsleep syz-executor.0 21815 512496 72688 0 3 0x82 nanosleep syz-executor.0 54263 283360 72688 0 3 0x82 nanosleep syz-executor.1 62475 377463 0 0 3 0x14200 acct acct 35443 14323 0 0 3 0x14200 bored sosplice 11434 400057 1 0 3 0x100083 ttyin getty 72688 477813 90520 0 3 0x82 thrsleep syz-fuzzer 72688 339619 90520 0 3 0x4000082 thrsleep syz-fuzzer 72688 452538 90520 0 3 0x4000082 thrsleep syz-fuzzer 72688 294043 90520 0 3 0x4000082 thrsleep syz-fuzzer 72688 391598 90520 0 3 0x4000082 kqread syz-fuzzer 72688 63064 90520 0 3 0x4000082 thrsleep syz-fuzzer 72688 56545 90520 0 3 0x4000082 thrsleep syz-fuzzer 90520 205430 46729 0 3 0x10008a pause ksh 46729 34841 16560 0 3 0x92 select sshd 16560 185236 1 0 3 0x80 select sshd 82357 502927 42777 73 2 0x100090 syslogd 42777 377075 1 0 3 0x100082 netio syslogd 27869 479957 0 0 2 0x14200 zerothread 69926 53027 0 0 3 0x14200 aiodoned aiodoned 33150 299277 0 0 3 0x14200 syncer update 43487 378079 0 0 3 0x14200 cleaner cleaner 30940 472068 0 0 3 0x14200 reaper reaper 55512 213202 0 0 3 0x14200 pgdaemon pagedaemon 66389 198990 0 0 3 0x14200 bored crynlk 12743 326967 0 0 3 0x14200 bored crypto 46575 107173 0 0 3 0x40014200 acpi0 acpi0 14339 182102 0 0 3 0x14200 bored softnet 31285 143082 0 0 3 0x14200 bored systqmp 99312 98757 0 0 3 0x14200 bored systq 664 34734 0 0 3 0x40014200 bored softclock 6013 417390 0 0 3 0x40014200 idle0 96292 333594 0 0 3 0x14200 bored smr 1 258880 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 Kern Lim devbuf 9571 6501K 7599K 78643K 33223 0 0 pcb 13 10K 12K 78643K 538 0 0 rtable 110 6K 7K 78643K 6149 0 0 ifaddr 65 17K 19K 78643K 629 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 284 0 0 iov 0 0K 20K 78643K 447 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1216 76K 77K 78643K 8261 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 5K 78643K 70 0 0 VM map 2 0K 0K 78643K 10 0 0 sem 12 0K 0K 78643K 653 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 6 17K 25K 78643K 5204 0 0 sigio 0 0K 0K 78643K 72 0 0 proc 45 30K 55K 78643K 1484 0 0 subproc 32 2K 2K 78643K 361 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 0K 78643K 402 0 0 in_multi 24 1K 2K 78643K 378 0 0 ether_multi 1 0K 0K 78643K 28 0 0 mrt 0 0K 0K 78643K 14 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 180 795K 795K 78643K 180 0 0 exec 0 0K 1K 78643K 795 0 0 pfkey data 0 0K 4K 78643K 4 0 0 pagedep 1 8K 8K 78643K 1 0 0 inodedep 1 32K 32K 78643K 1 0 0 newblk 1 0K 0K 78643K 1 0 0 VM swap 7 26K 26K 78643K 7 0 0 UVM amap 108 22K 32K 78643K 13150 0 0 UVM aobj 130 4K 4K 78643K 132 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 0K 78643K 533 0 0 NDP 14 0K 0K 78643K 195 0 0 temp 184 3535K 3607K 78643K 74366 0 0 kqueue 0 0K 0K 78643K 61 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 45 0 38 1 0 1 1 0 8 0 rtpcb 80 5241 0 5239 1 0 1 1 0 8 0 rtentry 112 250 0 210 2 0 2 2 0 8 0 unpcb 120 1910 0 1896 2 1 1 2 0 8 0 syncache 264 7 0 7 3 3 0 1 0 8 0 tcpqe 32 4929 0 4929 2 2 0 2 0 8 0 tcpcb 544 3521 0 3517 22 20 2 4 0 8 1 ipq 40 14 0 14 6 5 1 1 0 8 1 ipqe 40 30 0 30 6 5 1 1 0 8 1 inpcb 280 5874 0 5870 42 40 2 13 0 8 1 rttmr 72 2 0 2 2 2 0 1 0 8 0 nd6 48 42 0 40 1 0 1 1 0 8 0 pkpcb 40 35 0 35 11 10 1 1 0 8 1 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 87 0 87 13 12 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1089 0 903 20 5 15 15 0 8 0 art_table 32 1090 0 903 2 0 2 2 0 8 0 art_node 16 246 0 211 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 2 1 1 0 1 0 8 0 semapl 112 651 0 641 1 0 1 1 0 8 0 shmpl 112 130 0 2 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 9353 0 7956 46 0 46 46 0 8 0 ffsino 240 9353 0 7956 83 0 83 83 0 8 0 nchpl 144 16857 0 15221 62 1 61 61 0 8 0 uvmvnodes 72 7755 0 0 141 0 141 141 0 8 0 vnodes 208 7755 0 0 409 0 409 409 0 8 0 namei 1024 59732 0 59732 5 4 1 1 0 8 1 vmpool 520 8 0 8 3 2 1 1 0 8 1 scsiplug 64 5 0 5 4 4 0 1 0 8 0 scxspl 192 54369 0 54369 13 12 1 7 0 8 1 plimitpl 152 423 0 417 1 0 1 1 0 8 0 sigapl 432 5319 0 5307 2 0 2 2 0 8 0 futexpl 56 128487 0 128486 4 3 1 1 0 8 0 knotepl 112 1122 0 1103 3 2 1 2 0 8 0 kqueuepl 104 1051 0 1049 1 0 1 1 0 8 0 pipepl 112 2594 0 2575 10 9 1 3 0 8 0 fdescpl 424 5320 0 5307 2 0 2 2 0 8 0 filepl 120 47017 0 46931 37 33 4 11 0 8 1 lockfpl 104 2246 0 2246 1 0 1 1 0 8 1 lockfspl 48 716 0 716 1 0 1 1 0 8 1 sessionpl 112 37 0 29 1 0 1 1 0 8 0 pgrppl 48 75 0 67 1 0 1 1 0 8 0 ucredpl 96 5384 0 5378 1 0 1 1 0 8 0 zombiepl 144 5309 0 5309 3 2 1 1 0 8 1 processpl 864 5338 0 5309 4 0 4 4 0 8 0 procpl 632 11532 0 11495 4 0 4 4 0 8 0 sosppl 128 52 0 52 14 13 1 1 0 8 1 sockpl 384 13108 0 13088 77 72 5 21 0 8 1 mcl64k 65536 155 0 155 16 15 1 1 0 8 1 mcl16k 16384 43 0 43 18 17 1 1 0 8 1 mcl12k 12288 101 0 101 8 7 1 1 0 8 1 mcl9k 9216 43 0 43 12 11 1 1 0 8 1 mcl8k 8192 295 0 295 4 3 1 1 0 8 1 mcl4k 4096 663 0 663 4 3 1 1 0 8 1 mcl2k2 2112 56 0 56 18 18 0 1 0 8 0 mcl2k 2048 65435 0 65393 29 23 6 21 0 8 0 mtagpl 80 243 0 233 4 3 1 2 0 8 0 mbufpl 256 198677 0 198586 921 859 62 126 0 8 53 bufpl 256 18627 0 10872 485 0 485 485 0 8 0 anonpl 16 484771 0 471072 188 125 63 76 0 62 1 amapchunkpl 152 23486 0 23385 49 43 6 18 0 158 0 amappl16 192 26655 0 25797 175 132 43 55 0 8 0 amappl15 184 77 0 77 3 3 0 1 0 8 0 amappl14 176 452 0 450 2 1 1 1 0 8 0 amappl13 168 1054 0 1054 4 4 0 1 0 8 0 amappl12 160 814 0 810 2 1 1 1 0 8 0 amappl11 152 223 0 219 1 0 1 1 0 8 0 amappl10 144 335 0 333 2 1 1 1 0 8 0 amappl9 136 2521 0 2515 1 0 1 1 0 8 0 amappl8 128 2073 0 2034 2 0 2 2 0 8 0 amappl7 120 425 0 419 1 0 1 1 0 8 0 amappl6 112 238 0 225 1 0 1 1 0 8 0 amappl5 104 1124 0 1117 1 0 1 1 0 8 0 amappl4 96 5978 0 5945 1 0 1 1 0 8 0 amappl3 88 762 0 756 1 0 1 1 0 8 0 amappl2 80 40912 0 40840 4 2 2 3 0 8 0 amappl1 72 102831 0 102436 33 24 9 20 0 8 0 amappl 80 12046 0 12013 1 0 1 1 0 84 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma64 64 259 0 259 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 17 0 17 1 1 0 1 0 8 0 aobjpl 64 131 0 2 3 0 3 3 0 8 0 uaddrrnd 24 5328 0 5307 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 5328 0 5307 1 0 1 1 0 8 0 vmmpekpl 168 34045 0 34014 2 0 2 2 0 8 0 vmmpepl 168 622963 0 621012 343 230 113 117 0 357 26 vmsppl 272 5319 0 5307 2 1 1 2 0 8 0 pdppl 4096 10662 0 10630 6 1 5 6 0 8 0 pvpl 32 1408417 0 1391563 445 293 152 285 0 265 5 pmappl 200 5327 0 5315 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 1621 0 953 26 6 20 21 0 8 0