[PATCH AUTOSEL 4.19 44/97] net/mlx5e: Cancel DIM work on close SQ

2018-12-26 Thread Sasha Levin
From: Tal Gilboa [ Upstream commit fa2bf86bab4bbc61e5678a42a14e40075093a98f ] TXQ SQ closure is followed by closing the corresponding CQ. A pending DIM work would try to modify the now non-existing CQ. This would trigger an error: [85535.835926] mlx5_core :af:00.0: mlx5_cmd_check:769:(pid

[PATCH AUTOSEL 4.19 46/97] x86, hyperv: remove PCI dependency

2018-12-26 Thread Sasha Levin
From: Sinan Kaya [ Upstream commit c629421a990033ba539eb8585e73a2e6fa9ea631 ] Need to be able to boot without PCI devices present. Signed-off-by: Sinan Kaya Signed-off-by: Sasha Levin --- drivers/hv/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH AUTOSEL 4.19 45/97] mt76: fix potential NULL pointer dereference in mt76_stop_tx_queues

2018-12-26 Thread Sasha Levin
From: Lorenzo Bianconi [ Upstream commit 7c250f4612ae97aa04500c0d0cff69bb87046e3a ] Starting from mac80211 commit adf8ed01e4fd ("mac80211: add an optional TXQ for other PS-buffered frames") and commit 0eeb2b674f05 ("mac80211: add an option for station management TXQ") a new per-sta queue has

[PATCH AUTOSEL 4.19 50/97] w90p910_ether: remove incorrect __init annotation

2018-12-26 Thread Sasha Levin
From: Arnd Bergmann [ Upstream commit 51367e423c6501a26e67d91a655d2bc892303462 ] The get_mac_address() function is normally inline, but when it is not, we get a warning that this configuration is broken: WARNING: vmlinux.o(.text+0x4aff00): Section mismatch in reference from the function

[PATCH AUTOSEL 4.19 48/97] drivers: net: xgene: Remove unnecessary forward declarations

2018-12-26 Thread Sasha Levin
From: Nathan Chancellor [ Upstream commit 2ab4c3426c0cf711d7147e3f559638e4ab88960e ] Clang warns: drivers/net/ethernet/apm/xgene/xgene_enet_main.c:33:36: warning: tentative array definition assumed to have one element static const struct acpi_device_id xgene_enet_acpi_match[];

[PATCH AUTOSEL 4.19 51/97] qmi_wwan: Added support for Fibocom NL668 series

2018-12-26 Thread Sasha Levin
From: Jörgen Storvist [ Upstream commit 110a1cc28bc383adb4885eff27e18c61ddebffb4 ] Added support for Fibocom NL668 series QMI interface. Using QMI_QUIRK_SET_DTR required for Qualcomm MDM9x07 chipsets. Signed-off-by: Jörgen Storvist Signed-off-by: David S. Miller Signed-off-by: Sasha Levin

[PATCH AUTOSEL 4.19 53/97] net: clear skb->tstamp in forwarding paths

2018-12-26 Thread Sasha Levin
From: Eric Dumazet [ Upstream commit 8203e2d844d34af247a151d8ebd68553a6e91785 ] Sergey reported that forwarding was no longer working if fq packet scheduler was used. This is caused by the recent switch to EDT model, since incoming packets might have been timestamped by __net_timestamp()

[PATCH AUTOSEL 4.19 61/97] net: hns: Fix ntuple-filters status error.

2018-12-26 Thread Sasha Levin
From: Yonglong Liu [ Upstream commit 7e74a19ca522aec7c2be201a7ae1d1d57ded409b ] The ntuple-filters features is forced on by chip. But it shows "ntuple-filters: off [fixed]" when use ethtool. This patch make it correct with "ntuple-filters: on [fixed]". Signed-off-by: Yonglong Liu

[PATCH AUTOSEL 4.19 59/97] net: hns: Free irq when exit from abnormal branch

2018-12-26 Thread Sasha Levin
From: Yonglong Liu [ Upstream commit c82bd077e1ba3dd586569c733dc6d3dd4b0e43cd ] 1.In "hns_nic_init_irq", if request irq fail at index i, the function return directly without releasing irq resources that already requested. 2.In "hns_nic_net_up" after "hns_nic_init_irq", if exceptional

[PATCH AUTOSEL 4.19 65/97] mac80211: fix a kernel panic when TXing after TXQ teardown

2018-12-26 Thread Sasha Levin
From: Sara Sharon [ Upstream commit a50e5fb8db83c5b57392204c21ea6c5c4ccefde6 ] Recently TXQ teardown was moved earlier in ieee80211_unregister_hw(), to avoid a use-after-free of the netdev data. However, interfaces aren't fully removed at the point, and cfg80211_shutdown_all_interfaces can for

[PATCH AUTOSEL 4.19 56/97] net: hns: Some registers use wrong address according to the datasheet.

2018-12-26 Thread Sasha Levin
From: Yonglong Liu [ Upstream commit 4ad26f117b6ea0f5d5f1592127bafb5ec65904d3 ] According to the hip06 datasheet: 1.Six registers use wrong address: RCB_COM_SF_CFG_INTMASK_RING RCB_COM_SF_CFG_RING_STS RCB_COM_SF_CFG_RING RCB_COM_SF_CFG_INTMASK_BD RCB_COM_SF_CFG_BD_RINT_STS

[PATCH AUTOSEL 4.19 63/97] net: hns: Fix ping failed when use net bridge and send multicast

2018-12-26 Thread Sasha Levin
From: Yonglong Liu [ Upstream commit 6adafc356e20189193b38ee6b9af7743078bf6b4 ] Create a net bridge, add eth and vnet to the bridge. The vnet is used by a virtual machine. When ping the virtual machine from the outside host and the virtual machine send multicast at the same time, the ping

[PATCH AUTOSEL 4.19 67/97] mlxsw: core: Increase timeout during firmware flash process

2018-12-26 Thread Sasha Levin
From: Shalom Toledo [ Upstream commit cf0b70e71b32137ccf9c1f3dd9fb30cbf89b4322 ] During the firmware flash process, some of the EMADs get timed out, which causes the driver to send them again with a limit of 5 retries. There are some situations in which 5 retries is not enough and the EMAD

[PATCH AUTOSEL 4.19 71/97] net: stmmac: Fix an error code in probe()

2018-12-26 Thread Sasha Levin
From: Dan Carpenter [ Upstream commit b26322d2ac6c1c1087af73856531bb836f6963ca ] The function should return an error if create_singlethread_workqueue() fails. Fixes: 34877a15f787 ("net: stmmac: Rework and fix TX Timeout code") Signed-off-by: Dan Carpenter Signed-off-by: David S. Miller

[PATCH AUTOSEL 4.19 72/97] net: macb: restart tx after tx used bit read

2018-12-26 Thread Sasha Levin
From: Claudiu Beznea [ Upstream commit 4298388574dae6168fa8940b3edc7ba965e8a7ab ] On some platforms (currently detected only on SAMA5D4) TX might stuck even the pachets are still present in DMA memories and TX start was issued for them. This happens due to race condition between MACB driver

[PATCH AUTOSEL 4.19 66/97] SUNRPC: Fix a race with XPRT_CONNECTING

2018-12-26 Thread Sasha Levin
From: Trond Myklebust [ Upstream commit cf76785d30712d90185455e752337acdb53d2a5d ] Ensure that we clear XPRT_CONNECTING before releasing the XPRT_LOCK so that we don't have races between the (asynchronous) socket setup code and tasks in xprt_connect(). Signed-off-by: Trond Myklebust

[PATCH AUTOSEL 4.19 64/97] net: mvneta: fix operation for 64K PAGE_SIZE

2018-12-26 Thread Sasha Levin
From: Marcin Wojtas [ Upstream commit e735fd55b94bb48363737db3b1d57627c1a16b47 ] Recent changes in the mvneta driver reworked allocation and handling of the ingress buffers to use entire pages. Apart from that in SW BM scenario the HW must be informed via PRXDQS about the biggest possible

[PATCH AUTOSEL 4.19 70/97] qed: Fix an error code qed_ll2_start_xmit()

2018-12-26 Thread Sasha Levin
From: Dan Carpenter [ Upstream commit f07d4276892d97671e880190ff195a288b2d8d92 ] We accidentally deleted the code to set "rc = -ENOMEM;" and this patch adds it back. Fixes: d2201a21598a ("qed: No need for LL2 frags indication") Signed-off-by: Dan Carpenter Signed-off-by: David S. Miller

[PATCH AUTOSEL 4.19 68/97] net: mvpp2: 10G modes aren't supported on all ports

2018-12-26 Thread Sasha Levin
From: Antoine Tenart [ Upstream commit 006791772084383de779ef29f2e06f3a6e111e7d ] The mvpp2_phylink_validate() function sets all modes that are supported by a given PPv2 port. A recent change made all ports to advertise they support 10G modes in certain cases. This is not true, as only the port

[PATCH AUTOSEL 4.19 74/97] net: macb: fix dropped RX frames due to a race

2018-12-26 Thread Sasha Levin
From: Anssi Hannula [ Upstream commit 8159ecab0db9095902d4c73605fb8787f5c7d653 ] Bit RX_USED set to 0 in the address field allows the controller to write data to the receive buffer descriptor. The driver does not ensure the ctrl field is ready (cleared) when the controller sees the RX_USED=0

[PATCH AUTOSEL 4.19 78/97] xen/netfront: tolerate frags with no data

2018-12-26 Thread Sasha Levin
From: Juergen Gross [ Upstream commit d81c5054a5d1d4999c7cdead7636b6cd4af83d36 ] At least old Xen net backends seem to send frags with no real data sometimes. In case such a fragment happens to occur with the frag limit already reached the frontend will BUG currently even if this situation is

[PATCH AUTOSEL 4.19 76/97] lan743x: Expand phy search for LAN7431

2018-12-26 Thread Sasha Levin
From: Bryan Whitehead [ Upstream commit 0db7d253e9f0ff1a41c602429bea93df221be6ed ] The LAN7431 uses an external phy, and it can be found anywhere in the phy address space. This patch uses phy address 1 for LAN7430 only. And searches all addresses otherwise. Signed-off-by: Bryan Whitehead

[PATCH AUTOSEL 4.19 83/97] m68k: Fix memblock-related crashes

2018-12-26 Thread Sasha Levin
From: Geert Uytterhoeven [ Upstream commit bed1369f51901b17108a4bb4f7210aab183bea42 ] When running the kernel in Fast RAM on Atari: Ignoring memory chunk at 0x0:0xe0 before the first chunk ... Unable to handle kernel NULL pointer dereference at virtual address (ptrval)

[PATCH AUTOSEL 4.19 75/97] net: macb: add missing barriers when reading descriptors

2018-12-26 Thread Sasha Levin
From: Anssi Hannula [ Upstream commit 6e0af298066f3b6d99f58989bb0dca6f764b4c6d ] When reading buffer descriptors on RX or on TX completion, an RX_USED/TX_USED bit is checked first to ensure that the descriptors have been populated, i.e. the ownership has been transferred. However, there are no

[PATCH AUTOSEL 4.14 08/59] checkstack.pl: fix for aarch64

