panic: kernel diagnostic assertion "cifp != NULL" failed: file "/syzkaller/managers/multicore/kernel/sys/net/route.c", line 1078 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *446000 18488 0 0x2 0 0K ifconfig db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830e776c) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff8309cc35,ffffffff83013e7f,436,ffffffff8300b0ec) at __assert+0x29 rtrequest(1,ffff800030773de8,4,ffff800030773e90,0) at rtrequest+0xdce sys/net/route.c:1078 rt_ifa_add(ffff8000015cac00,840100,ffff8000015cac58,0) at rt_ifa_add+0x22e sys/net/route.c:1273 in_ifinit(ffff8000015c4000,ffff8000015cac00,ffff800030774100,1) at in_ifinit+0x4bd in_insert_prefix sys/netinet/in.c:770 [inline] in_ifinit(ffff8000015c4000,ffff8000015cac00,ffff800030774100,1) at in_ifinit+0x4bd sys/netinet/in.c:703 in_ioctl_change_ifaddr(8040691a,ffff8000307740f0,ffff8000015c4000) at in_ioctl_change_ifaddr+0x92c sys/netinet/in.c:504 ifioctl(ffff8000016ae040,8040691a,ffff8000307740f0,ffff8000371f71f0) at ifioctl+0x1571 pru_control sys/sys/protosw.h:355 [inline] ifioctl(ffff8000016ae040,8040691a,ffff8000307740f0,ffff8000371f71f0) at ifioctl+0x1571 sys/net/if.c:2449 sys_ioctl(ffff8000371f71f0,ffff8000307742d0,ffff800030774220) at sys_ioctl+0x67c syscall(ffff8000307742d0) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff8000307742d0) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7140ee575d70, count: 4 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 *cpu0: kernel diagnostic assertion "cifp != NULL" failed: file "/syzkaller/managers/multicore/kernel/sys/net/route.c", line 1078 ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830e776c) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff8309cc35,ffffffff83013e7f,436,ffffffff8300b0ec) at __assert+0x29 rtrequest(1,ffff800030773de8,4,ffff800030773e90,0) at rtrequest+0xdce sys/net/route.c:1078 rt_ifa_add(ffff8000015cac00,840100,ffff8000015cac58,0) at rt_ifa_add+0x22e sys/net/route.c:1273 in_ifinit(ffff8000015c4000,ffff8000015cac00,ffff800030774100,1) at in_ifinit+0x4bd in_insert_prefix sys/netinet/in.c:770 [inline] in_ifinit(ffff8000015c4000,ffff8000015cac00,ffff800030774100,1) at in_ifinit+0x4bd sys/netinet/in.c:703 in_ioctl_change_ifaddr(8040691a,ffff8000307740f0,ffff8000015c4000) at in_ioctl_change_ifaddr+0x92c sys/netinet/in.c:504 ifioctl(ffff8000016ae040,8040691a,ffff8000307740f0,ffff8000371f71f0) at ifioctl+0x1571 pru_control sys/sys/protosw.h:355 [inline] ifioctl(ffff8000016ae040,8040691a,ffff8000307740f0,ffff8000371f71f0) at ifioctl+0x1571 sys/net/if.c:2449 sys_ioctl(ffff8000371f71f0,ffff8000307742d0,ffff800030774220) at sys_ioctl+0x67c syscall(ffff8000307742d0) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff8000307742d0) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7140ee575d70, count: -11 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800030773be0 rbx 0xffffffff834d9dcf cpu_info_full_primary+0x2dcf rdx 0 rcx 0xffff8000371f71f0 rax 0xffffffff834d8ff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0xf73f9c4ec1651a89 r11 0xe1e884d5cb13efcc r12 0xffffffff834d9bd0 cpu_info_full_primary+0x2bd0 r13 0 r14 0 r15 0x1 rip 0xffffffff8265f8c5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff800030773bd0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (ifconfig) tid=446000 pid=18488 tcnt=1 stat=onproc flags process=2 proc=0 runpri=50, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000371f6038,0xffffffff835f8c38 process=0xffff8000371ef1d8 user=0xffff80003076f000, vmspace=0xfffffd806cba4388 estcpu=0, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND *18488 446000 36422 0 7 0x2 ifconfig 72556 219975 61076 0 3 0x2 clonelk ifconfig 61076 115956 50725 0 3 0x10008a sigsusp sh 36422 470943 89729 0 3 0x10008a sigsusp sh 50725 333318 65065 0 3 0x82 wait syz-executor 71393 361132 28283 0 2 0x2 ifconfig 28283 200418 6468 0 3 0x10008a sigsusp sh 77968 386990 65065 0 2 0x2 syz-executor 90375 290627 65065 0 2 0x2 syz-executor 6468 142176 65065 0 3 0x82 wait syz-executor 89729 208293 65065 0 3 0x82 wait syz-executor 95175 302787 65065 0 3 0x82 piperd syz-executor 96302 490643 1 0 3 0x100083 ttyin getty 59134 332674 0 0 3 0x14280 nfsidl nfsio 6025 226867 0 0 3 0x14280 nfsidl nfsio 19544 307268 0 0 3 0x14280 nfsidl nfsio 68126 502239 0 0 3 0x14280 nfsidl nfsio 48945 162352 0 0 3 0x14280 nfsidl nfsio 14395 401475 0 0 3 0x14280 nfsidl nfsio 17041 83696 0 0 3 0x14280 nfsidl nfsio 93004 307302 0 0 3 0x14280 nfsidl nfsio 40149 442890 0 0 3 0x14280 nfsidl nfsio 53981 100145 0 0 3 0x14280 nfsidl nfsio 32416 391708 0 0 3 0x14280 nfsidl nfsio 32941 470016 0 0 3 0x14280 nfsidl nfsio 12264 149069 0 0 3 0x14280 nfsidl nfsio 41857 123835 0 0 3 0x14280 nfsidl nfsio 66054 20864 0 0 3 0x14280 nfsidl nfsio 30706 347234 0 0 3 0x14280 nfsidl nfsio 97100 76430 0 0 3 0x14280 nfsidl nfsio 42368 233596 0 0 3 0x14280 nfsidl nfsio 79075 191806 0 0 3 0x14280 nfsidl nfsio 35522 306037 0 0 3 0x14280 nfsidl nfsio 38603 168911 0 0 3 0x14200 bored sosplice 44866 368314 65065 0 3 0x82 piperd syz-executor 65065 145807 9553 0 3 0x82 wait syz-executor 9553 290794 22394 0 3 0x10008a sigsusp ksh 22394 394081 97711 0 3 0x98 kqread sshd-session 97711 428494 79620 0 3 0x92 kqread sshd-session 79620 391517 1 0 3 0x88 kqread sshd 44372 305255 29696 74 3 0x1100092 bpf pflogd 29696 422095 1 0 3 0x80 sbwait pflogd 90410 289571 84445 73 2 0x1100010 syslogd 84445 428885 1 0 3 0x100082 sbwait syslogd 9217 24352 1 0 3 0x100080 kqread resolvd 16495 445982 76184 77 3 0x100092 kqread dhcpleased 76527 497293 76184 77 3 0x100092 kqread dhcpleased 76184 485210 1 0 3 0x80 kqread dhcpleased 53993 173988 0 0 3 0x14200 bored smr 93304 41447 0 0 2 0x14200 zerothread 94486 258793 0 0 3 0x14200 aiodoned aiodoned 67933 126802 0 0 3 0x14200 syncer update 50098 193120 0 0 3 0x14200 cleaner cleaner 61158 1325 0 0 3 0x14200 reaper reaper 90453 150475 0 0 3 0x14200 pgdaemon pagedaemon 67312 173581 0 0 3 0x14200 bored viomb 45669 358172 0 0 3 0x40014200 acpi0 acpi0 94631 421544 0 0 7 0x40014200 idle1 1638 453601 0 0 3 0x14200 bored softnet3 27367 37337 0 0 3 0x14200 bored softnet2 36815 111609 0 0 3 0x14200 bored softnet1 74079 32420 0 0 3 0x14200 bored softnet0 77177 237426 0 0 3 0x14200 bored systqmp 74083 426936 0 0 3 0x14200 bored systq 62273 268116 0 0 3 0x14200 tmoslp softclockmp 2019 492246 0 0 2 0x40014200 softclock 75119 91107 0 0 3 0x40014200 idle0 1 116634 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 18488 (ifconfig) thread 0xffff8000371f71f0 (446000) Process 90410 (syslogd) thread 0xffff8000ffffccb8 (289571) ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10221 14190K 14521K 166960K 11830 0 pcb 17 13K 14K 166960K 134 0 rtable 116 4K 6K 166960K 461 0 pf 33 17K 18K 166960K 67 0 ifaddr 26 3K 7K 166960K 65 0 ifgroup 51 2K 2K 166960K 92 0 sysctl 2 0K 2K 166960K 35 0 counters 62 36K 36K 166960K 82 0 ioctlops 0 0K 4K 166960K 1521 0 iov 0 0K 12K 166960K 27 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1390 87K 88K 166960K 1774 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 8 0 VM map 2 1K 1K 166960K 2 0 sem 9 0K 0K 166960K 12 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1690 195K 286K 166960K 12418 0 file desc 16 57K 93K 166960K 627 0 sigio 0 0K 0K 166960K 79 0 proc 93 128K 140K 166960K 686 0 subproc 104 6K 6K 166960K 182 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 143 0 in_multi 32 2K 7K 166960K 127 0 ether_multi 1 0K 0K 166960K 3 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 241 1076K 1076K 166960K 241 0 exec 0 0K 1K 166960K 469 0 pfkey data 0 0K 0K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 186 71K 87K 166960K 7243 0 UVM aobj 17 4K 4K 166960K 18 0 pinsyscall 41 82K 105K 166960K 1783 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 20 0 NDP 11 0K 1K 166960K 39 0 temp 50 6817K 7076K 166960K 28722 0 kqueue 13 20K 30K 166960K 113 0 SYN cache 2 16K 16K 166960K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 24 0 0 1 0 1 1 0 8 0 rtpcb 120 111 0 108 2 1 1 2 0 8 0 rtentry 112 143 0 95 3 0 3 3 0 8 0 unpcb 144 657 0 640 4 3 1 4 0 8 0 syncache 336 6 0 6 2 2 0 1 0 8 0 tcpqe 32 1 0 1 1 1 0 1 0 8 0 tcpcb 808 219 0 214 9 8 1 8 0 8 0 arp 120 21 0 10 1 0 1 1 0 8 0 inpcb 336 679 0 666 7 5 2 7 0 8 0 nd6 136 31 0 23 1 0 1 1 0 8 0 pkpcb 40 3 0 3 1 1 0 1 0 8 0 kcovpl 48 14 0 6 1 0 1 1 0 8 0 ppxss 1168 2 0 2 2 2 0 1 0 8 0 pfstscr 40 1 0 1 1 1 0 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 51 0 24 1 0 1 1 0 8 0 pfstkey 128 53 0 26 2 0 2 2 0 8 0 pfstate 376 52 0 25 4 0 4 4 0 8 0 pfrule 1344 21 0 15 2 0 2 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 560 0 369 27 7 20 26 0 8 2 art_table 32 562 0 369 4 0 4 4 0 8 0 art_node 16 134 0 93 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 1 1 0 1 1 0 8 0 semapl 112 8 0 1 1 0 1 1 0 8 0 shmpl 112 15 0 1 1 0 1 1 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 2391 0 883 95 0 95 95 0 8 0 ffsino 272 2391 0 883 102 0 102 102 0 8 0 nchpl 144 3250 0 1564 63 0 63 63 0 8 0 uvmvnodes 80 2746 0 0 57 0 57 57 0 8 0 vnodes 216 2746 0 0 153 0 153 153 0 8 0 namei 1024 11708 0 11708 1 0 1 1 0 8 1 percpumem 16 55 0 10 1 0 1 1 0 8 0 kstatmem 264 42 0 20 2 0 2 2 0 8 0 scxspl 216 11774 0 11774 10 8 2 8 1 8 2 plimitpl 152 161 0 144 1 0 1 1 0 8 0 sigapl 424 944 0 875 9 0 9 9 0 8 0 futexpl 64 7256 0 7256 1 1 0 1 0 8 0 knotepl 120 561 0 0 17 0 17 17 0 8 0 kqueuepl 216 213 0 204 5 4 1 5 0 8 0 pipepl 320 299 0 272 13 10 3 13 0 8 0 fdescpl 496 903 0 873 5 0 5 5 0 8 0 filepl 152 5892 0 5653 21 10 11 20 0 8 0 lockfpl 104 170 0 168 1 0 1 1 0 8 0 lockfspl 48 72 0 70 1 0 1 1 0 8 0 sessionpl 144 33 0 24 1 0 1 1 0 8 0 pgrppl 48 59 0 42 1 0 1 1 0 8 0 ucredpl 104 1060 0 1047 1 0 1 1 0 8 0 zombiepl 144 876 0 875 1 0 1 1 0 8 0 processpl 1160 944 0 875 6 0 6 6 0 8 0 procpl 648 1653 0 1584 8 0 8 8 0 8 0 srpgc 96 8 0 8 2 2 0 1 0 8 0 sosppl 168 4 0 4 1 1 0 1 0 8 0 sockpl 664 1459 0 1428 13 9 4 10 0 8 0 mcl64k 65536 8 0 0 1 0 1 1 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 209 0 0 27 1 26 27 0 8 0 mtagpl 96 9 0 0 1 0 1 1 0 8 0 mbufpl 256 470 0 0 29 0 29 29 0 8 0 bufpl 280 7225 0 1051 442 0 442 442 0 8 0 anonpl 24 188235 0 184977 86 9 77 79 0 185 41 amapchunkpl 152 24066 0 23740 43 4 39 41 0 158 19 amappl16 200 4154 0 4145 21 19 2 15 0 8 0 amappl15 192 14 0 14 1 1 0 1 0 8 0 amappl14 184 129 0 117 1 0 1 1 0 8 0 amappl13 176 7 0 7 1 1 0 1 0 8 0 amappl12 168 1606 0 1576 4 2 2 3 0 8 0 amappl11 160 71 0 57 1 0 1 1 0 8 0 amappl10 152 11 0 10 1 0 1 1 0 8 0 amappl9 144 138 0 138 1 1 0 1 0 8 0 amappl8 136 24 0 21 1 0 1 1 0 8 0 amappl7 128 115 0 102 1 0 1 1 0 8 0 amappl6 120 198 0 191 1 0 1 1 0 8 0 amappl5 112 150 0 135 1 0 1 1 0 8 0 amappl4 104 321 0 303 1 0 1 1 0 8 0 amappl3 96 4845 0 4771 5 1 4 4 0 8 0 amappl2 88 738 0 662 2 0 2 2 0 8 0 amappl1 80 9828 0 9270 16 3 13 14 0 8 0 amappl 88 6777 0 6653 5 0 5 5 0 92 0 dma65536 65536 1 0 1 1 1 0 1 0 8 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 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 18 0 17 1 0 1 1 0 8 0 aobjpl 72 17 0 1 1 0 1 1 0 8 0 uaddrrnd 24 903 0 873 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 903 0 873 1 0 1 1 0 8 0 vmmpekpl 168 8747 0 8695 3 0 3 3 0 8 0 vmmpepl 168 62653 0 61082 95 9 86 95 0 357 6 vmsppl 440 902 0 873 6 2 4 5 0 8 0 rwobjpl 56 23235 0 19567 52 0 52 52 0 8 0 pdppl 4096 1813 0 1746 126 55 71 85 0 8 4 pvpl 32 29433 0 0 237 0 237 237 0 265 0 pmappl 248 902 0 873 3 0 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 440 0 83 11 0 11 11 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830e776c) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff8309cc35,ffffffff83013e7f,436,ffffffff8300b0ec) at __assert+0x29 rtrequest(1,ffff800030773de8,4,ffff800030773e90,0) at rtrequest+0xdce sys/net/route.c:1078 rt_ifa_add(ffff8000015cac00,840100,ffff8000015cac58,0) at rt_ifa_add+0x22e sys/net/route.c:1273 in_ifinit(ffff8000015c4000,ffff8000015cac00,ffff800030774100,1) at in_ifinit+0x4bd in_insert_prefix sys/netinet/in.c:770 [inline] in_ifinit(ffff8000015c4000,ffff8000015cac00,ffff800030774100,1) at in_ifinit+0x4bd sys/netinet/in.c:703 in_ioctl_change_ifaddr(8040691a,ffff8000307740f0,ffff8000015c4000) at in_ioctl_change_ifaddr+0x92c sys/netinet/in.c:504 ifioctl(ffff8000016ae040,8040691a,ffff8000307740f0,ffff8000371f71f0) at ifioctl+0x1571 pru_control sys/sys/protosw.h:355 [inline] ifioctl(ffff8000016ae040,8040691a,ffff8000307740f0,ffff8000371f71f0) at ifioctl+0x1571 sys/net/if.c:2449 sys_ioctl(ffff8000371f71f0,ffff8000307742d0,ffff800030774220) at sys_ioctl+0x67c syscall(ffff8000307742d0) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff8000307742d0) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7140ee575d70, count: -11 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffff800029b7bff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 acpicpu_idle() at acpicpu_idle+0x41e sys/dev/acpi/acpicpu.c:1219 sched_idle(ffff800029b7bff0) at sched_idle+0x558 sys/kern/kern_sched.c:182 end trace frame: 0x0, count: 10 ddb{1}> trace x86_ipi_db(ffff800029b7bff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 acpicpu_idle() at acpicpu_idle+0x41e sys/dev/acpi/acpicpu.c:1219 sched_idle(ffff800029b7bff0) at sched_idle+0x558 sys/kern/kern_sched.c:182 end trace frame: 0x0, count: -5