linux: Update to 3.12.31

(cherry picked from commit bac50c5c1fef4294035f2d78ddd0d412c9891dec)