Re: [PATCH net] sch_netem: fix skb leak in netem_enqueue()

2018-03-02 Thread Eric Dumazet
On Fri, 2018-03-02 at 10:44 -0800, Stephen Hemminger wrote: > On Fri, 2 Mar 2018 21:16:48 +0300 > > Since this is a generic problem why is not fixed in qdisc_drop instead? AFAIK only netem and tbf might segment GSO packets so far. I am not sure we want to add code in qdisc_drop() that is used

[PATCH net-next] liquidio: Added ndo_get_phys_port_id support

2018-03-02 Thread Felix Manlunas
From: Intiyaz Basha Added support to the ndo_get_phys_port_id() callback to provide port specific unique id to the netdev layer. Port id needs to be unique across different liquidio devices in the system. So used MAC address for port_id. Usage: cat

Re: pull-request: bpf-next 2018-03-03

2018-03-02 Thread David Miller
From: Daniel Borkmann Date: Sat, 3 Mar 2018 02:42:01 +0100 > The following pull-request contains BPF updates for your *net-next* tree. > > The main changes are: > > 1) Extend bpftool to build up CFG information of eBPF programs and add an >option to dump this in DOT

[PATCH net-next] liquidio: Corrected Rx bytes counting

2018-03-02 Thread Felix Manlunas
From: Intiyaz Basha Corrected stats mismatch between Host Tx and its peer Rx stats Signed-off-by: Intiyaz Basha Acked-by: Derek Chickles Signed-off-by: Felix Manlunas ---

[PATCH bpf] bpf: fix bpf_skb_adjust_net/bpf_skb_proto_xlat to deal with gso sctp skbs

2018-03-02 Thread Daniel Borkmann
From: Daniel Axtens SCTP GSO skbs have a gso_size of GSO_BY_FRAGS, so any sort of unconditionally mangling of that will result in nonsense value and would corrupt the skb later on. Therefore, i) add two helpers skb_increase_gso_size() and skb_decrease_gso_size() that would

[PATCH] net/wireless: fix spaces and grammar copy/paste in vendor Kconfig help text

2018-03-02 Thread Randy Dunlap
rivers/net/wireless/st/Kconfig|4 ++-- drivers/net/wireless/ti/Kconfig|4 ++-- drivers/net/wireless/zydas/Kconfig |4 ++-- 16 files changed, 32 insertions(+), 32 deletions(-) --- linux-next-20180302.orig/drivers/net/wireless/admtek/Kconfig +++ linux-next-20180302/

[PATCH net-next 1/1] net sched actions: corrected extack message

2018-03-02 Thread Roman Mashak
Signed-off-by: Roman Mashak --- net/sched/act_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/sched/act_api.c b/net/sched/act_api.c index 1f65d6a..a54fa7b 100644 --- a/net/sched/act_api.c +++ b/net/sched/act_api.c @@ -1083,7 +1083,7 @@

pull-request: bpf-next 2018-03-03

2018-03-02 Thread Daniel Borkmann
Hi David, The following pull-request contains BPF updates for your *net-next* tree. The main changes are: 1) Extend bpftool to build up CFG information of eBPF programs and add an option to dump this in DOT format such that this can later be used with DOT graphic tools (xdot, graphviz,

Re: [PATCH 00/14] Netfilter/IPVS fixes for net

2018-03-02 Thread David Miller
From: Pablo Neira Ayuso Date: Fri, 2 Mar 2018 21:32:48 +0100 > The following patchset contains Netfilter fixes for your net tree, > they are: ... > You can pull these changes from: > > git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf.git Pulled, thank you.

RE: [PATCH] pci-iov: Add support for unmanaged SR-IOV

2018-03-02 Thread Tian, Kevin
> From: Alex Williamson [mailto:alex.william...@redhat.com] > Sent: Saturday, March 3, 2018 2:14 AM > > On Fri, 2 Mar 2018 06:54:17 + > "Tian, Kevin" wrote: > > > > From: Alex Williamson > > > Sent: Friday, March 2, 2018 4:22 AM > > > > > > > > I am pretty sure that

[PATCH] ethernet: natsemi: correct spelling

2018-03-02 Thread Randy Dunlap
drivers/net/ethernet/natsemi/Makefile |2 +- 3 files changed, 5 insertions(+), 5 deletions(-) --- linux-next-20180302.orig/drivers/net/ethernet/8390/Kconfig +++ linux-next-20180302/drivers/net/ethernet/8390/Kconfig @@ -3,7 +3,7 @@ # config NET_VENDOR_8390 - bool "National Se

Re: [PATCH 1/3] pci-iov: Add support for unmanaged SR-IOV

2018-03-02 Thread Alexander Duyck
On Fri, Mar 2, 2018 at 3:59 PM, Alex Williamson wrote: > On Fri, 02 Mar 2018 15:44:25 -0800 > Alexander Duyck wrote: > >> From: Alexander Duyck >> >> This patch is meant to add some basic functionality to

Re: [virtio-dev] Re: [PATCH v4 2/2] virtio_net: Extend virtio to use VF datapath when available

2018-03-02 Thread Siwei Liu
On Fri, Mar 2, 2018 at 3:12 PM, Samudrala, Sridhar wrote: > On 3/2/2018 1:11 PM, Siwei Liu wrote: >> >> On Thu, Mar 1, 2018 at 12:08 PM, Sridhar Samudrala >> wrote: >>> >>> This patch enables virtio_net to switch over to a VF datapath

Re: [PATCH 1/3] pci-iov: Add support for unmanaged SR-IOV

2018-03-02 Thread Alex Williamson
On Fri, 02 Mar 2018 15:44:25 -0800 Alexander Duyck wrote: > From: Alexander Duyck > > This patch is meant to add some basic functionality to support for SR-IOV > on devices when the VFs are not managed by the kernel. The functions >

Re: [PATCH v4 2/2] virtio_net: Extend virtio to use VF datapath when available

2018-03-02 Thread Siwei Liu
On Fri, Mar 2, 2018 at 1:36 PM, Michael S. Tsirkin wrote: > On Fri, Mar 02, 2018 at 01:11:56PM -0800, Siwei Liu wrote: >> On Thu, Mar 1, 2018 at 12:08 PM, Sridhar Samudrala >> wrote: >> > This patch enables virtio_net to switch over to a VF datapath

[PATCH 3/3] virtio_pci: Add support for unmanaged SR-IOV on virtio_pci devices

2018-03-02 Thread Alexander Duyck
From: Alexander Duyck Hardware-realized virtio_pci devices can implement SR-IOV, so this patch enables its use. The device in question is an upcoming Intel NIC that implements both a virtio_net PF and virtio_net VFs. These are hardware realizations of what has been

[PATCH 2/3] vfio: Add support for unmanaged or userspace managed SR-IOV

2018-03-02 Thread Alexander Duyck
From: Alexander Duyck This patch is meant to allow assignment of an SR-IOV enabled PF, as in VFs have been generated, with vfio-pci. My understanding is the primary use case for this is something like DPDK running the PF while the VFs are all assigned to guests. A

[PATCH 0/3] pci-iov: Add support for unmanaged SR-IOV

2018-03-02 Thread Alexander Duyck
This series is meant to add support for SR-IOV on devices when the VFs are not managed by the kernel. Examples of recent patches attempting to do this include: virto - https://patchwork.kernel.org/patch/10241225/ pci-stub - https://patchwork.kernel.org/patch/10109935/ vfio -

[PATCH 1/3] pci-iov: Add support for unmanaged SR-IOV

2018-03-02 Thread Alexander Duyck
From: Alexander Duyck This patch is meant to add some basic functionality to support for SR-IOV on devices when the VFs are not managed by the kernel. The functions provided here can be used by drivers such as vfio-pci and virtio to enable SR-IOV on devices that are

Re: [PATCH net-next] net/ipv6: Address checks need to consider the L3 domain

2018-03-02 Thread David Ahern
On 3/2/18 4:09 PM, David Ahern wrote: > diff --git a/net/ipv6/route.c b/net/ipv6/route.c > index f0ae58424c45..792e7432ba6d 100644 > --- a/net/ipv6/route.c > +++ b/net/ipv6/route.c > @@ -2820,9 +2820,9 @@ static struct rt6_info *ip6_route_info_create(struct > fib6_config *cfg, >*

Re: [PATCH net-next 2/4] net: stmmac: use correct barrier between coherent memory and MMIO

2018-03-02 Thread Niklas Cassel
On Fri, Mar 02, 2018 at 09:54:11AM -0500, David Miller wrote: > From: Pavel Machek > Date: Fri, 2 Mar 2018 10:20:00 +0100 > Hello Pavel, David > >> This barrier cannot be a simple dma_wmb(), since a dma_wmb() is only > >> used to guarantee the ordering, with respect to other

Re: [PATCH RESEND net-next 0/2] ntuple filters with RSS

2018-03-02 Thread Alexander Duyck
On Fri, Mar 2, 2018 at 10:55 AM, Jakub Kicinski wrote: > On Fri, 2 Mar 2018 15:24:29 +, Edward Cree wrote: >> On Tue, Feb 27, 2018 at 3:47 PM, Jakub Kicinski wrote: >> >> > Please, let's stop extending ethtool_rx_flow APIs. I bit my tongue >> > when Intel was

WAITING FOR YOUR URGENT AND IMMEDIATE RESPONSE.

2018-03-02 Thread Dr Rhama Benson
Dear Friend, How are you today with your family, Hope all is well?. Please, I would like you to give an urgent attention to this proposal. I have a very lucrative business transaction which requires your utmost discretion. Though, I know it would come to you at uttermost surprise. I am Dr Rhama

Re: [virtio-dev] Re: [PATCH v4 2/2] virtio_net: Extend virtio to use VF datapath when available

2018-03-02 Thread Samudrala, Sridhar
On 3/2/2018 1:11 PM, Siwei Liu wrote: On Thu, Mar 1, 2018 at 12:08 PM, Sridhar Samudrala wrote: This patch enables virtio_net to switch over to a VF datapath when a VF netdev is present with the same MAC address. It allows live migration of a VM with a direct

Re: [PATCH 09/58] net/irda: Convert timers to use timer_setup()

2018-03-02 Thread Marcelo Ricardo Leitner
On Fri, Mar 02, 2018 at 02:30:30PM -0800, Kees Cook wrote: > On Fri, Mar 2, 2018 at 1:29 PM, Marcelo Ricardo Leitner > wrote: > > Note how it is using the irda_start_timer definition from > > include/net/irda/timer.h instead of > >

[PATCH v2 0/4] net: Use strlcpy() for ethtool::get_strings

2018-03-02 Thread Florian Fainelli
Hi all, After turning on KASAN on one of my systems, I started getting lots of out of bounds errors while fetching a given port's statistics, and indeed using memcpy() is unsafe for copying strings which have not been declared as an array of ETH_GSTRING_LEN bytes, so let's use strlcpy() instead.

[PATCH v2 2/4] net: phy: marvell: Use strlcpy() for ethtool::get_strings

2018-03-02 Thread Florian Fainelli
Our statistics strings are allocated at initialization without being bound to a specific size, yet, we would copy ETH_GSTRING_LEN bytes using memcpy() which would create out of bounds accesses, this was flagged by KASAN. Replace this with strlcpy() to make sure we are bound the source buffer size

[PATCH v2 1/4] net: dsa: b53: Use strlcpy() for ethtool::get_strings

2018-03-02 Thread Florian Fainelli
Our statistics strings are allocated at initialization without being bound to a specific size, yet, we would copy ETH_GSTRING_LEN bytes using memcpy() which would create out of bounds accesses, this was flagged by KASAN. Replace this with strlcpy() to make sure we are bound the source buffer size

[PATCH v2 4/4] net: phy: broadcom: Use strlcpy() for ethtool::get_strings

2018-03-02 Thread Florian Fainelli
Our statistics strings are allocated at initialization without being bound to a specific size, yet, we would copy ETH_GSTRING_LEN bytes using memcpy() which would create out of bounds accesses, this was flagged by KASAN. Replace this with strlcpy() to make sure we are bound the source buffer size

[PATCH net-next] net/ipv6: Address checks need to consider the L3 domain

2018-03-02 Thread David Ahern
ipv6_chk_addr_and_flags determines if an address is a local address. It is called by ip6_route_info_create to validate a gateway address is not a local address. It currently does not consider L3 domains and as a result does not allow a route to be added in one VRF if the nexthop points to an

[PATCH v2 3/4] net: phy: micrel: Use strlcpy() for ethtool::get_strings

2018-03-02 Thread Florian Fainelli
Our statistics strings are allocated at initialization without being bound to a specific size, yet, we would copy ETH_GSTRING_LEN bytes using memcpy() which would create out of bounds accesses, this was flagged by KASAN. Replace this with strlcpy() to make sure we are bound the source buffer size

Re: [PATCH net] ipv6: Reflect MTU changes on PMTU of exceptions for MTU-less routes

2018-03-02 Thread David Ahern
On 3/2/18 8:36 AM, Stefano Brivio wrote: > Currently, administrative MTU changes on a given netdevice are > not reflected on route exceptions for MTU-less routes, with a > set PMTU value, for that device: > > # ip -6 route get 3000::b > 3000::b from :: dev vti_a proto kernel src 3000::a metric

Re: [PATCH PATCH net v2 0/9] hv_netvsc: minor fixes

2018-03-02 Thread Jakub Kicinski
On Fri, 2 Mar 2018 13:49:00 -0800, Stephen Hemminger wrote: >- change propogate rx mode patch to handle startup of vf Thanks! :)

Re: Issue accessing task_struct from BPF due to 4.16 stack-protector changes

2018-03-02 Thread Kees Cook
On Fri, Mar 2, 2018 at 2:26 PM, Alexei Starovoitov wrote: > On Fri, Mar 02, 2018 at 02:04:17PM -0800, Gianluca Borello wrote: >> On Fri, Mar 2, 2018 at 12:42 PM, Alexei Starovoitov >> wrote: >> > >> > good catch! >> > I wonder why

Re: [PATCH 09/58] net/irda: Convert timers to use timer_setup()

2018-03-02 Thread Kees Cook
On Fri, Mar 2, 2018 at 1:29 PM, Marcelo Ricardo Leitner wrote: > Note how it is using the irda_start_timer definition from > include/net/irda/timer.h instead of > drivers/staging/irda/include/net/irda/timer.h which was patched in > this patch. $ git show

Re: [virtio-dev] Re: [PATCH v4 2/2] virtio_net: Extend virtio to use VF datapath when available

2018-03-02 Thread Siwei Liu
On Fri, Mar 2, 2018 at 1:31 PM, Michael S. Tsirkin wrote: > On Fri, Mar 02, 2018 at 12:44:56PM -0800, Siwei Liu wrote: >> On Fri, Mar 2, 2018 at 12:10 PM, Michael S. Tsirkin wrote: >> > On Fri, Mar 02, 2018 at 11:52:27AM -0800, Samudrala, Sridhar wrote: >> >> >>

Re: Issue accessing task_struct from BPF due to 4.16 stack-protector changes

2018-03-02 Thread Alexei Starovoitov
On Fri, Mar 02, 2018 at 02:04:17PM -0800, Gianluca Borello wrote: > On Fri, Mar 2, 2018 at 12:42 PM, Alexei Starovoitov > wrote: > > > > good catch! > > I wonder why sched.h is using this flag insead of relying on #defines from > > autoconf.h > > It could have been

Re: Issue accessing task_struct from BPF due to 4.16 stack-protector changes

2018-03-02 Thread Kees Cook
On Fri, Mar 2, 2018 at 2:04 PM, Gianluca Borello wrote: > On Fri, Mar 2, 2018 at 12:42 PM, Alexei Starovoitov > wrote: >> >> good catch! >> I wonder why sched.h is using this flag insead of relying on #defines from >> autoconf.h >> It could

Re: Issue accessing task_struct from BPF due to 4.16 stack-protector changes

2018-03-02 Thread Gianluca Borello
On Fri, Mar 2, 2018 at 12:42 PM, Alexei Starovoitov wrote: > > good catch! > I wonder why sched.h is using this flag insead of relying on #defines from > autoconf.h > It could have been using CONFIG_HAVE_CC_STACKPROTECTOR > instead of CONFIG_CC_STACKPROTECTOR, no ?

[PATCH PATCH net v2 1/9] hv_netvsc: avoid retry on send during shutdown

2018-03-02 Thread Stephen Hemminger
Change the initialization order so that the device is ready to transmit (ie connect vsp is completed) before setting the internal reference to the device with RCU. This avoids any races on initialization and prevents retry issues on shutdown. Signed-off-by: Stephen Hemminger

[PATCH PATCH net v2 2/9] hv_netvsc: only wake transmit queue if link is up

2018-03-02 Thread Stephen Hemminger
Don't wake transmit queues if link is not up yet. Signed-off-by: Stephen Hemminger --- drivers/net/hyperv/netvsc_drv.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c index

[PATCH PATCH net v2 0/9] hv_netvsc: minor fixes

2018-03-02 Thread Stephen Hemminger
These are improvements to netvsc driver. They aren't functionality changes so not targeting net-next; and they are not show stopper bugs that need to go to stable either. v2 - drop the irq flags patch, defer it to net-next - split the multicast filter flag patch out - change propogate rx

[PATCH net-next 5/5] net sched actions: implement get_fill_size routine in act_police

2018-03-02 Thread Roman Mashak
Signed-off-by: Roman Mashak --- net/sched/act_police.c | 8 1 file changed, 8 insertions(+) diff --git a/net/sched/act_police.c b/net/sched/act_police.c index 51fe4fe..d4b4b15 100644 --- a/net/sched/act_police.c +++ b/net/sched/act_police.c @@ -314,6 +314,13 @@

[PATCH net-next 4/5] net sched actions: implement get_fill_size routine in act_gact

2018-03-02 Thread Roman Mashak
Signed-off-by: Roman Mashak --- net/sched/act_gact.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/net/sched/act_gact.c b/net/sched/act_gact.c index 7456325..88fbb84 100644 --- a/net/sched/act_gact.c +++ b/net/sched/act_gact.c @@ -217,6 +217,19 @@ static

[PATCH net-next 2/5] net sched actions: add new tc_action_ops callback

2018-03-02 Thread Roman Mashak
Add a new callback in tc_action_ops, it will be needed by the tc actions to compute its size when a ADD/DELETE notification message is constructed. This routine has to take into account optional/variable size TLVs specific per action. Signed-off-by: Roman Mashak ---

[PATCH net-next 3/5] net sched actions: calculate add/delete event message size

2018-03-02 Thread Roman Mashak
Update add/delete action logic to have the size for event messages, the size is passed to tcf_add_notify() and tcf_del_notify(). Signed-off-by: Roman Mashak --- include/net/act_api.h | 3 ++- net/sched/act_api.c | 26 ++ net/sched/cls_api.c | 3

[PATCH net-next 0/5] Fix event generation for actions batch Add/Delete mode

2018-03-02 Thread Roman Mashak
When adding or deleting a batch of entries, the kernel sends upto TCA_ACT_MAX_PRIO entries in an event to user space. However it does not consider that the action sizes may vary and require different skb sizes. For example : % cat tc-batch.sh #!/bin/bash TC="sudo /mnt/iproute2.git/tc/tc" $TC

[PATCH net-next 1/5] net sched actions: routines to calculate common TLVs size

2018-03-02 Thread Roman Mashak
Introduce routine to calculate size of the common tc netlink attributes, and another helper routine to get the full message size including netlink header and service header. Signed-off-by: Roman Mashak --- net/sched/act_api.c | 27 +++ 1 file changed,

[PATCH PATCH net v2 3/9] hv_netvsc: fix error unwind handling if vmbus_open fails

2018-03-02 Thread Stephen Hemminger
Need to delete NAPI association if vmbus_open fails. Signed-off-by: Stephen Hemminger --- drivers/net/hyperv/netvsc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/hyperv/netvsc.c b/drivers/net/hyperv/netvsc.c index

[PATCH PATCH net v2 5/9] hv_netvsc: fix race in napi poll when rescheduling

2018-03-02 Thread Stephen Hemminger
There is a race between napi_reschedule and re-enabling interrupts which could lead to missed host interrrupts. This occurs when interrupts are re-enabled (hv_end_read) and vmbus irq callback (netvsc_channel_cb) has already scheduled NAPI. Signed-off-by: Stephen Hemminger

[PATCH PATCH net v2 8/9] hv_netvsc: filter multicast/broadcast

2018-03-02 Thread Stephen Hemminger
The netvsc driver was always enabling all multicast and broadcast even if netdevice flag had not enabled it. Signed-off-by: Stephen Hemminger --- drivers/net/hyperv/rndis_filter.c | 20 1 file changed, 12 insertions(+), 8 deletions(-) diff --git

[PATCH PATCH net v2 4/9] hv_netvsc: cancel subchannel setup before halting device

2018-03-02 Thread Stephen Hemminger
Block setup of multiple channels earlier in the teardown process. This avoids possible races between halt and subchannel initialization. Suggested-by: Haiyang Zhang Signed-off-by: Stephen Hemminger --- drivers/net/hyperv/rndis_filter.c | 3 +++ 1

[PATCH PATCH net v2 9/9] hv_netvsc: propagate rx filters to VF

2018-03-02 Thread Stephen Hemminger
The netvsc device should propagate filters to the SR-IOV VF device (if present). The flags also need to be propagated to the VF device as well. This only really matters on local Hyper-V since Azure does not support multiple addresses. Signed-off-by: Stephen Hemminger ---

[PATCH PATCH net v2 7/9] hv_netvsc: defer queue selection to VF

2018-03-02 Thread Stephen Hemminger
When VF is used for accelerated networking it will likely have more queues (and different policy) than the synthetic NIC. This patch defers the queue policy to the VF so that all the queues can be used. This impacts workloads like local generate UDP. Signed-off-by: Stephen Hemminger

[PATCH PATCH net v2 6/9] hv_netvsc: use napi_schedule_irqoff

2018-03-02 Thread Stephen Hemminger
Since the netvsc_channel_cb is already called in interrupt context from vmbus, there is no need to do irqsave/restore. Signed-off-by: Stephen Hemminger --- drivers/net/hyperv/netvsc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Good Morning !

2018-03-02 Thread Mr. Allen
Good day. Do you need a loan to pay off bills ? To pay off your mortgage quickly ? To set up a new business or to Re- finance your existing business ? I can help you secure a private loan should you be interested please respond for more details Thanks Allen

Re: [PATCH v4 2/2] virtio_net: Extend virtio to use VF datapath when available

2018-03-02 Thread Michael S. Tsirkin
On Fri, Mar 02, 2018 at 01:11:56PM -0800, Siwei Liu wrote: > On Thu, Mar 1, 2018 at 12:08 PM, Sridhar Samudrala > wrote: > > This patch enables virtio_net to switch over to a VF datapath when a VF > > netdev is present with the same MAC address. It allows live

Re: [virtio-dev] Re: [PATCH v4 2/2] virtio_net: Extend virtio to use VF datapath when available

2018-03-02 Thread Michael S. Tsirkin
On Fri, Mar 02, 2018 at 12:56:21PM -0800, Samudrala, Sridhar wrote: > > > On 3/2/2018 12:44 PM, Siwei Liu wrote: > > On Fri, Mar 2, 2018 at 12:10 PM, Michael S. Tsirkin wrote: > > > On Fri, Mar 02, 2018 at 11:52:27AM -0800, Samudrala, Sridhar wrote: > > > > > > > > On 3/2/2018

Re: [PATCH iproute2] bpf: Print section name when hitting non ld64 issue

2018-03-02 Thread Stephen Hemminger
On Wed, 28 Feb 2018 14:16:42 -0800 Joe Stringer wrote: > It's useful to be able to tell which section is being processed in the > ELF when this error is triggered, so print that detail. > > Signed-off-by: Joe Stringer Applied

Respond for details

2018-03-02 Thread Mr. Allen
Good day. Do you need a loan to pay off bills ? To pay off your mortgage quickly ? To set up a new business or to Re- finance your existing business ? I can help you secure a private loan should you be interested please respond for more details Thanks Allen

Re: [PATCH iproute2] libnetlink: __rtnl_talk_iov should only loop max iovlen times

2018-03-02 Thread Stephen Hemminger
On Thu, 1 Mar 2018 14:43:08 -0800 David Ahern wrote: > William reported ip hanging and bisected to a recent commit for batching > allowing more than 1 command to be sent per message. The loop over > recvmsg should never cycle more than iovlen times -- 1 response for > each

Re: [virtio-dev] Re: [PATCH v4 2/2] virtio_net: Extend virtio to use VF datapath when available

2018-03-02 Thread Michael S. Tsirkin
On Fri, Mar 02, 2018 at 12:44:56PM -0800, Siwei Liu wrote: > On Fri, Mar 2, 2018 at 12:10 PM, Michael S. Tsirkin wrote: > > On Fri, Mar 02, 2018 at 11:52:27AM -0800, Samudrala, Sridhar wrote: > >> > >> > >> On 3/2/2018 11:41 AM, Michael S. Tsirkin wrote: > >> > On Fri, Mar 02,

Re: [PATCH 09/58] net/irda: Convert timers to use timer_setup()

2018-03-02 Thread Marcelo Ricardo Leitner
On Mon, Oct 16, 2017 at 05:28:53PM -0700, Kees Cook wrote: > In preparation for unconditionally passing the struct timer_list pointer to > all timer callbacks, switch to using the new timer_setup() and from_timer() > to pass the timer pointer explicitly. > > Cc: Samuel Ortiz >

Re: [PATCH] selinux: Fix ltp test connect-syscall failure

2018-03-02 Thread Paul Moore
On Fri, Mar 2, 2018 at 2:54 PM, Richard Haines wrote: > Fix the following error when running regression tests using LTP as follows: > cd /opt/ltp/ > cat runtest/syscalls |grep connect01>runtest/connect-syscall > ./runltp -pq -f connect-syscall > > Running

Re: [PATCH v2 4/4] net: make skb_gso_*_seglen functions private

2018-03-02 Thread Marcelo Ricardo Leitner
On Thu, Mar 01, 2018 at 05:13:40PM +1100, Daniel Axtens wrote: > They're very hard to use properly as they do not consider the > GSO_BY_FRAGS case. Code should use skb_gso_validate_network_len > and skb_gso_validate_mac_len as they do consider this case. > > Make the seglen functions static,

Re: [PATCH v2 3/4] net: xfrm: use skb_gso_validate_network_len() to check gso sizes

2018-03-02 Thread Marcelo Ricardo Leitner
On Thu, Mar 01, 2018 at 05:13:39PM +1100, Daniel Axtens wrote: > Replace skb_gso_network_seglen() with > skb_gso_validate_network_len(), as it considers the GSO_BY_FRAGS > case. > > Signed-off-by: Daniel Axtens Reviewed-by: Marcelo Ricardo Leitner >

Re: [PATCH v4 2/2] virtio_net: Extend virtio to use VF datapath when available

2018-03-02 Thread Siwei Liu
On Thu, Mar 1, 2018 at 12:08 PM, Sridhar Samudrala wrote: > This patch enables virtio_net to switch over to a VF datapath when a VF > netdev is present with the same MAC address. It allows live migration > of a VM with a direct attached VF without the need to setup a

Re: [PATCH v2 1/4] net: rename skb_gso_validate_mtu -> skb_gso_validate_network_len

2018-03-02 Thread Marcelo Ricardo Leitner
On Thu, Mar 01, 2018 at 05:13:37PM +1100, Daniel Axtens wrote: > If you take a GSO skb, and split it into packets, will the network > length (L3 headers + L4 headers + payload) of those packets be small > enough to fit within a given MTU? > > skb_gso_validate_mtu gives you the answer to that

Re: [PATCH v2 2/4] net: sched: tbf: handle GSO_BY_FRAGS case in enqueue

2018-03-02 Thread Marcelo Ricardo Leitner
On Thu, Mar 01, 2018 at 05:13:38PM +1100, Daniel Axtens wrote: > tbf_enqueue() checks the size of a packet before enqueuing it. > However, the GSO size check does not consider the GSO_BY_FRAGS > case, and so will drop GSO SCTP packets, causing a massive drop > in throughput. > > Use

Re: [Intel-wired-lan] SRIOV on Intel x710 fail to get attached both at VM creation time and VM runtime

2018-03-02 Thread Alexander Duyck
On Thu, Mar 1, 2018 at 11:21 PM, Stefan Assmann wrote: > On 2018-03-01 19:40, Alexander Duyck wrote: >> On Thu, Mar 1, 2018 at 8:12 AM, wrote: >> > + intel-wired-...@lists.osuosl.org >> > >> > >> > On 2018-03-01 21:41, p...@codeaurora.org wrote: >> >>

Re: [virtio-dev] Re: [PATCH v4 2/2] virtio_net: Extend virtio to use VF datapath when available

2018-03-02 Thread Samudrala, Sridhar
On 3/2/2018 12:44 PM, Siwei Liu wrote: On Fri, Mar 2, 2018 at 12:10 PM, Michael S. Tsirkin wrote: On Fri, Mar 02, 2018 at 11:52:27AM -0800, Samudrala, Sridhar wrote: On 3/2/2018 11:41 AM, Michael S. Tsirkin wrote: On Fri, Mar 02, 2018 at 07:26:25AM -0800, Alexander Duyck

Re: [Intel-wired-lan] [net-next PATCH] ixgbevf: fix unused variable warning

2018-03-02 Thread Alexander Duyck
On Wed, Feb 28, 2018 at 3:17 PM, Arnd Bergmann wrote: > The new ixgbevf_set_rx_buffer_len() function causes a harmless warnings > in configurations with large page size: > > drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c: In function > 'ixgbevf_set_rx_buffer_len': >

Re: [virtio-dev] Re: [PATCH v4 2/2] virtio_net: Extend virtio to use VF datapath when available

2018-03-02 Thread Siwei Liu
On Fri, Mar 2, 2018 at 11:42 AM, Michael S. Tsirkin wrote: > On Fri, Mar 02, 2018 at 05:20:17PM +0100, Jiri Pirko wrote: >> >Yeah, this code essentially calls out the "shareable" code with a >> >comment at the start and end of the section what defines the >> >virtio_bypass

Re: [virtio-dev] Re: [PATCH v4 2/2] virtio_net: Extend virtio to use VF datapath when available

2018-03-02 Thread Siwei Liu
On Fri, Mar 2, 2018 at 12:10 PM, Michael S. Tsirkin wrote: > On Fri, Mar 02, 2018 at 11:52:27AM -0800, Samudrala, Sridhar wrote: >> >> >> On 3/2/2018 11:41 AM, Michael S. Tsirkin wrote: >> > On Fri, Mar 02, 2018 at 07:26:25AM -0800, Alexander Duyck wrote: >> > > The design limits

Re: Issue accessing task_struct from BPF due to 4.16 stack-protector changes

2018-03-02 Thread Alexei Starovoitov
On Fri, Mar 02, 2018 at 12:09:57PM -0800, Gianluca Borello wrote: > Hello, > > While testing bpf-next, I noticed that I was reading garbage when > accessing some task_struct members, and the issue seems caused by the > recent commit 2bc2f688fdf8 ("Makefile: move stack-protector > availability out

[PATCH 00/14] Netfilter/IPVS fixes for net

2018-03-02 Thread Pablo Neira Ayuso
Hi David, The following patchset contains Netfilter fixes for your net tree, they are: 1) Put back reference on CLUSTERIP configuration structure from the error path, patch from Florian Westphal. 2) Put reference on CLUSTERIP configuration instead of freeing it, another cpu may still be

[PATCH 02/14] netfilter: ipt_CLUSTERIP: put config instead of freeing it

2018-03-02 Thread Pablo Neira Ayuso
From: Florian Westphal Once struct is added to per-netns list it becomes visible to other cpus, so we cannot use kfree(). Also delay setting entries refcount to 1 until after everything is initialised so that when we call clusterip_config_put() in this spot entries is still

[PATCH 03/14] netfilter: ipv6: fix use-after-free Write in nf_nat_ipv6_manip_pkt

2018-03-02 Thread Pablo Neira Ayuso
From: Florian Westphal l4proto->manip_pkt() can cause reallocation of skb head so pointer to the ipv6 header must be reloaded. Reported-and-tested-by: Fixes: 58a317f1061c89 ("netfilter: ipv6: add IPv6 NAT support")

[PATCH 06/14] netfilter: ebtables: CONFIG_COMPAT: don't trust userland offsets

2018-03-02 Thread Pablo Neira Ayuso
From: Florian Westphal We need to make sure the offsets are not out of range of the total size. Also check that they are in ascending order. The WARN_ON triggered by syzkaller (it sets panic_on_warn) is changed to also bail out, no point in continuing parsing. Briefly tested

[PATCH 04/14] netfilter: bridge: ebt_among: add missing match size checks

