summaryrefslogtreecommitdiff
path: root/scripts/const_structs.checkpatch
diff options
context:
space:
mode:
authorErni Sri Satya Vennela <ernis@linux.microsoft.com>2026-10-30 02:34:59 -0700
committerDave Miller <davem@davem-thinkpadp1gen8.ibmlond.csb>2026-11-06 10:19:14 +0000
commit19a227903e65c7a9c179156485660a4e017575fe (patch)
treeba6af009b695fe50ec727f69ef5edd9d1eb72df6 /scripts/const_structs.checkpatch
parent31f9b43a3bb3d2201eadd147440252d0912dab21 (diff)
hv_netvsc: Stop PPI parsing on invalid metadata
rndis_get_ppi() uses continue when a per-packet information entry has an invalid size or offset, or cannot hold the requested metadata. However, the remaining length and entry pointer are only updated at the bottom of the loop. Each error path therefore retries the same invalid entry indefinitely, repeatedly logging the error and preventing receive processing from completing. Return NULL on these validation failures instead of continuing. This terminates the lookup when malformed metadata is encountered while preserving the existing behavior for valid entries. The issue was reported through an internal bug-tracking system and confirmed by manual code inspection. The pre-fix hang has not been reproduced locally. Fixes: 44144185951a ("hv_netvsc: Add validation for untrusted Hyper-V values") Cc: stable@vger.kernel.org Signed-off-by: Erni Sri Satya Vennela <ernis@linux.microsoft.com> Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com> Reviewed-by: Wei Liu <liuwe@microsoft.com> Reviewed-by: Simon Horman <horms@kernel.org> Signed-off-by: Dave Miller <davem@davem-thinkpadp1gen8.ibmlond.csb>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions