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 *437193 62499 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(ffffffff821e2f48,ffffffff821b22e7,3b7,ffffffff821c2607) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff80001490fa98,4,ffff80001490fb68,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000a96800,840100,ffff800000a96858,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000a84800,ffff800000a96800,ffff80001490fe40,0) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000a84800,ffff800000a96800,ffff80001490fe40,0) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_sifaddr(8020690c,ffff80001490fe30,ffff800000a84800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff80001490fe30,ffff800000a84800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd8004c6f028,8020690c,ffff80001490fe30,ffff8000ffff38c8) at ifioctl+0xb34 sys/net/if.c:2202 sys_ioctl(ffff8000ffff38c8,ffff80001490ff48,ffff80001490ff90) at sys_ioctl+0x5b9 syscall(ffff800014910010) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,84dd5470010) at Xsyscall+0x128 end of kernel end trace frame: 0x85097d23700, 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(ffffffff821e2f48,ffffffff821b22e7,3b7,ffffffff821c2607) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff80001490fa98,4,ffff80001490fb68,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000a96800,840100,ffff800000a96858,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000a84800,ffff800000a96800,ffff80001490fe40,0) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000a84800,ffff800000a96800,ffff80001490fe40,0) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_sifaddr(8020690c,ffff80001490fe30,ffff800000a84800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff80001490fe30,ffff800000a84800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd8004c6f028,8020690c,ffff80001490fe30,ffff8000ffff38c8) at ifioctl+0xb34 sys/net/if.c:2202 sys_ioctl(ffff8000ffff38c8,ffff80001490ff48,ffff80001490ff90) at sys_ioctl+0x5b9 syscall(ffff800014910010) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,84dd5470010) at Xsyscall+0x128 end of kernel end trace frame: 0x85097d23700, count: -12 ddb> show registers rdi 0xffffffff81fa0397 db_enter+0x17 rsi 0x4184 __ALIGN_SIZE+0x3184 rbp 0xffff80001490f8b0 rbx 0xffff80001490f960 rdx 0x4185 __ALIGN_SIZE+0x3185 rcx 0xffff80001573f000 rax 0xffff80001573f000 r8 0xffff80001490f870 r9 0x1 r10 0xffff800000a677c0 r11 0x66fb26d01b32b5e2 r12 0x3000000008 r13 0xffff80001490f8c0 r14 0x100 r15 0x1 rip 0xffffffff81fa0398 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001490f8a0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=437193 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff2780,0xffffffff82571058 process=0xffff8000ffff70f0 user=0xffff80001490b000, vmspace=0xfffffd803f014bb0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 62499 9815 81964 0 2 0 syz-executor.1 *62499 437193 81964 0 7 0x4000000 syz-executor.1 49931 373010 1 0 3 0x100083 ttyin getty 81964 245662 41178 0 3 0x82 nanosleep syz-executor.1 78238 57041 41178 0 2 0x2 syz-executor.0 47540 131578 0 0 3 0x14200 bored sosplice 41178 228272 39672 0 3 0x82 thrsleep syz-fuzzer 41178 273542 39672 0 3 0x4000082 nanosleep syz-fuzzer 41178 335268 39672 0 3 0x4000082 kqread syz-fuzzer 41178 2127 39672 0 3 0x4000082 thrsleep syz-fuzzer 41178 417047 39672 0 3 0x4000082 thrsleep syz-fuzzer 41178 207229 39672 0 3 0x4000082 thrsleep syz-fuzzer 41178 319140 39672 0 3 0x4000082 thrsleep syz-fuzzer 41178 505818 39672 0 3 0x4000082 thrsleep syz-fuzzer 39672 215441 61543 0 3 0x10008a pause ksh 61543 397667 43420 0 3 0x92 select sshd 43420 33295 1 0 3 0x80 select sshd 39975 29035 75784 73 3 0x100090 kqread syslogd 75784 28676 1 0 3 0x100082 netio syslogd 99006 279964 1 77 3 0x100090 poll dhclient 82162 480619 1 0 3 0x80 poll dhclient 92394 217409 0 0 2 0x14200 zerothread 1558 91205 0 0 3 0x14200 aiodoned aiodoned 38266 297776 0 0 3 0x14200 syncer update 82259 124726 0 0 3 0x14200 cleaner cleaner 49473 120421 0 0 3 0x14200 reaper reaper 76237 152158 0 0 3 0x14200 pgdaemon pagedaemon 58739 194311 0 0 3 0x14200 bored crynlk 2592 397147 0 0 3 0x14200 bored crypto 99930 12355 0 0 3 0x40014200 acpi0 acpi0 36497 355206 0 0 3 0x14200 bored softnet 76394 434738 0 0 3 0x14200 bored systqmp 24935 214862 0 0 3 0x14200 bored systq 44909 383579 0 0 3 0x40014200 bored softclock 63011 18146 0 0 3 0x40014200 idle0 56055 96301 0 0 3 0x14200 bored smr 1 433014 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 9545 6354K 7804K 78643K 14248 0 0 pcb 13 10K 12K 78643K 252 0 0 rtable 101 8K 8K 78643K 838 0 0 ifaddr 74 14K 15K 78643K 220 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 56 0 0 iov 0 0K 28K 78643K 236 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1221 77K 77K 78643K 2424 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 19 0 0 VM map 2 0K 0K 78643K 6 0 0 sem 12 1K 1K 78643K 31 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 5 13K 25K 78643K 1156 0 0 sigio 0 0K 0K 78643K 9 0 0 proc 48 38K 62K 78643K 683 0 0 subproc 32 2K 2K 78643K 123 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 75 0 0 in_multi 19 1K 2K 78643K 163 0 0 ether_multi 1 0K 0K 78643K 9 0 0 mrt 0 0K 0K 78643K 7 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 54 238K 238K 78643K 54 0 0 exec 0 0K 1K 78643K 386 0 0 pfkey data 0 0K 0K 78643K 1 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 95 21K 30K 78643K 3694 0 0 UVM aobj 80 3K 3K 78643K 87 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 241 0 0 NDP 18 0K 0K 78643K 71 0 0 temp 211 3540K 4173K 78643K 62075 0 0 kqueue 0 0K 0K 78643K 7 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 29 0 26 1 0 1 1 0 8 0 rtpcb 80 127 0 125 1 0 1 1 0 8 0 rtentry 112 176 0 140 2 0 2 2 0 8 0 unpcb 120 453 0 445 2 1 1 2 0 8 0 syncache 264 6 0 6 2 2 0 1 0 8 0 tcpqe 32 5501 0 5501 1 1 0 1 0 8 0 tcpcb 544 1669 0 1661 9 7 2 3 0 8 1 inpcb 280 2619 0 2605 16 14 2 13 0 8 1 rttmr 72 2 0 2 1 1 0 1 0 8 0 nd6 48 21 0 20 1 0 1 1 0 8 0 pkpcb 40 8 0 8 2 2 0 1 0 8 0 ppxss 1128 21 0 21 4 4 0 1 0 8 0 art_heap8 4096 5 0 4 3 2 1 3 0 8 0 art_heap4 256 758 0 592 18 3 15 15 0 8 3 art_table 32 763 0 596 2 0 2 2 0 8 0 art_node 16 172 0 142 1 0 1 1 0 8 0 sysvmsgpl 40 32 0 26 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 25 0 15 1 0 1 1 0 8 0 shmpl 112 85 0 7 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3186 0 1787 46 0 46 46 0 8 0 ffsino 240 3186 0 1787 83 0 83 83 0 8 0 nchpl 144 5271 0 3666 61 0 61 61 0 8 0 uvmvnodes 72 4130 0 0 76 0 76 76 0 8 0 vnodes 208 4130 0 0 218 0 218 218 0 8 0 namei 1024 16805 0 16804 4 3 1 1 0 8 0 vmpool 520 4 0 4 2 2 0 1 0 8 0 scxspl 192 16919 0 16919 13 11 2 7 0 8 2 plimitpl 152 137 0 130 1 0 1 1 0 8 0 sigapl 432 1315 0 1302 2 0 2 2 0 8 0 futexpl 56 29710 0 29710 2 1 1 1 0 8 1 knotepl 112 334 0 315 2 1 1 2 0 8 0 kqueuepl 104 285 0 281 1 0 1 1 0 8 0 pipepl 112 936 0 917 5 4 1 2 0 8 0 fdescpl 424 1316 0 1302 2 0 2 2 0 8 0 filepl 120 10852 0 10746 13 9 4 11 0 8 0 lockfpl 104 380 0 379 1 0 1 1 0 8 0 lockfspl 48 135 0 134 1 0 1 1 0 8 0 sessionpl 112 25 0 15 1 0 1 1 0 8 0 pgrppl 48 41 0 31 1 0 1 1 0 8 0 ucredpl 96 1210 0 1203 1 0 1 1 0 8 0 zombiepl 144 1303 0 1303 3 2 1 1 0 8 1 processpl 864 1332 0 1303 4 0 4 4 0 8 0 procpl 632 2731 0 2694 4 0 4 4 0 8 0 sosppl 128 17 0 17 3 3 0 1 0 8 0 sockpl 384 3237 0 3213 25 22 3 21 0 8 0 mcl64k 65536 573 0 573 63 35 28 33 0 8 28 mcl16k 16384 10 0 10 6 5 1 1 0 8 1 mcl12k 12288 20 0 20 4 3 1 1 0 8 1 mcl9k 9216 24 0 24 5 4 1 1 0 8 1 mcl8k 8192 36 0 36 5 4 1 1 0 8 1 mcl4k 4096 105 0 105 3 2 1 1 0 8 1 mcl2k2 2112 14 0 14 5 4 1 1 0 8 1 mcl2k 2048 61420 0 61372 17 10 7 14 0 8 0 mtagpl 80 54 0 36 3 2 1 1 0 8 0 mbufpl 256 108091 0 107920 67 49 18 38 0 8 7 bufpl 256 13393 0 6466 435 1 434 435 0 8 0 anonpl 16 166166 0 150166 113 36 77 83 0 62 9 amapchunkpl 152 6214 0 6110 19 14 5 12 0 158 0 amappl16 192 8066 0 7146 97 45 52 59 0 8 5 amappl15 184 585 0 585 1 1 0 1 0 8 0 amappl14 176 67 0 64 2 1 1 1 0 8 0 amappl13 168 84 0 84 2 2 0 1 0 8 0 amappl12 160 8 0 5 1 0 1 1 0 8 0 amappl11 152 193 0 182 1 0 1 1 0 8 0 amappl10 144 132 0 131 1 0 1 1 0 8 0 amappl9 136 902 0 895 1 0 1 1 0 8 0 amappl8 128 468 0 441 1 0 1 1 0 8 0 amappl7 120 180 0 173 1 0 1 1 0 8 0 amappl6 112 215 0 204 1 0 1 1 0 8 0 amappl5 104 197 0 186 1 0 1 1 0 8 0 amappl4 96 1559 0 1531 1 0 1 1 0 8 0 amappl3 88 156 0 151 1 0 1 1 0 8 0 amappl2 80 9790 0 9723 4 2 2 3 0 8 0 amappl1 72 33385 0 32982 27 18 9 20 0 8 0 amappl 80 3045 0 3010 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 dma128 128 253 0 253 1 1 0 1 0 8 0 dma64 64 6 0 6 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 86 0 7 2 0 2 2 0 8 0 uaddrrnd 24 1320 0 1302 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1320 0 1302 1 0 1 1 0 8 0 vmmpekpl 168 11968 0 11939 2 0 2 2 0 8 0 vmmpepl 168 164695 0 162736 174 79 95 120 0 357 5 vmsppl 272 1315 0 1302 2 1 1 2 0 8 0 pdppl 4096 2646 0 2612 6 1 5 6 0 8 0 pvpl 32 484223 0 465149 321 87 234 288 0 265 78 pmappl 200 1319 0 1306 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 726 0 125 18 0 18 18 0 8 0