Message ID | 20250219084527.20488-1-ps.report@gmx.net (mailing list archive) |
---|---|
Headers | show |
Series | Some pktgen fixes/improvments (part I) | expand |
Hello: This series was applied to netdev/net-next.git (main) by Jakub Kicinski <kuba@kernel.org>: On Wed, 19 Feb 2025 09:45:20 +0100 you wrote: > While taking a look at '[PATCH net] pktgen: Avoid out-of-range in > get_imix_entries' ([1]) and '[PATCH net v2] pktgen: Avoid out-of-bounds > access in get_imix_entries' ([2], [3]) and doing some tests and code review > I detected that the /proc/net/pktgen/... parsing logic does not honour the > user given buffer bounds (resulting in out-of-bounds access). > > This can be observed e.g. by the following simple test (sometimes the > old/'longer' previous value is re-read from the buffer): > > [...] Here is the summary with links: - [net-next,v6,1/7] net: pktgen: replace ENOTSUPP with EOPNOTSUPP https://git.kernel.org/netdev/net-next/c/802fb6db9fdc - [net-next,v6,2/7] net: pktgen: enable 'param=value' parsing https://git.kernel.org/netdev/net-next/c/80604d19b5fc - [net-next,v6,3/7] net: pktgen: fix hex32_arg parsing for short reads https://git.kernel.org/netdev/net-next/c/b38504346a24 - [net-next,v6,4/7] net: pktgen: fix 'rate 0' error handling (return -EINVAL) https://git.kernel.org/netdev/net-next/c/3ba38c25a8c0 - [net-next,v6,5/7] net: pktgen: fix 'ratep 0' error handling (return -EINVAL) https://git.kernel.org/netdev/net-next/c/1c3bc2c325f8 - [net-next,v6,6/7] net: pktgen: fix ctrl interface command parsing https://git.kernel.org/netdev/net-next/c/1e5e511373fe - [net-next,v6,7/7] net: pktgen: fix access outside of user given buffer in pktgen_thread_write() https://git.kernel.org/netdev/net-next/c/425e64440ad0 You are awesome, thank you!