[PATCH 3.18 06/24] perf: Return proper values for user stack errors