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 405534 74999 0 0 0x4000080 1 syz-executor.1 *360043 38816 0 0 0x4000000 0K 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(ffffffff82207e16,ffffffff821d5d13,3b7,ffffffff821ec264) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff8000231c7328,4,ffff8000231c73f8,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000b24500,840100,ffff800000b24558,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000b25000,ffff800000b24500,ffff8000231c7700,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000b25000,ffff800000b24500,ffff8000231c7700,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff8000231c76f0,ffff800000b25000,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff8000231c76f0,ffff800000b25000,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd8067498ab8,8040691a,ffff8000231c76f0,ffff800020ace518) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ace518,ffff8000231c7808,ffff8000231c7850) at sys_ioctl+0x5b9 syscall(ffff8000231c78d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000231c78d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,9b12e8f2010) at Xsyscall+0x128 end of kernel end trace frame: 0x9b364871fc0, 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(ffffffff82207e16,ffffffff821d5d13,3b7,ffffffff821ec264) at __assert+0x2b sys/kern/subr_prf.c:154 rtrequest(1,ffff8000231c7328,4,ffff8000231c73f8,0) at rtrequest+0xbf1 sys/net/route.c:951 rt_ifa_add(ffff800000b24500,840100,ffff800000b24558,0) at rt_ifa_add+0x290 sys/net/route.c:1133 in_ifinit(ffff800000b25000,ffff800000b24500,ffff8000231c7700,1) at in_ifinit+0x37a in_insert_prefix sys/netinet/in.c:717 [inline] in_ifinit(ffff800000b25000,ffff800000b24500,ffff8000231c7700,1) at in_ifinit+0x37a sys/netinet/in.c:648 in_ioctl_change_ifaddr(8040691a,ffff8000231c76f0,ffff800000b25000,1) at in_ioctl_change_ifaddr+0x5de sys/netinet/in.c:452 in_ioctl(8040691a,ffff8000231c76f0,ffff800000b25000,1) at in_ioctl+0x205 sys/netinet/in.c:234 ifioctl(fffffd8067498ab8,8040691a,ffff8000231c76f0,ffff800020ace518) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ace518,ffff8000231c7808,ffff8000231c7850) at sys_ioctl+0x5b9 syscall(ffff8000231c78d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000231c78d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,9b12e8f2010) at Xsyscall+0x128 end of kernel end trace frame: 0x9b364871fc0, count: -12 ddb{0}> show registers rdi 0xffffffff82104c57 db_enter+0x17 rsi 0x3f44 __ALIGN_SIZE+0x2f44 rbp 0xffff8000231c7140 rbx 0xffff8000231c71f0 rdx 0x3f45 __ALIGN_SIZE+0x2f45 rcx 0xffff800020f58000 rax 0xffff800020f58000 r8 0xffffffff81da132f kprintf+0x16f r9 0x1 r10 0x25 r11 0x67a684ac4625c489 r12 0x3000000008 r13 0xffff8000231c7150 r14 0x100 r15 0x1 rip 0xffffffff82104c58 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000231c7130 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=360043 stat=onproc flags process=0 proc=4000000 pri=79, usrpri=79, nice=20 forw=0xffffffffffffffff, list=0xffff800020ace028,0xffff800020acea18 process=0xffff800020a8b890 user=0xffff8000231c2000, vmspace=0xfffffd807f00b170 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 74999 136288 87728 0 2 0 syz-executor.1 74999 405534 87728 0 7 0x4000080 syz-executor.1 38816 436071 87678 0 2 0 syz-executor.0 *38816 360043 87678 0 7 0x4000000 syz-executor.0 87678 59477 93644 0 3 0x82 nanosleep syz-executor.0 54497 15897 0 0 3 0x14200 acct acct 87728 110819 93644 0 3 0x82 nanosleep syz-executor.1 33179 472239 1 0 3 0x100083 ttyin getty 74360 128082 0 0 3 0x14200 bored sosplice 93644 212415 80843 0 3 0x82 thrsleep syz-fuzzer 93644 43557 80843 0 3 0x4000082 nanosleep syz-fuzzer 93644 375465 80843 0 3 0x4000082 thrsleep syz-fuzzer 93644 434571 80843 0 3 0x4000082 thrsleep syz-fuzzer 93644 387540 80843 0 3 0x4000082 kqread syz-fuzzer 93644 51891 80843 0 3 0x4000082 thrsleep syz-fuzzer 93644 220146 80843 0 3 0x4000082 thrsleep syz-fuzzer 93644 412549 80843 0 3 0x4000082 thrsleep syz-fuzzer 93644 127088 80843 0 3 0x4000082 thrsleep syz-fuzzer 93644 376015 80843 0 3 0x4000082 thrsleep syz-fuzzer 80843 107557 78022 0 3 0x10008a pause ksh 78022 454144 74143 0 3 0x92 select sshd 74143 2624 1 0 3 0x80 select sshd 74611 258535 90889 74 3 0x100092 bpf pflogd 90889 123159 1 0 3 0x80 netio pflogd 39698 180787 91355 73 3 0x100090 kqread syslogd 91355 304142 1 0 3 0x100082 netio syslogd 37775 339841 1 77 3 0x100090 poll dhclient 25525 387858 1 0 3 0x80 poll dhclient 90678 205939 0 0 2 0x14200 zerothread 78338 399247 0 0 3 0x14200 aiodoned aiodoned 81654 234932 0 0 3 0x14200 syncer update 58349 336297 0 0 3 0x14200 cleaner cleaner 4115 272000 0 0 3 0x14200 reaper reaper 47069 355712 0 0 3 0x14200 pgdaemon pagedaemon 3004 106615 0 0 3 0x14200 bored crynlk 9437 171112 0 0 3 0x14200 bored crypto 48100 391518 0 0 3 0x40014200 acpi0 acpi0 32432 317100 0 0 3 0x40014200 idle1 95922 381459 0 0 3 0x14200 bored softnet 99615 465107 0 0 3 0x14200 bored systqmp 7028 357025 0 0 3 0x14200 bored systq 1965 444201 0 0 2 0x40014200 softclock 23620 457373 0 0 3 0x40014200 idle0 94274 151885 0 0 3 0x14200 bored smr 1 147261 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 38816 (syz-executor.0) thread 0xffff800020ace518 (360043) exclusive rwlock netlock r = 0 (0xffffffff824b5dc8) #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 (0xffffffff82677568) #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 9639 6502K 9890K 78643K 76508 0 0 pcb 15 10K 12K 78643K 6248 0 0 rtable 128 13K 14K 78643K 8094 0 0 ifaddr 113 32K 39K 78643K 2359 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 2131 0 0 iov 0 0K 34K 78643K 2242 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1238 78K 79K 78643K 20840 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 181 0 0 VM map 92 46K 46K 78643K 159 0 0 sem 12 0K 0K 78643K 1937 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 12293 0 0 sigio 0 0K 0K 78643K 141 0 0 proc 62 63K 95K 78643K 5382 0 0 subproc 32 2K 2K 78643K 1566 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 1243 0 0 in_multi 33 2K 3K 78643K 1592 0 0 ether_multi 1 0K 0K 78643K 120 0 0 mrt 0 0K 0K 78643K 65 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 2450 0 0 pfkey data 0 0K 0K 78643K 2 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 276 790K 790K 78643K 43581 0 0 UVM aobj 130 7K 7K 78643K 138 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 6217 0 0 NDP 26 0K 1K 78643K 764 0 0 temp 272 3566K 4205K 78643K 594799 0 0 kqueue 0 0K 0K 78643K 105 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 248 0 240 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 1096 0 1094 1 0 1 1 0 8 0 rtentry 112 1399 0 1352 2 0 2 2 0 8 0 unpcb 120 5699 0 5681 4 2 2 2 0 8 1 syncache 264 57 0 57 25 25 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 9 0 9 8 8 0 1 0 8 0 tcpcb 544 5200 0 5193 49 48 1 15 0 8 0 inpcb 280 18838 0 18826 41 39 2 9 0 8 1 rttmr 72 22 0 21 4 3 1 1 0 8 0 ip6q 72 2 0 2 2 2 0 1 0 8 0 ip6af 40 3 0 3 1 1 0 1 0 8 0 nd6 48 225 0 223 7 6 1 1 0 8 0 pkpcb 40 46 0 46 13 13 0 1 0 8 0 swfcl 56 8 0 0 1 0 1 1 0 8 0 ppxss 1128 331 0 331 29 28 1 1 0 8 1 pffrag 232 224 0 224 46 45 1 1 0 482 1 pffrnode 88 224 0 224 46 45 1 1 0 8 1 pffrent 40 6901 0 6901 46 45 1 1 0 8 1 pfosfp 40 846 0 846 5 5 0 5 0 8 0 pfosfpen 112 1428 0 1428 21 21 0 21 0 8 0 pfstitem 24 834 0 778 1 0 1 1 0 8 0 pfstkey 112 834 0 778 4 1 3 3 0 8 0 pfstate 328 834 0 777 11 5 6 8 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 34 0 32 23 21 2 3 0 8 0 art_heap4 256 6043 0 5762 61 42 19 21 0 8 0 art_table 32 6077 0 5794 8 5 3 3 0 8 0 art_node 16 1395 0 1352 1 0 1 1 0 8 0 sysvmsgpl 40 26 0 7 1 0 1 1 0 8 0 semapl 112 1933 0 1923 1 0 1 1 0 8 0 shmpl 112 136 0 8 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 20595 0 19129 48 0 48 48 0 8 0 ffsino 272 20595 0 19129 100 1 99 99 0 8 0 nchpl 144 40300 0 39811 61 40 21 61 0 8 0 uvmvnodes 72 7104 0 0 130 0 130 130 0 8 0 vnodes 208 7104 0 0 374 0 374 374 0 8 0 namei 1024 159814 0 159814 4 3 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 93 0 3 12 0 12 12 0 8 0 vmpool 552 157 0 67 9 2 7 7 0 8 0 scsiplug 64 14 0 14 10 10 0 1 0 8 0 scxspl 192 136506 0 136506 80 79 1 7 0 8 1 plimitpl 152 1112 0 1104 1 0 1 1 0 8 0 sigapl 432 12228 0 12212 5 3 2 3 0 8 0 futexpl 56 301094 0 301094 1 0 1 1 0 8 1 knotepl 112 5131 0 5112 11 10 1 3 0 8 0 kqueuepl 104 4480 0 4478 10 9 1 4 0 8 0 pipepl 112 7384 0 7365 20 19 1 2 0 8 0 fdescpl 488 12229 0 12212 3 0 3 3 0 8 0 filepl 152 120624 0 120521 90 83 7 14 0 8 3 lockfpl 104 4387 0 4386 1 0 1 1 0 8 0 lockfspl 48 1447 0 1446 1 0 1 1 0 8 0 sessionpl 112 113 0 102 1 0 1 1 0 8 0 pgrppl 48 229 0 218 1 0 1 1 0 8 0 ucredpl 96 18106 0 18090 4 3 1 2 0 8 0 zombiepl 144 12216 0 12216 3 2 1 1 0 8 1 processpl 896 12250 0 12216 6 2 4 5 0 8 0 procpl 632 38178 0 38133 6 1 5 5 0 8 0 srpgc 64 146 0 146 40 40 0 1 0 8 0 sosppl 128 153 0 153 31 30 1 1 0 8 1 sockpl 384 25942 0 25909 76 68 8 14 0 8 4 mcl64k 65536 749 0 0 83 49 34 34 0 8 0 mcl16k 16384 31 0 0 4 2 2 3 0 8 0 mcl12k 12288 57 0 0 2 0 2 2 0 8 0 mcl9k 9216 33 0 0 2 0 2 2 0 8 0 mcl8k 8192 44 0 0 5 2 3 3 0 8 0 mcl4k 4096 41 0 0 3 0 3 3 0 8 0 mcl2k2 2112 17 0 0 2 0 2 2 0 8 0 mcl2k 2048 228 0 0 20 9 11 20 0 8 0 mtagpl 80 119 0 0 1 0 1 1 0 8 0 mbufpl 256 1082 0 0 35 2 33 35 0 8 0 bufpl 256 42630 0 35526 445 0 445 445 0 8 0 anonpl 16 1598245 0 1578550 362 274 88 102 0 124 5 amapchunkpl 152 93061 0 92913 171 162 9 19 0 158 0 amappl16 192 70956 0 69820 449 387 62 79 0 8 3 amappl15 184 2500 0 2500 10 10 0 1 0 8 0 amappl14 176 2442 0 2439 1 0 1 1 0 8 0 amappl13 168 1310 0 1309 6 5 1 1 0 8 0 amappl12 160 1967 0 1964 2 1 1 1 0 8 0 amappl11 152 1750 0 1734 1 0 1 1 0 8 0 amappl10 144 1802 0 1798 1 0 1 1 0 8 0 amappl9 136 2395 0 2389 1 0 1 1 0 8 0 amappl8 128 1951 0 1890 5 2 3 3 0 8 0 amappl7 120 2178 0 2168 1 0 1 1 0 8 0 amappl6 112 1511 0 1497 1 0 1 1 0 8 0 amappl5 104 2825 0 2810 1 0 1 1 0 8 0 amappl4 96 11928 0 11889 3 2 1 2 0 8 0 amappl3 88 2689 0 2668 1 0 1 1 0 8 0 amappl2 80 93843 0 93753 3 1 2 3 0 8 0 amappl1 72 285809 0 285351 27 17 10 20 0 8 0 amappl 80 40142 0 40049 4 2 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 137 0 8 3 0 3 3 0 8 0 uaddrrnd 24 12386 0 12212 2 0 2 2 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 12386 0 12212 2 0 2 2 0 8 0 vmmpekpl 168 90927 0 90874 3 0 3 3 0 8 0 vmmpepl 168 1596776 0 1594152 455 311 144 163 0 357 24 vmsppl 368 12228 0 12212 2 0 2 2 0 8 0 pdppl 4096 24779 0 24648 26 9 17 17 0 8 0 pvpl 32 4097260 0 4075066 657 452 205 229 0 265 23 pmappl 232 12385 0 12279 9 2 7 7 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 867 0 191 20 0 20 20 0 8 0