diff options
| author | Aurelien Aptel <[email protected]> | 2019-01-31 12:46:07 +0000 |
|---|---|---|
| committer | Steve French <[email protected]> | 2019-01-31 13:03:20 +0000 |
| commit | d339adc12a4f885b572c5412e4869af8939db854 (patch) | |
| tree | 44cd5a49b6e7aadd4cb5bef580ff03164f43344a /tools/perf/util/c++/clang.cpp | |
| parent | CIFS: Do not consider -ENODATA as stat failure for reads (diff) | |
| download | kernel-d339adc12a4f885b572c5412e4869af8939db854.tar.gz kernel-d339adc12a4f885b572c5412e4869af8939db854.zip | |
CIFS: fix use-after-free of the lease keys
The request buffers are freed right before copying the pointers.
Use the func args instead which are identical and still valid.
Simple reproducer (requires KASAN enabled) on a cifs mount:
echo foo > foo ; tail -f foo & rm foo
Cc: <[email protected]> # 4.20
Fixes: 179e44d49c2f ("smb3: add tracepoint for sending lease break responses to server")
Signed-off-by: Aurelien Aptel <[email protected]>
Signed-off-by: Steve French <[email protected]>
Reviewed-by: Paulo Alcantara <[email protected]>
Diffstat (limited to 'tools/perf/util/c++/clang.cpp')
0 files changed, 0 insertions, 0 deletions
