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 186193 61214 0 0 0 1 syz-executor.0 *100877 61214 0 0 0x4000000 0K 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(ffffffff8220626f,ffffffff821d18ec,3b7,ffffffff821e784e) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff8000237a4db8,4,ffff8000237a4e88,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000af7500,840100,ffff800000af7558,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000b96000,ffff800000af7500,ffff8000237a5190,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000b96000,ffff800000af7500,ffff8000237a5190,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff8000237a5180,ffff800000b96000,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff8000237a5180,ffff800000b96000,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd80766234c0,8040691a,ffff8000237a5180,ffff800020ab0018) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ab0018,ffff8000237a5298,ffff8000237a52e0) at sys_ioctl+0x5b9 syscall(ffff8000237a5360) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000237a5360) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,69751b94010) at Xsyscall+0x128 end of kernel end trace frame: 0x699565c5630, 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic kernel diagnostic assertion "cifp != NULL" failed: file "/syzkaller/managers/multicore/kernel/sys/net/route.c", line 951 ddb{0}> 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(ffffffff8220626f,ffffffff821d18ec,3b7,ffffffff821e784e) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff8000237a4db8,4,ffff8000237a4e88,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000af7500,840100,ffff800000af7558,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000b96000,ffff800000af7500,ffff8000237a5190,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000b96000,ffff800000af7500,ffff8000237a5190,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff8000237a5180,ffff800000b96000,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff8000237a5180,ffff800000b96000,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd80766234c0,8040691a,ffff8000237a5180,ffff800020ab0018) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ab0018,ffff8000237a5298,ffff8000237a52e0) at sys_ioctl+0x5b9 syscall(ffff8000237a5360) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000237a5360) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,69751b94010) at Xsyscall+0x128 end of kernel end trace frame: 0x699565c5630, count: -12 ddb{0}> show registers rdi 0xffffffff819807c7 db_enter+0x17 rsi 0x324c __ALIGN_SIZE+0x224c rbp 0xffff8000237a4bd0 rbx 0xffff8000237a4c80 rdx 0x324d __ALIGN_SIZE+0x224d rcx 0xffff800023db0000 rax 0xffff800023db0000 r8 0xffffffff81186cff kprintf+0x16f r9 0x1 r10 0x25 r11 0x65cc0c799887d3d5 r12 0x3000000008 r13 0xffff8000237a4be0 r14 0x100 r15 0x1 rip 0xffffffff819807c8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000237a4bc0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=100877 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab0290,0xffffffff826330d0 process=0xffff800020adc000 user=0xffff8000237a0000, vmspace=0xfffffd807f00bb80 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 61214 186193 92997 0 7 0 syz-executor.0 *61214 100877 92997 0 7 0x4000000 syz-executor.0 92997 504622 80312 0 3 0x82 nanosleep syz-executor.0 8330 136281 80312 0 3 0x82 nanosleep syz-executor.1 83584 485012 0 0 3 0x14200 acct acct 86027 180477 0 0 3 0x14200 bored sosplice 80312 59019 91060 0 3 0x82 thrsleep syz-fuzzer 80312 197635 91060 0 3 0x4000082 thrsleep syz-fuzzer 80312 748 91060 0 3 0x4000082 thrsleep syz-fuzzer 80312 321801 91060 0 3 0x4000082 thrsleep syz-fuzzer 80312 408401 91060 0 3 0x4000082 thrsleep syz-fuzzer 80312 152854 91060 0 3 0x4000082 kqread syz-fuzzer 80312 426794 91060 0 3 0x4000082 thrsleep syz-fuzzer 80312 206305 91060 0 3 0x4000082 thrsleep syz-fuzzer 80312 439207 91060 0 3 0x4000082 thrsleep syz-fuzzer 80312 377997 91060 0 3 0x4000082 thrsleep syz-fuzzer 91060 484374 98307 0 3 0x10008a pause ksh 98307 493687 67026 0 3 0x92 select sshd 45497 47709 1 0 3 0x100083 ttyin getty 67026 119279 1 0 3 0x80 select sshd 88469 109333 87540 74 3 0x100092 bpf pflogd 87540 143878 1 0 3 0x80 netio pflogd 51627 87044 35113 73 3 0x100090 kqread syslogd 35113 496687 1 0 3 0x100082 netio syslogd 37086 458754 1 77 3 0x100090 poll dhclient 50107 451699 1 0 3 0x80 poll dhclient 11588 484774 0 0 2 0x14200 zerothread 88617 318679 0 0 3 0x14200 aiodoned aiodoned 51891 383569 0 0 3 0x14200 syncer update 94386 303815 0 0 3 0x14200 cleaner cleaner 47516 305777 0 0 3 0x14200 reaper reaper 47566 411799 0 0 3 0x14200 pgdaemon pagedaemon 53726 45177 0 0 3 0x14200 bored crynlk 48259 230786 0 0 3 0x14200 bored crypto 18341 335406 0 0 3 0x40014200 acpi0 acpi0 3899 450631 0 0 3 0x40014200 idle1 86396 296787 0 0 3 0x14200 bored softnet 84677 169002 0 0 3 0x14200 bored systqmp 28685 412190 0 0 3 0x14200 bored systq 36418 342409 0 0 3 0x40014200 bored softclock 43021 205126 0 0 3 0x40014200 idle0 65462 407402 0 0 3 0x14200 bored smr 1 217673 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 61214 (syz-executor.0) thread 0xffff800020ab0018 (100877) exclusive rwlock netlock r = 0 (0xffffffff824b31d8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 in_ioctl_change_ifaddr+0x3f #2 in_ioctl+0x205 sys/netinet/in.c:234 #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 (0xffffffff82631ba8) #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{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9662 7153K 8305K 78643K 27951 0 0 pcb 14 12K 14K 78643K 1505 0 0 rtable 133 14K 14K 78643K 5189 0 0 ifaddr 116 28K 31K 78643K 1645 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1763 0 0 iov 0 0K 24K 78643K 1567 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1218 76K 77K 78643K 8828 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 83 0 0 VM map 2 1K 1K 78643K 67 0 0 sem 12 0K 0K 78643K 3035 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 7971 0 0 sigio 0 0K 0K 78643K 57 0 0 proc 62 63K 95K 78643K 3127 0 0 subproc 32 2K 2K 78643K 854 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 596 0 0 in_multi 39 2K 2K 78643K 958 0 0 ether_multi 1 0K 0K 78643K 91 0 0 mrt 2 0K 0K 78643K 64 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 144 636K 636K 78643K 144 0 0 exec 0 0K 1K 78643K 1533 0 0 pfkey data 0 0K 4K 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 146 24K 34K 78643K 30601 0 0 UVM aobj 130 4K 4K 78643K 141 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 1697 0 0 NDP 30 1K 1K 78643K 520 0 0 temp 284 3562K 4203K 78643K 233968 0 0 kqueue 0 0K 0K 78643K 58 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 143 0 136 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 843 0 841 1 0 1 1 0 8 0 rtentry 112 800 0 751 2 0 2 2 0 8 0 unpcb 120 3231 0 3216 5 4 1 2 0 8 0 syncache 264 56 0 56 23 22 1 1 0 8 1 sackhl 24 2 0 2 1 1 0 1 0 8 0 tcpqe 32 6064 0 6064 7 7 0 1 0 8 0 tcpcb 544 3389 0 3385 34 33 1 12 0 8 0 inpcb 280 9458 0 9447 68 66 2 13 0 8 0 rttmr 72 23 0 22 6 5 1 1 0 8 0 nd6 48 130 0 125 4 3 1 1 0 8 0 pkpcb 40 23 0 23 11 11 0 1 0 8 0 ppxss 1128 245 0 245 49 48 1 1 0 8 1 pffrag 232 123 0 123 50 49 1 1 0 482 1 pffrnode 88 123 0 123 50 49 1 1 0 8 1 pffrent 40 2286 0 2286 50 49 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 581 0 538 1 0 1 1 0 8 0 pfstkey 112 581 0 538 3 1 2 2 0 8 0 pfstate 328 581 0 538 7 3 4 4 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 21 0 20 13 12 1 3 0 8 0 art_heap4 256 3787 0 3491 59 40 19 19 0 8 0 art_table 32 3808 0 3511 10 7 3 3 0 8 0 art_node 16 794 0 750 1 0 1 1 0 8 0 sysvmsgpl 40 29 0 20 1 0 1 1 0 8 0 semupl 112 2 0 2 1 0 1 1 0 8 1 semapl 112 3029 0 3019 1 0 1 1 0 8 0 shmpl 112 139 0 11 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 14178 0 12766 46 0 46 46 0 8 0 ffsino 272 14178 0 12766 95 0 95 95 0 8 0 nchpl 144 29458 0 29004 61 41 20 61 0 8 0 uvmvnodes 72 5926 0 0 108 0 108 108 0 8 0 vnodes 208 5926 0 0 312 0 312 312 0 8 0 namei 1024 105398 0 105398 22 21 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 65 0 65 24 23 1 1 0 8 1 scsiplug 64 12 0 12 8 8 0 1 0 8 0 scxspl 192 95200 0 95200 111 110 1 7 0 8 1 plimitpl 152 613 0 605 1 0 1 1 0 8 0 sigapl 432 8027 0 8012 3 1 2 3 0 8 0 futexpl 56 164483 0 164483 8 7 1 1 0 8 1 knotepl 112 2111 0 2092 7 6 1 2 0 8 0 kqueuepl 104 2163 0 2161 9 8 1 4 0 8 0 pipepl 112 7812 0 7793 37 35 2 2 0 8 1 fdescpl 488 8028 0 8012 3 0 3 3 0 8 0 filepl 152 77401 0 77299 94 89 5 14 0 8 1 lockfpl 104 2523 0 2522 1 0 1 1 0 8 0 lockfspl 48 903 0 902 1 0 1 1 0 8 0 sessionpl 112 66 0 55 1 0 1 1 0 8 0 pgrppl 48 190 0 179 1 0 1 1 0 8 0 ucredpl 96 17302 0 17292 1 0 1 1 0 8 0 zombiepl 144 8013 0 8012 14 13 1 1 0 8 0 processpl 896 8046 0 8012 4 0 4 4 0 8 0 procpl 632 27349 0 27305 13 8 5 5 0 8 1 srpgc 64 76 0 76 34 33 1 1 0 8 1 sosppl 128 135 0 135 43 42 1 1 0 8 1 sockpl 384 13621 0 13595 127 123 4 22 0 8 0 mcl64k 65536 1066 0 0 56 22 34 34 0 8 0 mcl16k 16384 46 0 0 6 4 2 3 0 8 0 mcl12k 12288 73 0 0 2 0 2 2 0 8 0 mcl9k 9216 33 0 0 2 0 2 2 0 8 0 mcl8k 8192 59 0 0 7 4 3 3 0 8 0 mcl4k 4096 33 0 0 5 2 3 3 0 8 0 mcl2k2 2112 20 0 0 2 0 2 2 0 8 0 mcl2k 2048 255 0 0 17 9 8 17 0 8 0 mtagpl 80 130 0 0 2 1 1 2 0 8 0 mbufpl 256 1227 0 0 26 1 25 25 0 8 0 bufpl 256 30065 0 23017 441 0 441 441 0 8 0 anonpl 16 1098065 0 1084734 327 242 85 87 0 124 8 amapchunkpl 152 60369 0 60234 110 103 7 20 0 158 0 amappl16 192 51903 0 50953 508 451 57 61 0 8 8 amappl15 184 2422 0 2421 1 0 1 1 0 8 0 amappl14 176 1608 0 1602 2 1 1 1 0 8 0 amappl13 168 640 0 640 10 10 0 1 0 8 0 amappl12 160 606 0 600 1 0 1 1 0 8 0 amappl11 152 1095 0 1080 1 0 1 1 0 8 0 amappl10 144 576 0 569 1 0 1 1 0 8 0 amappl9 136 2137 0 2131 1 0 1 1 0 8 0 amappl8 128 1703 0 1640 6 3 3 3 0 8 0 amappl7 120 729 0 721 1 0 1 1 0 8 0 amappl6 112 1020 0 1004 1 0 1 1 0 8 0 amappl5 104 1148 0 1132 1 0 1 1 0 8 0 amappl4 96 8421 0 8390 1 0 1 1 0 8 0 amappl3 88 1103 0 1098 1 0 1 1 0 8 0 amappl2 80 62615 0 62540 4 2 2 3 0 8 0 amappl1 72 194276 0 193841 25 15 10 20 0 8 0 amappl 80 28484 0 28440 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 140 0 11 3 0 3 3 0 8 0 uaddrrnd 24 8093 0 8012 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 8093 0 8012 1 0 1 1 0 8 0 vmmpekpl 168 79044 0 79003 3 0 3 3 0 8 0 vmmpepl 168 1055173 0 1053036 747 614 133 138 0 357 29 vmsppl 368 8027 0 8012 2 0 2 2 0 8 0 pdppl 4096 16193 0 16154 10 4 6 6 0 8 1 pvpl 32 2748329 0 2731769 699 497 202 211 0 265 25 pmappl 232 8092 0 8077 27 25 2 2 0 8 1 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 800 0 155 19 0 19 19 0 8 0