We perform a novel linear simulation of the feedback instability by applying a gyrokinetic model to the magnetosphere, where the geomagnetic field is modeled by a dipole magnetic field. In order to avoid huge numerical calculation costs, the effect of the fluctuating mirror force is neglected. It is found that kinetic effects, such as the finite Larmor radius effect and the electron Landau damping, strongly stabilize the feedback instability and form a peak in the perpendicular wave number spectrum of the growth rate. During the linear growth, it is observed that electron free energy has a much larger value than the electromagnetic field perturbation energy. Since such large electron free energy may lead to electron heating and acceleration, it is important to understand its generation mechanism. Analyses based on the energy conservation reveal that the coupling of the non-uniformity of the equilibrium fields along the geomagnetic field and the fluctuating electron distribution gives rise to thermodynamic power generating the electron free energy. A fine velocity space structure around an average Alfvén velocity of the fluctuating electron distribution mainly contributes to drive the thermodynamic power.