On Mon, Apr 19, 2021 at 11:29:30PM +0200, Pavel Machek wrote:
Hi!
[ Upstream commit 0c85a7e87465f2d4cbc768e245f4f45b2f299b05 ]
In case of rs failure in rds_send_remove_from_sock(), the 'rm' resource is freed and later under spinlock, causing potential use-after-free. Set the free pointer to NULL to avoid undefined behavior.
This patch is crazy. Take a look at Message-ID: 20210419084953.GA28564@amd. Or just look at the patch :-).
You are correct, everything submitted from this author and domain recently was done as a "research project" to see if they could mess with kernel maintainers and slip in pointless changes to the kernel.
Not acceptable at all...
greg k-h