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 185805 63443 0 0 0 0 syz-executor.0 *195096 63443 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(ffffffff82206eb0,ffffffff821d1847,3b7,ffffffff821e7b89) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800023b79128,4,ffff800023b791f8,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000b21400,840100,ffff800000b21458,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000b24800,ffff800000b21400,ffff800023b79500,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000b24800,ffff800000b21400,ffff800023b79500,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff800023b794f0,ffff800000b24800,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff800023b794f0,ffff800000b24800,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd80635a27f0,8040691a,ffff800023b794f0,ffff800020ab1650) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ab1650,ffff800023b79608,ffff800023b79650) at sys_ioctl+0x5b9 syscall(ffff800023b796d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023b796d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,49dae1d7010) at Xsyscall+0x128 end of kernel end trace frame: 0x4a003a9ef80, 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(ffffffff82206eb0,ffffffff821d1847,3b7,ffffffff821e7b89) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800023b79128,4,ffff800023b791f8,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000b21400,840100,ffff800000b21458,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000b24800,ffff800000b21400,ffff800023b79500,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000b24800,ffff800000b21400,ffff800023b79500,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff800023b794f0,ffff800000b24800,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff800023b794f0,ffff800000b24800,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd80635a27f0,8040691a,ffff800023b794f0,ffff800020ab1650) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ab1650,ffff800023b79608,ffff800023b79650) at sys_ioctl+0x5b9 syscall(ffff800023b796d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023b796d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,49dae1d7010) at Xsyscall+0x128 end of kernel end trace frame: 0x4a003a9ef80, count: -12 ddb{1}> show registers rdi 0xffffffff8205b317 db_enter+0x17 rsi 0x4267 __ALIGN_SIZE+0x3267 rbp 0xffff800023b78f40 rbx 0xffff800023b78ff0 rdx 0x4268 __ALIGN_SIZE+0x3268 rcx 0xffff800020b52000 rax 0xffff800020b52000 r8 0xffffffff81e1baef kprintf+0x16f r9 0x1 r10 0x25 r11 0xbbc0809a2b3b1dbf r12 0x3000000008 r13 0xffff800023b78f50 r14 0x100 r15 0x1 rip 0xffffffff8205b318 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023b78f30 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=195096 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab18c8,0xffffffff826700d0 process=0xffff800020addc00 user=0xffff800023b74000, vmspace=0xfffffd807f00b730 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 63443 185805 91963 0 7 0 syz-executor.0 *63443 195096 91963 0 7 0x4000000 syz-executor.0 52878 173248 98320 0 3 0x2 biowait syz-executor.1 50107 241533 0 0 3 0x14200 acct acct 91963 154005 98320 0 3 0x82 nanosleep syz-executor.0 83147 168054 1 0 3 0x100083 ttyin getty 52814 523369 0 0 3 0x14200 bored sosplice 98320 416412 31263 0 3 0x82 thrsleep syz-fuzzer 98320 145692 31263 0 3 0x4000082 nanosleep syz-fuzzer 98320 254702 31263 0 3 0x4000082 thrsleep syz-fuzzer 98320 362968 31263 0 3 0x4000082 thrsleep syz-fuzzer 98320 102372 31263 0 3 0x4000082 thrsleep syz-fuzzer 98320 390435 31263 0 3 0x4000082 thrsleep syz-fuzzer 98320 497685 31263 0 3 0x4000082 thrsleep syz-fuzzer 98320 194053 31263 0 3 0x4000082 kqread syz-fuzzer 98320 32269 31263 0 3 0x4000082 thrsleep syz-fuzzer 98320 243388 31263 0 3 0x4000082 nanosleep syz-fuzzer 31263 394303 80204 0 3 0x10008a pause ksh 80204 399401 4123 0 3 0x92 select sshd 4123 249915 1 0 3 0x80 select sshd 48236 265030 49863 74 3 0x100092 bpf pflogd 49863 268549 1 0 3 0x80 netio pflogd 41325 146073 38382 73 3 0x100090 kqread syslogd 38382 364783 1 0 3 0x100082 netio syslogd 29819 153223 1 77 3 0x100090 poll dhclient 16367 85 1 0 3 0x80 poll dhclient 9159 517713 0 0 3 0x14200 pgzero zerothread 84038 301248 0 0 3 0x14200 aiodoned aiodoned 72652 321835 0 0 3 0x14200 syncer update 83042 223987 0 0 3 0x14200 cleaner cleaner 88101 86119 0 0 3 0x14200 reaper reaper 69761 288439 0 0 3 0x14200 pgdaemon pagedaemon 29796 419087 0 0 3 0x14200 bored crynlk 77885 431283 0 0 3 0x14200 bored crypto 57492 239573 0 0 3 0x40014200 acpi0 acpi0 53809 196358 0 0 3 0x40014200 idle1 48413 98005 0 0 3 0x14200 bored softnet 68908 150006 0 0 3 0x14200 bored systqmp 67861 326886 0 0 3 0x14200 bored systq 24757 199894 0 0 3 0x40014200 bored softclock 55963 323971 0 0 3 0x40014200 idle0 47110 27912 0 0 3 0x14200 bored smr 1 307156 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 63443 (syz-executor.0) thread 0xffff800020ab1650 (195096) exclusive rwlock netlock r = 0 (0xffffffff824b5838) #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 (0xffffffff82633948) #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 52878 (syz-executor.1) thread 0xffff800020ab1160 (173248) exclusive rrwlock inode r = 0 (0xfffffd806d879f88) #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 (0xfffffd806eae62c8) #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:574 #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 9606 6775K 8393K 78643K 23566 0 0 pcb 13 10K 12K 78643K 515 0 0 rtable 100 8K 9K 78643K 2034 0 0 ifaddr 88 20K 22K 78643K 583 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1606 0 0 iov 0 0K 32K 78643K 1405 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1229 77K 78K 78643K 4995 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 26 0 0 VM map 13 6K 6K 78643K 24 0 0 sem 12 1K 1K 78643K 317 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 2571 0 0 sigio 0 0K 0K 78643K 34 0 0 proc 62 63K 95K 78643K 1279 0 0 subproc 32 2K 2K 78643K 259 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 292 0 0 in_multi 20 1K 2K 78643K 392 0 0 ether_multi 1 0K 0K 78643K 27 0 0 mrt 0 0K 0K 78643K 14 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 72 318K 318K 78643K 72 0 0 exec 0 0K 1K 78643K 615 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 133 136K 136K 78643K 10675 0 0 UVM aobj 120 3K 3K 78643K 149 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 424 0 0 NDP 20 0K 0K 78643K 185 0 0 temp 229 3561K 4200K 78643K 68732 0 0 kqueue 0 0K 0K 78643K 21 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 88 0 83 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 190 0 188 1 0 1 1 0 8 0 rtentry 112 366 0 329 2 0 2 2 0 8 0 unpcb 120 3482 0 3467 2 1 1 2 0 8 0 syncache 264 24 0 24 7 6 1 1 0 8 1 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 107 0 107 3 3 0 1 0 8 0 tcpcb 544 1042 0 1038 12 11 1 11 0 8 0 inpcb 280 3031 0 3023 13 12 1 9 0 8 0 rttmr 72 5 0 4 2 1 1 1 0 8 0 ip6q 72 1 0 1 1 0 1 1 0 8 1 ip6af 40 3 0 3 1 0 1 1 0 8 1 nd6 48 49 0 47 1 0 1 1 0 8 0 pkpcb 40 4 0 4 2 2 0 1 0 8 0 ppxss 1128 69 0 69 8 8 0 1 0 8 0 pffrag 232 52 0 52 9 8 1 1 0 482 1 pffrnode 88 52 0 52 9 8 1 1 0 8 1 pffrent 40 1222 0 1222 9 8 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 221 0 150 1 0 1 1 0 8 0 pfstkey 112 221 0 150 3 0 3 3 0 8 0 pfstate 328 221 0 148 8 0 8 8 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1566 0 1355 26 8 18 18 0 8 0 art_table 32 1567 0 1355 3 0 3 3 0 8 0 art_node 16 362 0 328 1 0 1 1 0 8 0 sysvmsgpl 40 6 0 4 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 315 0 305 1 0 1 1 0 8 0 shmpl 112 147 0 29 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 5734 0 4314 46 0 46 46 0 8 0 ffsino 272 5734 0 4314 95 0 95 95 0 8 0 nchpl 144 9830 0 8216 61 0 61 61 0 8 0 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 34057 0 34056 1 0 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 11 0 0 2 0 2 2 0 8 0 vmpool 552 22 0 11 1 0 1 1 0 8 0 scsiplug 64 3 0 3 2 2 0 1 0 8 0 scxspl 192 31914 0 31913 22 20 2 7 0 8 1 plimitpl 152 223 0 215 1 0 1 1 0 8 0 sigapl 432 2733 0 2718 3 1 2 3 0 8 0 futexpl 56 62558 0 62558 1 0 1 1 0 8 1 knotepl 112 558 0 539 1 0 1 1 0 8 0 kqueuepl 104 687 0 685 4 3 1 4 0 8 0 pipepl 112 1504 0 1485 3 2 1 2 0 8 0 fdescpl 488 2734 0 2718 3 0 3 3 0 8 0 filepl 152 23872 0 23771 19 13 6 14 0 8 2 lockfpl 104 1526 0 1525 1 0 1 1 0 8 0 lockfspl 48 595 0 594 1 0 1 1 0 8 0 sessionpl 112 32 0 21 1 0 1 1 0 8 0 pgrppl 48 64 0 53 1 0 1 1 0 8 0 ucredpl 96 2525 0 2515 1 0 1 1 0 8 0 zombiepl 144 2719 0 2719 2 1 1 1 0 8 1 processpl 896 2752 0 2719 4 0 4 4 0 8 0 procpl 632 8556 0 8513 5 0 5 5 0 8 1 srpgc 64 19 0 19 7 6 1 1 0 8 1 sosppl 128 37 0 37 8 7 1 1 0 8 1 sockpl 384 6740 0 6715 22 18 4 14 0 8 0 mcl64k 65536 511 0 0 64 5 59 64 0 8 0 mcl16k 16384 10 0 0 2 0 2 2 0 8 0 mcl12k 12288 21 0 0 2 0 2 2 0 8 0 mcl9k 9216 7 0 0 1 0 1 1 0 8 0 mcl8k 8192 25 0 0 4 1 3 3 0 8 0 mcl4k 4096 24 0 0 3 1 2 3 0 8 0 mcl2k2 2112 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 164 0 0 20 1 19 20 0 8 0 mtagpl 80 46 0 0 1 0 1 1 0 8 0 mbufpl 256 712 0 0 36 0 36 36 0 8 0 bufpl 256 13847 0 6799 441 0 441 441 0 8 0 anonpl 16 336970 0 319420 132 45 87 88 0 124 13 amapchunkpl 152 18461 0 18350 24 15 9 12 0 158 2 amappl16 192 15789 0 14785 128 68 60 64 0 8 8 amappl15 184 2 0 1 1 0 1 1 0 8 0 amappl14 176 419 0 414 2 1 1 1 0 8 0 amappl13 168 41 0 40 3 2 1 1 0 8 0 amappl12 160 525 0 522 2 1 1 1 0 8 0 amappl11 152 289 0 274 1 0 1 1 0 8 0 amappl10 144 131 0 128 1 0 1 1 0 8 0 amappl9 136 1856 0 1848 1 0 1 1 0 8 0 amappl8 128 1430 0 1383 2 0 2 2 0 8 0 amappl7 120 208 0 199 1 0 1 1 0 8 0 amappl6 112 281 0 270 1 0 1 1 0 8 0 amappl5 104 765 0 750 1 0 1 1 0 8 0 amappl4 96 3476 0 3443 1 0 1 1 0 8 0 amappl3 88 402 0 396 1 0 1 1 0 8 0 amappl2 80 20217 0 20142 4 2 2 3 0 8 0 amappl1 72 71879 0 71443 25 15 10 20 0 8 0 amappl 80 9050 0 9005 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 148 0 29 2 0 2 2 0 8 0 uaddrrnd 24 2756 0 2718 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2756 0 2718 1 0 1 1 0 8 0 vmmpekpl 168 23173 0 23137 2 0 2 2 0 8 0 vmmpepl 168 356989 0 354815 227 93 134 149 0 357 28 vmsppl 368 2733 0 2718 2 0 2 2 0 8 0 pdppl 4096 5519 0 5469 9 2 7 7 0 8 0 pvpl 32 896625 0 875856 291 86 205 208 0 265 32 pmappl 232 2755 0 2729 3 1 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 723 0 32 20 0 20 20 0 8 0