diff options
author | Thomas Gleixner <[email protected]> | 2010-02-03 09:33:05 +0100 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2010-02-03 15:13:22 +0100 |
commit | 59647b6ac3050dd964bc556fe6ef22f4db5b935c (patch) | |
tree | 5e3b678a1172bce5f61143466bb172727cb13aec /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py | |
parent | 51246bfd189064079c54421507236fd2723b18f3 (diff) |
futex: Handle futex value corruption gracefully
The WARN_ON in lookup_pi_state which complains about a mismatch
between pi_state->owner->pid and the pid which we retrieved from the
user space futex is completely bogus.
The code just emits the warning and then continues despite the fact
that it detected an inconsistent state of the futex. A conveniant way
for user space to spam the syslog.
Replace the WARN_ON by a consistency check. If the values do not match
return -EINVAL and let user space deal with the mess it created.
This also fixes the missing task_pid_vnr() when we compare the
pi_state->owner pid with the futex value.
Reported-by: Jermome Marchand <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Acked-by: Darren Hart <[email protected]>
Acked-by: Peter Zijlstra <[email protected]>
Cc: <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions