[PATCH 4.19 18/88] batman-adv: bla: use netif_rx_ni when not in interrupt context

2020-09-08 Thread Greg Kroah-Hartman
From: Jussi Kivilinna [ Upstream commit 279e89b2281af3b1a9f04906e157992c19c9f163 ] batadv_bla_send_claim() gets called from worker thread context through batadv_bla_periodic_work(), thus netif_rx_ni needs to be used in that case. This fixes "NOHZ: local_softirq_pending 08" log messages seen

[PATCH 4.19 02/88] HID: core: Sanitize event code and type when mapping input

2020-09-08 Thread Greg Kroah-Hartman
From: Marc Zyngier commit 35556bed836f8dc07ac55f69c8d17dce3e7f0e25 upstream. When calling into hid_map_usage(), the passed event code is blindly stored as is, even if it doesn't fit in the associated bitmap. This event code can come from a variety of sources, including devices masquerading as

[PATCH 4.19 00/88] 4.19.144-rc1 review

2020-09-08 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.19.144 release. There are 88 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 Thu, 10 Sep 2020 15:21:57 +. Anything

Re: [PATCH v7 00/20] gpio: cdev: add uAPI v2

2020-09-08 Thread Bartosz Golaszewski
On Sat, Sep 5, 2020 at 3:36 PM Kent Gibson wrote: > > This patchset defines and implements a new version of the > GPIO CDEV uAPI to address existing 32/64-bit alignment issues, add > support for debounce, event sequence numbers, and allow for requested > lines with different configurations. > It

Re: [PATCH] platform/x86: Add Driver to set up lid GPEs on MS Surface device

2020-09-08 Thread Andy Shevchenko
On Tue, Sep 8, 2020 at 8:20 PM Maximilian Luz wrote: > > Conventionally, wake-up events for a specific device, in our case the > lid device, are managed via the ACPI _PRW field. While this does not > seem strictly necessary based on ACPI spec, the kernel disables GPE > wakeups to avoid non-wakeup

[PATCH 4.19 07/88] drm/msm: add shutdown support for display platform_driver

2020-09-08 Thread Greg Kroah-Hartman
From: Krishna Manikandan [ Upstream commit 9d5cbf5fe46e350715389d89d0c350d83289a102 ] Define shutdown callback for display drm driver, so as to disable all the CRTCS when shutdown notification is received by the driver. This change will turn off the timing engine so that no display

Re: [PATCH v1] x86/defconfigs: Unbreak 32-bit defconfig builds

2020-09-08 Thread Andy Shevchenko
On Tue, Sep 08, 2020 at 02:13:54PM +0200, Ingo Molnar wrote: > > * Andy Shevchenko wrote: > > > After the commit 1d0e12fd3a84 ("x86/defconfigs: Refresh defconfig files") > > 32-bit builds using defconfig become broken because on x86_64 build host > > with no ARCH provided the default behaviour

[PATCH 4.19 08/88] hwmon: (applesmc) check status earlier.

2020-09-08 Thread Greg Kroah-Hartman
From: Tom Rix [ Upstream commit cecf7560f00a8419396a2ed0f6e5d245ccb4feac ] clang static analysis reports this representative problem applesmc.c:758:10: warning: 1st function call argument is an uninitialized value left = be16_to_cpu(*(__be16 *)(buffer + 6)) >> 2;

[PATCH 4.19 24/88] netfilter: nf_tables: fix destination register zeroing

