Re: [V9fs-developer] [PATCH kernel] 9p/trans_fd: Check file mode at opening

2020-07-28 Thread Greg Kurz
On Wed, 29 Jul 2020 08:14:49 +0200 Dominique Martinet wrote: > Greg Kurz wrote on Tue, Jul 28, 2020: > > > The "fd" transport layer uses 2 file descriptors passed externally > > > and calls kernel_write()/kernel_read() on these. If files were opened > > > without FMODE_WRITE/FMODE_READ, WARN_ON_O

Re: [PATCH net-next v3 2/2] mlx5: convert to new udp_tunnel infrastructure

2020-07-28 Thread Saeed Mahameed
On Tue, 2020-07-28 at 14:47 -0700, Jakub Kicinski wrote: > Allocate nic_info dynamically - n_entries is not constant. > > Attach the tunnel offload info only to the uplink representor. > We expect the "main" netdev to be unregistered in switchdev > mode, and there to be only one uplink representor

Re: [PATCH net-next v2 2/2] mlx5: convert to new udp_tunnel infrastructure

2020-07-28 Thread Saeed Mahameed
On Tue, 2020-07-28 at 14:46 -0700, Jakub Kicinski wrote: > Allocate nic_info dynamically - n_entries is not constant. > > Attach the tunnel offload info only to the uplink representor. > We expect the "main" netdev to be unregistered in switchdev > mode, and there to be only one uplink representor

Re: [PATCH net-next v2 0/2] udp_tunnel: convert mlx5 to the new udp_tunnel infrastructure

2020-07-28 Thread Saeed Mahameed
On Tue, 2020-07-28 at 14:46 -0700, Jakub Kicinski wrote: > This set converts mlx5 to the new infrastructure. > > We need a small amount of special handling as mlx5 expects IANA VXLAN > port to always be programmed into the device. ethtool will show such > ports in a separate, type-less, fake table

Re: [net V2 10/11] net/mlx5e: Modify uplink state on interface up/down

2020-07-28 Thread Saeed Mahameed
On Wed, 2020-07-29 at 09:17 +0300, Or Gerlitz wrote: > On Tue, Jul 28, 2020 at 11:07 PM Saeed Mahameed > wrote: > > When setting the PF interface up/down, notify the firmware to > > update > > uplink state via MODIFY_VPORT_STATE, when E-Switch is enabled. > > This behavior will prevent sending tra

[GIT PULL] 9p update for 5.8

2020-07-28 Thread Dominique Martinet
Sorry for the late request, I took some time to fix my test setup and to be convinced these two patches are worth sending now and not wait until the next merge window. (the "weird" -2 at the end of the tag is because I had already used 9p-for-5.8 for the original -rc1 pull) The following changes

Re: fentry/fexit attach to EXT type XDP program does not work

2020-07-28 Thread Eelco Chaudron
On 27 Jul 2020, at 16:53, Jiri Olsa wrote: On Mon, Jul 27, 2020 at 09:59:14AM +0200, Eelco Chaudron wrote: On 26 Jul 2020, at 14:24, Jiri Olsa wrote: On Tue, Jun 09, 2020 at 10:52:34AM +0200, Eelco Chaudron wrote: SNIP libbpf: failed to load object 'test_xdp_bpf2bpf' libbpf: fai

答复: [net-next 2/6] i40e: prefetch struct page of Rx buffer conditionally

2020-07-28 Thread Li,Rongqing
> -邮件原件- > 发件人: Jakub Kicinski [mailto:k...@kernel.org] > 发送时间: 2020年7月29日 4:14 > 收件人: Tony Nguyen > 抄送: da...@davemloft.net; Li,Rongqing ; > netdev@vger.kernel.org; nhor...@redhat.com; sassm...@redhat.com; > jeffrey.t.kirs...@intel.com; Andrew Bowers > 主题: Re: [net-next 2/6] i40e: pref

Re: [net V2 10/11] net/mlx5e: Modify uplink state on interface up/down

2020-07-28 Thread Or Gerlitz
On Tue, Jul 28, 2020 at 11:07 PM Saeed Mahameed wrote: > When setting the PF interface up/down, notify the firmware to update > uplink state via MODIFY_VPORT_STATE, when E-Switch is enabled. > This behavior will prevent sending traffic out on uplink port when PF is > down, such as sending traffic

PROBLEM: (DSA/Microchip): 802.1Q-Header lost on KSZ9477-DSA ingress without bridge

2020-07-28 Thread Gaube, Marvin (THSE-TL1)
Summary: 802.1Q-Header lost on KSZ9477-DSA ingress without bridge Keywords: networking, dsa, microchip, 802.1q, vlan Full description: Hello, we're trying to get 802.1Q-Tagged Ethernet Frames through an KSZ9477 DSA-enabled switch without creating a bridge on the kernel side. Following setup: Swit

Re: [PATCH bpf-next] selftests/bpf: don't destroy failed link

2020-07-28 Thread Andrii Nakryiko
On Tue, Jul 28, 2020 at 10:47 PM Song Liu wrote: > > On Tue, Jul 28, 2020 at 9:54 PM Andrii Nakryiko wrote: > > > > Check that link is NULL or proper pointer before invoking > > bpf_link__destroy(). > > Not doing this causes crash in test_progs, when cg_storage_multi selftest > > fails. > > > >

Re: [V9fs-developer] [PATCH kernel] 9p/trans_fd: Check file mode at opening

2020-07-28 Thread Dominique Martinet
Greg Kurz wrote on Tue, Jul 28, 2020: > > The "fd" transport layer uses 2 file descriptors passed externally > > and calls kernel_write()/kernel_read() on these. If files were opened > > without FMODE_WRITE/FMODE_READ, WARN_ON_ONCE() will fire. There already is a fix in linux-next as a39c46067c84