2018-03-02 Thread Pablo Neira Ayuso
From: Florian Westphal ebt_among is special, it has a dynamic match size and is exempt from the central size checks. Therefore it must check that the size of the match structure provided from userspace is sane by making sure em->match_size is at least the minimum size of the

[PATCH 07/14] netfilter: nf_flow_table: fix checksum when handling DNAT

2018-03-02 Thread Pablo Neira Ayuso
From: Felix Fietkau Add a missing call to csum_replace4 like on SNAT. Signed-off-by: Felix Fietkau Signed-off-by: Pablo Neira Ayuso --- net/ipv4/netfilter/nf_flow_table_ipv4.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 01/14] netfilter: ipt_CLUSTERIP: put config struct if we can't increment ct refcount

2018-03-02 Thread Pablo Neira Ayuso
From: Florian Westphal This needs to put() the entry to avoid a resource leak in error path. Signed-off-by: Florian Westphal Signed-off-by: Pablo Neira Ayuso --- net/ipv4/netfilter/ipt_CLUSTERIP.c | 8 ++-- 1 file changed, 6

[PATCH 08/14] netfilter: increase IPSTATS_MIB_CSUMERRORS stat

2018-03-02 Thread Pablo Neira Ayuso
From: Taehee Yoo In the ip_rcv, IPSTATS_MIB_CSUMERRORS is increased when checksum error is occurred. bridge netfilter routine should increase IPSTATS_MIB_CSUMERRORS. Signed-off-by: Taehee Yoo Signed-off-by: Pablo Neira Ayuso ---

