Magma can originate from any kind of material. The definitions doesn't refer to the composition or origin of the material, but the manifestation. Magma can be melted or partially melted crust, also old volcanic crust, so if old lava somehow re-enters a magma chamber it will be magma.