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 *443016 10974 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,ffff800018975958,4,ffff800018975a28,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000ab6800,840100,ffff800000ab6858,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000a77000,ffff800000ab6800,ffff800018975d00,0) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000a77000,ffff800000ab6800,ffff800018975d00,0) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_sifaddr(8020690c,ffff800018975cf0,ffff800000a77000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800018975cf0,ffff800000a77000,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd802beb0a80,8020690c,ffff800018975cf0,ffff8000ffff38c8) at ifioctl+0xb34 sys/net/if.c:2202 sys_ioctl(ffff8000ffff38c8,ffff800018975e08,ffff800018975e50) at sys_ioctl+0x5b9 syscall(ffff800018975ed0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,46127195010) at Xsyscall+0x128 end of kernel end trace frame: 0x463b1bd82e0, 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,ffff800018975958,4,ffff800018975a28,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000ab6800,840100,ffff800000ab6858,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000a77000,ffff800000ab6800,ffff800018975d00,0) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000a77000,ffff800000ab6800,ffff800018975d00,0) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_sifaddr(8020690c,ffff800018975cf0,ffff800000a77000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800018975cf0,ffff800000a77000,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd802beb0a80,8020690c,ffff800018975cf0,ffff8000ffff38c8) at ifioctl+0xb34 sys/net/if.c:2202 sys_ioctl(ffff8000ffff38c8,ffff800018975e08,ffff800018975e50) at sys_ioctl+0x5b9 syscall(ffff800018975ed0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,46127195010) at Xsyscall+0x128 end of kernel end trace frame: 0x463b1bd82e0, count: -12 ddb> show registers rdi 0xffffffff81c77727 db_enter+0x17 rsi 0x3fbc __ALIGN_SIZE+0x2fbc rbp 0xffff800018975770 rbx 0xffff800018975820 rdx 0x3fbd __ALIGN_SIZE+0x2fbd rcx 0xffff800014f09000 rax 0xffff800014f09000 r8 0xffff800018975730 r9 0x1 r10 0xffff800000ab4dc0 r11 0x7c40c3fdac56ae8c r12 0x3000000008 r13 0xffff800018975780 r14 0x100 r15 0x1 rip 0xffffffff81c77728 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800018975760 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=443016 stat=onproc flags process=0 proc=4000000 pri=51, usrpri=51, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff2508,0xffffffff82589310 process=0xffff8000ffff6010 user=0xffff800018970000, vmspace=0xfffffd803f014770 estcpu=1, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 10974 457959 37962 0 2 0 syz-executor.1 *10974 443016 37962 0 7 0x4000000 syz-executor.1 37962 433671 205 0 3 0x82 nanosleep syz-executor.1 83792 285150 205 0 3 0x82 piperd syz-executor.0 25005 21934 0 0 3 0x14200 acct acct 72616 108326 0 0 3 0x14200 bored sosplice 205 147333 31958 0 3 0x82 thrsleep syz-fuzzer 205 407906 31958 0 3 0x4000082 thrsleep syz-fuzzer 205 58396 31958 0 3 0x4000082 kqread syz-fuzzer 205 180022 31958 0 3 0x4000082 thrsleep syz-fuzzer 205 340492 31958 0 3 0x4000082 thrsleep syz-fuzzer 205 466756 31958 0 3 0x4000082 thrsleep syz-fuzzer 205 485208 31958 0 3 0x4000082 thrsleep syz-fuzzer 205 422561 31958 0 3 0x4000082 thrsleep syz-fuzzer 31958 329589 89101 0 3 0x10008a pause ksh 89101 117861 3068 0 3 0x92 select sshd 72063 485380 1 0 3 0x100083 ttyin getty 3068 295564 1 0 3 0x80 select sshd 19140 209069 40232 73 3 0x100090 kqread syslogd 40232 358103 1 0 3 0x100082 netio syslogd 5058 335188 1 77 3 0x100090 poll dhclient 96152 27991 1 0 3 0x80 poll dhclient 38475 383925 0 0 2 0x14200 zerothread 318 239437 0 0 3 0x14200 aiodoned aiodoned 41691 228171 0 0 3 0x14200 syncer update 49128 451867 0 0 3 0x14200 cleaner cleaner 55106 63191 0 0 3 0x14200 reaper reaper 56527 321928 0 0 3 0x14200 pgdaemon pagedaemon 14524 67343 0 0 3 0x14200 bored crynlk 91413 447496 0 0 3 0x14200 bored crypto 3899 329620 0 0 3 0x40014200 acpi0 acpi0 81709 165473 0 0 3 0x14200 bored softnet 66023 432342 0 0 2 0x14200 systqmp 73403 500314 0 0 3 0x14200 bored systq 60033 23114 0 0 3 0x40014200 bored softclock 88073 263386 0 0 3 0x40014200 idle0 38771 133481 0 0 3 0x14200 bored smr 1 456149 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 9587 6377K 7864K 78643K 19239 0 0 pcb 13 10K 12K 78643K 780 0 0 rtable 130 9K 9K 78643K 2295 0 0 ifaddr 95 21K 22K 78643K 644 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 189 0 0 iov 0 0K 32K 78643K 908 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1205 76K 77K 78643K 4448 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 36 0 0 VM map 2 0K 0K 78643K 10 0 0 sem 12 0K 1K 78643K 1156 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 5 13K 25K 78643K 3806 0 0 sigio 0 0K 0K 78643K 230 0 0 proc 50 38K 63K 78643K 1498 0 0 subproc 32 2K 2K 78643K 408 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 234 0 0 in_multi 35 2K 2K 78643K 442 0 0 ether_multi 1 0K 0K 78643K 36 0 0 mrt 0 0K 0K 78643K 20 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 84 371K 371K 78643K 84 0 0 exec 0 0K 1K 78643K 814 0 0 pfkey data 0 0K 0K 78643K 8 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 109 22K 40K 78643K 10200 0 0 UVM aobj 130 7K 7K 78643K 139 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 798 0 0 NDP 25 0K 1K 78643K 208 0 0 temp 247 3541K 4175K 78643K 106529 0 0 kqueue 0 0K 0K 78643K 24 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 73 0 68 1 0 1 1 0 8 0 rtpcb 80 302 0 300 1 0 1 1 0 8 0 rtentry 112 389 0 342 2 0 2 2 0 8 0 unpcb 120 2064 0 2056 1 0 1 1 0 8 0 syncache 264 18 0 18 7 7 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 7236 0 7236 4 4 0 1 0 8 0 tcpcb 544 2016 0 2008 18 17 1 11 0 8 0 ipq 40 30 0 30 9 9 0 1 0 8 0 ipqe 40 452 0 452 9 9 0 1 0 8 0 inpcb 280 8124 0 8111 25 23 2 9 0 8 1 rttmr 72 12 0 11 2 1 1 1 0 8 0 ip6q 72 1 0 1 1 1 0 1 0 8 0 ip6af 40 2 0 2 1 1 0 1 0 8 0 nd6 48 55 0 50 2 1 1 1 0 8 0 pkpcb 40 94 0 94 15 14 1 1 0 8 1 ppxss 1128 61 0 61 20 19 1 1 0 8 1 art_heap8 4096 5 0 4 5 4 1 3 0 8 0 art_heap4 256 1689 0 1424 34 16 18 18 0 8 1 art_table 32 1694 0 1428 3 0 3 3 0 8 0 art_node 16 381 0 339 1 0 1 1 0 8 0 sysvmsgpl 40 17 0 5 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 1154 0 1144 1 0 1 1 0 8 0 shmpl 112 137 0 9 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 6974 0 5579 46 0 46 46 0 8 0 ffsino 240 6974 0 5579 83 0 83 83 0 8 0 nchpl 144 12484 0 10881 60 0 60 60 0 8 0 uvmvnodes 72 7734 0 0 141 0 141 141 0 8 0 vnodes 208 7734 0 0 408 0 408 408 0 8 0 namei 1024 43284 0 43284 6 5 1 1 0 8 1 vmpool 520 8 0 8 4 3 1 1 0 8 1 scsiplug 64 2 0 2 2 2 0 1 0 8 0 scxspl 192 51422 0 51422 32 31 1 7 0 8 1 plimitpl 152 342 0 335 1 0 1 1 0 8 0 sigapl 432 3911 0 3898 2 0 2 2 0 8 0 futexpl 56 91710 0 91710 4 3 1 1 0 8 1 knotepl 112 1052 0 1033 3 2 1 3 0 8 0 kqueuepl 104 1010 0 1006 4 3 1 4 0 8 0 pipepl 112 2642 0 2623 15 14 1 2 0 8 0 fdescpl 424 3912 0 3898 2 0 2 2 0 8 0 filepl 120 32793 0 32689 21 17 4 11 0 8 0 lockfpl 104 1245 0 1244 1 0 1 1 0 8 0 lockfspl 48 412 0 411 1 0 1 1 0 8 0 sessionpl 112 39 0 29 1 0 1 1 0 8 0 pgrppl 48 59 0 49 1 0 1 1 0 8 0 ucredpl 96 3663 0 3656 1 0 1 1 0 8 0 zombiepl 144 3901 0 3901 3 2 1 1 0 8 1 processpl 864 3931 0 3901 4 0 4 4 0 8 0 procpl 632 8408 0 8370 4 0 4 4 0 8 0 sosppl 128 52 0 52 13 13 0 1 0 8 0 sockpl 384 10631 0 10608 42 37 5 14 0 8 2 mcl64k 65536 1026 0 1026 69 68 1 33 0 8 1 mcl16k 16384 30 0 30 13 13 0 1 0 8 0 mcl12k 12288 89 0 89 12 11 1 1 0 8 1 mcl9k 9216 78 0 78 20 19 1 1 0 8 1 mcl8k 8192 137 0 137 13 12 1 1 0 8 1 mcl4k 4096 329 0 329 7 6 1 1 0 8 1 mcl2k2 2112 29 0 29 13 12 1 1 0 8 1 mcl2k 2048 59944 0 59898 19 12 7 15 0 8 0 mtagpl 80 161 0 160 4 3 1 1 0 8 0 mbufpl 256 139258 0 139182 163 155 8 33 0 8 0 bufpl 256 24515 0 15922 538 0 538 538 0 8 0 anonpl 16 524950 0 512366 173 91 82 84 0 62 5 amapchunkpl 152 21496 0 21392 81 71 10 18 0 158 5 amappl16 192 25222 0 24192 217 157 60 64 0 8 8 amappl15 184 233 0 233 5 5 0 1 0 8 0 amappl14 176 1067 0 1063 2 1 1 1 0 8 0 amappl13 168 182 0 182 3 3 0 1 0 8 0 amappl12 160 453 0 448 1 0 1 1 0 8 0 amappl11 152 469 0 453 1 0 1 1 0 8 0 amappl10 144 741 0 741 5 5 0 1 0 8 0 amappl9 136 1490 0 1484 1 0 1 1 0 8 0 amappl8 128 1046 0 1005 2 0 2 2 0 8 0 amappl7 120 838 0 830 1 0 1 1 0 8 0 amappl6 112 426 0 415 1 0 1 1 0 8 0 amappl5 104 777 0 766 1 0 1 1 0 8 0 amappl4 96 4139 0 4115 1 0 1 1 0 8 0 amappl3 88 936 0 931 1 0 1 1 0 8 0 amappl2 80 29147 0 29079 4 2 2 3 0 8 0 amappl1 72 80617 0 80205 28 19 9 20 0 8 0 amappl 80 9013 0 8977 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 138 0 9 3 0 3 3 0 8 0 uaddrrnd 24 3920 0 3898 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3920 0 3898 1 0 1 1 0 8 0 vmmpekpl 168 28280 0 28249 2 0 2 2 0 8 0 vmmpepl 168 479252 0 477169 364 232 132 132 0 357 37 vmsppl 272 3911 0 3898 3 2 1 2 0 8 0 pdppl 4096 7846 0 7812 6 1 5 6 0 8 0 pvpl 32 1411927 0 1396202 451 257 194 300 0 265 19 pmappl 200 3919 0 3906 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 982 0 313 20 0 20 20 0 8 0