From the Super Mario Wiki
Masks are objects in Mario & Luigi: Superstar Saga. They are exclusive to Hoohoo Mountain, and are found on the side of the mountain. They consistently produce Whirlwinds that Mario and Luigi can ride using Mario's Spin Jump. In some cases, they start off deactivated, in which case they can only be activated if a nearby Fire Statue is extinguished.