Go to file
Bruce Richardson 1168a4fd19 net/tap: add buffer overflow checks before checksum
The checksum calculation APIs take only the packet headers pointers as
parameters, so they assume that the lengths reported in those headers
are correct. However, a malicious packet could claim to be far larger
than it is, so we need to check the header lengths in the driver before
calling the checksum API.

A better fix would be to allow the lengths to be passed into the API
function, but that would be an API break, so fixing in TAP driver for
now.

Fixes: 8ae3023387 ("net/tap: add Rx/Tx checksum offload support")
Cc: stable@dpdk.org

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Keith Wiles <keith.wiles@intel.com>
2018-12-21 16:22:41 +01:00
app app/testpmd: batch MAC swap for performance on x86 2018-12-21 16:22:40 +01:00
buildtools mk: allow renaming of build directories 2018-11-14 01:46:00 +01:00
config net/ice: support device and queue ops 2018-12-21 16:22:41 +01:00
devtools devtools: fix return of forbidden addition checks 2018-12-21 01:58:23 +01:00
doc doc: update queue number per VF for i40e 2018-12-21 16:22:41 +01:00
drivers net/tap: add buffer overflow checks before checksum 2018-12-21 16:22:41 +01:00
examples examples/ipv4_multicast: remove useless mbuf info copy 2018-12-19 22:27:32 +01:00
kernel kni: fix build on Linux < 3.14 2018-10-27 00:18:06 +02:00
lib net: fix underflow for checksum of invalid IPv4 packets 2018-12-21 16:22:41 +01:00
license fix dpdk.org URLs 2018-11-26 20:19:24 +01:00
mk net/ice: support device initialization 2018-12-21 16:22:41 +01:00
test test/mem: check non-heap external memory API 2018-12-21 15:32:46 +01:00
usertools usertools: skip empty categories in devices status 2018-11-23 01:43:20 +01:00
.gitattributes improve git diff 2016-11-13 15:25:12 +01:00
.gitignore doc: add compression driver and ISA-L PMD guides 2018-05-10 17:46:20 +01:00
GNUmakefile move kernel modules directories 2018-03-21 23:04:21 +01:00
MAINTAINERS net/ice: support device initialization 2018-12-21 16:22:41 +01:00
Makefile license: use SPDX tag in root makefile 2018-01-04 22:41:38 +01:00
meson_options.txt build: add option to override drivers install directory 2018-10-27 23:22:21 +02:00
meson.build version: 19.02-rc0 2018-11-30 16:20:33 +00:00
README license: introduce SPDX identifiers 2018-01-04 22:41:38 +01:00

DPDK is a set of libraries and drivers for fast packet processing.
It supports many processor architectures and both FreeBSD and Linux.

The DPDK uses the Open Source BSD-3-Clause license for the core libraries
and drivers. The kernel components are GPL-2.0 licensed.

Please check the doc directory for release notes,
API documentation, and sample application information.

For questions and usage discussions, subscribe to: users@dpdk.org
Report bugs and issues to the development mailing list: dev@dpdk.org