[PATCH 05/14] netfilter: ebtables: convert BUG_ONs to WARN_ONs

2018-03-02 Thread Pablo Neira Ayuso
From: Florian Westphal All of these conditions are not fatal and should have been WARN_ONs from the get-go. Convert them to WARN_ONs and bail out. Signed-off-by: Florian Westphal Signed-off-by: Pablo Neira Ayuso ---

[PATCH 13/14] netfilter: nf_tables: use the right index from flowtable error path

2018-03-02 Thread Pablo Neira Ayuso
Use the right loop index, not the number of devices in the array that we need to remove, the following message uncovered the problem: [ 5437.044119] hook not found, pf 5 num 0 [ 5437.044140] WARNING: CPU: 2 PID: 24983 at net/netfilter/core.c:376 __nf_unregister_net_hook+0x250/0x280

[PATCH 11/14] netfilter: nf_tables: return EBUSY if device already belongs to flowtable

2018-03-02 Thread Pablo Neira Ayuso
If the netdevice is already part of a flowtable, return EBUSY. I cannot find a valid usecase for having two flowtables bound to the same netdevice. We can still have two flowtable where the device set is disjoint. Signed-off-by: Pablo Neira Ayuso ---

[PATCH 09/14] netfilter: don't set F_IFACE on ipv6 fib lookups

