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 343135 91448 0 0 0 0 syz-executor.0 * 70571 55497 0 0 0x4000000 1K 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(ffffffff82206eb0,ffffffff821d1847,3b7,ffffffff821e7b89) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800023dc5098,4,ffff800023dc5168,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000a47100,840100,ffff800000a47158,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000afc800,ffff800000a47100,ffff800023dc5470,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000afc800,ffff800000a47100,ffff800023dc5470,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff800023dc5460,ffff800000afc800,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff800023dc5460,ffff800000afc800,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd806ca24910,8040691a,ffff800023dc5460,ffff800020b46788) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020b46788,ffff800023dc5578,ffff800023dc55c0) at sys_ioctl+0x5b9 syscall(ffff800023dc5640) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023dc5640) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,a91b6060010) at Xsyscall+0x128 end of kernel end trace frame: 0xa93fe2a0b30, 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(ffffffff82206eb0,ffffffff821d1847,3b7,ffffffff821e7b89) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800023dc5098,4,ffff800023dc5168,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000a47100,840100,ffff800000a47158,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000afc800,ffff800000a47100,ffff800023dc5470,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000afc800,ffff800000a47100,ffff800023dc5470,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff800023dc5460,ffff800000afc800,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff800023dc5460,ffff800000afc800,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd806ca24910,8040691a,ffff800023dc5460,ffff800020b46788) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020b46788,ffff800023dc5578,ffff800023dc55c0) at sys_ioctl+0x5b9 syscall(ffff800023dc5640) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023dc5640) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,a91b6060010) at Xsyscall+0x128 end of kernel end trace frame: 0xa93fe2a0b30, count: -12 ddb{1}> show registers rdi 0xffffffff8205b317 db_enter+0x17 rsi 0x358a __ALIGN_SIZE+0x258a rbp 0xffff800023dc4eb0 rbx 0xffff800023dc4f60 rdx 0x358b __ALIGN_SIZE+0x258b rcx 0xffff800021976000 rax 0xffff800021976000 r8 0xffffffff81e1baef kprintf+0x16f r9 0x1 r10 0x25 r11 0xa809edcd8cb6adf1 r12 0x3000000008 r13 0xffff800023dc4ec0 r14 0x100 r15 0x1 rip 0xffffffff8205b318 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023dc4ea0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=70571 stat=onproc flags process=0 proc=4000000 pri=79, usrpri=79, nice=20 forw=0xffffffffffffffff, list=0xffff800020b46ef0,0xffff800020b46c88 process=0xffff800020a8a710 user=0xffff800023dc0000, vmspace=0xfffffd807f00b730 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 91448 343135 63148 0 7 0 syz-executor.0 91448 466673 63148 0 3 0x4000080 wsevent_read syz-executor.0 55497 252609 84673 0 2 0 syz-executor.1 *55497 70571 84673 0 7 0x4000000 syz-executor.1 63148 133685 23227 0 3 0x82 nanosleep syz-executor.0 84673 177305 23227 0 3 0x82 nanosleep syz-executor.1 84479 479039 0 0 3 0x14200 acct acct 83366 323464 1 0 3 0x100083 ttyin getty 71690 337547 0 0 3 0x14200 bored sosplice 23227 309194 96515 0 3 0x82 thrsleep syz-fuzzer 23227 116714 96515 0 3 0x4000082 thrsleep syz-fuzzer 23227 18905 96515 0 3 0x4000082 thrsleep syz-fuzzer 23227 196993 96515 0 3 0x4000082 thrsleep syz-fuzzer 23227 433587 96515 0 3 0x4000082 thrsleep syz-fuzzer 23227 257903 96515 0 3 0x4000082 kqread syz-fuzzer 23227 86010 96515 0 3 0x4000082 thrsleep syz-fuzzer 23227 185491 96515 0 3 0x4000082 thrsleep syz-fuzzer 23227 375473 96515 0 3 0x4000082 thrsleep syz-fuzzer 23227 39942 96515 0 3 0x4000082 thrsleep syz-fuzzer 96515 222527 45895 0 3 0x10008a pause ksh 45895 343689 76782 0 3 0x92 select sshd 76782 302942 1 0 3 0x80 select sshd 84754 380110 93346 74 3 0x100092 bpf pflogd 93346 271594 1 0 3 0x80 netio pflogd 73035 63818 8490 73 3 0x100090 kqread syslogd 8490 294677 1 0 3 0x100082 netio syslogd 31558 95795 1 77 3 0x100090 poll dhclient 23312 475107 1 0 3 0x80 poll dhclient 85950 17860 0 0 2 0x14200 zerothread 20161 469432 0 0 3 0x14200 aiodoned aiodoned 9146 115952 0 0 3 0x14200 syncer update 34086 83185 0 0 3 0x14200 cleaner cleaner 41597 285660 0 0 3 0x14200 reaper reaper 91735 182402 0 0 3 0x14200 pgdaemon pagedaemon 25536 347468 0 0 3 0x14200 bored crynlk 5197 339052 0 0 3 0x14200 bored crypto 66460 206646 0 0 3 0x40014200 acpi0 acpi0 29786 456224 0 0 3 0x40014200 idle1 99033 271393 0 0 3 0x14200 bored softnet 94875 325434 0 0 3 0x14200 bored systqmp 21587 395032 0 0 3 0x14200 bored systq 70068 516700 0 0 3 0x40014200 bored softclock 82073 132569 0 0 3 0x40014200 idle0 60652 387234 0 0 3 0x14200 bored smr 1 250987 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 55497 (syz-executor.1) thread 0xffff800020b46788 (70571) exclusive rwlock netlock r = 0 (0xffffffff824b5838) #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 (0xffffffff82633948) #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 9563 6570K 6998K 78643K 12733 0 0 pcb 14 8K 8K 78643K 225 0 0 rtable 107 4K 5K 78643K 858 0 0 ifaddr 73 15K 16K 78643K 231 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1511 0 0 iov 0 0K 16K 78643K 176 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1220 77K 77K 78643K 2074 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 14 7K 7K 78643K 16 0 0 sem 12 1K 1K 78643K 162 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 998 0 0 sigio 0 0K 0K 78643K 19 0 0 proc 61 63K 95K 78643K 907 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 86 0 0 in_multi 26 1K 2K 78643K 195 0 0 ether_multi 1 0K 0K 78643K 13 0 0 mrt 0 0K 0K 78643K 6 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 54 238K 238K 78643K 54 0 0 exec 0 0K 1K 78643K 398 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 130 120K 120K 78643K 4539 0 0 UVM aobj 62 2K 2K 78643K 63 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 200 0 0 NDP 17 0K 0K 78643K 75 0 0 temp 200 3560K 3630K 78643K 22223 0 0 kqueue 0 0K 0K 78643K 9 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 31 0 24 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 81 0 79 1 0 1 1 0 8 0 rtentry 112 165 0 123 2 0 2 2 0 8 0 unpcb 120 469 0 458 1 0 1 1 0 8 0 syncache 264 10 0 10 2 2 0 1 0 8 0 tcpqe 32 17 0 17 2 2 0 1 0 8 0 tcpcb 544 391 0 387 2 1 1 2 0 8 0 inpcb 280 1185 0 1176 3 2 1 2 0 8 0 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 25 0 23 1 0 1 1 0 8 0 pkpcb 40 1 0 1 1 1 0 1 0 8 0 ppxss 1128 21 0 21 2 1 1 1 0 8 1 pffrag 232 21 0 21 4 4 0 1 0 482 0 pffrnode 88 21 0 21 4 4 0 1 0 8 0 pffrent 40 600 0 600 4 4 0 1 0 8 0 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 109 0 45 1 0 1 1 0 8 0 pfstkey 112 109 0 45 3 0 3 3 0 8 0 pfstate 328 109 0 45 7 0 7 7 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 753 0 555 19 4 15 15 0 8 1 art_table 32 754 0 555 2 0 2 2 0 8 0 art_node 16 163 0 124 1 0 1 1 0 8 0 sysvmsgpl 40 30 0 8 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 156 0 146 1 0 1 1 0 8 0 shmpl 112 61 0 1 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2959 0 1549 46 0 46 46 0 8 0 ffsino 272 2959 0 1549 96 1 95 95 0 8 0 nchpl 144 4895 0 3284 61 0 61 61 0 8 0 uvmvnodes 72 3617 0 0 66 0 66 66 0 8 0 vnodes 208 3617 0 0 191 0 191 191 0 8 0 namei 1024 15961 0 15961 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 12 0 0 2 0 2 2 0 8 0 vmpool 552 14 0 2 1 0 1 1 0 8 0 scxspl 192 19367 0 19367 12 9 3 7 0 8 3 plimitpl 152 83 0 75 1 0 1 1 0 8 0 sigapl 432 1175 0 1159 3 1 2 3 0 8 0 futexpl 56 20194 0 20194 1 0 1 1 0 8 1 knotepl 112 290 0 271 1 0 1 1 0 8 0 kqueuepl 104 196 0 194 1 0 1 1 0 8 0 pipepl 112 738 0 717 3 2 1 2 0 8 0 fdescpl 488 1176 0 1159 3 0 3 3 0 8 0 filepl 152 9503 0 9398 8 2 6 6 0 8 1 lockfpl 104 353 0 352 1 0 1 1 0 8 0 lockfspl 48 122 0 121 1 0 1 1 0 8 0 sessionpl 112 27 0 16 1 0 1 1 0 8 0 pgrppl 48 36 0 25 1 0 1 1 0 8 0 ucredpl 96 1288 0 1279 1 0 1 1 0 8 0 zombiepl 144 1159 0 1159 2 1 1 1 0 8 1 processpl 896 1193 0 1159 4 0 4 4 0 8 0 procpl 632 3345 0 3300 5 0 5 5 0 8 0 srpgc 64 8 0 8 3 2 1 1 0 8 1 sosppl 128 15 0 15 4 4 0 1 0 8 0 sockpl 384 1744 0 1722 4 0 4 4 0 8 1 mcl64k 65536 12 0 0 2 0 2 2 0 8 0 mcl16k 16384 9 0 0 2 0 2 2 0 8 0 mcl12k 12288 7 0 0 1 0 1 1 0 8 0 mcl9k 9216 4 0 0 1 0 1 1 0 8 0 mcl8k 8192 9 0 0 2 0 2 2 0 8 0 mcl4k 4096 12 0 0 2 0 2 2 0 8 0 mcl2k2 2112 6 0 0 1 0 1 1 0 8 0 mcl2k 2048 165 0 0 20 0 20 20 0 8 0 mtagpl 80 18 0 0 1 0 1 1 0 8 0 mbufpl 256 498 0 0 29 0 29 29 0 8 0 bufpl 256 64965 0 57917 441 0 441 441 0 8 0 anonpl 16 293976 0 279748 120 16 104 104 0 124 29 amapchunkpl 152 8279 0 8159 9 2 7 7 0 158 1 amappl16 192 14480 0 13439 146 82 64 77 0 8 11 amappl15 184 595 0 594 1 0 1 1 0 8 0 amappl14 176 254 0 252 2 1 1 1 0 8 0 amappl13 168 9 0 9 2 2 0 1 0 8 0 amappl12 160 22 0 20 1 0 1 1 0 8 0 amappl11 152 92 0 74 1 0 1 1 0 8 0 amappl10 144 61 0 56 1 0 1 1 0 8 0 amappl9 136 853 0 847 1 0 1 1 0 8 0 amappl8 128 410 0 380 2 0 2 2 0 8 0 amappl7 120 111 0 102 1 0 1 1 0 8 0 amappl6 112 107 0 95 1 0 1 1 0 8 0 amappl5 104 210 0 196 1 0 1 1 0 8 0 amappl4 96 1448 0 1416 1 0 1 1 0 8 0 amappl3 88 213 0 206 1 0 1 1 0 8 0 amappl2 80 8225 0 8148 4 2 2 3 0 8 0 amappl1 72 36731 0 36288 25 15 10 20 0 8 0 amappl 80 3756 0 3707 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 62 0 1 1 0 1 1 0 8 0 uaddrrnd 24 1190 0 1159 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1190 0 1159 1 0 1 1 0 8 0 vmmpekpl 168 13198 0 13159 2 0 2 2 0 8 0 vmmpepl 168 165885 0 163598 162 26 136 136 0 357 34 vmsppl 368 1175 0 1159 2 0 2 2 0 8 0 pdppl 4096 2387 0 2334 7 0 7 7 0 8 0 pvpl 32 573766 0 556261 263 20 243 243 0 265 67 pmappl 232 1189 0 1161 2 0 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 633 0 9 18 0 18 18 0 8 0