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 86926 47566 0 0 0 0 syz-executor.1 *507959 47566 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(ffffffff822084c3,ffffffff821d1149,3b7,ffffffff821e7217) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff8000239869f8,4,ffff800023986ac8,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000cb8b00,840100,ffff800000cb8b58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000ba7800,ffff800000cb8b00,ffff800023986da0,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000ba7800,ffff800000cb8b00,ffff800023986da0,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_sifaddr(8020690c,ffff800023986d90,ffff800000ba7800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800023986d90,ffff800000ba7800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd8063e48ad8,8020690c,ffff800023986d90,ffff800020ab13d8) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ab13d8,ffff800023986ea8,ffff800023986ef0) at sys_ioctl+0x5b9 syscall(ffff800023986f70) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023986f70) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,5a712155010) at Xsyscall+0x128 end of kernel end trace frame: 0x5a9e90c2740, 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(ffffffff822084c3,ffffffff821d1149,3b7,ffffffff821e7217) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff8000239869f8,4,ffff800023986ac8,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000cb8b00,840100,ffff800000cb8b58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000ba7800,ffff800000cb8b00,ffff800023986da0,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000ba7800,ffff800000cb8b00,ffff800023986da0,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_sifaddr(8020690c,ffff800023986d90,ffff800000ba7800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800023986d90,ffff800000ba7800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd8063e48ad8,8020690c,ffff800023986d90,ffff800020ab13d8) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ab13d8,ffff800023986ea8,ffff800023986ef0) at sys_ioctl+0x5b9 syscall(ffff800023986f70) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023986f70) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,5a712155010) at Xsyscall+0x128 end of kernel end trace frame: 0x5a9e90c2740, count: -12 ddb{1}> show registers rdi 0xffffffff82030057 db_enter+0x17 rsi 0x4a9c __ALIGN_SIZE+0x3a9c rbp 0xffff800023986810 rbx 0xffff8000239868c0 rdx 0x4a9d __ALIGN_SIZE+0x3a9d rcx 0xffff800020b56000 rax 0xffff800020b56000 r8 0xffffffff81f4bdef kprintf+0x16f r9 0x1 r10 0x25 r11 0xab9fdcad4a3551f r12 0x3000000008 r13 0xffff800023986820 r14 0x100 r15 0x1 rip 0xffffffff82030058 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023986800 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=507959 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab1650,0xffffffff82677a30 process=0xffff800020add880 user=0xffff800023982000, vmspace=0xfffffd807f00a2e0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 47566 86926 91058 0 7 0 syz-executor.1 *47566 507959 91058 0 7 0x4000000 syz-executor.1 91058 436938 16669 0 3 0x82 nanosleep syz-executor.1 57173 198201 16669 0 3 0x2 biowait syz-executor.0 50738 127136 0 0 3 0x14200 acct acct 81954 485196 1 0 3 0x100083 ttyin getty 905 51876 0 0 3 0x14200 bored sosplice 16669 341447 17859 0 3 0x82 thrsleep syz-fuzzer 16669 339400 17859 0 3 0x4000082 nanosleep syz-fuzzer 16669 489144 17859 0 3 0x4000082 thrsleep syz-fuzzer 16669 329159 17859 0 3 0x4000082 nanosleep syz-fuzzer 16669 78364 17859 0 3 0x4000082 kqread syz-fuzzer 16669 156570 17859 0 3 0x4000082 thrsleep syz-fuzzer 16669 301023 17859 0 3 0x4000082 thrsleep syz-fuzzer 16669 341078 17859 0 3 0x4000082 thrsleep syz-fuzzer 16669 355560 17859 0 3 0x4000082 thrsleep syz-fuzzer 16669 425127 17859 0 3 0x4000082 thrsleep syz-fuzzer 17859 364287 40242 0 3 0x10008a pause ksh 40242 451817 10627 0 3 0x92 select sshd 10627 413440 1 0 3 0x80 select sshd 42903 164375 77140 74 3 0x100092 bpf pflogd 77140 194794 1 0 3 0x80 netio pflogd 58377 221092 40942 73 3 0x100090 kqread syslogd 40942 10088 1 0 3 0x100082 netio syslogd 22567 82598 1 77 2 0x100090 dhclient 57120 357505 1 0 2 0x80 dhclient 43083 144262 0 0 3 0x14200 pgzero zerothread 30720 499863 0 0 3 0x14200 aiodoned aiodoned 96736 409409 0 0 3 0x14200 syncer update 29228 297365 0 0 3 0x14200 cleaner cleaner 91685 485274 0 0 3 0x14200 reaper reaper 96809 110959 0 0 3 0x14200 pgdaemon pagedaemon 56690 484193 0 0 3 0x14200 bored crynlk 36232 70838 0 0 3 0x14200 bored crypto 27446 468461 0 0 3 0x40014200 acpi0 acpi0 21364 22713 0 0 3 0x40014200 idle1 50575 9856 0 0 3 0x14200 bored softnet 47301 341989 0 0 3 0x14200 bored systqmp 12532 305547 0 0 3 0x14200 bored systq 49271 15032 0 0 3 0x40014200 bored softclock 35373 197084 0 0 3 0x40014200 idle0 10441 314236 0 0 3 0x14200 bored smr 1 400655 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 47566 (syz-executor.1) thread 0xffff800020ab13d8 (507959) exclusive rwlock netlock r = 0 (0xffffffff8248fc78) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 in_ioctl_sifaddr+0x69 #2 in_ioctl+0x1e7 sys/netinet/in.c:231 #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 (0xffffffff82649290) #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 57173 (syz-executor.0) thread 0xffff800020ab1160 (198201) exclusive rrwlock inode r = 0 (0xfffffd806f744098) #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 (0xfffffd806d86a0a8) #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 9610 6467K 8339K 78643K 25125 0 0 pcb 13 10K 12K 78643K 801 0 0 rtable 99 12K 13K 78643K 2115 0 0 ifaddr 436 106K 106K 78643K 1022 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1641 0 0 iov 0 0K 24K 78643K 598 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1215 76K 77K 78643K 5563 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 39 0 0 VM map 20 10K 10K 78643K 32 0 0 sem 12 0K 1K 78643K 673 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 3097 0 0 sigio 0 0K 0K 78643K 48 0 0 proc 61 63K 83K 78643K 1329 0 0 subproc 32 2K 2K 78643K 306 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 257 0 0 in_multi 15 0K 2K 78643K 428 0 0 ether_multi 1 0K 0K 78643K 45 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 156 689K 689K 78643K 156 0 0 exec 0 0K 1K 78643K 686 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 142 169K 179K 78643K 12091 0 0 UVM aobj 130 4K 4K 78643K 130 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 756 0 0 NDP 22 0K 0K 78643K 209 0 0 temp 242 3565K 3642K 78643K 99159 0 0 kqueue 0 0K 0K 78643K 35 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 62 0 56 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 252 0 250 1 0 1 1 0 8 0 rtentry 112 376 0 343 2 0 2 2 0 8 0 unpcb 120 2259 0 2242 5 4 1 2 0 8 0 syncache 264 16 0 16 7 7 0 1 0 8 0 sackhl 24 2 0 2 2 2 0 1 0 8 0 tcpqe 32 55 0 55 4 4 0 1 0 8 0 tcpcb 544 2680 0 2676 23 22 1 13 0 8 0 inpcb 280 5705 0 5697 22 20 2 9 0 8 1 rttmr 72 5 0 4 4 3 1 1 0 8 0 ip6q 72 5 0 4 4 3 1 1 0 8 0 ip6af 40 11 0 10 4 3 1 1 0 8 0 nd6 48 53 0 53 1 0 1 1 0 8 1 pkpcb 40 10 0 10 4 4 0 1 0 8 0 ppxss 1128 93 0 93 5 5 0 1 0 8 0 pffrag 232 66 0 66 12 11 1 1 0 482 1 pffrnode 88 66 0 66 12 11 1 1 0 8 1 pffrent 40 2309 0 2309 12 11 1 1 0 8 1 pfosfp 40 846 0 846 5 5 0 5 0 8 0 pfosfpen 112 1428 0 1428 21 21 0 21 0 8 0 pfstitem 24 232 0 183 1 0 1 1 0 8 0 pfstkey 112 233 0 184 3 0 3 3 0 8 0 pfstate 328 233 0 184 7 0 7 7 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 5 0 3 5 3 2 3 0 8 0 art_heap4 256 1582 0 1412 25 9 16 16 0 8 1 art_table 32 1587 0 1415 3 0 3 3 0 8 0 art_node 16 369 0 339 1 0 1 1 0 8 0 sysvmsgpl 40 55 0 30 1 0 1 1 0 8 0 semupl 112 3 0 3 2 2 0 1 0 8 0 semapl 112 671 0 661 1 0 1 1 0 8 0 shmpl 112 128 0 0 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 6055 0 4641 46 0 46 46 0 8 0 ffsino 272 6055 0 4641 95 0 95 95 0 8 0 nchpl 144 10986 0 10490 61 40 21 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 51702 0 51701 2 1 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 18 0 0 3 0 3 3 0 8 0 vmpool 552 30 0 12 5 3 2 2 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 33193 0 33192 26 24 2 7 0 8 1 plimitpl 152 254 0 246 1 0 1 1 0 8 0 sigapl 432 3250 0 3235 3 1 2 3 0 8 0 futexpl 56 98448 0 98448 2 1 1 1 0 8 1 knotepl 112 808 0 789 4 3 1 3 0 8 0 kqueuepl 104 1931 0 1929 7 6 1 4 0 8 0 pipepl 112 1770 0 1751 4 3 1 2 0 8 0 fdescpl 488 3251 0 3235 3 0 3 3 0 8 0 filepl 152 35738 0 35637 47 41 6 14 0 8 2 lockfpl 104 1062 0 1061 1 0 1 1 0 8 0 lockfspl 48 355 0 354 1 0 1 1 0 8 0 sessionpl 112 35 0 24 1 0 1 1 0 8 0 pgrppl 48 1144 0 1133 1 0 1 1 0 8 0 ucredpl 96 7913 0 7902 1 0 1 1 0 8 0 zombiepl 144 3235 0 3235 3 2 1 1 0 8 1 processpl 896 3268 0 3235 4 0 4 4 0 8 0 procpl 632 10468 0 10425 7 2 5 5 0 8 1 srpgc 64 21 0 21 8 7 1 1 0 8 1 sosppl 128 49 0 49 10 10 0 1 0 8 0 sockpl 384 8274 0 8247 39 34 5 15 0 8 1 mcl64k 65536 452 0 0 50 16 34 34 0 8 0 mcl16k 16384 17 0 0 3 0 3 3 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 17 0 0 2 0 2 2 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 18 0 0 3 0 3 3 0 8 0 mcl2k2 2112 17 0 0 2 0 2 2 0 8 0 mcl2k 2048 164 0 0 20 1 19 20 0 8 0 mtagpl 80 54 0 0 1 0 1 1 0 8 0 mbufpl 256 548 0 0 23 0 23 23 0 8 0 bufpl 256 14681 0 7633 441 0 441 441 0 8 0 anonpl 16 391379 0 371333 167 69 98 98 0 124 15 amapchunkpl 152 23014 0 22881 43 33 10 13 0 158 3 amappl16 192 17688 0 16552 157 92 65 69 0 8 8 amappl15 184 412 0 411 1 0 1 1 0 8 0 amappl14 176 409 0 405 1 0 1 1 0 8 0 amappl13 168 494 0 494 1 1 0 1 0 8 0 amappl12 160 24 0 24 4 4 0 1 0 8 0 amappl11 152 981 0 962 1 0 1 1 0 8 0 amappl10 144 368 0 361 1 0 1 1 0 8 0 amappl9 136 844 0 838 1 0 1 1 0 8 0 amappl8 128 376 0 339 2 0 2 2 0 8 0 amappl7 120 455 0 447 1 0 1 1 0 8 0 amappl6 112 961 0 945 1 0 1 1 0 8 0 amappl5 104 327 0 313 1 0 1 1 0 8 0 amappl4 96 3985 0 3956 1 0 1 1 0 8 0 amappl3 88 643 0 636 1 0 1 1 0 8 0 amappl2 80 24533 0 24457 3 1 2 3 0 8 0 amappl1 72 82263 0 81822 25 15 10 20 0 8 0 amappl 80 11031 0 10981 4 2 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 129 0 0 3 0 3 3 0 8 0 uaddrrnd 24 3281 0 3235 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3281 0 3235 1 0 1 1 0 8 0 vmmpekpl 168 29227 0 29181 3 0 3 3 0 8 0 vmmpepl 168 417923 0 415593 246 111 135 145 0 357 25 vmsppl 368 3250 0 3235 2 0 2 2 0 8 0 pdppl 4096 6569 0 6512 9 1 8 8 0 8 0 pvpl 32 1025848 0 1003044 319 97 222 228 0 265 33 pmappl 232 3280 0 3247 5 2 3 3 0 8 1 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 711 0 56 19 0 19 19 0 8 0