You may feel like you are being turned upside down on a roller coaster, but you are not actually upside down. This is because the track is not actually upside down. It is just slanted upwards to give the illusion that you are upside down.
Even when it does feel like you are fully upside down, the seat of a roller coaster has multiple harnesses preventing any injury by the rider hanging out.