aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorBharath Vedartham <[email protected]>2019-05-23 01:15:19 +0530
committerDominique Martinet <[email protected]>2019-09-03 11:07:39 +0000
commit962a991c5de18452d6c429d99f3039387cf5cbb0 (patch)
tree8d1a494d378cbad2d96efc9ab6b2660dcc5fa56a /tools/perf/scripts/python/event_analyzing_sample.py
parent0ce772fe79b68f83df40f07f28207b292785c677 (diff)
9p/cache.c: Fix memory leak in v9fs_cache_session_get_cookie
v9fs_cache_session_get_cookie assigns a random cachetag to v9ses->cachetag, if the cachetag is not assigned previously. v9fs_random_cachetag allocates memory to v9ses->cachetag with kmalloc and uses scnprintf to fill it up with a cachetag. But if scnprintf fails, v9ses->cachetag is not freed in the current code causing a memory leak. Fix this by freeing v9ses->cachetag it v9fs_random_cachetag fails. This was reported by syzbot, the link to the report is below: https://syzkaller.appspot.com/bug?id=f012bdf297a7a4c860c38a88b44fbee43fd9bbf3 Link: http://lkml.kernel.org/r/20190522194519.GA5313@bharath12345-Inspiron-5559 Reported-by: [email protected] Signed-off-by: Bharath Vedartham <[email protected]> Signed-off-by: Dominique Martinet <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions