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 506926 9585 0 0 0x1 0 syz-executor.1 * 73958 9585 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(ffffffff82208559,ffffffff821d3ea6,3b7,ffffffff821ea2fc) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800023ba32e8,4,ffff800023ba33b8,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000b06500,840100,ffff800000b06558,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000b0a000,ffff800000b06500,ffff800023ba36c0,0) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000b0a000,ffff800000b06500,ffff800023ba36c0,0) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff800023ba36b0,ffff800000b0a000,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff800023ba36b0,ffff800000b0a000,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd806797bc20,8040691a,ffff800023ba36b0,ffff800020ab18c8) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ab18c8,ffff800023ba37c8,ffff800023ba3810) at sys_ioctl+0x5b9 syscall(ffff800023ba3890) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023ba3890) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,d6ec8b530e0) at Xsyscall+0x128 end of kernel end trace frame: 0xd71889d2a70, 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(ffffffff82208559,ffffffff821d3ea6,3b7,ffffffff821ea2fc) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800023ba32e8,4,ffff800023ba33b8,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000b06500,840100,ffff800000b06558,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000b0a000,ffff800000b06500,ffff800023ba36c0,0) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000b0a000,ffff800000b06500,ffff800023ba36c0,0) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff800023ba36b0,ffff800000b0a000,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff800023ba36b0,ffff800000b0a000,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd806797bc20,8040691a,ffff800023ba36b0,ffff800020ab18c8) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ab18c8,ffff800023ba37c8,ffff800023ba3810) at sys_ioctl+0x5b9 syscall(ffff800023ba3890) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023ba3890) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,d6ec8b530e0) at Xsyscall+0x128 end of kernel end trace frame: 0xd71889d2a70, count: -12 ddb{1}> show registers rdi 0xffffffff81463877 db_enter+0x17 rsi 0x4678 __ALIGN_SIZE+0x3678 rbp 0xffff800023ba3100 rbx 0xffff800023ba31b0 rdx 0x4679 __ALIGN_SIZE+0x3679 rcx 0xffff80002214a000 rax 0xffff80002214a000 r8 0xffffffff81bed2cf kprintf+0x16f r9 0x1 r10 0x25 r11 0x71e63c8638cbfb9a r12 0x3000000008 r13 0xffff800023ba3110 r14 0x100 r15 0x1 rip 0xffffffff81463878 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023ba30f0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=73958 stat=onproc flags process=0 proc=4000000 pri=74, usrpri=74, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab1b40,0xffffffff826576c8 process=0xffff800020adc380 user=0xffff800023b9e000, vmspace=0xfffffd807f00b450 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 9585 506926 93313 0 7 0x1 syz-executor.1 9585 428128 93313 0 2 0x4000000 syz-executor.1 * 9585 73958 93313 0 7 0x4000000 syz-executor.1 93313 188626 17059 0 3 0x82 nanosleep syz-executor.1 88575 147880 17059 0 3 0x2 biowait syz-executor.0 29286 245417 1 0 3 0x100083 ttyopn getty 98006 60397 0 0 3 0x14200 acct acct 58696 359944 0 0 3 0x14200 bored sosplice 17059 282663 99846 0 3 0x82 thrsleep syz-fuzzer 17059 285976 99846 0 3 0x4000082 nanosleep syz-fuzzer 17059 122102 99846 0 3 0x4000082 thrsleep syz-fuzzer 17059 421045 99846 0 3 0x4000082 thrsleep syz-fuzzer 17059 44820 99846 0 3 0x4000082 thrsleep syz-fuzzer 17059 303393 99846 0 3 0x4000082 thrsleep syz-fuzzer 17059 216813 99846 0 3 0x4000082 thrsleep syz-fuzzer 17059 328533 99846 0 3 0x4000082 thrsleep syz-fuzzer 17059 56694 99846 0 3 0x4000082 kqread syz-fuzzer 17059 285772 99846 0 3 0x4000082 nanosleep syz-fuzzer 99846 45136 43096 0 3 0x10008a pause ksh 43096 511634 38083 0 3 0x92 select sshd 38083 243159 1 0 3 0x80 select sshd 42428 166390 18635 74 3 0x100092 bpf pflogd 18635 395069 1 0 3 0x80 netio pflogd 61822 79655 80305 73 3 0x100090 kqread syslogd 80305 111305 1 0 3 0x100082 netio syslogd 7209 326269 1 77 3 0x100090 poll dhclient 49190 76633 1 0 3 0x80 poll dhclient 21047 364531 0 0 3 0x14200 pgzero zerothread 37301 303800 0 0 3 0x14200 aiodoned aiodoned 72641 272795 0 0 3 0x14200 syncer update 16539 297522 0 0 3 0x14200 cleaner cleaner 37739 293988 0 0 3 0x14200 reaper reaper 29090 367858 0 0 3 0x14200 pgdaemon pagedaemon 35115 489514 0 0 3 0x14200 bored crynlk 47269 239682 0 0 3 0x14200 bored crypto 12617 52785 0 0 3 0x40014200 acpi0 acpi0 84601 376842 0 0 3 0x40014200 idle1 95951 218872 0 0 3 0x14200 bored softnet 77689 123692 0 0 2 0x14200 systqmp 43197 218548 0 0 3 0x14200 bored systq 24470 270997 0 0 3 0x40014200 bored softclock 62514 181535 0 0 3 0x40014200 idle0 25449 56877 0 0 3 0x14200 bored smr 1 136983 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 9585 (syz-executor.1) thread 0xffff800020ab18c8 (73958) exclusive rwlock netlock r = 0 (0xffffffff8250dc58) #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 (0xffffffff8266a578) #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 88575 (syz-executor.0) thread 0xffff800020ab0508 (147880) exclusive rrwlock inode r = 0 (0xfffffd806e6e11a8) #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 ufs_ihashins+0x45 sys/ufs/ufs/ufs_ihash.c:140 #4 ffs_vget+0x13e sys/ufs/ffs/ffs_vfsops.c:1352 #5 ffs_inode_alloc+0x1cf sys/ufs/ffs/ffs_alloc.c:392 #6 ufs_mkdir+0xf4 sys/ufs/ufs/ufs_vnops.c:1164 #7 VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 #8 domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 #9 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #9 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #10 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd807ce2f2c8) #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:562 #5 vfs_lookup+0xe6 sys/kern/vfs_lookup.c:419 #6 namei+0x63c sys/kern/vfs_lookup.c:249 #7 domkdirat+0x75 sys/kern/vfs_syscalls.c:2968 #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 9616 6468K 8401K 78643K 28720 0 0 pcb 13 10K 12K 78643K 1199 0 0 rtable 110 13K 14K 78643K 4087 0 0 ifaddr 91 24K 27K 78643K 1338 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1811 0 0 iov 0 0K 32K 78643K 1106 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1215 76K 77K 78643K 8562 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 94 0 0 VM map 2 1K 1K 78643K 27 0 0 sem 12 0K 1K 78643K 2378 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 6123 0 0 sigio 0 0K 0K 78643K 87 0 0 proc 62 63K 95K 78643K 2676 0 0 subproc 32 2K 2K 78643K 686 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 1747 0 0 in_multi 23 1K 2K 78643K 718 0 0 ether_multi 1 0K 0K 78643K 43 0 0 mrt 0 0K 0K 78643K 30 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 132 583K 583K 78643K 132 0 0 exec 0 0K 1K 78643K 1304 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 134 23K 33K 78643K 22116 0 0 UVM aobj 130 8K 9K 78643K 139 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 1360 0 0 NDP 22 0K 1K 78643K 423 0 0 temp 244 3561K 4201K 78643K 184547 0 0 kqueue 0 0K 0K 78643K 28 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 140 0 135 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 425 0 423 1 0 1 1 0 8 0 rtentry 112 633 0 594 2 0 2 2 0 8 0 unpcb 120 2624 0 2606 5 4 1 2 0 8 0 syncache 264 25 0 25 11 11 0 1 0 8 0 tcpqe 32 5807 0 5807 5 5 0 1 0 8 0 tcpcb 544 2887 0 2883 16 15 1 13 0 8 0 inpcb 280 10703 0 10692 17 15 2 9 0 8 1 rttmr 72 7 0 7 6 6 0 1 0 8 0 ip6q 72 1 0 1 1 1 0 1 0 8 0 nd6 48 93 0 91 3 2 1 1 0 8 0 pkpcb 40 19 0 19 7 7 0 1 0 8 0 swfcl 56 10 0 0 1 0 1 1 0 8 0 ppxss 1128 185 0 185 20 19 1 1 0 8 1 pffrag 232 66 0 66 18 18 0 1 0 482 0 pffrnode 88 66 0 66 18 18 0 1 0 8 0 pffrent 40 150 0 150 18 18 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 410 0 378 1 0 1 1 0 8 0 pfstkey 112 410 0 378 3 1 2 3 0 8 0 pfstate 328 410 0 378 7 2 5 7 0 8 1 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 7 0 6 7 6 1 3 0 8 0 art_heap4 256 2709 0 2492 51 35 16 17 0 8 0 art_table 32 2716 0 2498 4 1 3 3 0 8 0 art_node 16 626 0 590 1 0 1 1 0 8 0 sysvmsgpl 40 58 0 41 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 2374 0 2364 1 0 1 1 0 8 0 shmpl 112 137 0 9 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 10661 0 9231 47 0 47 47 0 8 0 ffsino 272 10661 0 9231 96 0 96 96 0 8 0 nchpl 144 19876 0 19383 61 40 21 61 0 8 0 uvmvnodes 72 6106 0 0 112 0 112 112 0 8 0 vnodes 208 6106 0 0 322 0 322 322 0 8 0 namei 1024 74276 0 74275 5 4 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 25 0 25 10 10 0 1 0 8 0 scsiplug 64 5 0 5 3 3 0 1 0 8 0 scxspl 192 62512 0 62511 49 48 1 7 0 8 0 plimitpl 152 559 0 551 1 0 1 1 0 8 0 sigapl 432 6211 0 6196 3 1 2 3 0 8 0 futexpl 56 140022 0 140022 2 1 1 1 0 8 1 knotepl 112 2687 0 2668 6 5 1 3 0 8 0 kqueuepl 104 3207 0 3205 6 5 1 4 0 8 0 pipepl 112 10196 0 10177 20 18 2 2 0 8 1 fdescpl 488 6212 0 6196 3 0 3 3 0 8 0 filepl 152 60718 0 60616 43 38 5 14 0 8 1 lockfpl 104 2265 0 2264 1 0 1 1 0 8 0 lockfspl 48 740 0 739 1 0 1 1 0 8 0 sessionpl 112 58 0 47 1 0 1 1 0 8 0 pgrppl 48 123 0 112 1 0 1 1 0 8 0 ucredpl 96 8536 0 8527 1 0 1 1 0 8 0 zombiepl 144 6196 0 6196 5 4 1 1 0 8 1 processpl 896 6229 0 6196 4 0 4 4 0 8 0 procpl 632 19431 0 19387 10 5 5 5 0 8 0 srpgc 64 56 0 56 20 20 0 1 0 8 0 sosppl 128 63 0 63 19 18 1 1 0 8 1 sockpl 384 13949 0 13920 37 32 5 14 0 8 1 mcl64k 65536 596 0 0 63 30 33 34 0 8 0 mcl16k 16384 13 0 0 2 0 2 2 0 8 0 mcl12k 12288 25 0 0 2 0 2 2 0 8 0 mcl9k 9216 19 0 0 2 0 2 2 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 173 0 0 20 0 20 20 0 8 1 mtagpl 80 84 0 0 1 0 1 1 0 8 0 mbufpl 256 749 0 0 29 0 29 29 0 8 0 bufpl 256 22823 0 15775 441 0 441 441 0 8 0 anonpl 16 781616 0 765104 212 129 83 87 0 124 8 amapchunkpl 152 44074 0 43954 73 65 8 13 0 158 1 amappl16 192 35024 0 34028 256 197 59 63 0 8 8 amappl15 184 1028 0 1026 5 4 1 1 0 8 0 amappl14 176 1165 0 1164 2 1 1 1 0 8 0 amappl13 168 243 0 241 7 6 1 1 0 8 0 amappl12 160 1294 0 1294 7 7 0 1 0 8 0 amappl11 152 488 0 473 1 0 1 1 0 8 0 amappl10 144 837 0 833 1 0 1 1 0 8 0 amappl9 136 2073 0 2065 1 0 1 1 0 8 0 amappl8 128 1654 0 1604 2 0 2 2 0 8 0 amappl7 120 982 0 974 1 0 1 1 0 8 0 amappl6 112 447 0 434 1 0 1 1 0 8 0 amappl5 104 1735 0 1720 1 0 1 1 0 8 0 amappl4 96 6412 0 6373 3 1 2 2 0 8 1 amappl3 88 842 0 837 1 0 1 1 0 8 0 amappl2 80 46900 0 46826 3 1 2 3 0 8 0 amappl1 72 150324 0 149884 26 16 10 20 0 8 0 amappl 80 20370 0 20329 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 138 0 9 3 0 3 3 0 8 0 uaddrrnd 24 6237 0 6196 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 6237 0 6196 1 0 1 1 0 8 0 vmmpekpl 168 65508 0 65475 3 1 2 3 0 8 0 vmmpepl 168 794252 0 792091 334 203 131 137 0 357 30 vmsppl 368 6211 0 6196 2 0 2 2 0 8 0 pdppl 4096 12481 0 12442 7 1 6 6 0 8 0 pvpl 32 1959470 0 1939703 440 242 198 204 0 265 25 pmappl 232 6236 0 6221 6 5 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 752 0 94 19 0 19 19 0 8 0