2018-03-02 Thread Pablo Neira Ayuso
From: Florian Westphal "fib" starts to behave strangely when an ipv6 default route is added - the FIB lookup returns a route using 'oif' in this case. This behaviour was inherited from ip6tables rpfilter so change this as well. Bugzilla:

[PATCH 10/14] netfilter: use skb_to_full_sk in ip6_route_me_harder

2018-03-02 Thread Pablo Neira Ayuso
From: Eric Dumazet For some reason, Florian forgot to apply to ip6_route_me_harder the fix that went in commit 29e09229d9f2 ("netfilter: use skb_to_full_sk in ip_route_me_harder") Fixes: ca6fb0651883 ("tcp: attach SYNACK messages to request sockets instead of listener") 

[PATCH 14/14] ipvs: remove IPS_NAT_MASK check to fix passive FTP

2018-03-02 Thread Pablo Neira Ayuso
From: Julian Anastasov The IPS_NAT_MASK check in 4.12 replaced previous check for nfct_nat() which was needed to fix a crash in 2.6.36-rc, see commit 7bcbf81a2296 ("ipvs: avoid oops for passive FTP"). But as IPVS does not set the IPS_SRC_NAT and IPS_DST_NAT bits, checking for

[PATCH 12/14] netfilter: nf_tables: missing attribute validation in nf_tables_delflowtable()

