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 128940 86361 0 0 0 1 syz-executor.1 *486064 86361 0 0 0x4000000 0 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(ffffffff82206eb0,ffffffff821d1847,3b7,ffffffff821e7b89) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff8000229e2e78,4,ffff8000229e2f48,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000ba0900,840100,ffff800000ba0958,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000b89000,ffff800000ba0900,ffff8000229e3250,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000b89000,ffff800000ba0900,ffff8000229e3250,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff8000229e3240,ffff800000b89000,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff8000229e3240,ffff800000b89000,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd806f6ce600,8040691a,ffff8000229e3240,ffff800020abf160) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020abf160,ffff8000229e3358,ffff8000229e33a0) at sys_ioctl+0x5b9 syscall(ffff8000229e3420) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000229e3420) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,cc238f8d280) at Xsyscall+0x128 end of kernel end trace frame: 0xcc4586078e0, 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic kernel diagnostic assertion "cifp != NULL" failed: file "/syzkaller/managers/multicore/kernel/sys/net/route.c", line 951 ddb{0}> 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(ffffffff82206eb0,ffffffff821d1847,3b7,ffffffff821e7b89) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff8000229e2e78,4,ffff8000229e2f48,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000ba0900,840100,ffff800000ba0958,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000b89000,ffff800000ba0900,ffff8000229e3250,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000b89000,ffff800000ba0900,ffff8000229e3250,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff8000229e3240,ffff800000b89000,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff8000229e3240,ffff800000b89000,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd806f6ce600,8040691a,ffff8000229e3240,ffff800020abf160) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020abf160,ffff8000229e3358,ffff8000229e33a0) at sys_ioctl+0x5b9 syscall(ffff8000229e3420) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000229e3420) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,cc238f8d280) at Xsyscall+0x128 end of kernel end trace frame: 0xcc4586078e0, count: -12 ddb{0}> show registers rdi 0xffffffff8205b317 db_enter+0x17 rsi 0x32ad __ALIGN_SIZE+0x22ad rbp 0xffff8000229e2c90 rbx 0xffff8000229e2d40 rdx 0x32ae __ALIGN_SIZE+0x22ae rcx 0xffff800020d84000 rax 0xffff800020d84000 r8 0xffffffff81e1baef kprintf+0x16f r9 0x1 r10 0x25 r11 0xaf23fed0352b3c85 r12 0x3000000008 r13 0xffff8000229e2ca0 r14 0x100 r15 0x1 rip 0xffffffff8205b318 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000229e2c80 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=486064 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020abe9f8,0xffffffff826700d0 process=0xffff800020adc000 user=0xffff8000229de000, vmspace=0xfffffd807f00b000 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 86361 128940 75805 0 7 0 syz-executor.1 86361 377470 75805 0 3 0x4000080 netcon syz-executor.1 86361 319145 75805 0 3 0x4000080 netcon syz-executor.1 86361 247343 75805 0 3 0x4000080 netcon syz-executor.1 *86361 486064 75805 0 7 0x4000000 syz-executor.1 31326 494120 46282 0 2 0 syz-executor.0 31326 427218 46282 0 3 0x4000080 netcon syz-executor.0 31326 220204 46282 0 3 0x4000080 netcon syz-executor.0 31326 93013 46282 0 3 0x4000080 fsleep syz-executor.0 75805 257317 47844 0 3 0x82 nanosleep syz-executor.1 46282 490316 47844 0 2 0x482 syz-executor.0 61679 359578 1 0 3 0x100083 ttyin getty 854 84056 0 0 3 0x14200 bored sosplice 47844 179948 61683 0 3 0x82 thrsleep syz-fuzzer 47844 89583 61683 0 3 0x4000082 thrsleep syz-fuzzer 47844 84928 61683 0 3 0x4000082 thrsleep syz-fuzzer 47844 221510 61683 0 3 0x4000082 thrsleep syz-fuzzer 47844 302963 61683 0 3 0x4000082 thrsleep syz-fuzzer 47844 257613 61683 0 3 0x4000082 thrsleep syz-fuzzer 47844 51772 61683 0 3 0x4000082 thrsleep syz-fuzzer 47844 421599 61683 0 3 0x4000082 kqread syz-fuzzer 47844 88454 61683 0 3 0x4000082 thrsleep syz-fuzzer 47844 351390 61683 0 3 0x4000082 thrsleep syz-fuzzer 47844 257336 61683 0 3 0x4000082 thrsleep syz-fuzzer 61683 82793 91451 0 3 0x10008a pause ksh 91451 297512 55173 0 3 0x92 select sshd 55173 232519 1 0 3 0x80 select sshd 1285 299520 33507 74 3 0x100092 bpf pflogd 33507 10752 1 0 3 0x80 netio pflogd 13817 258995 7063 73 3 0x100090 kqread syslogd 7063 312525 1 0 3 0x100082 netio syslogd 5981 176316 1 77 3 0x100090 poll dhclient 24293 270373 1 0 3 0x80 poll dhclient 62777 87584 0 0 2 0x14200 zerothread 6606 46204 0 0 3 0x14200 aiodoned aiodoned 74343 447179 0 0 3 0x14200 syncer update 21001 437875 0 0 3 0x14200 cleaner cleaner 17803 115071 0 0 3 0x14200 reaper reaper 97712 506662 0 0 3 0x14200 pgdaemon pagedaemon 11580 174331 0 0 3 0x14200 bored crynlk 35334 12557 0 0 3 0x14200 bored crypto 17678 11777 0 0 3 0x40014200 acpi0 acpi0 25364 516864 0 0 3 0x40014200 idle1 50299 450877 0 0 3 0x14200 bored softnet 7735 65654 0 0 3 0x14200 bored systqmp 74520 280371 0 0 3 0x14200 bored systq 91794 150126 0 0 3 0x40014200 bored softclock 63167 463650 0 0 3 0x40014200 idle0 77004 415868 0 0 3 0x14200 bored smr 1 238617 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 86361 (syz-executor.1) thread 0xffff800020abf160 (486064) exclusive rwlock netlock r = 0 (0xffffffff824b5838) #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 (0xffffffff82633948) #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{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9611 6529K 7728K 78643K 19372 0 0 pcb 14 12K 14K 78643K 806 0 0 rtable 135 14K 15K 78643K 2490 0 0 ifaddr 97 21K 23K 78643K 766 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1679 0 0 iov 0 0K 32K 78643K 724 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1217 76K 78K 78643K 4927 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 56 0 0 VM map 24 12K 12K 78643K 49 0 0 sem 12 0K 1K 78643K 1634 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 4233 0 0 sigio 0 0K 0K 78643K 51 0 0 proc 62 63K 95K 78643K 1766 0 0 subproc 32 2K 2K 78643K 412 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 365 0 0 in_multi 35 2K 2K 78643K 436 0 0 ether_multi 1 0K 0K 78643K 42 0 0 mrt 0 0K 0K 78643K 9 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 90 397K 397K 78643K 90 0 0 exec 0 0K 1K 78643K 891 0 0 pfkey data 0 0K 4K 78643K 4 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 164 218K 220K 78643K 19107 0 0 UVM aobj 130 5K 5K 78643K 163 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 806 0 0 NDP 22 0K 0K 78643K 238 0 0 temp 243 3561K 4195K 78643K 191324 0 0 kqueue 0 0K 0K 78643K 40 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 84 0 74 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 321 0 319 1 0 1 1 0 8 0 rtentry 112 436 0 387 2 0 2 2 0 8 0 unpcb 120 3356 0 3343 3 2 1 2 0 8 0 syncache 264 21 0 21 10 10 0 1 0 8 0 tcpqe 32 100 0 100 5 5 0 1 0 8 0 tcpcb 544 8460 0 8449 57 55 2 15 0 8 1 inpcb 280 13528 0 13512 72 69 3 13 0 8 1 rttmr 72 3 0 1 2 1 1 1 0 8 0 ip6q 72 3 0 3 2 2 0 1 0 8 0 ip6af 40 9 0 9 2 2 0 1 0 8 0 nd6 48 60 0 57 3 2 1 1 0 8 0 pkpcb 40 13 0 13 7 7 0 1 0 8 0 swfcl 56 5 0 0 1 0 1 1 0 8 0 ppxss 1128 107 0 107 32 31 1 1 0 8 1 pffrag 232 81 0 81 29 28 1 1 0 482 1 pffrnode 88 79 0 79 29 28 1 1 0 8 1 pffrent 40 1531 0 1531 30 29 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 373 0 351 1 0 1 1 0 8 0 pfstkey 112 373 0 351 2 1 1 2 0 8 0 pfstate 328 373 0 351 4 1 3 4 0 8 1 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 21 0 19 11 9 2 4 0 8 0 art_heap4 256 1946 0 1675 45 27 18 23 0 8 0 art_table 32 1967 0 1694 4 1 3 3 0 8 0 art_node 16 432 0 387 1 0 1 1 0 8 0 sysvmsgpl 40 43 0 34 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 1632 0 1622 1 0 1 1 0 8 0 shmpl 112 161 0 33 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 8380 0 6976 46 0 46 46 0 8 0 ffsino 272 8380 0 6976 98 3 95 95 0 8 0 nchpl 144 14331 0 12703 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 46115 0 46115 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 22 0 0 3 0 3 3 0 8 0 vmpool 552 47 0 25 3 1 2 2 0 8 0 scsiplug 64 5 0 5 4 4 0 1 0 8 0 scxspl 192 48166 0 48166 36 35 1 7 0 8 1 plimitpl 152 331 0 323 1 0 1 1 0 8 0 sigapl 432 4368 0 4352 3 1 2 3 0 8 0 futexpl 56 96151 0 96150 1 0 1 1 0 8 0 knotepl 112 1006 0 987 5 4 1 3 0 8 0 kqueuepl 104 1313 0 1311 8 7 1 4 0 8 0 pipepl 112 4096 0 4075 22 21 1 2 0 8 0 fdescpl 488 4369 0 4352 3 0 3 3 0 8 0 filepl 152 44184 0 44064 76 70 6 14 0 8 1 lockfpl 104 1310 0 1309 1 0 1 1 0 8 0 lockfspl 48 436 0 435 1 0 1 1 0 8 0 sessionpl 112 41 0 30 1 0 1 1 0 8 0 pgrppl 48 372 0 361 1 0 1 1 0 8 0 ucredpl 96 4919 0 4910 1 0 1 1 0 8 0 zombiepl 144 4355 0 4355 2 1 1 1 0 8 1 processpl 896 4388 0 4355 4 0 4 4 0 8 0 procpl 632 17154 0 17104 6 1 5 6 0 8 0 srpgc 64 34 0 34 13 12 1 1 0 8 1 sosppl 128 51 0 51 19 19 0 1 0 8 0 sockpl 384 17423 0 17392 119 114 5 22 0 8 1 mcl64k 65536 279 0 0 33 13 20 33 0 8 1 mcl16k 16384 15 0 0 2 0 2 2 0 8 0 mcl12k 12288 20 0 0 2 0 2 2 0 8 0 mcl9k 9216 19 0 0 2 0 2 2 0 8 0 mcl8k 8192 25 0 0 4 1 3 3 0 8 0 mcl4k 4096 23 0 0 3 1 2 3 0 8 0 mcl2k2 2112 8 0 0 1 0 1 1 0 8 0 mcl2k 2048 186 0 0 21 5 16 21 0 8 0 mtagpl 80 85 0 0 1 0 1 1 0 8 0 mbufpl 256 1047 0 0 46 0 46 46 0 8 0 bufpl 256 22770 0 15722 441 0 441 441 0 8 0 anonpl 16 567014 0 551077 263 183 80 89 0 124 2 amapchunkpl 152 37105 0 36980 67 61 6 13 0 158 0 amappl16 192 26248 0 25213 289 228 61 64 0 8 8 amappl15 184 189 0 188 2 1 1 1 0 8 0 amappl14 176 1127 0 1123 2 1 1 1 0 8 0 amappl13 168 662 0 661 1 0 1 1 0 8 0 amappl12 160 348 0 346 2 1 1 1 0 8 0 amappl11 152 418 0 403 1 0 1 1 0 8 0 amappl10 144 1207 0 1202 1 0 1 1 0 8 0 amappl9 136 1126 0 1119 1 0 1 1 0 8 0 amappl8 128 711 0 663 2 0 2 2 0 8 0 amappl7 120 1304 0 1292 1 0 1 1 0 8 0 amappl6 112 393 0 380 1 0 1 1 0 8 0 amappl5 104 622 0 608 1 0 1 1 0 8 0 amappl4 96 3856 0 3819 1 0 1 1 0 8 0 amappl3 88 2063 0 2051 1 0 1 1 0 8 0 amappl2 80 33381 0 33299 4 2 2 3 0 8 0 amappl1 72 111466 0 110992 25 15 10 20 0 8 0 amappl 80 17810 0 17751 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 162 0 33 3 0 3 3 0 8 0 uaddrrnd 24 4416 0 4352 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 4416 0 4352 1 0 1 1 0 8 0 vmmpekpl 168 50566 0 50526 3 0 3 3 0 8 0 vmmpepl 168 573591 0 571216 604 460 144 161 0 357 36 vmsppl 368 4368 0 4352 2 0 2 2 0 8 0 pdppl 4096 8839 0 8776 10 1 9 9 0 8 1 pvpl 32 1432955 0 1413702 568 378 190 212 0 265 13 pmappl 232 4415 0 4377 5 2 3 3 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 782 0 119 20 0 20 20 0 8 0