aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorVasiliy Kulikov <[email protected]>2011-02-19 14:18:08 +0100
committerRafael J. Wysocki <[email protected]>2011-02-24 19:59:06 +0100
commit2949ad50711cc161721cf788711722eeeca33764 (patch)
treeaba75138e732b43cc2c92ee2f310a0b457c70ebd /tools/perf/util/trace-event-scripting.c
parent2aa15890f3c191326678f1bd68af61ec6b8753ec (diff)
ACPI / debugfs: Fix buffer overflows, double free
File position is not controlled, it may lead to overwrites of arbitrary kernel memory. Also the code may kfree() the same pointer multiple times. One more flaw is still present: if multiple processes open the file then all 3 static variables are shared, leading to various race conditions. They should be moved to file->private_data. Signed-off-by: Vasiliy Kulikov <[email protected]> Reviewed-by: WANG Cong <[email protected]> Reviewed-by: Eugene Teo <[email protected]> Cc: [email protected] Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions