[PATCH v2 0/2] dmaengine: ti: k3-psil: Add support for j7200

2020-08-03 Thread Peter Ujfalusi
Hi, Changes since v1: - Drop unrelated empty line change in patch 1 (k3-psil.c) j7200 uses the same DMA hardware but have different set of peripherals, needing different PSI-L thread map compared to j721e. To simplify the runtime PSI-L map selection we will switch to use soc_device_match. See

[PATCH 5.7 024/120] drm/amd/display: Clear dm_state for fast updates

2020-08-03 Thread Greg Kroah-Hartman
From: Mazin Rezk commit fde9f39ac7f1ffd799a96ffa1e06b2051f0898f1 upstream. This patch fixes a race condition that causes a use-after-free during amdgpu_dm_atomic_commit_tail. This can occur when 2 non-blocking commits are requested and the second one finishes before the first. Essentially, this

[PATCH 5.7 025/120] drm/amdgpu: Prevent kernel-infoleak in amdgpu_info_ioctl()

2020-08-03 Thread Greg Kroah-Hartman
From: Peilin Ye commit 543e8669ed9bfb30545fd52bc0e047ca4df7fb31 upstream. Compiler leaves a 4-byte hole near the end of `dev_info`, causing amdgpu_info_ioctl() to copy uninitialized kernel stack memory to userspace when `size` is greater than 356. In 2015 we tried to fix this issue by doing `=

[PATCH v2 2/2] dmaengine: ti: k3-psil: add map for j7200

2020-08-03 Thread Peter Ujfalusi
Add new PSI-L map file for the new TI j7200 SoC. The DMA hardware in j7200 is the same as in j721e with different set of peripherals resulting different PSI-L thread map compered to j721e. See J7200 Technical Reference Manual (SPRUIU1, June 2020) for further details:

[PATCH v2 1/2] dmaengine: ti: k3-psil: Use soc_device_match to get the psil map

2020-08-03 Thread Peter Ujfalusi
Instead of separate of_machine_is_compatible() it is better to use soc_device_match() and soc_device_attribute struct to get the PSI-L map for the booted device. By using soc_device_match() it is easier to add support for new devices. Signed-off-by: Peter Ujfalusi --- drivers/dma/ti/k3-psil.c

[PATCH 5.7 081/120] RDMA/core: Free DIM memory in error unwind

2020-08-03 Thread Greg Kroah-Hartman
From: Leon Romanovsky [ Upstream commit fb448ce87a4a9482b084e67faf804aec79ed9b43 ] The memory allocated for the DIM wasn't freed in in error unwind path, fix it by calling to rdma_dim_destroy(). Fixes: da6629793aa6 ("RDMA/core: Provide RDMA DIM support for ULPs") Link:

[PATCH 5.7 028/120] drm: hold gem reference until object is no longer accessed

2020-08-03 Thread Greg Kroah-Hartman
From: Steve Cohen commit 8490d6a7e0a0a6fab5c2d82d57a3937306660864 upstream. A use-after-free in drm_gem_open_ioctl can happen if the GEM object handle is closed between the idr lookup and retrieving the size from said object since a local reference is not being held at that point. Hold the

[PATCH 5.7 003/120] ALSA: usb-audio: Add implicit feedback quirk for SSL2

2020-08-03 Thread Greg Kroah-Hartman
From: Laurence Tratt commit 3da87ec67a491b9633a82045896c076b794bf938 upstream. As expected, this requires the same quirk as the SSL2+ in order for the clock to sync. This was suggested by, and tested on an SSL2, by Dmitry. Suggested-by: Dmitry Signed-off-by: Laurence Tratt Cc: Link:

[PATCH 5.7 041/120] ARM: dts: armada-38x: fix NETA lockup when repeatedly switching speeds

2020-08-03 Thread Greg Kroah-Hartman
From: Russell King [ Upstream commit 09781ba0395c46b1c844f47e405e3ce7856f5989 ] To support the change in "phy: armada-38x: fix NETA lockup when repeatedly switching speeds" we need to update the DT with the additional register. Fixes: 14dc100b4411 ("phy: armada38x: add common phy support")

[PATCH 5.7 046/120] selftests/net: tcp_mmap: fix clang warning for target arch PowerPC

2020-08-03 Thread Greg Kroah-Hartman
From: Tanner Love [ Upstream commit 94b6c13be57cdedb7cf4d33dbcd066fad133f22b ] When size_t maps to unsigned int (e.g. on 32-bit powerpc), then the comparison with 1<<35 is always true. Clang 9 threw: warning: result of comparison of constant 34359738368 with \ expression of type 'size_t' (aka

Re: [PATCH 1/2] dmaengine: ti: k3-psil: Use soc_device_match to get the psil map

2020-08-03 Thread Peter Ujfalusi
On 03/08/2020 14.14, Vinod Koul wrote: > On 03-08-20, 13:11, Peter Ujfalusi wrote: >> Instead of separate of_machine_is_compatible() it is better to use >> soc_device_match() and soc_device_attribute struct to get the PSI-L map >> for the booted device. >> >> By using soc_device_match() it is

[PATCH 5.7 005/120] ALSA: hda/realtek: typo_fix: enable headset mic of ASUS ROG Zephyrus G14(GA401) series with ALC289

2020-08-03 Thread Greg Kroah-Hartman
From: Armas Spann commit 293a92c1d9913248b9987b68f3a5d6d2f0aae62b upstream. This patch fixes a small typo I accidently submitted with the initial patch. The board should be named GA401 not G401. Fixes: ff53664daff2 ("ALSA: hda/realtek: enable headset mic of ASUS ROG Zephyrus G14(G401) series

[PATCH 5.7 038/120] pinctrl: qcom: Handle broken/missing PDC dual edge IRQs on sc7180

2020-08-03 Thread Greg Kroah-Hartman
From: Douglas Anderson [ Upstream commit c3c0c2e18d943ec4a84162ac679970b592555a4a ] Depending on how you look at it, you can either say that: a) There is a PDC hardware issue (with the specific IP rev that exists on sc7180) that causes the PDC not to work properly when configured to

[PATCH 5.7 027/120] drm/mcde: Fix stability issue

2020-08-03 Thread Greg Kroah-Hartman
From: Linus Walleij commit aa7bf898d4bf921f61fab078040e8baec3f28126 upstream. Whenever a display update was sent, apart from updating the memory base address, we called mcde_display_send_one_frame() which also sent a command to the display requesting the TE IRQ and enabling the FIFO. When

[PATCH 5.7 044/120] selftests/net: psock_fanout: fix clang issues for target arch PowerPC

2020-08-03 Thread Greg Kroah-Hartman
From: Tanner Love [ Upstream commit 64f9ede2274980076423583683d44480909b7a40 ] Clang 9 threw: warning: format specifies type 'unsigned short' but the argument has \ type 'int' [-Wformat] typeflags, PORT_BASE, PORT_BASE + port_off); Tested: make -C tools/testing/selftests

[PATCH 5.7 056/120] net/mlx5e: Fix error path of device attach

2020-08-03 Thread Greg Kroah-Hartman
From: Aya Levin [ Upstream commit 5cd39b6e9a420329a9a408894be7ba8aa7dd755e ] On failure to attach the netdev, fix the rollback by re-setting the device's state back to MLX5E_STATE_DESTROYING. Failing to attach doesn't stop statistics polling via .ndo_get_stats64. In this case, although the

[PATCH 5.7 055/120] net/mlx5: E-switch, Destroy TSAR after reload interface

2020-08-03 Thread Greg Kroah-Hartman
From: Parav Pandit [ Upstream commit 0c2600c619578f759cf3d5192b01bd14e281f24c ] When eswitch offloads is enabled, TSAR is created before reloading the interfaces. However when eswitch offloads mode is disabled, TSAR is disabled before reloading the interfaces. To keep the eswitch

[PATCH 5.7 049/120] net: hns3: fix desc filling bug when skb is expanded or lineared

2020-08-03 Thread Greg Kroah-Hartman
From: Yunsheng Lin [ Upstream commit cfdaeba5ddc98b303639a3265c2031ac5db249d6 ] The linear and frag data part may be changed when the skb is expanded or lineared in skb_cow_head() or skb_checksum_help(), which is called by hns3_fill_skb_desc(), so the linear len return by skb_headlen() before

[PATCH 5.7 053/120] net: hns3: fix for VLAN config when reset failed

2020-08-03 Thread Greg Kroah-Hartman
From: Guojia Liao [ Upstream commit b7b5d25bdd7bdea7d72a41e0a97b1b8f3dea2ee7 ] When device is resetting or reset failed, firmware is unable to handle mailbox. VLAN should not be configured in this case. Fixes: fe4144d47eef ("net: hns3: sync VLAN filter entries when kill VLAN ID failed")

[PATCH 5.7 054/120] net/mlx5: E-switch, Destroy TSAR when fail to enable the mode

2020-08-03 Thread Greg Kroah-Hartman
From: Parav Pandit [ Upstream commit 2b8e9c7c3fd0e31091edb1c66cc06ffe4988ca21 ] When either esw_legacy_enable() or esw_offloads_enable() fails, code missed to destroy the created TSAR. Hence, add the missing call to destroy the TSAR. Fixes: 610090ebce92 ("net/mlx5: E-switch, Initialize TSAR

Re: [PATCH v2 2/2] perf pmu: Improve CPU core PMU HW event list ordering

2020-08-03 Thread Arnaldo Carvalho de Melo
Em Mon, Aug 03, 2020 at 09:00:06AM +0100, John Garry escreveu: > On 17/06/2020 13:15, Arnaldo Carvalho de Melo wrote: > > Em Wed, Jun 17, 2020 at 08:31:02PM +0900, Namhyung Kim escreveu: > > > On Wed, Jun 17, 2020 at 6:06 PM John Garry wrote: > > > > For perf list, the CPU core PMU HW event

[PATCH 5.7 050/120] net: hns3: fix a TX timeout issue

2020-08-03 Thread Greg Kroah-Hartman
From: Yonglong Liu [ Upstream commit a7e90ee5965fafc53d36e8b3205f08c88d7bc11f ] When the queue depth and queue parameters are modified, there is a low probability that TX timeout occurs. The two operations cause the link to be down or up when the watchdog is still working. All queues are

[PATCH 5.7 031/120] random32: remove net_rand_state from the latent entropy gcc plugin

2020-08-03 Thread Greg Kroah-Hartman
From: Linus Torvalds commit 83bdc7275e6206f560d247be856bceba3e1ed8f2 upstream. It turns out that the plugin right now ends up being really unhappy about the change from 'static' to 'extern' storage that happened in commit f227e3ec3b5c ("random32: update the net random state on interrupt and

[PATCH 5.7 035/120] net/x25: Fix null-ptr-deref in x25_disconnect

2020-08-03 Thread Greg Kroah-Hartman
From: YueHaibing commit 8999dc89497ab1c80d0718828e838c7cd5f6bffe upstream. We should check null before do x25_neigh_put in x25_disconnect, otherwise may cause null-ptr-deref like this: #include #include int main() { int sck_x25; sck_x25 = socket(AF_X25, SOCK_SEQPACKET, 0);

[PATCH RESEND] selftests: vdso: hash entry size on alpha,s390x is 8 bytes

2020-08-03 Thread Jan Stancek
parse_vdso.c is crashing on 5.8-rc5 s390x, because it wrongly reads nbucket as 0: Program received signal SIGFPE, Arithmetic exception. 0x01000f3e in vdso_sym (version=0x1001280 "LINUX_2.6", name=0x100128a "__vdso_getcpu") at parse_vdso.c:207 207 ELF(Word) chain =

Re: [PATCH] crypto: ccp - zero the cmd data after use it

2020-08-03 Thread Herbert Xu
On Mon, Aug 03, 2020 at 03:58:58PM +0800, Liwei Song wrote: > exist the following assignment in ccp(ignore the force > convert of the struct) by list_del in ccp_dequeue_cmd(): > req->__ctx->cmd->entry->next = LIST_POISON1; > > after use the req, kzfree(req) can not zero the entry > entry->next =

[PATCH v14 1/2] ACPI / APEI: Add a notifier chain for unknown (vendor) CPER records

2020-08-03 Thread Shiju Jose
CPER records describing a firmware-first error are identified by GUID. The ghes driver currently logs, but ignores any unknown CPER records. This prevents describing errors that can't be represented by a standard entry, that would otherwise allow a driver to recover from an error. The UEFI spec

Re: [PATCH v7] scsi: ufs: Quiesce all scsi devices before shutdown

2020-08-03 Thread Can Guo
Hi Stanley, Sorry for the noises, please ignore my previous 2 mails and let's focus on this one. On 2020-08-03 18:04, Stanley Chu wrote: Currently I/O request could be still submitted to UFS device while UFS is working on shutdown flow. This may lead to racing as below scenarios and finally

Re: [PATCH -next] media: staging: tegra-vde: Mark tegra_vde_runtime_suspend as __maybe_unused

2020-08-03 Thread Dmitry Osipenko
03.08.2020 14:59, YueHaibing пишет: > If CONFIG_PM is not set, gcc warns: > > drivers/staging/media/tegra-vde/vde.c:916:12: > warning: 'tegra_vde_runtime_suspend' defined but not used [-Wunused-function] > > Make it __maybe_unused to fix this. > > Signed-off-by: YueHaibing > --- >

Re: [PATCH 2/3] ARM: at91: pm: add per soc validation of pm modes

2020-08-03 Thread Alexandre Belloni
On 03/08/2020 10:54:51+, claudiu.bez...@microchip.com wrote: > >> diff --git a/arch/arm/mach-at91/at91rm9200.c > >> b/arch/arm/mach-at91/at91rm9200.c > >> index 4f8186211619..7318d8e16797 100644 > >> --- a/arch/arm/mach-at91/at91rm9200.c > >> +++ b/arch/arm/mach-at91/at91rm9200.c > >> @@

[PATCH v14 2/2] PCI: hip: Add handling of HiSilicon HIP PCIe controller errors

2020-08-03 Thread Shiju Jose
From: Yicong Yang The HiSilicon HIP PCIe controller is capable of handling errors on root port and performing port reset separately at each root port. Add error handling driver for HIP PCIe controller to log and report recoverable errors. Perform root port reset and restore link status after

[PATCH v14 0/2] ACPI / APEI: Add support to notify the vendor specific HW errors

2020-08-03 Thread Shiju Jose
CPER records describing a firmware-first error are identified by GUID. The ghes driver currently logs, but ignores any unknown CPER records. This prevents describing errors that can't be represented by a standard entry, that would otherwise allow a driver to recover from an error. The UEFI spec

[PATCH 5.7 026/120] drm/dbi: Fix SPI Type 1 (9-bit) transfer

2020-08-03 Thread Greg Kroah-Hartman
From: Paul Cercueil commit 900ab59e2621053b009f707f80b2c19ce0af5dee upstream. The function mipi_dbi_spi1_transfer() will transfer its payload as 9-bit data, the 9th (MSB) bit being the data/command bit. In order to do that, it unpacks the 8-bit values into 16-bit values, then sets the 9th bit

[PATCH 5.7 060/120] net/mlx5e: Modify uplink state on interface up/down

2020-08-03 Thread Greg Kroah-Hartman
From: Ron Diskin [ Upstream commit 7d0314b11cdd92bca8b89684c06953bf114605fc ] 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

[PATCH 5.7 069/120] bareudp: forbid mixing IP and MPLS in multiproto mode

2020-08-03 Thread Greg Kroah-Hartman
From: Guillaume Nault [ Upstream commit 302d201b5cdf6f4781ee6cd9862f377f975d6c43 ] 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

[PATCH 5.7 073/120] mlxsw: spectrum_router: Fix use-after-free in router init / de-init

2020-08-03 Thread Greg Kroah-Hartman
From: Ido Schimmel [ Upstream commit 5515c3448d55bdcb5ff8a1778aa84f34e4205596 ] Several notifiers are registered as part of router initialization. Since some of these notifiers are registered before the end of the initialization, it is possible for them to access uninitialized or freed memory

[PATCH 5.7 034/120] net/x25: Fix x25_neigh refcnt leak when x25 disconnect

2020-08-03 Thread Greg Kroah-Hartman
From: Xiyu Yang commit 4becb7ee5b3d2829ed7b9261a245a77d5b7de902 upstream. x25_connect() invokes x25_get_neigh(), which returns a reference of the specified x25_neigh object to "x25->neighbour" with increased refcnt. When x25 connect success and returns, the reference still be hold by

[PATCH 5.7 074/120] selftests: ethtool: Fix test when only two speeds are supported

2020-08-03 Thread Greg Kroah-Hartman
From: Amit Cohen [ Upstream commit 10fef9ca6a879e7bee090b8e51c9812d438d3fb1 ] The test case check_highest_speed_is_chosen() configures $h1 to advertise a subset of its supported speeds and checks that $h2 chooses the highest speed from the subset. To find the common advertised speeds between

[PATCH 5.7 076/120] bpf: Fix map leak in HASH_OF_MAPS map

2020-08-03 Thread Greg Kroah-Hartman
From: Andrii Nakryiko [ Upstream commit 1d4e1eab456e1ee92a94987499b211db05f900ea ] 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

[PATCH 5.7 072/120] mlxsw: core: Free EMAD transactions using kfree_rcu()

2020-08-03 Thread Greg Kroah-Hartman
From: Ido Schimmel [ Upstream commit 3c8ce24b037648a5a15b85888b259a74b05ff97d ] The lifetime of EMAD transactions (i.e., 'struct mlxsw_reg_trans') is managed using RCU. They are freed using kfree_rcu() once the transaction ends. However, in case the transaction failed it is freed immediately

[PATCH 5.7 077/120] espintcp: handle short messages instead of breaking the encap socket

2020-08-03 Thread Greg Kroah-Hartman
From: Sabrina Dubroca [ Upstream commit fadd1a63a7b4df295a01fa50b2f4e447542bee59 ] Currently, short messages (less than 4 bytes after the length header) will break the stream of messages. This is unnecessary, since we can still parse messages even if they're too short to contain any usable

[PATCH 5.7 068/120] octeontx2-pf: Unregister netdev at driver remove

2020-08-03 Thread Greg Kroah-Hartman
From: Subbaraya Sundeep [ Upstream commit ed543f5c6a988d8a863d2436794230cef2c82389 ] Added unregister_netdev in the driver remove function. Generally unregister_netdev is called after disabling all the device interrupts but here it is called before disabling device mailbox interrupts. The

[PATCH 5.7 085/120] selftests/bpf: fix netdevsim trap_flow_action_cookie read

2020-08-03 Thread Greg Kroah-Hartman
From: Hangbin Liu [ Upstream commit 4bbca662df2523ff7ad3224463f1f28e6a118044 ] When read netdevsim trap_flow_action_cookie, we need to init it first, or we will get "Invalid argument" error. Fixes: d3cbb907ae57 ("netdevsim: add ACL trap reporting cookie as a metadata") Signed-off-by: Hangbin

[PATCH 5.7 107/120] selftest: txtimestamp: fix net ns entry logic

2020-08-03 Thread Greg Kroah-Hartman
From: Paolo Pisati [ Upstream commit b346c0c85892cb8c53e8715734f71ba5bbec3387 ] According to 'man 8 ip-netns', if `ip netns identify` returns an empty string, there's no net namespace associated with current PID: fix the net ns entrance logic. Signed-off-by: Paolo Pisati Acked-by: Willem de

Re: [PATCH net-next RFC 00/13] Add devlink reload level option

2020-08-03 Thread Vasundhara Volam
On Mon, Aug 3, 2020 at 5:47 PM Moshe Shemesh wrote: > > > On 8/3/2020 1:24 PM, Vasundhara Volam wrote: > > On Tue, Jul 28, 2020 at 10:13 PM Jacob Keller > > wrote: > >> > >> > >> On 7/27/2020 10:25 PM, Vasundhara Volam wrote: > >>> On Mon, Jul 27, 2020 at 4:36 PM Moshe Shemesh wrote: >

[PATCH 5.7 086/120] net: nixge: fix potential memory leak in nixge_probe()

2020-08-03 Thread Greg Kroah-Hartman
From: Lu Wei [ Upstream commit 366228ed01f6882cc203e3d5b40010dfae0be1c3 ] 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

[PATCH 5.7 105/120] parisc: add support for cmpxchg on u8 pointers

2020-08-03 Thread Greg Kroah-Hartman
From: Liam Beguin [ Upstream commit b344d6a83d01c52fddbefa6b3b4764da5b1022a0 ] The kernel test bot reported[1] that using set_mask_bits on a u8 causes the following issue on parisc: hppa-linux-ld: drivers/phy/ti/phy-tusb1210.o: in function `tusb1210_probe': >> (.text+0x2f4):

