Re: [PATCH v2 2/5] VSOCK: support fill data to mergeable rx buffer in host

2018-12-12 Thread jiangyiwen
On 2018/12/13 13:59, David Miller wrote: > From: jiangyiwen > Date: Thu, 13 Dec 2018 11:11:48 +0800 > >> I hope Host can fill fewer bytes into rx virtqueue, so >> I keep structure virtio_vsock_mrg_rxbuf_hdr one byte >> alignment. > > The question is if this actully matters. > > Do you know? >

Re: [PATCH] rtlwifi: Fix non-working BSS STA mode

2018-12-12 Thread Pkshih
On Thu, 2018-12-13 at 13:36 +0800, Kai Heng Feng wrote: > > On Dec 13, 2018, at 08:35, Pkshih wrote: > >  > > On Wed, 2018-12-12 at 13:13 +0800, Kai-Heng Feng wrote: > >> Once BSS STA mode gets started, it can be scanned by other clients but > >> cannot entablish a connection. > >  ^^^ typ

Re: [PATCH net-next v2 1/9] net: ndo_bridge_setlink: Add extack

2018-12-12 Thread Ivan Vecera
On 12. 12. 18 18:02, Petr Machata wrote: Drivers may not be able to implement a VLAN addition or reconfiguration. In those cases it's desirable to explain to the user that it was rejected (and why). To that end, add extack argument to ndo_bridge_setlink. Adapt all users to that change. Followin

Re: [PATCH] Export mm_update_next_owner function for vhost-net

2018-12-12 Thread Jason Wang
On 2018/12/13 下午12:47, gchen.guo...@gmail.com wrote: From: guomin chen Under normal circumstances,When do_exit exits, mm->owner will be updated on exit_mm(). but when the kernel process calls unuse_mm() and then exits,mm->owner cannot be updated. And it will point to a task that has b

Re: [pull request][net-next 00/14] Mellanox, mlx5e updates 2018-12-11

2018-12-12 Thread David Miller
From: Saeed Mahameed Date: Thu, 13 Dec 2018 01:32:42 + > On Tue, 2018-12-11 at 15:23 -0800, Saeed Mahameed wrote: >> Hi Dave, >> >> This series includes three updates to mlx5e driver, >> - Eswitch remote mirroring support. >> - CQE padding for ethernet CQs on PPC. >> - FW monitor counters s

Re: [PATCH bpf-next v2 1/2] libbpf: add support for using AF_XDP sockets

2018-12-12 Thread Alexei Starovoitov
On Wed, Dec 12, 2018 at 02:09:48PM +0100, Magnus Karlsson wrote: > diff --git a/tools/lib/bpf/libbpf.map b/tools/lib/bpf/libbpf.map > index cd02cd4..ae4cc0d 100644 > --- a/tools/lib/bpf/libbpf.map > +++ b/tools/lib/bpf/libbpf.map > @@ -121,6 +121,15 @@ LIBBPF_0.0.1 { > libbpf_prog_typ

Re: [PATCH net] net: ipv4: do not handle duplicate fragments as overlapping

2018-12-12 Thread Eric Dumazet
On 12/12/2018 06:28 PM, Michal Kubecek wrote: > Since commit 7969e5c40dfd ("ip: discard IPv4 datagrams with overlapping > segments.") IPv4 reassembly code drops the whole queue whenever an > overlapping fragment is received. However, the test is written in a way > which detects duplicate fragmen

Re: [PATCH bpf-next 1/2] selftests/bpf: skip verifier tests that depend on CONFIG_CGROUP_BPF

2018-12-12 Thread Alexei Starovoitov
On Wed, Dec 12, 2018 at 02:32:01PM -0800, Stanislav Fomichev wrote: > > To summarize, I like your idea about doing runtime tests and I think I > can make it work quite nicely without any config_disabled ugliness by > looking at the prog_type of each test. > I can send an RFC patch series out if th

Re: [PATCH net-next 0/5] net: prefer listeners bound to an address

2018-12-12 Thread Eric Dumazet
On 12/12/2018 01:15 PM, Peter Oskolkov wrote: > A relatively common use case is to have several IPs configured > on a host, and have different listeners for each of them. We would > like to add a "catch all" listener on addr_any, to match incoming > connections not served by any of the listeners

Re: [PATCH v2 2/5] VSOCK: support fill data to mergeable rx buffer in host

2018-12-12 Thread David Miller
From: jiangyiwen Date: Thu, 13 Dec 2018 11:11:48 +0800 > I hope Host can fill fewer bytes into rx virtqueue, so > I keep structure virtio_vsock_mrg_rxbuf_hdr one byte > alignment. The question is if this actully matters. Do you know? If the obejct this is embeeded inside of is at least 2 byte

Re: [PATCH net V3 0/3] Fix various issue of vhost

2018-12-12 Thread David Miller
From: Jason Wang Date: Thu, 13 Dec 2018 10:53:36 +0800 > This series tries to fix various issues of vhost: > > - Patch 1 adds a missing write barrier between used idx updating and > logging. > - Patch 2-3 brings back the protection of device IOTLB through vq > mutex, this fixes possible use

Re: [net 0/4][pull request] Intel Wired LAN Driver Fixes 2018-12-12

2018-12-12 Thread David Miller
From: Jeff Kirsher Date: Wed, 12 Dec 2018 18:45:40 -0800 > This series contains fixes to i40e and ixgbe. > > Stefan Assmann fixes an issue created by a previous fix, where > ether_addr_copy() was moved to avoid a race but did not take into > account that it alters the MAC address being handed to

Reference.

2018-12-12 Thread Minsk Belarus
-- Good Morning, I would like to verify if you received my antecedent email as I have been trying to reach you in relating to the exceeding subject. Regards, Mrs. Abelia

Re: linux-next: Signed-off-by missing for commits in the bpf-next tree

2018-12-12 Thread Alexei Starovoitov
On Thu, Dec 13, 2018 at 04:37:28PM +1100, Stephen Rothwell wrote: > Hi Alexei, > > On Wed, 12 Dec 2018 20:33:41 -0800 Alexei Starovoitov > wrote: > > > > If Stephen's scripts can recognize SOB anywhere in the log then > > --signoff can theoretically solve it. > > My script just grabs all the Si

Re: [PATCH] net-next: stmmac: dwmac-mediatek: add module license info

2018-12-12 Thread David Miller
From: Biao Huang Date: Thu, 13 Dec 2018 10:41:37 +0800 > Add MODULE_LICENSE info to fix this: > WARNING: modpost: missing MODULE_LICENSE() in > drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.o > > Signed-off-by: Biao Huang Applied, thanks for fixing this properly.

Re: [PATCH net] net: ipv4: do not handle duplicate fragments as overlapping

2018-12-12 Thread David Miller
From: Michal Kubecek Date: Thu, 13 Dec 2018 03:28:00 +0100 (CET) > Since commit 7969e5c40dfd ("ip: discard IPv4 datagrams with overlapping > segments.") IPv4 reassembly code drops the whole queue whenever an > overlapping fragment is received. However, the test is written in a way > which detects

Re: [v7, PATCH 0/2] add Ethernet driver support for mt2712

2018-12-12 Thread David Miller
From: Biao Huang Date: Thu, 13 Dec 2018 09:56:11 +0800 > Changes in v7: > Add MODULE_LICENSE info in driver. Biao, I said I need a "fixup" patch, not the whole series again. I've already applied your patches, and you need to send me a small fix on top. This shows that you are not generating yo

Re: [PATCH net-next] net/mlx5e: Remove set but not used variable 'upriv'

2018-12-12 Thread David Miller
From: Saeed Mahameed Date: Thu, 13 Dec 2018 01:24:06 + > On Wed, 2018-12-12 at 17:10 +0200, Leon Romanovsky wrote: >> On Wed, Dec 12, 2018 at 08:33:53AM +, YueHaibing wrote: >> > Fixes gcc '-Wunused-but-set-variable' warning: >> > >> > drivers/net/ethernet/mellanox/mlx5/core/en_rep.c: In

Re: [PATCH net-next 02/13] sk_buff: add skb extension infrastructure

2018-12-12 Thread Eric Dumazet
On 12/12/2018 12:52 PM, Florian Westphal wrote: > Eric Dumazet wrote: >>> If you prefer that, ok, but I don't see why we can't unify them behind >>> a single layer? >> >> Well, for a start we do not use nf_brifge or secpath. > > Then the extension framework isn't built and the result > is exac

Re: linux-next: Signed-off-by missing for commits in the bpf-next tree

2018-12-12 Thread Stephen Rothwell
Hi Alexei, On Wed, 12 Dec 2018 20:33:41 -0800 Alexei Starovoitov wrote: > > If Stephen's scripts can recognize SOB anywhere in the log then > --signoff can theoretically solve it. My script just grabs all the Signed-off-by lines in the commit message. > Unfortunately it's "Incompatible with th

Re: [PATCH 0/5] Netfilter fixes for net

2018-12-12 Thread David Miller
From: Pablo Neira Ayuso Date: Thu, 13 Dec 2018 02:06:26 +0100 > The following patchset contains Netfilter fixes for net: > > 1) Fix warnings suspicious rcu usage when handling base chain >statistics, from Taehee Yoo. > > 2) Refetch pointer to tcp header from nf_ct_sack_adjust() since >s

Re: [PATCH] rtlwifi: Fix non-working BSS STA mode

2018-12-12 Thread Kai Heng Feng
> On Dec 13, 2018, at 08:35, Pkshih wrote: > > On Wed, 2018-12-12 at 13:13 +0800, Kai-Heng Feng wrote: >> Once BSS STA mode gets started, it can be scanned by other clients but >> cannot entablish a connection. > ^^^ typo: establish >> >> Turns out the set_bcn_reg() and its *_set_bea

Re: IP (rtl8169) forwarding bug (performance)

2018-12-12 Thread Stephen Hemminger
On Thu, 13 Dec 2018 01:20:48 +0200 Risto Pajula wrote: > Hello. > > I'm not able reproduce the actual problem anymore which was the high > ping latency from the internal network. > > This starts to sound like some sort of voodoo, but... > > I tested replacing the switch to another brand where

[PATCH AUTOSEL 4.19 01/73] mac80211_hwsim: fix module init error paths for netlink

2018-12-12 Thread Sasha Levin
From: Alexey Khoroshilov [ Upstream commit 05cc09de4c017663a217630682041066f2f9a5cd ] There is no unregister netlink notifier and family on error paths in init_mac80211_hwsim(). Also there is an error path where hwsim_class is not destroyed. Found by Linux Driver Verification project (linuxtest

[PATCH AUTOSEL 4.19 09/73] net: phy: sfp: correct store of detected link modes

2018-12-12 Thread Sasha Levin
From: Baruch Siach [ Upstream commit d7f7e0018b96fd1a30a968faa9464eb57372c1ec ] The link modes that sfp_parse_support() detects are stored in the 'modes' bitmap. There is no reason to make an exception for 1000Base-PX or 1000Base-BX10. Fixes: 03145864bd0f ("sfp: support 1G BiDi (eg, FiberStore

[PATCH AUTOSEL 4.19 06/73] tools/bpf: fix two test_btf unit test cases

2018-12-12 Thread Sasha Levin
From: Martin KaFai Lau [ Upstream commit 8800cd031af085807028656c6ba7eb7908d78262 ] There are two unit test cases, which should encode TYPEDEF type, but instead encode PTR type. The error is flagged out after enforcing name checking in the previous patch. Fixes: c0fa1b6c3efc ("bpf: btf: Add BTF

[PATCH AUTOSEL 4.19 07/73] tools/bpf: add addition type tests to test_btf

2018-12-12 Thread Sasha Levin
From: Yonghong Song [ Upstream commit d08489125e04a9f73d9323caea43270fd22d395f ] The following additional unit testcases are added to test_btf: ... BTF raw test[42] (typedef (invalid name, name_off = 0)): OK BTF raw test[43] (typedef (invalid name, invalid identifier)): OK BTF raw test[44] (ptr

[PATCH AUTOSEL 4.19 23/73] bpf: Fix verifier log string check for bad alignment.

2018-12-12 Thread Sasha Levin
From: David Miller [ Upstream commit c01ac66b38660f2b507ccd0b75d28e3002d56fbb ] The message got changed a lot time ago. This was responsible for 36 test case failures on sparc64. Fixes: f1174f77b50c ("bpf/verifier: rework value tracking") Signed-off-by: David S. Miller Signed-off-by: Alexei S

[PATCH AUTOSEL 4.19 20/73] net: stmmac: Move debugfs init/exit to ->probe()/->remove()

2018-12-12 Thread Sasha Levin
From: Thierry Reding [ Upstream commit 5f2b8b62786853341a20d4cd4948f9cbca3db002 ] Setting up and tearing down debugfs is current unbalanced, as seen by this error during resume from suspend: [ 752.134067] dwc-eth-dwmac 249.ethernet eth0: ERROR failed to create debugfs directory [

RE: [PATCH AUTOSEL 4.9 21/34] net: phy: Fix not to call phy_resume() if PHY is not attached

2018-12-12 Thread Yoshihiro Shimoda
Hi, > From: Sasha Levin, Sent: Thursday, December 13, 2018 1:32 PM > > From: Yoshihiro Shimoda > > [ Upstream commit ef1b5bf506b1f0ee3edc98533e1f3ecb105eb46a ] This upstream commit is reverted on mainline as I mentioned other email thread [1]. So, we should not backport this patch. [1] https

[PATCH AUTOSEL 4.19 21/73] net: aquantia: fix rx checksum offload bits

2018-12-12 Thread Sasha Levin
From: Dmitry Bogdanov [ Upstream commit 37c4b91f955fdd5f4ad771956b97d35f1321098e ] The last set of csum offload fixes had a leak: Checksum enabled status bits from rx descriptor were incorrectly interpreted. Consequently all the other valid logic worked on zero bits. That caused rx checksum off

[PATCH AUTOSEL 4.19 24/73] liquidio: read sc->iq_no before release sc

2018-12-12 Thread Sasha Levin
From: Pan Bian [ Upstream commit c0f53771ba45745e5870daf880127925c93f232f ] The function lio_vf_rep_packet_sent_callback releases the occupation of sc via octeon_free_soft_command. sc should not be used after that. Unfortunately, sc->iq_no is read. To fix this, the patch stores sc->iq_no into a

[PATCH AUTOSEL 4.19 26/73] SUNRPC: Fix leak of krb5p encode pages

2018-12-12 Thread Sasha Levin
From: Chuck Lever [ Upstream commit 8dae5398ab1ac107b1517e8195ed043d5f422bd0 ] call_encode can be invoked more than once per RPC call. Ensure that each call to gss_wrap_req_priv does not overwrite pointers to previously allocated memory. Signed-off-by: Chuck Lever Cc: sta...@kernel.org Signed-

[PATCH AUTOSEL 4.19 27/73] SUNRPC: Fix a potential race in xprt_connect()

2018-12-12 Thread Sasha Levin
From: Trond Myklebust [ Upstream commit 0a9a4304f3614e25d9de9b63502ca633c01c0d70 ] If an asynchronous connection attempt completes while another task is in xprt_connect(), then the call to rpc_sleep_on() could end up racing with the call to xprt_wake_pending_tasks(). So add a second test of the

RE: [PATCH AUTOSEL 4.14 25/41] net: phy: Fix not to call phy_resume() if PHY is not attached

2018-12-12 Thread Yoshihiro Shimoda
Hi, > From: Sasha Levin, Sent: Thursday, December 13, 2018 1:31 PM > > From: Yoshihiro Shimoda > > [ Upstream commit ef1b5bf506b1f0ee3edc98533e1f3ecb105eb46a ] This upstream commit is also reverted on mainline as I mentioned other email thread [1]. So, we should not backport this patch. [1] h

[PATCH AUTOSEL 4.19 46/73] macvlan: return correct error value

2018-12-12 Thread Sasha Levin
From: Matteo Croce [ Upstream commit 59f997b088d26a774958cb7b17b0763cd82de7ec ] A MAC address must be unique among all the macvlan devices with the same lower device. The only exception is the passthru [sic] mode, which shares the lower device address. When duplicate addresses are detected, EBU

[PATCH AUTOSEL 4.19 43/73] net: 8139cp: fix a BUG triggered by changing mtu with network traffic

2018-12-12 Thread Sasha Levin
From: Su Yanjun [ Upstream commit a5d4a89245ead1f37ed135213653c5beebea4237 ] When changing mtu many times with traffic, a bug is triggered: [ 1035.684037] kernel BUG at lib/dynamic_queue_limits.c:26! [ 1035.684042] invalid opcode: [#1] SMP [ 1035.684049] Modules linked in: loop binfmt_misc

[PATCH AUTOSEL 4.19 42/73] net: phy: don't allow __set_phy_supported to add unsupported modes

2018-12-12 Thread Sasha Levin
From: Heiner Kallweit [ Upstream commit d2a36971ef595069b7a600d1144c2e0881a930a1 ] Currently __set_phy_supported allows to add modes w/o checking whether the PHY supports them. This is wrong, it should never add modes but only remove modes we don't want to support. The commit marked as fixed di

[PATCH AUTOSEL 4.19 47/73] mv88e6060: disable hardware level MAC learning

2018-12-12 Thread Sasha Levin
From: Anderson Luiz Alves [ Upstream commit a74515604a7b171f2702bdcbd1e231225fb456d0 ] Disable hardware level MAC learning because it breaks station roaming. When enabled it drops all frames that arrive from a MAC address that is on a different port at learning table. Signed-off-by: Anderson Lu

RE: [PATCH AUTOSEL 4.19 44/73] net: phy: Fix not to call phy_resume() if PHY is not attached

2018-12-12 Thread Yoshihiro Shimoda
Hi, > From: Sasha Levin, Sent: Thursday, December 13, 2018 1:28 PM > > From: Yoshihiro Shimoda > > [ Upstream commit ef1b5bf506b1f0ee3edc98533e1f3ecb105eb46a ] This upstream commit is also reverted on mainline as I mentioned other email thread[1] [1] https://lore.kernel.org/lkml/osapr01mb2290

[PATCH AUTOSEL 4.19 45/73] net: phy: micrel: add toggling phy reset if PHY is not attached

2018-12-12 Thread Sasha Levin
From: Yoshihiro Shimoda [ Upstream commit 8c85f4b81296a530b8af2796c110fa482ac42d4f ] This patch adds toggling phy reset if PHY is not attached. Otherwise, some boards (e.g. R-Car H3 Salvator-XS) cannot link up correctly if we do the following method: 1) Kernel boots by using initramfs. --> No

[PATCH AUTOSEL 4.19 48/73] net/mlx4_en: Change min MTU size to ETH_MIN_MTU

2018-12-12 Thread Sasha Levin
From: Eran Ben Elisha [ Upstream commit 24be19e47779d604d1492c114459dca9a92acf78 ] NIC driver minimal MTU size shall be set to ETH_MIN_MTU, as defined in the RFC791 and in the network stack. Remove old mlx4_en only define for it, which was set to wrong value. Fixes: b80f71f5816f ("ethernet/mell

[PATCH AUTOSEL 4.19 50/73] bpf: check pending signals while verifying programs

2018-12-12 Thread Sasha Levin
From: Alexei Starovoitov [ Upstream commit c3494801cd1785e2c25f1a5735fa19ddcf9665da ] Malicious user space may try to force the verifier to use as much cpu time and memory as possible. Hence check for pending signals while verifying the program. Note that suspend of sys_bpf(PROG_LOAD) syscall wi

[PATCH] Export mm_update_next_owner function for vhost-net

2018-12-12 Thread gchen . guomin
From: guomin chen Under normal circumstances,When do_exit exits, mm->owner will be updated on exit_mm(). but when the kernel process calls unuse_mm() and then exits,mm->owner cannot be updated. And it will point to a task that has been released. Below is my issue on vhost_net: A, B are

[PATCH AUTOSEL 4.19 49/73] net/mlx4_en: Fix build break when CONFIG_INET is off

2018-12-12 Thread Sasha Levin
From: Saeed Mahameed [ Upstream commit 1b603f9e4313348608f256b564ed6e3d9e67f377 ] MLX4_EN depends on NETDEVICES, ETHERNET and INET Kconfigs. Make sure they are listed in MLX4_EN Kconfig dependencies. This fixes the following build break: drivers/net/ethernet/mellanox/mlx4/en_rx.c:582:18: warni

[PATCH AUTOSEL 4.19 56/73] net: mvpp2: fix detection of 10G SFP modules

2018-12-12 Thread Sasha Levin
From: Baruch Siach [ Upstream commit 01b3fd5ac97caffb8e5d5bd85086da33db3b361f ] The mvpp2_phylink_validate() relies on the interface field of phylink_link_state to determine valid link modes. However, when called from phylink_sfp_module_insert() this field in not initialized. The default switch

[PATCH AUTOSEL 4.19 57/73] net: mvpp2: fix phylink handling of invalid PHY modes

2018-12-12 Thread Sasha Levin
From: Baruch Siach [ Upstream commit 0fb628f0f250c74b1023edd0ca4a57c8b35b9b2c ] The .validate phylink callback should empty the supported bitmap when the interface mode is invalid. Cc: Maxime Chevallier Cc: Antoine Tenart Reported-by: Russell King Signed-off-by: Baruch Siach Signed-off-by:

[PATCH AUTOSEL 4.19 64/73] vhost/vsock: fix reset orphans race with close timeout

2018-12-12 Thread Sasha Levin
From: Stefan Hajnoczi [ Upstream commit c38f57da428b033f2721b611d84b1f40bde674a8 ] If a local process has closed a connected socket and hasn't received a RST packet yet, then the socket remains in the table until a timeout expires. When a vhost_vsock instance is released with the timeout still

[PATCH AUTOSEL 4.19 65/73] mlxsw: spectrum_switchdev: Fix VLAN device deletion via ioctl

2018-12-12 Thread Sasha Levin
From: Ido Schimmel [ Upstream commit 993107fea5eefdfdfde1ca38d3f01f0bebf76e77 ] When deleting a VLAN device using an ioctl the netdev is unregistered before the VLAN filter is updated via ndo_vlan_rx_kill_vid(). It can lead to a use-after-free in mlxsw in case the VLAN device is deleted while be

[PATCH AUTOSEL 4.19 54/73] ethernet: fman: fix wrong of_node_put() in probe function

2018-12-12 Thread Sasha Levin
From: Nicolas Saenz Julienne [ Upstream commit ecb239d96d369c23c33d41708646df646de669f4 ] After getting a reference to the platform device's of_node the probe function ends up calling of_find_matching_node() using the node as an argument. The function takes care of decreasing the refcount on it.

[PATCH AUTOSEL 4.19 73/73] net/mlx4_core: Correctly set PFC param if global pause is turned off.

2018-12-12 Thread Sasha Levin
From: Tarick Bedeir [ Upstream commit bd5122cd1e0644d8bd8dd84517c932773e999766 ] rx_ppp and tx_ppp can be set between 0 and 255, so don't clamp to 1. Fixes: 6e8814ceb7e8 ("net/mlx4_en: Fix mixed PFC and Global pause user control requests") Signed-off-by: Tarick Bedeir Reviewed-by: Eran Ben El

[PATCH AUTOSEL 4.19 72/73] Revert "net/ibm/emac: wrong bit is used for STA control"

2018-12-12 Thread Sasha Levin
From: Benjamin Herrenschmidt [ Upstream commit 5b3279e2cba2238b37f6c18adfdea8bddb32715a ] This reverts commit 624ca9c33c8a853a4a589836e310d776620f4ab9. This commit is completely bogus. The STACR register has two formats, old and new, depending on the version of the IP block used. There's a pair

[PATCH AUTOSEL 4.14 01/41] mac80211_hwsim: fix module init error paths for netlink

2018-12-12 Thread Sasha Levin
From: Alexey Khoroshilov [ Upstream commit 05cc09de4c017663a217630682041066f2f9a5cd ] There is no unregister netlink notifier and family on error paths in init_mac80211_hwsim(). Also there is an error path where hwsim_class is not destroyed. Found by Linux Driver Verification project (linuxtest

[PATCH AUTOSEL 4.14 08/41] bonding: fix 802.3ad state sent to partner when unbinding slave

2018-12-12 Thread Sasha Levin
From: Toni Peltonen [ Upstream commit 3b5b3a3331d141e8f2a7aaae3a94dfa1e61ecbe4 ] Previously when unbinding a slave the 802.3ad implementation only told partner that the port is not suitable for aggregation by setting the port aggregation state from aggregatable to individual. This is not enough.

[PATCH AUTOSEL 4.14 09/41] bpf: Fix verifier log string check for bad alignment.

2018-12-12 Thread Sasha Levin
From: David Miller [ Upstream commit c01ac66b38660f2b507ccd0b75d28e3002d56fbb ] The message got changed a lot time ago. This was responsible for 36 test case failures on sparc64. Fixes: f1174f77b50c ("bpf/verifier: rework value tracking") Signed-off-by: David S. Miller Signed-off-by: Alexei S

RE: [PATCH AUTOSEL 4.19 45/73] net: phy: micrel: add toggling phy reset if PHY is not attached

2018-12-12 Thread Yoshihiro Shimoda
Hi, > From: Sasha Levin , Sent: Thursday, December 13, 2018 1:28 > PM > > From: Yoshihiro Shimoda > > [ Upstream commit 8c85f4b81296a530b8af2796c110fa482ac42d4f ] Since this upstream commit are reverted by the following commit, we should not backport it. --- commit 7b566f70e1bf65b189b66eb3de

[PATCH AUTOSEL 4.14 12/41] SUNRPC: Fix a potential race in xprt_connect()

2018-12-12 Thread Sasha Levin
From: Trond Myklebust [ Upstream commit 0a9a4304f3614e25d9de9b63502ca633c01c0d70 ] If an asynchronous connection attempt completes while another task is in xprt_connect(), then the call to rpc_sleep_on() could end up racing with the call to xprt_wake_pending_tasks(). So add a second test of the

[PATCH AUTOSEL 4.14 11/41] SUNRPC: Fix leak of krb5p encode pages

2018-12-12 Thread Sasha Levin
From: Chuck Lever [ Upstream commit 8dae5398ab1ac107b1517e8195ed043d5f422bd0 ] call_encode can be invoked more than once per RPC call. Ensure that each call to gss_wrap_req_priv does not overwrite pointers to previously allocated memory. Signed-off-by: Chuck Lever Cc: sta...@kernel.org Signed-

[PATCH AUTOSEL 4.14 23/41] net: phy: don't allow __set_phy_supported to add unsupported modes

2018-12-12 Thread Sasha Levin
From: Heiner Kallweit [ Upstream commit d2a36971ef595069b7a600d1144c2e0881a930a1 ] Currently __set_phy_supported allows to add modes w/o checking whether the PHY supports them. This is wrong, it should never add modes but only remove modes we don't want to support. The commit marked as fixed di

[PATCH AUTOSEL 4.14 26/41] mv88e6060: disable hardware level MAC learning

2018-12-12 Thread Sasha Levin
From: Anderson Luiz Alves [ Upstream commit a74515604a7b171f2702bdcbd1e231225fb456d0 ] Disable hardware level MAC learning because it breaks station roaming. When enabled it drops all frames that arrive from a MAC address that is on a different port at learning table. Signed-off-by: Anderson Lu

[PATCH AUTOSEL 4.14 25/41] net: phy: Fix not to call phy_resume() if PHY is not attached

2018-12-12 Thread Sasha Levin
From: Yoshihiro Shimoda [ Upstream commit ef1b5bf506b1f0ee3edc98533e1f3ecb105eb46a ] This patch fixes an issue that mdio_bus_phy_resume() doesn't call phy_resume() if the PHY is not attached. Fixes: 803dd9c77ac3 ("net: phy: avoid suspending twice a PHY") Signed-off-by: Yoshihiro Shimoda Signed

[PATCH AUTOSEL 4.14 28/41] net/mlx4_en: Fix build break when CONFIG_INET is off

2018-12-12 Thread Sasha Levin
From: Saeed Mahameed [ Upstream commit 1b603f9e4313348608f256b564ed6e3d9e67f377 ] MLX4_EN depends on NETDEVICES, ETHERNET and INET Kconfigs. Make sure they are listed in MLX4_EN Kconfig dependencies. This fixes the following build break: drivers/net/ethernet/mellanox/mlx4/en_rx.c:582:18: warni

[PATCH AUTOSEL 4.14 31/41] ethernet: fman: fix wrong of_node_put() in probe function

2018-12-12 Thread Sasha Levin
From: Nicolas Saenz Julienne [ Upstream commit ecb239d96d369c23c33d41708646df646de669f4 ] After getting a reference to the platform device's of_node the probe function ends up calling of_find_matching_node() using the node as an argument. The function takes care of decreasing the refcount on it.

[PATCH AUTOSEL 4.14 41/41] net/mlx4_core: Correctly set PFC param if global pause is turned off.

2018-12-12 Thread Sasha Levin
From: Tarick Bedeir [ Upstream commit bd5122cd1e0644d8bd8dd84517c932773e999766 ] rx_ppp and tx_ppp can be set between 0 and 255, so don't clamp to 1. Fixes: 6e8814ceb7e8 ("net/mlx4_en: Fix mixed PFC and Global pause user control requests") Signed-off-by: Tarick Bedeir Reviewed-by: Eran Ben El

[PATCH AUTOSEL 4.9 01/34] mac80211_hwsim: fix module init error paths for netlink

2018-12-12 Thread Sasha Levin
From: Alexey Khoroshilov [ Upstream commit 05cc09de4c017663a217630682041066f2f9a5cd ] There is no unregister netlink notifier and family on error paths in init_mac80211_hwsim(). Also there is an error path where hwsim_class is not destroyed. Found by Linux Driver Verification project (linuxtest

[PATCH AUTOSEL 4.14 35/41] mlxsw: spectrum_switchdev: Fix VLAN device deletion via ioctl

2018-12-12 Thread Sasha Levin
From: Ido Schimmel [ Upstream commit 993107fea5eefdfdfde1ca38d3f01f0bebf76e77 ] When deleting a VLAN device using an ioctl the netdev is unregistered before the VLAN filter is updated via ndo_vlan_rx_kill_vid(). It can lead to a use-after-free in mlxsw in case the VLAN device is deleted while be

[PATCH AUTOSEL 4.14 34/41] vhost/vsock: fix reset orphans race with close timeout

2018-12-12 Thread Sasha Levin
From: Stefan Hajnoczi [ Upstream commit c38f57da428b033f2721b611d84b1f40bde674a8 ] If a local process has closed a connected socket and hasn't received a RST packet yet, then the socket remains in the table until a timeout expires. When a vhost_vsock instance is released with the timeout still

[PATCH AUTOSEL 4.9 09/34] SUNRPC: Fix leak of krb5p encode pages

2018-12-12 Thread Sasha Levin
From: Chuck Lever [ Upstream commit 8dae5398ab1ac107b1517e8195ed043d5f422bd0 ] call_encode can be invoked more than once per RPC call. Ensure that each call to gss_wrap_req_priv does not overwrite pointers to previously allocated memory. Signed-off-by: Chuck Lever Cc: sta...@kernel.org Signed-

[PATCH AUTOSEL 4.9 19/34] net: phy: don't allow __set_phy_supported to add unsupported modes

2018-12-12 Thread Sasha Levin
From: Heiner Kallweit [ Upstream commit d2a36971ef595069b7a600d1144c2e0881a930a1 ] Currently __set_phy_supported allows to add modes w/o checking whether the PHY supports them. This is wrong, it should never add modes but only remove modes we don't want to support. The commit marked as fixed di

[PATCH AUTOSEL 4.9 22/34] mv88e6060: disable hardware level MAC learning

2018-12-12 Thread Sasha Levin
From: Anderson Luiz Alves [ Upstream commit a74515604a7b171f2702bdcbd1e231225fb456d0 ] Disable hardware level MAC learning because it breaks station roaming. When enabled it drops all frames that arrive from a MAC address that is on a different port at learning table. Signed-off-by: Anderson Lu

[PATCH AUTOSEL 4.9 27/34] ethernet: fman: fix wrong of_node_put() in probe function

2018-12-12 Thread Sasha Levin
From: Nicolas Saenz Julienne [ Upstream commit ecb239d96d369c23c33d41708646df646de669f4 ] After getting a reference to the platform device's of_node the probe function ends up calling of_find_matching_node() using the node as an argument. The function takes care of decreasing the refcount on it.

[PATCH AUTOSEL 4.9 20/34] net: 8139cp: fix a BUG triggered by changing mtu with network traffic

2018-12-12 Thread Sasha Levin
From: Su Yanjun [ Upstream commit a5d4a89245ead1f37ed135213653c5beebea4237 ] When changing mtu many times with traffic, a bug is triggered: [ 1035.684037] kernel BUG at lib/dynamic_queue_limits.c:26! [ 1035.684042] invalid opcode: [#1] SMP [ 1035.684049] Modules linked in: loop binfmt_misc

[PATCH AUTOSEL 4.9 23/34] net/mlx4_en: Fix build break when CONFIG_INET is off

2018-12-12 Thread Sasha Levin
From: Saeed Mahameed [ Upstream commit 1b603f9e4313348608f256b564ed6e3d9e67f377 ] MLX4_EN depends on NETDEVICES, ETHERNET and INET Kconfigs. Make sure they are listed in MLX4_EN Kconfig dependencies. This fixes the following build break: drivers/net/ethernet/mellanox/mlx4/en_rx.c:582:18: warni

[PATCH AUTOSEL 4.9 21/34] net: phy: Fix not to call phy_resume() if PHY is not attached

2018-12-12 Thread Sasha Levin
From: Yoshihiro Shimoda [ Upstream commit ef1b5bf506b1f0ee3edc98533e1f3ecb105eb46a ] This patch fixes an issue that mdio_bus_phy_resume() doesn't call phy_resume() if the PHY is not attached. Fixes: 803dd9c77ac3 ("net: phy: avoid suspending twice a PHY") Signed-off-by: Yoshihiro Shimoda Signed

[PATCH AUTOSEL 4.9 24/34] bpf: check pending signals while verifying programs

2018-12-12 Thread Sasha Levin
From: Alexei Starovoitov [ Upstream commit c3494801cd1785e2c25f1a5735fa19ddcf9665da ] Malicious user space may try to force the verifier to use as much cpu time and memory as possible. Hence check for pending signals while verifying the program. Note that suspend of sys_bpf(PROG_LOAD) syscall wi

[PATCH AUTOSEL 4.9 30/34] vhost/vsock: fix reset orphans race with close timeout

2018-12-12 Thread Sasha Levin
From: Stefan Hajnoczi [ Upstream commit c38f57da428b033f2721b611d84b1f40bde674a8 ] If a local process has closed a connected socket and hasn't received a RST packet yet, then the socket remains in the table until a timeout expires. When a vhost_vsock instance is released with the timeout still

Re: [PATCH bpf-next 4/4] bpf: add self-check logic to liveness analysis

2018-12-12 Thread Alexei Starovoitov
On Wed, Dec 12, 2018 at 05:21:35PM -0800, Jakub Kicinski wrote: > On Tue, 11 Dec 2018 21:28:54 -0800, Alexei Starovoitov wrote: > > introduce REG_LIVE_DONE to check the liveness propagation > > and prepare the states for merging > > See algorithm description in clean_live_states(). > > No differenc

[PATCH AUTOSEL 4.9 34/34] net/mlx4_core: Correctly set PFC param if global pause is turned off.

2018-12-12 Thread Sasha Levin
From: Tarick Bedeir [ Upstream commit bd5122cd1e0644d8bd8dd84517c932773e999766 ] rx_ppp and tx_ppp can be set between 0 and 255, so don't clamp to 1. Fixes: 6e8814ceb7e8 ("net/mlx4_en: Fix mixed PFC and Global pause user control requests") Signed-off-by: Tarick Bedeir Reviewed-by: Eran Ben El

[PATCH AUTOSEL 4.4 01/23] mac80211_hwsim: fix module init error paths for netlink

2018-12-12 Thread Sasha Levin
From: Alexey Khoroshilov [ Upstream commit 05cc09de4c017663a217630682041066f2f9a5cd ] There is no unregister netlink notifier and family on error paths in init_mac80211_hwsim(). Also there is an error path where hwsim_class is not destroyed. Found by Linux Driver Verification project (linuxtest

[PATCH AUTOSEL 4.4 07/23] bonding: fix 802.3ad state sent to partner when unbinding slave

2018-12-12 Thread Sasha Levin
From: Toni Peltonen [ Upstream commit 3b5b3a3331d141e8f2a7aaae3a94dfa1e61ecbe4 ] Previously when unbinding a slave the 802.3ad implementation only told partner that the port is not suitable for aggregation by setting the port aggregation state from aggregatable to individual. This is not enough.

[PATCH AUTOSEL 4.4 09/23] SUNRPC: Fix a potential race in xprt_connect()

2018-12-12 Thread Sasha Levin
From: Trond Myklebust [ Upstream commit 0a9a4304f3614e25d9de9b63502ca633c01c0d70 ] If an asynchronous connection attempt completes while another task is in xprt_connect(), then the call to rpc_sleep_on() could end up racing with the call to xprt_wake_pending_tasks(). So add a second test of the

[PATCH AUTOSEL 4.4 18/23] net: 8139cp: fix a BUG triggered by changing mtu with network traffic

2018-12-12 Thread Sasha Levin
From: Su Yanjun [ Upstream commit a5d4a89245ead1f37ed135213653c5beebea4237 ] When changing mtu many times with traffic, a bug is triggered: [ 1035.684037] kernel BUG at lib/dynamic_queue_limits.c:26! [ 1035.684042] invalid opcode: [#1] SMP [ 1035.684049] Modules linked in: loop binfmt_misc

Re: linux-next: Signed-off-by missing for commits in the bpf-next tree

2018-12-12 Thread Alexei Starovoitov
On Wed, Dec 12, 2018 at 04:45:26PM -0800, David Miller wrote: > From: Alexei Starovoitov > Date: Wed, 12 Dec 2018 15:39:10 -0800 > > > But this approach doesn't scale. > > We do rebase our trees when we need to fixup or drop patches and > > at any given point a number of commits will be committed

[PATCH AUTOSEL 4.4 19/23] mv88e6060: disable hardware level MAC learning

2018-12-12 Thread Sasha Levin
From: Anderson Luiz Alves [ Upstream commit a74515604a7b171f2702bdcbd1e231225fb456d0 ] Disable hardware level MAC learning because it breaks station roaming. When enabled it drops all frames that arrive from a MAC address that is on a different port at learning table. Signed-off-by: Anderson Lu

[PATCH AUTOSEL 3.18 06/16] SUNRPC: Fix a potential race in xprt_connect()

2018-12-12 Thread Sasha Levin
From: Trond Myklebust [ Upstream commit 0a9a4304f3614e25d9de9b63502ca633c01c0d70 ] If an asynchronous connection attempt completes while another task is in xprt_connect(), then the call to rpc_sleep_on() could end up racing with the call to xprt_wake_pending_tasks(). So add a second test of the

[PATCH AUTOSEL 3.18 05/16] SUNRPC: Fix leak of krb5p encode pages

2018-12-12 Thread Sasha Levin
From: Chuck Lever [ Upstream commit 8dae5398ab1ac107b1517e8195ed043d5f422bd0 ] call_encode can be invoked more than once per RPC call. Ensure that each call to gss_wrap_req_priv does not overwrite pointers to previously allocated memory. Signed-off-by: Chuck Lever Cc: sta...@kernel.org Signed-

[PATCH AUTOSEL 3.18 04/16] bonding: fix 802.3ad state sent to partner when unbinding slave

2018-12-12 Thread Sasha Levin
From: Toni Peltonen [ Upstream commit 3b5b3a3331d141e8f2a7aaae3a94dfa1e61ecbe4 ] Previously when unbinding a slave the 802.3ad implementation only told partner that the port is not suitable for aggregation by setting the port aggregation state from aggregatable to individual. This is not enough.

[PATCH AUTOSEL 3.18 13/16] net: 8139cp: fix a BUG triggered by changing mtu with network traffic

2018-12-12 Thread Sasha Levin
From: Su Yanjun [ Upstream commit a5d4a89245ead1f37ed135213653c5beebea4237 ] When changing mtu many times with traffic, a bug is triggered: [ 1035.684037] kernel BUG at lib/dynamic_queue_limits.c:26! [ 1035.684042] invalid opcode: [#1] SMP [ 1035.684049] Modules linked in: loop binfmt_misc

[PATCH AUTOSEL 4.4 17/23] net: phy: don't allow __set_phy_supported to add unsupported modes

2018-12-12 Thread Sasha Levin
From: Heiner Kallweit [ Upstream commit d2a36971ef595069b7a600d1144c2e0881a930a1 ] Currently __set_phy_supported allows to add modes w/o checking whether the PHY supports them. This is wrong, it should never add modes but only remove modes we don't want to support. The commit marked as fixed di

[PATCH AUTOSEL 4.4 08/23] SUNRPC: Fix leak of krb5p encode pages

2018-12-12 Thread Sasha Levin
From: Chuck Lever [ Upstream commit 8dae5398ab1ac107b1517e8195ed043d5f422bd0 ] call_encode can be invoked more than once per RPC call. Ensure that each call to gss_wrap_req_priv does not overwrite pointers to previously allocated memory. Signed-off-by: Chuck Lever Cc: sta...@kernel.org Signed-

[PATCH AUTOSEL 4.9 07/34] bonding: fix 802.3ad state sent to partner when unbinding slave

2018-12-12 Thread Sasha Levin
From: Toni Peltonen [ Upstream commit 3b5b3a3331d141e8f2a7aaae3a94dfa1e61ecbe4 ] Previously when unbinding a slave the 802.3ad implementation only told partner that the port is not suitable for aggregation by setting the port aggregation state from aggregatable to individual. This is not enough.

[PATCH AUTOSEL 4.9 10/34] SUNRPC: Fix a potential race in xprt_connect()

2018-12-12 Thread Sasha Levin
From: Trond Myklebust [ Upstream commit 0a9a4304f3614e25d9de9b63502ca633c01c0d70 ] If an asynchronous connection attempt completes while another task is in xprt_connect(), then the call to rpc_sleep_on() could end up racing with the call to xprt_wake_pending_tasks(). So add a second test of the

[PATCH AUTOSEL 4.14 27/41] net/mlx4_en: Change min MTU size to ETH_MIN_MTU

2018-12-12 Thread Sasha Levin
From: Eran Ben Elisha [ Upstream commit 24be19e47779d604d1492c114459dca9a92acf78 ] NIC driver minimal MTU size shall be set to ETH_MIN_MTU, as defined in the RFC791 and in the network stack. Remove old mlx4_en only define for it, which was set to wrong value. Fixes: b80f71f5816f ("ethernet/mell

[PATCH AUTOSEL 4.14 24/41] net: 8139cp: fix a BUG triggered by changing mtu with network traffic

2018-12-12 Thread Sasha Levin
From: Su Yanjun [ Upstream commit a5d4a89245ead1f37ed135213653c5beebea4237 ] When changing mtu many times with traffic, a bug is triggered: [ 1035.684037] kernel BUG at lib/dynamic_queue_limits.c:26! [ 1035.684042] invalid opcode: [#1] SMP [ 1035.684049] Modules linked in: loop binfmt_misc

[PATCH AUTOSEL 4.19 44/73] net: phy: Fix not to call phy_resume() if PHY is not attached

2018-12-12 Thread Sasha Levin
From: Yoshihiro Shimoda [ Upstream commit ef1b5bf506b1f0ee3edc98533e1f3ecb105eb46a ] This patch fixes an issue that mdio_bus_phy_resume() doesn't call phy_resume() if the PHY is not attached. Fixes: 803dd9c77ac3 ("net: phy: avoid suspending twice a PHY") Signed-off-by: Yoshihiro Shimoda Signed

[PATCH AUTOSEL 4.19 08/73] net: ethernet: ave: Replace NET_IP_ALIGN with AVE_FRAME_HEADROOM

2018-12-12 Thread Sasha Levin
From: Kunihiko Hayashi [ Upstream commit 88113957ddb7b7d5451e28cd708c82ea7e63b097 ] In commit 26a4676faa1a ("arm64: mm: define NET_IP_ALIGN to 0"), AVE controller affects this modification because the controller forces to ignore lower 2bits of buffer start address, and make 2-byte headroom, that

[PATCH AUTOSEL 4.19 22/73] bonding: fix 802.3ad state sent to partner when unbinding slave

2018-12-12 Thread Sasha Levin
From: Toni Peltonen [ Upstream commit 3b5b3a3331d141e8f2a7aaae3a94dfa1e61ecbe4 ] Previously when unbinding a slave the 802.3ad implementation only told partner that the port is not suitable for aggregation by setting the port aggregation state from aggregatable to individual. This is not enough.

Re: [PATCH] net: phy: tja11xx: Add TJA11xx PHY driver

2018-12-12 Thread Marek Vasut
On 12/13/2018 04:49 AM, Yunsheng Lin wrote: > On 2018/12/13 10:01, Marek Vasut wrote: >> Add driver for the NXP TJA1100 and TJA1101 PHYs. These PHYs are special >> BroadRReach 100BaseT1 PHYs used in automotive. > > Hi, > a few minor improvement inline. Hi, >> >> Signed-off-by: Marek Vasut >> --

Re: [PATCH] net: dsa: ksz: Fix port membership

2018-12-12 Thread Marek Vasut
On 12/08/2018 12:00 PM, Andrew Lunn wrote: > On Sat, Dec 08, 2018 at 05:23:25AM +0100, Marek Vasut wrote: >> On 12/08/2018 01:13 AM, tristram...@microchip.com wrote: Do you have a git tree with all the KSZ patches based on -next somewhere, so I don't have to look for them in random MLs ?

Re: [PATCH net-next 0/13] sk_buff: add extension infrastructure

2018-12-12 Thread Shannon Nelson
On Mon, Dec 10, 2018 at 8:21 AM Florian Westphal wrote: > > The (out-of-tree) Multipath-TCP implementation needs to map logical mptcp > sequence numbers to the tcp sequence numbers used by individual subflows. > This DSS mapping is read/written from tcp option space on receive and > written to tcp

  1   2   3   4   5   >