[PATCH 5.10 0/1] 9p/net: fix possible memory leak in p9_check_errors()

From: Alexey Panov
Date: Thu Dec 21 2023 - 06:02:19 EST


Syzkaller reports "memory leak in p9pdu_readf" in 5.10 stable releases.
I've attached reproducers in Bugzilla [1].

The problem has been fixed by the following patch which can be applied
to the 5.10 branch.
The fix is already present in all stable branches starting from 5.15.

[1] https://bugzilla.kernel.org/show_bug.cgi?id=218235

Found by Linux Verification Center (linuxtesting.org) with Syzkaller.