]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: pktgen: fix access outside of user given buffer in pktgen_if_write()
authorPeter Seiderer <ps.report@gmx.net>
Thu, 27 Feb 2025 13:56:01 +0000 (14:56 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 4 Mar 2025 09:57:58 +0000 (10:57 +0100)
commitc5cdbf23b84c8b502cfa4f81d9d33ddfc25a1182
tree037c4d2db31a450f6ff8da34a4e8573dc73ace3a
parent2b15a0693f70d1e8119743ee89edbfb1271b3ea8
net: pktgen: fix access outside of user given buffer in pktgen_if_write()

Honour the user given buffer size for the hex32_arg(), num_arg(),
strn_len(), get_imix_entries() and get_labels() calls (otherwise they will
access memory outside of the user given buffer).

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/core/pktgen.c