[PATCH] net/af_packet: fix parsing of numeric device args

Bruce Richardson bruce.richardson at intel.com
Fri Jun 12 11:35:00 CEST 2026


On Wed, Jun 03, 2026 at 11:13:06AM -0700, Stephen Hemminger wrote:
> This driver has several numeric arguments but it was using
> atoi() which allows garbage and negative values.
> Convert to a helper using strtoul() with upper bound.
> 
> First found by Linux Verification Center (linuxtesting.org) with SVACE.
> 
> Reported-by: Denis Sergeev <denserg.edu at gmail.com>
> Fixes: 364e08f2bbc0 ("af_packet: add PMD for AF_PACKET-based virtual devices")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
Acked-by: Bruce Richardson <bruce.richardson at intel.com>


More information about the dev mailing list