Re: [PATCH net] net: psample: Fix the netlink skb length

2021-02-04 Thread Chris Mi
On 2/4/2021 4:47 PM, Ido Schimmel wrote: On Wed, Feb 03, 2021 at 06:21:03PM -0800, Jakub Kicinski wrote: On Wed, 3 Feb 2021 11:10:28 +0800 Chris Mi wrote: Currently, the netlink skb length only includes metadata and data length. It doesn't include the psample generic netlink header length. Bu

Re: [PATCH net] net: psample: Fix the netlink skb length

2021-02-04 Thread Chris Mi
On 2/4/2021 10:21 AM, Jakub Kicinski wrote: On Wed, 3 Feb 2021 11:10:28 +0800 Chris Mi wrote: Currently, the netlink skb length only includes metadata and data length. It doesn't include the psample generic netlink header length. But what's the bug? Did you see oversized messages on the socket

Re: [PATCH net] net: psample: Fix the netlink skb length

2021-02-04 Thread Ido Schimmel
On Wed, Feb 03, 2021 at 06:21:03PM -0800, Jakub Kicinski wrote: > On Wed, 3 Feb 2021 11:10:28 +0800 Chris Mi wrote: > > Currently, the netlink skb length only includes metadata and data > > length. It doesn't include the psample generic netlink header length. > > But what's the bug? Did you see o

Re: [PATCH net] net: psample: Fix the netlink skb length

2021-02-03 Thread Jakub Kicinski
On Wed, 3 Feb 2021 11:10:28 +0800 Chris Mi wrote: > Currently, the netlink skb length only includes metadata and data > length. It doesn't include the psample generic netlink header length. But what's the bug? Did you see oversized messages on the socket? Did one of the nla_put() fail? > Fixes:

[PATCH net] net: psample: Fix the netlink skb length

2021-02-02 Thread Chris Mi
Currently, the netlink skb length only includes metadata and data length. It doesn't include the psample generic netlink header length. Fix it by adding it. Fixes: 6ae0a6286171 ("net: Introduce psample, a new genetlink channel for packet sampling") CC: Yotam Gigi Reviewed-by: Ido Schimmel Signe