It states that madara ( all ten tails jinchuuriki actually) use six path ten tails coffin seal to seal the ten tails. After becoming the ten tails jinchuuriki they gain six paths senjutsu. This is something he shares with Naruto. They both have six paths senjutsu. Hence why I said they are very similar.Manga disagree's, and nowhere in the databook stated that Madara hasnt RSM
However RSM is for some reason( I don't fully understand it) specifically for Naruto.
So no, JJMadara doesn't have RSM. He has something very similar. In fact the only difference i've observerd is that Naruto in RSM has "universal comprehension of all things". Whatever the hell that means.
RSM comes from the Sage of six paths(so I believe ashura might have had it too). The other (juubito and JJ Madara) come from the ten tails. Similar but not the same.