[PATCH 5.7 088/120] ionic: unlock queue mutex in error path

2020-08-03 Thread Greg Kroah-Hartman
From: Shannon Nelson [ Upstream commit 59929fbb45e06da7d501d3a97f10a91912181f7c ] On an error return, jump to the unlock at the end to be sure to unlock the queue_lock mutex. Fixes: 0925e9db4dc8 ("ionic: use mutex to protect queue operations") Reported-by: kernel test robot Reported-by: Julia

[PATCH 5.7 089/120] net: gemini: Fix missing clk_disable_unprepare() in error path of gemini_ethernet_port_probe()

2020-08-03 Thread Greg Kroah-Hartman
From: Wang Hai [ Upstream commit 85496a29224188051b6135eb38da8afd4c584765 ] Fix the missing clk_disable_unprepare() before return from gemini_ethernet_port_probe() in the error handling case. Fixes: 4d5ae32f5e1e ("net: ethernet: Add a driver for Gemini gigabit ethernet") Reported-by: Hulk

[PATCH 2/2] audit: uninitialize variable audit_sig_sid

2020-08-03 Thread Jules Irenge
Checkpatch tool reports "ERROR: do not initialise globals/statics to 0" To fix this, audit_sig_sid is uninitialized As this is stored in the .bss section, the compiler can initialize the variable automatically. Signed-off-by: Jules Irenge --- kernel/audit.c | 2 +- 1 file changed, 1

