Your vehicle is equipped with an inside trunk release lever that provides a means of escape for children and adults in the event they become locked inside the trunk.
No matter how careful adults might be with keys and locking their cars, parents should be aware that children may be tempted to play around vehicles and use the trunk as a hiding place.
Adults are advised to familiarize themselves with the operation and location of the inside trunk release lever so that all children can be told about it in an appropriate way, keeping in mind that most vehicles do not have such levers.
WARNING
Close the trunk lid, be sure the seat backs are latched and do not allow children to play inside the vehicle:
Leaving the trunk lid open or leaving children in the vehicle with the keys is dangerous. Children could open the trunk lid and climb inside resulting in possible injury or death from heat exposure.
Always keep the car from being a tempting place to play by latching the rear seats, doors and the trunk, and keeping the keys where children can not play with them:
Leaving children or animals unattended in a parked vehicle is dangerous. Babies left sleeping and children who lock themselves in cars or trunks can die very quickly from heat prostration. Do not leave your children or pets alone in a car at any time. Do not leave the car, the rear folding seats or the trunk unlocked.
Opening the Trunk Lid from the Inside
Slide the inside trunk release lever in the direction of the arrow. The lever is made of material that will glow for hours in the darkness of the trunk following a brief exposure to ambient light.
The inside trunk release lever is located on the inside of the trunk lid.

Luggage CompartmentMazda 6 Owners Manual: Height Adjustment
Adjust the head restraint so that the center is even with the top of the passenger's
ears.
To raise a head restraint, pull it up to the desired position.
To lower the head restraint, press the stopcatch release, then push the head
restraint down.
Front outboard seat
Rear outboard seat
...
Mazda 6 Owners Manual: Cargo compartment light switch inspection
1. Remove the liftgate lower trim. (See LIFTGATE LOWER TRIM
REMOVAL/INSTALLATION)
2. Disconnect the cargo compartment light switch connector.
3. Inspect for continuity between the cargo compartment light switch
terminals using an ohmmeter.
If not as specified, replace the liftgate lock.
...