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 9760 9490 0 0 0 0 syz-executor.1 *307061 63657 0 0 0x4000000 1K 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(ffffffff82205bea,ffffffff821ce864,3b7,ffffffff821e4aba) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff8000239d7118,4,ffff8000239d71e8,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000b21800,840100,ffff800000b21858,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000c07800,ffff800000b21800,ffff8000239d74c0,0) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:748 [inline] in_ifinit(ffff800000c07800,ffff800000b21800,ffff8000239d74c0,0) at in_ifinit+0x37a sys/netinet/in.c:679 in_ioctl_sifaddr(8020690c,ffff8000239d74b0,ffff800000c07800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:372 in_ioctl(8020690c,ffff8000239d74b0,ffff800000c07800,1) at in_ioctl+0x1e7 sys/netinet/in.c:243 ifioctl(fffffd8075837340,8020690c,ffff8000239d74b0,ffff800020abec70) at ifioctl+0xb64 sys/net/if.c:2218 sys_ioctl(ffff800020abec70,ffff8000239d75c8,ffff8000239d7610) at sys_ioctl+0x5b9 syscall(ffff8000239d7690) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000239d7690) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,c10bf9fb1b0) at Xsyscall+0x128 end of kernel end trace frame: 0xc133afd20c0, 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(ffffffff82205bea,ffffffff821ce864,3b7,ffffffff821e4aba) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff8000239d7118,4,ffff8000239d71e8,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000b21800,840100,ffff800000b21858,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000c07800,ffff800000b21800,ffff8000239d74c0,0) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:748 [inline] in_ifinit(ffff800000c07800,ffff800000b21800,ffff8000239d74c0,0) at in_ifinit+0x37a sys/netinet/in.c:679 in_ioctl_sifaddr(8020690c,ffff8000239d74b0,ffff800000c07800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:372 in_ioctl(8020690c,ffff8000239d74b0,ffff800000c07800,1) at in_ioctl+0x1e7 sys/netinet/in.c:243 ifioctl(fffffd8075837340,8020690c,ffff8000239d74b0,ffff800020abec70) at ifioctl+0xb64 sys/net/if.c:2218 sys_ioctl(ffff800020abec70,ffff8000239d75c8,ffff8000239d7610) at sys_ioctl+0x5b9 syscall(ffff8000239d7690) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000239d7690) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,c10bf9fb1b0) at Xsyscall+0x128 end of kernel end trace frame: 0xc133afd20c0, count: -12 ddb{1}> show registers rdi 0xffffffff81800b47 db_enter+0x17 rsi 0x3387 __ALIGN_SIZE+0x2387 rbp 0xffff8000239d6f30 rbx 0xffff8000239d6fe0 rdx 0x3388 __ALIGN_SIZE+0x2388 rcx 0xffff800020d4c000 rax 0xffff800020d4c000 r8 0xffffffff8149825f kprintf+0x16f r9 0x1 r10 0x25 r11 0x965dab6eef2bec0c r12 0x3000000008 r13 0xffff8000239d6f40 r14 0x100 r15 0x1 rip 0xffffffff81800b48 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000239d6f20 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=307061 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020abf8c8,0xffffffff82662210 process=0xffff800020a8a010 user=0xffff8000239d2000, vmspace=0xfffffd807f00ab80 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 9490 9760 64770 0 7 0 syz-executor.1 9490 484171 64770 0 3 0x4000080 poll syz-executor.1 9490 148396 64770 0 2 0x4000000 syz-executor.1 63657 223267 10197 0 2 0 syz-executor.0 63657 192642 10197 0 2 0x4000000 syz-executor.0 63657 311571 10197 0 3 0x4000080 fsleep syz-executor.0 *63657 307061 10197 0 7 0x4000000 syz-executor.0 10197 342949 44495 0 3 0x82 nanosleep syz-executor.0 64770 199896 44495 0 3 0x82 nanosleep syz-executor.1 17775 6223 1 0 3 0x100083 ttyin getty 51069 245066 0 0 3 0x14200 acct acct 40228 520940 0 0 3 0x14200 bored sosplice 44495 79700 34669 0 3 0x82 thrsleep syz-fuzzer 44495 356874 34669 0 3 0x4000082 thrsleep syz-fuzzer 44495 245852 34669 0 3 0x4000082 thrsleep syz-fuzzer 44495 211922 34669 0 3 0x4000082 thrsleep syz-fuzzer 44495 447938 34669 0 3 0x4000082 kqread syz-fuzzer 44495 190847 34669 0 3 0x4000082 thrsleep syz-fuzzer 44495 47194 34669 0 3 0x4000082 thrsleep syz-fuzzer 44495 295242 34669 0 3 0x4000082 thrsleep syz-fuzzer 44495 137109 34669 0 3 0x4000082 thrsleep syz-fuzzer 44495 398645 34669 0 3 0x4000082 thrsleep syz-fuzzer 34669 345472 97394 0 3 0x10008a pause ksh 97394 362539 95388 0 3 0x92 select sshd 95388 346815 1 0 3 0x80 select sshd 90741 47523 60851 74 3 0x100092 bpf pflogd 60851 283901 1 0 3 0x80 netio pflogd 12947 145410 95569 73 3 0x100090 kqread syslogd 95569 208146 1 0 3 0x100082 netio syslogd 1944 263469 1 77 3 0x100090 poll dhclient 89286 227712 1 0 3 0x80 poll dhclient 78692 523436 0 0 2 0x14200 zerothread 89380 446257 0 0 3 0x14200 aiodoned aiodoned 26477 259036 0 0 3 0x14200 syncer update 62501 148057 0 0 3 0x14200 cleaner cleaner 73452 205193 0 0 3 0x14200 reaper reaper 28366 98018 0 0 3 0x14200 pgdaemon pagedaemon 52359 405259 0 0 3 0x14200 bored crynlk 84324 158844 0 0 3 0x14200 bored crypto 64552 33256 0 0 3 0x40014200 acpi0 acpi0 62850 11865 0 0 3 0x40014200 idle1 5116 290344 0 0 3 0x14200 bored softnet 74339 260141 0 0 3 0x14200 bored systqmp 95514 18 0 0 3 0x14200 bored systq 69559 405442 0 0 3 0x40014200 bored softclock 19102 306005 0 0 3 0x40014200 idle0 77773 27496 0 0 3 0x14200 bored smr 1 199806 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 63657 (syz-executor.0) thread 0xffff800020abec70 (307061) exclusive rwlock netlock r = 0 (0xffffffff8250cdb8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 in_ioctl_sifaddr+0x69 #2 in_ioctl+0x1e7 sys/netinet/in.c:243 #3 ifioctl+0xb64 sys/net/if.c:2218 #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 (0xffffffff82624c28) #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 9620 6460K 15031K 78643K 26720 0 0 pcb 13 12K 14K 78643K 1575 0 0 rtable 169 17K 18K 78643K 3829 0 0 ifaddr 117 30K 33K 78643K 1040 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1886 0 0 iov 0 0K 28K 78643K 1407 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1221 77K 77K 78643K 7250 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 9K 78643K 85 0 0 VM map 51 25K 25K 78643K 73 0 0 sem 12 0K 1K 78643K 2503 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 6788 0 0 sigio 0 0K 0K 78643K 128 0 0 proc 62 63K 95K 78643K 2573 0 0 subproc 32 2K 2K 78643K 600 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 597 0 0 in_multi 25 1K 3K 78643K 733 0 0 ether_multi 1 0K 0K 78643K 90 0 0 mrt 0 0K 0K 78643K 59 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 114 503K 503K 78643K 114 0 0 exec 0 0K 1K 78643K 1332 0 0 pfkey data 0 0K 0K 78643K 1 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 210 400K 400K 78643K 24930 0 0 UVM aobj 130 6K 6K 78643K 135 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 1533 0 0 NDP 24 0K 1K 78643K 355 0 0 temp 234 3565K 4205K 78643K 152116 0 0 kqueue 0 0K 0K 78643K 55 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 97 0 90 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 464 0 462 1 0 1 1 0 8 0 rtentry 112 686 0 619 5 2 3 3 0 8 0 unpcb 120 25317 0 25152 14 8 6 6 0 8 0 syncache 264 50 0 50 23 23 0 1 0 8 0 tcpqe 32 245 0 245 15 15 0 1 0 8 0 tcpcb 544 3083 0 3077 31 30 1 14 0 8 0 inpcb 280 18694 0 18683 94 85 9 13 0 8 8 rttmr 72 23 0 22 4 3 1 1 0 8 0 ip6q 72 5 0 5 4 4 0 1 0 8 0 ip6af 40 10 0 10 4 4 0 1 0 8 0 nd6 48 86 0 86 5 5 0 1 0 8 0 pkpcb 40 35 0 35 14 14 0 1 0 8 0 swfcl 56 4 0 0 1 0 1 1 0 8 0 ppxss 1128 150 0 149 1 0 1 1 0 8 0 pffrag 232 184 0 184 14 13 1 1 0 482 1 pffrnode 88 184 0 184 14 13 1 1 0 8 1 pffrent 40 5324 0 5324 14 13 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 598 0 521 1 0 1 1 0 8 0 pfstkey 112 598 0 521 3 0 3 3 0 8 0 pfstate 328 598 0 521 11 2 9 9 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 8 0 2 8 2 6 8 0 8 0 art_heap4 256 2645 0 2395 43 22 21 21 0 8 0 art_table 32 2653 0 2397 7 4 3 3 0 8 0 art_node 16 673 0 623 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 10 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 2497 0 2487 1 0 1 1 0 8 0 shmpl 112 133 0 5 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 12897 0 11467 48 1 47 47 0 8 0 ffsino 272 12897 0 11467 96 0 96 96 0 8 0 nchpl 144 24518 0 24049 61 41 20 61 0 8 0 uvmvnodes 72 6361 0 0 116 0 116 116 0 8 0 vnodes 208 6361 0 0 335 0 335 335 0 8 0 namei 1024 83551 0 83551 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 49 0 0 7 0 7 7 0 8 0 vmpool 552 71 0 22 4 0 4 4 0 8 0 scsiplug 64 7 0 7 5 5 0 1 0 8 0 scxspl 192 75381 0 75381 40 39 1 7 0 8 1 plimitpl 152 563 0 555 1 0 1 1 0 8 0 sigapl 432 6892 0 6876 4 2 2 3 0 8 0 futexpl 56 195043 0 195042 2 1 1 1 0 8 0 knotepl 112 1209 0 1190 3 2 1 2 0 8 0 kqueuepl 104 1886 0 1884 4 3 1 4 0 8 0 pipepl 112 4054 0 4035 7 6 1 2 0 8 0 fdescpl 488 6893 0 6876 3 0 3 3 0 8 0 filepl 152 83489 0 83384 71 60 11 14 0 8 6 lockfpl 104 2276 0 2275 1 0 1 1 0 8 0 lockfspl 48 762 0 761 1 0 1 1 0 8 0 sessionpl 112 56 0 45 1 0 1 1 0 8 0 pgrppl 48 127 0 116 1 0 1 1 0 8 0 ucredpl 96 8501 0 8491 1 0 1 1 0 8 0 zombiepl 144 6876 0 6876 2 1 1 1 0 8 1 processpl 896 6910 0 6876 5 1 4 5 0 8 0 procpl 632 22188 0 22140 6 1 5 5 0 8 1 srpgc 64 90 0 90 22 22 0 1 0 8 0 sosppl 128 2645 0 2645 7 6 1 2 0 8 1 sockpl 384 44820 0 44638 150 122 28 35 0 8 8 mcl64k 65536 515 0 0 65 38 27 65 0 8 0 mcl16k 16384 19 0 0 3 0 3 3 0 8 0 mcl12k 12288 25 0 0 2 0 2 2 0 8 0 mcl9k 9216 17 0 0 2 0 2 2 0 8 0 mcl8k 8192 25 0 0 4 1 3 3 0 8 0 mcl4k 4096 22 0 0 3 1 2 3 0 8 0 mcl2k2 2112 7 0 0 1 0 1 1 0 8 0 mcl2k 2048 225 0 0 25 8 17 25 0 8 0 mtagpl 80 121 0 0 1 0 1 1 0 8 0 mbufpl 256 877 0 0 40 0 40 40 0 8 0 bufpl 256 31088 0 23731 460 0 460 460 0 8 0 anonpl 16 821951 0 795852 278 156 122 123 0 124 14 amapchunkpl 152 53734 0 53305 131 114 17 30 0 158 0 amappl16 192 38037 0 36746 223 148 75 77 0 8 8 amappl15 184 356 0 356 2 2 0 1 0 8 0 amappl14 176 1462 0 1457 1 0 1 1 0 8 0 amappl13 168 677 0 676 3 2 1 1 0 8 0 amappl12 160 1093 0 1088 1 0 1 1 0 8 0 amappl11 152 876 0 861 1 0 1 1 0 8 0 amappl10 144 1341 0 1330 1 0 1 1 0 8 0 amappl9 136 1137 0 1134 1 0 1 1 0 8 0 amappl8 128 751 0 693 3 1 2 2 0 8 0 amappl7 120 1440 0 1431 1 0 1 1 0 8 0 amappl6 112 815 0 799 1 0 1 1 0 8 0 amappl5 104 1576 0 1559 1 0 1 1 0 8 0 amappl4 96 6470 0 6434 1 0 1 1 0 8 0 amappl3 88 2825 0 2817 1 0 1 1 0 8 0 amappl2 80 52956 0 52873 3 1 2 3 0 8 0 amappl1 72 164620 0 164178 25 15 10 20 0 8 0 amappl 80 23142 0 23064 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 134 0 5 3 0 3 3 0 8 0 uaddrrnd 24 6964 0 6876 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 6964 0 6876 1 0 1 1 0 8 0 vmmpekpl 168 57071 0 57025 3 0 3 3 0 8 0 vmmpepl 168 879037 0 876338 399 245 154 163 0 357 31 vmsppl 368 6892 0 6876 2 0 2 2 0 8 0 pdppl 4096 13935 0 13845 13 1 12 12 0 8 0 pvpl 32 2101178 0 2077794 440 219 221 235 0 265 27 pmappl 232 6963 0 6898 5 1 4 4 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 802 0 107 21 0 21 21 0 8 0