[PATCH 5.7 062/120] net: lan78xx: add missing endpoint sanity check

2020-08-03 Thread Greg Kroah-Hartman
From: Johan Hovold [ Upstream commit 8d8e95fd6d69d774013f51e5f2ee10c6e6d1fc14 ] Add the missing endpoint sanity check to prevent a NULL-pointer dereference should a malicious device lack the expected endpoints. Note that the driver has a broken endpoint-lookup helper, lan78xx_get_endpoints(),

[PATCH 5.7 061/120] net/mlx5e: Fix kernel crash when setting vf VLANID on a VF dev

2020-08-03 Thread Greg Kroah-Hartman
From: Alaa Hleihel [ Upstream commit 350a63249d270b1f5bd05c7e2a24cd8de0f9db20 ] After the cited commit, function 'mlx5_eswitch_set_vport_vlan' started to acquire esw->state_lock. However, esw is not defined for VF devices, hence attempting to set vf VLANID on a VF dev will cause a kernel panic.

[PATCH 5.7 087/120] net: ethernet: mtk_eth_soc: fix MTU warnings

2020-08-03 Thread Greg Kroah-Hartman
From: Landen Chao [ Upstream commit 555a893303872e044fb86f0a5834ce78d41ad2e2 ] in recent kernel versions there are warnings about incorrect MTU size like these: eth0: mtu greater than device maximum mtk_soc_eth 1b10.ethernet eth0: error -22 setting MTU to include DSA overhead Fixes:

[PATCH 5.7 082/120] arm64/alternatives: move length validation inside the subsection

2020-08-03 Thread Greg Kroah-Hartman
From: Sami Tolvanen [ Upstream commit 966a0acce2fca776391823381dba95c40e03c339 ] Commit f7b93d42945c ("arm64/alternatives: use subsections for replacement sequences") breaks LLVM's integrated assembler, because due to its one-pass design, it cannot compute instruction sequence lengths before

[PATCH 5.7 110/120] x86/unwind/orc: Fix ORC for newly forked tasks

2020-08-03 Thread Greg Kroah-Hartman
From: Josh Poimboeuf [ Upstream commit 372a8eaa05998cd45b3417d0e0ffd3a70978211a ] The ORC unwinder fails to unwind newly forked tasks which haven't yet run on the CPU. It correctly reads the 'ret_from_fork' instruction pointer from the stack, but it incorrectly interprets that value as a call

[PATCH 5.7 066/120] octeontx2-pf: Fix reset_task bugs

2020-08-03 Thread Greg Kroah-Hartman
From: Subbaraya Sundeep [ Upstream commit 948a66338f44c16f52c0f03f6ad81a6f59eb5604 ] Two bugs exist in the code related to reset_task in PF driver one is the missing protection against network stack ndo_open and ndo_close. Other one is the missing cancel_work. This patch fixes those problems.

