lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-ID: <Y9FE9E4G/arTAHjL@corigine.com> Date: Wed, 25 Jan 2023 16:04:20 +0100 From: Simon Horman <simon.horman@...igine.com> To: Natalia Petrova <n.petrova@...tech.ru> Cc: Manivannan Sadhasivam <mani@...nel.org>, "David S. Miller" <davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>, Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>, linux-arm-msm@...r.kernel.org, netdev@...r.kernel.org, linux-kernel@...r.kernel.org, lvc-project@...uxtesting.org Subject: Re: [PATCH] net: qrtr: free memory on error path in radix_tree_insert() On Wed, Jan 25, 2023 at 04:48:31PM +0300, Natalia Petrova wrote: > Function radix_tree_insert() returns errors if the node hasn't > been initialized and added to the tree. > > "kfree(node)" and return value "NULL" of node_get() help > to avoid using unclear node in other calls. > > Found by Linux Verification Center (linuxtesting.org) with SVACE. > > Fixes: 0c2204a4ad71 ("net: qrtr: Migrate nameservice to kernel from userspace") > Signed-off-by: Natalia Petrova <n.petrova@...tech.ru> Reviewed-by: Simon Horman <simon.horman@...igine.com>
Powered by blists - more mailing lists