[PATCH 5.11 424/775] powerpc/sstep: Fix load-store and update emulation

2021-03-01 Thread Greg Kroah-Hartman
From: Sandipan Das [ Upstream commit bbda4b6c7d7c7f79da71f95c92a5d76be22c3efd ] The Power ISA says that the fixed-point load and update instructions must neither use R0 for the base address (RA) nor have the destination (RT) and the base address (RA) as the same register. Similarly, for

[PATCH 5.11 426/775] clk: qcom: gfm-mux: fix clk mask

2021-03-01 Thread Greg Kroah-Hartman
From: Srinivas Kandagatla [ Upstream commit 78ddb79cab178534b2c1d9ab95823f2af882ee8e ] For some reason global GFM_MASK ended up with bit 1 instead of bit 0. Remove the global GFM_MASK and reuse mux_mask field. Fixes: a2d8f507803e ("clk: qcom: Add support to LPASS AUDIO_CC Glitch Free Mux

[PATCH 5.11 425/775] powerpc/sstep: Fix darn emulation

2021-03-01 Thread Greg Kroah-Hartman
From: Sandipan Das [ Upstream commit 22b89ba178dd0a66a26699ead014a3e73ff8e044 ] Commit 8813ff49607e ("powerpc/sstep: Check instruction validity against ISA version before emulation") introduced a proper way to skip unknown instructions. This makes sure that the same is used for the darn

Re: [PATCH] can: c_can: move runtime PM enable/disable to c_can_platform

2021-03-01 Thread Marc Kleine-Budde
On 28.02.2021 23:15:48, Tong Zhang wrote: > Currently doing modprobe c_can_pci will make kernel complain > "Unbalanced pm_runtime_enable!", this is caused by pm_runtime_enable() > called before pm is initialized in register_candev() and doing so will I don't see where register_candev() is doing

[PATCH 5.11 398/775] mmc: usdhi6rol0: Fix a resource leak in the error handling path of the probe

2021-03-01 Thread Greg Kroah-Hartman
From: Christophe JAILLET [ Upstream commit 6052b3c370fb82dec28bcfff6d7ec0da84ac087a ] A call to 'ausdhi6_dma_release()' to undo a previous call to 'usdhi6_dma_request()' is missing in the error handling path of the probe function. It is already present in the remove function. Fixes:

[PATCH 5.11 422/775] powerpc/pseries/dlpar: handle ibm, configure-connector delay status

2021-03-01 Thread Greg Kroah-Hartman
From: Nathan Lynch [ Upstream commit 768d70e19ba525debd571b36e6d0ab19956c63d7 ] dlpar_configure_connector() has two problems in its handling of ibm,configure-connector's return status: 1. When the status is -2 (busy, call again), we call ibm,configure-connector again immediately without

[PATCH 5.11 421/775] mfd: wm831x-auxadc: Prevent use after free in wm831x_auxadc_read_irq()

2021-03-01 Thread Greg Kroah-Hartman
From: Dan Carpenter [ Upstream commit 26783d74cc6a440ee3ef9836a008a697981013d0 ] The "req" struct is always added to the "wm831x->auxadc_pending" list, but it's only removed from the list on the success path. If a failure occurs then the "req" struct is freed but it's still on the list,

Re: [PATCH v3 5/6] can: c_can: prepare to up the message objects number

2021-03-01 Thread Marc Kleine-Budde
On 01.03.2021 14:08:45, Marc Kleine-Budde wrote: > On 01.03.2021 12:38:05, Marc Kleine-Budde wrote: > > On 28.02.2021 11:38:54, Dario Binacchi wrote: > > [...] > > > > > @@ -730,7 +728,7 @@ static void c_can_do_tx(struct net_device *dev) > > > while ((idx = ffs(pend))) { > > > idx--;

[PATCH 5.11 417/775] RDMA/rxe: Fix coding error in rxe_rcv_mcast_pkt

2021-03-01 Thread Greg Kroah-Hartman
From: Bob Pearson [ Upstream commit 8fc1b7027fc162738d5a85c82410e501a371a404 ] rxe_rcv_mcast_pkt() in rxe_recv.c can leak SKBs in error path code. The loop over the QPs attached to a multicast group creates new cloned SKBs for all but the last QP in the list and passes the SKB and its clones to

Re: [PATCH v3 5/6] can: c_can: prepare to up the message objects number

2021-03-01 Thread Marc Kleine-Budde
On 01.03.2021 18:24:31, Dario Binacchi wrote: > Hi Marc, > > > Il 01/03/2021 14:08 Marc Kleine-Budde ha scritto: > > > > > > On 01.03.2021 12:38:05, Marc Kleine-Budde wrote: > > > On 28.02.2021 11:38:54, Dario Binacchi wrote: > > > [...] > > > > > > > @@ -730,7 +728,7 @@ static void

[PATCH 5.11 419/775] spi: stm32: properly handle 0 byte transfer

2021-03-01 Thread Greg Kroah-Hartman
From: Alain Volmat [ Upstream commit 2269f5a8b1a7b38651d62676b98182828f29d11a ] On 0 byte transfer request, return straight from the xfer function after finalizing the transfer. Fixes: dcbe0d84dfa5 ("spi: add driver for STM32 SPI controller") Signed-off-by: Alain Volmat Link:

[PATCH 5.11 418/775] RDMA/rxe: Correct skb on loopback path

2021-03-01 Thread Greg Kroah-Hartman
From: Bob Pearson [ Upstream commit 5120bf0a5fc15dec210a0fe0f39e4a256bb6e349 ] rxe_net.c sends packets at the IP layer with skb->data pointing at the IP header but receives packets from a UDP tunnel with skb->data pointing at the UDP header. On the loopback path this was not correctly

[PATCH 5.11 420/775] mfd: altera-sysmgr: Fix physical address storing more

2021-03-01 Thread Greg Kroah-Hartman
From: Arnd Bergmann [ Upstream commit b0b5b16b78cea1b2b990a69ab8e07a42ccf7a2ed ] A recent fix improved the way the resource gets passed to the low-level accessors, but left one warning that appears in configurations with a resource_size_t that is wider than a pointer: In file included from

[PATCH 5.11 411/775] platform/x86: intel_pmt: Make INTEL_PMT_CLASS non-user-selectable

2021-03-01 Thread Greg Kroah-Hartman
From: David E. Box [ Upstream commit 35d8a973fe4d38afee944db636c3d2b1df3741a7 ] Fix error in Kconfig that exposed INTEL_PMT_CLASS as a user selectable option. It is already selected by INTEL_PMT_TELEMETRY and INTEL_PMT_CRASHLOG which are user selectable. Fixes: e2729113ce66 ("platform/x86:

[PATCH 5.11 397/775] mmc: sdhci-sprd: Fix some resource leaks in the remove function

2021-03-01 Thread Greg Kroah-Hartman
From: Christophe JAILLET [ Upstream commit c9c256a8b0dc09c305c409d6264cc016af2ba38d ] 'sdhci_remove_host()' and 'sdhci_pltfm_free()' should be used in place of 'mmc_remove_host()' and 'mmc_free_host()'. This avoids some resource leaks, is more in line with the error handling path of the probe

[PATCH 5.11 416/775] RDMA/rxe: Fix coding error in rxe_recv.c

2021-03-01 Thread Greg Kroah-Hartman
From: Bob Pearson [ Upstream commit 7d9ae80e31df57dd3253e1ec514faa588a81 ] check_type_state() in rxe_recv.c is written as if the type bits in the packet opcode were a bit mask which is not correct. This patch corrects this code to compare all 3 type bits to the required type. Fixes:

[PATCH 5.11 413/775] platform/x86: intel_pmt_crashlog: Add dependency on MFD_INTEL_PMT

2021-03-01 Thread Greg Kroah-Hartman
From: David E. Box [ Upstream commit fdd3feb37e36bec2ad75d76f8ac4d0273c5c0a91 ] All devices that expose Intel Platform Monitoring Technology (PMT) crashlog are currently owned by the intel_pmt MFD driver. Therefore make the crashlog driver depend on the MFD driver for build. Fixes:

[PATCH 5.11 414/775] perf tools: Fix DSO filtering when not finding a map for a sampled address

2021-03-01 Thread Greg Kroah-Hartman
From: Arnaldo Carvalho de Melo [ Upstream commit c69bf11ad3d30b6bf01cfa538ddff1a59467c734 ] When we lookup an address and don't find a map we should filter that sample if the user specified a list of --dso entries to filter on, fix it. Before: $ perf script sleep 274800

[PATCH 5.11 412/775] platform/x86: intel_pmt_telemetry: Add dependency on MFD_INTEL_PMT

2021-03-01 Thread Greg Kroah-Hartman
From: David E. Box [ Upstream commit f3f6da5014dea3cc005b36948abe3664b5d1f7d3 ] All devices that expose Intel Platform Monitoring Technology (PMT) telemetry are currently owned by the intel_pmt MFD driver. Therefore make the telemetry driver depend on the MFD driver for build. Fixes:

[PATCH 5.11 387/775] IB/umad: Return EIO in case of when device disassociated

2021-03-01 Thread Greg Kroah-Hartman
From: Shay Drory [ Upstream commit 4fc5461823c9cad547a9bdfbf17d13f0da0d6bb5 ] MAD message received by the user has EINVAL error in all flows including when the device is disassociated. That makes it impossible for the applications to treat such flow differently. Change it to return EIO, so the

[PATCH 5.11 410/775] rtc: zynqmp: depend on HAS_IOMEM

2021-03-01 Thread Greg Kroah-Hartman
From: David Gow [ Upstream commit ddd0521549a975e6148732d6ca6b89ffa862c0e5 ] The Xilinx zynqmp RTC driver makes use of IOMEM functions like devm_platform_ioremap_resource(), which are only available if CONFIG_HAS_IOMEM is defined. This causes the driver not to be enable under make ARCH=um

[PATCH 5.11 409/775] tracepoint: Do not fail unregistering a probe due to memory failure

2021-03-01 Thread Greg Kroah-Hartman
From: Steven Rostedt (VMware) [ Upstream commit befe6d946551d65cddbd32b9cb0170b0249fd5ed ] The list of tracepoint callbacks is managed by an array that is protected by RCU. To update this array, a new array is allocated, the updates are copied over to the new array, and then the list of

[PATCH 5.11 407/775] IB/mlx5: Return appropriate error code instead of ENOMEM

2021-03-01 Thread Greg Kroah-Hartman
From: Parav Pandit [ Upstream commit d286ac1d05210695c312b9018b3aa7c2048e9aca ] When mlx5_ib_stage_init_init() fails, return the error code related to failure instead of -ENOMEM. Fixes: 16c1975f1032 ("IB/mlx5: Create profile infrastructure to add and remove stages") Link:

[PATCH 5.11 396/775] mmc: owl-mmc: Fix a resource leak in an error handling path and in the remove function

2021-03-01 Thread Greg Kroah-Hartman
From: Christophe JAILLET [ Upstream commit 5d15cbf63515c6183d2ed7c9dd0586b4db23ffb1 ] 'dma_request_chan()' calls should be balanced by a corresponding 'dma_release_channel()' call. Add the missing call both in the error handling path of the probe function and in the remove function. Fixes:

[PATCH 5.11 406/775] iommu: Properly pass gfp_t in _iommu_map() to avoid atomic sleeping

2021-03-01 Thread Greg Kroah-Hartman
From: Douglas Anderson [ Upstream commit b8437a3ef8c485903d05d1f261328aaf0c0a6cc2 ] Sleeping while atomic = bad. Let's fix an obvious typo to try to avoid it. The warning that was seen (on a downstream kernel with the problematic patch backported): BUG: sleeping function called from invalid

[PATCH 5.11 405/775] iommu: Move iotlb_sync_map out from __iommu_map

2021-03-01 Thread Greg Kroah-Hartman
From: Yong Wu [ Upstream commit d8c1df02ac7f2c802a9b2afc0f5c888c4217f1d5 ] In the end of __iommu_map, It alway call iotlb_sync_map. This patch moves iotlb_sync_map out from __iommu_map since it is unnecessary to call this for each sg segment especially iotlb_sync_map is flush tlb all

[PATCH 5.11 408/775] IB/cm: Avoid a loop when device has 255 ports

2021-03-01 Thread Greg Kroah-Hartman
From: Parav Pandit [ Upstream commit 131be26750379592f0dd6244b2a90bbb504a10bb ] When RDMA device has 255 ports, loop iterator i overflows. Due to which cm_add_one() port iterator loops infinitely. Use core provided port iterator to avoid the infinite loop. Fixes: a977049dacde ("[PATCH] IB:

[PATCH 5.11 363/775] certs: Fix blacklist flag type confusion

2021-03-01 Thread Greg Kroah-Hartman
From: David Howells [ Upstream commit 4993e1f9479a4161fd7d93e2b8b30b438f00cb0f ] KEY_FLAG_KEEP is not meant to be passed to keyring_alloc() or key_alloc(), as these only take KEY_ALLOC_* flags. KEY_FLAG_KEEP has the same value as KEY_ALLOC_BYPASS_RESTRICTION, but fortunately only

[PATCH 5.11 372/775] scsi: isci: Pass gfp_t flags in isci_port_bc_change_received()

2021-03-01 Thread Greg Kroah-Hartman
From: Ahmed S. Darwish [ Upstream commit 71dca5539fcf977aead0c9ea1962e70e78484b8e ] Use the new libsas event notifiers API, which requires callers to explicitly pass the gfp_t memory allocation flags. libsas sas_notify_port_event() is called from isci_port_bc_change_received(). Below is the

[PATCH 5.11 371/775] scsi: isci: Pass gfp_t flags in isci_port_link_up()

2021-03-01 Thread Greg Kroah-Hartman
From: Ahmed S. Darwish [ Upstream commit 5ce7902902adb8d154d67ba494f06daa29360ef0 ] Use the new libsas event notifiers API, which requires callers to explicitly pass the gfp_t memory allocation flags. libsas sas_notify_port_event() is called from isci_port_link_up(). Below is the context

[PATCH 5.11 368/775] scsi: libsas: Introduce a _gfp() variant of event notifiers

2021-03-01 Thread Greg Kroah-Hartman
From: Ahmed S. Darwish [ Upstream commit c2d0f1a65ab9fbabebb463bf36f50ea8f4633386 ] sas_alloc_event() uses in_interrupt() to decide which allocation should be used. The usage of in_interrupt() in drivers is phased out and Linus clearly requested that code which changes behaviour depending on

[PATCH 5.11 369/775] scsi: mvsas: Pass gfp_t flags to libsas event notifiers

2021-03-01 Thread Greg Kroah-Hartman
From: Ahmed S. Darwish [ Upstream commit feb18e900f0048001ff375dca639eaa327ab3c1b ] mvsas calls the non _gfp version of the libsas event notifiers API, leading to the buggy call chains below: mvsas/mv_sas.c: mvs_work_queue() [process context] spin_lock_irqsave(mvs_info::lock, ) ->

[PATCH 5.11 370/775] scsi: isci: Pass gfp_t flags in isci_port_link_down()

2021-03-01 Thread Greg Kroah-Hartman
From: Ahmed S. Darwish [ Upstream commit 885ab3b8926fdf9cdd7163dfad99deb9b0662b39 ] Use the new libsas event notifiers API, which requires callers to explicitly pass the gfp_t memory allocation flags. sas_notify_phy_event() is exclusively called by isci_port_link_down(). Below is the context

Re: [PATCH] can: c_can_pci: fix use-after-free

2021-03-01 Thread Marc Kleine-Budde
On 3/1/21 3:45 AM, Tong Zhang wrote: > There is a UAF in c_can_pci_remove(). > dev is released by free_c_can_dev() and is used by > pci_iounmap(pdev, priv->base) later. > To fix this issue, save the mmio address before releasing dev. > > [ 1795.746699] >

[PATCH 5.10 411/663] drm/msm: Fix race of GPU init vs timestamp power management.

2021-03-01 Thread Greg Kroah-Hartman
From: Eric Anholt [ Upstream commit 7a7cbf2a819740674455ad36155c662367261296 ] We were using the same force-poweron bit in the two codepaths, so they could race to have one of them lose GPU power early. freedreno CI was seeing intermittent errors like: [drm:_a6xx_gmu_set_oob] *ERROR* Timeout

[PATCH 5.10 530/663] KEYS: trusted: Reserve TPM for seal and unseal operations

2021-03-01 Thread Greg Kroah-Hartman
From: Jarkko Sakkinen commit 8c657a0590de585b1115847c17b34a58025f2f4b upstream. When TPM 2.0 trusted keys code was moved to the trusted keys subsystem, the operations were unwrapped from tpm_try_get_ops() and tpm_put_ops(), which are used to take temporarily the ownership of the TPM chip. The

[PATCH 5.10 467/663] i2c: brcmstb: Fix brcmstd_send_i2c_cmd condition

2021-03-01 Thread Greg Kroah-Hartman
From: Maxime Ripard [ Upstream commit a1858ce0cfe31368b23ba55794e409fb57ced4a4 ] The brcmstb_send_i2c_cmd currently has a condition that is (CMD_RD || CMD_WR) which always evaluates to true, while the obvious fix is to test whether the cmd variable passed as parameter holds one of these two

[PATCH 5.11 152/775] arm64: dts: mt8183: rename rdma fifo size

2021-03-01 Thread Greg Kroah-Hartman
From: Yongqiang Niu [ Upstream commit 431368c2648b59e5485a1b5f1276a83d885fb44b ] property name must include only lowercase and '-' Fixes: 91f9c963ce79 ("arm64: dts: mt8183: Add display nodes for MT8183") Signed-off-by: Yongqiang Niu Signed-off-by: Hsin-Yi Wang Reviewed-by: Chun-Kuang Hu

[PATCH 5.11 391/775] powerpc/47x: Disable 256k page size

2021-03-01 Thread Greg Kroah-Hartman
From: Christophe Leroy [ Upstream commit 910a0cb6d259736a0c86e795d4c2f42af8d0d775 ] PPC47x_TLBE_SIZE isn't defined for 256k pages, leading to a build break if 256k pages is selected. So change the kconfig so that 256k pages can't be selected for 47x. Fixes: e7f75ad01d59 ("powerpc/47x: Base

[PATCH 5.11 394/775] powerpc/time: Enable sched clock for irqtime

2021-03-01 Thread Greg Kroah-Hartman
From: Pingfan Liu [ Upstream commit b709e32ef570b8b91dfbcb63cffac4324c87799f ] When CONFIG_IRQ_TIME_ACCOUNTING and CONFIG_VIRT_CPU_ACCOUNTING_GEN, powerpc does not enable "sched_clock_irqtime" and can not utilize irq time accounting. Like x86, powerpc does not use the sched_clock_register()

[PATCH 5.11 393/775] powerpc/sstep: Fix incorrect return from analyze_instr()

2021-03-01 Thread Greg Kroah-Hartman
From: Ananth N Mavinakayanahalli [ Upstream commit 718aae916fa6619c57c348beaedd675835cf1aa1 ] We currently just percolate the return value from analyze_instr() to the caller of emulate_step(), especially if it is a -1. For one particular case (opcode = 4) for instructions that aren't currently

[PATCH 5.11 392/775] powerpc/sstep: Check instruction validity against ISA version before emulation

2021-03-01 Thread Greg Kroah-Hartman
From: Ananth N Mavinakayanahalli [ Upstream commit 8813ff49607eab3caaf40fe8929b0ce7dc68e85f ] We currently unconditionally try to emulate newer instructions on older Power versions that could cause issues. Gate it. Fixes: 350779a29f11 ("powerpc: Handle most loads and stores in instruction

[PATCH 5.11 366/775] regulator: s5m8767: Drop regulators OF node reference

2021-03-01 Thread Greg Kroah-Hartman
From: Krzysztof Kozlowski [ Upstream commit a5872bd3398d0ff2ce4c77794bc7837899c69024 ] The device node reference obtained with of_get_child_by_name() should be dropped on error paths. Fixes: 26aec009f6b6 ("regulator: add device tree support for s5m8767") Signed-off-by: Krzysztof Kozlowski

[PATCH 5.10 188/663] media: lmedm04: Fix misuse of comma

2021-03-01 Thread Greg Kroah-Hartman
From: Joe Perches [ Upstream commit 59a3e78f8cc33901fe39035c1ab681374bba95ad ] There's a comma used instead of a semicolon that causes multiple statements to be executed after an if instead of just the intended single statement. Replace the comma with a semicolon. Fixes: 15e1ce33182d

[PATCH 5.11 390/775] powerpc/kvm: Force selection of CONFIG_PPC_FPU

2021-03-01 Thread Greg Kroah-Hartman
From: Christophe Leroy [ Upstream commit 27f699579b64dbf27caf31e5c0eac567ec0aa8b8 ] book3s/32 kvm is designed with the assumption that an FPU is always present. Force selection of FPU support in the kernel when build KVM. Fixes: 7d68c8916950 ("powerpc/32s: Allow deselecting CONFIG_PPC_FPU on

[PATCH 5.11 367/775] scsi: libsas: Remove notifier indirection

2021-03-01 Thread Greg Kroah-Hartman
From: John Garry [ Upstream commit 121181f3f839c29d8dd9fdc3cc9babbdc74227f8 ] LLDDs report events to libsas with .notify_port_event and .notify_phy_event callbacks. These callbacks are fixed and so there is no reason why the functions cannot be called directly, so do that. This neatens the

[PATCH 5.10 355/663] kselftests: dmabuf-heaps: Fix Makefiles inclusion of the kernels usr/include dir

2021-03-01 Thread Greg Kroah-Hartman
From: John Stultz [ Upstream commit 64ba3d591c9d2be2a9c09e99b00732afe002ad0d ] Copied in from somewhere else, the makefile was including the kerne's usr/include dir, which caused the asm/ioctl.h file to be used. Unfortunately, that file has different values for _IOC_SIZEBITS and _IOC_WRITE

[PATCH 5.11 271/775] KVM: x86: Restore all 64 bits of DR6 and DR7 during RSM on x86-64

2021-03-01 Thread Greg Kroah-Hartman
From: Sean Christopherson [ Upstream commit 2644312052d54e2e7543c7d186899a36ed22f0bf ] Restore the full 64-bit values of DR6 and DR7 when emulating RSM on x86-64, as defined by both Intel's SDM and AMD's APM. Note, bits 63:32 of DR6 and DR7 are reserved, so this is a glorified nop unless the

[PATCH 5.10 036/663] Bluetooth: hci_qca: Fix memleak in qca_controller_memdump

2021-03-01 Thread Greg Kroah-Hartman
From: Dinghao Liu [ Upstream commit 71f8e707557b9bc25dc90a59a752528d4e7c1cbf ] When __le32_to_cpu() fails, qca_memdump should be freed just like when vmalloc() fails. Fixes: d841502c79e3f ("Bluetooth: hci_qca: Collect controller memory dump during SSR") Signed-off-by: Dinghao Liu

[PATCH 5.10 338/663] iommu: Properly pass gfp_t in _iommu_map() to avoid atomic sleeping

2021-03-01 Thread Greg Kroah-Hartman
From: Douglas Anderson [ Upstream commit b8437a3ef8c485903d05d1f261328aaf0c0a6cc2 ] Sleeping while atomic = bad. Let's fix an obvious typo to try to avoid it. The warning that was seen (on a downstream kernel with the problematic patch backported): BUG: sleeping function called from invalid

[PATCH 5.10 001/663] vmlinux.lds.h: add DWARF v5 sections

2021-03-01 Thread Greg Kroah-Hartman
From: Nick Desaulniers commit 3c4fa46b30c551b1df2fb1574a684f68bc22067c upstream. We expect toolchains to produce these new debug info sections as part of DWARF v5. Add explicit placements to prevent the linker warnings from --orphan-section=warn. Compilers may produce such sections with

[PATCH 5.10 625/663] proc: dont allow async path resolution of /proc/thread-self components

2021-03-01 Thread Greg Kroah-Hartman
From: Jens Axboe commit 0d4370cfe36b7f1719123b621a4ec4d9c7a25f89 upstream. If this is attempted by an io-wq kthread, then return -EOPNOTSUPP as we don't currently support that. Once we can get task_pid_ptr() doing the right thing, then this can go away again. Use PF_IO_WORKER for this to

[PATCH 5.10 525/663] erofs: initialized fields can only be observed after bit is set

2021-03-01 Thread Greg Kroah-Hartman
From: Gao Xiang commit ce063129181312f8781a047a50be439c5859747b upstream. Currently, although set_bit() & test_bit() pairs are used as a fast- path for initialized configurations. However, these atomic ops are actually relaxed forms. Instead, load-acquire & store-release form is needed to make

[PATCH 5.4 292/340] arm64: uprobe: Return EOPNOTSUPP for AARCH32 instruction probing

2021-03-01 Thread Greg Kroah-Hartman
From: He Zhe commit d47422d953e258ad587b5edf2274eb95d08bdc7d upstream. As stated in linux/errno.h, ENOTSUPP should never be seen by user programs. When we set up uprobe with 32-bit perf and arm64 kernel, we would see the following vague error without useful hint. The sys_perf_event_open()

[PATCH 5.10 550/663] soc: samsung: exynos-asv: handle reading revision register error

2021-03-01 Thread Greg Kroah-Hartman
From: Krzysztof Kozlowski commit 4561560dfb4f847a0b327d48bdd1f45bf1b6261f upstream. If regmap_read() fails, the product_id local variable will contain random value from the stack. Do not try to parse such value and fail the ASV driver probe. Fixes: 5ea428595cc5 ("soc: samsung: Add Exynos

[PATCH 5.11 388/775] IB/umad: Return EPOLLERR in case of when device disassociated

2021-03-01 Thread Greg Kroah-Hartman
From: Shay Drory [ Upstream commit def4cd43f522253645b72c97181399c241b54536 ] Currently, polling a umad device will always works, even if the device was disassociated. A disassociated device should immediately return EPOLLERR from poll(). Otherwise userspace is endlessly hung on poll() with no

[PATCH 5.11 389/775] KVM: PPC: Make the VMX instruction emulation routines static

2021-03-01 Thread Greg Kroah-Hartman
From: Cédric Le Goater [ Upstream commit 9236f57a9e51c72ce426ccd2e53e123de7196a0f ] These are only used locally. It fixes these W=1 compile errors : ../arch/powerpc/kvm/powerpc.c:1521:5: error: no previous prototype for ‘kvmppc_get_vmx_dword’ [-Werror=missing-prototypes] 1521 | int

[PATCH 5.11 153/775] arm64: dts: mt8183: refine gamma compatible name

2021-03-01 Thread Greg Kroah-Hartman
From: Yongqiang Niu [ Upstream commit 9a2cb5eba7ad4fa7ccb3a4aa754f5263111e8f96 ] mt8183 gamma is different with mt8173 remove mt8173 compatible name for mt8183 gamma Fixes: 91f9c963ce79 ("arm64: dts: mt8183: Add display nodes for MT8183") Signed-off-by: Yongqiang Niu Signed-off-by: Hsin-Yi

[PATCH 5.4 334/340] xfrm: interface: use icmp_ndo_send helper

2021-03-01 Thread Greg Kroah-Hartman
From: Jason A. Donenfeld commit 45942ba890e6f35232727a5fa33d732681f4eb9f upstream. Because xfrmi is calling icmp from network device context, it should use the ndo helper so that the rate limiting applies correctly. Signed-off-by: Jason A. Donenfeld Cc: Nicolas Dichtel Cc: Steffen Klassert

[PATCH 5.4 295/340] mtd: spi-nor: sfdp: Fix last erase region marking

2021-03-01 Thread Greg Kroah-Hartman
From: Takahiro Kuwano commit 9166f4af32db74e1544a2149aef231ff24515ea3 upstream. The place of spi_nor_region_mark_end() must be moved, because 'i' is re-used for the index of erase[]. Fixes: b038e8e3be72 ("mtd: spi-nor: parse SFDP Sector Map Parameter Table") Cc: sta...@vger.kernel.org

[PATCH 5.4 318/340] sparc32: fix a user-triggerable oops in clear_user()

2021-03-01 Thread Greg Kroah-Hartman
From: Al Viro commit 7780918b36489f0b2f9a3749d7be00c2ceaec513 upstream. Back in 2.1.29 the clear_user() guts (__bzero()) had been merged with memset(). Unfortunately, while all exception handlers had been copied, one of the exception table entries got lost. As the result, clear_user()

RE: [EXTERNAL] Re: [RFC PATCH 12/12] HV/Storvsc: Add bounce buffer support for Storvsc

2021-03-01 Thread Sunil Muthuswamy
> Hi Christoph: > Thanks a lot for your review. There are some reasons. > 1) Vmbus drivers don't use DMA API now. What is blocking us from making the Hyper-V drivers use the DMA API's? They will be a null-op generally, when there is no bounce buffer support needed. > 2) Hyper-V

[PATCH 5.10 640/663] gfs2: Recursive gfs2_quota_hold in gfs2_iomap_end

2021-03-01 Thread Greg Kroah-Hartman
From: Andreas Gruenbacher commit 7009fa9cd9a5262944b30eb7efb1f0561d074b68 upstream. When starting an iomap write, gfs2_quota_lock_check -> gfs2_quota_lock -> gfs2_quota_hold is called from gfs2_iomap_begin. At the end of the write, before unlocking the quotas, punch_hole -> gfs2_quota_hold can

[PATCH 5.11 127/775] bpf: Clear subreg_def for global function return values

2021-03-01 Thread Greg Kroah-Hartman
From: Ilya Leoshkevich [ Upstream commit 45159b27637b0fef6d5ddb86fc7c46b13c77960f ] test_global_func4 fails on s390 as reported by Yauheni in [1]. The immediate problem is that the zext code includes the instruction, whose result needs to be zero-extended, into the zero-extension patchlet, and

[PATCH 5.10 547/663] crypto: sun4i-ss - handle BigEndian for cipher

2021-03-01 Thread Greg Kroah-Hartman
From: Corentin Labbe commit 5ab6177fa02df15cd8a02a1f1fb361d2d5d8b946 upstream. Ciphers produce invalid results on BE. Key and IV need to be written in LE. Fixes: 6298e948215f2 ("crypto: sunxi-ss - Add Allwinner Security System crypto accelerator") Cc: Signed-off-by: Corentin Labbe

[PATCH 5.11 360/775] platform/chrome: cros_ec_proto: Add LID and BATTERY to default mask

2021-03-01 Thread Greg Kroah-Hartman
From: Evan Benn [ Upstream commit 852405d8efcbca0e02f14592fb1d1dcd0d3fb508 ] After 'platform/chrome: cros_ec_proto: Use EC_HOST_EVENT_MASK not BIT' some of the flags are not quite correct. LID_CLOSED is used to suspend the device, so it makes sense to ignore that. BATTERY events are also

[PATCH 5.10 405/663] VMCI: Use set_page_dirty_lock() when unregistering guest memory

2021-03-01 Thread Greg Kroah-Hartman
From: Jorgen Hansen [ Upstream commit 5a16c535409f8dcb7568e20737309e3027ae3e49 ] When the VMCI host support releases guest memory in the case where the VM was killed, the pinned guest pages aren't locked. Use set_page_dirty_lock() instead of set_page_dirty(). Testing done: Killed VM while

[PATCH 5.10 152/663] drm: rcar-du: Fix the return check of of_parse_phandle and of_find_device_by_node

2021-03-01 Thread Greg Kroah-Hartman
From: Wang Xiaojun [ Upstream commit 8d7d33f6be06f929ac2c5e8ea2323fec272790d4 ] of_parse_phandle and of_find_device_by_node may return NULL which cannot be checked by IS_ERR. Fixes: 8de707aeb452 ("drm: rcar-du: kms: Initialize CMM instances") Signed-off-by: Wang Xiaojun Reported-by: Hulk

[PATCH 5.11 220/775] macintosh/adb-iop: Use big-endian autopoll mask

2021-03-01 Thread Greg Kroah-Hartman
From: Finn Thain [ Upstream commit c396dd2ec5bbd1cb80eafe32a72ab6bd6b17cb5a ] As usual, the available documentation is inadequate and leaves endianness unspecified for message data. However, testing shows that this patch does improve correctness. The mistake should have been detected earlier

[PATCH 5.10 229/663] drm/vc4: hdmi: Move hdmi reset to bind

2021-03-01 Thread Greg Kroah-Hartman
From: Dom Cobley [ Upstream commit 902dc5c19a8fecd3113dd41cc601b34557bdede9 ] The hdmi reset got moved to a later point in the commit 9045e91a476b ("drm/vc4: hdmi: Add reset callback"). However, the reset now occurs after vc4_hdmi_cec_init and so tramples the setup of registers like

[PATCH 5.11 240/775] perf/arm-cmn: Fix PMU instance naming

2021-03-01 Thread Greg Kroah-Hartman
From: Robin Murphy [ Upstream commit 79d7c3dca99fa96033695ddf5d495b775a3a137b ] Although it's neat to avoid the suffix for the typical case of a single PMU, it means systems with multiple CMN instances end up with inconsistent naming. I think it also breaks perf tool's "uncore alias" logic if

[PATCH 5.10 385/663] perf intel-pt: Fix missing CYC processing in PSB

2021-03-01 Thread Greg Kroah-Hartman
From: Adrian Hunter [ Upstream commit 03fb0f859b45d1eb05c984ab4bd3bef67e45ede2 ] Add missing CYC packet processing when walking through PSB+. This improves the accuracy of timestamps that follow PSB+, until the next MTC. Fixes: 3d49807870f08 ("perf tools: Add new Intel PT packet definitions")

[PATCH 5.10 377/663] RDMA/ucma: Fix use-after-free bug in ucma_create_uevent

2021-03-01 Thread Greg Kroah-Hartman
From: Avihai Horon [ Upstream commit fe454dc31e84f8c14cb8942fcb61666c9f40745b ] ucma_process_join() allocates struct ucma_multicast mc and frees it if an error occurs during its run. Specifically, if an error occurs in copy_to_user(), a use-after-free might happen in the following scenario:

[PATCH 5.10 195/663] media: uvcvideo: Accept invalid bFormatIndex and bFrameIndex values

2021-03-01 Thread Greg Kroah-Hartman
From: Laurent Pinchart [ Upstream commit dc9455ffae02d7b7fb51ba1e007fffcb9dc5d890 ] The Renkforce RF AC4K 300 Action Cam 4K reports invalid bFormatIndex and bFrameIndex values when negotiating the video probe and commit controls. The UVC descriptors report a single supported format and frame

[PATCH 5.10 437/663] i40e: Fix addition of RX filters after enabling FW LLDP agent

2021-03-01 Thread Greg Kroah-Hartman
From: Mateusz Palczewski [ Upstream commit 28b1208e7a7fa3ddc9345b022bb93e53d9dcc28a ] Fix addition of VLAN filter for PF after enabling FW LLDP agent. Changing LLDP Agent causes FW to re-initialize per NVM settings. Remove default PF filter and move "Enable/Disable" to currently used reset

[PATCH 5.10 182/663] drm/amdgpu: toggle on DF Cstate after finishing xgmi injection

2021-03-01 Thread Greg Kroah-Hartman
From: Guchun Chen [ Upstream commit fe2d9f5abf19f2b3688b3b8da4e42f8d07886847 ] Fixes: 5c23e9e05e42 ("drm/amdgpu: Update RAS XGMI error inject sequence") Signed-off-by: Guchun Chen Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin ---

[PATCH 5.11 125/775] cxgb4/chtls/cxgbit: Keeping the max ofld immediate data size same in cxgb4 and ulds

2021-03-01 Thread Greg Kroah-Hartman
From: Ayush Sawal [ Upstream commit 2355a6773a2cb0d2dce13432dde78497f1d6617b ] The Max imm data size in cxgb4 is not similar to the max imm data size in the chtls. This caused an mismatch in output of is_ofld_imm() of cxgb4 and chtls. So fixed this by keeping the max wreq size of imm data same

[PATCH 5.10 138/663] fbdev: aty: SPARC64 requires FB_ATY_CT

2021-03-01 Thread Greg Kroah-Hartman
From: Randy Dunlap [ Upstream commit c6c90c70db4d9a0989111d6b994d545659410f7a ] It looks like SPARC64 requires FB_ATY_CT to build without errors, so have FB_ATY select FB_ATY_CT if both SPARC64 and PCI are enabled instead of using "default y if SPARC64 && PCI", which is not strong enough to

[PATCH 5.4 315/340] virtio/s390: implement virtio-ccw revision 2 correctly

2021-03-01 Thread Greg Kroah-Hartman
From: Cornelia Huck commit 182f709c5cff683e6732d04c78e328de0532284f upstream. CCW_CMD_READ_STATUS was introduced with revision 2 of virtio-ccw, and drivers should only rely on it being implemented when they negotiated at least that revision with the device. However, virtio_ccw_get_status()

[PATCH 5.10 380/663] RDMA/rtrs-srv: fix memory leak by missing kobject free

2021-03-01 Thread Greg Kroah-Hartman
From: Gioh Kim [ Upstream commit f7452a7e96c120d73100387d5f87de9fce7133cb ] kmemleak reported an error as below: unreferenced object 0x8880674b7640 (size 64): comm "kworker/4:1H", pid 113, jiffies 4296403507 (age 507.840s) hex dump (first 32 bytes): 69 70 3a 31 39 32 2e 31

[PATCH 5.11 031/775] ARM: dts: exynos: correct PMIC interrupt trigger level on Rinato

2021-03-01 Thread Greg Kroah-Hartman
From: Krzysztof Kozlowski [ Upstream commit 437ae60947716bb479e2f32466f49445c0509b1e ] The Samsung PMIC datasheets describe the interrupt line as active low with a requirement of acknowledge from the CPU. Without specifying the interrupt type in Devicetree, kernel might apply some fixed

[PATCH 5.11 225/775] media: vidtv: psi: fix missing crc for PMT

2021-03-01 Thread Greg Kroah-Hartman
From: Daniel W. S. Almeida [ Upstream commit 0a933a7f73d6c545dcbecb4f7a92d272aef4417b ] The PMT write function was refactored and this broke the CRC computation. Fix it. Fixes: db9569f67e2e ("media: vidtv: cleanup PMT write table function") Signed-off-by: Daniel W. S. Almeida Signed-off-by:

[PATCH 5.10 247/663] ima: Free IMA measurement buffer after kexec syscall

2021-03-01 Thread Greg Kroah-Hartman
From: Lakshmi Ramasubramanian [ Upstream commit f31e3386a4e92ba6eda7328cb508462956c94c64 ] IMA allocates kernel virtual memory to carry forward the measurement list, from the current kernel to the next kernel on kexec system call, in ima_add_kexec_buffer() function. This buffer is not freed

[PATCH 5.10 260/663] clk: meson: clk-pll: fix initializing the old rate (fallback) for a PLL

2021-03-01 Thread Greg Kroah-Hartman
From: Martin Blumenstingl [ Upstream commit 2f290b7c67adf6459a17a4c978102af35cd62e4a ] The "rate" parameter in meson_clk_pll_set_rate() contains the new rate. Retrieve the old rate with clk_hw_get_rate() so we don't inifinitely try to switch from the new rate to the same rate again. Fixes:

[PATCH 5.11 259/775] drm/mediatek: Fix aal size config

2021-03-01 Thread Greg Kroah-Hartman
[ Upstream commit 71dcadba34203d8dd35152e368720f977e9cdb81 ] The orginal setting is not correct, fix it to follow hardware data sheet. If keep this error setting, mt8173/mt8183 display ok but mt8192 display abnormal. Fixes: 0664d1392c26 ("drm/mediatek: Add AAL engine basic function")

[PATCH 5.11 296/775] ubifs: Fix memleak in ubifs_init_authentication

2021-03-01 Thread Greg Kroah-Hartman
From: Dinghao Liu [ Upstream commit 11b8ab3836454a2600e396f34731e491b661f9d5 ] When crypto_shash_digestsize() fails, c->hmac_tfm has not been freed before returning, which leads to memleak. Fixes: 49525e5eecca5 ("ubifs: Add helper functions for authentication support") Signed-off-by: Dinghao

[PATCH 5.10 220/663] ASoC: Intel: sof_sdw: add missing TGL_HDMI quirk for Dell SKU 0A3E

2021-03-01 Thread Greg Kroah-Hartman
From: Pierre-Louis Bossart [ Upstream commit 5ab3ff4d66960be766a544886667e7c002f17fd6 ] We missed adding the TGL_HDMI quirk which is very much needed to expose the 4 display pipelines and will be required on TGL topologies. Fixes: e787f5b5b1406 ('ASoC: Intel: add support for new SoundWire

[PATCH 5.10 346/663] RDMA/rxe: Fix coding error in rxe_rcv_mcast_pkt

2021-03-01 Thread Greg Kroah-Hartman
From: Bob Pearson [ Upstream commit 8fc1b7027fc162738d5a85c82410e501a371a404 ] rxe_rcv_mcast_pkt() in rxe_recv.c can leak SKBs in error path code. The loop over the QPs attached to a multicast group creates new cloned SKBs for all but the last QP in the list and passes the SKB and its clones to

[PATCH 5.10 205/663] drm/nouveau: bail out of nouveau_channel_new if channel init fails

2021-03-01 Thread Greg Kroah-Hartman
From: Frantisek Hrbata [ Upstream commit eaba3b28401f50e22d64351caa8afe8d29509f27 ] Unprivileged user can crash kernel by using DRM_IOCTL_NOUVEAU_CHANNEL_ALLOC ioctl. This was reported by trinity[1] fuzzer. [ 71.073906] nouveau :01:00.0: crashme[1329]: channel failed to initialise, -17

[PATCH 5.10 499/663] phy: lantiq: rcu-usb2: wait after clock enable

2021-03-01 Thread Greg Kroah-Hartman
From: Mathias Kresin commit 36acd5e24e3000691fb8d1ee31cf959cb1582d35 upstream. Commit 65dc2e725286 ("usb: dwc2: Update Core Reset programming flow.") revealed that the phy isn't ready immediately after enabling it's clocks. The dwc2_check_core_version() fails and the dwc2 usb driver errors out.

[PATCH 5.11 097/775] ath9k: fix data bus crash when setting nf_override via debugfs

2021-03-01 Thread Greg Kroah-Hartman
From: Linus Lüssing [ Upstream commit 12c8f3d1cdd84f01ee777b756db9dddc1f1c9d17 ] When trying to set the noise floor via debugfs, a "data bus error" crash like the following can happen: [ 88.433133] Data bus error, epc == 80221c28, ra == 83314e60 [ 88.438895] Oops[#1]: [ 88.441246] CPU: 0

[PATCH 5.10 240/663] nvmet-tcp: fix receive data digest calculation for multiple h2cdata PDUs

2021-03-01 Thread Greg Kroah-Hartman
From: Sagi Grimberg [ Upstream commit fda871c0ba5d2eed2cd1c881573168129da70058 ] When a host sends multiple h2cdata PDUs for a single command, we should verify the data digest calculation per PDU and not per command. Fixes: 872d26a391da ("nvmet-tcp: add NVMe over TCP target driver")

[PATCH 5.10 175/663] drm/sun4i: tcon: fix inverted DCLK polarity

2021-03-01 Thread Greg Kroah-Hartman
From: Giulio Benetti [ Upstream commit 67f4aeb2b41a0629abde3794d463547f60b0cbdd ] During commit 88bc4178568b ("drm: Use new DRM_BUS_FLAG_*_(DRIVE|SAMPLE)_(POS|NEG)EDGE flags") DRM_BUS_FLAG_* macros have been changed to avoid ambiguity but just because of this ambiguity previous

[PATCH 5.11 209/775] crypto: bcm - Rename struct device_private to bcm_device_private

2021-03-01 Thread Greg Kroah-Hartman
From: Jiri Olsa [ Upstream commit f7f2b43eaf6b4cfe54c75100709be31d5c4b52c8 ] Renaming 'struct device_private' to 'struct bcm_device_private', because it clashes with 'struct device_private' from 'drivers/base/base.h'. While it's not a functional problem, it's causing two distinct type

[PATCH 5.10 538/663] btrfs: account for new extents being deleted in total_bytes_pinned

2021-03-01 Thread Greg Kroah-Hartman
From: Josef Bacik commit 81e75ac74ecba929d1e922bf93f9fc467232e39f upstream. My recent patch set "A variety of lock contention fixes", found here https://lore.kernel.org/linux-btrfs/cover.1608319304.git.jo...@toxicpanda.com/ (Tracked in https://github.com/btrfs/linux/issues/86) that reduce

[PATCH 5.4 326/340] dm era: Fix bitset memory leaks

2021-03-01 Thread Greg Kroah-Hartman
From: Nikos Tsironis commit 904e6b266619c2da5c58b5dce14ae30629e39645 upstream. Deallocate the memory allocated for the in-core bitsets when destroying the target and in error paths. Fixes: eec40579d84873 ("dm: add era target") Cc: sta...@vger.kernel.org # v3.15+ Signed-off-by: Nikos Tsironis

[PATCH 5.11 046/775] arm64: dts: allwinner: A64: properly connect USB PHY to port 0

2021-03-01 Thread Greg Kroah-Hartman
From: Andre Przywara [ Upstream commit cc72570747e43335f4933a24dd74d5653639176a ] In recent Allwinner SoCs the first USB host controller (HCI0) shares the first PHY with the MUSB controller. Probably to make this sharing work, we were avoiding to declare this in the DT. This has two

[PATCH 5.10 464/663] KVM: SVM: Intercept INVPCID when its disabled to inject #UD

2021-03-01 Thread Greg Kroah-Hartman
From: Sean Christopherson [ Upstream commit 0a8ed2eaac102c746d8d114f2787f06cb3e55dfb ] Intercept INVPCID if it's disabled in the guest, even when using NPT, as KVM needs to inject #UD in this case. Fixes: 4407a797e941 ("KVM: SVM: Enable INVPCID feature on AMD") Cc: Babu Moger Signed-off-by:

[PATCH 5.10 083/663] ath10k: Fix suspicious RCU usage warning in ath10k_wmi_tlv_parse_peer_stats_info()

2021-03-01 Thread Greg Kroah-Hartman
From: Anand K Mistry [ Upstream commit 2615e3cdbd9c0e864f5906279c952a309871d225 ] The ieee80211_find_sta_by_ifaddr call in ath10k_wmi_tlv_parse_peer_stats_info must be called while holding the RCU read lock. Otherwise, the following warning will be seen when RCU usage checking is enabled:

[PATCH 5.10 596/663] mm: memcontrol: fix swap undercounting in cgroup2

2021-03-01 Thread Greg Kroah-Hartman
From: Muchun Song commit cae3af62b33aa931427a0f211e04347b22180b36 upstream. When pages are swapped in, the VM may retain the swap copy to avoid repeated writes in the future. It's also retained if shared pages are faulted back in some processes, but not in others. During that time we have an

<    3   4   5   6   7   8   9   10   11   12   >