[PATCH 5.7 114/120] RISC-V: Set maximum number of mapped pages correctly

2020-08-03 Thread Greg Kroah-Hartman
From: Atish Patra [ Upstream commit d0d8aae64566b753c4330fbd5944b88af035f299 ] Currently, maximum number of mapper pages are set to the pfn calculated from the memblock size of the memblock containing kernel. This will work until that memblock spans the entire memory. However, it will be set to

[PATCH 5.7 099/120] selftests: net: ip_defrag: modprobe missing nf_defrag_ipv6 support

2020-08-03 Thread Greg Kroah-Hartman
From: Paolo Pisati [ Upstream commit aba69d49fb49c9166596dd78926514173b7f9ab5 ] Fix ip_defrag.sh when CONFIG_NF_DEFRAG_IPV6=m: $ sudo ./ip_defrag.sh + set -e + mktemp -u XX + readonly NETNS=ns-rGlXcw + trap cleanup EXIT + setup + ip netns add ns-rGlXcw + ip -netns ns-rGlXcw link set lo up

[PATCH 5.7 112/120] cxgb4: add missing release on skb in uld_send()

2020-08-03 Thread Greg Kroah-Hartman
From: Navid Emamdoost [ Upstream commit e6827d1abdc9b061a57d7b7d3019c4e99fabea2f ] In the implementation of uld_send(), the skb is consumed on all execution paths except one. Release skb when returning NET_XMIT_DROP. Signed-off-by: Navid Emamdoost Signed-off-by: David S. Miller

[PATCH 5.7 064/120] rhashtable: Fix unprotected RCU dereference in __rht_ptr

2020-08-03 Thread Greg Kroah-Hartman
From: Herbert Xu [ Upstream commit 1748f6a2cbc4694523f16da1c892b59861045b9d ] The rcu_dereference call in rht_ptr_rcu is completely bogus because we've already dereferenced the value in __rht_ptr and operated on it. This causes potential double readings which could be fatal. The RCU

[PATCH 5.7 115/120] drivers/net/wan: lapb: Corrected the usage of skb_cow

2020-08-03 Thread Greg Kroah-Hartman
From: Xie He [ Upstream commit 8754e1379e7089516a449821f88e1fe1ebbae5e1 ] This patch fixed 2 issues with the usage of skb_cow in LAPB drivers "lapbether" and "hdlc_x25": 1) After skb_cow fails, kfree_skb should be called to drop a reference to the skb. But in both drivers, kfree_skb is not

[PATCH 5.7 102/120] nfc: s3fwrn5: add missing release on skb in s3fwrn5_recv_frame

2020-08-03 Thread Greg Kroah-Hartman
From: Navid Emamdoost [ Upstream commit 1e8fd3a97f2d83a7197876ceb4f37b4c2b00a0f3 ] The implementation of s3fwrn5_recv_frame() is supposed to consume skb on all execution paths. Release skb before returning -ENODEV. Signed-off-by: Navid Emamdoost Signed-off-by: David S. Miller Signed-off-by:

