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 *333191 87292 0 0 0x4000000 0 syz-executor.1 146300 57546 0 0x2 0x1 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(ffffffff8220776f,ffffffff821d0ef7,3b7,ffffffff821e73bd) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800022bbefc8,4,ffff800022bbf098,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000bb8400,840100,ffff800000bb8458,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000bb5000,ffff800000bb8400,ffff800022bbf3a0,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000bb5000,ffff800000bb8400,ffff800022bbf3a0,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff800022bbf390,ffff800000bb5000,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff800022bbf390,ffff800000bb5000,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd806f6c6000,8040691a,ffff800022bbf390,ffff800020acf170) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020acf170,ffff800022bbf4a8,ffff800022bbf4f0) at sys_ioctl+0x5b9 syscall(ffff800022bbf570) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022bbf570) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,a0746d74010) at Xsyscall+0x128 end of kernel end trace frame: 0xa0a3cecddc0, 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(ffffffff8220776f,ffffffff821d0ef7,3b7,ffffffff821e73bd) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800022bbefc8,4,ffff800022bbf098,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000bb8400,840100,ffff800000bb8458,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000bb5000,ffff800000bb8400,ffff800022bbf3a0,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000bb5000,ffff800000bb8400,ffff800022bbf3a0,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff800022bbf390,ffff800000bb5000,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff800022bbf390,ffff800000bb5000,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd806f6c6000,8040691a,ffff800022bbf390,ffff800020acf170) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020acf170,ffff800022bbf4a8,ffff800022bbf4f0) at sys_ioctl+0x5b9 syscall(ffff800022bbf570) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022bbf570) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,a0746d74010) at Xsyscall+0x128 end of kernel end trace frame: 0xa0a3cecddc0, count: -12 ddb{0}> show registers rdi 0xffffffff81d8b447 db_enter+0x17 rsi 0x32bf __ALIGN_SIZE+0x22bf rbp 0xffff800022bbede0 rbx 0xffff800022bbee90 rdx 0x32c0 __ALIGN_SIZE+0x22c0 rcx 0xffff800021f3c000 rax 0xffff800021f3c000 r8 0xffffffff813497df kprintf+0x16f r9 0x1 r10 0x25 r11 0x784914c4b9cc0e36 r12 0x3000000008 r13 0xffff800022bbedf0 r14 0x100 r15 0x1 rip 0xffffffff81d8b448 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022bbedd0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=333191 stat=onproc flags process=0 proc=4000000 pri=77, usrpri=77, nice=20 forw=0xffffffffffffffff, list=0xffff800020acfb50,0xffffffff826594b0 process=0xffff800020a8b890 user=0xffff800022bba000, vmspace=0xfffffd807f00b8a0 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=2, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 87292 510693 57546 0 2 0 syz-executor.1 *87292 333191 57546 0 7 0x4000000 syz-executor.1 48079 366293 37311 0 2 0x482 syz-executor.0 57546 146300 37311 0 7 0x3 syz-executor.1 93169 332186 0 0 3 0x14200 acct acct 31285 57370 1 0 3 0x100083 ttyin getty 17797 356899 0 0 3 0x14200 bored sosplice 37311 469611 66543 0 3 0x82 thrsleep syz-fuzzer 37311 21123 66543 0 2 0x4000482 syz-fuzzer 37311 90587 66543 0 3 0x4000082 thrsleep syz-fuzzer 37311 206446 66543 0 3 0x4000082 kqread syz-fuzzer 37311 69437 66543 0 3 0x4000082 thrsleep syz-fuzzer 37311 102576 66543 0 3 0x4000082 thrsleep syz-fuzzer 37311 201044 66543 0 3 0x4000082 thrsleep syz-fuzzer 37311 411619 66543 0 3 0x4000082 thrsleep syz-fuzzer 37311 225769 66543 0 3 0x4000082 thrsleep syz-fuzzer 37311 81291 66543 0 2 0x4000482 syz-fuzzer 66543 213639 99082 0 3 0x10008a pause ksh 99082 520323 37909 0 3 0x92 select sshd 37909 486295 1 0 3 0x80 select sshd 81304 426662 77642 74 3 0x100092 bpf pflogd 77642 228292 1 0 3 0x80 netio pflogd 85520 251161 18999 73 3 0x100090 kqread syslogd 18999 382437 1 0 3 0x100082 netio syslogd 56324 486068 0 0 3 0x14200 pgzero zerothread 74686 105108 0 0 3 0x14200 aiodoned aiodoned 31610 484296 0 0 3 0x14200 syncer update 90585 181522 0 0 3 0x14200 cleaner cleaner 60629 214681 0 0 3 0x14200 reaper reaper 63652 167648 0 0 3 0x14200 pgdaemon pagedaemon 30890 15729 0 0 3 0x14200 bored crynlk 45848 517008 0 0 3 0x14200 bored crypto 77513 319685 0 0 3 0x40014200 acpi0 acpi0 58979 411982 0 0 3 0x40014200 idle1 80400 184709 0 0 3 0x14200 bored softnet 35361 10329 0 0 3 0x14200 bored systqmp 54569 325796 0 0 3 0x14200 bored systq 23132 363887 0 0 3 0x40014200 bored softclock 25179 234542 0 0 3 0x40014200 idle0 24381 516307 0 0 3 0x14200 bored smr 1 485894 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 87292 (syz-executor.1) thread 0xffff800020acf170 (333191) exclusive rwlock netlock r = 0 (0xffffffff82513ec8) #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 (0xffffffff8262b2d8) #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 9665 7201K 8472K 78643K 49658 0 0 pcb 14 10K 12K 78643K 3492 0 0 rtable 139 14K 15K 78643K 10188 0 0 ifaddr 120 33K 38K 78643K 3356 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 2373 0 0 iov 0 0K 28K 78643K 3347 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1212 76K 78K 78643K 16539 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 202 0 0 VM map 109 54K 54K 78643K 195 0 0 sem 12 0K 0K 78643K 5717 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 18065 0 0 sigio 0 0K 0K 78643K 1427 0 0 proc 57 51K 95K 78643K 6423 0 0 subproc 32 2K 2K 78643K 1795 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 1494 0 0 in_multi 38 2K 3K 78643K 2170 0 0 ether_multi 1 0K 0K 78643K 213 0 0 mrt 5 0K 0K 78643K 129 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 120 530K 530K 78643K 120 0 0 exec 0 0K 1K 78643K 3266 0 0 pfkey data 0 0K 4K 78643K 4 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 308 1001K 1002K 78643K 66355 0 0 UVM aobj 130 4K 4K 78643K 132 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 4989 0 0 NDP 28 0K 1K 78643K 1074 0 0 temp 285 3566K 4206K 78643K 618427 0 0 kqueue 0 0K 0K 78643K 129 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 374 0 366 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 3403 0 3403 2 1 1 1 0 8 1 rtentry 112 1823 0 1772 2 0 2 2 0 8 0 unpcb 120 12183 0 12157 24 22 2 2 0 8 0 syncache 264 106 0 106 49 49 0 1 0 8 0 sackhl 24 2 0 2 2 2 0 1 0 8 0 tcpqe 32 7736 0 7736 12 12 0 2 0 8 0 tcpcb 544 14300 0 14296 89 88 1 14 0 8 0 inpcb 280 41121 0 41115 80 79 1 10 0 8 0 rttmr 72 38 0 38 16 16 0 1 0 8 0 ip6q 72 6 0 6 3 3 0 1 0 8 0 ip6af 40 12 0 12 2 2 0 1 0 8 0 nd6 48 280 0 278 9 8 1 1 0 8 0 pkpcb 40 64 0 64 19 19 0 1 0 8 0 swfcl 56 4 0 0 1 0 1 1 0 8 0 ppxss 1128 521 0 521 45 44 1 1 0 8 1 pffrag 232 328 0 328 61 61 0 1 0 482 0 pffrnode 88 328 0 328 61 61 0 1 0 8 0 pffrent 40 7468 0 7468 61 61 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 1506 0 1312 2 0 2 2 0 8 0 pfstkey 112 1507 0 1313 7 1 6 6 0 8 0 pfstate 328 1507 0 1313 25 7 18 18 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 31 0 30 23 22 1 3 0 8 0 art_heap4 256 8083 0 7791 82 61 21 21 0 8 0 art_table 32 8114 0 7821 4 1 3 3 0 8 0 art_node 16 1813 0 1765 1 0 1 1 0 8 0 sysvmsgpl 40 84 0 54 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 5715 0 5705 1 0 1 1 0 8 0 shmpl 112 130 0 2 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 30712 0 29221 49 0 49 49 0 8 0 ffsino 272 30712 0 29221 100 0 100 100 0 8 0 nchpl 144 59307 0 58822 61 40 21 61 0 8 0 uvmvnodes 72 7628 0 0 139 0 139 139 0 8 0 vnodes 208 7628 0 0 402 0 402 402 0 8 0 namei 1024 197966 0 197966 9 8 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 193 0 86 13 5 8 8 0 8 0 scsiplug 64 16 0 16 10 9 1 1 0 8 1 scxspl 192 191090 0 191089 133 130 3 7 0 8 2 plimitpl 152 1490 0 1483 1 0 1 1 0 8 0 sigapl 432 17958 0 17945 3 1 2 3 0 8 0 futexpl 56 428225 0 428225 2 1 1 1 0 8 1 knotepl 112 4381 0 4362 6 5 1 3 0 8 0 kqueuepl 104 5828 0 5826 23 22 1 4 0 8 0 pipepl 112 13370 0 13351 33 32 1 2 0 8 0 fdescpl 488 17959 0 17945 3 0 3 3 0 8 0 filepl 152 162654 0 162563 118 113 5 14 0 8 1 lockfpl 104 16414 0 16405 1 0 1 1 0 8 0 lockfspl 48 5651 0 5643 1 0 1 1 0 8 0 sessionpl 112 123 0 114 1 0 1 1 0 8 0 pgrppl 48 268 0 259 1 0 1 1 0 8 0 ucredpl 96 17003 0 16994 1 0 1 1 0 8 0 zombiepl 144 17955 0 17954 7 6 1 1 0 8 0 processpl 896 17986 0 17954 4 0 4 4 0 8 0 procpl 632 60213 0 60171 6 1 5 5 0 8 0 srpgc 64 152 0 152 56 56 0 1 0 8 0 sosppl 128 301 0 301 58 57 1 1 0 8 1 sockpl 384 56957 0 56925 150 145 5 15 0 8 0 mcl64k 65536 1523 0 0 170 109 61 66 0 8 0 mcl16k 16384 33 0 0 4 1 3 3 0 8 0 mcl12k 12288 73 0 0 3 1 2 2 0 8 0 mcl9k 9216 49 0 0 2 0 2 2 0 8 0 mcl8k 8192 25 0 0 4 1 3 3 0 8 0 mcl4k 4096 33 0 0 4 1 3 3 0 8 0 mcl2k2 2112 20 0 0 2 0 2 2 0 8 0 mcl2k 2048 262 0 0 26 13 13 26 0 8 0 mtagpl 80 261 0 0 3 0 3 3 0 8 0 mbufpl 256 1783 0 0 50 1 49 49 0 8 0 bufpl 256 68010 0 60381 478 0 478 478 0 8 0 anonpl 16 2080739 0 2061675 486 391 95 95 0 124 15 amapchunkpl 152 132401 0 132279 212 206 6 20 0 158 0 amappl16 192 98513 0 97361 573 506 67 71 0 8 8 amappl15 184 4128 0 4128 18 18 0 1 0 8 0 amappl14 176 4451 0 4447 2 1 1 1 0 8 0 amappl13 168 2251 0 2250 16 15 1 1 0 8 0 amappl12 160 1827 0 1825 13 12 1 1 0 8 0 amappl11 152 1443 0 1435 1 0 1 1 0 8 0 amappl10 144 1758 0 1751 1 0 1 1 0 8 0 amappl9 136 3542 0 3535 1 0 1 1 0 8 0 amappl8 128 3175 0 3099 3 0 3 3 0 8 0 amappl7 120 2208 0 2199 1 0 1 1 0 8 0 amappl6 112 1249 0 1236 1 0 1 1 0 8 0 amappl5 104 2841 0 2829 1 0 1 1 0 8 0 amappl4 96 17115 0 17080 4 3 1 2 0 8 0 amappl3 88 5623 0 5607 1 0 1 1 0 8 0 amappl2 80 140540 0 140460 4 2 2 3 0 8 0 amappl1 72 415543 0 415129 27 17 10 20 0 8 0 amappl 80 62359 0 62262 3 0 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 131 0 2 3 0 3 3 0 8 0 uaddrrnd 24 18152 0 17945 2 0 2 2 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 18152 0 17945 2 0 2 2 0 8 0 vmmpekpl 168 137733 0 137680 3 0 3 3 0 8 0 vmmpepl 168 2295595 0 2293071 751 610 141 165 0 357 19 vmsppl 368 17958 0 17945 2 0 2 2 0 8 0 pdppl 4096 36311 0 36169 36 17 19 19 0 8 0 pvpl 32 5347421 0 5326514 862 648 214 214 0 265 37 pmappl 232 18151 0 18031 11 3 8 8 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 1084 0 325 22 0 22 22 0 8 0