2018-12-26 Thread Sasha Levin
From: Qian Cai [ Upstream commit f1733a1d3cd32a9492f4cf866be37bb46e10163d ] There is actually a space after "sp," like this, 280813c8: a9bb7bfdstp x29, x30, [sp, #-80]! Right now, checkstack.pl isn't able to print anything on aarch64, because it won't be able to

[PATCH AUTOSEL 4.19 84/97] net/mlx5e: RX, Fix wrong early return in receive queue poll

2018-12-26 Thread Sasha Levin
From: Tariq Toukan [ Upstream commit bfc698254ba97b3e3e4ebbfae0ffa1f7e2fa0717 ] When the completion queue of the RQ is empty, do not immediately return. If left-over decompressed CQEs (from the previous cycle) were processed, need to go to the finalization part of the poll function. Bug exists

[PATCH AUTOSEL 4.19 79/97] vxge: ensure data0 is initialized in when fetching firmware version information

2018-12-26 Thread Sasha Levin
From: Colin Ian King [ Upstream commit f7db2beb4c2c6cc8111f5ab90fc7363ca91107b6 ] Currently variable data0 is not being initialized so a garbage value is being passed to vxge_hw_vpath_fw_api and this value is being written to the rts_access_steer_data0 register. There are other occurrances

[PATCH AUTOSEL 4.14 03/59] powerpc/mm: Fix linux page tables build with some configs

2018-12-26 Thread Sasha Levin
From: Michael Ellerman [ Upstream commit 462951cd32e1496dc64b00051dfb777efc8ae5d8 ] For some configs the build fails with: arch/powerpc/mm/dump_linuxpagetables.c: In function 'populate_markers': arch/powerpc/mm/dump_linuxpagetables.c:306:39: error: 'PKMAP_BASE' undeclared (first use in

[PATCH AUTOSEL 4.14 07/59] Input: restore EV_ABS ABS_RESERVED

2018-12-26 Thread Sasha Levin
From: Peter Hutterer [ Upstream commit c201e3808e0e4be9b98d192802085a9f491bd80c ] ABS_RESERVED was added in d9ca1c990a7 and accidentally removed as part of ffe0e7cf290f5c9 when the high-resolution scrolling code was removed. Signed-off-by: Peter Hutterer Reviewed-by: Martin Kepplinger

[PATCH AUTOSEL 4.19 80/97] nl80211: fix memory leak if validate_pae_over_nl80211() fails

2018-12-26 Thread Sasha Levin
From: Johannes Berg [ Upstream commit d350a0f431189517b1af0dbbb605c273231a8966 ] If validate_pae_over_nl80211() were to fail in nl80211_crypto_settings(), we might leak the 'connkeys' allocation. Fix this. Fixes: 64bf3d4bc2b0 ("nl80211: Add CONTROL_PORT_OVER_NL80211 attribute") Signed-off-by:

[PATCH AUTOSEL 4.19 81/97] mac80211: free skb fraglist before freeing the skb

2018-12-26 Thread Sasha Levin
From: Sara Sharon [ Upstream commit 34b1e0e9efe101822e83cc62d22443ed3867ae7a ] mac80211 uses the frag list to build AMSDU. When freeing the skb, it may not be really freed, since someone is still holding a reference to it. In that case, when TCP skb is being retransmitted, the pointer to the

[PATCH AUTOSEL 4.14 11/59] xfrm: Fix NULL pointer dereference in xfrm_input when skb_dst_force clears the dst_entry.

2018-12-26 Thread Sasha Levin
From: Steffen Klassert [ Upstream commit 0152eee6fc3b84298bb6a79961961734e8afa5b8 ] Since commit 222d7dbd258d ("net: prevent dst uses after free") skb_dst_force() might clear the dst_entry attached to the skb. The xfrm code doesn't expect this to happen, so we crash with a NULL pointer

[PATCH AUTOSEL 4.14 09/59] xfrm: Fix error return code in xfrm_output_one()

2018-12-26 Thread Sasha Levin
From: Wei Yongjun [ Upstream commit 533555e5cbb6aa2d77598917871ae5b579fe724b ] xfrm_output_one() does not return a error code when there is no dst_entry attached to the skb, it is still possible crash with a NULL pointer dereference in xfrm_output_resume(). Fix it by return error code

[PATCH AUTOSEL 4.14 10/59] xfrm: Fix bucket count reported to userspace

2018-12-26 Thread Sasha Levin
From: Benjamin Poirier [ Upstream commit ca92e173ab34a4f7fc4128bd372bd96f1af6f507 ] sadhcnt is reported by `ip -s xfrm state count` as "buckets count", not the hash mask. Fixes: 28d8909bc790 ("[XFRM]: Export SAD info.") Signed-off-by: Benjamin Poirier Signed-off-by: Steffen Klassert

[PATCH AUTOSEL 4.14 12/59] netfilter: seqadj: re-load tcp header pointer after possible head reallocation

2018-12-26 Thread Sasha Levin
From: Florian Westphal [ Upstream commit 530aad77010b81526586dfc09130ec875cd084e4 ] When adjusting sack block sequence numbers, skb_make_writable() gets called to make sure tcp options are all in the linear area, and buffer is not shared. This can cause tcp header pointer to get reallocated,

[PATCH AUTOSEL 4.14 05/59] ARM: imx: update the cpu power up timing setting on i.mx6sx

2018-12-26 Thread Sasha Levin
From: Anson Huang [ Upstream commit 1e434b703248580b7aaaf8a115d93e682f57d29f ] The sw2iso count should cover ARM LDO ramp-up time, the MAX ARM LDO ramp-up time may be up to more than 100us on some boards, this patch sets sw2iso to 0xf (~384us) which is the reset value, and it is much more safe

[PATCH AUTOSEL 4.14 14/59] Input: omap-keypad - fix idle configuration to not block SoC idle states

2018-12-26 Thread Sasha Levin
From: Tony Lindgren [ Upstream commit e2ca26ec4f01486661b55b03597c13e2b9c18b73 ] With PM enabled, I noticed that pressing a key on the droid4 keyboard will block deeper idle states for the SoC. Let's fix this by using IRQF_ONESHOT and stop constantly toggling the device OMAP4_KBD_IRQENABLE

[PATCH AUTOSEL 4.14 19/59] x86/dump_pagetables: Fix LDT remap address marker

2018-12-26 Thread Sasha Levin
From: "Kirill A. Shutemov" [ Upstream commit 254eb5505ca0ca749d3a491fc6668b6c16647a99 ] The LDT remap placement has been changed. It's now placed before the direct mapping in the kernel virtual address space for both paging modes. Change address markers order accordingly. Fixes: d52888aa2753

[PATCH AUTOSEL 4.14 15/59] Input: synaptics - enable RMI on ThinkPad T560

2018-12-26 Thread Sasha Levin
From: Yussuf Khalil [ Upstream commit ca5047286c9c93a01e1f471d00a6019536992954 ] Before commit 7fd6d98b89f3 ("i2c: i801: Allow ACPI AML access I/O ports not reserved for SMBus"), enabling RMI on the T560 would cause the touchpad to stop working after resuming from suspend. Now that this issue

[PATCH AUTOSEL 4.14 16/59] ibmvnic: Fix non-atomic memory allocation in IRQ context

2018-12-26 Thread Sasha Levin
From: Thomas Falcon [ Upstream commit 1d1bbc37f89b0559c9e913682f2489d89cfde6b8 ] ibmvnic_reset allocated new reset work item objects in a non-atomic context. This can be called from a tasklet, generating the output below. Allocate work items with the GFP_ATOMIC flag instead. BUG: sleeping

[PATCH AUTOSEL 4.14 13/59] scsi: bnx2fc: Fix NULL dereference in error handling

2018-12-26 Thread Sasha Levin
From: Dan Carpenter [ Upstream commit 9ae4f8420ed7be4b13c96600e3568c144d101a23 ] If "interface" is NULL then we can't release it and trying to will only lead to an Oops. Fixes: aea71a024914 ("[SCSI] bnx2fc: Introduce interface structure for each vlan interface") Signed-off-by: Dan Carpenter

[PATCH AUTOSEL 4.14 20/59] i40e: fix mac filter delete when setting mac address

2018-12-26 Thread Sasha Levin
From: Stefan Assmann [ Upstream commit 158daed16efb1170694e420ae06ba8ba954d82e5 ] A previous commit moved the ether_addr_copy() in i40e_set_mac() before the mac filter del/add to avoid a race. However it wasn't taken into account that this alters the mac address being handed to

[PATCH AUTOSEL 4.14 24/59] bnx2x: Clear fip MAC when fcoe offload support is disabled

2018-12-26 Thread Sasha Levin
From: Sudarsana Reddy Kalluru [ Upstream commit bbf666c1af916ed74795493c564df6fad462cc80 ] On some customer setups it was observed that shmem contains a non-zero fip MAC for 57711 which would lead to enabling of SW FCoE. Add a software workaround to clear the bad fip mac address if no FCoE

[PATCH AUTOSEL 4.14 23/59] netfilter: nat: can't use dst_hold on noref dst

2018-12-26 Thread Sasha Levin
From: Florian Westphal [ Upstream commit 542fbda0f08f1cbbc250f9e59f7537649651d0c8 ] The dst entry might already have a zero refcount, waiting on rcu list to be free'd. Using dst_hold() transitions its reference count to 1, and next dst release will try to free it again -- resulting in a double

[PATCH AUTOSEL 4.14 25/59] bnx2x: Remove configured vlans as part of unload sequence.

2018-12-26 Thread Sasha Levin
From: Sudarsana Reddy Kalluru [ Upstream commit 04f05230c5c13b1384f66f5186a68d7499e34622 ] Vlans are not getting removed when drivers are unloaded. The recent storm firmware versions had added safeguards against re-configuring an already configured vlan. As a result, PF inner reload flows

[PATCH AUTOSEL 4.14 22/59] netfilter: ipset: do not call ipset_nest_end after nla_nest_cancel

2018-12-26 Thread Sasha Levin
From: Pan Bian [ Upstream commit 708abf74dd87f8640871b814faa195fb5970b0e3 ] In the error handling block, nla_nest_cancel(skb, atd) is called to cancel the nest operation. But then, ipset_nest_end(skb, atd) is unexpected called to end the nest operation. This patch calls the ipset_nest_end only

[PATCH AUTOSEL 4.14 30/59] drivers: net: xgene: Remove unnecessary forward declarations

2018-12-26 Thread Sasha Levin
From: Nathan Chancellor [ Upstream commit 2ab4c3426c0cf711d7147e3f559638e4ab88960e ] Clang warns: drivers/net/ethernet/apm/xgene/xgene_enet_main.c:33:36: warning: tentative array definition assumed to have one element static const struct acpi_device_id xgene_enet_acpi_match[];

Hello..

2018-12-26 Thread R. Al-hashimy
Hello, My name is ms. Reem Al-Hashimi. The UAE minister of state for international cooperation. I got your contact from an email database from your country. I have a financial transaction i would like to discuss with you. Please reply to reem2...@daum.net, for more details if you are

[PATCH AUTOSEL 4.14 36/59] net: hns: Fixed bug that netdev was opened twice

2018-12-26 Thread Sasha Levin
From: Yonglong Liu [ Upstream commit 5778b13b64eca5549d242686f2f91a2c80c8fa40 ] After resetting dsaf to try to repair chip error such as ecc error, the net device will be open if net interface is up. But at this time if there is the users set the net device up with the command ifconfig, the net

[PATCH AUTOSEL 4.14 33/59] net: hns: Incorrect offset address used for some registers.

2018-12-26 Thread Sasha Levin
From: Yonglong Liu [ Upstream commit 4e1d4be681b2c26fd874adbf584bf034573ac45d ] According to the hip06 Datasheet: 1. The offset of INGRESS_SW_VLAN_TAG_DISC should be 0x1A00+4*all_chn_num 2. The offset of INGRESS_IN_DATA_STP_DISC should be 0x1A50+4*all_chn_num Signed-off-by: Yonglong Liu

[PATCH AUTOSEL 4.14 32/59] qmi_wwan: Added support for Telit LN940 series

2018-12-26 Thread Sasha Levin
From: Jörgen Storvist [ Upstream commit 1986af16e8ed355822600c24b3d2f0be46b573df ] Added support for the Telit LN940 series cellular modules QMI interface. QMI_QUIRK_SET_DTR quirk requied for Qualcomm MDM9x40 chipset. Signed-off-by: Jörgen Storvist Acked-by: Bjørn Mork Signed-off-by: David

[PATCH AUTOSEL 4.14 31/59] w90p910_ether: remove incorrect __init annotation

2018-12-26 Thread Sasha Levin
From: Arnd Bergmann [ Upstream commit 51367e423c6501a26e67d91a655d2bc892303462 ] The get_mac_address() function is normally inline, but when it is not, we get a warning that this configuration is broken: WARNING: vmlinux.o(.text+0x4aff00): Section mismatch in reference from the function

[PATCH AUTOSEL 4.14 39/59] net: hns: Avoid net reset caused by pause frames storm

2018-12-26 Thread Sasha Levin
From: Yonglong Liu [ Upstream commit a57275d35576fdd89d8c771eedf1e7cf97e0dfa6 ] There will be a large number of MAC pause frames on the net, which caused tx timeout of net device. And then the net device was reset to try to recover it. So that is not useful, and will cause some other problems.

[PATCH AUTOSEL 4.14 38/59] net: hns: Free irq when exit from abnormal branch

2018-12-26 Thread Sasha Levin
From: Yonglong Liu [ Upstream commit c82bd077e1ba3dd586569c733dc6d3dd4b0e43cd ] 1.In "hns_nic_init_irq", if request irq fail at index i, the function return directly without releasing irq resources that already requested. 2.In "hns_nic_net_up" after "hns_nic_init_irq", if exceptional

[PATCH AUTOSEL 4.14 44/59] x86/mtrr: Don't copy uninitialized gentry fields back to userspace

2018-12-26 Thread Sasha Levin
From: Colin Ian King [ Upstream commit 32043fa065b51e0b1433e48d118821c71b5cd65d ] Currently the copy_to_user of data in the gentry struct is copying uninitiaized data in field _pad from the stack to userspace. Fix this by explicitly memset'ing gentry to zero, this also will zero any compiler

[PATCH AUTOSEL 4.14 48/59] lan78xx: Resolve issue with changing MAC address

2018-12-26 Thread Sasha Levin
From: Jason Martinsen [ Upstream commit 1551569659c502003926a2067ee76176148a ] Current state for the lan78xx driver does not allow for changing the MAC address of the interface, without either removing the module (if you compiled it that way) or rebooting the machine. If you attempt to

[PATCH AUTOSEL 4.14 45/59] qed: Fix an error code qed_ll2_start_xmit()

2018-12-26 Thread Sasha Levin
From: Dan Carpenter [ Upstream commit f07d4276892d97671e880190ff195a288b2d8d92 ] We accidentally deleted the code to set "rc = -ENOMEM;" and this patch adds it back. Fixes: d2201a21598a ("qed: No need for LL2 frags indication") Signed-off-by: Dan Carpenter Signed-off-by: David S. Miller

[PATCH AUTOSEL 4.14 49/59] xen/netfront: tolerate frags with no data

2018-12-26 Thread Sasha Levin
From: Juergen Gross [ Upstream commit d81c5054a5d1d4999c7cdead7636b6cd4af83d36 ] At least old Xen net backends seem to send frags with no real data sometimes. In case such a fragment happens to occur with the frag limit already reached the frontend will BUG currently even if this situation is

[PATCH AUTOSEL 4.14 53/59] net/mlx5: Typo fix in del_sw_hw_rule

2018-12-26 Thread Sasha Levin
From: Yuval Avnery [ Upstream commit f0337889147c956721696553ffcc97212b0948fe ] Expression terminated with "," instead of ";", resulted in set_fte getting bad value for modify_enable_mask field. Fixes: bd5251dbf156 ("net/mlx5_core: Introduce flow steering destination of type counter")

[PATCH AUTOSEL 4.14 54/59] virtio: fix test build after uio.h change

2018-12-26 Thread Sasha Levin
From: "Michael S. Tsirkin" [ Upstream commit c5c08bed843c2b2c048c16d1296d7631d7c1620e ] Fixes: d38499530e5 ("fs: decouple READ and WRITE from the block layer ops") Signed-off-by: Michael S. Tsirkin Signed-off-by: Sasha Levin --- tools/virtio/linux/kernel.h | 4 1 file changed, 4

[PATCH AUTOSEL 4.14 52/59] kbuild: fix false positive warning/error about missing libelf

2018-12-26 Thread Sasha Levin
From: Masahiro Yamada [ Upstream commit ef7cfd00b2caf6edeb7f169682b64be2d0a798cf ] For the same reason as commit 25896d073d8a ("x86/build: Fix compiler support check for CONFIG_RETPOLINE"), you cannot put this $(error ...) into the parse stage of the top Makefile. Perhaps I'd propose a more

[PATCH AUTOSEL 4.14 55/59] gpio: mvebu: only fail on missing clk if pwm is actually to be used

2018-12-26 Thread Sasha Levin
From: Uwe Kleine-König [ Upstream commit c8da642d41a6811c21177c9994aa7dc35be67d46 ] The gpio IP on Armada 370 at offset 0x18180 has neither a clk nor pwm registers. So there is no need for a clk as the pwm isn't used anyhow. So only check for the clk in the presence of the pwm registers. This

[PATCH AUTOSEL 4.14 57/59] net: netxen: fix a missing check and an uninitialized use

2018-12-26 Thread Sasha Levin
From: Kangjie Lu [ Upstream commit d134e486e831defd26130770181f01dfc6195f7d ] When netxen_rom_fast_read() fails, "bios" is left uninitialized and may contain random value, thus should not be used. The fix ensures that if netxen_rom_fast_read() fails, we return "-EIO". Signed-off-by: Kangjie

[PATCH AUTOSEL 4.14 50/59] vxge: ensure data0 is initialized in when fetching firmware version information

2018-12-26 Thread Sasha Levin
From: Colin Ian King [ Upstream commit f7db2beb4c2c6cc8111f5ab90fc7363ca91107b6 ] Currently variable data0 is not being initialized so a garbage value is being passed to vxge_hw_vpath_fw_api and this value is being written to the rts_access_steer_data0 register. There are other occurrances

[PATCH AUTOSEL 4.14 56/59] Input: synaptics - enable SMBus for HP EliteBook 840 G4

2018-12-26 Thread Sasha Levin
From: Mantas Mikulėnas [ Upstream commit 7a71712293ba303aad928f580b89addb0be2892e ] dmesg reports that "Your touchpad (PNP: SYN3052 SYN0100 SYN0002 PNP0f13) says it can support a different bus." I've tested the offered psmouse.synaptics_intertouch=1 with 4.18.x and 4.19.x and it seems to work

[PATCH AUTOSEL 4.14 58/59] qmi_wwan: Fix qmap header retrieval in qmimux_rx_fixup

2018-12-26 Thread Sasha Levin
From: Daniele Palmas [ Upstream commit d667044f49513d55fcfefe4fa8f8d96091782901 ] This patch fixes qmap header retrieval when modem is configured for dl data aggregation. Signed-off-by: Daniele Palmas Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/usb/qmi_wwan.c

[PATCH AUTOSEL 4.14 59/59] serial/sunsu: fix refcount leak

2018-12-26 Thread Sasha Levin
From: Yangtao Li [ Upstream commit d430aff8cd0c57502d873909c184e3b5753f8b88 ] The function of_find_node_by_path() acquires a reference to the node returned by it and that reference needs to be dropped by its caller. su_get_type() doesn't do that. The match node are used as an identifier to

[PATCH AUTOSEL 4.14 42/59] net: hns: Fix ping failed when use net bridge and send multicast

2018-12-26 Thread Sasha Levin
From: Yonglong Liu [ Upstream commit 6adafc356e20189193b38ee6b9af7743078bf6b4 ] Create a net bridge, add eth and vnet to the bridge. The vnet is used by a virtual machine. When ping the virtual machine from the outside host and the virtual machine send multicast at the same time, the ping

[PATCH AUTOSEL 4.14 37/59] net: hns: Clean rx fbd when ae stopped.

2018-12-26 Thread Sasha Levin
From: Yonglong Liu [ Upstream commit 31f6b61d810654fb3ef43f4d8afda0f44b142fad ] If there are packets in hardware when changing the speed or duplex, it may cause hardware hang up. This patch adds the code to wait rx fbd clean up when ae stopped. Signed-off-by: Yonglong Liu Signed-off-by: Peng

[PATCH AUTOSEL 4.14 21/59] USB: hso: Fix OOB memory access in hso_probe/hso_get_config_data

2018-12-26 Thread Sasha Levin
From: Hui Peng [ Upstream commit 5146f95df782b0ac61abde36567e718692725c89 ] The function hso_probe reads if_num from the USB device (as an u8) and uses it without a length check to index an array, resulting in an OOB memory read in hso_probe or hso_get_config_data. Add a length check for both

[PATCH AUTOSEL 4.14 40/59] net: hns: Fix ntuple-filters status error.

2018-12-26 Thread Sasha Levin
From: Yonglong Liu [ Upstream commit 7e74a19ca522aec7c2be201a7ae1d1d57ded409b ] The ntuple-filters features is forced on by chip. But it shows "ntuple-filters: off [fixed]" when use ethtool. This patch make it correct with "ntuple-filters: on [fixed]". Signed-off-by: Yonglong Liu

[PATCH AUTOSEL 4.14 51/59] mac80211: free skb fraglist before freeing the skb

2018-12-26 Thread Sasha Levin
From: Sara Sharon [ Upstream commit 34b1e0e9efe101822e83cc62d22443ed3867ae7a ] mac80211 uses the frag list to build AMSDU. When freeing the skb, it may not be really freed, since someone is still holding a reference to it. In that case, when TCP skb is being retransmitted, the pointer to the

[PATCH AUTOSEL 4.14 47/59] net: macb: fix dropped RX frames due to a race

2018-12-26 Thread Sasha Levin
From: Anssi Hannula [ Upstream commit 8159ecab0db9095902d4c73605fb8787f5c7d653 ] Bit RX_USED set to 0 in the address field allows the controller to write data to the receive buffer descriptor. The driver does not ensure the ctrl field is ready (cleared) when the controller sees the RX_USED=0

[PATCH AUTOSEL 4.14 43/59] SUNRPC: Fix a race with XPRT_CONNECTING

2018-12-26 Thread Sasha Levin
From: Trond Myklebust [ Upstream commit cf76785d30712d90185455e752337acdb53d2a5d ] Ensure that we clear XPRT_CONNECTING before releasing the XPRT_LOCK so that we don't have races between the (asynchronous) socket setup code and tasks in xprt_connect(). Signed-off-by: Trond Myklebust

[PATCH AUTOSEL 4.14 41/59] net: hns: Add mac pcs config when enable|disable mac

2018-12-26 Thread Sasha Levin
From: Yonglong Liu [ Upstream commit 726ae5c9e5f0c18eca8ea5296b526242c3e89822 ] In some case, when mac enable|disable and adjust link, may cause hard to link(or abnormal) between mac and phy. This patch adds the code for rx PCS to avoid this bug. Disable the rx PCS when driver disable the

[PATCH AUTOSEL 4.14 46/59] net: macb: fix random memory corruption on RX with 64-bit DMA

2018-12-26 Thread Sasha Levin
From: Anssi Hannula [ Upstream commit e100a897bf9b19089e57f236f2398c9e0538900e ] 64-bit DMA addresses are split in upper and lower halves that are written in separate fields on GEM. For RX, bit 0 of the address is used as the ownership bit (RX_USED). When the RX_USED bit is unset the controller

[PATCH AUTOSEL 4.14 29/59] x86, hyperv: remove PCI dependency

2018-12-26 Thread Sasha Levin
From: Sinan Kaya [ Upstream commit c629421a990033ba539eb8585e73a2e6fa9ea631 ] Need to be able to boot without PCI devices present. Signed-off-by: Sinan Kaya Signed-off-by: Sasha Levin --- drivers/hv/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH AUTOSEL 4.14 34/59] net: hns: All ports can not work when insmod hns ko after rmmod.

2018-12-26 Thread Sasha Levin
From: Yonglong Liu [ Upstream commit 308c6cafde0147616da45e3a928adae55c428deb ] There are two test cases: 1. Remove the 4 modules:hns_enet_drv/hns_dsaf/hnae/hns_mdio, and install them again, must use "ifconfig down/ifconfig up" command pair to bring port to work. This patch calls

[PATCH AUTOSEL 4.14 26/59] bnx2x: Send update-svid ramrod with retry/poll flags enabled

2018-12-26 Thread Sasha Levin
From: Sudarsana Reddy Kalluru [ Upstream commit 9061193c4ee065d3240fde06767c2e06ec61decc ] Driver sends update-SVID ramrod in the MFW notification path. If there is a pending ramrod, driver doesn't retry the command and storm firmware will never be updated with the SVID value. The patch adds

[PATCH AUTOSEL 4.14 35/59] net: hns: Some registers use wrong address according to the datasheet.

2018-12-26 Thread Sasha Levin
From: Yonglong Liu [ Upstream commit 4ad26f117b6ea0f5d5f1592127bafb5ec65904d3 ] According to the hip06 datasheet: 1.Six registers use wrong address: RCB_COM_SF_CFG_INTMASK_RING RCB_COM_SF_CFG_RING_STS RCB_COM_SF_CFG_RING RCB_COM_SF_CFG_INTMASK_BD RCB_COM_SF_CFG_BD_RINT_STS

[PATCH AUTOSEL 4.14 27/59] scsi: target: iscsi: cxgbit: fix csk leak

2018-12-26 Thread Sasha Levin
From: Varun Prakash [ Upstream commit 801df68d617e3cb831f531c99fa6003620e6b343 ] csk leak can happen if a new TCP connection gets established after cxgbit_accept_np() returns, to fix this leak free remaining csk in cxgbit_free_np(). Signed-off-by: Varun Prakash Signed-off-by: Martin K.

[PATCH AUTOSEL 4.14 28/59] scsi: target: iscsi: cxgbit: add missing spin_lock_init()

2018-12-26 Thread Sasha Levin
From: Varun Prakash [ Upstream commit 9e6371d3c6913ff1707fb2c0274c9925f7aaef80 ] Add missing spin_lock_init() for cdev->np_lock. Signed-off-by: Varun Prakash Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/target/iscsi/cxgbit/cxgbit_main.c | 1 + 1 file changed, 1

[PATCH AUTOSEL 4.14 17/59] ieee802154: ca8210: fix possible u8 overflow in ca8210_rx_done

2018-12-26 Thread Sasha Levin
From: YueHaibing [ Upstream commit 8e41cae64b08fe2e86a9ffb88b295c6b4b3a3322 ] gcc warning this: drivers/net/ieee802154/ca8210.c:730:10: warning: comparison is always false due to limited range of data type [-Wtype-limits] 'len' is u8 type, we get it from buf[1] adding 2, which can overflow.

[PATCH AUTOSEL 4.14 18/59] x86/mm: Fix guard hole handling

2018-12-26 Thread Sasha Levin
From: "Kirill A. Shutemov" [ Upstream commit 16877a5570e0c5f4270d5b17f9bab427bcae9514 ] There is a guard hole at the beginning of the kernel address space, also used by hypervisors. It occupies 16 PGD entries. This reserved range is not defined explicitely, it is calculated relative to other

[PATCH AUTOSEL 4.14 02/59] powerpc: Fix COFF zImage booting on old powermacs

2018-12-26 Thread Sasha Levin
From: Paul Mackerras [ Upstream commit 5564597d51c8ff5b88d95c76255e18b13b760879 ] Commit 6975a783d7b4 ("powerpc/boot: Allow building the zImage wrapper as a relocatable ET_DYN", 2011-04-12) changed the procedure descriptor at the start of crt0.S to have a hard-coded start address of 0x50

[PATCH AUTOSEL 4.14 04/59] HID: ite: Add USB id match for another ITE based keyboard rfkill key quirk

2018-12-26 Thread Sasha Levin
From: Hans de Goede [ Upstream commit 4050207485e47e00353e87f2fe2166083e282688 ] The 258a:6a88 keyboard-dock shipped with the Prowise PT301 tablet is likely another ITE based design. The controller die is directly bonded to the PCB with a blob of black glue on top so there are no markings and

[PATCH AUTOSEL 4.14 06/59] ARM: dts: imx7d-nitrogen7: Fix the description of the Wifi clock

2018-12-26 Thread Sasha Levin
From: Fabio Estevam [ Upstream commit f15096f12a4e9340168df5fdd9201aa8ed60d59e ] According to bindings/regulator/fixed-regulator.txt the 'clocks' and 'clock-names' properties are not valid ones. In order to turn on the Wifi clock the correct location for describing the CLKO2 clock is via a

[PATCH AUTOSEL 4.19 91/97] gpio: mvebu: only fail on missing clk if pwm is actually to be used

2018-12-26 Thread Sasha Levin
From: Uwe Kleine-König [ Upstream commit c8da642d41a6811c21177c9994aa7dc35be67d46 ] The gpio IP on Armada 370 at offset 0x18180 has neither a clk nor pwm registers. So there is no need for a clk as the pwm isn't used anyhow. So only check for the clk in the presence of the pwm registers. This

[PATCH AUTOSEL 4.19 89/97] net: mvpp2: fix the phylink mode validation

2018-12-26 Thread Sasha Levin
From: Antoine Tenart [ Upstream commit 1b451fb2051b464b9758c09a3492104403252e2b ] The mvpp2_phylink_validate() sets all modes that are supported by a given PPv2 port. An mistake made the 1baseT_Full mode being advertised in some cases when a port wasn't configured to perform at 10G. This

[PATCH AUTOSEL 4.19 85/97] net/mlx5: Typo fix in del_sw_hw_rule

2018-12-26 Thread Sasha Levin
From: Yuval Avnery [ Upstream commit f0337889147c956721696553ffcc97212b0948fe ] Expression terminated with "," instead of ";", resulted in set_fte getting bad value for modify_enable_mask field. Fixes: bd5251dbf156 ("net/mlx5_core: Introduce flow steering destination of type counter")

[PATCH AUTOSEL 4.14 01/59] pinctrl: meson: fix pull enable register calculation

2018-12-26 Thread Sasha Levin
From: Jerome Brunet [ Upstream commit 614b1868a125a0ba24be08f3a7fa832ddcde6bca ] We just changed the code so we apply bias disable on the correct register but forgot to align the register calculation. The result is that we apply the change on the correct register, but possibly at the incorrect

[PATCH AUTOSEL 4.19 87/97] virtio: fix test build after uio.h change

2018-12-26 Thread Sasha Levin
From: "Michael S. Tsirkin" [ Upstream commit c5c08bed843c2b2c048c16d1296d7631d7c1620e ] Fixes: d38499530e5 ("fs: decouple READ and WRITE from the block layer ops") Signed-off-by: Michael S. Tsirkin Signed-off-by: Sasha Levin --- tools/virtio/linux/kernel.h | 4 1 file changed, 4

[PATCH AUTOSEL 4.19 82/97] kbuild: fix false positive warning/error about missing libelf

2018-12-26 Thread Sasha Levin
From: Masahiro Yamada [ Upstream commit ef7cfd00b2caf6edeb7f169682b64be2d0a798cf ] For the same reason as commit 25896d073d8a ("x86/build: Fix compiler support check for CONFIG_RETPOLINE"), you cannot put this $(error ...) into the parse stage of the top Makefile. Perhaps I'd propose a more

[PATCH AUTOSEL 4.19 92/97] Input: synaptics - enable SMBus for HP EliteBook 840 G4

2018-12-26 Thread Sasha Levin
From: Mantas Mikulėnas [ Upstream commit 7a71712293ba303aad928f580b89addb0be2892e ] dmesg reports that "Your touchpad (PNP: SYN3052 SYN0100 SYN0002 PNP0f13) says it can support a different bus." I've tested the offered psmouse.synaptics_intertouch=1 with 4.18.x and 4.19.x and it seems to work

[PATCH AUTOSEL 4.19 88/97] lan743x: Remove MAC Reset from initialization

2018-12-26 Thread Sasha Levin
From: Bryan Whitehead [ Upstream commit e0e587878f538c9e3400219b6c516b8199dc2042 ] The MAC Reset was noticed to erase important EEPROM settings. It is also unnecessary since a chip wide reset was done earlier in initialization, and that reset preserves EEPROM settings. There for this patch

[PATCH AUTOSEL 4.19 93/97] net: netxen: fix a missing check and an uninitialized use

2018-12-26 Thread Sasha Levin
From: Kangjie Lu [ Upstream commit d134e486e831defd26130770181f01dfc6195f7d ] When netxen_rom_fast_read() fails, "bios" is left uninitialized and may contain random value, thus should not be used. The fix ensures that if netxen_rom_fast_read() fails, we return "-EIO". Signed-off-by: Kangjie

[PATCH AUTOSEL 4.19 95/97] qmi_wwan: Fix qmap header retrieval in qmimux_rx_fixup

2018-12-26 Thread Sasha Levin
From: Daniele Palmas [ Upstream commit d667044f49513d55fcfefe4fa8f8d96091782901 ] This patch fixes qmap header retrieval when modem is configured for dl data aggregation. Signed-off-by: Daniele Palmas Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/usb/qmi_wwan.c

[PATCH AUTOSEL 4.19 97/97] auxdisplay: charlcd: fix x/y command parsing

2018-12-26 Thread Sasha Levin
From: Mans Rullgard [ Upstream commit 9bc30ab82108e6a34dc63bf956b49edf71b1681a ] The x/y command parsing has been broken since commit 129957069e6a ("staging: panel: Fixed checkpatch warning about simple_strtoul()"). Commit b34050fadb86 ("auxdisplay: charlcd: Fix and clean up handling of x/y

[PATCH AUTOSEL 4.19 90/97] mscc: Configured MAC entries should be locked.

2018-12-26 Thread Sasha Levin
From: "Allan W. Nielsen" [ Upstream commit 8fd1a4affbdafda592f80cd01bf7a382a5ff2fe8 ] The MAC table in Ocelot supports auto aging (normal) and static entries. MAC entries that is manually configured should be static and not subject to aging. Fixes: a556c76adc05 ("net: mscc: Add initial Ocelot

[PATCH AUTOSEL 4.19 96/97] serial/sunsu: fix refcount leak

2018-12-26 Thread Sasha Levin
From: Yangtao Li [ Upstream commit d430aff8cd0c57502d873909c184e3b5753f8b88 ] The function of_find_node_by_path() acquires a reference to the node returned by it and that reference needs to be dropped by its caller. su_get_type() doesn't do that. The match node are used as an identifier to

<    1   2   3   4   5   6   >