[Minor Spoilers]
After getting into a fight with the myconid Glut, he resurrected one of my dead companions using his spore ability. This companion became permanently hostile, even after being killed again and resurrected by me. I reloaded an earlier save before testing out too many solutions (such as skeleton dude in camp). There was no timer or condition listed on the companion to suggest a method of reversing the effect.