Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
udp6: add missing checks on edumux packet processing
[ Upstream commit eb63f29 ] Currently the UDPv6 early demux rx code path lacks some mandatory checks, already implemented into the normal RX code path - namely the checksum conversion and no_check6_rx check. Similar to the previous commit, we move the common processing to an UDPv6 specific helper and call it from both edemux code path and normal code path. In respect to the UDPv4, we need to add an explicit check for non zero csum according to no_check6_rx value. Reported-by: Jianlin Shi <[email protected]> Suggested-by: Xin Long <[email protected]> Fixes: c9f2c1a ("udp6: fix socket leak on early demux") Fixes: 2abb7cd ("udp: Add support for doing checksum unnecessary conversion") Signed-off-by: Paolo Abeni <[email protected]> Signed-off-by: David S. Miller <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information