【Ferment】 refers to commotion or unrest.
【Foment】 means to stir emotions or reactions, not necessarily bad.
Note: In a totally different sense, the word 【ferment】 also relates to a substance capable of bringing about fermentation.