Re: [dpdk-dev] [PATCH] kni: fix possible buffer overflow

2019-07-19 Thread Ferruh Yigit
On 7/18/2019 10:35 PM, Thomas Monjalon wrote: > 18/07/2019 23:24, Thomas Monjalon: >> 11/07/2019 17:33, Stephen Hemminger: >>> On Thu, 11 Jul 2019 13:35:07 +0100 >>> Ferruh Yigit wrote: >>> 'kni_net_rx_lo_fifo()' can get segmented buffers, using 'pkt_len' for that case will be wrong and

Re: [dpdk-dev] [PATCH] kni: fix possible buffer overflow

2019-07-18 Thread Thomas Monjalon
18/07/2019 23:24, Thomas Monjalon: > 11/07/2019 17:33, Stephen Hemminger: > > On Thu, 11 Jul 2019 13:35:07 +0100 > > Ferruh Yigit wrote: > > > > > 'kni_net_rx_lo_fifo()' can get segmented buffers, using 'pkt_len' for > > > that case will be wrong and some values can cause buffer overflow > > > in

Re: [dpdk-dev] [PATCH] kni: fix possible buffer overflow

2019-07-18 Thread Thomas Monjalon
11/07/2019 17:33, Stephen Hemminger: > On Thu, 11 Jul 2019 13:35:07 +0100 > Ferruh Yigit wrote: > > > 'kni_net_rx_lo_fifo()' can get segmented buffers, using 'pkt_len' for > > that case will be wrong and some values can cause buffer overflow > > in destination mbuf data. > > > > Signed-off-by: F

Re: [dpdk-dev] [PATCH] kni: fix possible buffer overflow

2019-07-11 Thread Stephen Hemminger
On Thu, 11 Jul 2019 13:35:07 +0100 Ferruh Yigit wrote: > 'kni_net_rx_lo_fifo()' can get segmented buffers, using 'pkt_len' for > that case will be wrong and some values can cause buffer overflow > in destination mbuf data. > > Signed-off-by: Ferruh Yigit > --- > kernel/linux/kni/kni_net.c | 2

[dpdk-dev] [PATCH] kni: fix possible buffer overflow

2019-07-11 Thread Ferruh Yigit
'kni_net_rx_lo_fifo()' can get segmented buffers, using 'pkt_len' for that case will be wrong and some values can cause buffer overflow in destination mbuf data. Signed-off-by: Ferruh Yigit --- kernel/linux/kni/kni_net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/