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 * 91225 44363 0 0 0x4000000 1K syz-executor.1 347909 1237 0 0 0 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(ffffffff82206253,ffffffff821ceff6,3b7,ffffffff821e5027) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800020f58eb8,4,ffff800020f58f88,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000a92000,840100,ffff800000a92058,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000ace800,ffff800000a92000,ffff800020f59260,0) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000ace800,ffff800000a92000,ffff800020f59260,0) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_sifaddr(8020690c,ffff800020f59250,ffff800000ace800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800020f59250,ffff800000ace800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd807bad1058,8020690c,ffff800020f59250,ffff800020abe508) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020abe508,ffff800020f59368,ffff800020f593b0) at sys_ioctl+0x5b9 syscall(ffff800020f59430) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020f59430) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,739419f7010) at Xsyscall+0x128 end of kernel end trace frame: 0x73bab85cbc0, 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(ffffffff82206253,ffffffff821ceff6,3b7,ffffffff821e5027) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800020f58eb8,4,ffff800020f58f88,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000a92000,840100,ffff800000a92058,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000ace800,ffff800000a92000,ffff800020f59260,0) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000ace800,ffff800000a92000,ffff800020f59260,0) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_sifaddr(8020690c,ffff800020f59250,ffff800000ace800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800020f59250,ffff800000ace800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd807bad1058,8020690c,ffff800020f59250,ffff800020abe508) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020abe508,ffff800020f59368,ffff800020f593b0) at sys_ioctl+0x5b9 syscall(ffff800020f59430) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020f59430) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,739419f7010) at Xsyscall+0x128 end of kernel end trace frame: 0x73bab85cbc0, count: -12 ddb{1}> show registers rdi 0xffffffff81923337 db_enter+0x17 rsi 0x40c8 __ALIGN_SIZE+0x30c8 rbp 0xffff800020f58cd0 rbx 0xffff800020f58d80 rdx 0x40c9 __ALIGN_SIZE+0x30c9 rcx 0xffff800022d88000 rax 0xffff800022d88000 r8 0xffffffff8130092f kprintf+0x16f r9 0x1 r10 0x25 r11 0xec3cf86da3a74395 r12 0x3000000008 r13 0xffff800020f58ce0 r14 0x100 r15 0x1 rip 0xffffffff81923338 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020f58cc0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=91225 stat=onproc flags process=0 proc=4000000 pri=81, usrpri=81, nice=20 forw=0xffffffffffffffff, list=0xffff800020abe018,0xffffffff82676510 process=0xffff800020a8a010 user=0xffff800020f54000, vmspace=0xfffffd807f00b730 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=2, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 44363 311113 5877 0 2 0 syz-executor.1 *44363 91225 5877 0 7 0x4000000 syz-executor.1 1237 347909 9097 0 7 0 syz-executor.0 1237 232569 9097 0 3 0x4000080 ttyout syz-executor.0 5877 299039 77624 0 3 0x82 nanosleep syz-executor.1 9097 231323 77624 0 3 0x82 nanosleep syz-executor.0 48901 375431 0 0 3 0x14200 acct acct 19468 157069 1 0 3 0x100083 ttyin getty 14549 242800 0 0 3 0x14200 bored sosplice 77624 66521 17852 0 3 0x82 thrsleep syz-fuzzer 77624 448510 17852 0 3 0x4000082 thrsleep syz-fuzzer 77624 56221 17852 0 3 0x4000082 thrsleep syz-fuzzer 77624 385390 17852 0 3 0x4000082 thrsleep syz-fuzzer 77624 97950 17852 0 3 0x4000082 kqread syz-fuzzer 77624 315736 17852 0 3 0x4000082 thrsleep syz-fuzzer 77624 523972 17852 0 3 0x4000082 thrsleep syz-fuzzer 77624 360170 17852 0 3 0x4000082 thrsleep syz-fuzzer 77624 410574 17852 0 3 0x4000082 thrsleep syz-fuzzer 77624 217059 17852 0 3 0x4000082 thrsleep syz-fuzzer 17852 46994 29528 0 3 0x10008a pause ksh 29528 71163 3090 0 3 0x92 select sshd 3090 180116 1 0 3 0x80 select sshd 70582 472012 49799 74 3 0x100092 bpf pflogd 49799 65734 1 0 3 0x80 netio pflogd 80008 23068 37074 73 3 0x100090 kqread syslogd 37074 72922 1 0 3 0x100082 netio syslogd 83319 247318 1 77 3 0x100090 poll dhclient 82170 435690 1 0 3 0x80 poll dhclient 91340 215718 0 0 2 0x14200 zerothread 13385 390278 0 0 3 0x14200 aiodoned aiodoned 73436 511479 0 0 3 0x14200 syncer update 47238 203574 0 0 3 0x14200 cleaner cleaner 75782 134564 0 0 3 0x14200 reaper reaper 26341 382323 0 0 3 0x14200 pgdaemon pagedaemon 85288 169952 0 0 3 0x14200 bored crynlk 49074 364359 0 0 3 0x14200 bored crypto 80553 255710 0 0 3 0x40014200 acpi0 acpi0 9289 207144 0 0 3 0x40014200 idle1 36853 297574 0 0 3 0x14200 bored softnet 91781 53837 0 0 2 0x14200 systqmp 54987 246812 0 0 3 0x14200 bored systq 86540 72981 0 0 3 0x40014200 bored softclock 26653 309632 0 0 3 0x40014200 idle0 16182 112704 0 0 3 0x14200 bored smr 1 4767 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 44363 (syz-executor.1) thread 0xffff800020abe508 (91225) exclusive rwlock netlock r = 0 (0xffffffff8248cb28) #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 (0xffffffff826668e0) #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 9595 7092K 7989K 78643K 16614 0 0 pcb 13 10K 12K 78643K 525 0 0 rtable 110 13K 13K 78643K 1720 0 0 ifaddr 86 19K 20K 78643K 573 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1569 0 0 iov 0 0K 32K 78643K 453 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1219 77K 77K 78643K 3695 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 28 0 0 VM map 2 1K 1K 78643K 21 0 0 sem 12 0K 1K 78643K 1028 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 2751 0 0 sigio 0 0K 0K 78643K 55 0 0 proc 61 63K 83K 78643K 1328 0 0 subproc 32 2K 2K 78643K 289 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 172 0 0 in_multi 24 1K 2K 78643K 305 0 0 ether_multi 1 0K 0K 78643K 31 0 0 mrt 2 0K 0K 78643K 24 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 84 371K 371K 78643K 84 0 0 exec 0 0K 1K 78643K 705 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 118 22K 31K 78643K 10428 0 0 UVM aobj 130 4K 4K 78643K 140 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 549 0 0 NDP 21 0K 0K 78643K 178 0 0 temp 236 3561K 4200K 78643K 50881 0 0 kqueue 0 0K 0K 78643K 45 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 49 0 44 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 208 0 205 1 0 1 1 0 8 0 rtentry 112 262 0 222 2 0 2 2 0 8 0 unpcb 120 1187 0 1175 2 1 1 2 0 8 0 syncache 264 16 0 16 5 5 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 6603 0 6603 4 4 0 2 0 8 0 tcpcb 544 1523 0 1516 4 3 1 2 0 8 0 inpcb 280 3835 0 3824 33 25 8 13 0 8 7 rttmr 72 7 0 7 5 4 1 1 0 8 1 nd6 48 37 0 35 3 2 1 1 0 8 0 pkpcb 40 7 0 7 2 2 0 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 87 0 87 11 10 1 1 0 8 1 pffrag 232 51 0 51 9 9 0 1 0 482 0 pffrnode 88 51 0 51 9 9 0 1 0 8 0 pffrent 40 884 0 884 10 10 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 197 0 139 1 0 1 1 0 8 0 pfstkey 112 197 0 139 2 0 2 2 0 8 0 pfstate 328 197 0 139 8 2 6 6 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 1163 0 974 23 9 14 15 0 8 2 art_table 32 1164 0 974 2 0 2 2 0 8 0 art_node 16 255 0 219 1 0 1 1 0 8 0 sysvmsgpl 40 22 0 16 1 0 1 1 0 8 0 semapl 112 1026 0 1016 1 0 1 1 0 8 0 shmpl 112 138 0 10 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 5873 0 4476 46 0 46 46 0 8 0 ffsino 272 5873 0 4476 95 0 95 95 0 8 0 nchpl 144 10393 0 8762 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 37471 0 37471 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 19 0 19 8 7 1 1 0 8 1 scsiplug 64 7 0 7 4 4 0 1 0 8 0 scxspl 192 31143 0 31143 31 30 1 7 0 8 1 plimitpl 152 240 0 232 1 0 1 1 0 8 0 sigapl 432 2913 0 2897 3 1 2 3 0 8 0 futexpl 56 59910 0 59910 1 0 1 1 0 8 1 knotepl 112 850 0 831 4 1 3 3 0 8 2 kqueuepl 104 2204 0 2202 2 1 1 2 0 8 0 pipepl 112 1634 0 1615 5 4 1 2 0 8 0 fdescpl 488 2914 0 2897 3 0 3 3 0 8 0 filepl 152 27367 0 27259 26 15 11 14 0 8 6 lockfpl 104 856 0 855 1 0 1 1 0 8 0 lockfspl 48 295 0 294 1 0 1 1 0 8 0 sessionpl 112 40 0 29 1 0 1 1 0 8 0 pgrppl 48 104 0 93 1 0 1 1 0 8 0 ucredpl 96 2791 0 2782 1 0 1 1 0 8 0 zombiepl 144 2898 0 2898 2 1 1 1 0 8 1 processpl 896 2932 0 2898 4 0 4 4 0 8 0 procpl 632 8876 0 8831 5 0 5 5 0 8 0 srpgc 64 27 0 27 11 11 0 1 0 8 0 sosppl 128 39 0 39 9 9 0 1 0 8 0 sockpl 384 5268 0 5241 50 40 10 23 0 8 7 mcl64k 65536 1023 0 0 128 7 121 128 0 8 1 mcl16k 16384 4 0 0 1 0 1 1 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 14 0 0 1 0 1 1 0 8 0 mcl8k 8192 9 0 0 2 0 2 2 0 8 0 mcl4k 4096 20 0 0 3 0 3 3 0 8 1 mcl2k2 2112 8 0 0 1 0 1 1 0 8 0 mcl2k 2048 261 0 0 28 8 20 28 0 8 0 mtagpl 80 58 0 0 2 0 2 2 0 8 0 mbufpl 256 1417 0 0 71 0 71 71 0 8 0 bufpl 256 14326 0 7278 441 0 441 441 0 8 0 anonpl 16 328210 0 311263 149 77 72 88 0 124 0 amapchunkpl 152 19603 0 19487 46 39 7 12 0 158 0 amappl16 192 14636 0 13647 145 86 59 62 0 8 8 amappl15 184 885 0 880 1 0 1 1 0 8 0 amappl14 176 292 0 289 1 0 1 1 0 8 0 amappl13 168 188 0 187 6 5 1 1 0 8 0 amappl12 160 46 0 46 4 4 0 1 0 8 0 amappl11 152 1016 0 1001 1 0 1 1 0 8 0 amappl10 144 386 0 381 1 0 1 1 0 8 0 amappl9 136 1213 0 1205 1 0 1 1 0 8 0 amappl8 128 755 0 711 3 1 2 2 0 8 0 amappl7 120 469 0 461 1 0 1 1 0 8 0 amappl6 112 994 0 984 1 0 1 1 0 8 0 amappl5 104 290 0 275 1 0 1 1 0 8 0 amappl4 96 3263 0 3228 1 0 1 1 0 8 0 amappl3 88 311 0 306 1 0 1 1 0 8 0 amappl2 80 22080 0 21990 3 1 2 3 0 8 0 amappl1 72 73951 0 73507 26 15 11 20 0 8 0 amappl 80 9390 0 9349 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 139 0 10 3 0 3 3 0 8 0 uaddrrnd 24 2933 0 2897 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2933 0 2897 1 0 1 1 0 8 0 vmmpekpl 168 27055 0 27019 2 0 2 2 0 8 0 vmmpepl 168 371389 0 369151 329 199 130 134 0 357 26 vmsppl 368 2913 0 2897 2 0 2 2 0 8 0 pdppl 4096 5873 0 5832 7 1 6 6 0 8 0 pvpl 32 964761 0 944514 347 164 183 206 0 265 9 pmappl 232 2932 0 2916 10 8 2 2 0 8 1 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 815 0 32 23 0 23 23 0 8 0