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 30787 49287 0 0 0 0 syz-executor.1 *286069 49287 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(ffffffff82207c2f,ffffffff821d042e,3b7,ffffffff821e63fb) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff8000235a4bc8,4,ffff8000235a4c98,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000baeb00,840100,ffff800000baeb58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000b9a800,ffff800000baeb00,ffff8000235a4fa0,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000b9a800,ffff800000baeb00,ffff8000235a4fa0,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff8000235a4f90,ffff800000b9a800,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff8000235a4f90,ffff800000b9a800,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd807b0371f8,8040691a,ffff8000235a4f90,ffff800020abe790) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020abe790,ffff8000235a50a8,ffff8000235a50f0) at sys_ioctl+0x5b9 syscall(ffff8000235a5170) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000235a5170) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,15709e3e010) at Xsyscall+0x128 end of kernel end trace frame: 0x159750772e0, 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(ffffffff82207c2f,ffffffff821d042e,3b7,ffffffff821e63fb) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff8000235a4bc8,4,ffff8000235a4c98,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000baeb00,840100,ffff800000baeb58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000b9a800,ffff800000baeb00,ffff8000235a4fa0,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000b9a800,ffff800000baeb00,ffff8000235a4fa0,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff8000235a4f90,ffff800000b9a800,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff8000235a4f90,ffff800000b9a800,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd807b0371f8,8040691a,ffff8000235a4f90,ffff800020abe790) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020abe790,ffff8000235a50a8,ffff8000235a50f0) at sys_ioctl+0x5b9 syscall(ffff8000235a5170) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000235a5170) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,15709e3e010) at Xsyscall+0x128 end of kernel end trace frame: 0x159750772e0, count: -12 ddb{1}> show registers rdi 0xffffffff815b53a7 db_enter+0x17 rsi 0x3f21 __ALIGN_SIZE+0x2f21 rbp 0xffff8000235a49e0 rbx 0xffff8000235a4a90 rdx 0x3f22 __ALIGN_SIZE+0x2f22 rcx 0xffff800020f76000 rax 0xffff800020f76000 r8 0xffffffff8154a38f kprintf+0x16f r9 0x1 r10 0x25 r11 0xfa60ec77671c88d3 r12 0x3000000008 r13 0xffff8000235a49f0 r14 0x100 r15 0x1 rip 0xffffffff815b53a8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000235a49d0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=286069 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020abf170,0xffffffff826308d8 process=0xffff800020adc000 user=0xffff8000235a0000, 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 49287 30787 45893 0 7 0 syz-executor.1 *49287 286069 45893 0 7 0x4000000 syz-executor.1 39392 33673 36903 0 3 0x2 biowait syz-executor.0 45893 153667 36903 0 3 0x82 nanosleep syz-executor.1 54779 267126 1 0 3 0x100083 ttyin getty 10594 2029 0 0 3 0x14200 bored sosplice 36903 310249 15325 0 3 0x82 nanosleep syz-fuzzer 36903 377869 15325 0 3 0x4000082 nanosleep syz-fuzzer 36903 400015 15325 0 3 0x4000082 thrsleep syz-fuzzer 36903 230174 15325 0 3 0x4000082 thrsleep syz-fuzzer 36903 305253 15325 0 3 0x4000082 thrsleep syz-fuzzer 36903 122327 15325 0 3 0x4000082 thrsleep syz-fuzzer 36903 23746 15325 0 3 0x4000082 thrsleep syz-fuzzer 36903 90416 15325 0 3 0x4000082 kqread syz-fuzzer 36903 187938 15325 0 3 0x4000082 thrsleep syz-fuzzer 36903 50726 15325 0 3 0x4000082 thrsleep syz-fuzzer 15325 291331 43264 0 3 0x10008a pause ksh 43264 481477 74852 0 3 0x92 select sshd 74852 285916 1 0 3 0x80 select sshd 48421 368606 7932 74 3 0x100092 bpf pflogd 7932 84583 1 0 3 0x80 netio pflogd 713 130647 73865 73 3 0x100090 kqread syslogd 73865 248548 1 0 3 0x100082 netio syslogd 45607 121247 1 77 3 0x100090 poll dhclient 94204 490934 1 0 3 0x80 poll dhclient 69218 277464 0 0 3 0x14200 pgzero zerothread 93593 143835 0 0 3 0x14200 aiodoned aiodoned 41505 502129 0 0 3 0x14200 syncer update 73817 230843 0 0 3 0x14200 cleaner cleaner 18284 370934 0 0 3 0x14200 reaper reaper 43446 170476 0 0 3 0x14200 pgdaemon pagedaemon 33513 9846 0 0 3 0x14200 bored crynlk 31619 3122 0 0 3 0x14200 bored crypto 10187 256133 0 0 3 0x40014200 acpi0 acpi0 68561 316682 0 0 3 0x40014200 idle1 39 168861 0 0 3 0x14200 bored softnet 44571 234906 0 0 3 0x14200 bored systqmp 49138 148551 0 0 3 0x14200 bored systq 24233 163008 0 0 3 0x40014200 bored softclock 11815 4931 0 0 3 0x40014200 idle0 17808 364434 0 0 3 0x14200 bored smr 1 109294 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 49287 (syz-executor.1) thread 0xffff800020abe790 (286069) exclusive rwlock netlock r = 0 (0xffffffff824663c8) #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 (0xffffffff82646680) #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 Process 39392 (syz-executor.0) thread 0xffff800020abf660 (33673) exclusive rrwlock inode r = 0 (0xfffffd806e237c58) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x447 sys/kern/kern_rwlock.c:306 #2 rrw_enter+0x4f sys/kern/kern_rwlock.c:435 #3 VOP_LOCK+0xf0 sys/kern/vfs_vops.c:615 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:574 #5 vget+0x1c3 sys/kern/vfs_subr.c:672 #6 ufs_ihashget+0x141 sys/ufs/ufs/ufs_ihash.c:119 #7 ffs_vget+0x74 sys/ufs/ffs/ffs_vfsops.c:1323 #8 ufs_lookup+0x14b4 sys/ufs/ufs/ufs_lookup.c:487 #9 VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:91 #10 vfs_lookup+0x7a6 sys/kern/vfs_lookup.c:568 #11 namei+0x63c sys/kern/vfs_lookup.c:249 #12 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1785 #13 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #13 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #14 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd807c57ed68) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x447 sys/kern/kern_rwlock.c:306 #2 rrw_enter+0x4f sys/kern/kern_rwlock.c:435 #3 VOP_LOCK+0xf0 sys/kern/vfs_vops.c:615 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:574 #5 vfs_lookup+0xe6 sys/kern/vfs_lookup.c:419 #6 namei+0x63c sys/kern/vfs_lookup.c:249 #7 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1785 #8 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #8 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #9 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9632 7112K 8373K 78643K 39895 0 0 pcb 14 12K 13K 78643K 2985 0 0 rtable 131 14K 14K 78643K 8045 0 0 ifaddr 115 33K 40K 78643K 2287 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 2413 0 0 iov 0 0K 32K 78643K 2543 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1212 76K 77K 78643K 12539 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 255 0 0 VM map 109 54K 54K 78643K 175 0 0 sem 12 0K 1K 78643K 5617 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 13822 0 0 sigio 0 0K 0K 78643K 196 0 0 proc 62 63K 95K 78643K 4772 0 0 subproc 32 2K 2K 78643K 1315 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 1404 0 0 in_multi 46 3K 3K 78643K 1707 0 0 ether_multi 1 0K 0K 78643K 169 0 0 mrt 0 0K 0K 78643K 103 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 108 477K 477K 78643K 108 0 0 exec 0 0K 1K 78643K 2596 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 288 1033K 1038K 78643K 51404 0 0 UVM aobj 130 6K 6K 78643K 152 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 3239 0 0 NDP 26 0K 1K 78643K 724 0 0 temp 266 3562K 4203K 78643K 251996 0 0 kqueue 0 0K 0K 78643K 137 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 270 0 264 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 943 0 941 1 0 1 1 0 8 0 rtentry 112 1410 0 1362 2 0 2 2 0 8 0 unpcb 120 6507 0 6477 19 17 2 2 0 8 0 syncache 264 75 0 75 31 31 0 1 0 8 0 sackhl 24 5 0 5 4 4 0 1 0 8 0 tcpqe 32 54 0 54 10 10 0 1 0 8 0 tcpcb 544 6033 0 6029 70 68 2 16 0 8 1 inpcb 280 39653 0 39642 84 82 2 10 0 8 1 rttmr 72 33 0 32 1 0 1 1 0 8 0 ip6q 72 6 0 6 4 4 0 1 0 8 0 ip6af 40 15 0 15 3 3 0 1 0 8 0 nd6 48 205 0 202 10 9 1 1 0 8 0 pkpcb 40 74 0 74 21 21 0 1 0 8 0 swfcl 56 5 0 0 1 0 1 1 0 8 0 ppxss 1128 322 0 322 36 35 1 1 0 8 1 pffrag 232 338 0 338 39 38 1 1 0 482 1 pffrnode 88 335 0 335 39 38 1 1 0 8 1 pffrent 40 7480 0 7480 39 38 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 1121 0 1059 1 0 1 1 0 8 0 pfstkey 112 1121 0 1059 5 2 3 3 0 8 0 pfstate 328 1121 0 1059 19 12 7 9 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 45 0 44 29 28 1 4 0 8 0 art_heap4 256 6041 0 5750 56 36 20 21 0 8 0 art_table 32 6086 0 5794 10 7 3 3 0 8 0 art_node 16 1408 0 1364 1 0 1 1 0 8 0 sysvmsgpl 40 54 0 32 1 0 1 1 0 8 0 semapl 112 5615 0 5605 1 0 1 1 0 8 0 shmpl 112 150 0 22 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 21703 0 20234 48 0 48 48 0 8 0 ffsino 272 21703 0 20234 101 2 99 99 0 8 0 nchpl 144 41646 0 40022 61 0 61 61 0 8 0 uvmvnodes 72 7123 0 0 130 0 130 130 0 8 0 vnodes 208 7123 0 0 375 0 375 375 0 8 0 namei 1024 143663 0 143663 5 4 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 108 0 1 14 0 14 14 0 8 0 vmpool 552 173 0 66 10 2 8 8 0 8 0 scsiplug 64 9 0 9 7 7 0 1 0 8 0 scxspl 192 137963 0 137962 86 85 1 7 0 8 0 plimitpl 152 1097 0 1089 1 0 1 1 0 8 0 sigapl 432 13802 0 13787 5 3 2 3 0 8 0 futexpl 56 305132 0 305132 4 3 1 1 0 8 1 knotepl 112 3214 0 3195 4 3 1 2 0 8 0 kqueuepl 104 3935 0 3933 16 15 1 4 0 8 0 pipepl 112 7100 0 7081 15 13 2 2 0 8 1 fdescpl 488 13803 0 13787 3 0 3 3 0 8 0 filepl 152 120562 0 120458 91 85 6 14 0 8 2 lockfpl 104 4366 0 4365 1 0 1 1 0 8 0 lockfspl 48 1483 0 1482 1 0 1 1 0 8 0 sessionpl 112 98 0 87 1 0 1 1 0 8 0 pgrppl 48 233 0 222 1 0 1 1 0 8 0 ucredpl 96 16692 0 16681 1 0 1 1 0 8 0 zombiepl 144 13796 0 13796 4 3 1 1 0 8 1 processpl 896 13828 0 13796 4 0 4 4 0 8 0 procpl 632 46495 0 46453 6 1 5 5 0 8 0 srpgc 64 107 0 107 35 35 0 1 0 8 0 sosppl 128 184 0 184 41 41 0 1 0 8 0 sockpl 384 47790 0 47747 122 116 6 16 0 8 1 mcl64k 65536 1162 0 0 134 91 43 65 0 8 0 mcl16k 16384 41 0 0 4 1 3 3 0 8 0 mcl12k 12288 58 0 0 2 0 2 2 0 8 0 mcl9k 9216 25 0 0 2 0 2 2 0 8 0 mcl8k 8192 33 0 0 5 2 3 3 0 8 0 mcl4k 4096 33 0 0 3 0 3 3 0 8 0 mcl2k2 2112 10 0 0 1 0 1 1 0 8 0 mcl2k 2048 200 0 0 19 9 10 19 0 8 0 mtagpl 80 111 0 0 1 0 1 1 0 8 0 mbufpl 256 1359 0 0 61 0 61 61 0 8 0 bufpl 256 47162 0 40038 446 0 446 446 0 8 0 anonpl 16 1655079 0 1638102 344 251 93 95 0 124 10 amapchunkpl 152 103324 0 103206 188 179 9 19 0 158 0 amappl16 192 77845 0 76703 487 420 67 70 0 8 8 amappl15 184 1742 0 1738 10 9 1 1 0 8 0 amappl14 176 3538 0 3537 1 0 1 1 0 8 0 amappl13 168 1212 0 1212 12 12 0 1 0 8 0 amappl12 160 1837 0 1834 2 1 1 1 0 8 0 amappl11 152 2295 0 2280 1 0 1 1 0 8 0 amappl10 144 1108 0 1103 1 0 1 1 0 8 0 amappl9 136 4104 0 4097 1 0 1 1 0 8 0 amappl8 128 3731 0 3671 5 2 3 3 0 8 0 amappl7 120 1423 0 1414 1 0 1 1 0 8 0 amappl6 112 2129 0 2112 1 0 1 1 0 8 0 amappl5 104 2605 0 2591 1 0 1 1 0 8 0 amappl4 96 12537 0 12499 1 0 1 1 0 8 0 amappl3 88 5570 0 5562 1 0 1 1 0 8 0 amappl2 80 106422 0 106346 3 1 2 3 0 8 0 amappl1 72 321016 0 320582 27 17 10 20 0 8 0 amappl 80 48262 0 48156 4 1 3 3 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 151 0 22 3 0 3 3 0 8 0 uaddrrnd 24 13976 0 13787 2 0 2 2 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 13976 0 13787 2 0 2 2 0 8 0 vmmpekpl 168 105634 0 105582 3 0 3 3 0 8 0 vmmpepl 168 1759794 0 1757314 697 547 150 152 0 357 32 vmsppl 368 13802 0 13787 2 0 2 2 0 8 0 pdppl 4096 27959 0 27813 29 10 19 19 0 8 0 pvpl 32 4113264 0 4094118 681 474 207 215 0 265 21 pmappl 232 13975 0 13853 11 3 8 8 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 971 0 254 22 1 21 21 0 8 0