Hello. (HTC ONE M8)
I did these steps:
1) Unlocked bootloader
2) Installed SUPERSU version. 2.37 from recovery mode
3) Phone rooted? but stuck on bootloop after rebooting to system
4) I went to recovery mode and wiped all data, because i thought it would factory reset my phone(stupid...