Solution by Anonymous/alexander.
Clearly the functions f(x)=cx work, so we prove that they are the only ones.
Let P(x,y) denote the assertion f(x2+y2)=xf(x)+yf(y).
P(x,0):f(x2)=xf(x).
P(x,y):f(x2+y2)=xf(x)+yf(y)=f(x2)+f(y2).
By f(x2)=xf(x) we can easily see that f(0)=0 and f(−x)=−f(x) for nonzero x, so f is odd. With the second equation, we can also see that f is additive. Therefore
f((x+1)2)⟺f(x2)+f(2x)+f(1)⟺xf(x)+2f(x)+f(1)⟺f(x)=(x+1)f(x+1)=xf(x)+xf(1)+f(x)+f(1)=xf(x)+xf(1)+f(x)+f(1)=xf(1).
Therefore f(x)=cx for some constant c.