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 *453785 40729 0 0 0x4000000 0K syz-executor.1 499971 40729 0 0 0x4000080 1 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(ffffffff822056a6,ffffffff821d31fd,3b7,ffffffff821e95ef) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800023b98d98,4,ffff800023b98e68,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000b23b00,840100,ffff800000b23b58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000b10000,ffff800000b23b00,ffff800023b99140,0) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000b10000,ffff800000b23b00,ffff800023b99140,0) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_sifaddr(8020690c,ffff800023b99130,ffff800000b10000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800023b99130,ffff800000b10000,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd806fbfcdc8,8020690c,ffff800023b99130,ffff800021b5f8d8) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800021b5f8d8,ffff800023b99248,ffff800023b99290) at sys_ioctl+0x5b9 syscall(ffff800023b99310) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023b99310) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,493b82ce010) at Xsyscall+0x128 end of kernel end trace frame: 0x496ae315190, 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(ffffffff822056a6,ffffffff821d31fd,3b7,ffffffff821e95ef) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800023b98d98,4,ffff800023b98e68,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000b23b00,840100,ffff800000b23b58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000b10000,ffff800000b23b00,ffff800023b99140,0) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000b10000,ffff800000b23b00,ffff800023b99140,0) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_sifaddr(8020690c,ffff800023b99130,ffff800000b10000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800023b99130,ffff800000b10000,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd806fbfcdc8,8020690c,ffff800023b99130,ffff800021b5f8d8) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800021b5f8d8,ffff800023b99248,ffff800023b99290) at sys_ioctl+0x5b9 syscall(ffff800023b99310) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023b99310) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,493b82ce010) at Xsyscall+0x128 end of kernel end trace frame: 0x496ae315190, count: -12 ddb{0}> show registers rdi 0xffffffff81ec7537 db_enter+0x17 rsi 0x4534 __ALIGN_SIZE+0x3534 rbp 0xffff800023b98bb0 rbx 0xffff800023b98c60 rdx 0x4535 __ALIGN_SIZE+0x3535 rcx 0xffff800023bb0000 rax 0xffff800023bb0000 r8 0xffffffff819b290f kprintf+0x16f r9 0x1 r10 0x25 r11 0x3dab71116993e34f r12 0x3000000008 r13 0xffff800023b98bc0 r14 0x100 r15 0x1 rip 0xffffffff81ec7538 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023b98ba0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=453785 stat=onproc flags process=0 proc=4000000 pri=81, usrpri=81, nice=20 forw=0xffffffffffffffff, list=0xffff800021b5f170,0xffff800021b5fb60 process=0xffff800020adca80 user=0xffff800023b94000, vmspace=0xfffffd807f00b450 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 40729 34661 4073 0 2 0 syz-executor.1 *40729 453785 4073 0 7 0x4000000 syz-executor.1 40729 49910 4073 0 2 0x4000000 syz-executor.1 40729 499971 4073 0 7 0x4000080 syz-executor.1 70349 164455 59162 0 2 0 syz-executor.0 70349 340783 59162 0 3 0x4000080 netio syz-executor.0 70349 219151 59162 0 3 0x4000080 fsleep syz-executor.0 59162 53734 15877 0 3 0x82 nanosleep syz-executor.0 70208 352137 1 0 3 0x100083 ttyin getty 4073 10013 15877 0 2 0x482 syz-executor.1 51989 480152 0 0 3 0x14200 acct acct 94139 366050 0 0 3 0x14200 bored sosplice 15877 263104 23051 0 3 0x82 thrsleep syz-fuzzer 15877 408976 23051 0 3 0x4000082 thrsleep syz-fuzzer 15877 312902 23051 0 3 0x4000082 thrsleep syz-fuzzer 15877 32287 23051 0 3 0x4000082 thrsleep syz-fuzzer 15877 264415 23051 0 3 0x4000082 thrsleep syz-fuzzer 15877 414020 23051 0 3 0x4000082 thrsleep syz-fuzzer 15877 483013 23051 0 3 0x4000082 thrsleep syz-fuzzer 15877 147140 23051 0 3 0x4000082 kqread syz-fuzzer 15877 308439 23051 0 3 0x4000082 thrsleep syz-fuzzer 15877 138088 23051 0 3 0x4000082 thrsleep syz-fuzzer 23051 30784 66758 0 3 0x10008a pause ksh 66758 18480 50275 0 3 0x92 select sshd 50275 277800 1 0 3 0x80 select sshd 63705 50762 60304 74 3 0x100092 bpf pflogd 60304 40785 1 0 3 0x80 netio pflogd 13093 462297 15718 73 3 0x100090 kqread syslogd 15718 10643 1 0 3 0x100082 netio syslogd 5160 223500 1 77 3 0x100090 poll dhclient 17066 346865 1 0 3 0x80 poll dhclient 15821 190488 0 0 2 0x14200 zerothread 13725 37429 0 0 3 0x14200 aiodoned aiodoned 71534 90217 0 0 3 0x14200 syncer update 39145 324535 0 0 3 0x14200 cleaner cleaner 47603 269055 0 0 3 0x14200 reaper reaper 72777 253561 0 0 3 0x14200 pgdaemon pagedaemon 44305 478598 0 0 3 0x14200 bored crynlk 59128 519566 0 0 3 0x14200 bored crypto 53765 61541 0 0 3 0x40014200 acpi0 acpi0 40487 27262 0 0 3 0x40014200 idle1 34514 112825 0 0 3 0x14200 bored softnet 34604 110494 0 0 2 0x14200 systqmp 98229 428129 0 0 3 0x14200 bored systq 153 113839 0 0 2 0x40014200 softclock 48114 485168 0 0 3 0x40014200 idle0 60086 441208 0 0 3 0x14200 bored smr 1 192280 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 40729 (syz-executor.1) thread 0xffff800021b5f8d8 (453785) exclusive rwlock netlock r = 0 (0xffffffff82488308) #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 (0xffffffff8265c400) #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 9676 7513K 8164K 78643K 35172 0 0 pcb 13 12K 14K 78643K 1964 0 0 rtable 136 14K 15K 78643K 6737 0 0 ifaddr 116 32K 40K 78643K 2206 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 2050 0 0 iov 0 0K 40K 78643K 2137 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1213 76K 77K 78643K 10811 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 155 0 0 VM map 2 1K 1K 78643K 66 0 0 sem 12 0K 1K 78643K 1818 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 11015 0 0 sigio 0 0K 0K 78643K 186 0 0 proc 62 63K 95K 78643K 3844 0 0 subproc 32 2K 2K 78643K 1002 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 850 0 0 in_multi 34 2K 2K 78643K 1255 0 0 ether_multi 1 0K 0K 78643K 92 0 0 mrt 4 0K 0K 78643K 92 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 114 503K 503K 78643K 114 0 0 exec 0 0K 1K 78643K 2048 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 140 23K 33K 78643K 39518 0 0 UVM aobj 130 9K 9K 78643K 151 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 2199 0 0 NDP 27 0K 1K 78643K 690 0 0 temp 278 3562K 4202K 78643K 204562 0 0 kqueue 0 0K 0K 78643K 76 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 189 0 182 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 701 0 699 1 0 1 1 0 8 0 rtentry 112 1100 0 1052 2 0 2 2 0 8 0 unpcb 120 13272 0 13252 46 44 2 3 0 8 1 syncache 264 44 0 44 20 20 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 6262 0 6262 6 6 0 2 0 8 0 tcpcb 544 6619 0 6614 139 138 1 14 0 8 0 inpcb 280 32627 0 32612 145 142 3 13 0 8 1 rttmr 72 29 0 28 3 2 1 1 0 8 0 ip6q 72 2 0 2 2 2 0 1 0 8 0 nd6 48 149 0 146 4 3 1 1 0 8 0 pkpcb 40 42 0 42 17 16 1 1 0 8 1 swfcl 56 7 0 0 1 0 1 1 0 8 0 ppxss 1128 342 0 342 23 23 0 1 0 8 0 pffrag 232 166 0 166 37 36 1 1 0 482 1 pffrnode 88 166 0 166 37 36 1 1 0 8 1 pffrent 40 2427 0 2427 37 36 1 1 0 8 1 pfosfp 40 846 0 846 5 5 0 5 0 8 0 pfosfpen 112 1428 0 1428 21 21 0 21 0 8 0 pfstitem 24 834 0 631 2 0 2 2 0 8 0 pfstkey 112 838 0 635 7 0 7 7 0 8 0 pfstate 328 838 0 634 18 0 18 18 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 15 0 14 12 11 1 3 0 8 0 art_heap4 256 4676 0 4378 58 38 20 21 0 8 0 art_table 32 4691 0 4392 3 0 3 3 0 8 0 art_node 16 1076 0 1031 1 0 1 1 0 8 0 semupl 112 2 0 2 2 2 0 1 0 8 0 semapl 112 1815 0 1805 1 0 1 1 0 8 0 shmpl 112 149 0 21 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 18195 0 16766 47 0 47 47 0 8 0 ffsino 272 18195 0 16766 96 0 96 96 0 8 0 nchpl 144 33851 0 33346 61 39 22 61 0 8 0 uvmvnodes 72 7031 0 0 128 0 128 128 0 8 0 vnodes 208 7031 0 0 371 0 371 371 0 8 0 namei 1024 115881 0 115881 3 2 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 64 0 64 24 24 0 1 0 8 0 scsiplug 64 11 0 11 7 7 0 1 0 8 0 scxspl 192 115093 0 115093 81 78 3 7 0 8 3 plimitpl 152 971 0 963 1 0 1 1 0 8 0 sigapl 432 11054 0 11038 5 3 2 3 0 8 0 futexpl 56 248946 0 248945 1 0 1 1 0 8 0 knotepl 112 2671 0 2652 5 4 1 3 0 8 0 kqueuepl 104 4591 0 4589 37 36 1 4 0 8 0 pipepl 112 6074 0 6055 23 22 1 2 0 8 0 fdescpl 488 11055 0 11038 3 0 3 3 0 8 0 filepl 152 105981 0 105866 164 158 6 14 0 8 1 lockfpl 104 4243 0 4242 1 0 1 1 0 8 0 lockfspl 48 1352 0 1351 1 0 1 1 0 8 0 sessionpl 112 81 0 70 1 0 1 1 0 8 0 pgrppl 48 184 0 173 1 0 1 1 0 8 0 ucredpl 96 12646 0 12637 1 0 1 1 0 8 0 zombiepl 144 11048 0 11048 3 2 1 1 0 8 1 processpl 896 11082 0 11048 6 2 4 5 0 8 0 procpl 632 35723 0 35675 6 1 5 5 0 8 0 srpgc 64 91 0 91 31 31 0 1 0 8 0 sosppl 128 176 0 176 35 34 1 1 0 8 1 sockpl 384 46713 0 46676 247 240 7 22 0 8 3 mcl64k 65536 43 0 0 3 0 3 3 0 8 0 mcl16k 16384 32 0 0 4 2 2 3 0 8 0 mcl12k 12288 41 0 0 2 0 2 2 0 8 0 mcl9k 9216 37 0 0 3 1 2 2 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 33 0 0 3 0 3 3 0 8 0 mcl2k2 2112 8 0 0 1 0 1 1 0 8 0 mcl2k 2048 261 0 0 30 8 22 30 0 8 0 mtagpl 80 132 0 0 2 0 2 2 0 8 0 mbufpl 256 1197 0 0 31 2 29 29 0 8 0 bufpl 256 45207 0 38060 447 0 447 447 0 8 0 anonpl 16 1279991 0 1262887 331 246 85 87 0 124 9 amapchunkpl 152 85648 0 85512 182 170 12 19 0 158 4 amappl16 192 58424 0 57460 367 306 61 61 0 8 11 amappl15 184 1711 0 1707 7 6 1 1 0 8 0 amappl14 176 3146 0 3144 2 1 1 1 0 8 0 amappl13 168 728 0 726 1 0 1 1 0 8 0 amappl12 160 712 0 710 1 0 1 1 0 8 0 amappl11 152 1439 0 1424 1 0 1 1 0 8 0 amappl10 144 1848 0 1842 1 0 1 1 0 8 0 amappl9 136 2755 0 2747 1 0 1 1 0 8 0 amappl8 128 2269 0 2219 2 0 2 2 0 8 0 amappl7 120 2108 0 2100 1 0 1 1 0 8 0 amappl6 112 1307 0 1293 1 0 1 1 0 8 0 amappl5 104 1289 0 1275 1 0 1 1 0 8 0 amappl4 96 10158 0 10119 2 1 1 2 0 8 0 amappl3 88 4513 0 4508 1 0 1 1 0 8 0 amappl2 80 85450 0 85369 4 2 2 3 0 8 0 amappl1 72 257878 0 257415 25 15 10 20 0 8 0 amappl 80 37096 0 37048 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 150 0 21 3 0 3 3 0 8 0 uaddrrnd 24 11119 0 11038 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 11119 0 11038 1 0 1 1 0 8 0 vmmpekpl 168 91320 0 91286 2 0 2 2 0 8 0 vmmpepl 168 1396613 0 1394357 574 448 126 147 0 357 22 vmsppl 368 11054 0 11038 2 0 2 2 0 8 0 pdppl 4096 22245 0 22204 7 1 6 6 0 8 0 pvpl 32 3276926 0 3256425 654 452 202 207 0 265 29 pmappl 232 11118 0 11102 21 20 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 845 0 205 20 1 19 19 0 8 0