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 *337146 88230 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(ffffffff821e3ce6,ffffffff821b6d8a,3b7,ffffffff821c7028) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff80001492d258,4,ffff80001492d328,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000ac3000,840100,ffff800000ac3058,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000a8f000,ffff800000ac3000,ffff80001492d600,0) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000a8f000,ffff800000ac3000,ffff80001492d600,0) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_sifaddr(8020690c,ffff80001492d5f0,ffff800000a8f000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff80001492d5f0,ffff800000a8f000,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd8037020900,8020690c,ffff80001492d5f0,ffff800014915650) at ifioctl+0xb34 sys/net/if.c:2202 sys_ioctl(ffff800014915650,ffff80001492d708,ffff80001492d750) at sys_ioctl+0x5b9 syscall(ffff80001492d7d0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(0,0,ffffffffffffff36,0,3,dba27c72010) at Xsyscall+0x128 end of kernel end trace frame: 0xdbc528c8120, 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(ffffffff821e3ce6,ffffffff821b6d8a,3b7,ffffffff821c7028) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff80001492d258,4,ffff80001492d328,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000ac3000,840100,ffff800000ac3058,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000a8f000,ffff800000ac3000,ffff80001492d600,0) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000a8f000,ffff800000ac3000,ffff80001492d600,0) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_sifaddr(8020690c,ffff80001492d5f0,ffff800000a8f000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff80001492d5f0,ffff800000a8f000,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd8037020900,8020690c,ffff80001492d5f0,ffff800014915650) at ifioctl+0xb34 sys/net/if.c:2202 sys_ioctl(ffff800014915650,ffff80001492d708,ffff80001492d750) at sys_ioctl+0x5b9 syscall(ffff80001492d7d0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(0,0,ffffffffffffff36,0,3,dba27c72010) at Xsyscall+0x128 end of kernel end trace frame: 0xdbc528c8120, count: -12 ddb> show registers rdi 0xffffffff81c77727 db_enter+0x17 rsi 0x3f6e __ALIGN_SIZE+0x2f6e rbp 0xffff80001492d070 rbx 0xffff80001492d120 rdx 0x3f6f __ALIGN_SIZE+0x2f6f rcx 0xffff800017580000 rax 0xffff800017580000 r8 0xffff80001492d030 r9 0x1 r10 0xffff800000a65a80 r11 0x47fd5a38f934467f r12 0x3000000008 r13 0xffff80001492d080 r14 0x100 r15 0x1 rip 0xffffffff81c77728 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001492d060 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=337146 stat=onproc flags process=0 proc=4000000 pri=80, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff800014914508,0xffffffff82589310 process=0xffff8000ffff7b10 user=0xffff800014928000, vmspace=0xfffffd803f014110 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 88230 377052 79838 0 2 0 syz-executor.1 *88230 337146 79838 0 7 0x4000000 syz-executor.1 85135 436660 51736 0 2 0x2 syz-executor.0 79838 268459 51736 0 3 0x82 nanosleep syz-executor.1 90241 355897 0 0 3 0x14200 acct acct 90840 522436 0 0 3 0x14200 bored sosplice 51736 393969 66786 0 3 0x82 kqread syz-fuzzer 51736 477932 66786 0 3 0x4000082 thrsleep syz-fuzzer 51736 372896 66786 0 3 0x4000082 thrsleep syz-fuzzer 51736 90568 66786 0 3 0x4000082 thrsleep syz-fuzzer 51736 432782 66786 0 3 0x4000082 thrsleep syz-fuzzer 51736 377353 66786 0 3 0x4000082 thrsleep syz-fuzzer 51736 501072 66786 0 3 0x4000082 thrsleep syz-fuzzer 66786 9580 82466 0 3 0x10008a pause ksh 82466 218064 16477 0 3 0x92 select sshd 95039 329294 1 0 3 0x100083 ttyin getty 16477 125555 1 0 3 0x80 select sshd 10527 359580 62078 73 3 0x100090 kqread syslogd 62078 345665 1 0 3 0x100082 netio syslogd 3382 309401 1 77 3 0x100090 poll dhclient 22738 492562 1 0 3 0x80 poll dhclient 43227 215655 0 0 2 0x14200 zerothread 74167 61905 0 0 3 0x14200 aiodoned aiodoned 26883 180033 0 0 3 0x14200 syncer update 76844 502264 0 0 3 0x14200 cleaner cleaner 45287 62824 0 0 3 0x14200 reaper reaper 33124 324322 0 0 3 0x14200 pgdaemon pagedaemon 8378 335499 0 0 3 0x14200 bored crynlk 34018 149305 0 0 3 0x14200 bored crypto 98280 88059 0 0 3 0x40014200 acpi0 acpi0 46393 163493 0 0 3 0x14200 bored softnet 70036 194148 0 0 3 0x14200 bored systqmp 26063 75108 0 0 3 0x14200 bored systq 66032 505787 0 0 3 0x40014200 bored softclock 330 298292 0 0 3 0x40014200 idle0 615 359067 0 0 3 0x14200 bored smr 1 61089 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 9580 6617K 6836K 78643K 12237 0 0 pcb 13 10K 12K 78643K 1606 0 0 rtable 104 4K 4K 78643K 892 0 0 ifaddr 79 15K 16K 78643K 262 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 64 0 0 iov 0 0K 16K 78643K 255 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1221 77K 77K 78643K 1960 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 12 0 0 VM map 2 0K 0K 78643K 7 0 0 sem 11 1K 1K 78643K 11 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 5 13K 25K 78643K 1662 0 0 sigio 0 0K 0K 78643K 793 0 0 proc 48 38K 63K 78643K 727 0 0 subproc 32 2K 2K 78643K 170 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 57 0 0 in_multi 24 1K 2K 78643K 175 0 0 ether_multi 1 0K 0K 78643K 6 0 0 mrt 0 0K 0K 78643K 3 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 60 265K 265K 78643K 60 0 0 exec 0 0K 1K 78643K 369 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 89 20K 39K 78643K 4725 0 0 UVM aobj 31 2K 2K 78643K 43 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 1557 0 0 NDP 19 0K 0K 78643K 83 0 0 temp 219 3540K 3620K 78643K 54758 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 24 1 0 1 1 0 8 0 rtpcb 80 908 0 906 1 0 1 1 0 8 0 rtentry 112 165 0 126 2 0 2 2 0 8 0 unpcb 120 488 0 480 1 0 1 1 0 8 0 syncache 264 11 0 11 3 3 0 1 0 8 0 tcpqe 32 6131 0 6131 2 2 0 1 0 8 0 tcpcb 544 3729 0 3721 15 14 1 14 0 8 0 inpcb 280 5735 0 5721 10 8 2 9 0 8 1 nd6 48 25 0 23 1 0 1 1 0 8 0 pkpcb 40 5 0 5 2 2 0 1 0 8 0 ppxss 1128 22 0 22 5 5 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 714 0 530 16 3 13 15 0 8 1 art_table 32 715 0 530 2 0 2 2 0 8 0 art_node 16 160 0 126 1 0 1 1 0 8 0 semapl 112 9 0 0 1 0 1 1 0 8 0 shmpl 112 41 0 12 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3819 0 2425 46 0 46 46 0 8 0 ffsino 240 3819 0 2425 83 0 83 83 0 8 0 nchpl 144 7597 0 5996 60 0 60 60 0 8 0 uvmvnodes 72 4363 0 0 80 0 80 80 0 8 0 vnodes 208 4363 0 0 230 0 230 230 0 8 0 namei 1024 22285 0 22285 3 2 1 1 0 8 1 vmpool 520 5 0 5 3 3 0 1 0 8 0 scxspl 192 27643 0 27643 16 14 2 7 0 8 2 plimitpl 152 78 0 71 1 0 1 1 0 8 0 sigapl 432 1809 0 1796 2 0 2 2 0 8 0 futexpl 56 68121 0 68121 1 0 1 1 0 8 1 knotepl 112 1148 0 1129 4 2 2 2 0 8 1 kqueuepl 104 1191 0 1187 4 3 1 4 0 8 0 pipepl 112 658 0 639 4 3 1 2 0 8 0 fdescpl 424 1810 0 1796 2 0 2 2 0 8 0 filepl 120 18009 0 17903 13 8 5 10 0 8 1 lockfpl 104 362 0 361 1 0 1 1 0 8 0 lockfspl 48 120 0 119 1 0 1 1 0 8 0 sessionpl 112 25 0 15 1 0 1 1 0 8 0 pgrppl 48 31 0 21 1 0 1 1 0 8 0 ucredpl 96 5091 0 5084 1 0 1 1 0 8 0 zombiepl 144 1796 0 1796 3 2 1 1 0 8 1 processpl 864 1826 0 1796 4 0 4 4 0 8 0 procpl 632 3668 0 3631 5 0 5 5 0 8 1 sosppl 128 15 0 15 3 3 0 1 0 8 0 sockpl 384 7369 0 7345 18 15 3 14 0 8 0 mcl64k 65536 68 0 68 2 1 1 1 0 8 1 mcl16k 16384 9 0 9 5 5 0 1 0 8 0 mcl12k 12288 22 0 22 3 2 1 1 0 8 1 mcl9k 9216 19 0 19 6 5 1 1 0 8 1 mcl8k 8192 59 0 59 2 1 1 1 0 8 1 mcl4k 4096 897 0 897 2 1 1 1 0 8 1 mcl2k2 2112 12 0 12 6 5 1 1 0 8 1 mcl2k 2048 55188 0 55140 20 13 7 17 0 8 0 mtagpl 80 39 0 39 3 2 1 1 0 8 1 mbufpl 256 103347 0 103259 28 18 10 14 0 8 3 bufpl 256 11459 0 5352 382 0 382 382 0 8 0 anonpl 16 191508 0 176328 108 41 67 81 0 62 2 amapchunkpl 152 9033 0 8929 38 29 9 15 0 158 4 amappl16 192 8571 0 7662 78 24 54 58 0 8 8 amappl15 184 412 0 412 2 2 0 1 0 8 0 amappl14 176 315 0 308 2 1 1 1 0 8 0 amappl13 168 235 0 235 1 1 0 1 0 8 0 amappl12 160 37 0 32 1 0 1 1 0 8 0 amappl11 152 356 0 344 1 0 1 1 0 8 0 amappl10 144 387 0 386 4 3 1 1 0 8 0 amappl9 136 760 0 754 1 0 1 1 0 8 0 amappl8 128 293 0 266 1 0 1 1 0 8 0 amappl7 120 440 0 435 1 0 1 1 0 8 0 amappl6 112 363 0 355 1 0 1 1 0 8 0 amappl5 104 231 0 219 1 0 1 1 0 8 0 amappl4 96 2241 0 2216 1 0 1 1 0 8 0 amappl3 88 366 0 359 1 0 1 1 0 8 0 amappl2 80 13241 0 13175 4 2 2 3 0 8 0 amappl1 72 40814 0 40413 28 19 9 20 0 8 0 amappl 80 4017 0 3982 2 0 2 2 0 84 1 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 42 0 12 1 0 1 1 0 8 0 uaddrrnd 24 1815 0 1796 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1815 0 1796 1 0 1 1 0 8 0 vmmpekpl 168 14657 0 14632 2 0 2 2 0 8 0 vmmpepl 168 218680 0 216727 188 63 125 125 0 357 36 vmsppl 272 1809 0 1796 3 1 2 2 0 8 1 pdppl 4096 3636 0 3602 6 1 5 6 0 8 0 pvpl 32 944578 0 926223 292 85 207 258 0 265 47 pmappl 200 1814 0 1801 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 573 0 62 15 0 15 15 0 8 0