panic: kernel diagnostic assertion "cifp != NULL" failed: file "/syzkaller/managers/multicore/kernel/sys/net/route.c", line 951 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *283167 79081 0 0 0x4000000 1K syz-executor.1 94607 44312 0 0x14000 0x200 0 systqmp 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(ffffffff822084c3,ffffffff821d1149,3b7,ffffffff821e7217) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800022b66bd8,4,ffff800022b66ca8,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000abb100,840100,ffff800000abb158,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000acd800,ffff800000abb100,ffff800022b66f80,0) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000acd800,ffff800000abb100,ffff800022b66f80,0) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_sifaddr(8020690c,ffff800022b66f70,ffff800000acd800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800022b66f70,ffff800000acd800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd806f6c7600,8020690c,ffff800022b66f70,ffff800020ab1650) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ab1650,ffff800022b67088,ffff800022b670d0) at sys_ioctl+0x5b9 syscall(ffff800022b67150) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022b67150) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,486b7382010) at Xsyscall+0x128 end of kernel end trace frame: 0x48959166f80, 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic kernel diagnostic assertion "cifp != NULL" failed: file "/syzkaller/managers/multicore/kernel/sys/net/route.c", line 951 ddb{1}> 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(ffffffff822084c3,ffffffff821d1149,3b7,ffffffff821e7217) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800022b66bd8,4,ffff800022b66ca8,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000abb100,840100,ffff800000abb158,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000acd800,ffff800000abb100,ffff800022b66f80,0) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000acd800,ffff800000abb100,ffff800022b66f80,0) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_sifaddr(8020690c,ffff800022b66f70,ffff800000acd800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800022b66f70,ffff800000acd800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd806f6c7600,8020690c,ffff800022b66f70,ffff800020ab1650) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ab1650,ffff800022b67088,ffff800022b670d0) at sys_ioctl+0x5b9 syscall(ffff800022b67150) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022b67150) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,486b7382010) at Xsyscall+0x128 end of kernel end trace frame: 0x48959166f80, count: -12 ddb{1}> show registers rdi 0xffffffff82030057 db_enter+0x17 rsi 0x44a4 __ALIGN_SIZE+0x34a4 rbp 0xffff800022b669f0 rbx 0xffff800022b66aa0 rdx 0x44a5 __ALIGN_SIZE+0x34a5 rcx 0xffff800023ba2000 rax 0xffff800023ba2000 r8 0xffffffff81f4bdef kprintf+0x16f r9 0x1 r10 0x25 r11 0x1c7ff7b793fcc691 r12 0x3000000008 r13 0xffff800022b66a00 r14 0x100 r15 0x1 rip 0xffffffff82030058 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022b669e0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=283167 stat=onproc flags process=0 proc=4000000 pri=78, usrpri=78, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab0508,0xffff800020ab0028 process=0xffff800020adce00 user=0xffff800022b62000, vmspace=0xfffffd807f00a000 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 79081 136494 43750 0 2 0 syz-executor.1 *79081 283167 43750 0 7 0x4000000 syz-executor.1 79081 21370 43750 0 2 0x4000000 syz-executor.1 91953 450707 82575 0 3 0x80 nanosleep syz-executor.0 91953 386150 82575 0 3 0x4000080 fsleep syz-executor.0 91953 243849 82575 0 3 0x4000080 fsleep syz-executor.0 88675 165778 0 0 3 0x14200 acct acct 43750 492429 8482 0 3 0x82 nanosleep syz-executor.1 82575 349135 8482 0 3 0x82 nanosleep syz-executor.0 62114 118755 0 0 3 0x14200 bored sosplice 8482 372701 79346 0 3 0x82 thrsleep syz-fuzzer 8482 409781 79346 0 3 0x4000082 thrsleep syz-fuzzer 8482 350531 79346 0 3 0x4000082 thrsleep syz-fuzzer 8482 240864 79346 0 3 0x4000082 thrsleep syz-fuzzer 8482 297075 79346 0 3 0x4000082 thrsleep syz-fuzzer 8482 45931 79346 0 3 0x4000082 thrsleep syz-fuzzer 8482 493286 79346 0 3 0x4000082 thrsleep syz-fuzzer 8482 438414 79346 0 3 0x4000082 thrsleep syz-fuzzer 8482 392250 79346 0 3 0x4000082 kqread syz-fuzzer 8482 490243 79346 0 3 0x4000082 thrsleep syz-fuzzer 79346 220460 448 0 3 0x10008a pause ksh 448 48032 9890 0 3 0x92 select sshd 75139 425480 1 0 3 0x100083 ttyin getty 9890 319154 1 0 3 0x80 select sshd 30472 449328 63335 74 3 0x100092 bpf pflogd 63335 262531 1 0 3 0x80 netio pflogd 15012 345637 13707 73 3 0x100090 kqread syslogd 13707 389882 1 0 3 0x100082 netio syslogd 59576 257746 0 0 3 0x14200 pgzero zerothread 62596 337092 0 0 3 0x14200 aiodoned aiodoned 32298 300535 0 0 3 0x14200 syncer update 62419 494973 0 0 3 0x14200 cleaner cleaner 35557 500259 0 0 3 0x14200 reaper reaper 39894 468652 0 0 3 0x14200 pgdaemon pagedaemon 42567 410375 0 0 3 0x14200 bored crynlk 23151 125365 0 0 3 0x14200 bored crypto 11200 28730 0 0 3 0x40014200 acpi0 acpi0 45643 425860 0 0 3 0x40014200 idle1 192 389076 0 0 3 0x14200 bored softnet 44312 94607 0 0 7 0x14200 systqmp 93107 294996 0 0 3 0x14200 bored systq 63432 486225 0 0 3 0x40014200 bored softclock 28739 135669 0 0 3 0x40014200 idle0 45146 56749 0 0 3 0x14200 bored smr 1 470439 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 79081 (syz-executor.1) thread 0xffff800020ab1650 (283167) exclusive rwlock netlock r = 0 (0xffffffff8248fc78) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 in_ioctl_sifaddr+0x69 #2 in_ioctl+0x1e7 sys/netinet/in.c:231 #3 ifioctl+0xb64 sys/net/if.c:2202 #4 sys_ioctl+0x5b9 #5 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #5 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #6 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82649290) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 syscall+0x400 mi_syscall sys/sys/syscall_mi.h:83 [inline] #1 syscall+0x400 sys/arch/amd64/amd64/trap.c:555 #2 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9565 7003K 8295K 78643K 13950 0 0 pcb 13 10K 12K 78643K 597 0 0 rtable 101 4K 4K 78643K 681 0 0 ifaddr 78 16K 18K 78643K 345 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1560 0 0 iov 0 0K 16K 78643K 255 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1216 76K 77K 78643K 2402 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 12 6K 6K 78643K 16 0 0 sem 12 0K 0K 78643K 317 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 1352 0 0 sigio 0 0K 0K 78643K 28 0 0 proc 56 51K 83K 78643K 848 0 0 subproc 32 2K 2K 78643K 153 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 1K 78643K 158 0 0 in_multi 26 1K 2K 78643K 233 0 0 ether_multi 1 0K 0K 78643K 23 0 0 mrt 0 0K 0K 78643K 13 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 78 344K 344K 78643K 78 0 0 exec 0 0K 1K 78643K 395 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 132 104K 104K 78643K 5604 0 0 UVM aobj 90 5K 5K 78643K 96 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 2K 78643K 303 0 0 NDP 18 0K 0K 78643K 107 0 0 temp 215 3564K 4204K 78643K 40016 0 0 kqueue 0 0K 0K 78643K 19 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 50 0 44 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 108 0 108 4 3 1 1 0 8 1 rtentry 112 239 0 199 2 0 2 2 0 8 0 unpcb 120 1465 0 1456 4 2 2 2 0 8 1 syncache 264 9 0 9 5 5 0 1 0 8 0 tcpqe 32 37 0 37 3 3 0 1 0 8 0 tcpcb 544 700 0 694 13 11 2 11 0 8 1 inpcb 280 4191 0 4180 12 10 2 9 0 8 1 rttmr 72 3 0 3 3 2 1 1 0 8 1 ip6q 72 1 0 0 1 0 1 1 0 8 0 nd6 48 27 0 25 1 0 1 1 0 8 0 pkpcb 40 12 0 12 3 2 1 1 0 8 1 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 47 0 47 3 2 1 1 0 8 1 pffrag 232 26 0 26 6 5 1 1 0 482 1 pffrnode 88 26 0 26 6 5 1 1 0 8 1 pffrent 40 861 0 861 6 5 1 1 0 8 1 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 114 0 55 1 0 1 1 0 8 0 pfstkey 112 114 0 55 2 0 2 2 0 8 0 pfstate 328 114 0 54 5 0 5 5 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 914 0 711 18 3 15 15 0 8 1 art_table 32 915 0 711 2 0 2 2 0 8 0 art_node 16 234 0 196 1 0 1 1 0 8 0 sysvmsgpl 40 16 0 10 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 315 0 305 1 0 1 1 0 8 0 shmpl 112 94 0 6 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3404 0 1997 46 0 46 46 0 8 0 ffsino 272 3404 0 1997 95 0 95 95 0 8 0 nchpl 144 5619 0 5181 61 32 29 61 0 8 8 uvmvnodes 72 4330 0 0 79 0 79 79 0 8 0 vnodes 208 4330 0 0 228 0 228 228 0 8 0 namei 1024 18062 0 18062 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 10 0 0 2 0 2 2 0 8 0 vmpool 552 14 0 4 1 0 1 1 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 16791 0 16791 14 12 2 5 0 8 2 plimitpl 152 127 0 120 1 0 1 1 0 8 0 sigapl 432 1531 0 1517 3 1 2 3 0 8 0 futexpl 56 32973 0 32971 1 0 1 1 0 8 0 knotepl 112 356 0 337 1 0 1 1 0 8 0 kqueuepl 104 436 0 434 4 3 1 4 0 8 0 pipepl 112 1000 0 981 3 1 2 2 0 8 1 fdescpl 488 1532 0 1517 3 0 3 3 0 8 0 filepl 152 14192 0 14096 19 13 6 13 0 8 2 lockfpl 104 384 0 384 1 0 1 1 0 8 1 lockfspl 48 128 0 128 1 0 1 1 0 8 1 sessionpl 112 25 0 16 1 0 1 1 0 8 0 pgrppl 48 33 0 24 1 0 1 1 0 8 0 ucredpl 96 1444 0 1436 1 0 1 1 0 8 0 zombiepl 144 1518 0 1518 1 0 1 1 0 8 1 processpl 896 1550 0 1518 4 0 4 4 0 8 0 procpl 632 4463 0 4418 8 4 4 5 0 8 0 srpgc 64 10 0 10 5 5 0 1 0 8 0 sosppl 128 16 0 16 5 5 0 1 0 8 0 sockpl 384 5833 0 5813 27 22 5 13 0 8 3 mcl64k 65536 278 0 0 35 0 35 35 0 8 0 mcl16k 16384 10 0 0 2 0 2 2 0 8 0 mcl12k 12288 11 0 0 2 0 2 2 0 8 0 mcl9k 9216 7 0 0 1 0 1 1 0 8 0 mcl8k 8192 18 0 0 3 1 2 3 0 8 0 mcl4k 4096 15 0 0 2 0 2 2 0 8 0 mcl2k2 2112 7 0 0 1 0 1 1 0 8 0 mcl2k 2048 164 0 0 20 0 20 20 0 8 0 mtagpl 80 31 0 0 1 0 1 1 0 8 0 mbufpl 256 661 0 0 37 0 37 37 0 8 0 bufpl 256 11930 0 4882 441 0 441 441 0 8 0 anonpl 16 182507 0 163069 103 23 80 92 0 124 0 amapchunkpl 152 10984 0 10819 39 26 13 20 0 158 3 amappl16 192 7718 0 6626 82 27 55 64 0 8 0 amappl15 184 216 0 216 2 2 0 1 0 8 0 amappl14 176 497 0 490 1 0 1 1 0 8 0 amappl13 168 372 0 372 1 1 0 1 0 8 0 amappl12 160 96 0 94 1 0 1 1 0 8 0 amappl11 152 73 0 65 1 0 1 1 0 8 0 amappl10 144 107 0 100 1 0 1 1 0 8 0 amappl9 136 709 0 703 1 0 1 1 0 8 0 amappl8 128 272 0 242 2 0 2 2 0 8 0 amappl7 120 158 0 151 1 0 1 1 0 8 0 amappl6 112 85 0 73 1 0 1 1 0 8 0 amappl5 104 275 0 263 1 0 1 1 0 8 0 amappl4 96 1689 0 1660 2 1 1 2 0 8 0 amappl3 88 539 0 526 1 0 1 1 0 8 0 amappl2 80 11371 0 11297 3 1 2 3 0 8 0 amappl1 72 44404 0 43959 25 15 10 20 0 8 0 amappl 80 4856 0 4802 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 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 95 0 6 2 0 2 2 0 8 0 uaddrrnd 24 1546 0 1517 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1546 0 1517 1 0 1 1 0 8 0 vmmpekpl 168 15620 0 15584 2 0 2 2 0 8 0 vmmpepl 168 198443 0 196122 181 50 131 137 0 357 30 vmsppl 368 1531 0 1517 2 0 2 2 0 8 0 pdppl 4096 3099 0 3052 8 2 6 6 0 8 0 pvpl 32 516731 0 494584 236 53 183 219 0 265 3 pmappl 232 1545 0 1521 4 2 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 685 0 20 20 0 20 20 0 8 0