Re: [PATCH bpf-next 2/2] selftests/bpf: verify socket storage in cgroup/sock_{create,release}

2020-07-28 Thread Song Liu
On Tue, Jul 28, 2020 at 5:31 PM Stanislav Fomichev wrote: > > Augment udp_limit test to set and verify socket storage value. > That should be enough to exercise the changes from the previous > patch. > > Cc: Martin KaFai Lau > Signed-off-by: Stanislav Fomichev Acked-by: Song Liu

Re: [PATCH bpf-next 1/2] bpf: expose socket storage to BPF_PROG_TYPE_CGROUP_SOCK

2020-07-28 Thread Song Liu
On Tue, Jul 28, 2020 at 5:31 PM Stanislav Fomichev wrote: > > This lets us use socket storage from the following hooks: > * BPF_CGROUP_INET_SOCK_CREATE > * BPF_CGROUP_INET_SOCK_RELEASE > * BPF_CGROUP_INET4_POST_BIND > * BPF_CGROUP_INET6_POST_BIND > > Using existing 'bpf_sk_storage_get_proto' doesn

Re: [PATCH] staging: qlge: qlge_dbg: removed comment repition

2020-07-28 Thread Dhiraj Sharma
> > A: http://en.wikipedia.org/wiki/Top_post > Q: Were do I find info about this thing called top-posting? > A: Because it messes up the order in which people normally read text. > Q: Why is top-posting such a bad thing? > A: Top-posting. > Q: What is the most annoying thing in e-mail? > > A: No. >

Re: [PATCH 4/4] net: improve the user pointer check in init_user_sockptr

2020-07-28 Thread Christoph Hellwig
On Tue, Jul 28, 2020 at 01:01:11PM -0700, David Miller wrote: > From: Christoph Hellwig > Date: Tue, 28 Jul 2020 08:36:43 +0200 > > > if (get_user(len, optlen)) > > return -EFAULT; > ^^ > > - err = init_user_sockptr(&optval, user_optval); > > +

INFO: rcu detected stall in tc_modify_qdisc

2020-07-28 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:181964e6 fix a braino in cmsghdr_from_user_compat_to_kern() git tree: net console output: https://syzkaller.appspot.com/x/log.txt?x=12925e3890 kernel config: https://syzkaller.appspot.com/x/.config?x=f87a5e4232fdb267 dashboard

Re: [PATCH bpf-next] selftests/bpf: don't destroy failed link