2020-09-08 Thread Greg Kroah-Hartman
From: Florian Westphal [ Upstream commit 1e105e6afa6c3d32bfb52c00ffa393894a525c27 ] Following bug was reported via irc: nft list ruleset set knock_candidates_ipv4 { type ipv4_addr . inet_service size 65535 elements = { 127.0.0.1 . 123, 127.0.0.1 . 123 }

Re: linux-next: Tree for Sep 8 (sched/topology.c)

2020-09-08 Thread Valentin Schneider
On 08/09/20 16:50, Randy Dunlap wrote: > Sure, here it is again. And > CONFIG_SMP=y > CONFIG_SCHED_DEBUG=y > > thanks. Okay so I can reproduce that with GCC-10.1, now to figure out WTH is going on...

Re: [PATCH v2 08/10] phy: qcom-qmp: Add support for sc7180 DP phy

2020-09-08 Thread Stephen Boyd
Quoting Jonathan Marek (2020-09-03 16:29:43) > On 9/2/20 7:02 PM, Stephen Boyd wrote: > > ... > > > +static const struct qmp_phy_cfg sc7180_dpphy_cfg = { > > + .type = PHY_TYPE_DP, > > + .nlanes = 1, > > + > > + .serdes_tbl =

Re: [PATCH 1/2] ASoC: tlv320adcx140: Avoid accessing invalid gpio_reset

2020-09-08 Thread Peter Ujfalusi
Hi, On 08/09/2020 14.59, Peter Ujfalusi wrote: > > > On 08/09/2020 11.35, Camel Guo wrote: >> From: Camel Guo >> >> When gpio_reset is not well defined in devicetree, the >> adcx140->gpio_reset is an error code instead of NULL. In this case, >> adcx140->gpio_reset should not be used by

Re: [PATCH] drm: assure aux_dev is nonzero before using it

2020-09-08 Thread Lyude Paul
On Tue, 2020-08-18 at 10:58 -0700, Zwane Mwaikambo wrote: > On Wed, 12 Aug 2020, Lyude Paul wrote: > > > On Wed, 2020-08-12 at 16:10 +0200, Daniel Vetter wrote: > > > On Wed, Aug 12, 2020 at 12:16 AM Zwane Mwaikambo > > > wrote: > > > > On Tue, 11 Aug 2020, Daniel Vetter wrote: > > > > > > > >

Re: [PATCH 1/2] ASoC: tlv320adcx140: Avoid accessing invalid gpio_reset

2020-09-08 Thread Peter Ujfalusi
On 08/09/2020 11.35, Camel Guo wrote: > From: Camel Guo > > When gpio_reset is not well defined in devicetree, the > adcx140->gpio_reset is an error code instead of NULL. In this case, > adcx140->gpio_reset should not be used by adcx140_reset. This commit > sets it NULL to avoid accessing an

Re: [PATCH v2 07/10] phy: qcom-qmp: Add support for DP in USB3+DP combo phy

2020-09-08 Thread Stephen Boyd
Quoting Jonathan Marek (2020-09-03 16:26:39) > On 9/2/20 7:02 PM, Stephen Boyd wrote: > > > +static int qcom_qmp_phy_configure_dp_phy(struct qmp_phy *qphy) > > +{ [...] > > + writel(0x05, qphy->pcs + QSERDES_V3_DP_PHY_CFG); > > + writel(0x01, qphy->pcs + QSERDES_V3_DP_PHY_CFG); > > +

Re: [GIT PULL] livepatching for 5.9-rc5

2020-09-08 Thread Linus Torvalds
On Tue, Sep 8, 2020 at 11:32 AM Josh Poimboeuf wrote: > > Can you share the .o file? At least I can't recreate with GCC 9.3.1, > which is all I have at the moment. Done off-list in private, because I don't think anybody else wants object files flying around on the mailing lists..

Re: [PATCH v3 1/8] iommu/arm-smmu: Refactor context bank allocation

2020-09-08 Thread Jordan Crouse
On Fri, Sep 04, 2020 at 03:55:06PM +, Bjorn Andersson wrote: > Extract the conditional invocation of the platform defined > alloc_context_bank() to a separate function to keep > arm_smmu_init_domain_context() cleaner. > > Instead pass a reference to the arm_smmu_device as parameter to the >

Re: [PATCH v1] x86/defconfigs: Unbreak 32-bit defconfig builds

2020-09-08 Thread Andy Shevchenko
On Tue, Sep 8, 2020 at 8:53 PM Randy Dunlap wrote: > On 9/8/20 5:13 AM, Ingo Molnar wrote: > > * Andy Shevchenko wrote: > > > >> After the commit 1d0e12fd3a84 ("x86/defconfigs: Refresh defconfig files") > >> 32-bit builds using defconfig become broken because on x86_64 build host > >> with no

Re: [PATCH v3 1/8] iommu/arm-smmu: Refactor context bank allocation

2020-09-08 Thread Jordan Crouse
On Tue, Sep 08, 2020 at 06:42:06PM +, Jordan Crouse wrote: > On Fri, Sep 04, 2020 at 03:55:06PM +, Bjorn Andersson wrote: > > Extract the conditional invocation of the platform defined > > alloc_context_bank() to a separate function to keep > > arm_smmu_init_domain_context() cleaner. > >

Re: [PATCH] seccomp: don't leave dangling ->notif if file allocation fails

2020-09-08 Thread Kees Cook
On Wed, 2 Sep 2020 08:09:53 -0600, Tycho Andersen wrote: > Christian and Kees both pointed out that this is a bit sloppy to open-code > both places, and Christian points out that we leave a dangling pointer to > ->notif if file allocation fails. Since we check ->notif for null in order > to

Re: [PATCH] fs: Eliminate a local variable to make the code more clear

2020-09-08 Thread Al Viro
On Tue, Sep 08, 2020 at 01:06:56PM +, Hao Lee wrote: > ping > > On Wed, Jul 29, 2020 at 03:21:28PM +, Hao Lee wrote: > > The dentry local variable is introduced in 'commit 84d17192d2afd ("get > > rid of full-hash scan on detaching vfsmounts")' to reduce the length of > > some long

Re: [v4,2/4] dt-binding: reset-controller: ti: add 'mediatek,infra-reset' to compatible

2020-09-08 Thread Rob Herring
On Wed, Sep 2, 2020 at 5:26 PM Suman Anna wrote: > > Hi Rob, > > On 8/26/20 6:09 AM, Crystal Guo wrote: > > On Wed, 2020-08-26 at 03:02 +0800, Rob Herring wrote: > >> On Mon, Aug 17, 2020 at 11:03:22AM +0800, Crystal Guo wrote: > >>> The TI syscon reset controller provides a common reset

[PATCH] sched/topology: Move sd_flag_debug out of #ifdef CONFIG_SYSCTL

2020-09-08 Thread Valentin Schneider
The last sd_flag_debug shuffle inadvertently moved its definition within an #ifdef CONFIG_SYSCTL region. While CONFIG_SYSCTL is indeed required to produce the sched domain ctl interface (which uses sd_flag_debug to output flag names), it isn't required to run any assertion on the sched_domain

Re: [RFC PATCH v8 0/3] Add support for AT_INTERPRETED (was O_MAYEXEC)

2020-09-08 Thread Al Viro
On Tue, Sep 08, 2020 at 09:59:53AM +0200, Mickaël Salaün wrote: > Hi, > > This height patch series rework the previous O_MAYEXEC series by not > adding a new flag to openat2(2) but to faccessat2(2) instead. As > suggested, this enables to perform the access check on a file descriptor > instead

Re: [PATCH net-next 0/1] Support for VLAN interface over HSR/PRP

2020-09-08 Thread Willem de Bruijn
> > >>> > > >>> Shouldn't it show vlan_do_receive() ? > > >>> > > >>> if (skb_vlan_tag_present(skb)) { > > >>> if (pt_prev) { > > >>> ret = deliver_skb(skb, pt_prev, orig_dev); > > >>> pt_prev = NULL; > > >>> } > > >>> if

Re: [PATCH v7 67/72] x86/smpboot: Load TSS and getcpu GDT entry before loading IDT

2020-09-08 Thread Joerg Roedel
On Tue, Sep 08, 2020 at 07:20:42PM +0200, Borislav Petkov wrote: > On Mon, Sep 07, 2020 at 03:16:08PM +0200, Joerg Roedel wrote: > > +void cpu_init_exception_handling(void) > > +{ > > + struct tss_struct *tss = this_cpu_ptr(_tss_rw); > > + int cpu = raw_smp_processor_id(); > > + > > + /*

Re: [PATCH 1/2] seccomp: don't leak memory when filter install races

2020-09-08 Thread Kees Cook
On Tue, 1 Sep 2020 19:40:16 -0600, Tycho Andersen wrote: > In seccomp_set_mode_filter() with TSYNC | NEW_LISTENER, we first initialize > the listener fd, then check to see if we can actually use it later in > seccomp_may_assign_mode(), which can fail if anyone else in our thread > group has

[GIT PULL 1/1] bcm2835-dt-next-2020-09-08

2020-09-08 Thread Nicolas Saenz Julienne
Hi Florian, The following changes since commit 9123e3a74ec7b934a4a099e98af6a61c2f80bbf5: Linux 5.9-rc1 (2020-08-16 13:04:57 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/nsaenz/linux-rpi.git tags/bcm2835-dt-next-2020-09-08 for you to fetch

Re: [PATCH v10 02/16] s390/vfio-ap: use new AP bus interface to search for queue devices

2020-09-08 Thread Tony Krowiak
On 9/4/20 4:11 AM, Christian Borntraeger wrote: On 21.08.20 21:56, Tony Krowiak wrote: This patch refactor's the vfio_ap device driver to use the AP bus's ap_get_qdev() function to retrieve the vfio_ap_queue struct containing information about a queue that is bound to the vfio_ap device

[PATCH] mm: memcg: yield cpu when we fail to charge pages

2020-09-08 Thread Julius Hemanth Pitti
For non root CG, in try_charge(), we keep trying to charge until we succeed. On non-preemptive kernel, when we are OOM, this results in holding CPU forever. On SMP systems, this doesn't create a big problem because oom_reaper get a change to kill victim and make some free pages. However on a

[PATCH v2 v4.14.y 3/3] vfio-pci: Invalidate mmaps and block MMIO access on disabled memory

2020-09-08 Thread Ajay Kaher
From: Alex Williamson commit abafbc551fddede3e0a08dee1dcde08fc0eb8476 upstream. Accessing the disabled memory space of a PCI device would typically result in a master abort response on conventional PCI, or an unsupported request on PCI express. The user would generally see these as a -1

[PATCH v2 v4.14.y 0/3] vfio: Fix for CVE-2020-12888

2020-09-08 Thread Ajay Kaher
CVE-2020-12888 Kernel: vfio: access to disabled MMIO space of some devices may lead to DoS scenario The VFIO modules allow users (guest VMs) to enable or disable access to the devices' MMIO memory address spaces. If a user attempts to access (read/write) the devices' MMIO address space when

[PATCH v2 v4.14.y 2/3] vfio-pci: Fault mmaps to enable vma tracking

2020-09-08 Thread Ajay Kaher
From: Alex Williamson commit 11c4cd07ba111a09f49625f9e4c851d83daf0a22 upstream. Rather than calling remap_pfn_range() when a region is mmap'd, setup a vm_ops handler to support dynamic faulting of the range on access. This allows us to manage a list of vmas actively mapping the area that we can

[PATCH v2 v4.14.y 1/3] vfio/type1: Support faulting PFNMAP vmas

2020-09-08 Thread Ajay Kaher
From: Alex Williamson commit 41311242221e3482b20bfed10fa4d9db98d87016 upstream. With conversion to follow_pfn(), DMA mapping a PFNMAP range depends on the range being faulted into the vma. Add support to manually provide that, in the same way as done on KVM with hva_to_pfn_remapped().

Re: [PATCH v5] drm/msm/dp: Add DP compliance tests on Snapdragon Chipsets

2020-09-08 Thread Stephen Boyd
Quoting Kuogee Hsieh (2020-09-04 12:54:39) > add event thread to execute events serially from event queue. Also > timeout mode is supported which allow an event be deferred to be > executed at later time. Both link and phy compliant tests had been > done successfully. > > Changes in v2: > - Fix

[PATCH 4.19 01/88] HID: core: Correctly handle ReportSize being zero

2020-09-08 Thread Greg Kroah-Hartman
From: Marc Zyngier commit bce1305c0ece3dc549663605e567655dd701752c upstream. It appears that a ReportSize value of zero is legal, even if a bit non-sensical. Most of the HID code seems to handle that gracefully, except when computing the total size in bytes. When fed as input to memset, this

[PATCH 4.19 06/88] tty: serial: qcom_geni_serial: Drop __init from qcom_geni_console_setup

2020-09-08 Thread Greg Kroah-Hartman
From: John Stultz [ Upstream commit 975efc66d4e654207c17f939eb737ac591ac38fe ] When booting with heavily modularized config, the serial console may not be able to load until after init when modules that satisfy needed dependencies have time to load. Unfortunately, as qcom_geni_console_setup is

[PATCH 4.19 26/88] net: systemport: Fix memleak in bcm_sysport_probe

2020-09-08 Thread Greg Kroah-Hartman
From: Dinghao Liu [ Upstream commit 7ef1fc57301f3cef7201497aa27e89ccb91737fe ] When devm_kcalloc() fails, dev should be freed just like what we've done in the subsequent error paths. Fixes: 7b78be48a8eb6 ("net: systemport: Dynamically allocate number of TX rings") Signed-off-by: Dinghao Liu

[PATCH 4.19 03/88] perf record/stat: Explicitly call out event modifiers in the documentation

2020-09-08 Thread Greg Kroah-Hartman
From: Kim Phillips commit e48a73a312ebf19cc3d72aa74985db25c30757c1 upstream. Event modifiers are not mentioned in the perf record or perf stat manpages. Add them to orient new users more effectively by pointing them to the perf list manpage for details. Fixes: 2055fdaf8703 ("perf list:

Re: [PATCH] regmap: debugfs: potentially duplicate the name string of the config

2020-09-08 Thread Dafna Hirschfeld
Hi, thank you for the fast review, Am 08.09.20 um 17:35 schrieb Mark Brown: On Tue, Sep 08, 2020 at 05:28:59PM +0200, Dafna Hirschfeld wrote: In function regmap_debugfs_init the name of the regmap_config is assigned in a node of regmap_debugfs_early_list to be used later after regmap is

Re: [PATCH] kyber: Fix crash in kyber_finish_request()

2020-09-08 Thread Omar Sandoval
On Mon, Sep 07, 2020 at 10:41:16AM -0600, Jens Axboe wrote: > CC Omar > > On 9/7/20 1:43 AM, Yang Yang wrote: > > Kernel crash when requeue flush request. > > It can be reproduced as below: > > > > [2.517297] Unable to handle kernel paging request at virtual address > > ffd8071c0b00 > >

[PATCH 4.19 09/88] nvmet: Disable keep-alive timer when kato is cleared to 0h

2020-09-08 Thread Greg Kroah-Hartman
From: Amit Engel [ Upstream commit 0d3b6a8d213a30387b5104b2fb25376d18636f23 ] Based on nvme spec, when keep alive timeout is set to zero the keep-alive timer should be disabled. Signed-off-by: Amit Engel Signed-off-by: Sagi Grimberg Signed-off-by: Jens Axboe Signed-off-by: Sasha Levin ---

[PATCH 4.19 04/88] scsi: target: tcmu: Fix size in calls to tcmu_flush_dcache_range

2020-09-08 Thread Greg Kroah-Hartman
From: Bodo Stroesser commit 8c4e0f212398cdd1eb4310a5981d06a723cdd24f upstream. 1) If remaining ring space before the end of the ring is smaller then the next cmd to write, tcmu writes a padding entry which fills the remaining space at the end of the ring. Then tcmu calls

[PATCH 4.19 23/88] netfilter: nf_tables: incorrect enum nft_list_attributes definition

2020-09-08 Thread Greg Kroah-Hartman
From: Pablo Neira Ayuso [ Upstream commit da9125df854ea48a6240c66e8a67be06e2c12c03 ] This should be NFTA_LIST_UNSPEC instead of NFTA_LIST_UNPEC, all other similar attribute definitions are postfixed with _UNSPEC. Fixes: 96518518cc41 ("netfilter: add nftables") Signed-off-by: Pablo Neira Ayuso

[PATCH 4.19 22/88] netfilter: nf_tables: add NFTA_SET_USERDATA if not null

2020-09-08 Thread Greg Kroah-Hartman
From: Pablo Neira Ayuso [ Upstream commit 6f03bf43ee05b31d3822def2a80f11b3591c55b3 ] Kernel sends an empty NFTA_SET_USERDATA attribute with no value if userspace adds a set with no NFTA_SET_USERDATA attribute. Fixes: e6d8ecac9e68 ("netfilter: nf_tables: Add new attributes into nft_set to

[PATCH 4.19 21/88] MIPS: BMIPS: Also call bmips_cpu_setup() for secondary cores

2020-09-08 Thread Greg Kroah-Hartman
From: Florian Fainelli [ Upstream commit e14f633b66902615cf7faa5d032b45ab8b6fb158 ] The initialization done by bmips_cpu_setup() typically affects both threads of a given core, on 7435 which supports 2 cores and 2 threads, logical CPU number 2 and 3 would not run this initialization. Fixes:

[PATCH 4.19 27/88] ravb: Fixed to be able to unload modules

2020-09-08 Thread Greg Kroah-Hartman
From: Yuusuke Ashizuka [ Upstream commit 1838d6c62f57836639bd3d83e7855e0ee4f6defc ] When this driver is built as a module, I cannot rmmod it after insmoding it. This is because that this driver calls ravb_mdio_init() at the time of probe, and module->refcnt is incremented by

[PATCH 4.19 05/88] scsi: target: tcmu: Optimize use of flush_dcache_page

2020-09-08 Thread Greg Kroah-Hartman
From: Bodo Stroesser commit 3c58f737231e2c8cbf543a09d84d8c8e80e05e43 upstream. (scatter|gather)_data_area() need to flush dcache after writing data to or before reading data from a page in uio data area. The two routines are able to handle data transfer to/from such a page in fragments and

[PATCH 4.19 12/88] cpuidle: Fixup IRQ state

2020-09-08 Thread Greg Kroah-Hartman
From: Peter Zijlstra [ Upstream commit 49d9c5936314e44d314c605c39cce0fd947f9c3a ] Match the pattern elsewhere in this file. Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Steven Rostedt (VMware) Reviewed-by: Thomas Gleixner Acked-by: Rafael J. Wysocki Tested-by: Marco Elver Link:

Re: [RFC PATCH v2 2/3] mm: make pXd_addr_end() functions page-table entry aware

2020-09-08 Thread Dave Hansen
On 9/7/20 11:00 AM, Gerald Schaefer wrote: > x86: > add/remove: 0/0 grow/shrink: 2/0 up/down: 10/0 (10) > Function old new delta > vmemmap_populate 587 592 +5 > munlock_vma_pages_range 556 561

Re: [PATCH v1] x86/defconfigs: Unbreak 32-bit defconfig builds

2020-09-08 Thread Jarkko Nikula
Hi On 9/8/20 3:13 PM, Ingo Molnar wrote: * Andy Shevchenko wrote: After the commit 1d0e12fd3a84 ("x86/defconfigs: Refresh defconfig files") 32-bit builds using defconfig become broken because on x86_64 build host with no ARCH provided the default behaviour is to assume 64-bit independently

[PATCH 4.19 10/88] drm/msm/a6xx: fix gmu start on newer firmware

2020-09-08 Thread Greg Kroah-Hartman
From: Dmitry Baryshkov [ Upstream commit f5749d6181fa7df5ae741788e5d96f593d3a60b6 ] New Qualcomm firmware has changed a way it reports back the 'started' event. Support new register values. Signed-off-by: Dmitry Baryshkov Signed-off-by: Rob Clark Signed-off-by: Sasha Levin ---

[PATCH 5.4 110/129] blk-iocost: ioc_pd_free() shouldnt assume irq disabled

2020-09-08 Thread Greg Kroah-Hartman
From: Tejun Heo commit 5aeac7c4b16069aae49005f0a8d4526baa83341b upstream. ioc_pd_free() grabs irq-safe ioc->lock without ensuring that irq is disabled when it can be called with irq disabled or enabled. This has a small chance of causing A-A deadlocks and triggers lockdep splats. Use irqsave

HELLO DEAR .

2020-09-08 Thread Ahmed
Dear Friend, I know that this mail will come to you as a surprise as we have never met before, but need not to worry as I am contacting you independently of my investigation and no one is informed of this communication. I need your urgent assistance in transferring the sum of $11.3million

[PATCH 5.4 115/129] dm integrity: fix error reporting in bitmap mode after creation

2020-09-08 Thread Greg Kroah-Hartman
From: Mikulas Patocka commit e27fec66f0a94e35a35548bd0b29ae616e62ec62 upstream. The dm-integrity target did not report errors in bitmap mode just after creation. The reason is that the function integrity_recalc didn't clean up ic->recalc_bitmap as it proceeded with recalculation. Fix this by

Re: [PATCH v10 03/16] s390/vfio-ap: manage link between queue struct and matrix mdev

2020-09-08 Thread Tony Krowiak
On 9/4/20 4:15 AM, Christian Borntraeger wrote: On 21.08.20 21:56, Tony Krowiak wrote: diff --git a/drivers/s390/crypto/vfio_ap_private.h b/drivers/s390/crypto/vfio_ap_private.h index a2aa05bec718..57da703b549a 100644 --- a/drivers/s390/crypto/vfio_ap_private.h +++

[PATCH 5.4 111/129] dmaengine: dw-edma: Fix scatter-gather address calculation

2020-09-08 Thread Greg Kroah-Hartman
From: Gustavo Pimentel commit 05655541c9503bfd01af4e6cbd7f5a29ac748e6c upstream. Fix the source and destination physical address calculation of a peripheral device on scatter-gather implementation. This issue manifested during tests using a 64 bits architecture system. The abnormal behavior

[PATCH 5.4 113/129] dm writecache: handle DAX to partitions on persistent memory correctly

2020-09-08 Thread Greg Kroah-Hartman
From: Mikulas Patocka commit f9e040efcc28309e5c592f7e79085a9a52e31f58 upstream. The function dax_direct_access doesn't take partitions into account, it always maps pages from the beginning of the device. Therefore, persistent_memory_claim() must get the partition offset using get_start_sect()

[PATCH 5.4 126/129] mm/hugetlb: fix a race between hugetlb sysctl handlers

2020-09-08 Thread Greg Kroah-Hartman
From: Muchun Song commit 17743798d81238ab13050e8e2833699b54e15467 upstream. There is a race between the assignment of `table->data` and write value to the pointer of `table->data` in the __do_proc_doulongvec_minmax() on the other thread. CPU0: CPU1:

[PATCH 5.4 125/129] checkpatch: fix the usage of capture group ( ... )

2020-09-08 Thread Greg Kroah-Hartman
From: Mrinal Pandey commit 13e45417cedbfc44b1926124b1846f5ee8c6ba4a upstream. The usage of "capture group (...)" in the immediate condition after `&&` results in `$1` being uninitialized. This issues a warning "Use of uninitialized value $1 in regexp compilation at ./scripts/checkpatch.pl line

[PATCH 5.4 112/129] drm/amd/pm: avoid false alarm due to confusing softwareshutdowntemp setting

2020-09-08 Thread Greg Kroah-Hartman
From: Evan Quan commit 971df65cbf32da9bc9af52c1196ca504dd316086 upstream. Normally softwareshutdowntemp should be greater than Thotspotlimit. However, on some VEGA10 ASIC, the softwareshutdowntemp is 91C while Thotspotlimit is 105C. This seems not right and may trigger some false alarms.

Re: [PATCH v5 3/6] genirq/PM: Introduce IRQCHIP_ENABLE_WAKEUP_ON_SUSPEND flag

2020-09-08 Thread Doug Anderson
Hi, On Fri, Sep 4, 2020 at 2:54 AM Thomas Gleixner wrote: > > Doug, > > On Thu, Sep 03 2020 at 16:19, Doug Anderson wrote: > > On Thu, Sep 3, 2020 at 5:57 AM Thomas Gleixner wrote: > >>That pending interrupt will not prevent the machine from going into > >>suspend and if it's an edge

[PATCH 5.4 127/129] mm/khugepaged.c: fix khugepageds request size in collapse_file

2020-09-08 Thread Greg Kroah-Hartman
From: David Howells commit e5a59d308f52bb0052af5790c22173651b187465 upstream. collapse_file() in khugepaged passes PAGE_SIZE as the number of pages to be read to page_cache_sync_readahead(). The intent was probably to read a single page. Fix it to use the number of pages to the end of the

[PATCH 5.4 109/129] libata: implement ATA_HORKAGE_MAX_TRIM_128M and apply to Sandisks

2020-09-08 Thread Greg Kroah-Hartman
From: Tejun Heo commit 3b5455636fe26ea21b4189d135a424a6da016418 upstream. All three generations of Sandisk SSDs lock up hard intermittently. Experiments showed that disabling NCQ lowered the failure rate significantly and the kernel has been disabling NCQ for some models of SD7's and 8's, which

[PATCH 5.4 129/129] net: usb: Fix uninit-was-stored issue in asix_read_phy_addr()

2020-09-08 Thread Greg Kroah-Hartman
From: Himadri Pandya commit a092b7233f0e000cc6f2c71a49e2ecc6f917a5fc upstream. The buffer size is 2 Bytes and we expect to receive the same amount of data. But sometimes we receive less data and run into uninit-was-stored issue upon read. Hence modify the error check on the return value to

[PATCH 5.4 128/129] cfg80211: regulatory: reject invalid hints

2020-09-08 Thread Greg Kroah-Hartman
From: Johannes Berg commit 47caf685a6854593348f216e0b489b71c10cbe03 upstream. Reject invalid hints early in order to not cause a kernel WARN later if they're restored to or similar. Reported-by: syzbot+d451401ffd00a6067...@syzkaller.appspotmail.com Link:

Re: [PATCH net-next 0/7] net: hns3: misc updates

2020-09-08 Thread Jakub Kicinski
On Tue, 8 Sep 2020 10:59:47 +0800 Huazhong Tan wrote: > There are some misc updates for the HNS3 ethernet driver. > > #1 narrows two local variable range in hclgevf_reset_prepare_wait(). > #2 adds reset failure check in periodic service task. > #3~#7 adds some cleanups. Looks trivial:

Re: [PATCH v2 3/4] soundwire: qcom: add support for mmio soundwire master devices

2020-09-08 Thread Jonathan Marek
On 9/8/20 9:56 AM, Pierre-Louis Bossart wrote: @@ -764,8 +786,11 @@ static int qcom_swrm_probe(struct platform_device *pdev)   if (!ctrl->regmap)   return -EINVAL;   } else { -    /* Only WCD based SoundWire controller is supported */ -    return

Re: [PATCH 1/2] drm/msm/dpu: move vblank events to complete_commit()

2020-09-08 Thread abhinavk
On 2020-09-07 10:04, Rob Clark wrote: From: Rob Clark We could get a vblank event racing with the current atomic commit, resulting in sending the pageflip event to userspace early, causing tearing. On the other hand, complete_commit() ensures that the pending flush is complete.

RE: [PATCH] clk: imx: lpcg-scu: SW workaround for errata (e10858)

2020-09-08 Thread Peng Fan
> Subject: Re: [PATCH] clk: imx: lpcg-scu: SW workaround for errata (e10858) > > On 20-09-08 17:14:47, peng@nxp.com wrote: > > From: Peng Fan > > > > Back-to-back LPCG writes can be ignored by the LPCG register due to a > > HW bug. The writes need to be separated by at least 4 cycles of the

[PATCH 5.4 124/129] sdhci: tegra: Add missing TMCLK for data timeout

2020-09-08 Thread Greg Kroah-Hartman
From: Sowjanya Komatineni commit 8048822bac01936fda2c7b924a52131da81e6198 upstream. commit b5a84ecf025a ("mmc: tegra: Add Tegra210 support") Tegra210 and later has a separate sdmmc_legacy_tm (TMCLK) used by Tegra SDMMC hawdware for data timeout to achive better timeout than using SDCLK and

[PATCH 5.4 108/129] block: ensure bdi->io_pages is always initialized

2020-09-08 Thread Greg Kroah-Hartman
From: Jens Axboe commit de1b0ee490eafdf65fac9eef9925391a8369f2dc upstream. If a driver leaves the limit settings as the defaults, then we don't initialize bdi->io_pages. This means that file systems may need to work around bdi->io_pages == 0, which is somewhat messy. Initialize the default

Re: [PATCH] x86/msr: do not warn on writes to OC_MAILBOX

2020-09-08 Thread Jason A. Donenfeld
On Tue, Sep 8, 2020 at 8:01 PM Borislav Petkov wrote: > > On Tue, Sep 08, 2020 at 07:42:12PM +0200, Jason A. Donenfeld wrote: > > Are you prepared to track down all the MSRs that might maybe do > > something naughty? > > I'm not prepared - that's why this MSR filtering. To block *all* direct >

[PATCH 5.4 120/129] mm: slub: fix conversion of freelist_corrupted()

2020-09-08 Thread Greg Kroah-Hartman
From: Eugeniu Rosca commit dc07a728d49cf025f5da2c31add438d839d076c0 upstream. Commit 52f23478081ae0 ("mm/slub.c: fix corrupted freechain in deactivate_slab()") suffered an update when picked up from LKML [1]. Specifically, relocating 'freelist = NULL' into 'freelist_corrupted()' created a

[PATCH 5.4 123/129] perf record: Correct the help info of option "--no-bpf-event"

2020-09-08 Thread Greg Kroah-Hartman
From: Wei Li commit a060c1f12b525ba828f871eff3127dabf8daa1e6 upstream. The help info of option "--no-bpf-event" is wrongly described as "record bpf events", correct it. Committer testing: $ perf record -h bpf Usage: perf record [] [] or: perf record [] -- []

[PATCH 5.4 119/129] dm thin metadata: Fix use-after-free in dm_bm_set_read_only

2020-09-08 Thread Greg Kroah-Hartman
From: Ye Bin commit 3a653b205f29b3f9827a01a0c88bfbcb0d169494 upstream. The following error ocurred when testing disk online/offline: [ 301.798344] device-mapper: thin: 253:5: aborting current metadata transaction [ 301.848441] device-mapper: thin: 253:5: failed to abort metadata transaction

Re: [PATCH v5 00/80] drm/vc4: Support BCM2711 Display Pipeline

2020-09-08 Thread Maxime Ripard
Hi Hoegeun, On Mon, Sep 07, 2020 at 08:49:12PM +0900, Hoegeun Kwon wrote: > On 9/3/20 5:00 PM, Maxime Ripard wrote: > > Hi everyone, > > > > Here's a (pretty long) series to introduce support in the VC4 DRM driver > > for the display pipeline found in the BCM2711 (and thus the RaspberryPi 4). > >

[PATCH 5.4 122/129] vfio/pci: Fix SR-IOV VF handling with MMIO blocking

2020-09-08 Thread Greg Kroah-Hartman
From: Alex Williamson commit ebfa440ce38b7e2e04c3124aa89c8a9f4094cf21 upstream. SR-IOV VFs do not implement the memory enable bit of the command register, therefore this bit is not set in config space after pci_enable_device(). This leads to an unintended difference between PF and VF in

[PATCH 5.4 117/129] dm cache metadata: Avoid returning cmd->bm wild pointer on error

2020-09-08 Thread Greg Kroah-Hartman
From: Ye Bin commit d16ff19e69ab57e08bf908faaacbceaf660249de upstream. Maybe __create_persistent_data_objects() caller will use PTR_ERR as a pointer, it will lead to some strange things. Signed-off-by: Ye Bin Cc: sta...@vger.kernel.org Signed-off-by: Mike Snitzer Signed-off-by: Greg

[PATCH 5.4 121/129] mm: madvise: fix vma user-after-free

2020-09-08 Thread Greg Kroah-Hartman
From: Yang Shi commit 7867fd7cc44e63c6673cd0f8fea155456d34d0de upstream. The syzbot reported the below use-after-free: BUG: KASAN: use-after-free in madvise_willneed mm/madvise.c:293 [inline] BUG: KASAN: use-after-free in madvise_vma mm/madvise.c:942 [inline] BUG: KASAN: use-after-free

[PATCH 5.4 074/129] vfio-pci: Fault mmaps to enable vma tracking

2020-09-08 Thread Greg Kroah-Hartman
From: Ajay Kaher commit 11c4cd07ba111a09f49625f9e4c851d83daf0a22 upstream. Rather than calling remap_pfn_range() when a region is mmap'd, setup a vm_ops handler to support dynamic faulting of the range on access. This allows us to manage a list of vmas actively mapping the area that we can

[PATCH 5.4 118/129] dm thin metadata: Avoid returning cmd->bm wild pointer on error

2020-09-08 Thread Greg Kroah-Hartman
From: Ye Bin commit 219403d7e56f9b716ad80ab87db85d29547ee73e upstream. Maybe __create_persistent_data_objects() caller will use PTR_ERR as a pointer, it will lead to some strange things. Signed-off-by: Ye Bin Cc: sta...@vger.kernel.org Signed-off-by: Mike Snitzer Signed-off-by: Greg

[PATCH 5.4 107/129] block: allow for_each_bvec to support zero len bvec

2020-09-08 Thread Greg Kroah-Hartman
From: Ming Lei commit 7e24969022cbd61ddc586f14824fc205661bb124 upstream. Block layer usually doesn't support or allow zero-length bvec. Since commit 1bdc76aea115 ("iov_iter: use bvec iterator to implement iterate_bvec()"), iterate_bvec() switches to bvec iterator. However, Al mentioned that

INFO: trying to register non-static key in call_timer_fn

2020-09-08 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:59126901 Merge tag 'perf-tools-fixes-for-v5.9-2020-09-03' .. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=104cc1f990 kernel config: https://syzkaller.appspot.com/x/.config?x=3c5f6ce8d5b68299

[PATCH 5.4 081/129] btrfs: drop path before adding new uuid tree entry

2020-09-08 Thread Greg Kroah-Hartman
From: Josef Bacik commit 9771a5cf937129307d9f58922d60484d58ababe7 upstream. With the conversion of the tree locks to rwsem I got the following lockdep splat: == WARNING: possible circular locking dependency detected

[PATCH 5.4 078/129] ext2: dont update mtime on COW faults

2020-09-08 Thread Greg Kroah-Hartman
From: Mikulas Patocka commit 1ef6ea0efe8e68d0299dad44c39dc6ad9e5d1f39 upstream. When running in a dax mode, if the user maps a page with MAP_PRIVATE and PROT_WRITE, the ext2 filesystem would incorrectly update ctime and mtime when the user hits a COW fault. This breaks building of the Linux

[PATCH 5.4 082/129] btrfs: allocate scrub workqueues outside of locks

2020-09-08 Thread Greg Kroah-Hartman
From: Josef Bacik commit e89c4a9c8e6ce3a84cab4f342687d3fbbb1234eb upstream. I got the following lockdep splat while testing: == WARNING: possible circular locking dependency detected 5.8.0-rc7-00172-g021118712e59 #932 Not tainted

[PATCH 5.4 083/129] btrfs: set the correct lockdep class for new nodes

2020-09-08 Thread Greg Kroah-Hartman
From: Josef Bacik commit ad24466588ab7d7c879053c5afd919b0c555fec0 upstream. When flipping over to the rw_semaphore I noticed I'd get a lockdep splat in replace_path(), which is weird because we're swapping the reloc root with the actual target root. Turns out this is because we're using the

[PATCH 5.4 105/129] media: rc: uevent sysfs file races with rc_unregister_device()

2020-09-08 Thread Greg Kroah-Hartman
From: Sean Young commit 4f0835d6677dc69263f90f976524cb92b257d9f4 upstream. Only report uevent file contents if device still registered, else we might read freed memory. Reported-by: syzbot+ceef16277388d6f24...@syzkaller.appspotmail.com Cc: Hillf Danton Cc: # 4.16+ Signed-off-by: Sean Young

[PATCH 5.4 079/129] xfs: dont update mtime on COW faults

2020-09-08 Thread Greg Kroah-Hartman
From: Mikulas Patocka commit b17164e258e3888d376a7434415013175d637377 upstream. When running in a dax mode, if the user maps a page with MAP_PRIVATE and PROT_WRITE, the xfs filesystem would incorrectly update ctime and mtime when the user hits a COW fault. This breaks building of the Linux

[PATCH net-next] net: wimax: i2400m: fix 'msg_skb' kernel-doc warning in i2400m_msg_to_dev()

2020-09-08 Thread Wang Hai
Fixes the following W=1 kernel build warning(s): drivers/net/wimax/i2400m/control.c:709: warning: Excess function parameter 'msg_skb' description in 'i2400m_msg_to_dev' This parameter is not in use. Remove it. Reported-by: Hulk Robot Signed-off-by: Wang Hai ---

[PATCH 5.4 103/129] mmc: sdhci-pci: Fix SDHCI_RESET_ALL for CQHCI for Intel GLK-based controllers

2020-09-08 Thread Greg Kroah-Hartman
From: Adrian Hunter commit df57d73276b863af1debc48546b0e59e44998a55 upstream. For Intel controllers, SDHCI_RESET_ALL resets also CQHCI registers. Normally, SDHCI_RESET_ALL is not used while CQHCI is enabled, but that can happen on the error path. e.g. if mmc_cqe_recovery() fails,

[PATCH 5.4 077/129] tracing/kprobes, x86/ptrace: Fix regs argument order for i386

2020-09-08 Thread Greg Kroah-Hartman
From: Vamshi K Sthambamkadi commit 2356bb4b8221d7dc8c7beb810418122ed90254c9 upstream. On i386, the order of parameters passed on regs is eax,edx,and ecx (as per regparm(3) calling conventions). Change the mapping in regs_get_kernel_argument(), so that arg1=ax arg2=dx, and arg3=cx. Running the

[PATCH 5.4 104/129] media: rc: do not access device via sysfs after rc_unregister_device()

2020-09-08 Thread Greg Kroah-Hartman
From: Sean Young commit a2e2d73fa28136598e84db9d021091f1b98cbb1a upstream. Device drivers do not expect to have change_protocol or wakeup re-programming to be accesed after rc_unregister_device(). This can cause the device driver to access deallocated resources. Cc: # 4.16+ Signed-off-by:

[PATCH 5.8 130/186] btrfs: block-group: fix free-space bitmap threshold

2020-09-08 Thread Greg Kroah-Hartman
From: Marcos Paulo de Souza commit e3e39c72b99f93bbd0420d38c858e7c4a061bb63 upstream. [BUG] After commit 9afc66498a0b ("btrfs: block-group: refactor how we read one block group item"), cache->length is being assigned after calling btrfs_create_block_group_cache. This causes a problem since

[PATCH 5.4 080/129] ARC: perf: dont bail setup if pct irq missing in device-tree

2020-09-08 Thread Greg Kroah-Hartman
From: Vineet Gupta commit feb92d7d3813456c11dce215b3421801a78a8986 upstream. Current code inadventely bails if hardware supports sampling/overflow interrupts, but the irq is missing from device tree. | | # perf stat -e cycles,instructions,major-faults,minor-faults ../hackbench | Running with

Re: [PATCH 4/5] drm/panfrost: add amlogic reset quirk callback

2020-09-08 Thread Alyssa Rosenzweig
> Since the documentation of the GPU cores are not public, we do not know what > does these > values, but they permit having a fully functional GPU running with Panfrost. Since this is Amlogic magic, not specifically GPU, I'd rephrase this as "Since the Amlogic's integration of the GPU cores

[PATCH 5.4 097/129] ALSA: hda/realtek: Add quirk for Samsung Galaxy Book Ion NT950XCJ-X716A

2020-09-08 Thread Greg Kroah-Hartman
From: Adrien Crivelli commit 8bcea6cb2cbc1f749e574954569323dec5e2920e upstream. The Galaxy Book Ion NT950XCJ-X716A (15 inches) uses the same ALC298 codec as other Samsung laptops which have the no headphone sound bug. I confirmed on my own hardware that this fixes the bug. This also correct

[PATCH 5.4 095/129] ALSA: hda - Fix silent audio output and corrupted input on MSI X570-A PRO

2020-09-08 Thread Greg Kroah-Hartman
From: Dan Crawford commit 15cbff3fbbc631952c346744f862fb294504b5e2 upstream. Following Christian Lachner's patch for Gigabyte X570-based motherboards, also patch the MSI X570-A PRO motherboard; the ALC1220 codec requires the same workaround for Clevo laptops to enforce the DAC/mixer connection

Re: [PATCH 5/5] drm/panfrost: add Amlogic GPU integration quirks

2020-09-08 Thread Alyssa Rosenzweig
Reviewed-by: Alyssa Rosenzweig > This adds the required GPU quirks, including the quirk in the PWR registers > at the GPU > reset time and the IOMMU quirk for shareability issues observed on G52 in > Amlogic G12B SoCs. > > Signed-off-by: Neil Armstrong > --- >

<    1   2   3   4   5   6   7   8   9   10   >