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 292821 63599 0 0 0 0 syz-executor.0 *319028 63599 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,ffff800021971728,4,ffff8000219717f8,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000a8f600,840100,ffff800000a8f658,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000b06000,ffff800000a8f600,ffff800021971b00,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000b06000,ffff800000a8f600,ffff800021971b00,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff800021971af0,ffff800000b06000,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff800021971af0,ffff800000b06000,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd807cd45310,8040691a,ffff800021971af0,ffff800020acf8f8) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020acf8f8,ffff800021971c08,ffff800021971c50) at sys_ioctl+0x5b9 syscall(ffff800021971cd0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021971cd0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,91a07e1d010) at Xsyscall+0x128 end of kernel end trace frame: 0x91c92edf3d0, 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,ffff800021971728,4,ffff8000219717f8,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000a8f600,840100,ffff800000a8f658,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000b06000,ffff800000a8f600,ffff800021971b00,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000b06000,ffff800000a8f600,ffff800021971b00,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff800021971af0,ffff800000b06000,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff800021971af0,ffff800000b06000,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd807cd45310,8040691a,ffff800021971af0,ffff800020acf8f8) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020acf8f8,ffff800021971c08,ffff800021971c50) at sys_ioctl+0x5b9 syscall(ffff800021971cd0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021971cd0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,91a07e1d010) at Xsyscall+0x128 end of kernel end trace frame: 0x91c92edf3d0, count: -12 ddb{1}> show registers rdi 0xffffffff821144f7 db_enter+0x17 rsi 0x3ee1 __ALIGN_SIZE+0x2ee1 rbp 0xffff800021971540 rbx 0xffff8000219715f0 rdx 0x3ee2 __ALIGN_SIZE+0x2ee2 rcx 0xffff800021ba6000 rax 0xffff800021ba6000 r8 0xffffffff814bd46f kprintf+0x16f r9 0x1 r10 0x25 r11 0xd7a213e7b7d9d928 r12 0x3000000008 r13 0xffff800021971550 r14 0x100 r15 0x1 rip 0xffffffff821144f8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021971530 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=319028 stat=onproc flags process=0 proc=4000000 pri=81, usrpri=81, nice=20 forw=0xffffffffffffffff, list=0xffff800020acf190,0xffffffff8264d170 process=0xffff800020adce00 user=0xffff80002196c000, 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 63599 292821 82740 0 7 0 syz-executor.0 *63599 319028 82740 0 7 0x4000000 syz-executor.0 14999 278558 64938 0 3 0x2 biowait syz-executor.1 82740 60253 64938 0 3 0x82 nanosleep syz-executor.0 18943 180190 1 0 3 0x100083 ttyopn getty 40413 447189 0 0 3 0x14200 bored sosplice 64938 241146 40153 0 3 0x82 thrsleep syz-fuzzer 64938 508922 40153 0 3 0x4000082 thrsleep syz-fuzzer 64938 423399 40153 0 3 0x4000082 thrsleep syz-fuzzer 64938 129613 40153 0 3 0x4000082 thrsleep syz-fuzzer 64938 72318 40153 0 3 0x4000082 thrsleep syz-fuzzer 64938 203367 40153 0 3 0x4000082 thrsleep syz-fuzzer 64938 76370 40153 0 3 0x4000082 thrsleep syz-fuzzer 64938 43270 40153 0 3 0x4000082 kqread syz-fuzzer 64938 17332 40153 0 3 0x4000082 thrsleep syz-fuzzer 64938 3243 40153 0 3 0x4000082 thrsleep syz-fuzzer 40153 300680 12709 0 3 0x10008a pause ksh 12709 110516 97118 0 3 0x92 select sshd 97118 353464 1 0 3 0x80 select sshd 38805 512663 81586 74 3 0x100092 bpf pflogd 81586 42172 1 0 3 0x80 netio pflogd 38269 55685 75133 73 3 0x100090 kqread syslogd 75133 290084 1 0 3 0x100082 netio syslogd 23647 520125 1 77 3 0x100090 poll dhclient 62484 257603 1 0 3 0x80 poll dhclient 16512 399605 0 0 2 0x14200 zerothread 46115 471923 0 0 3 0x14200 aiodoned aiodoned 56725 370928 0 0 3 0x14200 syncer update 26906 172679 0 0 3 0x14200 cleaner cleaner 89722 150701 0 0 3 0x14200 reaper reaper 84882 165493 0 0 3 0x14200 pgdaemon pagedaemon 92407 504734 0 0 3 0x14200 bored crynlk 42057 520998 0 0 3 0x14200 bored crypto 89877 116925 0 0 3 0x40014200 acpi0 acpi0 17622 299064 0 0 3 0x40014200 idle1 79570 293376 0 0 3 0x14200 bored softnet 98032 90792 0 0 3 0x14200 bored systqmp 85749 4551 0 0 3 0x14200 bored systq 82104 224465 0 0 3 0x40014200 bored softclock 42671 418835 0 0 3 0x40014200 idle0 21194 134539 0 0 3 0x14200 bored smr 1 220216 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 63599 (syz-executor.0) thread 0xffff800020acf8f8 (319028) 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 Process 14999 (syz-executor.1) thread 0xffff800020ace538 (278558) exclusive rrwlock inode r = 0 (0xfffffd8062be4c50) #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 vget+0x1c3 sys/kern/vfs_subr.c:672 #6 ufs_ihashget+0x141 sys/ufs/ufs/ufs_ihash.c:119 #7 ffs_vget+0x74 sys/ufs/ffs/ffs_vfsops.c:1323 #8 ufs_lookup+0x14b4 sys/ufs/ufs/ufs_lookup.c:487 #9 VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:91 #10 vfs_lookup+0x7a6 sys/kern/vfs_lookup.c:568 #11 namei+0x63c sys/kern/vfs_lookup.c:249 #12 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1785 #13 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #13 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #14 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806e18ef88) #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 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1785 #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 9618 7122K 11536K 78643K 30423 0 0 pcb 14 12K 14K 78643K 1797 0 0 rtable 131 9K 10K 78643K 5795 0 0 ifaddr 107 28K 29K 78643K 1665 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1956 0 0 iov 0 0K 32K 78643K 1687 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1217 76K 77K 78643K 8921 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 133 0 0 VM map 57 28K 29K 78643K 94 0 0 sem 12 0K 1K 78643K 1799 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 9106 0 0 sigio 0 0K 0K 78643K 82 0 0 proc 62 63K 95K 78643K 3787 0 0 subproc 32 2K 2K 78643K 1003 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 844 0 0 in_multi 40 2K 2K 78643K 1213 0 0 ether_multi 1 0K 0K 78643K 155 0 0 mrt 1 0K 0K 78643K 53 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 102 450K 450K 78643K 102 0 0 exec 0 0K 1K 78643K 1907 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 201 559K 585K 78643K 34475 0 0 UVM aobj 130 6K 6K 78643K 170 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 1947 0 0 NDP 25 0K 1K 78643K 526 0 0 temp 250 3565K 4205K 78643K 247818 0 0 kqueue 0 0K 0K 78643K 65 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 216 0 208 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 684 0 682 1 0 1 1 0 8 0 rtentry 112 993 0 944 2 0 2 2 0 8 0 unpcb 120 4486 0 4462 12 10 2 2 0 8 1 syncache 264 33 0 33 12 12 0 1 0 8 0 tcpqe 32 106 0 106 9 9 0 1 0 8 0 tcpcb 544 3634 0 3630 32 31 1 15 0 8 0 inpcb 280 10665 0 10656 53 51 2 13 0 8 1 rttmr 72 17 0 16 4 3 1 1 0 8 0 ip6q 72 7 0 7 4 4 0 1 0 8 0 ip6af 40 21 0 21 4 4 0 1 0 8 0 nd6 48 132 0 128 8 7 1 1 0 8 0 pkpcb 40 43 0 43 19 18 1 1 0 8 1 ppxss 1128 234 0 234 23 22 1 1 0 8 1 pffrag 232 170 0 170 27 26 1 1 0 482 1 pffrnode 88 170 0 170 27 26 1 1 0 8 1 pffrent 40 4702 0 4702 27 26 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 782 0 692 1 0 1 1 0 8 0 pfstkey 112 782 0 692 5 2 3 4 0 8 0 pfstate 328 782 0 692 13 4 9 10 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 34 0 33 23 22 1 3 0 8 0 art_heap4 256 3894 0 3615 54 36 18 19 0 8 0 art_table 32 3928 0 3648 4 1 3 3 0 8 0 art_node 16 986 0 942 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 0 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 1793 0 1783 1 0 1 1 0 8 0 shmpl 112 168 0 40 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 18894 0 17461 48 1 47 47 0 8 0 ffsino 272 18894 0 17461 97 0 97 97 0 8 0 nchpl 144 34617 0 34092 61 38 23 61 0 8 0 uvmvnodes 72 6509 0 0 119 0 119 119 0 8 0 vnodes 208 6509 0 0 343 0 343 343 0 8 0 namei 1024 131709 0 131709 6 5 1 2 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 58 0 3 7 0 7 7 0 8 0 vmpool 552 92 0 37 5 0 5 5 0 8 1 scsiplug 64 12 0 12 8 8 0 1 0 8 0 scxspl 192 123327 0 123326 66 64 2 7 0 8 1 plimitpl 152 821 0 813 1 0 1 1 0 8 0 sigapl 432 9143 0 9128 5 3 2 3 0 8 0 futexpl 56 192825 0 192825 3 2 1 1 0 8 1 knotepl 112 2261 0 2242 2 0 2 2 0 8 1 kqueuepl 104 2618 0 2616 7 6 1 4 0 8 0 pipepl 112 5356 0 5337 12 11 1 2 0 8 0 fdescpl 488 9144 0 9128 3 0 3 3 0 8 0 filepl 152 82925 0 82823 56 51 5 14 0 8 1 lockfpl 104 18177 0 18176 1 0 1 1 0 8 0 lockfspl 48 4425 0 4424 1 0 1 1 0 8 0 sessionpl 112 79 0 68 1 0 1 1 0 8 0 pgrppl 48 177 0 166 1 0 1 1 0 8 0 ucredpl 96 9284 0 9275 1 0 1 1 0 8 0 zombiepl 144 9144 0 9144 3 2 1 1 0 8 1 processpl 896 9176 0 9144 6 2 4 5 0 8 0 procpl 632 30742 0 30700 10 5 5 5 0 8 0 srpgc 64 82 0 82 30 29 1 1 0 8 1 sosppl 128 158 0 158 30 29 1 1 0 8 1 sockpl 384 15973 0 15938 73 68 5 22 0 8 1 mcl64k 65536 673 0 0 68 34 34 34 0 8 0 mcl16k 16384 25 0 0 4 1 3 3 0 8 0 mcl12k 12288 33 0 0 3 1 2 2 0 8 0 mcl9k 9216 33 0 0 3 1 2 2 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 21 0 0 3 0 3 3 0 8 0 mcl2k2 2112 16 0 0 2 0 2 2 0 8 0 mcl2k 2048 220 0 0 19 8 11 19 0 8 0 mtagpl 80 122 0 0 1 0 1 1 0 8 0 mbufpl 256 1082 0 0 31 0 31 31 0 8 0 bufpl 256 37631 0 30583 441 0 441 441 0 8 0 anonpl 16 1060068 0 1045716 257 180 77 89 0 124 0 amapchunkpl 152 70628 0 70518 142 132 10 19 0 158 4 amappl16 192 47681 0 46615 309 254 55 66 0 8 0 amappl15 184 1696 0 1695 8 7 1 1 0 8 0 amappl14 176 1491 0 1488 2 1 1 1 0 8 0 amappl13 168 560 0 560 11 11 0 1 0 8 0 amappl12 160 1150 0 1149 1 0 1 1 0 8 0 amappl11 152 1540 0 1524 1 0 1 1 0 8 0 amappl10 144 1457 0 1451 1 0 1 1 0 8 0 amappl9 136 2758 0 2751 1 0 1 1 0 8 0 amappl8 128 2306 0 2268 3 1 2 2 0 8 0 amappl7 120 1721 0 1711 1 0 1 1 0 8 0 amappl6 112 1399 0 1380 1 0 1 1 0 8 0 amappl5 104 1687 0 1673 1 0 1 1 0 8 0 amappl4 96 9114 0 9084 1 0 1 1 0 8 0 amappl3 88 2351 0 2342 1 0 1 1 0 8 0 amappl2 80 69809 0 69739 4 2 2 3 0 8 0 amappl1 72 218928 0 218493 25 15 10 20 0 8 0 amappl 80 32078 0 32003 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 169 0 40 3 0 3 3 0 8 0 uaddrrnd 24 9236 0 9128 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 9236 0 9128 1 0 1 1 0 8 0 vmmpekpl 168 74158 0 74112 3 0 3 3 0 8 0 vmmpepl 168 1176370 0 1174079 485 344 141 142 0 357 30 vmsppl 368 9143 0 9128 2 0 2 2 0 8 0 pdppl 4096 18479 0 18385 15 2 13 13 0 8 0 pvpl 32 2861285 0 2843723 542 356 186 212 0 265 8 pmappl 232 9235 0 9165 7 2 5 5 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 805 0 142 20 0 20 20 0 8 0