2018-03-02 Thread Pablo Neira Ayuso
Return -EINVAL is mandatory attributes are missing. Signed-off-by: Pablo Neira Ayuso --- net/netfilter/nf_tables_api.c | 5 + 1 file changed, 5 insertions(+) diff --git a/net/netfilter/nf_tables_api.c b/net/netfilter/nf_tables_api.c index 43acdeef045d..2b5aa78979db

Re: [PATCH net-next] ipv6: fix access to non-linear packet in ndisc_fill_redirect_hdr_option()

2018-03-02 Thread Eric Dumazet
On Fri, 2018-03-02 at 11:53 +0100, Lorenzo Bianconi wrote: > Fix the following slab-out-of-bounds kasan report in > ndisc_fill_redirect_hdr_option when the incoming ipv6 packet is not > linear and the accessed data are not in the linear data region of orig_skb > > Reported-by: Jianlin Shi

Re: [PATCH v3 net-next 1/2] lan743x: Add main source files for new lan743x driver

2018-03-02 Thread Andrew Lunn
> Hi Andrew, > > The phy is built in for LAN7430, and external for LAN7431. But the > same reset should work in both cases because it asserts the normal > phy reset line. Assuming the PHY reset is connect to the external line, not a GPIO. So this is O.K. > > Assuming it is built in, does the

