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 *395464 48152 0 0 0x4000000 1K syz-executor.0 269988 48152 0 0 0x4000000 0 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(ffffffff822085b2,ffffffff821d2c2a,3b7,ffffffff821e8dc2) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff80002156ec98,4,ffff80002156ed68,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000aa9a00,840100,ffff800000aa9a58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000ad0800,ffff800000aa9a00,ffff80002156f040,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000ad0800,ffff800000aa9a00,ffff80002156f040,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_sifaddr(8020690c,ffff80002156f030,ffff800000ad0800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff80002156f030,ffff800000ad0800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd8065b6ec30,8020690c,ffff80002156f030,ffff800020ab0ee8) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ab0ee8,ffff80002156f148,ffff80002156f190) at sys_ioctl+0x5b9 syscall(ffff80002156f210) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff80002156f210) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,502a0333010) at Xsyscall+0x128 end of kernel end trace frame: 0x504f52e68a0, 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(ffffffff822085b2,ffffffff821d2c2a,3b7,ffffffff821e8dc2) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff80002156ec98,4,ffff80002156ed68,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000aa9a00,840100,ffff800000aa9a58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000ad0800,ffff800000aa9a00,ffff80002156f040,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000ad0800,ffff800000aa9a00,ffff80002156f040,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_sifaddr(8020690c,ffff80002156f030,ffff800000ad0800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff80002156f030,ffff800000ad0800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd8065b6ec30,8020690c,ffff80002156f030,ffff800020ab0ee8) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ab0ee8,ffff80002156f148,ffff80002156f190) at sys_ioctl+0x5b9 syscall(ffff80002156f210) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff80002156f210) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,502a0333010) at Xsyscall+0x128 end of kernel end trace frame: 0x504f52e68a0, count: -12 ddb{1}> show registers rdi 0xffffffff810d08e7 db_enter+0x17 rsi 0x4016 __ALIGN_SIZE+0x3016 rbp 0xffff80002156eab0 rbx 0xffff80002156eb60 rdx 0x4017 __ALIGN_SIZE+0x3017 rcx 0xffff800023988000 rax 0xffff800023988000 r8 0xffffffff8154309f kprintf+0x16f r9 0x1 r10 0x25 r11 0x25279cbe9d8fdd9d r12 0x3000000008 r13 0xffff80002156eac0 r14 0x100 r15 0x1 rip 0xffffffff810d08e8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80002156eaa0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=395464 stat=onproc flags process=0 proc=4000000 pri=80, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab09f8,0xffff800020ab0028 process=0xffff800020a8ae10 user=0xffff80002156a000, vmspace=0xfffffd807f00a5c0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 48152 395865 73749 0 2 0 syz-executor.0 *48152 395464 73749 0 7 0x4000000 syz-executor.0 48152 269988 73749 0 7 0x4000000 syz-executor.0 73749 386492 91672 0 3 0x82 nanosleep syz-executor.0 64323 332869 1 0 3 0x100083 ttyin getty 14093 44322 0 0 3 0x14200 acct acct 6187 16574 91672 0 3 0x82 nanosleep syz-executor.1 56116 111376 0 0 3 0x14200 bored sosplice 91672 45378 4063 0 3 0x82 thrsleep syz-fuzzer 91672 192086 4063 0 3 0x4000082 nanosleep syz-fuzzer 91672 138758 4063 0 3 0x4000082 thrsleep syz-fuzzer 91672 166949 4063 0 3 0x4000082 thrsleep syz-fuzzer 91672 220267 4063 0 3 0x4000082 thrsleep syz-fuzzer 91672 469929 4063 0 3 0x4000082 kqread syz-fuzzer 91672 54159 4063 0 3 0x4000082 nanosleep syz-fuzzer 91672 497779 4063 0 3 0x4000082 thrsleep syz-fuzzer 91672 310610 4063 0 3 0x4000082 thrsleep syz-fuzzer 91672 217986 4063 0 3 0x4000082 thrsleep syz-fuzzer 4063 488109 12542 0 3 0x10008a pause ksh 12542 483584 27274 0 3 0x92 select sshd 27274 102378 1 0 3 0x80 select sshd 84701 313939 62634 74 3 0x100092 bpf pflogd 62634 98132 1 0 3 0x80 netio pflogd 54986 162731 85493 73 3 0x100090 kqread syslogd 85493 113557 1 0 3 0x100082 netio syslogd 12027 103505 1 77 3 0x100090 poll dhclient 1815 493879 1 0 3 0x80 poll dhclient 215 449996 0 0 3 0x14200 pgzero zerothread 30650 303395 0 0 3 0x14200 aiodoned aiodoned 93989 247714 0 0 3 0x14200 syncer update 16070 191624 0 0 3 0x14200 cleaner cleaner 55618 44960 0 0 3 0x14200 reaper reaper 59456 225990 0 0 3 0x14200 pgdaemon pagedaemon 30347 136881 0 0 3 0x14200 bored crynlk 44344 288031 0 0 3 0x14200 bored crypto 77771 252615 0 0 3 0x40014200 acpi0 acpi0 18825 404172 0 0 3 0x40014200 idle1 89366 37378 0 0 3 0x14200 bored softnet 94175 78626 0 0 3 0x14200 bored systqmp 78558 333130 0 0 3 0x14200 bored systq 92602 256565 0 0 3 0x40014200 bored softclock 72031 345099 0 0 3 0x40014200 idle0 78210 168912 0 0 3 0x14200 bored smr 1 197659 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 48152 (syz-executor.0) thread 0xffff800020ab0ee8 (395464) exclusive rwlock netlock r = 0 (0xffffffff824d88c8) #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 (0xffffffff8263a6d8) #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 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9580 6430K 6936K 78643K 18595 0 0 pcb 13 8K 8K 78643K 268 0 0 rtable 112 13K 14K 78643K 1819 0 0 ifaddr 84 17K 19K 78643K 464 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1557 0 0 iov 0 0K 16K 78643K 293 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1211 76K 77K 78643K 4011 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 21 0 0 VM map 2 1K 1K 78643K 8 0 0 sem 12 0K 1K 78643K 5455 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 3429 0 0 sigio 0 0K 0K 78643K 444 0 0 proc 62 63K 95K 78643K 1058 0 0 subproc 32 2K 2K 78643K 206 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 2040 0 0 in_multi 18 1K 3K 78643K 1545 0 0 ether_multi 1 0K 0K 78643K 12 0 0 mrt 0 0K 0K 78643K 11 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 542 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 106 22K 37K 78643K 11734 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 0K 78643K 316 0 0 NDP 20 0K 0K 78643K 123 0 0 temp 228 3561K 3638K 78643K 94398 0 0 kqueue 0 0K 0K 78643K 11 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 35 0 30 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 140 0 138 1 0 1 1 0 8 0 rtentry 112 494 0 454 2 0 2 2 0 8 0 unpcb 120 1099 0 1087 2 1 1 2 0 8 0 syncache 264 13 0 13 6 5 1 1 0 8 1 tcpqe 32 6456 0 6456 1 1 0 1 0 8 0 tcpcb 544 4090 0 4084 13 10 3 3 0 8 2 inpcb 280 5492 0 5481 11 8 3 4 0 8 2 rttmr 72 2 0 2 2 2 0 1 0 8 0 nd6 48 28 0 27 2 1 1 1 0 8 0 pkpcb 40 4 0 4 3 3 0 1 0 8 0 ppxss 1128 48 0 48 8 7 1 1 0 8 1 pffrag 232 12 0 12 5 5 0 1 0 482 0 pffrnode 88 12 0 12 5 5 0 1 0 8 0 pffrent 40 24 0 24 5 5 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 98 0 68 1 0 1 1 0 8 0 pfstkey 112 98 0 68 2 0 2 2 0 8 0 pfstate 328 98 0 68 5 1 4 4 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 919 0 748 19 6 13 15 0 8 0 art_table 32 922 0 750 2 0 2 2 0 8 0 art_node 16 209 0 177 1 0 1 1 0 8 0 sysvmsgpl 40 57 0 41 1 0 1 1 0 8 0 semupl 112 6 0 6 1 1 0 1 0 8 0 semapl 112 5453 0 5443 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 7339 0 5929 46 0 46 46 0 8 0 ffsino 272 7339 0 5929 96 1 95 95 0 8 0 nchpl 144 13735 0 12125 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 36991 0 36991 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 6 0 6 3 3 0 1 0 8 0 scsiplug 64 2 0 2 2 2 0 1 0 8 0 scxspl 192 34860 0 34860 20 19 1 7 0 8 1 plimitpl 152 110 0 102 1 0 1 1 0 8 0 sigapl 432 3602 0 3587 3 1 2 3 0 8 0 futexpl 56 87713 0 87713 1 0 1 1 0 8 1 knotepl 112 522 0 503 4 3 1 3 0 8 0 kqueuepl 104 448 0 446 1 0 1 1 0 8 0 pipepl 112 2254 0 2235 9 8 1 2 0 8 0 fdescpl 488 3603 0 3587 3 0 3 3 0 8 0 filepl 152 25160 0 25056 15 9 6 6 0 8 1 lockfpl 104 1642 0 1641 1 0 1 1 0 8 0 lockfspl 48 638 0 637 1 0 1 1 0 8 0 sessionpl 112 31 0 20 1 0 1 1 0 8 0 pgrppl 48 587 0 576 1 0 1 1 0 8 0 ucredpl 96 1571 0 1561 1 0 1 1 0 8 0 zombiepl 144 3587 0 3586 3 2 1 1 0 8 0 processpl 896 3620 0 3586 4 0 4 4 0 8 0 procpl 632 10411 0 10366 9 4 5 5 0 8 1 srpgc 64 24 0 24 6 6 0 1 0 8 0 sosppl 128 24 0 24 8 7 1 1 0 8 1 sockpl 384 6756 0 6731 18 13 5 8 0 8 2 mcl64k 65536 12 0 0 2 0 2 2 0 8 0 mcl16k 16384 9 0 0 2 0 2 2 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 6 0 0 1 0 1 1 0 8 0 mcl8k 8192 11 0 0 2 0 2 2 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 6 0 0 1 0 1 1 0 8 0 mcl2k 2048 184 0 0 22 1 21 22 0 8 1 mtagpl 80 20 0 0 1 0 1 1 0 8 0 mbufpl 256 323 0 0 13 0 13 13 0 8 0 bufpl 256 13323 0 6275 441 0 441 441 0 8 0 anonpl 16 332172 0 316199 130 62 68 83 0 124 0 amapchunkpl 152 21256 0 21136 46 38 8 19 0 158 1 amappl16 192 16520 0 15607 109 56 53 58 0 8 6 amappl14 176 1344 0 1341 2 1 1 1 0 8 0 amappl13 168 171 0 169 3 2 1 1 0 8 0 amappl12 160 881 0 879 1 0 1 1 0 8 0 amappl11 152 511 0 496 1 0 1 1 0 8 0 amappl10 144 443 0 437 1 0 1 1 0 8 0 amappl9 136 760 0 752 1 0 1 1 0 8 0 amappl8 128 285 0 258 1 0 1 1 0 8 0 amappl7 120 501 0 492 1 0 1 1 0 8 0 amappl6 112 519 0 509 1 0 1 1 0 8 0 amappl5 104 1084 0 1066 1 0 1 1 0 8 0 amappl4 96 3549 0 3517 1 0 1 1 0 8 0 amappl3 88 1746 0 1741 1 0 1 1 0 8 0 amappl2 80 27285 0 27211 4 2 2 3 0 8 0 amappl1 72 90154 0 89716 26 16 10 20 0 8 0 amappl 80 10834 0 10792 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 129 0 0 3 0 3 3 0 8 0 uaddrrnd 24 3609 0 3587 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3609 0 3587 1 0 1 1 0 8 0 vmmpekpl 168 30147 0 30115 2 0 2 2 0 8 0 vmmpepl 168 444083 0 442037 277 144 133 137 0 357 35 vmsppl 368 3602 0 3587 2 0 2 2 0 8 0 pdppl 4096 7225 0 7186 7 1 6 6 0 8 0 pvpl 32 902334 0 883034 288 118 170 201 0 265 7 pmappl 232 3608 0 3593 5 4 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 634 0 25 18 0 18 18 0 8 0