Revert "KSM upgrade"

This reverts commit c15c7078ca13e670475e3b4c4d856a3dc7ae949a.