g Ăg Ă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 *470360 96617 0 0 0x4000000 0 syz-executor.1 33188 31367 0 0x2 0x480 1 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(ffffffff8220674d,ffffffff821d1f2b,3b7,ffffffff821e7e68) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800024daaeb8,4,ffff800024daaf88,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000b19000,840100,ffff800000b19058,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000aec800,ffff800000b19000,ffff800024dab260,0) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000aec800,ffff800000b19000,ffff800024dab260,0) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_sifaddr(8020690c,ffff800024dab250,ffff800000aec800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800024dab250,ffff800000aec800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd8064414c28,8020690c,ffff800024dab250,ffff800020ab0c70) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ab0c70,ffff800024dab368,ffff800024dab3b0) at sys_ioctl+0x5b9 syscall(ffff800024dab430) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800024dab430) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,28bbe909010) at Xsyscall+0x128 end of kernel end trace frame: 0x28dc54c0420, 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(ffffffff8220674d,ffffffff821d1f2b,3b7,ffffffff821e7e68) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff800024daaeb8,4,ffff800024daaf88,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000b19000,840100,ffff800000b19058,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000aec800,ffff800000b19000,ffff800024dab260,0) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000aec800,ffff800000b19000,ffff800024dab260,0) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_sifaddr(8020690c,ffff800024dab250,ffff800000aec800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800024dab250,ffff800000aec800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd8064414c28,8020690c,ffff800024dab250,ffff800020ab0c70) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ab0c70,ffff800024dab368,ffff800024dab3b0) at sys_ioctl+0x5b9 syscall(ffff800024dab430) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800024dab430) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,28bbe909010) at Xsyscall+0x128 end of kernel end trace frame: 0x28dc54c0420, count: -12 ddb{0}> show registers rdi 0xffffffff812d2ac7 db_enter+0x17 rsi 0x7be8 __ALIGN_SIZE+0x6be8 rbp 0xffff800024daacd0 rbx 0xffff800024daad80 rdx 0x7be9 __ALIGN_SIZE+0x6be9 rcx 0xffff800022196000 rax 0xffff800022196000 r8 0xffffffff81c6670f kprintf+0x16f r9 0x1 r10 0x25 r11 0x3434316106f2a456 r12 0x3000000008 r13 0xffff800024daace0 r14 0x100 r15 0x1 rip 0xffffffff812d2ac8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800024daacc0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=470360 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab18c8,0xffff800020ab0518 process=0xffff800020adc000 user=0xffff800024da6000, vmspace=0xfffffd807f00b5c0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 96617 399717 31367 0 2 0 syz-executor.1 *96617 470360 31367 0 7 0x4000000 syz-executor.1 29012 426821 72743 0 2 0 syz-executor.0 29012 372031 72743 0 3 0x4000080 fsleep syz-executor.0 29012 413046 72743 0 3 0x4000080 fsleep syz-executor.0 29012 361615 72743 0 3 0x4000080 fsleep syz-executor.0 29012 347648 72743 0 2 0x4000000 syz-executor.0 72743 286019 88580 0 2 0x2 syz-executor.0 31367 33188 88580 0 7 0x482 syz-executor.1 13398 398051 1 0 3 0x100083 ttyin getty 85374 502209 0 0 3 0x14200 acct acct 6655 424131 0 0 3 0x14200 bored sosplice 88580 324430 66005 0 3 0x82 thrsleep syz-fuzzer 88580 285716 66005 0 3 0x4000082 thrsleep syz-fuzzer 88580 129748 66005 0 3 0x4000082 thrsleep syz-fuzzer 88580 278229 66005 0 3 0x4000082 thrsleep syz-fuzzer 88580 387097 66005 0 3 0x4000082 thrsleep syz-fuzzer 88580 11333 66005 0 3 0x4000082 thrsleep syz-fuzzer 88580 265187 66005 0 3 0x4000082 thrsleep syz-fuzzer 88580 417559 66005 0 3 0x4000082 thrsleep syz-fuzzer 88580 162025 66005 0 3 0x4000082 thrsleep syz-fuzzer 88580 375611 66005 0 3 0x4000082 kqread syz-fuzzer 66005 241404 43574 0 3 0x10008a pause ksh 43574 119481 81437 0 3 0x92 select sshd 81437 32611 1 0 3 0x80 select sshd 3938 34462 81377 74 3 0x100092 bpf pflogd 81377 488523 1 0 3 0x80 netio pflogd 67141 302206 94745 73 3 0x100090 kqread syslogd 94745 347072 1 0 3 0x100082 netio syslogd 29774 215752 1 77 2 0x100090 dhclient 39650 407018 1 0 3 0x80 poll dhclient 53441 347957 0 0 2 0x14200 zerothread 60717 199763 0 0 3 0x14200 aiodoned aiodoned 35904 149619 0 0 3 0x14200 syncer update 78159 5427 0 0 3 0x14200 cleaner cleaner 23671 421777 0 0 3 0x14200 reaper reaper 52255 34492 0 0 3 0x14200 pgdaemon pagedaemon 86733 518791 0 0 3 0x14200 bored crynlk 14310 268002 0 0 3 0x14200 bored crypto 71402 50887 0 0 3 0x40014200 acpi0 acpi0 64699 206207 0 0 3 0x40014200 idle1 93725 60267 0 0 3 0x14200 bored softnet 73867 523507 0 0 2 0x14200 systqmp 90282 389740 0 0 3 0x14200 bored systq 76319 4465 0 0 3 0x40014200 bored softclock 63031 290496 0 0 3 0x40014200 idle0 64751 512744 0 0 3 0x14200 bored smr 1 450545 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 96617 (syz-executor.1) thread 0xffff800020ab0c70 (470360) exclusive rwlock netlock r = 0 (0xffffffff8246c0b8) #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 (0xffffffff82651848) #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 9643 7259K 8233K 78643K 18741 0 0 pcb 16 11K 13K 78643K 4100 0 0 rtable 118 13K 15K 78643K 2395 0 0 ifaddr 103 21K 23K 78643K 696 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1580 0 0 iov 0 0K 28K 78643K 1161 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1222 77K 77K 78643K 4092 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 36 0 0 VM map 2 1K 1K 78643K 12 0 0 sem 12 0K 1K 78643K 516 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 3586 0 0 sigio 0 0K 0K 78643K 52 0 0 proc 62 63K 95K 78643K 1417 0 0 subproc 32 2K 2K 78643K 292 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 1K 78643K 274 0 0 in_multi 30 2K 2K 78643K 381 0 0 ether_multi 1 0K 0K 78643K 32 0 0 mrt 0 0K 0K 78643K 18 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 704 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 22K 32K 78643K 12909 0 0 UVM aobj 130 5K 5K 78643K 147 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 669 0 0 NDP 28 1K 1K 78643K 208 0 0 temp 270 3562K 4201K 78643K 67821 0 0 kqueue 0 0K 0K 78643K 26 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 75 0 70 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 405 0 403 1 0 1 1 0 8 0 rtentry 112 339 0 296 2 0 2 2 0 8 0 unpcb 120 1193 0 1179 1 0 1 1 0 8 0 syncache 264 23 0 23 10 10 0 1 0 8 0 tcpqe 32 6167 0 6167 1 1 0 1 0 8 0 tcpcb 544 1315 0 1311 15 14 1 13 0 8 0 inpcb 280 7147 0 7134 11 9 2 9 0 8 1 rttmr 72 8 0 7 1 0 1 1 0 8 0 nd6 48 38 0 35 5 4 1 1 0 8 0 pkpcb 40 4 0 4 2 2 0 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 105 0 105 8 7 1 1 0 8 1 pffrag 232 37 0 37 12 11 1 1 0 482 1 pffrnode 88 37 0 37 12 11 1 1 0 8 1 pffrent 40 480 0 480 12 11 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 212 0 153 1 0 1 1 0 8 0 pfstkey 112 212 0 153 2 0 2 2 0 8 0 pfstate 328 212 0 153 6 1 5 6 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 9 0 8 7 6 1 3 0 8 0 art_heap4 256 1350 0 1119 32 16 16 17 0 8 0 art_table 32 1359 0 1127 5 2 3 3 0 8 1 art_node 16 330 0 288 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 2 2 1 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 514 0 504 1 0 1 1 0 8 0 shmpl 112 145 0 17 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 7038 0 5642 46 0 46 46 0 8 0 ffsino 272 7038 0 5642 94 0 94 94 0 8 0 nchpl 144 13536 0 13050 61 41 20 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 46122 0 46122 4 3 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 10 0 10 5 5 0 1 0 8 0 scsiplug 64 5 0 5 4 4 0 1 0 8 0 scxspl 192 38122 0 38122 23 22 1 7 0 8 1 plimitpl 152 259 0 251 1 0 1 1 0 8 0 sigapl 432 3744 0 3728 3 1 2 3 0 8 0 futexpl 56 73090 0 73087 1 0 1 1 0 8 0 knotepl 112 711 0 692 1 0 1 1 0 8 0 kqueuepl 104 846 0 844 4 3 1 4 0 8 0 pipepl 112 1748 0 1729 4 3 1 2 0 8 0 fdescpl 488 3745 0 3728 3 0 3 3 0 8 0 filepl 152 29690 0 29584 22 17 5 13 0 8 0 lockfpl 104 1874 0 1873 1 0 1 1 0 8 0 lockfspl 48 561 0 560 1 0 1 1 0 8 0 sessionpl 112 36 0 25 1 0 1 1 0 8 0 pgrppl 48 67 0 56 1 0 1 1 0 8 0 ucredpl 96 3143 0 3134 1 0 1 1 0 8 0 zombiepl 144 3728 0 3728 4 3 1 1 0 8 1 processpl 896 3762 0 3728 4 0 4 4 0 8 0 procpl 632 11351 0 11303 6 1 5 5 0 8 1 srpgc 64 26 0 26 10 10 0 1 0 8 0 sosppl 128 36 0 36 10 9 1 1 0 8 1 sockpl 384 8902 0 8873 23 18 5 14 0 8 2 mcl64k 65536 25 0 0 3 0 3 3 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 9 0 0 1 0 1 1 0 8 0 mcl8k 8192 8 0 0 1 0 1 1 0 8 0 mcl4k 4096 21 0 0 3 0 3 3 0 8 0 mcl2k2 2112 10 0 0 1 0 1 1 0 8 0 mcl2k 2048 173 0 0 18 5 13 18 0 8 0 mtagpl 80 80 0 0 2 0 2 2 0 8 0 mbufpl 256 562 0 0 28 0 28 28 0 8 0 bufpl 256 15193 0 8145 441 0 441 441 0 8 0 anonpl 16 384511 0 370538 160 77 83 85 0 124 13 amapchunkpl 152 25029 0 24916 41 35 6 19 0 158 0 amappl16 192 18252 0 17309 123 67 56 60 0 8 8 amappl15 184 913 0 911 1 0 1 1 0 8 0 amappl14 176 498 0 497 2 1 1 1 0 8 0 amappl13 168 90 0 90 4 4 0 1 0 8 0 amappl12 160 46 0 43 2 1 1 1 0 8 0 amappl11 152 1132 0 1117 1 0 1 1 0 8 0 amappl10 144 92 0 86 1 0 1 1 0 8 0 amappl9 136 1564 0 1558 1 0 1 1 0 8 0 amappl8 128 1137 0 1104 2 0 2 2 0 8 0 amappl7 120 183 0 173 1 0 1 1 0 8 0 amappl6 112 1155 0 1139 1 0 1 1 0 8 0 amappl5 104 297 0 283 1 0 1 1 0 8 0 amappl4 96 4000 0 3966 1 0 1 1 0 8 0 amappl3 88 364 0 359 1 0 1 1 0 8 0 amappl2 80 28859 0 28777 4 2 2 3 0 8 0 amappl1 72 90595 0 90122 26 16 10 20 0 8 0 amappl 80 11857 0 11816 1 0 1 1 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 146 0 17 3 0 3 3 0 8 0 uaddrrnd 24 3755 0 3728 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3755 0 3728 1 0 1 1 0 8 0 vmmpekpl 168 28876 0 28839 2 0 2 2 0 8 0 vmmpepl 168 465496 0 463284 258 130 128 131 0 357 27 vmsppl 368 3744 0 3728 2 0 2 2 0 8 0 pdppl 4096 7517 0 7476 7 1 6 6 0 8 0 pvpl 32 1043871 0 1026585 332 133 199 200 0 265 33 pmappl 232 3754 0 3738 6 5 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 665 0 48 18 0 18 18 0 8 0