[PATCH 5.7 113/120] xen-netfront: fix potential deadlock in xennet_remove()

2020-08-03 Thread Greg Kroah-Hartman
From: Andrea Righi [ Upstream commit c2c633106453611be07821f53dff9e93a9d1c3f0 ] There's a potential race in xennet_remove(); this is what the driver is doing upon unregistering a network device: 1. state = read bus state 2. if state is not "Closed": 3.request to set state to

[PATCH 5.7 100/120] io_uring: always allow drain/link/hardlink/async sqe flags

2020-08-03 Thread Greg Kroah-Hartman
From: Daniele Albano [ Upstream commit 61710e437f2807e26a3402543bdbb7217a9c8620 ] We currently filter these for timeout_remove/async_cancel/files_update, but we only should be filtering for fixed file and buffer select. This also causes a second read of sqe->flags, which isn't needed. Just

[PATCH 5.4 11/90] ALSA: hda/realtek - Fixed HP right speaker no sound

2020-08-03 Thread Greg Kroah-Hartman
From: Kailang Yang commit 5649625344fe1f4695eace7c37d011e317bf66d5 upstream. HP NB right speaker had no sound output. This platform was connected to I2S Amp for speaker out.(None Realtek I2S Amp IC) EC need to check codec GPIO1 pin to initial I2S Amp. Signed-off-by: Kailang Yang Cc: Link:

[PATCH 5.4 01/90] crypto: ccp - Release all allocated memory if sha type is invalid

2020-08-03 Thread Greg Kroah-Hartman
From: Navid Emamdoost [ Upstream commit 128c66429247add5128c03dc1e144ca56f05a4e2 ] Release all allocated memory if sha type is invalid: In ccp_run_sha_cmd, if the type of sha is invalid, the allocated hmac_buf should be released. v2: fix the goto. Signed-off-by: Navid Emamdoost Acked-by:

[PATCH 5.4 15/90] 9p/trans_fd: Fix concurrency del of req_list in p9_fd_cancelled/p9_read_work

2020-08-03 Thread Greg Kroah-Hartman
From: Wang Hai commit 74d6a5d5662975aed7f25952f62efbb6f6dadd29 upstream. p9_read_work and p9_fd_cancelled may be called concurrently. In some cases, req->req_list may be deleted by both p9_read_work and p9_fd_cancelled. We can fix it by ignoring replies associated with a cancelled request and

[PATCH 5.4 16/90] wireless: Use offsetof instead of custom macro.

2020-08-03 Thread Greg Kroah-Hartman
From: Pi-Hsun Shih commit 6989310f5d4327e8595664954edd40a7f99ddd0d upstream. Use offsetof to calculate offset of a field to take advantage of compiler built-in version when possible, and avoid UBSAN warning when compiling with Clang:

[PATCH 5.7 092/120] perf tools: Fix record failure when mixed with ARM SPE event

2020-08-03 Thread Greg Kroah-Hartman
From: Wei Li [ Upstream commit bd3c628f8fafa6cbd6a1ca440034b841f0080160 ] When recording with cache-misses and arm_spe_x event, I found that it will just fail without showing any error info if i put cache-misses after 'arm_spe_x' event. [root@localhost 0620]# perf record -e cache-misses \

[PATCH v3 3/4] KVM: SVM: Add GHCB Accessor functions

2020-08-03 Thread Joerg Roedel
From: Joerg Roedel Building a correct GHCB for the hypervisor requires setting valid bits in the GHCB. Simplify that process by providing accessor functions to set values and to update the valid bitmap and to check the valid bitmap in KVM. Signed-off-by: Joerg Roedel ---

[PATCH v3 4/4] KVM: SVM: Use __packed shorthand

2020-08-03 Thread Joerg Roedel
From: Borislav Petkov Use the shorthand to make it more readable. No functional changes. Signed-off-by: Borislav Petkov Signed-off-by: Joerg Roedel --- arch/x86/include/asm/svm.h | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/x86/include/asm/svm.h

[PATCH 5.4 22/90] random32: update the net random state on interrupt and activity

2020-08-03 Thread Greg Kroah-Hartman
From: Willy Tarreau commit f227e3ec3b5cad859ad15666874405e8c1bbc1d4 upstream. This modifies the first 32 bits out of the 128 bits of a random CPU's net_rand_state on interrupt or CPU activity to complicate remote observations that could lead to guessing the network RNG's internal state. Note

[PATCH 5.4 08/90] ALSA: hda/realtek: enable headset mic of ASUS ROG Zephyrus G15(GA502) series with ALC289

2020-08-03 Thread Greg Kroah-Hartman
From: Armas Spann commit 4b43d05a1978a93a19374c6e6b817c9c1ff4ba4b upstream. This patch adds support for headset mic to the ASUS ROG Zephyrus G15(GA502) notebook series by adding the corresponding vendor/pci_device id, as well as adding a new fixup for the used realtek ALC289. The fixup stets

[PATCH v3 0/4] KVM: SVM: SEV-ES groundwork

2020-08-03 Thread Joerg Roedel
Hi Paolo, here is v3 of the groundwork patches for the upcoming SEV-ES support in the Linux kernel. They are part of both the client patch-set and the KVM hypervisor patches (under development). Patch 1 necesary to fix a compile warning about a stack-frame getting too large. The other 3 patches

[PATCH 5.4 06/90] mm/filemap.c: dont bother dropping mmap_sem for zero size readahead

2020-08-03 Thread Greg Kroah-Hartman
From: Jan Kara commit 5c72feee3e45b40a3c96c7145ec422899d0e8964 upstream. When handling a page fault, we drop mmap_sem to start async readahead so that we don't block on IO submission with mmap_sem held. However there's no point to drop mmap_sem in case readahead is disabled. Handle that case

