Borrowed from Arabic مَشْق (mašq), from مَشَقَ (mašaqa, “to stretch out”), due to some letters in the script being stretched out.
Mashq