]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
hv_sock: Return -EIO for malformed/short packets
authorDexuan Cui <decui@microsoft.com>
Thu, 23 Apr 2026 06:48:11 +0000 (23:48 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 23 Apr 2026 17:53:16 +0000 (10:53 -0700)
commit3d1f20727a635811f6b77801a7b57b8995268abd
tree074e04fe119b109bccbf9e5d0a34e1600f880f46
parent3bc06da858ef17cfe94b49efc0d9713727012835
hv_sock: Return -EIO for malformed/short packets

Commit f63152958994 fixes a regression, however it fails to report an
error for malformed/short packets -- normally we should never see such
packets, but let's report an error for them just in case.

Fixes: f63152958994 ("hv_sock: Report EOF instead of -EIO for FIN")
Cc: stable@vger.kernel.org
Signed-off-by: Dexuan Cui <decui@microsoft.com>
Acked-by: Stefano Garzarella <sgarzare@redhat.com>
Link: https://patch.msgid.link/20260423064811.1371749-1-decui@microsoft.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/vmw_vsock/hyperv_transport.c