RE: ipsec tunnel performance degrade

2019-04-24 Thread Vakul Garg
> -Original Message- > From: David Miller > Sent: Tuesday, April 23, 2019 10:57 PM > To: f...@strlen.de > Cc: Vakul Garg ; netdev@vger.kernel.org > Subject: Re: ipsec tunnel performance degrade > > From: Florian Westphal > Date: Tue, 23 Apr 2019 18:25:21 +0200 > > > Vakul Garg wrote

Re: [PATCH net-next] net: sched: flower: refactor reoffload for concurrent access

2019-04-24 Thread Vlad Buslov
On Tue 23 Apr 2019 at 19:52, Saeed Mahameed wrote: > On Tue, 2019-04-23 at 07:43 +, Vlad Buslov wrote: >> On Mon 22 Apr 2019 at 23:34, Saeed Mahameed >> wrote: >> > On Mon, 2019-04-22 at 10:21 +0300, Vlad Buslov wrote: >> > > Recent changes that introduced unlocked flower did not properly >>

Re: [PATCH net-next] net: sched: flower: refactor reoffload for concurrent access

2019-04-24 Thread Vlad Buslov
On Tue 23 Apr 2019 at 19:51, Jakub Kicinski wrote: > On Tue, 23 Apr 2019 07:34:20 +, Vlad Buslov wrote: >> >> @@ -382,6 +395,8 @@ static void fl_hw_destroy_filter(struct tcf_proto >> >> *tp, struct cls_fl_filter *f, >> >> >> >> tc_setup_cb_call(block, TC_SETUP_CLSFLOWER, &cls_flower, fa

Re: [PATCH 0/5] isdn: deprecate non-mISDN drivers

2019-04-24 Thread Simon Horman
Hi Arnd, On Tue, Apr 23, 2019 at 05:11:32PM +0200, Arnd Bergmann wrote: > When isdn4linux came up in the context of another patch series, I > remembered that we had discussed removing it a while ago. > > It turns out that the suggestion from Karsten Keil wa to remove I4L > in 2018 after the last

Re: [PATCH bpf-next 2/2] bpftool: show flow_dissector attachment status

2019-04-24 Thread Quentin Monnet
2019-04-23 16:22 UTC-0700 ~ Stanislav Fomichev Right now there is no way to query whether BPF flow_dissector program is attached to a network namespace or not. In previous commit, I added support for querying that info, show it when doing `bpftool net`: $ bpftool prog loadall ./bpf_flow.o \

Re: [PATCH 0/5] isdn: deprecate non-mISDN drivers

2019-04-24 Thread Arnd Bergmann
On Wed, Apr 24, 2019 at 9:56 AM Simon Horman wrote: > > Hi Arnd, > > On Tue, Apr 23, 2019 at 05:11:32PM +0200, Arnd Bergmann wrote: > > When isdn4linux came up in the context of another patch series, I > > remembered that we had discussed removing it a while ago. > > > > It turns out that the sugg

Re: [PATCH v3 net] rxrpc: fix race condition in rxrpc_input_packet()

2019-04-24 Thread David Howells
Eric Dumazet wrote: > After commit 5271953cad31 ("rxrpc: Use the UDP encap_rcv hook"), > rxrpc_input_packet() is directly called from lockless UDP receive > path, under rcu_read_lock() protection. > > It must therefore use RCU rules : > > - udp_sk->sk_user_data can be cleared at any point in th

Re: [PATCH v2 net-next 02/16] net: aquantia: implement hwmon api for chip temperature

2019-04-24 Thread Igor Russkikh
>> +static u32 aq_hwmon_temp_config[] = { >> +HWMON_T_INPUT | HWMON_T_LABEL, >> +0, > > It would be nice to also have > > HWMON_T_MAX | HWMON_T_MIN | > HWMON_T_CRIT | HWMON_T_LCRIT | > > which the PHY probably has. > > At gives some degree of context. A temperature on i

Re: [PATCH v2 net-next 01/16] net: aquantia: add infrastructure to readout chip temperature

2019-04-24 Thread Igor Russkikh
>> >> +int (*get_temp)(struct aq_hw_s *self, int *temp); >> + > > We talked about renaming this get_phy_temp so you could later add > get_mac_temp? Lost that comment, sorry. Will do rename.

Re: [PATCH v2 net-next 11/16] net: aquantia: extract timer cb into work job

2019-04-24 Thread Igor Russkikh
Hello Jakub, > The split into patches is slightly imperfect here. > > Patch 10 "introduces" a mutex, which nothing is using, yet. > > Patch 11 starts some async work, which the mutex is needed for. > > Patches 12 and 13 wrap other FW call sites... > > Isn't it better to squash 12 and 13 into 1

Re: [PATCH 0/5] isdn: deprecate non-mISDN drivers

2019-04-24 Thread Arnd Bergmann
On Wed, Apr 24, 2019 at 4:37 AM David Miller wrote: > > From: Arnd Bergmann > Date: Tue, 23 Apr 2019 17:11:32 +0200 > > > When isdn4linux came up in the context of another patch series, I > > remembered that we had discussed removing it a while ago. > > This seems long overdue to me. > > Could yo

Re: [PATCH 0/5] isdn: deprecate non-mISDN drivers

2019-04-24 Thread Paul Bolle
Arnd Bergmann schreef op di 23-04-2019 om 17:11 [+0200]: > When isdn4linux came up in the context of another patch series, I > remembered that we had discussed removing it a while ago. > > It turns out that the suggestion from Karsten Keil wa to remove I4L > in 2018 after the last public ISDN netw

Re: [PATCH 1/5] isdn: gigaset: remove i4l support

2019-04-24 Thread Paul Bolle
Arnd Bergmann schreef op di 23-04-2019 om 17:11 [+0200]: > --- a/drivers/isdn/gigaset/Kconfig > +++ b/drivers/isdn/gigaset/Kconfig > @@ -1,6 +1,7 @@ > menuconfig ISDN_DRV_GIGASET > tristate "Siemens Gigaset support" > depends on TTY > + depends on ISDN_CAPI > select CRC_CCITT

Re: BUG: KASAN: use-after-free Read in tun_net_xmit

2019-04-24 Thread Jason Wang
On 2019/4/24 上午12:41, Cong Wang wrote: On Mon, Apr 22, 2019 at 11:42 PM Jason Wang wrote: On 2019/4/23 下午2:00, Cong Wang wrote: On Mon, Apr 22, 2019 at 2:41 AM Jason Wang wrote: On 2019/4/22 上午11:57, YueHaibing wrote: We get a KASAN report as below, but don't have any reproducer. Any co

Re: [PATCH 0/5] isdn: deprecate non-mISDN drivers

2019-04-24 Thread Simon Horman
On Wed, Apr 24, 2019 at 10:14:55AM +0200, Arnd Bergmann wrote: > On Wed, Apr 24, 2019 at 9:56 AM Simon Horman wrote: > > > > Hi Arnd, > > > > On Tue, Apr 23, 2019 at 05:11:32PM +0200, Arnd Bergmann wrote: > > > When isdn4linux came up in the context of another patch series, I > > > remembered that

Re: [PATCH 5/5] isdn: move capi drivers to staging

2019-04-24 Thread Thomas Jarosch
Hello Arnd, You wrote on Tue, Apr 23, 2019 at 05:11:43PM +0200: > I tried to find any indication of whether the capi drivers are > still in use, and have not found anything from a long time ago. > > With public ISDN networks almost completely shut down over the past 12 > months, there is very li

Re: [PATCH net] l2tp: use rcu_dereference_sk_user_data() in l2tp_udp_encap_recv()

2019-04-24 Thread Guillaume Nault
On Tue, Apr 23, 2019 at 09:43:26AM -0700, Eric Dumazet wrote: > Canonical way to fetch sk_user_data from an encap_rcv() handler called > from UDP stack in rcu protected section is to use > rcu_dereference_sk_user_data(), > otherwise compiler might read it multiple times. > That reminds me the mor

Re: [PATCH 0/5] isdn: deprecate non-mISDN drivers

2019-04-24 Thread Marcel Holtmann
Hi Arnd, >>> When isdn4linux came up in the context of another patch series, I >>> remembered that we had discussed removing it a while ago. >> >> This seems long overdue to me. >> >> Could you please respin against net-next and I'll just apply this? > > Ok. I'll send a pull request then, which

Re: [PATCH ipsec-next 0/3] xfrm: remove three xfrm_afinfo_policy indirections

2019-04-24 Thread Steffen Klassert
On Tue, Apr 16, 2019 at 04:44:36PM +0200, Florian Westphal wrote: > This series removes three indirections from xfrm_afinfo_policy by > folding them into their callers. > > 1. Tos is a one-liner only needed by ipv4 > 2. init_path is also small and only needed by ipv6 > 3. decode_session has no dep

Re: [PATCH ipsec-next] xfrm: remove unneeded export_symbols

2019-04-24 Thread Steffen Klassert
On Wed, Apr 17, 2019 at 11:45:13AM +0200, Florian Westphal wrote: > None of them have any external callers, make them static. > > Signed-off-by: Florian Westphal Also applied, thanks a lot!

[RFC HACK] xfrm: make state refcounting percpu

2019-04-24 Thread Florian Westphal
I'm not sure this is a good idea to begin with, refcount is right next to state spinlock which is taken for both tx and rx ops, plus this complicates debugging quite a bit. Also expect UAF or refcount bugs, especially xfrm_states that won't get free'd. In case someone wants to experiment with thi

Re: [PATCH net] l2tp: use rcu_dereference_sk_user_data() in l2tp_udp_encap_recv()

2019-04-24 Thread Eric Dumazet
On Wed, Apr 24, 2019 at 2:58 AM Guillaume Nault wrote: > > On Tue, Apr 23, 2019 at 09:43:26AM -0700, Eric Dumazet wrote: > > Canonical way to fetch sk_user_data from an encap_rcv() handler called > > from UDP stack in rcu protected section is to use > > rcu_dereference_sk_user_data(), > > otherwi

Re: [RFC HACK] xfrm: make state refcounting percpu

2019-04-24 Thread Eric Dumazet
On 04/24/2019 03:40 AM, Florian Westphal wrote: > I'm not sure this is a good idea to begin with, refcount > is right next to state spinlock which is taken for both tx and rx ops, > plus this complicates debugging quite a bit. > Why not simply using include/linux/percpu-refcount.h ? > Also e

Re: [PATCH 0/5] isdn: deprecate non-mISDN drivers

2019-04-24 Thread Arnd Bergmann
On Wed, Apr 24, 2019 at 10:48 AM Paul Bolle wrote: > > Arnd Bergmann schreef op di 23-04-2019 om 17:11 [+0200]: > > When isdn4linux came up in the context of another patch series, I > > remembered that we had discussed removing it a while ago. > > > > It turns out that the suggestion from Karsten

Re: BUG: KASAN: use-after-free Read in tun_net_xmit

2019-04-24 Thread YueHaibing
On 2019/4/24 17:11, Jason Wang wrote: > > On 2019/4/24 上午12:41, Cong Wang wrote: >> On Mon, Apr 22, 2019 at 11:42 PM Jason Wang wrote: >>> >>> On 2019/4/23 下午2:00, Cong Wang wrote: On Mon, Apr 22, 2019 at 2:41 AM Jason Wang wrote: > On 2019/4/22 上午11:57, YueHaibing wrote: >> We get

Re: [PATCH 5/5] isdn: move capi drivers to staging

2019-04-24 Thread Arnd Bergmann
On Wed, Apr 24, 2019 at 11:24 AM Thomas Jarosch wrote: > You wrote on Tue, Apr 23, 2019 at 05:11:43PM +0200: > > I tried to find any indication of whether the capi drivers are > > still in use, and have not found anything from a long time ago. > > > > With public ISDN networks almost completely s

Re: [PATCH v2 net-next 02/16] net: aquantia: implement hwmon api for chip temperature

2019-04-24 Thread Andrew Lunn
On Wed, Apr 24, 2019 at 08:28:46AM +, Igor Russkikh wrote: > > >> +static u32 aq_hwmon_temp_config[] = { > >> + HWMON_T_INPUT | HWMON_T_LABEL, > >> + 0, > > > > It would be nice to also have > > > > HWMON_T_MAX | HWMON_T_MIN | > > HWMON_T_CRIT | HWMON_T_LCRIT | > > > > whi

Re: [PATCH 1/5] isdn: gigaset: remove i4l support

2019-04-24 Thread Arnd Bergmann
On Wed, Apr 24, 2019 at 10:53 AM Paul Bolle wrote: > > Arnd Bergmann schreef op di 23-04-2019 om 17:11 [+0200]: > > --- a/drivers/isdn/gigaset/Kconfig > > +++ b/drivers/isdn/gigaset/Kconfig > > @@ -1,6 +1,7 @@ > > menuconfig ISDN_DRV_GIGASET > > tristate "Siemens Gigaset support" > >

[PATCH net] net/rose: fix unbound loop in rose_loopback_timer()

2019-04-24 Thread Eric Dumazet
This patch adds a limit on the number of skbs that fuzzers can queue into loopback_queue. 1000 packets for rose loopback seems more than enough. Then, since we now have multiple cpus in most linux hosts, we also need to limit the number of skbs rose_loopback_timer() can dequeue at each round. ros

Re: [PATCH v2 net-next 00/14] Make DSA tag drivers kernel modules

2019-04-24 Thread Andrew Lunn
> Looks like one more spin with small fixups and this will be ready. Yes. And i wanted to give Florian time to review the patches he suggested changes to. I will wait a couple more days before re-submitting. Andrew

Re: [PATCH 0/5] isdn: deprecate non-mISDN drivers

2019-04-24 Thread Arnd Bergmann
On Wed, Apr 24, 2019 at 12:24 PM Marcel Holtmann wrote: > >>> When isdn4linux came up in the context of another patch series, I > >>> remembered that we had discussed removing it a while ago. > > NAK. > > I do not care about isdn4linux, but this is a purely CAPI based driver. So > removing (or mo

Re: [PATCH rdma-next 4/8] IB/mlx5: Add steering SW ICM device memory type

2019-04-24 Thread Jason Gunthorpe
On Sun, Mar 31, 2019 at 07:44:46PM +0300, Leon Romanovsky wrote: > From: Ariel Levkovich > > This patch adds support for allocating, deallocating and registering > a new device memory type, STEERING_SW_ICM. > This memory can be allocated and used by a privileged user for direct > rule insertion a

Re: [PATCH rdma-next 0/8] User space steering

2019-04-24 Thread Jason Gunthorpe
On Sun, Mar 31, 2019 at 07:44:42PM +0300, Leon Romanovsky wrote: > From: Leon Romanovsky > > >From Ariel, > > This series of patches adds user space managed steering infrastructure > to the mlx5_ib driver. > > User space managed steering requires the means to access a dedicated > memory space t

Re: [PATCH rdma-next 4/8] IB/mlx5: Add steering SW ICM device memory type

2019-04-24 Thread Leon Romanovsky
On Wed, Apr 24, 2019 at 10:04:40AM -0300, Jason Gunthorpe wrote: > On Sun, Mar 31, 2019 at 07:44:46PM +0300, Leon Romanovsky wrote: > > From: Ariel Levkovich > > > > This patch adds support for allocating, deallocating and registering > > a new device memory type, STEERING_SW_ICM. > > This memory

Re: [PATCH rdma-next 4/8] IB/mlx5: Add steering SW ICM device memory type

2019-04-24 Thread Jason Gunthorpe
On Wed, Apr 24, 2019 at 04:12:22PM +0300, Leon Romanovsky wrote: > On Wed, Apr 24, 2019 at 10:04:40AM -0300, Jason Gunthorpe wrote: > > On Sun, Mar 31, 2019 at 07:44:46PM +0300, Leon Romanovsky wrote: > > > From: Ariel Levkovich > > > > > > This patch adds support for allocating, deallocating and

Re: [PATCH 5/5] isdn: move capi drivers to staging

2019-04-24 Thread Thomas Jarosch
Hi Arnd, > Ok, interesting. My understanding was that mISDN CAPI support > was done purely in user space, on top of the mISDN interface. > > I don't see any interfaction between the two in the kernel code, > but if the capi module is required for mISDN, we clearly have to > keep it. We could still

Re: [PATCH rdma-next 4/8] IB/mlx5: Add steering SW ICM device memory type

2019-04-24 Thread Leon Romanovsky
On Wed, Apr 24, 2019 at 10:14:05AM -0300, Jason Gunthorpe wrote: > On Wed, Apr 24, 2019 at 04:12:22PM +0300, Leon Romanovsky wrote: > > On Wed, Apr 24, 2019 at 10:04:40AM -0300, Jason Gunthorpe wrote: > > > On Sun, Mar 31, 2019 at 07:44:46PM +0300, Leon Romanovsky wrote: > > > > From: Ariel Levkovi

Re: [PATCH rdma-next 4/8] IB/mlx5: Add steering SW ICM device memory type

2019-04-24 Thread Jason Gunthorpe
On Wed, Apr 24, 2019 at 04:25:16PM +0300, Leon Romanovsky wrote: > On Wed, Apr 24, 2019 at 10:14:05AM -0300, Jason Gunthorpe wrote: > > On Wed, Apr 24, 2019 at 04:12:22PM +0300, Leon Romanovsky wrote: > > > On Wed, Apr 24, 2019 at 10:04:40AM -0300, Jason Gunthorpe wrote: > > > > On Sun, Mar 31, 201

Re: [PATCH rdma-next 4/8] IB/mlx5: Add steering SW ICM device memory type

2019-04-24 Thread Leon Romanovsky
On Wed, Apr 24, 2019 at 10:35:53AM -0300, Jason Gunthorpe wrote: > On Wed, Apr 24, 2019 at 04:25:16PM +0300, Leon Romanovsky wrote: > > On Wed, Apr 24, 2019 at 10:14:05AM -0300, Jason Gunthorpe wrote: > > > On Wed, Apr 24, 2019 at 04:12:22PM +0300, Leon Romanovsky wrote: > > > > On Wed, Apr 24, 201

Re: [PATCH rdma-next 4/8] IB/mlx5: Add steering SW ICM device memory type

2019-04-24 Thread Jason Gunthorpe
On Wed, Apr 24, 2019 at 04:46:04PM +0300, Leon Romanovsky wrote: > On Wed, Apr 24, 2019 at 10:35:53AM -0300, Jason Gunthorpe wrote: > > On Wed, Apr 24, 2019 at 04:25:16PM +0300, Leon Romanovsky wrote: > > > On Wed, Apr 24, 2019 at 10:14:05AM -0300, Jason Gunthorpe wrote: > > > > On Wed, Apr 24, 201

Re: TC stats / hw offload question

2019-04-24 Thread Edward Cree
On 06/02/2019 02:20, Jamal Hadi Salim wrote: > The classifiers dont mod the packets. The actions do. And they > maintain stats on the size on "entry" i.e pre-edit. > Each action keeps its own counters. If you did something like: > > tc match using flower blah \ > action vlan push tag ... \ > action

Re: [PATCH] IB/mlx5: add checking for "vf" from do_setvfinfo()

2019-04-24 Thread Dan Carpenter
I think I'm just going to ask netdev for an opinion on this. It could be that we're just reading the code wrong... I'm getting a lot of Smatch warning about buffer underflows. The problem is that Smatch marks everything from nla_data() as unknown and untrusted user data. In do_setvfinfo() we ge

Re: TC stats / hw offload question

2019-04-24 Thread Pablo Neira Ayuso
On Wed, Apr 24, 2019 at 03:05:05PM +0100, Edward Cree wrote: > On 06/02/2019 02:20, Jamal Hadi Salim wrote: > > The classifiers dont mod the packets. The actions do. And they > > maintain stats on the size on "entry" i.e pre-edit. > > Each action keeps its own counters. If you did something like: >

Re: [PATCH] IB/mlx5: add checking for "vf" from do_setvfinfo()

2019-04-24 Thread Jason Gunthorpe
On Wed, Apr 24, 2019 at 05:08:20PM +0300, Dan Carpenter wrote: > I think I'm just going to ask netdev for an opinion on this. It could > be that we're just reading the code wrong... I don't think you are reading it wrong. Allowing the compiler to implicitly cast a user controlled u32 to an int i

Re: [PATCH 0/5] isdn: deprecate non-mISDN drivers

2019-04-24 Thread Marcel Holtmann
Hi Arnd, > When isdn4linux came up in the context of another patch series, I > remembered that we had discussed removing it a while ago. >> >> NAK. >> >> I do not care about isdn4linux, but this is a purely CAPI based driver. So >> removing (or moving to staging) >> CAPI support seems r

Re: bnx2x - odd behaviour

2019-04-24 Thread Ian Kumlien
On Fri, Apr 19, 2019 at 7:23 AM Sudarsana Reddy Kalluru wrote: > > Hi Ian, > Thanks for your info. Mfw team already analyzed the "nig timer" related > logs but can't infer anything. From the boot-code version, the device look to > be from the older generation of Broadcom nics. Besides the >

[PATCH AUTOSEL 4.9 06/28] batman-adv: Reduce tt_global hash refcnt only for removed entry

2019-04-24 Thread Sasha Levin
From: Sven Eckelmann [ Upstream commit f131a56880d10932931e74773fb8702894a94a75 ] The batadv_hash_remove is a function which searches the hashtable for an entry using a needle, a hashtable bucket selection function and a compare function. It will lock the bucket list and delete an entry when the

Обнаружен вирус

2019-04-24 Thread Deutsche
Письмо содержит вирус! Heuristics.Phishing.Email.SpoofedDomain FOUND <>

[PATCH AUTOSEL 4.14 15/35] net: stmmac: don't log oversized frames

2019-04-24 Thread Sasha Levin
From: Aaro Koskinen [ Upstream commit 057a0c5642a2ff2db7c421cdcde34294a23bf37b ] This is log is harmful as it can trigger multiple times per packet. Delete it. Signed-off-by: Aaro Koskinen Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/stmicro/stmmac/norm

Re: [PATCH net-next 2/3] tcp: implement coalescing on backlog queue

2019-04-24 Thread Bruno Prémont
Hi Eric, I'm seeing issues with this patch as well, not as regular as for Richard but still (about up to one in 30-50 TCP sessions). In my case I have a virtual machine (on VMWare) with this patch where NGINX as reverse proxy misses part (end) of payload from its upstream and times out on the ups

Re: TC stats / hw offload question

2019-04-24 Thread Edward Cree
On 24/04/2019 15:11, Pablo Neira Ayuso wrote: > On Wed, Apr 24, 2019 at 03:05:05PM +0100, Edward Cree wrote: >> So, I had this working for a while, by calling tcf_action_stats_update() >>  directly on the correct element of tc->exts->actions[], instead of using >>  tcf_exts_stats_update().  And thi

[PATCH net] ipv4: add sanity checks in ipv4_link_failure()

2019-04-24 Thread Eric Dumazet
Before calling __ip_options_compile(), we need to ensure the network header is a an IPv4 one, and that it is already pulled in skb->head. RAW sockets going through a tunnel can end up calling ipv4_link_failure() with total garbage in the skb, or arbitrary lengthes. syzbot report : BUG: KASAN: st

Re: [PATCH net] ipv4: add sanity checks in ipv4_link_failure()

2019-04-24 Thread Willem de Bruijn
On Wed, Apr 24, 2019 at 11:05 AM Eric Dumazet wrote: > > Before calling __ip_options_compile(), we need to ensure the network > header is a an IPv4 one, and that it is already pulled in skb->head. > > RAW sockets going through a tunnel can end up calling ipv4_link_failure() > with total garbage in

Re: [PATCH bpf-next 2/2] bpftool: show flow_dissector attachment status

2019-04-24 Thread Stanislav Fomichev
On 04/24, Quentin Monnet wrote: > 2019-04-23 16:22 UTC-0700 ~ Stanislav Fomichev > > Right now there is no way to query whether BPF flow_dissector program > > is attached to a network namespace or not. In previous commit, I added > > support for querying that info, show it when doing `bpftool net`

Re: [PATCH net-next 2/3] tcp: implement coalescing on backlog queue

2019-04-24 Thread Eric Dumazet
On Wed, Apr 24, 2019 at 7:51 AM Bruno Prémont wrote: > > Hi Eric, > > I'm seeing issues with this patch as well, not as regular as for > Richard but still (about up to one in 30-50 TCP sessions). > > In my case I have a virtual machine (on VMWare) with this patch where > NGINX as reverse proxy mis

Re: [PATCH rdma-next 4/8] IB/mlx5: Add steering SW ICM device memory type

2019-04-24 Thread Leon Romanovsky
On Wed, Apr 24, 2019 at 10:47:03AM -0300, Jason Gunthorpe wrote: > On Wed, Apr 24, 2019 at 04:46:04PM +0300, Leon Romanovsky wrote: > > On Wed, Apr 24, 2019 at 10:35:53AM -0300, Jason Gunthorpe wrote: > > > On Wed, Apr 24, 2019 at 04:25:16PM +0300, Leon Romanovsky wrote: > > > > On Wed, Apr 24, 201

Re: [PATCH rdma-next 4/8] IB/mlx5: Add steering SW ICM device memory type

2019-04-24 Thread Jason Gunthorpe
On Wed, Apr 24, 2019 at 06:49:37PM +0300, Leon Romanovsky wrote: > On Wed, Apr 24, 2019 at 10:47:03AM -0300, Jason Gunthorpe wrote: > > On Wed, Apr 24, 2019 at 04:46:04PM +0300, Leon Romanovsky wrote: > > > On Wed, Apr 24, 2019 at 10:35:53AM -0300, Jason Gunthorpe wrote: > > > > On Wed, Apr 24, 201

[PATCH bpf-next v2 1/2] bpf: support BPF_PROG_QUERY for BPF_FLOW_DISSECTOR attach_type

2019-04-24 Thread Stanislav Fomichev
target_fd is target namespace. If there is a flow dissector BPF program attached to that namespace, its (single) id is returned. v2: * don't sleep in rcu critical section (Jakub Kicinski) * check input prog_cnt (exit early) Signed-off-by: Stanislav Fomichev --- include/linux/skbuff.h| 8 ++

[PATCH bpf-next v2 2/2] bpftool: show flow_dissector attachment status

2019-04-24 Thread Stanislav Fomichev
Right now there is no way to query whether BPF flow_dissector program is attached to a network namespace or not. In previous commit, I added support for querying that info, show it when doing `bpftool net`: $ bpftool prog loadall ./bpf_flow.o \ /sys/fs/bpf/flow type flow_dissector \

Re: [PATCH rdma-next 4/8] IB/mlx5: Add steering SW ICM device memory type

2019-04-24 Thread Leon Romanovsky
On Wed, Apr 24, 2019 at 12:53:13PM -0300, Jason Gunthorpe wrote: > On Wed, Apr 24, 2019 at 06:49:37PM +0300, Leon Romanovsky wrote: > > On Wed, Apr 24, 2019 at 10:47:03AM -0300, Jason Gunthorpe wrote: > > > On Wed, Apr 24, 2019 at 04:46:04PM +0300, Leon Romanovsky wrote: > > > > On Wed, Apr 24, 201

[PATCH net-next] cxgb4/cxgb4vf_main: Mark expected switch fall-through

2019-04-24 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. This patch fixes the following warning: drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c: In function ‘fwevtq_handler’: drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c:520:7: warni

[PATCH iproute2-next] tc: add support for plug qdisc

2019-04-24 Thread Paolo Abeni
sch_plug can be used to perform functional qdisc unit tests controlling explicitly the queuing behaviour from user-space. Plug support lacks since its introduction in 2012. This change introduces basic support, to control the tc status. Signed-off-by: Paolo Abeni --- tc/Makefile | 1 + tc/q_pl

Re: [PATCH v4 bpf-next 15/15] nfp: bpf: eliminate zero extension code-gen

2019-04-24 Thread kbuild test robot
Hi Jiong, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on bpf-next/master] url: https://github.com/0day-ci/linux/commits/Jiong-Wang/bpf-eliminate-zero-extensions-for-sub-register-writes/20190416-191711 base: https://git.kernel.org/pub/scm/linux/kernel/git

Re: [PATCH rdma-next 4/8] IB/mlx5: Add steering SW ICM device memory type

2019-04-24 Thread Jason Gunthorpe
On Wed, Apr 24, 2019 at 07:27:36PM +0300, Leon Romanovsky wrote: > On Wed, Apr 24, 2019 at 12:53:13PM -0300, Jason Gunthorpe wrote: > > On Wed, Apr 24, 2019 at 06:49:37PM +0300, Leon Romanovsky wrote: > > > On Wed, Apr 24, 2019 at 10:47:03AM -0300, Jason Gunthorpe wrote: > > > > On Wed, Apr 24, 201

Re: [PATCH v3 net] rxrpc: fix race condition in rxrpc_input_packet()

2019-04-24 Thread Eric Dumazet
On 04/24/2019 01:27 AM, David Howells wrote: > > Acked-by: David Howells > A v4 is coming, since @local could be NULL in rxrpc_lookup_local() as reported by kbuild test robot and Julia Lawall diff --git a/net/rxrpc/local_object.c b/net/rxrpc/local_object.c index 15cf42d5b53a56d8d19cab

Re: [PATCH rdma-next 0/8] User space steering

2019-04-24 Thread Saeed Mahameed
On Wed, 2019-04-24 at 10:07 -0300, Jason Gunthorpe wrote: > On Sun, Mar 31, 2019 at 07:44:42PM +0300, Leon Romanovsky wrote: > > From: Leon Romanovsky > > > > > From Ariel, > > > > This series of patches adds user space managed steering > > infrastructure > > to the mlx5_ib driver. > > > > User

[PATCH v4 net] rxrpc: fix race condition in rxrpc_input_packet()

2019-04-24 Thread Eric Dumazet
After commit 5271953cad31 ("rxrpc: Use the UDP encap_rcv hook"), rxrpc_input_packet() is directly called from lockless UDP receive path, under rcu_read_lock() protection. It must therefore use RCU rules : - udp_sk->sk_user_data can be cleared at any point in this function. rcu_dereference_sk_us

Re: [PATCH 1/1] net: rds: exchange of 8K and 1M pool

2019-04-24 Thread Santosh Shilimkar
On 4/23/2019 11:56 PM, Zhu Yanjun wrote: Before the commit 490ea5967b0d ("RDS: IB: move FMR code to its own file"), when the dirty_count is greater than 9/10 of max_items of 8K pool, 1M pool is used, Vice versa. After the commit 490ea5967b0d ("RDS: IB: move FMR code to its own file"), the above i

Re: [PATCH bpf-next 2/2] bpftool/docs: add btf sub-command documentation

2019-04-24 Thread Yonghong Song
On 4/23/19 10:22 PM, andrii.nakry...@gmail.com wrote: > From: Andrii Nakryiko > > Document usage and sample output format for `btf dump` sub-command. When applying the patch, I see a few trailing spaces. === p2.txt:113: trailing whitespace. p2.txt:118: trailing whitespace. p2.txt:120: trail

Re: virtio_net: suspicious RCU usage with xdp

2019-04-24 Thread Michael S. Tsirkin
On Wed, Apr 24, 2019 at 11:13:42AM -0600, David Ahern wrote: > seeing an RCU warning testing xdp with virtio net. net-next as of commit > b2f97f7de2f6a4df8e431330cf467576486651c5. No obvious changes so hoping > this rings a bell with someone else. > > > [ 121.990304]

Re: virtio_net: suspicious RCU usage with xdp

2019-04-24 Thread David Ahern
On 4/24/19 11:37 AM, Michael S. Tsirkin wrote: > diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c > index 9010938e2d71..ccc1bdd1bb1f 100644 > --- a/drivers/net/virtio_net.c > +++ b/drivers/net/virtio_net.c > @@ -495,8 +495,8 @@ static struct send_queue *virtnet_xdp_sq(struct > virt

[PATCH net-next] ipv6: Initialize fib6_result in bpf_ipv6_fib_lookup

2019-04-24 Thread David Ahern
From: David Ahern fib6_result is not initialized in bpf_ipv6_fib_lookup and potentially passses garbage to the fib lookup which triggers a KASAN warning: [ 262.055450] == [ 262.057640] BUG: KASAN: user-memory-access in fib6_rule_

Re: [PATCH bpf-next 1/2] bpftool: add ability to dump BTF types

2019-04-24 Thread Yonghong Song
On 4/23/19 10:21 PM, andrii.nakry...@gmail.com wrote: > From: Andrii Nakryiko > > Add new `btf dump` sub-command to bpftool. It allows to dump > human-readable low-level BTF types representation of BTF types. BTF can > be retrieved from few different sources: >- from BTF object by ID; >

Re: [PATCH bpf v2 1/2] bpf: mark registers as safe or unknown in all frames

2019-04-24 Thread Paul Chaignon
On Tue, Apr 23, 2019 01:47AM, Daniel Borkmann wrote: > On 04/22/2019 08:34 PM, Paul Chaignon wrote: > > In case of a null check on a pointer inside a subprog, we should mark all > > registers with this pointer as either safe or unknown, in both the current > > and previous frames. Currently, only

virtio_net: suspicious RCU usage with xdp

2019-04-24 Thread David Ahern
seeing an RCU warning testing xdp with virtio net. net-next as of commit b2f97f7de2f6a4df8e431330cf467576486651c5. No obvious changes so hoping this rings a bell with someone else. [ 121.990304] = [ 121.991488] WARNING: suspicious RCU usage [ 121.992392] 5.1.0-rc5+

Re: [PATCH bpf-next 1/2] bpftool: add ability to dump BTF types

2019-04-24 Thread Yonghong Song
On 4/23/19 10:21 PM, andrii.nakry...@gmail.com wrote: > From: Andrii Nakryiko > > Add new `btf dump` sub-command to bpftool. It allows to dump > human-readable low-level BTF types representation of BTF types. BTF can > be retrieved from few different sources: >- from BTF object by ID; >

[PATCH net] qmi_wwan: new Wistron, ZTE and D-Link devices

2019-04-24 Thread Bjørn Mork
Adding device entries found in vendor modified versions of this driver. Function maps for some of the devices follow: WNC D16Q1, D16Q5, D18Q1 LTE CAT3 module (1435:0918) MI_00 Qualcomm HS-USB Diagnostics MI_01 Android Debug interface MI_02 Qualcomm HS-USB Modem MI_03 Qualcomm Wireless HS-USB Eth

Re: [PATCH bpf-next 1/2] bpftool: add ability to dump BTF types

2019-04-24 Thread Andrii Nakryiko
On Wed, Apr 24, 2019 at 10:12 AM Yonghong Song wrote: > > > > On 4/23/19 10:21 PM, andrii.nakry...@gmail.com wrote: > > From: Andrii Nakryiko > > > > Add new `btf dump` sub-command to bpftool. It allows to dump > > human-readable low-level BTF types representation of BTF types. BTF can > > be ret

Re: [PATCH bpf-next 1/2] bpftool: add ability to dump BTF types

2019-04-24 Thread Andrii Nakryiko
On Wed, Apr 24, 2019 at 10:17 AM Yonghong Song wrote: > > > > On 4/23/19 10:21 PM, andrii.nakry...@gmail.com wrote: > > From: Andrii Nakryiko > > > > Add new `btf dump` sub-command to bpftool. It allows to dump > > human-readable low-level BTF types representation of BTF types. BTF can > > be ret

Re: [PATCH net] l2tp: use rcu_dereference_sk_user_data() in l2tp_udp_encap_recv()

2019-04-24 Thread Guillaume Nault
On Wed, Apr 24, 2019 at 04:33:47AM -0700, Eric Dumazet wrote: > On Wed, Apr 24, 2019 at 2:58 AM Guillaume Nault wrote: > > > > On Tue, Apr 23, 2019 at 09:43:26AM -0700, Eric Dumazet wrote: > > > Canonical way to fetch sk_user_data from an encap_rcv() handler called > > > from UDP stack in rcu prot

Re: [PATCH net] l2tp: use rcu_dereference_sk_user_data() in l2tp_udp_encap_recv()

2019-04-24 Thread Eric Dumazet
On Wed, Apr 24, 2019 at 11:21 AM Guillaume Nault wrote: > It seems that callers of rcu_assign_sk_user_data() can indeed sleep. > > But I think we have more problems. Not all code paths treat > ->sk_user_data as RCU pointers (IIUC that's why we created the > __sk_user_data() macro, instead of just

Re: [PATCH bpf-next 1/2] bpftool: add ability to dump BTF types

2019-04-24 Thread Yonghong Song
On 4/24/19 11:16 AM, Andrii Nakryiko wrote: > On Wed, Apr 24, 2019 at 10:17 AM Yonghong Song wrote: >> >> >> >> On 4/23/19 10:21 PM, andrii.nakry...@gmail.com wrote: >>> From: Andrii Nakryiko >>> >>> Add new `btf dump` sub-command to bpftool. It allows to dump >>> human-readable low-level BTF t

Re: [PATCH net-next v2] net: sched: flower: refactor reoffload for concurrent access

2019-04-24 Thread Saeed Mahameed
On Wed, 2019-04-24 at 09:53 +0300, Vlad Buslov wrote: > Recent changes that introduced unlocked flower did not properly > account for > case when reoffload is initiated concurrently with filter updates. To > fix > the issue, extend flower with 'hw_filters' list that is used to store > filters that

Re: [PATCH net-next] tipc: tipc_udp_recv() cleanup vs rcu verbs

2019-04-24 Thread David Miller
From: Eric Dumazet Date: Tue, 23 Apr 2019 09:24:46 -0700 > First thing tipc_udp_recv() does is to use rcu_dereference_sk_user_data(), > and this is really hinting we already own rcu_read_lock() from the caller > (UDP stack). > > No need to add another rcu_read_lock()/rcu_read_unlock() pair. > >

Re: [PATCH bpf-next 1/2] bpf: support BPF_PROG_QUERY for BPF_FLOW_DISSECTOR attach_type

2019-04-24 Thread kbuild test robot
Hi Stanislav, Thank you for the patch! Yet something to improve: [auto build test ERROR on bpf-next/master] url: https://github.com/0day-ci/linux/commits/Stanislav-Fomichev/bpf-support-BPF_PROG_QUERY-for-BPF_FLOW_DISSECTOR-attach_type/20190424-235216 base: https://git.kernel.org/pub/scm

Re: [PATCH v2] net: mvneta: Switch to using devm_alloc_etherdev_mqs

2019-04-24 Thread David Miller
From: Rosen Penev Date: Tue, 23 Apr 2019 13:46:03 -0700 > It allows some of the code to be simplified. > > Tested on Turris Omnia. > > Signed-off-by: Rosen Penev This is just a cleanup/simplification, so applied to net-next. Please properly annotate your Subject lines in the future to indica

[PATCH bpf-next v3 2/2] bpftool: show flow_dissector attachment status

2019-04-24 Thread Stanislav Fomichev
Right now there is no way to query whether BPF flow_dissector program is attached to a network namespace or not. In previous commit, I added support for querying that info, show it when doing `bpftool net`: $ bpftool prog loadall ./bpf_flow.o \ /sys/fs/bpf/flow type flow_dissector \

[PATCH bpf-next v3 1/2] bpf: support BPF_PROG_QUERY for BPF_FLOW_DISSECTOR attach_type

2019-04-24 Thread Stanislav Fomichev
target_fd is target namespace. If there is a flow dissector BPF program attached to that namespace, its (single) id is returned. v3: * add missing inline to skb_flow_dissector_prog_query static def (kbuild test robot ) v2: * don't sleep in rcu critical section (Jakub Kicinski) * check input pro

Re: [PATCH net-next v2] net: sched: flower: refactor reoffload for concurrent access

2019-04-24 Thread David Miller
From: Vlad Buslov Date: Wed, 24 Apr 2019 09:53:31 +0300 > Recent changes that introduced unlocked flower did not properly account for > case when reoffload is initiated concurrently with filter updates. To fix > the issue, extend flower with 'hw_filters' list that is used to store > filters that

Re: [PATCH bpf-next 2/2] bpftool/docs: add btf sub-command documentation

2019-04-24 Thread Andrii Nakryiko
On Wed, Apr 24, 2019 at 10:21 AM Yonghong Song wrote: > > > > On 4/23/19 10:22 PM, andrii.nakry...@gmail.com wrote: > > From: Andrii Nakryiko > > > > Document usage and sample output format for `btf dump` sub-command. > > When applying the patch, I see a few trailing spaces. > > === > p2.txt:113:

Re: [PATCH bpf-next v3 2/2] bpftool: show flow_dissector attachment status

2019-04-24 Thread Quentin Monnet
2019-04-24 11:52 UTC-0700 ~ Stanislav Fomichev Right now there is no way to query whether BPF flow_dissector program is attached to a network namespace or not. In previous commit, I added support for querying that info, show it when doing `bpftool net`: $ bpftool prog loadall ./bpf_flow.o \

Re: [PATCH rdma-next 0/8] User space steering

2019-04-24 Thread Jason Gunthorpe
On Wed, Apr 24, 2019 at 04:40:54PM +, Saeed Mahameed wrote: > On Wed, 2019-04-24 at 10:07 -0300, Jason Gunthorpe wrote: > > On Sun, Mar 31, 2019 at 07:44:42PM +0300, Leon Romanovsky wrote: > > > From: Leon Romanovsky > > > > > > > From Ariel, > > > > > > This series of patches adds user spac

Re: [PATCH net] l2tp: use rcu_dereference_sk_user_data() in l2tp_udp_encap_recv()

2019-04-24 Thread Guillaume Nault
On Wed, Apr 24, 2019 at 11:29:25AM -0700, Eric Dumazet wrote: > On Wed, Apr 24, 2019 at 11:21 AM Guillaume Nault wrote: > > > > > And then, we'd need to make sure that ->sk_user_data is in sync with > > the encap_rcv() callback (or whatever actually uses the data pointed > > to). Otherwise a modu

[PATCH net] packet: validate msg_namelen in send directly

2019-04-24 Thread Willem de Bruijn
From: Willem de Bruijn Packet sockets in datagram mode take a link layer destination address in sockaddr_ll.sll_addr. For some device types, address length exceeds this field size, extending beyond the struct. This addr argument is then passed to dev_hard_header without length and assumed to be

Re: [PATCH 1/1] net: rds: exchange of 8K and 1M pool

2019-04-24 Thread David Miller
From: Zhu Yanjun Date: Wed, 24 Apr 2019 02:56:42 -0400 > Before the commit 490ea5967b0d ("RDS: IB: move FMR code to its own file"), > when the dirty_count is greater than 9/10 of max_items of 8K pool, > 1M pool is used, Vice versa. After the commit 490ea5967b0d ("RDS: IB: move > FMR code to its o

[PATCH bpf-next v4 4/5] tools: sync bpf.h

2019-04-24 Thread Matt Mullins
This adds BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE, and fixes up the error: enumeration value ‘BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE’ not handled in switch [-Werror=switch-enum] build errors it would otherwise cause in libbpf. Signed-off-by: Matt Mullins --- tools/include/uapi/linux/bpf.

Re: [PATCH net] packet: validate address length if non-zero

2019-04-24 Thread Willem de Bruijn
On Tue, Apr 23, 2019 at 2:21 PM Willem de Bruijn wrote: > > On Tue, Apr 23, 2019 at 1:21 PM Willem de Bruijn > wrote: > > > > On Tue, Apr 23, 2019 at 1:04 PM Willem de Bruijn > > wrote: > > > > > > On Tue, Apr 23, 2019 at 11:52 AM David Laight > > > wrote: > > > > > > > > From: Willem de Bruij

[bpf PATCH 1/3] bpf: tls, implement unhash to avoid transition out of ESTABLISHED

2019-04-24 Thread John Fastabend
It is possible (via shutdown()) for TCP socks to go through TCP_CLOSE state via tcp_disconnect() without calling into close callback. This would allow a kTLS enabled socket to exist outside of ESTABLISHED state which is not supported. Solve this the same way we solved the sock{map|hash} case by ad

[bpf PATCH 2/3] bpf: sockmap remove duplicate queue free

2019-04-24 Thread John Fastabend
In tcp bpf remove we free the cork list and purge the ingress msg list. However we do this before the ref count reaches zero so it could be possible some other access is in progress. In this case (tcp close and/or tcp_unhash) we happen to also hold the sock lock so no path exists but lets fix it ot

[bpf PATCH 0/3] sockmap/ktls fixes

2019-04-24 Thread John Fastabend
Series of fixes for sockmap and ktls, see patches for descriptions. --- John Fastabend (3): bpf: tls, implement unhash to avoid transition out of ESTABLISHED bpf: sockmap remove duplicate queue free bpf: sockmap fix msg->sg.size account on ingress skb include/net/tls.h | 1

  1   2   >