diff options
author | Dominique Martinet <dominique.martinet@cea.fr> | 2018-08-28 01:32:35 +0300 |
---|---|---|
committer | Dominique Martinet <dominique.martinet@cea.fr> | 2018-08-29 07:39:57 +0300 |
commit | 62e3941776fea8678bb8120607039410b1b61a65 (patch) | |
tree | 86f8c7de4bb26bf1aeb522e9c93732a6835e0fe0 /include/net/9p | |
parent | 81c99089bce693b94b775b6eb888115d2d540086 (diff) | |
download | linux-62e3941776fea8678bb8120607039410b1b61a65.tar.xz |
9p: clear dangling pointers in p9stat_free
p9stat_free is more of a cleanup function than a 'free' function as it
only frees the content of the struct; there are chances of use-after-free
if it is improperly used (e.g. p9stat_free called twice as it used to be
possible to)
Clearing dangling pointers makes the function idempotent and safer to use.
Link: http://lkml.kernel.org/r/1535410108-20650-2-git-send-email-asmadeus@codewreck.org
Signed-off-by: Dominique Martinet <dominique.martinet@cea.fr>
Reported-by: syzbot+d4252148d198410b864f@syzkaller.appspotmail.com
Diffstat (limited to 'include/net/9p')
0 files changed, 0 insertions, 0 deletions