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 433930 35173 0 0 0 0 syz-executor.1 *120761 35173 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(ffffffff82208435,ffffffff821d1223,3b7,ffffffff821e73ac) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800023bb10b8,4,ffff800023bb1188,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000ab9c00,840100,ffff800000ab9c58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000af8000,ffff800000ab9c00,ffff800023bb1490,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000af8000,ffff800000ab9c00,ffff800023bb1490,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff800023bb1480,ffff800000af8000,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff800023bb1480,ffff800000af8000,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd806f6d2a80,8040691a,ffff800023bb1480,ffff800020abe780) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020abe780,ffff800023bb1598,ffff800023bb15e0) at sys_ioctl+0x5b9 syscall(ffff800023bb1660) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023bb1660) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,5cbece58010) at Xsyscall+0x128 end of kernel end trace frame: 0x5cebdc63cb0, 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(ffffffff82208435,ffffffff821d1223,3b7,ffffffff821e73ac) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800023bb10b8,4,ffff800023bb1188,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000ab9c00,840100,ffff800000ab9c58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000af8000,ffff800000ab9c00,ffff800023bb1490,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000af8000,ffff800000ab9c00,ffff800023bb1490,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff800023bb1480,ffff800000af8000,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff800023bb1480,ffff800000af8000,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd806f6d2a80,8040691a,ffff800023bb1480,ffff800020abe780) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020abe780,ffff800023bb1598,ffff800023bb15e0) at sys_ioctl+0x5b9 syscall(ffff800023bb1660) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023bb1660) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,5cbece58010) at Xsyscall+0x128 end of kernel end trace frame: 0x5cebdc63cb0, count: -12 ddb{1}> show registers rdi 0xffffffff820d9a07 db_enter+0x17 rsi 0x3ffa __ALIGN_SIZE+0x2ffa rbp 0xffff800023bb0ed0 rbx 0xffff800023bb0f80 rdx 0x3ffb __ALIGN_SIZE+0x2ffb rcx 0xffff800020b56000 rax 0xffff800020b56000 r8 0xffffffff81988e9f kprintf+0x16f r9 0x1 r10 0x25 r11 0x66ae3db0b20651e5 r12 0x3000000008 r13 0xffff800023bb0ee0 r14 0x100 r15 0x1 rip 0xffffffff820d9a08 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023bb0ec0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=120761 stat=onproc flags process=0 proc=4000000 pri=76, usrpri=76, nice=20 forw=0xffffffffffffffff, list=0xffff800020abf160,0xffffffff82647d70 process=0xffff800020a8a010 user=0xffff800023bac000, vmspace=0xfffffd807f00ba10 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 35173 433930 35875 0 7 0 syz-executor.1 *35173 120761 35875 0 7 0x4000000 syz-executor.1 35875 327831 97366 0 3 0x82 nanosleep syz-executor.1 80585 478269 1 0 3 0x100083 ttyin getty 5223 347996 97366 0 3 0x2 biowait syz-executor.0 64401 101378 0 0 3 0x14200 acct acct 57711 495289 0 0 3 0x14200 bored sosplice 97366 278725 63556 0 3 0x82 thrsleep syz-fuzzer 97366 478807 63556 0 3 0x4000082 nanosleep syz-fuzzer 97366 464995 63556 0 3 0x4000082 thrsleep syz-fuzzer 97366 148355 63556 0 3 0x4000082 thrsleep syz-fuzzer 97366 430333 63556 0 3 0x4000082 kqread syz-fuzzer 97366 514403 63556 0 3 0x4000082 nanosleep syz-fuzzer 97366 54254 63556 0 3 0x4000082 thrsleep syz-fuzzer 97366 246261 63556 0 3 0x4000082 thrsleep syz-fuzzer 97366 393868 63556 0 3 0x4000082 thrsleep syz-fuzzer 97366 52258 63556 0 3 0x4000082 thrsleep syz-fuzzer 63556 89697 27918 0 3 0x10008a pause ksh 27918 403850 80125 0 3 0x92 select sshd 80125 76364 1 0 3 0x80 select sshd 88003 34184 30574 74 3 0x100092 bpf pflogd 30574 93780 1 0 3 0x80 netio pflogd 95428 303608 84412 73 3 0x100090 kqread syslogd 84412 124282 1 0 3 0x100082 netio syslogd 68579 6351 1 77 3 0x100090 poll dhclient 76575 396928 1 0 3 0x80 poll dhclient 67319 232781 0 0 3 0x14200 pgzero zerothread 34186 174789 0 0 3 0x14200 aiodoned aiodoned 30327 43842 0 0 3 0x14200 syncer update 49898 149827 0 0 3 0x14200 cleaner cleaner 9775 406038 0 0 3 0x14200 reaper reaper 78229 19968 0 0 3 0x14200 pgdaemon pagedaemon 82622 435218 0 0 3 0x14200 bored crynlk 1691 300765 0 0 3 0x14200 bored crypto 81742 305325 0 0 3 0x40014200 acpi0 acpi0 3782 10179 0 0 3 0x40014200 idle1 63363 367735 0 0 3 0x14200 bored softnet 6525 348327 0 0 3 0x14200 bored systqmp 25114 338598 0 0 3 0x14200 bored systq 37344 455989 0 0 3 0x40014200 bored softclock 58833 465470 0 0 3 0x40014200 idle0 29377 200233 0 0 3 0x14200 bored smr 1 520367 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 35173 (syz-executor.1) thread 0xffff800020abe780 (120761) exclusive rwlock netlock r = 0 (0xffffffff824dba68) #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 (0xffffffff826404e0) #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 5223 (syz-executor.0) thread 0xffff800020acfb48 (347996) exclusive rrwlock inode r = 0 (0xfffffd806d8574e8) #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 (0xfffffd806d857c58) #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 9566 7202K 7699K 78643K 12626 0 0 pcb 14 8K 8K 78643K 194 0 0 rtable 120 8K 9K 78643K 918 0 0 ifaddr 77 17K 17K 78643K 317 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1518 0 0 iov 0 0K 28K 78643K 493 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1217 76K 77K 78643K 2129 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 17 0 0 VM map 11 5K 6K 78643K 13 0 0 sem 12 0K 0K 78643K 224 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 1036 0 0 sigio 0 0K 0K 78643K 12 0 0 proc 62 63K 83K 78643K 875 0 0 subproc 32 2K 2K 78643K 170 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 78 0 0 in_multi 30 2K 2K 78643K 166 0 0 ether_multi 1 0K 0K 78643K 11 0 0 mrt 0 0K 0K 78643K 7 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 66 291K 291K 78643K 66 0 0 exec 0 0K 1K 78643K 410 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 117 111K 120K 78643K 4673 0 0 UVM aobj 56 4K 4K 78643K 63 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 418 0 0 NDP 19 0K 0K 78643K 97 0 0 temp 206 3556K 4196K 78643K 57051 0 0 kqueue 0 0K 0K 78643K 4 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 22 0 13 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 485 0 483 1 0 1 1 0 8 0 rtentry 112 143 0 96 2 0 2 2 0 8 0 unpcb 120 982 0 972 2 1 1 2 0 8 0 syncache 264 10 0 10 3 3 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 7084 0 7084 3 3 0 2 0 8 0 tcpcb 544 594 0 590 1 0 1 1 0 8 0 inpcb 280 1845 0 1836 2 0 2 2 0 8 1 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 22 0 19 1 0 1 1 0 8 0 pkpcb 40 1 0 1 1 1 0 1 0 8 0 ppxss 1128 34 0 34 2 1 1 1 0 8 1 pffrag 232 16 0 16 2 2 0 1 0 482 0 pffrnode 88 16 0 16 2 2 0 1 0 8 0 pffrent 40 421 0 421 2 2 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 84 0 36 1 0 1 1 0 8 0 pfstkey 112 84 0 36 2 0 2 2 0 8 0 pfstate 328 84 0 36 5 0 5 5 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 3 0 2 3 2 1 3 0 8 0 art_heap4 256 675 0 450 23 7 16 16 0 8 1 art_table 32 678 0 452 3 0 3 3 0 8 0 art_node 16 141 0 98 1 0 1 1 0 8 0 sysvmsgpl 40 141 0 136 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 222 0 212 1 0 1 1 0 8 0 shmpl 112 61 0 7 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2976 0 1569 46 0 46 46 0 8 0 ffsino 272 2976 0 1569 95 0 95 95 0 8 0 nchpl 144 4799 0 4338 61 40 21 61 0 8 0 uvmvnodes 72 3647 0 0 67 0 67 67 0 8 0 vnodes 208 3647 0 0 192 0 192 192 0 8 0 namei 1024 15263 0 15262 2 1 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 9 0 0 2 0 2 2 0 8 0 vmpool 552 11 0 2 1 0 1 1 0 8 0 scsiplug 64 3 0 3 2 2 0 1 0 8 0 scxspl 192 14313 0 14312 19 16 3 7 0 8 2 plimitpl 152 77 0 69 1 0 1 1 0 8 0 sigapl 432 1213 0 1198 3 1 2 3 0 8 0 futexpl 56 22967 0 22967 1 0 1 1 0 8 1 knotepl 112 368 0 349 2 1 1 2 0 8 0 kqueuepl 104 251 0 249 1 0 1 1 0 8 0 pipepl 112 692 0 671 2 0 2 2 0 8 0 fdescpl 488 1214 0 1198 3 0 3 3 0 8 0 filepl 152 10367 0 10263 9 4 5 6 0 8 1 lockfpl 104 384 0 383 1 0 1 1 0 8 0 lockfspl 48 136 0 135 1 0 1 1 0 8 0 sessionpl 112 27 0 16 1 0 1 1 0 8 0 pgrppl 48 32 0 21 1 0 1 1 0 8 0 ucredpl 96 1209 0 1200 1 0 1 1 0 8 0 zombiepl 144 1198 0 1198 2 1 1 1 0 8 1 processpl 896 1231 0 1198 4 0 4 4 0 8 0 procpl 632 3506 0 3463 5 0 5 5 0 8 0 srpgc 64 14 0 14 5 4 1 1 0 8 1 sosppl 128 11 0 11 2 2 0 1 0 8 0 sockpl 384 3323 0 3302 9 5 4 6 0 8 1 mcl64k 65536 17 0 0 3 0 3 3 0 8 0 mcl16k 16384 7 0 0 1 0 1 1 0 8 0 mcl12k 12288 12 0 0 2 0 2 2 0 8 0 mcl9k 9216 4 0 0 1 0 1 1 0 8 0 mcl8k 8192 13 0 0 2 0 2 2 0 8 0 mcl4k 4096 12 0 0 2 0 2 2 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 239 0 0 28 0 28 28 0 8 0 mtagpl 80 20 0 0 1 0 1 1 0 8 0 mbufpl 256 313 0 0 16 0 16 16 0 8 0 bufpl 256 9606 0 2558 441 0 441 441 0 8 0 anonpl 16 156578 0 143169 88 5 83 85 0 124 10 amapchunkpl 152 9389 0 9280 32 20 12 12 0 158 7 amappl16 192 5916 0 4912 67 10 57 62 0 8 6 amappl15 184 121 0 121 1 1 0 1 0 8 0 amappl14 176 534 0 530 2 1 1 1 0 8 0 amappl13 168 116 0 116 1 1 0 1 0 8 0 amappl12 160 38 0 37 2 1 1 1 0 8 0 amappl11 152 204 0 189 1 0 1 1 0 8 0 amappl10 144 53 0 47 1 0 1 1 0 8 0 amappl9 136 804 0 795 1 0 1 1 0 8 0 amappl8 128 344 0 310 2 0 2 2 0 8 0 amappl7 120 108 0 98 1 0 1 1 0 8 0 amappl6 112 214 0 201 1 0 1 1 0 8 0 amappl5 104 226 0 212 1 0 1 1 0 8 0 amappl4 96 1236 0 1205 1 0 1 1 0 8 0 amappl3 88 887 0 877 1 0 1 1 0 8 0 amappl2 80 8290 0 8219 3 1 2 3 0 8 0 amappl1 72 38200 0 37754 26 16 10 20 0 8 0 amappl 80 3896 0 3853 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 62 0 7 1 0 1 1 0 8 0 uaddrrnd 24 1225 0 1198 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1225 0 1198 1 0 1 1 0 8 0 vmmpekpl 168 13821 0 13788 2 0 2 2 0 8 0 vmmpepl 168 161105 0 158949 180 47 133 133 0 357 33 vmsppl 368 1213 0 1198 2 0 2 2 0 8 0 pdppl 4096 2457 0 2409 9 2 7 7 0 8 0 pvpl 32 426284 0 409703 224 25 199 201 0 265 31 pmappl 232 1224 0 1200 3 1 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 635 0 15 18 0 18 18 0 8 0