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 *470713 37974 0 0 0x4000000 0 syz-executor.0 521319 73371 0 0x14000 0x200 1 softnet 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(ffffffff8220600f,ffffffff821d38cf,3b7,ffffffff821e9cd7) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800023d54b38,4,ffff800023d54c08,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000ae0400,840100,ffff800000ae0458,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000ab6800,ffff800000ae0400,ffff800023d54ee0,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000ab6800,ffff800000ae0400,ffff800023d54ee0,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_sifaddr(8020690c,ffff800023d54ed0,ffff800000ab6800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800023d54ed0,ffff800000ab6800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd806232eab0,8020690c,ffff800023d54ed0,ffff800020abf3d8) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020abf3d8,ffff800023d54fe8,ffff800023d55030) at sys_ioctl+0x5b9 syscall(ffff800023d550b0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023d550b0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,e84f8baa010) at Xsyscall+0x128 end of kernel end trace frame: 0xe87f719c4e0, 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(ffffffff8220600f,ffffffff821d38cf,3b7,ffffffff821e9cd7) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800023d54b38,4,ffff800023d54c08,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000ae0400,840100,ffff800000ae0458,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000ab6800,ffff800000ae0400,ffff800023d54ee0,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000ab6800,ffff800000ae0400,ffff800023d54ee0,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_sifaddr(8020690c,ffff800023d54ed0,ffff800000ab6800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800023d54ed0,ffff800000ab6800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd806232eab0,8020690c,ffff800023d54ed0,ffff800020abf3d8) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020abf3d8,ffff800023d54fe8,ffff800023d55030) at sys_ioctl+0x5b9 syscall(ffff800023d550b0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023d550b0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,e84f8baa010) at Xsyscall+0x128 end of kernel end trace frame: 0xe87f719c4e0, count: -12 ddb{0}> show registers rdi 0xffffffff81c88787 db_enter+0x17 rsi 0x3406 __ALIGN_SIZE+0x2406 rbp 0xffff800023d54950 rbx 0xffff800023d54a00 rdx 0x3407 __ALIGN_SIZE+0x2407 rcx 0xffff800020b4a000 rax 0xffff800020b4a000 r8 0xffffffff8215dd5f kprintf+0x16f r9 0x1 r10 0x25 r11 0x5aee6ade2f6f6633 r12 0x3000000008 r13 0xffff800023d54960 r14 0x100 r15 0x1 rip 0xffffffff81c88788 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023d54940 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=470713 stat=onproc flags process=0 proc=4000000 pri=82, usrpri=82, nice=20 forw=0xffffffffffffffff, list=0xffff800020abe780,0xffff800020abf8d8 process=0xffff800020adce00 user=0xffff800023d50000, vmspace=0xfffffd807f00b450 estcpu=32, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 43491 243046 60439 0 2 0 syz-executor.1 43491 60459 60439 0 2 0x4000000 syz-executor.1 37974 184657 20170 0 2 0 syz-executor.0 *37974 470713 20170 0 7 0x4000000 syz-executor.0 60439 333093 41426 0 2 0x482 syz-executor.1 71631 108916 1 0 3 0x100083 ttyin getty 20170 297666 41426 0 2 0x482 syz-executor.0 75102 293245 0 0 3 0x14200 bored sosplice 41426 108381 40031 0 3 0x82 thrsleep syz-fuzzer 41426 404675 40031 0 2 0x4000482 syz-fuzzer 41426 15773 40031 0 3 0x4000082 thrsleep syz-fuzzer 41426 513368 40031 0 3 0x4000082 thrsleep syz-fuzzer 41426 271079 40031 0 3 0x4000082 thrsleep syz-fuzzer 41426 139011 40031 0 3 0x4000082 thrsleep syz-fuzzer 41426 451712 40031 0 3 0x4000082 thrsleep syz-fuzzer 41426 474899 40031 0 3 0x4000082 kqread syz-fuzzer 41426 137125 40031 0 2 0x4000482 syz-fuzzer 41426 247311 40031 0 3 0x4000082 thrsleep syz-fuzzer 40031 142353 13615 0 3 0x10008a pause ksh 13615 309440 48006 0 3 0x92 select sshd 48006 416589 1 0 3 0x80 select sshd 58401 92111 5813 74 2 0x100492 pflogd 5813 175346 1 0 3 0x80 netio pflogd 40172 291436 65787 73 3 0x100090 kqread syslogd 65787 514281 1 0 3 0x100082 netio syslogd 65704 452502 1 77 3 0x100090 poll dhclient 95212 199641 1 0 3 0x80 poll dhclient 94668 518246 0 0 2 0x14200 zerothread 42467 148874 0 0 3 0x14200 aiodoned aiodoned 34257 282842 0 0 3 0x14200 syncer update 98869 308439 0 0 3 0x14200 cleaner cleaner 76047 270176 0 0 3 0x14200 reaper reaper 60048 176545 0 0 3 0x14200 pgdaemon pagedaemon 97262 4971 0 0 3 0x14200 bored crynlk 79365 416448 0 0 3 0x14200 bored crypto 10635 138851 0 0 3 0x40014200 acpi0 acpi0 60091 98505 0 0 3 0x40014200 idle1 73371 521319 0 0 7 0x14200 softnet 84887 91392 0 0 2 0x14200 systqmp 4970 117329 0 0 3 0x14200 bored systq 81896 155347 0 0 2 0x40014200 softclock 43848 16418 0 0 3 0x40014200 idle0 86419 254402 0 0 3 0x14200 bored smr 1 112526 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 37974 (syz-executor.0) thread 0xffff800020abf3d8 (470713) exclusive rwlock netlock r = 0 (0xffffffff824a2a68) #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 (0xffffffff8262ba70) #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 9574 7078K 15263K 78643K 15419 0 0 pcb 13 8K 8K 78643K 511 0 0 rtable 113 13K 13K 78643K 1478 0 0 ifaddr 86 18K 19K 78643K 464 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1569 0 0 iov 0 0K 24K 78643K 486 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1242 78K 79K 78643K 2944 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 38 0 0 VM map 20 10K 10K 78643K 47 0 0 sem 12 0K 1K 78643K 474 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 2237 0 0 sigio 0 0K 0K 78643K 15 0 0 proc 61 63K 95K 78643K 1032 0 0 subproc 32 2K 2K 78643K 181 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 148 0 0 in_multi 29 1K 2K 78643K 254 0 0 ether_multi 1 0K 0K 78643K 23 0 0 mrt 0 0K 0K 78643K 18 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 66 291K 291K 78643K 66 0 0 exec 0 0K 1K 78643K 547 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 184K 189K 78643K 8560 0 0 UVM aobj 121 7K 7K 78643K 128 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 535 0 0 NDP 19 0K 1K 78643K 138 0 0 temp 222 3560K 4199K 78643K 40173 0 0 kqueue 0 0K 0K 78643K 31 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 49 0 43 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 166 0 164 1 0 1 1 0 8 0 rtentry 112 253 0 211 2 0 2 2 0 8 0 unpcb 120 986 0 975 1 0 1 1 0 8 0 syncache 264 17 0 17 7 7 0 1 0 8 0 tcpqe 32 6174 0 6174 3 3 0 1 0 8 0 tcpcb 544 844 0 839 1 0 1 1 0 8 0 inpcb 280 2572 0 2562 8 7 1 2 0 8 0 rttmr 72 5 0 5 3 3 0 1 0 8 0 nd6 48 32 0 29 2 1 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 ppxss 1128 61 0 61 6 5 1 1 0 8 1 pffrag 232 39 0 39 9 9 0 1 0 482 0 pffrnode 88 39 0 39 9 9 0 1 0 8 0 pffrent 40 1072 0 1072 9 9 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 180 0 127 1 0 1 1 0 8 0 pfstkey 112 180 0 127 3 0 3 3 0 8 0 pfstate 328 180 0 127 7 0 7 7 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 7 0 6 4 3 1 3 0 8 0 art_heap4 256 1112 0 902 22 8 14 15 0 8 0 art_table 32 1119 0 908 2 0 2 2 0 8 0 art_node 16 249 0 211 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 2 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 472 0 462 1 0 1 1 0 8 0 shmpl 112 126 0 7 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 4829 0 3420 46 0 46 46 0 8 0 ffsino 272 4829 0 3420 95 0 95 95 0 8 0 nchpl 144 9538 0 9080 61 30 31 61 0 8 8 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 31338 0 31338 4 3 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 18 0 0 3 0 3 3 0 8 0 vmpool 552 45 0 27 2 0 2 2 0 8 0 scxspl 192 27422 0 27422 27 24 3 7 0 8 3 plimitpl 152 230 0 222 1 0 1 1 0 8 0 sigapl 432 2415 0 2399 4 2 2 3 0 8 0 futexpl 56 44390 0 44390 2 1 1 1 0 8 1 knotepl 112 515 0 496 3 2 1 3 0 8 0 kqueuepl 104 487 0 485 1 0 1 1 0 8 0 pipepl 112 1298 0 1279 8 7 1 2 0 8 0 fdescpl 488 2416 0 2399 3 0 3 3 0 8 0 filepl 152 20068 0 19965 10 4 6 6 0 8 2 lockfpl 104 743 0 742 1 0 1 1 0 8 0 lockfspl 48 258 0 257 1 0 1 1 0 8 0 sessionpl 112 28 0 17 1 0 1 1 0 8 0 pgrppl 48 52 0 41 1 0 1 1 0 8 0 ucredpl 96 2216 0 2207 1 0 1 1 0 8 0 zombiepl 144 2401 0 2401 4 3 1 1 0 8 1 processpl 896 2434 0 2401 4 0 4 4 0 8 0 procpl 632 7272 0 7228 8 3 5 5 0 8 1 srpgc 64 10 0 10 4 4 0 1 0 8 0 sosppl 128 25 0 25 4 3 1 1 0 8 1 sockpl 384 3758 0 3735 11 8 3 4 0 8 0 mcl64k 65536 522 0 0 66 4 62 66 0 8 1 mcl16k 16384 8 0 0 1 0 1 1 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 5 0 0 1 0 1 1 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 24 0 0 3 0 3 3 0 8 0 mcl2k2 2112 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 162 0 0 17 0 17 17 0 8 0 mtagpl 80 44 0 0 1 0 1 1 0 8 0 mbufpl 256 772 0 0 41 1 40 40 0 8 0 bufpl 256 13286 0 6238 441 0 441 441 0 8 0 anonpl 16 283312 0 267069 136 52 84 93 0 124 7 amapchunkpl 152 17437 0 17320 41 32 9 13 0 158 2 amappl16 192 13226 0 12177 124 62 62 65 0 8 8 amappl15 184 933 0 931 2 1 1 1 0 8 0 amappl14 176 452 0 451 2 1 1 1 0 8 0 amappl13 168 93 0 92 1 0 1 1 0 8 0 amappl12 160 283 0 282 2 1 1 1 0 8 0 amappl11 152 418 0 401 1 0 1 1 0 8 0 amappl10 144 103 0 99 1 0 1 1 0 8 0 amappl9 136 723 0 717 1 0 1 1 0 8 0 amappl8 128 284 0 256 2 0 2 2 0 8 0 amappl7 120 177 0 169 1 0 1 1 0 8 0 amappl6 112 419 0 406 1 0 1 1 0 8 0 amappl5 104 496 0 481 1 0 1 1 0 8 0 amappl4 96 2785 0 2748 2 1 1 2 0 8 0 amappl3 88 377 0 372 1 0 1 1 0 8 0 amappl2 80 18860 0 18778 3 1 2 3 0 8 0 amappl1 72 62153 0 61708 25 15 10 20 0 8 0 amappl 80 7717 0 7665 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 127 0 7 2 0 2 2 0 8 0 uaddrrnd 24 2461 0 2399 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2461 0 2399 1 0 1 1 0 8 0 vmmpekpl 168 23189 0 23151 2 0 2 2 0 8 0 vmmpepl 168 307082 0 304778 249 112 137 137 0 357 33 vmsppl 368 2415 0 2399 2 0 2 2 0 8 0 pdppl 4096 4929 0 4870 10 2 8 8 0 8 0 pvpl 32 760010 0 740481 289 82 207 217 0 265 29 pmappl 232 2460 0 2426 3 0 3 3 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 717 0 24 20 0 20 20 0 8 0