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 282038 15758 0 0 0 0 syz-executor.0 * 98687 15758 0 0 0x4000000 1K syz-executor.0 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(ffffffff82205d0d,ffffffff821ce6ea,3b7,ffffffff821e4780) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800022bcb988,4,ffff800022bcba58,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000c11b00,840100,ffff800000c11b58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000c13000,ffff800000c11b00,ffff800022bcbd60,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000c13000,ffff800000c11b00,ffff800022bcbd60,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff800022bcbd50,ffff800000c13000,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff800022bcbd50,ffff800000c13000,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd8075a574d8,8040691a,ffff800022bcbd50,ffff800020ab0ee8) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ab0ee8,ffff800022bcbe68,ffff800022bcbeb0) at sys_ioctl+0x5b9 syscall(ffff800022bcbf30) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022bcbf30) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,2217e14f010) at Xsyscall+0x128 end of kernel end trace frame: 0x2239e05cbe0, 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(ffffffff82205d0d,ffffffff821ce6ea,3b7,ffffffff821e4780) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800022bcb988,4,ffff800022bcba58,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000c11b00,840100,ffff800000c11b58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000c13000,ffff800000c11b00,ffff800022bcbd60,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000c13000,ffff800000c11b00,ffff800022bcbd60,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff800022bcbd50,ffff800000c13000,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff800022bcbd50,ffff800000c13000,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd8075a574d8,8040691a,ffff800022bcbd50,ffff800020ab0ee8) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ab0ee8,ffff800022bcbe68,ffff800022bcbeb0) at sys_ioctl+0x5b9 syscall(ffff800022bcbf30) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022bcbf30) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,2217e14f010) at Xsyscall+0x128 end of kernel end trace frame: 0x2239e05cbe0, count: -12 ddb{1}> show registers rdi 0xffffffff821144f7 db_enter+0x17 rsi 0x3526 __ALIGN_SIZE+0x2526 rbp 0xffff800022bcb7a0 rbx 0xffff800022bcb850 rdx 0x3527 __ALIGN_SIZE+0x2527 rcx 0xffff800020b52000 rax 0xffff800020b52000 r8 0xffffffff814bd46f kprintf+0x16f r9 0x1 r10 0x25 r11 0x141923eca6130d0f r12 0x3000000008 r13 0xffff800022bcb7b0 r14 0x100 r15 0x1 rip 0xffffffff821144f8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022bcb790 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=98687 stat=onproc flags process=0 proc=4000000 pri=80, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab0508,0xffffffff8264d170 process=0xffff800020add880 user=0xffff800022bc6000, vmspace=0xfffffd807f00a730 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 15758 282038 3346 0 7 0 syz-executor.0 *15758 98687 3346 0 7 0x4000000 syz-executor.0 10905 67951 14694 0 2 0 syz-executor.1 10905 350501 14694 0 3 0x4000080 fsleep syz-executor.1 3346 26295 84156 0 3 0x82 nanosleep syz-executor.0 14694 206173 84156 0 3 0x82 nanosleep syz-executor.1 33833 266169 1 0 3 0x100083 ttyin getty 96731 300280 0 0 3 0x14200 acct acct 58922 259945 0 0 3 0x14200 bored sosplice 84156 231049 72103 0 3 0x82 thrsleep syz-fuzzer 84156 381177 72103 0 3 0x4000082 thrsleep syz-fuzzer 84156 293936 72103 0 3 0x4000082 thrsleep syz-fuzzer 84156 494485 72103 0 3 0x4000082 thrsleep syz-fuzzer 84156 212673 72103 0 3 0x4000082 kqread syz-fuzzer 84156 418140 72103 0 3 0x4000082 thrsleep syz-fuzzer 84156 107945 72103 0 3 0x4000082 thrsleep syz-fuzzer 84156 452783 72103 0 3 0x4000082 thrsleep syz-fuzzer 84156 506015 72103 0 3 0x4000082 thrsleep syz-fuzzer 84156 308401 72103 0 3 0x4000082 thrsleep syz-fuzzer 72103 224514 6650 0 3 0x10008a pause ksh 6650 433121 28168 0 3 0x92 select sshd 28168 413260 1 0 3 0x80 select sshd 25060 250686 9221 74 3 0x100092 bpf pflogd 9221 427393 1 0 3 0x80 netio pflogd 93038 363685 5502 73 3 0x100090 kqread syslogd 5502 12430 1 0 3 0x100082 netio syslogd 51099 231954 1 77 3 0x100090 poll dhclient 72835 416913 1 0 3 0x80 poll dhclient 9655 136720 0 0 2 0x14200 zerothread 24431 238246 0 0 3 0x14200 aiodoned aiodoned 41457 376995 0 0 3 0x14200 syncer update 5276 509152 0 0 3 0x14200 cleaner cleaner 74179 257984 0 0 3 0x14200 reaper reaper 79852 132073 0 0 3 0x14200 pgdaemon pagedaemon 29840 461659 0 0 3 0x14200 bored crynlk 32273 366283 0 0 3 0x14200 bored crypto 46933 207307 0 0 3 0x40014200 acpi0 acpi0 90004 293164 0 0 3 0x40014200 idle1 54424 419660 0 0 3 0x14200 bored softnet 12369 88525 0 0 3 0x14200 bored systqmp 61170 478518 0 0 3 0x14200 bored systq 99234 141697 0 0 3 0x40014200 bored softclock 73856 486102 0 0 3 0x40014200 idle0 83562 510024 0 0 3 0x14200 bored smr 1 38970 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 15758 (syz-executor.0) thread 0xffff800020ab0ee8 (98687) exclusive rwlock netlock r = 0 (0xffffffff824b3508) #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 (0xffffffff8262ff50) #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 9645 6479K 9363K 78643K 66346 0 0 pcb 14 10K 12K 78643K 2243 0 0 rtable 129 14K 15K 78643K 6923 0 0 ifaddr 107 30K 37K 78643K 2227 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1943 0 0 iov 0 0K 32K 78643K 2138 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1241 78K 79K 78643K 18151 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 114 0 0 VM map 70 35K 35K 78643K 110 0 0 sem 12 0K 0K 78643K 2275 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 11419 0 0 sigio 0 0K 0K 78643K 113 0 0 proc 62 63K 95K 78643K 4230 0 0 subproc 32 2K 2K 78643K 1118 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 1065 0 0 in_multi 27 1K 2K 78643K 1187 0 0 ether_multi 1 0K 0K 78643K 117 0 0 mrt 2 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 120 530K 530K 78643K 120 0 0 exec 0 0K 1K 78643K 2215 0 0 pfkey data 0 0K 0K 78643K 2 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 224 617K 634K 78643K 41225 0 0 UVM aobj 130 9K 9K 78643K 155 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 2643 0 0 NDP 26 0K 1K 78643K 687 0 0 temp 270 3566K 4205K 78643K 388148 0 0 kqueue 0 0K 0K 78643K 97 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 250 0 241 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 940 0 938 1 0 1 1 0 8 0 rtentry 112 1067 0 1020 2 0 2 2 0 8 0 unpcb 120 6641 0 6609 21 19 2 2 0 8 0 syncache 264 53 0 53 20 19 1 1 0 8 1 sackhl 24 3 0 3 3 2 1 1 0 8 1 tcpqe 32 18 0 18 13 13 0 1 0 8 0 tcpcb 544 5129 0 5125 54 53 1 14 0 8 0 inpcb 280 17844 0 17835 44 42 2 10 0 8 1 rttmr 72 29 0 27 13 12 1 1 0 8 0 ip6q 72 5 0 5 4 3 1 1 0 8 1 ip6af 40 13 0 13 4 3 1 1 0 8 1 nd6 48 145 0 143 5 4 1 1 0 8 0 pkpcb 40 56 0 56 21 21 0 1 0 8 0 swfcl 56 4 0 0 1 0 1 1 0 8 0 ppxss 1128 336 0 336 19 18 1 1 0 8 1 pffrag 232 203 0 203 27 26 1 1 0 482 1 pffrnode 88 203 0 203 27 26 1 1 0 8 1 pffrent 40 4973 0 4973 28 27 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 958 0 874 1 0 1 1 0 8 0 pfstkey 112 958 0 874 4 1 3 4 0 8 0 pfstate 328 958 0 874 14 6 8 10 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 30 0 29 12 11 1 3 0 8 0 art_heap4 256 4612 0 4320 55 33 22 22 0 8 0 art_table 32 4642 0 4349 5 2 3 3 0 8 0 art_node 16 1056 0 1013 1 0 1 1 0 8 0 sysvmsgpl 40 50 0 20 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 2273 0 2263 1 0 1 1 0 8 0 shmpl 112 153 0 25 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 18649 0 17204 48 1 47 47 0 8 0 ffsino 272 18649 0 17204 98 1 97 97 0 8 0 nchpl 144 36888 0 36386 61 39 22 61 0 8 0 uvmvnodes 72 6441 0 0 118 0 118 118 0 8 0 vnodes 208 6441 0 0 339 0 339 339 0 8 0 namei 1024 132199 0 132199 6 5 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 69 0 1 9 0 9 9 0 8 0 vmpool 552 108 0 40 7 2 5 5 0 8 0 scsiplug 64 16 0 16 11 11 0 1 0 8 0 scxspl 192 116192 0 116192 69 67 2 7 0 8 2 plimitpl 152 969 0 961 1 0 1 1 0 8 0 sigapl 432 11432 0 11416 4 2 2 3 0 8 0 futexpl 56 245708 0 245707 1 0 1 1 0 8 0 knotepl 112 2812 0 2793 7 6 1 3 0 8 0 kqueuepl 104 3074 0 3072 14 13 1 4 0 8 0 pipepl 112 6922 0 6903 15 14 1 2 0 8 0 fdescpl 488 11433 0 11416 3 0 3 3 0 8 0 filepl 152 100136 0 100033 70 64 6 14 0 8 2 lockfpl 104 4394 0 4393 1 0 1 1 0 8 0 lockfspl 48 1454 0 1453 1 0 1 1 0 8 0 sessionpl 112 83 0 72 1 0 1 1 0 8 0 pgrppl 48 199 0 188 1 0 1 1 0 8 0 ucredpl 96 12711 0 12700 1 0 1 1 0 8 0 zombiepl 144 11423 0 11423 5 4 1 1 0 8 1 processpl 896 11457 0 11423 5 1 4 5 0 8 0 procpl 632 37117 0 37072 8 3 5 5 0 8 1 srpgc 64 94 0 94 31 30 1 1 0 8 1 sosppl 128 196 0 196 35 34 1 1 0 8 1 sockpl 384 25686 0 25643 84 78 6 15 0 8 1 mcl64k 65536 707 0 0 65 32 33 34 0 8 0 mcl16k 16384 42 0 0 6 3 3 3 0 8 0 mcl12k 12288 25 0 0 2 0 2 2 0 8 0 mcl9k 9216 40 0 0 2 0 2 2 0 8 0 mcl8k 8192 24 0 0 3 1 2 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 192 0 0 19 5 14 19 0 8 0 mtagpl 80 184 0 0 2 1 1 2 0 8 0 mbufpl 256 1095 0 0 39 0 39 39 0 8 0 bufpl 256 39640 0 32592 441 0 441 441 0 8 0 anonpl 16 1263795 0 1247342 266 187 79 95 0 124 0 amapchunkpl 152 81565 0 81416 111 102 9 18 0 158 0 amappl16 192 58105 0 57003 315 258 57 68 0 8 1 amappl15 184 2427 0 2427 8 8 0 1 0 8 0 amappl14 176 2982 0 2976 2 1 1 1 0 8 0 amappl13 168 405 0 404 1 0 1 1 0 8 0 amappl12 160 1622 0 1620 2 1 1 1 0 8 0 amappl11 152 1517 0 1502 1 0 1 1 0 8 0 amappl10 144 1593 0 1586 1 0 1 1 0 8 0 amappl9 136 2523 0 2517 1 0 1 1 0 8 0 amappl8 128 2007 0 1961 2 0 2 2 0 8 0 amappl7 120 1868 0 1860 1 0 1 1 0 8 0 amappl6 112 1362 0 1342 1 0 1 1 0 8 0 amappl5 104 2319 0 2304 1 0 1 1 0 8 0 amappl4 96 10726 0 10694 1 0 1 1 0 8 0 amappl3 88 3693 0 3675 1 0 1 1 0 8 0 amappl2 80 88308 0 88219 4 2 2 3 0 8 0 amappl1 72 268371 0 267912 26 16 10 20 0 8 0 amappl 80 38547 0 38465 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 154 0 25 3 0 3 3 0 8 0 uaddrrnd 24 11541 0 11416 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 11541 0 11416 1 0 1 1 0 8 0 vmmpekpl 168 86110 0 86056 3 0 3 3 0 8 0 vmmpepl 168 1453340 0 1450809 457 308 149 151 0 357 34 vmsppl 368 11432 0 11416 2 0 2 2 0 8 0 pdppl 4096 23089 0 22980 15 1 14 14 0 8 0 pvpl 32 3341116 0 3322148 550 356 194 216 0 265 16 pmappl 232 11540 0 11456 9 3 6 6 0 8 1 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 826 0 149 20 0 20 20 0 8 0