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 *174032 99305 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,ffff800016925848,38,ffff8000169257b8,0) at rtrequest+0xbf1 sys/net/route.c:951 rtm_output(ffff800000adea00,ffff8000169258f0,ffff800016925848,38,0) at rtm_output+0x62f sys/net/rtsock.c:901 route_output(fffffd8036d7ea00,fffffd80390d1338,0,0) at route_output+0x7d9 sys/net/rtsock.c:819 route_usrreq(fffffd80390d1338,9,fffffd8036d7ea00,0,0,ffff8000149149f8) at route_usrreq+0x363 sys/net/rtsock.c:275 sosend(fffffd80390d1338,0,ffff800016925af0,0,0,80) at sosend+0x63d sys/kern/uipc_socket.c:524 sendit(ffff8000149149f8,3,ffff800016925bd0,0,ffff800016925cb0) at sendit+0x52b sys/kern/uipc_syscalls.c:662 sys_sendto(ffff8000149149f8,ffff800016925c68,ffff800016925cb0) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800016925d30) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffffd8,0,6,e12cf7d1010) at Xsyscall+0x128 end of kernel end trace frame: 0xe15c272b1a0, 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,ffff800016925848,38,ffff8000169257b8,0) at rtrequest+0xbf1 sys/net/route.c:951 rtm_output(ffff800000adea00,ffff8000169258f0,ffff800016925848,38,0) at rtm_output+0x62f sys/net/rtsock.c:901 route_output(fffffd8036d7ea00,fffffd80390d1338,0,0) at route_output+0x7d9 sys/net/rtsock.c:819 route_usrreq(fffffd80390d1338,9,fffffd8036d7ea00,0,0,ffff8000149149f8) at route_usrreq+0x363 sys/net/rtsock.c:275 sosend(fffffd80390d1338,0,ffff800016925af0,0,0,80) at sosend+0x63d sys/kern/uipc_socket.c:524 sendit(ffff8000149149f8,3,ffff800016925bd0,0,ffff800016925cb0) at sendit+0x52b sys/kern/uipc_syscalls.c:662 sys_sendto(ffff8000149149f8,ffff800016925c68,ffff800016925cb0) at sys_sendto+0x80 sys/kern/uipc_syscalls.c:527 syscall(ffff800016925d30) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffffd8,0,6,e12cf7d1010) at Xsyscall+0x128 end of kernel end trace frame: 0xe15c272b1a0, count: -12 ddb> show registers rdi 0xffffffff8117ea37 db_enter+0x17 rsi 0x3eba __ALIGN_SIZE+0x2eba rbp 0xffff8000169255c0 rbx 0xffff800016925670 rdx 0x3ebb __ALIGN_SIZE+0x2ebb rcx 0xffff80001591a000 rax 0xffff80001591a000 r8 0xffff800016925580 r9 0x1 r10 0xffff800000a5ed00 r11 0x5d42e048954ffb5d r12 0x3000000008 r13 0xffff8000169255d0 r14 0x100 r15 0x1 rip 0xffffffff8117ea38 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000169255b0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=174032 stat=onproc flags process=0 proc=4000000 pri=82, usrpri=82, nice=20 forw=0xffffffffffffffff, list=0xffff8000149158c8,0xffffffff82575d38 process=0xffff8000ffff6a30 user=0xffff800016920000, vmspace=0xfffffd803f013220 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 99305 491462 57501 0 2 0 syz-executor.1 *99305 174032 57501 0 7 0x4000000 syz-executor.1 57501 76376 19370 0 2 0x482 syz-executor.1 72877 493755 19370 0 2 0x2 syz-executor.0 30600 311432 0 0 3 0x14200 bored sosplice 19370 446876 68484 0 3 0x82 thrsleep syz-fuzzer 19370 424409 68484 0 2 0x4000482 syz-fuzzer 19370 273366 68484 0 3 0x4000082 kqread syz-fuzzer 19370 341334 68484 0 3 0x4000082 thrsleep syz-fuzzer 19370 312158 68484 0 3 0x4000082 thrsleep syz-fuzzer 19370 176666 68484 0 3 0x4000082 thrsleep syz-fuzzer 19370 131263 68484 0 3 0x4000082 thrsleep syz-fuzzer 19370 110977 68484 0 3 0x4000082 thrsleep syz-fuzzer 68484 82640 69591 0 3 0x10008a pause ksh 69591 280426 96154 0 3 0x92 select sshd 60159 415951 1 0 3 0x100083 ttyin getty 96154 313317 1 0 3 0x80 select sshd 95693 211302 64696 73 3 0x100090 kqread syslogd 64696 501790 1 0 3 0x100082 netio syslogd 13006 133606 1 77 3 0x100090 poll dhclient 53749 271865 1 0 3 0x80 poll dhclient 7933 76358 0 0 2 0x14200 zerothread 93419 430068 0 0 3 0x14200 aiodoned aiodoned 52139 406011 0 0 3 0x14200 syncer update 19274 222078 0 0 3 0x14200 cleaner cleaner 35959 8979 0 0 3 0x14200 reaper reaper 66922 268581 0 0 3 0x14200 pgdaemon pagedaemon 17214 441054 0 0 3 0x14200 bored crynlk 28639 214696 0 0 3 0x14200 bored crypto 6762 61491 0 0 3 0x40014200 acpi0 acpi0 73174 182224 0 0 3 0x14200 bored softnet 24013 513026 0 0 3 0x14200 bored systqmp 16498 248956 0 0 3 0x14200 bored systq 69480 451495 0 0 3 0x40014200 bored softclock 88502 14196 0 0 3 0x40014200 idle0 90872 144598 0 0 3 0x14200 bored smr 1 23699 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 9601 6537K 14717K 78643K 48181 0 0 pcb 13 10K 12K 78643K 2188 0 0 rtable 146 14K 14K 78643K 5214 0 0 ifaddr 93 25K 27K 78643K 1819 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 571 0 0 iov 0 0K 32K 78643K 29294 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1215 76K 77K 78643K 16093 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 9K 78643K 262 0 0 VM map 2 0K 0K 78643K 24 0 0 sem 12 0K 1K 78643K 2369 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 5 13K 25K 78643K 17413 0 0 sigio 0 0K 0K 78643K 234 0 0 proc 50 38K 55K 78643K 3893 0 0 subproc 32 2K 2K 78643K 902 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 1796 0 0 in_multi 38 2K 2K 78643K 1072 0 0 ether_multi 1 0K 0K 78643K 71 0 0 mrt 2 0K 0K 78643K 71 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 138 609K 609K 78643K 138 0 0 exec 0 0K 1K 78643K 2278 0 0 pfkey data 0 0K 4K 78643K 6 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 134 23K 33K 78643K 41633 0 0 UVM aobj 130 4K 4K 78643K 144 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 1K 78643K 2087 0 0 NDP 21 0K 1K 78643K 556 0 0 temp 233 3537K 4177K 78643K 219437 0 0 kqueue 0 0K 0K 78643K 158 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 109 0 102 1 0 1 1 0 8 0 rtpcb 80 1148 0 1145 1 0 1 1 0 8 0 rtentry 112 630 0 579 2 0 2 2 0 8 0 unpcb 120 7021 0 6989 13 11 2 2 0 8 0 syncache 264 146 0 146 6 6 0 1 0 8 0 sackhl 24 2 0 2 2 2 0 1 0 8 0 tcpqe 32 6247 0 6247 4 4 0 1 0 8 0 tcpcb 544 4965 0 4961 2 1 1 2 0 8 0 ipq 40 24 0 24 13 13 0 1 0 8 0 ipqe 40 61 0 61 13 13 0 1 0 8 0 inpcb 280 13755 0 13748 85 84 1 13 0 8 0 rttmr 72 12 0 12 10 10 0 1 0 8 0 ip6q 72 1 0 1 1 1 0 1 0 8 0 nd6 48 102 0 98 1 0 1 1 0 8 0 pkpcb 40 94 0 94 31 31 0 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 293 0 293 50 49 1 1 0 8 1 art_heap8 4096 2 0 1 2 1 1 2 0 8 0 art_heap4 256 2642 0 2386 42 26 16 17 0 8 0 art_table 32 2644 0 2387 5 2 3 3 0 8 0 art_node 16 589 0 544 1 0 1 1 0 8 0 sysvmsgpl 40 13 0 11 2 1 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 2367 0 2357 1 0 1 1 0 8 0 shmpl 112 142 0 14 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 28069 0 26664 46 0 46 46 0 8 0 ffsino 240 28069 0 26664 83 0 83 83 0 8 0 nchpl 144 63456 0 61824 63 2 61 61 0 8 0 uvmvnodes 72 8437 0 0 154 0 154 154 0 8 0 vnodes 208 8437 0 0 445 0 445 445 0 8 0 namei 1024 210019 0 210019 11 10 1 1 0 8 1 vmpool 520 22 0 22 8 8 0 1 0 8 0 scsiplug 64 42 0 42 32 32 0 1 0 8 0 scxspl 192 164816 0 164816 42 41 1 7 0 8 1 plimitpl 152 1557 0 1550 1 0 1 1 0 8 0 sigapl 432 17434 0 17421 2 0 2 2 0 8 0 futexpl 56 401946 0 401946 10 9 1 1 0 8 1 knotepl 112 4533 0 4514 23 22 1 3 0 8 0 kqueuepl 104 4671 0 4669 1 0 1 1 0 8 0 pipepl 112 9390 0 9371 35 33 2 3 0 8 1 fdescpl 424 17435 0 17421 2 0 2 2 0 8 0 filepl 120 144552 0 144454 62 58 4 11 0 8 1 lockfpl 104 5719 0 5718 1 0 1 1 0 8 0 lockfspl 48 1918 0 1917 1 0 1 1 0 8 0 sessionpl 112 67 0 57 1 0 1 1 0 8 0 pgrppl 48 262 0 252 1 0 1 1 0 8 0 ucredpl 96 20636 0 20627 1 0 1 1 0 8 0 zombiepl 144 17430 0 17430 3 2 1 1 0 8 1 processpl 864 17459 0 17430 4 0 4 4 0 8 0 procpl 632 38322 0 38285 6 2 4 5 0 8 0 sosppl 128 193 0 193 47 46 1 1 0 8 1 sockpl 384 22226 0 22184 130 124 6 23 0 8 1 mcl64k 65536 3132 0 3132 254 229 25 33 0 8 25 mcl16k 16384 145 0 145 55 54 1 1 0 8 1 mcl12k 12288 382 0 382 40 39 1 1 0 8 1 mcl9k 9216 193 0 193 53 52 1 1 0 8 1 mcl8k 8192 469 0 469 37 36 1 1 0 8 1 mcl4k 4096 1498 0 1498 16 15 1 1 0 8 1 mcl2k2 2112 134 0 134 48 48 0 1 0 8 0 mcl2k 2048 85242 0 85197 24 17 7 15 0 8 0 mtagpl 80 963 0 959 10 9 1 3 0 8 0 mbufpl 256 237423 0 237287 145 131 14 30 0 8 2 bufpl 256 48088 0 39651 528 0 528 528 0 8 0 anonpl 16 1636654 0 1622958 442 372 70 79 0 62 5 amapchunkpl 152 75337 0 75207 144 133 11 19 0 158 4 amappl16 192 93122 0 92328 551 506 45 55 0 8 4 amappl15 184 2874 0 2872 9 8 1 1 0 8 0 amappl14 176 4133 0 4129 2 1 1 1 0 8 0 amappl13 168 702 0 702 6 6 0 1 0 8 0 amappl12 160 3229 0 3227 1 0 1 1 0 8 0 amappl11 152 3358 0 3347 1 0 1 1 0 8 0 amappl10 144 2028 0 2028 10 9 1 1 0 8 1 amappl9 136 2515 0 2508 1 0 1 1 0 8 0 amappl8 128 2121 0 2077 2 0 2 2 0 8 0 amappl7 120 2228 0 2220 1 0 1 1 0 8 0 amappl6 112 3209 0 3200 1 0 1 1 0 8 0 amappl5 104 3876 0 3865 1 0 1 1 0 8 0 amappl4 96 16162 0 16134 1 0 1 1 0 8 0 amappl3 88 4196 0 4191 1 0 1 1 0 8 0 amappl2 80 138400 0 138331 4 2 2 3 0 8 0 amappl1 72 312287 0 311878 29 20 9 20 0 8 0 amappl 80 39419 0 39376 2 0 2 2 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 143 0 14 3 0 3 3 0 8 0 uaddrrnd 24 17457 0 17421 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 17457 0 17421 1 0 1 1 0 8 0 vmmpekpl 168 107840 0 107812 2 0 2 2 0 8 0 vmmpepl 168 2031170 0 2029299 776 664 112 117 0 357 19 vmsppl 272 17434 0 17421 5 4 1 2 0 8 0 pdppl 4096 34920 0 34886 7 2 5 6 0 8 0 pvpl 32 4488788 0 4471929 1059 824 235 289 0 265 87 pmappl 200 17456 0 17443 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 1216 0 528 23 2 21 21 0 8 0