[PATCH 5.4 24/90] Revert "drm/amdgpu: Fix NULL dereference in dpm sysfs handlers"

2020-08-03 Thread Greg Kroah-Hartman
From: Alex Deucher commit 87004abfbc27261edd15716515d89ab42198b405 upstream. This regressed some working configurations so revert it. Will fix this properly for 5.9 and backport then. This reverts commit 38e0c89a19fd13f28d2b4721035160a3e66e270b. Signed-off-by: Alex Deucher Cc:

[PATCH v3 2/4] KVM: SVM: Add GHCB definitions

2020-08-03 Thread Joerg Roedel
From: Tom Lendacky Extend the vmcb_safe_area with SEV-ES fields and add a new 'struct ghcb' which will be used for guest-hypervisor communication. Signed-off-by: Tom Lendacky Signed-off-by: Joerg Roedel --- arch/x86/include/asm/svm.h | 45 +-

[PATCH 5.4 37/90] xfrm: Fix crash when the hold queue is used.

2020-08-03 Thread Greg Kroah-Hartman
From: Steffen Klassert [ Upstream commit 101dde4207f1daa1fda57d714814a03835dccc3f ] The commits "xfrm: Move dst->path into struct xfrm_dst" and "net: Create and use new helper xfrm_dst_child()." changed xfrm bundle handling under the assumption that xdst->path and dst->child are not a NULL

[PATCH 5.4 39/90] nvme-tcp: fix possible hang waiting for icresp response

2020-08-03 Thread Greg Kroah-Hartman
From: Sagi Grimberg [ Upstream commit adc99fd378398f4c58798a1c57889872967d56a6 ] If the controller died exactly when we are receiving icresp we hang because icresp may never return. Make sure to set a high finite limit. Fixes: 3f2304f8c6d6 ("nvme-tcp: add NVMe over TCP host driver")

[PATCH 5.4 00/90] 5.4.56-rc1 review

2020-08-03 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.4.56 release. There are 90 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Wed, 05 Aug 2020 12:18:33 +. Anything

[PATCH 5.4 44/90] sh: Fix validation of system call number

2020-08-03 Thread Greg Kroah-Hartman
From: Michael Karcher [ Upstream commit 04a8a3d0a73f51c7c2da84f494db7ec1df230e69 ] The slow path for traced system call entries accessed a wrong memory location to get the number of the maximum allowed system call number. Renumber the numbered "local" label for the correct location to avoid

[PATCH 5.4 27/90] drm/dbi: Fix SPI Type 1 (9-bit) transfer

2020-08-03 Thread Greg Kroah-Hartman
From: Paul Cercueil commit 900ab59e2621053b009f707f80b2c19ce0af5dee upstream. The function mipi_dbi_spi1_transfer() will transfer its payload as 9-bit data, the 9th (MSB) bit being the data/command bit. In order to do that, it unpacks the 8-bit values into 16-bit values, then sets the 9th bit

[PATCH 5.4 38/90] ARM: dts: armada-38x: fix NETA lockup when repeatedly switching speeds

2020-08-03 Thread Greg Kroah-Hartman
From: Russell King [ Upstream commit 09781ba0395c46b1c844f47e405e3ce7856f5989 ] To support the change in "phy: armada-38x: fix NETA lockup when repeatedly switching speeds" we need to update the DT with the additional register. Fixes: 14dc100b4411 ("phy: armada38x: add common phy support")

[PATCH 5.4 07/90] ALSA: usb-audio: Add implicit feedback quirk for SSL2

2020-08-03 Thread Greg Kroah-Hartman
From: Laurence Tratt commit 3da87ec67a491b9633a82045896c076b794bf938 upstream. As expected, this requires the same quirk as the SSL2+ in order for the clock to sync. This was suggested by, and tested on an SSL2, by Dmitry. Suggested-by: Dmitry Signed-off-by: Laurence Tratt Cc: Link:

[PATCH 5.4 56/90] mlxsw: core: Increase scope of RCU read-side critical section

2020-08-03 Thread Greg Kroah-Hartman
From: Ido Schimmel [ Upstream commit 7d8e8f3433dc8d1dc87c1aabe73a154978fb4c4d ] The lifetime of the Rx listener item ('rxl_item') is managed using RCU, but is dereferenced outside of RCU read-side critical section, which can lead to a use-after-free. Fix this by increasing the scope of the RCU

[PATCH 5.4 31/90] rds: Prevent kernel-infoleak in rds_notify_queue_get()

2020-08-03 Thread Greg Kroah-Hartman
From: Peilin Ye commit bbc8a99e952226c585ac17477a85ef1194501762 upstream. rds_notify_queue_get() is potentially copying uninitialized kernel stack memory to userspace since the compiler may leave a 4-byte hole at the end of `cmsg`. In 2016 we tried to fix this issue by doing `= { 0 };` on

[PATCH 5.4 42/90] selftests/net: so_txtime: fix clang issues for target arch PowerPC

2020-08-03 Thread Greg Kroah-Hartman
From: Tanner Love [ Upstream commit b4da96ffd30bd4a305045ba5c9b0de5d4aa20dc7 ] On powerpcle, int64_t maps to long long. Clang 9 threw: warning: absolute value function 'labs' given an argument of type \ 'long long' but has parameter of type 'long' which may cause \ truncation of value

Re: [PATCH 2/2] s390: convert to GENERIC_VDSO

2020-08-03 Thread Thomas Gleixner
Sven Schnelle writes: > - CPUCLOCK_VIRT is now handled with a syscall fallback, which might > be slower/less accurate than the old implementation. I can understand the slower, but why does it become less accurate? > Performance number from my system do 100 mio gettimeofday() calls: > > Plain