2020-07-28 Thread Song Liu
On Tue, Jul 28, 2020 at 9:54 PM Andrii Nakryiko wrote: > > Check that link is NULL or proper pointer before invoking bpf_link__destroy(). > Not doing this causes crash in test_progs, when cg_storage_multi selftest > fails. > > Cc: YiFei Zhu > Fixes: 3573f384014f ("selftests/bpf: Test CGROUP_STORA

Re: [PATCH] staging: qlge: qlge_dbg: removed comment repition

2020-07-28 Thread Greg KH
A: http://en.wikipedia.org/wiki/Top_post Q: Were do I find info about this thing called top-posting? A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? A: No. Q: Should I includ

Re: [PATCH] staging: qlge: qlge_dbg: removed comment repition

2020-07-28 Thread Dhiraj Sharma
Hello, I know that I should ask for reviews etc after a week but the change is for my eudyptula task and until it doesn't get merged little penguin will not pass the task for me so please look at it. Thank You Dhiraj Sharma On Tue, Jul 28, 2020 at 11:56 PM Dhiraj Sharma wrote: > > Inside func

Re: [PATCH] bpf: Add bpf_ktime_get_real_ns

2020-07-28 Thread Andrii Nakryiko
On Tue, Jul 28, 2020 at 1:57 PM David Ahern wrote: > > On 7/28/20 12:28 PM, Andrii Nakryiko wrote: > > In some, yes, which also means that in some other they can't. So I'm > > still worried about misuses of REALCLOCK, within (internal daemons > > within the company) our outside (BCC tools and alik

Re: [PATCH] bpf: Add bpf_ktime_get_real_ns

2020-07-28 Thread Andrii Nakryiko
On Tue, Jul 28, 2020 at 1:00 PM Nikravesh, Ashkan wrote: > > > > > From: Andrii Nakryiko > Sent: Tuesday, July 28, 2020 11:28 AM > To: Maciej Żenczykowski > Cc: Pujari, Bimmy ; bpf ; > Networking ; mche...@kernel.org ; > Alexei Starovoitov ; Daniel Borkmann ;

[PATCH bpf-next] selftests/bpf: don't destroy failed link

2020-07-28 Thread Andrii Nakryiko
Check that link is NULL or proper pointer before invoking bpf_link__destroy(). Not doing this causes crash in test_progs, when cg_storage_multi selftest fails. Cc: YiFei Zhu Fixes: 3573f384014f ("selftests/bpf: Test CGROUP_STORAGE behavior on shared egress + ingress") Signed-off-by: Andrii Nakry

[PATCH v4 bpf 2/2] selftests/bpf: extend map-in-map selftest to detect memory leaks

2020-07-28 Thread Andrii Nakryiko
Add test validating that all inner maps are released properly after skeleton is destroyed. To ensure determinism, trigger kernel-side synchronize_rcu() before checking map existence by their IDs. Acked-by: Song Liu Signed-off-by: Andrii Nakryiko --- .../selftests/bpf/prog_tests/btf_map_in_map.c

[PATCH v4 bpf 1/2] bpf: fix map leak in HASH_OF_MAPS map

2020-07-28 Thread Andrii Nakryiko
Fix HASH_OF_MAPS bug of not putting inner map pointer on bpf_map_elem_update() operation. This is due to per-cpu extra_elems optimization, which bypassed free_htab_elem() logic doing proper clean ups. Make sure that inner map is put properly in optimized case as well. Fixes: 8c290e60fa2a ("bpf: fi

linux-next: manual merge of the net-next tree with the risc-v tree

2020-07-28 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: lib/Kconfig between commit: 1a479f783857 ("lib: Add a generic version of devmem_is_allowed()") from the risc-v tree and commit: b8265621f488 ("Add pldmfw library for PLDM firmware update") from the net-next tree.

Re: [net-next PATCH v7 1/6] Documentation: ACPI: DSD: Document MDIO PHY

2020-07-28 Thread Florian Fainelli
On 7/28/2020 7:53 PM, Jeremy Linton wrote: > Hi, > > On 7/28/20 7:39 PM, Florian Fainelli wrote: >> On 7/28/2020 3:30 PM, Jeremy Linton wrote: >>> Hi, >>> >>> On 7/28/20 3:06 AM, Dan Callaghan wrote: Excerpts from Andrew Lunn's message of 2020-07-24 21:14:36 +02:00: > Now i could be wr

[PATCH] net: nixge: fix potential memory leak in nixge_probe()

2020-07-28 Thread Lu Wei
If some processes in nixge_probe() fail, free_netdev(dev) needs to be called to aviod a memory leak. Fixes: 87ab207981ec ("net: nixge: Separate ctrl and dma resources") Fixes: abcd3d6fc640 ("net: nixge: Fix error path for obtaining mac address") Reported-by: Hulk Robot Signed-off-by: Lu Wei ---

[PATCH] net: ethernet: fix potential memory leak in gemini_ethernet_port_probe()

2020-07-28 Thread Lu Wei
If some processes in gemini_ethernet_port_probe() fail, free_netdev(dev) needs to be called to avoid a memory leak. Fixes: 4d5ae32f5e1e ("net: ethernet: Add a driver for Gemini gigabit ethernet") Reported-by: Hulk Robot Signed-off-by: Lu Wei --- drivers/net/ethernet/cortina/gemini.c | 24 ++

Re: [net-next PATCH v7 1/6] Documentation: ACPI: DSD: Document MDIO PHY

2020-07-28 Thread Jeremy Linton
Hi, On 7/28/20 7:39 PM, Florian Fainelli wrote: On 7/28/2020 3:30 PM, Jeremy Linton wrote: Hi, On 7/28/20 3:06 AM, Dan Callaghan wrote: Excerpts from Andrew Lunn's message of 2020-07-24 21:14:36 +02:00: Now i could be wrong, but are Ethernet switches something you expect to see on ACPI/SBSA

[PATCH net-next] sfc_ef100: remove duplicated include from ef100_netdev.c

2020-07-28 Thread YueHaibing
Remove duplicated include. Signed-off-by: YueHaibing --- drivers/net/ethernet/sfc/ef100_netdev.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ethernet/sfc/ef100_netdev.c b/drivers/net/ethernet/sfc/ef100_netdev.c index 4c3caac2c8cc..ec9ca81fed85 100644 --- a/drivers/net/etherne

[PATCH 1/3] Bluetooth: Add mgmt suspend and resume events

2020-07-28 Thread Abhishek Pandit-Subedi
Add the controller suspend and resume events, which will signal when Bluetooth has completed preparing for suspend and when it's ready for resume. Signed-off-by: Abhishek Pandit-Subedi Reviewed-by: Miao-chen Chou Reviewed-by: Sonny Sasaka --- include/net/bluetooth/hci_core.h | 3 +++ include

[PATCH 2/3] Bluetooth: Add suspend reason for device disconnect

2020-07-28 Thread Abhishek Pandit-Subedi
Update device disconnect event with reason 0x5 to indicate that device disconnected because the controller is suspending. Signed-off-by: Abhishek Pandit-Subedi Reviewed-by: Miao-chen Chou Reviewed-by: Sonny Sasaka --- include/net/bluetooth/mgmt.h | 1 + net/bluetooth/mgmt.c | 4

[PATCH 3/3] Bluetooth: Emit controller suspend and resume events

2020-07-28 Thread Abhishek Pandit-Subedi
Emit controller suspend and resume events when we are ready for suspend and we've resumed from suspend. The controller suspend event will report whatever suspend state was successfully entered. The controller resume event will check the first HCI event that was received after we finished preparing

[PATCH 0/3] Bluetooth: Emit events for suspend/resume

2020-07-28 Thread Abhishek Pandit-Subedi
Hi Marcel, This series adds the suspend/resume events suggested in https://patchwork.kernel.org/patch/11663455/. I have tested it with some userspace changes that monitors the controller resumed event to trigger audio device reconnection and verified that the events are correctly emitted. Plea

Re: [PATCH] drivers/net/wan/lapbether: Use needed_headroom instead of hard_header_len

2020-07-28 Thread Xie He
Thank you for your detailed review, Brian! I guess we have the same understanding on the "hard_header_len vs needed_headroom" part. I agree it is not well documented and is also confusing to driver developers. I didn't understand it either until I looked at af_packet.c. On Tue, Jul 28, 2020 at 12

Re: [bpf PATCH 1/3] bpf: sock_ops ctx access may stomp registers in corner case

2020-07-28 Thread Martin KaFai Lau
On Tue, Jul 28, 2020 at 05:44:19PM -0700, John Fastabend wrote: > Martin KaFai Lau wrote: > > On Tue, Jul 28, 2020 at 01:55:22PM -0700, John Fastabend wrote: > > > Martin KaFai Lau wrote: > > > > On Tue, Jul 28, 2020 at 08:43:46AM -0700, John Fastabend wrote: > > > > > I had a sockmap program that

[PATCH net-next] hinic: add generating mailbox random index support

2020-07-28 Thread Luo bin
add support to generate mailbox random id for VF to ensure that the mailbox message from VF is valid and PF should check whether the cmd from VF is supported before passing it to hw. Signed-off-by: Luo bin --- .../net/ethernet/huawei/hinic/hinic_hw_cmdq.h | 8 + .../net/ethernet/huawei/hinic/h

Re: [PATCH net] Documentation: bareudp: Corrected description of bareudp module.

2020-07-28 Thread David Miller
From: Martin Varghese Date: Tue, 28 Jul 2020 22:35:52 +0530 > From: Martin Varghese > > Removed redundant words. > > Fixes: 571912c69f0e ("net: UDP tunnel encapsulation module for tunnelling > different protocols like MPLS, IP, NSH etc.") > Signed-off-by: Martin Varghese Applied, thank you.

Bug: ip utility fails to show routes with large # of multipath next-hops

2020-07-28 Thread Ashutosh Grewal
Hello David and all, I hope this is the correct way to report a bug. I observed this problem with 256 v4 next-hops or 128 v6 next-hops (or 128 or so # of v4 next-hops with labels). Here is an example - root@a6be8c892bb7:/# ip route show 2.2.2.2 Error: Buffer too small for object. Dump terminate

Re: [PATCH net-nex 2/2] net: mvneta: Don't speed down the PHY when changing mtu

2020-07-28 Thread David Miller
From: Jisheng Zhang Date: Mon, 27 Jul 2020 19:53:14 +0800 > @@ -3651,7 +3651,8 @@ static void mvneta_stop_dev(struct mvneta_port *pp) > > set_bit(__MVNETA_DOWN, &pp->state); > > - if (device_may_wakeup(&pp->dev->dev)) > + if (device_may_wakeup(&pp->dev->dev) && > + pp->p

Re: [PATCH 0/5] net: stmmac: improve WOL

2020-07-28 Thread David Miller
From: Jisheng Zhang Date: Mon, 27 Jul 2020 19:01:07 +0800 > Currently, stmmac driver relies on the HW PMT to support WOL. We want > to support phy based WOL. > > patch1 is a small improvement to disable WAKE_MAGIC for PMT case if > no pmt_magic_frame. > patch2 and patch3 are two prepation patche

Re: [PATCH v2 0/9] ptp: Add generic header parsing function

2020-07-28 Thread David Miller
From: Kurt Kanzenbach Date: Mon, 27 Jul 2020 11:05:52 +0200 > in order to reduce code duplication in the ptp code of DSA, Ethernet and Phy > drivers, move the header parsing function to ptp_classify. This way all > drivers > can share the same implementation. Implemented as discussed [1] [2] [3]

Re: [bpf PATCH 1/3] bpf: sock_ops ctx access may stomp registers in corner case

2020-07-28 Thread John Fastabend
Martin KaFai Lau wrote: > On Tue, Jul 28, 2020 at 01:55:22PM -0700, John Fastabend wrote: > > Martin KaFai Lau wrote: > > > On Tue, Jul 28, 2020 at 08:43:46AM -0700, John Fastabend wrote: > > > > I had a sockmap program that after doing some refactoring started > > > > spewing > > > > this splat a

Re: [net-next PATCH 0/2 v2] RTL8366 VLAN callback fixes

2020-07-28 Thread David Miller
From: Linus Walleij Date: Mon, 27 Jul 2020 01:34:38 +0200 > While we are pondering how to make the core set up the VLANs > the right way, let's merge the uncontroversial fixes. Series applied, thanks.

Re: [PATCH V2 net-next] fib: use indirect call wrappers in the most common fib_rules_ops

2020-07-28 Thread David Miller
From: Brian Vazquez Date: Sun, 26 Jul 2020 15:48:16 -0700 > This avoids another inderect call per RX packet which save us around > 20-40 ns. > > Changelog: > > v1 -> v2: > - Move declaraions to fib_rules.h to remove warnings > > Reported-by: kernel test robot > Signed-off-by: Brian Vazquez

Re: [net-next PATCH v7 0/6] ACPI support for dpaa2 MAC driver.

2020-07-28 Thread Florian Fainelli
On 7/28/2020 5:39 PM, David Miller wrote: > From: Calvin Johnson > Date: Sat, 25 Jul 2020 19:53:58 +0530 > >> This patch series provides ACPI support for dpaa2 MAC driver. >> This also introduces ACPI mechanism to get PHYs registered on a >> MDIO bus and provide them to be connected to MAC.

Re: [Patch net-next] net_sched: initialize timer earlier in red_init()

2020-07-28 Thread David Miller
From: Cong Wang Date: Sat, 25 Jul 2020 13:17:07 -0700 > When red_init() fails, red_destroy() is called to clean up. > If the timer is not initialized yet, del_timer_sync() will > complain. So we have to move timer_setup() before any failure. > > Reported-and-tested-by: syzbot+6e95a4fabf88dc217..

Re: [net-next PATCH v7 1/6] Documentation: ACPI: DSD: Document MDIO PHY

2020-07-28 Thread Florian Fainelli
On 7/28/2020 3:30 PM, Jeremy Linton wrote: > Hi, > > On 7/28/20 3:06 AM, Dan Callaghan wrote: >> Excerpts from Andrew Lunn's message of 2020-07-24 21:14:36 +02:00: >>> Now i could be wrong, but are Ethernet switches something you expect >>> to see on ACPI/SBSA platforms? Or is this a legitimate us

Re: [net-next PATCH v7 0/6] ACPI support for dpaa2 MAC driver.

2020-07-28 Thread David Miller
From: Calvin Johnson Date: Sat, 25 Jul 2020 19:53:58 +0530 > This patch series provides ACPI support for dpaa2 MAC driver. > This also introduces ACPI mechanism to get PHYs registered on a > MDIO bus and provide them to be connected to MAC. > > Previous discussions on this patchset is availa

Re: [PATCH v2] net: ipv6: fix use-after-free Read in __xfrm6_tunnel_spi_lookup

2020-07-28 Thread David Miller
From: B K Karthik Date: Sun, 26 Jul 2020 08:38:55 +0530 > @@ -103,10 +103,10 @@ static int __xfrm6_tunnel_spi_check(struct net *net, > u32 spi) > { > struct xfrm6_tunnel_net *xfrm6_tn = xfrm6_tunnel_pernet(net); > struct xfrm6_tunnel_spi *x6spi; > - int index = xfrm6_tunnel_spi_

Re: [PATCH RFC net-next 0/3] Restructure drivers/net/phy

2020-07-28 Thread Florian Fainelli
On 7/28/2020 5:28 PM, Doug Berger wrote: > On 7/28/2020 9:28 AM, Ioana Ciornei wrote: >>> Subject: Re: [PATCH RFC net-next 0/3] Restructure drivers/net/phy >>> I think that the MAINTAINERS file should also be updated to mention the new path to the drivers. Just did a quick grep after '

Re: [PATCH] net: ipv6: fix slab-out-of-bounds Read in __xfrm6_tunnel_spi_check

2020-07-28 Thread David Miller
From: B K Karthik Date: Sat, 25 Jul 2020 19:00:31 +0530 > use spi_byaddr instead of spi_byspi ... > diff --git a/net/ipv6/xfrm6_tunnel.c b/net/ipv6/xfrm6_tunnel.c > index 25b7ebda2fab..cab7693ccfe3 100644 > --- a/net/ipv6/xfrm6_tunnel.c > +++ b/net/ipv6/xfrm6_tunnel.c > @@ -103,10 +103,10 @@ sta

Re: [PATCH v19 06/23] LSM: Use lsmblob in security_secctx_to_secid

2020-07-28 Thread John Johansen
On 7/28/20 4:41 PM, Casey Schaufler wrote: > On 7/28/2020 4:11 AM, John Johansen wrote: >> On 7/24/20 1:32 PM, Casey Schaufler wrote: >>> Change security_secctx_to_secid() to fill in a lsmblob instead >>> of a u32 secid. Multiple LSMs may be able to interpret the >>> string, and this allows for set

Re: [PATCH v2 net] bareudp: forbid mixing IP and MPLS in multiproto mode

2020-07-28 Thread David Miller
From: Guillaume Nault Date: Sat, 25 Jul 2020 15:06:47 +0200 > In multiproto mode, bareudp_xmit() accepts sending multicast MPLS and > IPv6 packets regardless of the bareudp ethertype. In practice, this > let an IP tunnel send multicast MPLS packets, or an MPLS tunnel send > IPv6 packets. > > We

Re: [PATCH] net: ipv6: fix slab-out-of-bounda Read in xfrm6_tunnel_alloc_spi

2020-07-28 Thread David Miller
From: B K Karthik Date: Sat, 25 Jul 2020 18:15:53 +0530 > fix slab-out-of-bounds Read in xfrm6_tunnel_alloc_spi > by checking for existance of head for the list spi_byspi spi_byspi is an array, therefore as long as xfrm6_tn is not NULL then spi_byspi will also not be NULL.

Re: [PATCH RFC net-next 0/3] Restructure drivers/net/phy

2020-07-28 Thread Doug Berger
On 7/28/2020 9:28 AM, Ioana Ciornei wrote: >> Subject: Re: [PATCH RFC net-next 0/3] Restructure drivers/net/phy >> >>> I think that the MAINTAINERS file should also be updated to mention >>> the new path to the drivers. Just did a quick grep after 'drivers/net/phy': >>> F: drivers/net/phy/adin

Re: [PATCH] ipv6: Fix nexthop refcnt leak when creating ipv6 route info

2020-07-28 Thread David Miller
From: Xiyu Yang Date: Sat, 25 Jul 2020 16:02:18 +0800 > ip6_route_info_create() invokes nexthop_get(), which increases the > refcount of the "nh". > > When ip6_route_info_create() returns, local variable "nh" becomes > invalid, so the refcount should be decreased to keep refcount balanced. > >

Re: [PATCH net-next v5 0/2] hinic: add some error messages for debug

2020-07-28 Thread David Miller
From: Luo bin Date: Sat, 25 Jul 2020 15:11:17 +0800 > patch #1: support to handle hw abnormal event > patch #2: improve the error messages when functions return failure and > dump relevant registers in some exception handling processes Series applied, thanks.

Re: [PATCH net V2] Crypto/chcr: Registering cxgb4 to xfrmdev_ops

2020-07-28 Thread David Miller
From: Herbert Xu Date: Sat, 25 Jul 2020 16:20:34 +1000 > I think this patch belongs to the networking tree. The reason is > that it's related to xfrm offload which has nothing to do with the > Crypto API. > > Do xfrm offload drivers usually go through the networking tree or > would it be better

Re: [PATCH net v2 0/3] Fix bugs in Octeontx2 netdev driver

2020-07-28 Thread David Miller
From: sundeep.l...@gmail.com Date: Sat, 25 Jul 2020 10:13:51 +0530 > From: Subbaraya Sundeep > > Hi, > > There are problems in the existing Octeontx2 > netdev drivers like missing cancel_work for the > reset task, missing lock in reset task and > missing unergister_netdev in driver remove. > Th

Re: [PATCH net] mlx4: disable device on shutdown

2020-07-28 Thread David Miller
From: Jakub Kicinski Date: Fri, 24 Jul 2020 16:15:43 -0700 > It appears that not disabling a PCI device on .shutdown may lead to > a Hardware Error with particular (perhaps buggy) BIOS versions: ... > Fix the mlx4 driver. > > This is a very similar problem to what had been fixed in: > commit 0d

Re: [v2 PATCH 0/2] rhashtable: Fix unprotected RCU dereference in __rht_ptr

2020-07-28 Thread David Miller
From: Herbert Xu Date: Fri, 24 Jul 2020 20:12:20 +1000 > This patch series fixes an unprotected dereference in __rht_ptr. > The first patch is a minimal fix that does not use the correct > RCU markings but is suitable for backport, and the second patch > cleans up the RCU markings. Series applie

Re: [net-next v1 0/5] introduce PLDM firmware update library

2020-07-28 Thread David Miller
From: Jacob Keller Date: Thu, 23 Jul 2020 17:21:58 -0700 > This series goal is to enable support for updating the ice hardware flash > using the devlink flash command. > > The ice firmware update files are distributed using the file format > described by the "PLDM for Firmware Update" standard:

Re: [PATCH] net: ethernet: mtk_eth_soc: Always call mtk_gmac0_rgmii_adjust() for mt7623

2020-07-28 Thread David Miller
From: David Woodhouse Date: Thu, 23 Jul 2020 20:07:10 +0100 > From: René van Dorst > > Modify mtk_gmac0_rgmii_adjust() so it can always be called. > mtk_gmac0_rgmii_adjust() sets-up the TRGMII clocks. > > Signed-off-by: René van Dorst > Signed-off-By: David Woodhouse > Tested-by: Frank Wunde

Re: [PATCH net] openvswitch: fix drop over mtu packet after defrag in act_ct

2020-07-28 Thread David Miller
From: we...@ucloud.cn Date: Tue, 21 Jul 2020 11:09:52 +0800 > From: wenxu > > When openvswitch conntrack offload with act_ct action. Fragment packets > defrag in the ingress tc act_ct action and miss the next chain. Then the > packet pass to the openvswitch datapath without the mru. The defrag o

Re: [PATCH net-next 00/12] Exchange MPTCP DATA_FIN/DATA_ACK before TCP FIN

2020-07-28 Thread David Miller
From: Mat Martineau Date: Tue, 28 Jul 2020 15:11:58 -0700 > This series allows the MPTCP-level connection to be closed with the > peers exchanging DATA_FIN and DATA_ACK according to the state machine in > appendix D of RFC 8684. The process is very similar to the TCP > disconnect state machine.

Re: [pull request][net V2 00/11] mlx5 fixes-2020-07-28

2020-07-28 Thread David Miller
From: Saeed Mahameed Date: Tue, 28 Jul 2020 12:59:24 -0700 > This series introduces some fixes to mlx5 driver. > v1->v2: > - Drop the "Hold reference on mirred devices" patch, until Or's >comments are addressed. > - Imporve "Modify uplink state" patch commit message per Or's request. > > P

Re: How to make a change in both net and net-next

2020-07-28 Thread David Miller
From: David Howells Date: Wed, 29 Jul 2020 00:21:47 +0100 > Should I just rebase the net-next patches on top of the one I sent you once > you've picked it into net, or is there a better way? Post the patch for 'net', wait for 'net' to merge into 'net-next' (usually once a week or so), and then s

Re: [V9fs-developer] [PATCH kernel] 9p/trans_fd: Check file mode at opening

2020-07-28 Thread Alexey Kardashevskiy
On 29/07/2020 03:42, Greg Kurz wrote: > Hi Alexey, > > Working on 9p now ?!? ;-) No, I am running syzkaller and seeing things :) > Cc'ing Dominique Martinet who appears to be the person who takes care of 9p > these days. > > On Tue, 28 Jul 2020 22:41:29 +1000 > Alexey Kardashevskiy wrote:

Re: [PATCH v3 2/6] dt-bindings: net: can: binding for CTU CAN FD open-source IP core.

2020-07-28 Thread Pavel Pisa
Hello Rob, On Saturday 04 of January 2020 00:53:59 Rob Herring wrote: > On Sat, Dec 21, 2019 at 03:07:31PM +0100, p...@cmp.felk.cvut.cz wrote: > > From: Pavel Pisa > > > > Signed-off-by: Pavel Pisa > > --- > > .../devicetree/bindings/net/can/ctu,ctucanfd.txt | 61 > > ++ 1

Re: [PATCH v19 06/23] LSM: Use lsmblob in security_secctx_to_secid

2020-07-28 Thread Casey Schaufler
On 7/28/2020 4:11 AM, John Johansen wrote: > On 7/24/20 1:32 PM, Casey Schaufler wrote: >> Change security_secctx_to_secid() to fill in a lsmblob instead >> of a u32 secid. Multiple LSMs may be able to interpret the >> string, and this allows for setting whichever secid is >> appropriate. Change se

Re: [RFC PATCH v2 21/21] netgpu/nvidia: add Nvidia plugin for netgpu

2020-07-28 Thread Jason Gunthorpe
On Tue, Jul 28, 2020 at 02:01:16PM -0700, Jonathan Lemon wrote: > On Tue, Jul 28, 2020 at 03:19:04PM -0300, Jason Gunthorpe wrote: > > On Mon, Jul 27, 2020 at 06:48:12PM -0700, Jonathan Lemon wrote: > > > > > While the current GPU utilized is nvidia, there's nothing in the rest of > > > the patche

Re: [PATCH v8 bpf-next 07/13] bpf: Add btf_struct_ids_match function

2020-07-28 Thread Andrii Nakryiko
On Wed, Jul 22, 2020 at 2:13 PM Jiri Olsa wrote: > > Adding btf_struct_ids_match function to check if given address provided > by BTF object + offset is also address of another nested BTF object. > > This allows to pass an argument to helper, which is defined via parent > BTF object + offset, like

Re: [PATCH v8 bpf-next 06/13] bpf: Factor btf_struct_access function

2020-07-28 Thread Andrii Nakryiko
On Wed, Jul 22, 2020 at 2:13 PM Jiri Olsa wrote: > > Adding btf_struct_walk function that walks through the > struct type + given offset and returns following values: > > enum walk_return { >/* < 0 error */ >walk_scalar = 0, >walk_ptr, >walk_struct, > }; > > wal

How to make a change in both net and net-next

2020-07-28 Thread David Howells
Hi Dave, In the fix I just posted, subject: [PATCH net] rxrpc: Fix race between recvmsg and sendmsg on immediate call failure there's a change I need to make as part of the patch: - spin_lock_bh(&conn->params.peer->lock); - hlist_del_rcu(&call

Re: [PATCH net] devlink: ignore -EOPNOTSUPP errors on dumpit

2020-07-28 Thread Jacob Keller
On 7/28/2020 4:15 PM, Jakub Kicinski wrote: > Number of .dumpit functions try to ignore -EOPNOTSUPP errors. > Recent change missed that, and started reporting all errors > but -EMSGSIZE back from dumps. This leads to situation like > this: > > $ devlink dev info > devlink answers: Operation not

[PATCH net] devlink: ignore -EOPNOTSUPP errors on dumpit

2020-07-28 Thread Jakub Kicinski
Number of .dumpit functions try to ignore -EOPNOTSUPP errors. Recent change missed that, and started reporting all errors but -EMSGSIZE back from dumps. This leads to situation like this: $ devlink dev info devlink answers: Operation not supported Dump should not report an error just because the

[PATCH net] rxrpc: Fix race between recvmsg and sendmsg on immediate call failure

2020-07-28 Thread David Howells
There's a race between rxrpc_sendmsg setting up a call, but then failing to send anything on it due to an error, and recvmsg() seeing the call completion occur and trying to return the state to the user. An assertion fails in rxrpc_recvmsg() because the call has already been released from the sock

Re: [RFC PATCH net-next v2 6/6] devlink: add overwrite mode to flash update

2020-07-28 Thread Jacob Keller
On 7/28/2020 10:09 AM, Jakub Kicinski wrote: > On Tue, 28 Jul 2020 09:58:44 -0700 Jacob Keller wrote: >> On 7/28/2020 4:19 AM, Jiri Pirko wrote: >>> Yes. Documentation is very easy to ignore unfortunatelly. The driver >>> developer has to be tight up by the core code and api, I believe. >> >> So

[PATCH] hv_netvsc: Add validation for untrusted Hyper-V values

2020-07-28 Thread Andres Beltran
For additional robustness in the face of Hyper-V errors or malicious behavior, validate all values that originate from packets that Hyper-V has sent to the guest in the host-to-guest ring buffer. Ensure that invalid values cannot cause indexing off the end of an array, or subvert an existing valida

Re: [PATCH bpf-next] bpf: fix build without CONFIG_NET when using BPF XDP link

2020-07-28 Thread Daniel Borkmann
On 7/28/20 9:05 PM, Andrii Nakryiko wrote: Entire net/core subsystem is not built without CONFIG_NET. linux/netdevice.h just assumes that it's always there, so the easiest way to fix this is to conditionally compile out bpf_xdp_link_attach() use in bpf/syscall.c. Reported-by: Randy Dunlap Fixes

Re: [net-next PATCH v7 1/6] Documentation: ACPI: DSD: Document MDIO PHY

2020-07-28 Thread Jeremy Linton
Hi, On 7/28/20 3:06 AM, Dan Callaghan wrote: Excerpts from Andrew Lunn's message of 2020-07-24 21:14:36 +02:00: Now i could be wrong, but are Ethernet switches something you expect to see on ACPI/SBSA platforms? Or is this a legitimate use of the escape hatch? As an extra data point: right no

Re: [bpf-next PATCH] bpf, selftests: use ::1 for localhost in tcp_server.py

2020-07-28 Thread Daniel Borkmann
On 7/28/20 4:39 PM, John Fastabend wrote: Using localhost requires the host to have a /etc/hosts file with that specific line in it. By default my dev box did not, they used ip6-localhost, so the test was failing. To fix remove the need for any /etc/hosts and use ::1. I could just add the line,

[PATCH net-next 03/12] mptcp: Remove outdated and incorrect comment

2020-07-28 Thread Mat Martineau
mptcp_close() acquires the msk lock, so it clearly should not be held before the function is called. Signed-off-by: Mat Martineau --- net/mptcp/protocol.c | 1 - 1 file changed, 1 deletion(-) diff --git a/net/mptcp/protocol.c b/net/mptcp/protocol.c index b3c3dbc89b3f..7d7e0fa17219 100644 --- a/

[PATCH net-next 11/12] mptcp: Safely read sequence number when lock isn't held

2020-07-28 Thread Mat Martineau
The MPTCP socket's write_seq member should be read with READ_ONCE() when the msk lock is not held. Signed-off-by: Mat Martineau --- net/mptcp/protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/mptcp/protocol.c b/net/mptcp/protocol.c index f264ea15e081..f2455a68d23

[PATCH net-next 01/12] mptcp: Allow DATA_FIN in headers without TCP FIN

2020-07-28 Thread Mat Martineau
RFC 8684-compliant DATA_FIN needs to be sent and ack'd before subflows are closed with TCP FIN, so write DATA_FIN DSS headers whenever their transmission has been enabled by the MPTCP connection-level socket. Signed-off-by: Mat Martineau --- net/mptcp/options.c | 13 +++-- 1 file changed

[PATCH net-next 10/12] mptcp: Skip unnecessary skb extension allocation for bare acks

2020-07-28 Thread Mat Martineau
Bare TCP ack skbs are freed right after MPTCP sees them, so the work to allocate, zero, and populate the MPTCP skb extension is wasted. Detect these skbs and do not add skb extensions to them. Signed-off-by: Mat Martineau --- net/mptcp/options.c | 9 ++--- 1 file changed, 6 insertions(+), 3

[PATCH net-next 04/12] mptcp: Use MPTCP-level flag for sending DATA_FIN

2020-07-28 Thread Mat Martineau
Since DATA_FIN information is the same for every subflow, store it only in the mptcp_sock. Signed-off-by: Mat Martineau --- net/mptcp/options.c | 18 -- net/mptcp/protocol.c | 21 + net/mptcp/protocol.h | 3 +-- 3 files changed, 18 insertions(+), 24 deletion

[PATCH net-next 08/12] mptcp: Use full MPTCP-level disconnect state machine

2020-07-28 Thread Mat Martineau
RFC 8684 appendix D describes the connection state machine for MPTCP. This patch implements the DATA_FIN / DATA_ACK exchanges and MPTCP-level socket state changes described in that appendix, rather than simply sending DATA_FIN along with TCP FIN when disconnecting subflows. DATA_FIN is now sent an

[PATCH net-next 12/12] mptcp: Safely store sequence number when sending data

2020-07-28 Thread Mat Martineau
The MPTCP socket's write_seq member can be read without the msk lock held, so use WRITE_ONCE() to store it. Signed-off-by: Mat Martineau --- net/mptcp/protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/mptcp/protocol.c b/net/mptcp/protocol.c index f2455a68d231..68

[PATCH net-next 07/12] mptcp: Add helper to process acks of DATA_FIN

2020-07-28 Thread Mat Martineau
After DATA_FIN has been sent, the peer will acknowledge it. An ack of the relevant MPTCP-level sequence number will update the MPTCP connection state appropriately. Signed-off-by: Mat Martineau --- net/mptcp/protocol.c | 54 +--- 1 file changed, 46 inserti

[PATCH net-next 05/12] mptcp: Track received DATA_FIN sequence number and add related helpers

2020-07-28 Thread Mat Martineau
Incoming DATA_FIN headers need to propagate the presence of the DATA_FIN bit and the associated sequence number to the MPTCP layer, even when arriving on a bare ACK that does not get added to the receive queue. Add structure members to store the DATA_FIN information and helpers to set and check tho

[PATCH net-next 02/12] mptcp: Return EPIPE if sending is shut down during a sendmsg

2020-07-28 Thread Mat Martineau
A MPTCP socket where sending has been shut down should not attempt to send additional data, since DATA_FIN has already been sent. Signed-off-by: Mat Martineau --- net/mptcp/protocol.c | 5 + 1 file changed, 5 insertions(+) diff --git a/net/mptcp/protocol.c b/net/mptcp/protocol.c index 2891a

[PATCH net-next 00/12] Exchange MPTCP DATA_FIN/DATA_ACK before TCP FIN

2020-07-28 Thread Mat Martineau
This series allows the MPTCP-level connection to be closed with the peers exchanging DATA_FIN and DATA_ACK according to the state machine in appendix D of RFC 8684. The process is very similar to the TCP disconnect state machine. The prior code sends DATA_FIN only when TCP FIN packets are sent, a

[PATCH net-next 06/12] mptcp: Add mptcp_close_state() helper

2020-07-28 Thread Mat Martineau
This will be used to transition to the appropriate state on close and determine if a DATA_FIN needs to be sent for that state transition. Signed-off-by: Mat Martineau --- net/mptcp/protocol.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/net/mptcp/protocol.c b/

[PATCH net-next 09/12] mptcp: Only use subflow EOF signaling on fallback connections

2020-07-28 Thread Mat Martineau
The MPTCP state machine handles disconnections on non-fallback connections, but the mptcp_sock still needs to get notified when fallback subflows disconnect. Signed-off-by: Mat Martineau --- net/mptcp/subflow.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/mptcp/subfl

Re: [PATCH v5 bpf-next 4/6] bpf, x64: rework pro/epilogue and tailcall handling in JIT

2020-07-28 Thread Daniel Borkmann
On 7/24/20 7:35 PM, Maciej Fijalkowski wrote: This commit serves two things: 1) it optimizes BPF prologue/epilogue generation 2) it makes possible to have tailcalls within BPF subprogram Both points are related to each other since without 1), 2) could not be achieved. [...] diff --git a/kerne

Re: [PATCH net-next v2 0/2] udp_tunnel: convert mlx5 to the new udp_tunnel infrastructure

2020-07-28 Thread Jakub Kicinski
On Tue, 28 Jul 2020 14:46:04 -0700 Jakub Kicinski wrote: > v2: - don't disable the offload on reprs in patch #2. Oouf, I missed amending the commit, sending v3 with a missing include. Sorry for the noise :(

[PATCH net-next v3 0/2] udp_tunnel: convert mlx5 to the new udp_tunnel infrastructure

2020-07-28 Thread Jakub Kicinski
This set converts mlx5 to the new infrastructure. We need a small amount of special handling as mlx5 expects IANA VXLAN port to always be programmed into the device. ethtool will show such ports in a separate, type-less, fake table, at the end: Tunnel information for eth0: UDP port table 0:

  1   2   3   4   5   >