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 *182819 50448 0 0 0x4000000 0 syz-executor.0 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(ffffffff821e4dfe,ffffffff821b6d84,3b7,ffffffff821c71ce) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800017915cc8,4,ffff800017915d98,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000b4c200,840100,ffff800000b4c258,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000b70800,ffff800000b4c200,ffff800017916070,0) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000b70800,ffff800000b4c200,ffff800017916070,0) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_sifaddr(8020690c,ffff800017916060,ffff800000b70800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800017916060,ffff800000b70800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd802b0a41d8,8020690c,ffff800017916060,ffff8000ffff2290) at ifioctl+0xb34 sys/net/if.c:2202 sys_ioctl(ffff8000ffff2290,ffff800017916178,ffff8000179161c0) at sys_ioctl+0x5b9 syscall(ffff800017916240) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,b3c4642e010) at Xsyscall+0x128 end of kernel end trace frame: 0xb3eb31046b0, 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(ffffffff821e4dfe,ffffffff821b6d84,3b7,ffffffff821c71ce) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800017915cc8,4,ffff800017915d98,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000b4c200,840100,ffff800000b4c258,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000b70800,ffff800000b4c200,ffff800017916070,0) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000b70800,ffff800000b4c200,ffff800017916070,0) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_sifaddr(8020690c,ffff800017916060,ffff800000b70800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800017916060,ffff800000b70800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd802b0a41d8,8020690c,ffff800017916060,ffff8000ffff2290) at ifioctl+0xb34 sys/net/if.c:2202 sys_ioctl(ffff8000ffff2290,ffff800017916178,ffff8000179161c0) at sys_ioctl+0x5b9 syscall(ffff800017916240) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,b3c4642e010) at Xsyscall+0x128 end of kernel end trace frame: 0xb3eb31046b0, count: -12 ddb> show registers rdi 0xffffffff81e953f7 db_enter+0x17 rsi 0x3f41 __ALIGN_SIZE+0x2f41 rbp 0xffff800017915ae0 rbx 0xffff800017915b90 rdx 0x3f42 __ALIGN_SIZE+0x2f42 rcx 0xffff80001490b000 rax 0xffff80001490b000 r8 0xffff800017915aa0 r9 0x1 r10 0xffff800000b6bac0 r11 0x2116f84af9cd33fe r12 0x3000000008 r13 0xffff800017915af0 r14 0x100 r15 0x1 rip 0xffffffff81e953f8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800017915ad0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=182819 stat=onproc flags process=0 proc=4000000 pri=82, usrpri=82, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff3160,0xffffffff82573c28 process=0xffff8000148a3b18 user=0xffff800017911000, vmspace=0xfffffd803f014220 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 50448 430974 99029 0 2 0 syz-executor.0 *50448 182819 99029 0 7 0x4000000 syz-executor.0 42730 248013 20163 0 3 0x82 nanosleep syz-executor.1 99029 323801 20163 0 3 0x82 nanosleep syz-executor.0 79675 133270 1 0 3 0x100083 ttyin getty 51251 314079 0 0 3 0x14200 bored sosplice 20163 34935 59853 0 3 0x82 thrsleep syz-fuzzer 20163 179761 59853 0 3 0x4000082 thrsleep syz-fuzzer 20163 457529 59853 0 3 0x4000082 thrsleep syz-fuzzer 20163 441939 59853 0 3 0x4000082 thrsleep syz-fuzzer 20163 461478 59853 0 3 0x4000082 thrsleep syz-fuzzer 20163 308556 59853 0 3 0x4000082 kqread syz-fuzzer 20163 80897 59853 0 3 0x4000082 thrsleep syz-fuzzer 20163 374504 59853 0 3 0x4000082 thrsleep syz-fuzzer 59853 197748 88185 0 3 0x10008a pause ksh 88185 399209 39184 0 3 0x92 select sshd 39184 152678 1 0 3 0x80 select sshd 210 37887 90962 73 3 0x100090 kqread syslogd 90962 79762 1 0 3 0x100082 netio syslogd 77486 100512 0 0 2 0x14200 zerothread 88214 370048 0 0 3 0x14200 aiodoned aiodoned 87068 344685 0 0 3 0x14200 syncer update 88084 389497 0 0 3 0x14200 cleaner cleaner 79734 66710 0 0 3 0x14200 reaper reaper 27800 457672 0 0 3 0x14200 pgdaemon pagedaemon 57790 326822 0 0 3 0x14200 bored crynlk 73513 270133 0 0 3 0x14200 bored crypto 26666 361343 0 0 3 0x40014200 acpi0 acpi0 11717 17555 0 0 3 0x14200 bored softnet 36430 255670 0 0 3 0x14200 bored systqmp 43367 54596 0 0 3 0x14200 bored systq 52467 165257 0 0 3 0x40014200 bored softclock 27099 483168 0 0 3 0x40014200 idle0 55985 174394 0 0 3 0x14200 bored smr 1 515449 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 7216K 15778K 78643K 37619 0 0 pcb 13 10K 12K 78643K 1168 0 0 rtable 93 7K 8K 78643K 1508 0 0 ifaddr 78 18K 21K 78643K 602 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 145 0 0 iov 0 0K 24K 78643K 641 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1364 86K 86K 78643K 8125 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 175 0 0 VM map 2 0K 0K 78643K 24 0 0 sem 12 0K 1K 78643K 450 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 5 13K 25K 78643K 2865 0 0 sigio 0 0K 0K 78643K 36 0 0 proc 45 30K 63K 78643K 1285 0 0 subproc 32 2K 2K 78643K 289 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 165 0 0 in_multi 14 0K 2K 78643K 302 0 0 ether_multi 1 0K 0K 78643K 20 0 0 mrt 1 0K 0K 78643K 21 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 126 556K 556K 78643K 126 0 0 exec 0 0K 1K 78643K 691 0 0 pfkey data 0 0K 0K 78643K 2 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 107 22K 39K 78643K 7908 0 0 UVM aobj 130 4K 4K 78643K 158 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 577 0 0 NDP 19 0K 1K 78643K 188 0 0 temp 219 3544K 4184K 78643K 71213 0 0 kqueue 0 0K 0K 78643K 14 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 72 0 66 1 0 1 1 0 8 0 rtpcb 80 237 0 237 6 5 1 1 0 8 1 rtentry 112 329 0 297 2 0 2 2 0 8 0 unpcb 120 1283 0 1273 1 0 1 1 0 8 0 syncache 264 12 0 12 6 6 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 5349 0 5349 2 2 0 1 0 8 0 tcpcb 544 1290 0 1285 27 26 1 14 0 8 0 ipq 40 24 0 24 6 5 1 1 0 8 1 ipqe 40 528 0 528 6 5 1 1 0 8 1 inpcb 280 3688 0 3681 25 23 2 9 0 8 1 rttmr 72 5 0 5 5 5 0 1 0 8 0 nd6 48 40 0 40 1 1 0 1 0 8 0 pkpcb 40 6 0 6 2 2 0 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 75 0 75 11 10 1 1 0 8 1 art_heap8 4096 6 0 5 3 2 1 3 0 8 0 art_heap4 256 1261 0 1115 18 4 14 15 0 8 0 art_table 32 1267 0 1120 2 0 2 2 0 8 0 art_node 16 319 0 291 1 0 1 1 0 8 0 sysvmsgpl 40 23 0 18 2 1 1 1 0 8 0 semapl 112 448 0 438 1 0 1 1 0 8 0 shmpl 112 156 0 28 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 5757 0 4362 46 0 46 46 0 8 0 ffsino 240 5757 0 4362 83 0 83 83 0 8 0 nchpl 144 11398 0 9798 61 0 61 61 0 8 0 uvmvnodes 72 7686 0 0 140 0 140 140 0 8 0 vnodes 208 7686 0 0 405 0 405 405 0 8 0 namei 1024 42754 0 42754 7 6 1 1 0 8 1 vmpool 520 22 0 22 10 10 0 1 0 8 0 scsiplug 64 3 0 3 1 1 0 1 0 8 0 scxspl 192 43494 0 43494 25 21 4 7 0 8 4 plimitpl 152 273 0 267 1 0 1 1 0 8 0 sigapl 432 2993 0 2982 2 0 2 2 0 8 0 futexpl 56 108194 0 108194 5 4 1 1 0 8 1 knotepl 112 1112 0 1093 1 0 1 1 0 8 0 kqueuepl 104 5460 0 5458 8 7 1 4 0 8 0 pipepl 112 1642 0 1623 6 5 1 2 0 8 0 fdescpl 424 2994 0 2982 2 0 2 2 0 8 0 filepl 120 35652 0 35565 43 38 5 11 0 8 2 lockfpl 104 904 0 904 4 3 1 1 0 8 1 lockfspl 48 317 0 317 4 3 1 1 0 8 1 sessionpl 112 34 0 26 1 0 1 1 0 8 0 pgrppl 48 52 0 44 1 0 1 1 0 8 0 ucredpl 96 2883 0 2877 1 0 1 1 0 8 0 zombiepl 144 2985 0 2984 3 2 1 1 0 8 0 processpl 864 3012 0 2984 4 0 4 4 0 8 0 procpl 632 6420 0 6384 4 0 4 4 0 8 0 sosppl 128 53 0 53 11 11 0 1 0 8 0 sockpl 384 5277 0 5260 31 27 4 14 0 8 0 mcl64k 65536 1123 0 1123 60 59 1 33 0 8 1 mcl16k 16384 59 0 59 12 11 1 1 0 8 1 mcl12k 12288 142 0 142 6 5 1 1 0 8 1 mcl9k 9216 45 0 45 11 10 1 1 0 8 1 mcl8k 8192 138 0 138 6 5 1 1 0 8 1 mcl4k 4096 278 0 278 6 5 1 1 0 8 1 mcl2k2 2112 35 0 35 12 12 0 1 0 8 0 mcl2k 2048 66470 0 66422 20 13 7 17 0 8 0 mtagpl 80 145 0 145 3 3 0 1 0 8 0 mbufpl 256 134361 0 134303 128 112 16 46 0 8 8 bufpl 256 18986 0 10348 540 0 540 540 0 8 0 anonpl 16 374242 0 357582 167 83 84 87 0 62 14 amapchunkpl 152 16494 0 16390 73 65 8 18 0 158 2 amappl16 192 17381 0 16417 181 124 57 61 0 8 8 amappl15 184 476 0 472 2 1 1 1 0 8 0 amappl14 176 766 0 761 2 1 1 1 0 8 0 amappl13 168 186 0 186 3 3 0 1 0 8 0 amappl12 160 640 0 638 1 0 1 1 0 8 0 amappl11 152 510 0 506 1 0 1 1 0 8 0 amappl10 144 74 0 69 1 0 1 1 0 8 0 amappl9 136 1176 0 1168 1 0 1 1 0 8 0 amappl8 128 756 0 720 2 0 2 2 0 8 0 amappl7 120 151 0 142 1 0 1 1 0 8 0 amappl6 112 523 0 512 1 0 1 1 0 8 0 amappl5 104 1048 0 1042 1 0 1 1 0 8 0 amappl4 96 2762 0 2735 1 0 1 1 0 8 0 amappl3 88 1513 0 1508 1 0 1 1 0 8 0 amappl2 80 22514 0 22452 4 2 2 3 0 8 0 amappl1 72 64065 0 63690 28 19 9 20 0 8 0 amappl 80 6911 0 6877 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 157 0 28 3 0 3 3 0 8 0 uaddrrnd 24 3016 0 2982 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3016 0 2982 1 0 1 1 0 8 0 vmmpekpl 168 21604 0 21582 2 0 2 2 0 8 0 vmmpepl 168 366908 0 364960 296 185 111 125 0 357 18 vmsppl 272 2993 0 2982 2 1 1 2 0 8 0 pdppl 4096 6038 0 6008 6 1 5 6 0 8 1 pvpl 32 1077563 0 1057788 478 226 252 309 0 265 85 pmappl 200 3015 0 3004 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 923 0 247 22 2 20 20 0 8 0