[PATCH 5.4 49/90] net/mlx5: Verify Hardware supports requested ptp function on a given pin

2020-08-03 Thread Greg Kroah-Hartman
From: Eran Ben Elisha [ Upstream commit 071995c877a8646209d55ff8e2b054e7424c ] Fix a bug where driver did not verify Hardware pin capabilities for PTP functions. Fixes: ee7f12205abc ("net/mlx5e: Implement 1PPS support") Signed-off-by: Eran Ben Elisha Reviewed-by: Ariel Levkovich

[PATCH 5.4 55/90] mlx4: disable device on shutdown

2020-08-03 Thread Greg Kroah-Hartman
From: Jakub Kicinski [ Upstream commit 3cab8c65525920f00d8f4997b3e9bb73aecb3a8e ] It appears that not disabling a PCI device on .shutdown may lead to a Hardware Error with particular (perhaps buggy) BIOS versions: mlx4_en: eth0: Close port called mlx4_en :04:00.0: removed PHC

[PATCH 5.4 53/90] net: lan78xx: fix transfer-buffer memory leak

2020-08-03 Thread Greg Kroah-Hartman
From: Johan Hovold [ Upstream commit 63634aa679ba8b5e306ad0727120309ae6ba8a8e ] The interrupt URB transfer-buffer was never freed on disconnect or after probe errors. Fixes: 55d7de9de6c3 ("Microchip's LAN7800 family USB 2/3 to 10/100/1000 Ethernet device driver") Cc: woojung@microchip.com

[PATCH 5.4 45/90] net: hns3: fix a TX timeout issue

2020-08-03 Thread Greg Kroah-Hartman
From: Yonglong Liu [ Upstream commit a7e90ee5965fafc53d36e8b3205f08c88d7bc11f ] When the queue depth and queue parameters are modified, there is a low probability that TX timeout occurs. The two operations cause the link to be down or up when the watchdog is still working. All queues are

[PATCH 5.4 82/90] xen-netfront: fix potential deadlock in xennet_remove()

2020-08-03 Thread Greg Kroah-Hartman
From: Andrea Righi [ Upstream commit c2c633106453611be07821f53dff9e93a9d1c3f0 ] There's a potential race in xennet_remove(); this is what the driver is doing upon unregistering a network device: 1. state = read bus state 2. if state is not "Closed": 3.request to set state to

[PATCH 5.4 60/90] mac80211: mesh: Free ie data when leaving mesh

2020-08-03 Thread Greg Kroah-Hartman
From: Remi Pommarel [ Upstream commit 6a01afcf8468d3ca2bd8bbb27503f60dcf643b20 ] At ieee80211_join_mesh() some ie data could have been allocated (see copy_mesh_setup()) and need to be cleaned up when leaving the mesh. This fixes the following kmemleak report: unreferenced object

[PATCH 5.4 84/90] drivers/net/wan: lapb: Corrected the usage of skb_cow

2020-08-03 Thread Greg Kroah-Hartman
From: Xie He [ Upstream commit 8754e1379e7089516a449821f88e1fe1ebbae5e1 ] This patch fixed 2 issues with the usage of skb_cow in LAPB drivers "lapbether" and "hdlc_x25": 1) After skb_cow fails, kfree_skb should be called to drop a reference to the skb. But in both drivers, kfree_skb is not

[PATCH 5.4 85/90] KVM: arm64: Dont inherit exec permission across page-table levels

2020-08-03 Thread Greg Kroah-Hartman
From: Will Deacon commit b757b47a2fcba584d4a32fd7ee68faca510ab96f upstream. If a stage-2 page-table contains an executable, read-only mapping at the pte level (e.g. due to dirty logging being enabled), a subsequent write fault to the same page which tries to install a larger block mapping (e.g.

[PATCH 5.4 78/90] Revert "i2c: cadence: Fix the hold bit setting"

2020-08-03 Thread Greg Kroah-Hartman
From: Raviteja Narayanam [ Upstream commit 0db9254d6b896b587759e2c844c277fb1a6da5b9 ] This reverts commit d358def706880defa4c9e87381c5bf086a97d5f9. There are two issues with "i2c: cadence: Fix the hold bit setting" commit. 1. In case of combined message request from user space, when the HOLD

[PATCH 5.4 83/90] RISC-V: Set maximum number of mapped pages correctly

2020-08-03 Thread Greg Kroah-Hartman
From: Atish Patra [ Upstream commit d0d8aae64566b753c4330fbd5944b88af035f299 ] Currently, maximum number of mapper pages are set to the pfn calculated from the memblock size of the memblock containing kernel. This will work until that memblock spans the entire memory. However, it will be set to

[PATCH 5.4 81/90] cxgb4: add missing release on skb in uld_send()

2020-08-03 Thread Greg Kroah-Hartman
From: Navid Emamdoost [ Upstream commit e6827d1abdc9b061a57d7b7d3019c4e99fabea2f ] In the implementation of uld_send(), the skb is consumed on all execution paths except one. Release skb when returning NET_XMIT_DROP. Signed-off-by: Navid Emamdoost Signed-off-by: David S. Miller

[PATCH 5.4 87/90] x86/i8259: Use printk_deferred() to prevent deadlock

2020-08-03 Thread Greg Kroah-Hartman
From: Thomas Gleixner commit bdd65589593edd79b6a12ce86b3b7a7c6dae5208 upstream. 0day reported a possible circular locking dependency: Chain exists of: _desc_lock_class --> console_owner --> _lock_key Possible unsafe locking scenario: CPU0CPU1

<    5   6   7   8   9   10   11   12   13   14   >