Files
linux/net
Dominique Martinet 96b12eb559 9p: clear dangling pointers in p9stat_free
[ Upstream commit 62e3941776 ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-05-15 09:26:32 +09:00
..
2018-05-16 10:08:44 +02:00
2018-04-13 19:48:29 +02:00
2023-05-15 09:15:10 +09:00
2018-05-16 11:39:34 +02:00
2023-05-15 09:15:02 +09:00
2023-05-15 09:14:58 +09:00