Re: [PATCH v4 2/2] virtio_net: Extend virtio to use VF datapath when available

2018-03-02 Thread Michael S. Tsirkin
On Fri, Mar 02, 2018 at 11:52:27AM -0800, Samudrala, Sridhar wrote: > > > On 3/2/2018 11:41 AM, Michael S. Tsirkin wrote: > > On Fri, Mar 02, 2018 at 07:26:25AM -0800, Alexander Duyck wrote: > > > The design limits things to a 1:1 relationship since we just have the > > > child and backup

[PATCH v2 iproute2-next 3/6] rdma: Add CM_ID resource tracking information

2018-03-02 Thread Steve Wise
Sample output: # rdma resource 2: cxgb4_0: pd 5 cq 2 qp 2 cm_id 3 mr 7 3: mlx4_0: pd 7 cq 3 qp 3 cm_id 3 mr 7 # rdma resource show cm_id link cxgb4_0/- lqpn 0 qp-type RC state LISTEN ps TCP pid 30485 comm rping src-addr 0.0.0.0:7174 link cxgb4_0/2 lqpn 1048 qp-type RC state CONNECT ps TCP pid

[PATCH v2 iproute2-next 6/6] rdma: Add PD resource tracking information

2018-03-02 Thread Steve Wise
Sample output: Without CAP_NET_ADMIN capability: link mlx4_0/- users 0 pid 0 comm [ib_srpt] link mlx4_0/- users 0 pid 0 comm [ib_srp] link mlx4_0/- users 1 pid 0 comm [ib_core] link cxgb4_0/- users 0 pid 0 comm [ib_srp] With CAP_NET_ADMIN capability: link mlx4_0/- local_dma_lkey 0x8000 users 0

[PATCH v2 iproute2-next 5/6] rdma: Add MR resource tracking information

2018-03-02 Thread Steve Wise
Sample output: Without CAP_NET_ADMIN: $ rdma resource show mr mrlen 65536 link mlx4_0/- mrlen 65536 pid 0 comm [nvme_rdma] link cxgb4_0/- mrlen 65536 pid 0 comm [nvme_rdma] With CAP_NET_ADMIN: # rdma resource show mr mrlen 65536 link mlx4_0/- rkey 0x12702 lkey 0x12702 iova 0x85724a000 mrlen

[PATCH v2 iproute2-next 1/6] rdma: update rdma_netlink.h

2018-03-02 Thread Steve Wise
From: Steve Wise Pull in the latest rdma_netlink.h which has support for the rdma nldev resource tracking objects being added with this patch series. Signed-off-by: Steve Wise --- include/uapi/rdma/rdma_netlink.h | 44

Issue accessing task_struct from BPF due to 4.16 stack-protector changes

2018-03-02 Thread Gianluca Borello
Hello, While testing bpf-next, I noticed that I was reading garbage when accessing some task_struct members, and the issue seems caused by the recent commit 2bc2f688fdf8 ("Makefile: move stack-protector availability out of Kconfig") which removes CONFIG_CC_STACKPROTECTOR from autoconf.h. When I

[PATCH v2 iproute2-next 2/6] rdma: initialize the rd struct

2018-03-02 Thread Steve Wise
Initialize the rd struct so port_idx is 0 unless set otherwise. Otherwise, strict_port queries end up passing an uninitialized PORT nlattr. Signed-off-by: Steve Wise --- rdma/rdma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rdma/rdma.c

[PATCH v2 iproute2-next 4/6] rdma: Add CQ resource tracking information

2018-03-02 Thread Steve Wise
Sample output: # rdma resource show cq link cxgb4_0/- cqe 46 users 2 pid 30503 comm rping link cxgb4_0/- cqe 46 users 2 pid 30498 comm rping link mlx4_0/- cqe 63 users 2 pid 30494 comm rping link mlx4_0/- cqe 63 users 2 pid 30489 comm rping link mlx4_0/- cqe 1023 users 2 poll_ctx WORKQUEUE pid 0

  1   2   3   >