[PATCH 4.14 36/65] thermal: ti-soc-thermal: Fix bogus thermal shutdowns for omap4430

2020-09-08 Thread Greg Kroah-Hartman
From: Tony Lindgren [ Upstream commit 30d24faba0532d6972df79a1bf060601994b5873 ] We can sometimes get bogus thermal shutdowns on omap4430 at least with droid4 running idle with a battery charger connected: thermal thermal_zone0: critical temperature reached (143 C), shutting down Dumping out

[PATCH 4.14 33/65] drm/radeon: Prefer lower feedback dividers

2020-09-08 Thread Greg Kroah-Hartman
From: Kai-Heng Feng [ Upstream commit fc8c70526bd30733ea8667adb8b8ffebea30a8ed ] Commit 2e26ccb119bd ("drm/radeon: prefer lower reference dividers") fixed screen flicker for HP Compaq nx9420 but breaks other laptops like Asus X50SL. Turns out we also need to favor lower feedback dividers.

Re: [PATCH -next] fork: silence a false postive warning in __mmdrop

2020-09-08 Thread peterz
On Tue, Sep 08, 2020 at 12:50:44PM -0400, Qian Cai wrote: > > No, you're talking nonsense. We must not free @mm when > > 'current->active_mm == mm', never. > > Yes, you are right. It still trigger this below on powerpc with today's > linux-next by fuzzing for a while (saw a few times on recent

[PATCH 4.14 34/65] tg3: Fix soft lockup when tg3_reset_task() fails.

2020-09-08 Thread Greg Kroah-Hartman
From: Michael Chan [ Upstream commit 556699341efa98243e08e34401b3f601da91f5a3 ] If tg3_reset_task() fails, the device state is left in an inconsistent state with IFF_RUNNING still set but NAPI state not enabled. A subsequent operation, such as ifdown or AER error can cause it to soft lock up

[PATCH 4.14 35/65] iommu/vt-d: Serialize IOMMU GCMD register modifications

2020-09-08 Thread Greg Kroah-Hartman
From: Lu Baolu [ Upstream commit 6e4e9ec65078093165463c13d4eb92b3e8d7b2e8 ] The VT-d spec requires (10.4.4 Global Command Register, GCMD_REG General Description) that: If multiple control fields in this register need to be modified, software must serialize the modifications through multiple

[PATCH 4.14 27/65] bnxt_en: Check for zero dir entries in NVRAM.

2020-09-08 Thread Greg Kroah-Hartman
From: Vasundhara Volam [ Upstream commit dbbfa96ad920c50d58bcaefa57f5f33ceef9d00e ] If firmware goes into unstable state, HWRM_NVM_GET_DIR_INFO firmware command may return zero dir entries. Return error in such case to avoid zero length dma buffer request. Fixes: c0c050c58d84 ("bnxt_en: New

[PATCH 4.14 26/65] gtp: add GTPA_LINK info to msg sent to userspace

2020-09-08 Thread Greg Kroah-Hartman
From: Nicolas Dichtel [ Upstream commit b274e47d9e3f4dcd4ad4028a316ec22dc4533ac7 ] During a dump, this attribute is essential, it enables the userspace to know on which interface the context is linked to. Fixes: 459aa660eb1d ("gtp: add initial driver for datapath of GPRS Tunneling Protocol

[PATCH 4.14 32/65] fix regression in "epoll: Keep a reference on files added to the check list"

2020-09-08 Thread Greg Kroah-Hartman
From: Al Viro [ Upstream commit 77f4689de17c0887775bb77896f4cc11a39bf848 ] epoll_loop_check_proc() can run into a file already committed to destruction; we can't grab a reference on those and don't need to add them to the set for reverse path check anyway. Tested-by: Marc Zyngier Fixes:

[PATCH 4.14 25/65] dmaengine: pl330: Fix burst length if burst size is smaller than bus width

2020-09-08 Thread Greg Kroah-Hartman
From: Marek Szyprowski [ Upstream commit 0661cef675d37e2c4b66a996389ebeae8568e49e ] Move the burst len fixup after setting the generic value for it. This finally enables the fixup introduced by commit 137bd11090d8 ("dmaengine: pl330: Align DMA memcpy operations to MFIFO width"), which otherwise

[PATCH 4.14 37/65] include/linux/log2.h: add missing () around n in roundup_pow_of_two()

2020-09-08 Thread Greg Kroah-Hartman
From: Jason Gunthorpe [ Upstream commit 428fc0aff4e59399ec719ffcc1f7a5d29a4ee476 ] Otherwise gcc generates warnings if the expression is complicated. Fixes: 312a0c170945 ("[PATCH] LOG2: Alter roundup_pow_of_two() so that it can use a ilog2() on a constant") Signed-off-by: Jason Gunthorpe

[PATCH 4.14 23/65] 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

Re: [PATCH] SELinux: Measure state and hash of policy using IMA

2020-09-08 Thread Stephen Smalley
On Mon, Sep 7, 2020 at 5:39 PM Lakshmi Ramasubramanian wrote: > > Critical data structures of security modules are currently not measured. > Therefore an attestation service, for instance, would not be able to > attest whether the security modules are always operating with the policies > and

[PATCH 4.19 80/88] KVM: arm64: Add kvm_extable for vaxorcism code

2020-09-08 Thread Greg Kroah-Hartman
From: James Morse commit e9ee186bb735bfc17fa81dbc9aebf268aee5b41e upstream. KVM has a one instruction window where it will allow an SError exception to be consumed by the hypervisor without treating it as a hypervisor bug. This is used to consume asynchronous external abort that were caused by

[PATCH 4.14 08/65] 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:

[PATCH 4.19 75/88] 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

Re: [PATCH] cgroup: Delete unnecessary if statement in css_visible()

2020-09-08 Thread Hao Lee
Hello, ping On Sat, Aug 29, 2020 at 10:03:16AM +, Hao Lee wrote: > css_visible() is called in either cgroup_apply_control_enable() > or cgroup_apply_control_disable(). > In cgroup_apply_control_enable(), we have checked ss_mask before calling > css_visible(), so there is no need to do the

Re: v5.9-rc3-rt3 boot time networking lockdep splat

2020-09-08 Thread Sebastian Andrzej Siewior
On 2020-09-05 06:47:29 [+0200], Mike Galbraith wrote: > [ 22.024936] == > [ 22.024936] WARNING: possible circular locking dependency detected > [ 22.024937] 5.9.0.gc70672d-rt3-rt #8 Tainted: GE > [ 22.024938]

[PATCH 4.14 28/65] bnxt_en: Fix PCI AER error recovery flow

2020-09-08 Thread Greg Kroah-Hartman
From: Vasundhara Volam [ Upstream commit df3875ec550396974b1d8a518bd120d034738236 ] When a PCI error is detected the PCI state could be corrupt, save the PCI state after initialization and restore it after the slot reset. Fixes: 6316ea6db93d ("bnxt_en: Enable AER support.") Signed-off-by:

[PATCH 4.14 29/65] nvmet-fc: Fix a missed _irqsave version of spin_lock in nvmet_fc_fod_op_done()

2020-09-08 Thread Greg Kroah-Hartman
From: Christophe JAILLET [ Upstream commit 70e37988db94aba607d5491a94f80ba08e399b6b ] The way 'spin_lock()' and 'spin_lock_irqsave()' are used is not consistent in this function. Use 'spin_lock_irqsave()' also here, as there is no guarantee that interruptions are disabled at that point,

[rcu:dev.2020.09.04b] BUILD SUCCESS e6195051140a6189b588b79e208e380dd8504a13

2020-09-08 Thread kernel test robot
randconfig-a004-20200908 i386 randconfig-a005-20200908 i386 randconfig-a006-20200908 i386 randconfig-a002-20200908 i386 randconfig-a001-20200908 i386 randconfig-a003-20200908 i386 randconfig-a004

[PATCH 4.14 09/65] s390: dont trace preemption in percpu macros

2020-09-08 Thread Greg Kroah-Hartman
From: Sven Schnelle [ Upstream commit 1196f12a2c960951d02262af25af0bb1775ebcc2 ] Since commit a21ee6055c30 ("lockdep: Change hardirq{s_enabled,_context} to per-cpu variables") the lockdep code itself uses percpu variables. This leads to recursions because the percpu macros are calling

[PATCH 4.14 14/65] 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

Re: [RFC PATCH v2 1/3] mm/gup: fix gup_fast with dynamic page table folding

2020-09-08 Thread Gerald Schaefer
On Tue, 8 Sep 2020 07:30:50 -0700 Dave Hansen wrote: > On 9/7/20 11:00 AM, Gerald Schaefer wrote: > > Commit 1a42010cdc26 ("s390/mm: convert to the generic get_user_pages_fast > > code") introduced a subtle but severe bug on s390 with gup_fast, due to > > dynamic page table folding. > > Would

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

2020-09-08 Thread Borislav Petkov
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 MSR accesses from userspace in the future. > Does `dd` warn when you

[PATCH 4.14 00/65] 4.14.197-rc1 review

2020-09-08 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.14.197 release. There are 65 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

[PATCH 4.14 07/65] ceph: dont allow setlease on cephfs

2020-09-08 Thread Greg Kroah-Hartman
From: Jeff Layton [ Upstream commit 496ceaf12432b3d136dcdec48424312e71359ea7 ] Leases don't currently work correctly on kcephfs, as they are not broken when caps are revoked. They could eventually be implemented similarly to how we did them in libcephfs, but for now don't allow them. [

Re: [PATCH] blkcg: add plugging support for punt bio

2020-09-08 Thread Tejun Heo
On Sat, Sep 05, 2020 at 11:25:03AM +, Tianxianting wrote: > Hi jens,tj > Could you share a couple of minutes to comment it? > I really appreciate it The result looks fine to me but can you please summarize that in the commit message of the patch? Thanks. -- tejun

Re: [PATCH v4 11/23] device-dax: Kill dax_kmem_res

2020-09-08 Thread David Hildenbrand
>>> + release_mem_region(range.start, range_len()); >> >> remove_memory() does a release_mem_region_adjustable(). Don't you >> actually want to release the *unaligned* region you requested? >> > Isn't it what we're doing here? > (The release_mem_region_adjustable() is using the same >

[PATCH 4.14 15/65] dmaengine: at_hdmac: check return value of of_find_device_by_node() in at_dma_xlate()

2020-09-08 Thread Greg Kroah-Hartman
From: Yu Kuai [ Upstream commit 0cef8e2c5a07d482ec907249dbd6687e8697677f ] The reurn value of of_find_device_by_node() is not checked, thus null pointer dereference will be triggered if of_find_device_by_node() failed. Fixes: bbe89c8e3d59 ("at_hdmac: move to generic DMA binding")

[PATCH 4.14 24/65] net: arc_emac: Fix memleak in arc_mdio_probe

2020-09-08 Thread Greg Kroah-Hartman
From: Dinghao Liu [ Upstream commit e2d79cd8875fa8c3cc7defa98a8cc99a1ed0c62f ] When devm_gpiod_get_optional() fails, bus should be freed just like when of_mdiobus_register() fails. Fixes: 1bddd96cba03d ("net: arc_emac: support the phy reset for emac driver") Signed-off-by: Dinghao Liu

Re: [PATCH 04/12] dma-mapping: fix DMA_OPS dependencies

2020-09-08 Thread Sergei Shtylyov
Hello! On 9/8/20 7:47 PM, Christoph Hellwig wrote: > Driver that select DMA_OPS need to depend on HAS_DMA support to > work. The vop driver was missing that dependency, so add it, and also > add a nother depends in DMA_OPS itself. That won't fix the issue due Another? :-) > to how the

[PATCH 4.19 81/88] KVM: arm64: Defer guest entry when an asynchronous exception is pending

2020-09-08 Thread Greg Kroah-Hartman
From: James Morse commit 5dcd0fdbb492d49dac6bf21c436dfcb5ded0a895 upstream. SError that occur during world-switch's entry to the guest will be accounted to the guest, as the exception is masked until we enter the guest... but we want to attribute the SError as precisely as possible. Reading

[PATCH 4.14 05/65] 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.14 03/65] 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:

[PATCH 4.14 12/65] batman-adv: Avoid uninitialized chaddr when handling DHCP

2020-09-08 Thread Greg Kroah-Hartman
From: Sven Eckelmann [ Upstream commit 303216e76dcab6049c9d42390b1032f0649a8206 ] The gateway client code can try to optimize the delivery of DHCP packets to avoid broadcasting them through the whole mesh. But also transmissions to the client can be optimized by looking up the destination via

[PATCH 4.19 79/88] 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 4.19 84/88] 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 4.19 82/88] KVM: arm64: Survive synchronous exceptions caused by AT instructions

2020-09-08 Thread Greg Kroah-Hartman
From: James Morse commit 88a84b3966bcc3f309cdb76092a9892c0260 upstream. KVM doesn't expect any synchronous exceptions when executing, any such exception leads to a panic(). AT instructions access the guest page tables, and can cause a synchronous external abort to be taken. The arm-arm is

[PATCH 4.14 02/65] 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.14 01/65] 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 83/88] KVM: arm64: Set HCR_EL2.PTW to prevent AT taking synchronous exception

2020-09-08 Thread Greg Kroah-Hartman
From: James Morse commit 71a7f8cb1ca4ca7214a700b1243626759b6c11d4 upstream. AT instructions do a translation table walk and return the result, or the fault in PAR_EL1. KVM uses these to find the IPA when the value is not provided by the CPU in HPFAR_EL1. If a translation table walk causes an

[PATCH 4.14 10/65] xen/xenbus: Fix granting of vmallocd memory

2020-09-08 Thread Greg Kroah-Hartman
From: Simon Leiner [ Upstream commit d742db70033c745e410523e00522ee0cfe2aa416 ] On some architectures (like ARM), virt_to_gfn cannot be used for vmalloc'd memory because of its reliance on virt_to_phys. This patch introduces a check for vmalloc'd addresses and obtains the PFN using

[PATCH 4.14 04/65] 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

[PATCH 4.19 87/88] 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 00/12] x86/platform/uv: Updates for UV5

2020-09-08 Thread Mike Travis
On 9/8/2020 8:20 AM, Greg KH wrote: On Mon, Sep 07, 2020 at 01:54:30PM -0500, Mike Travis wrote: Subject: [PATCH 00/12] x86/platform/uv: Updates for UV5 Add changes needed for new UV5 UV architecture. Chief among the changes are 52 bits of physical memory address and 57 bits of virtual

[PATCH 4.14 11/65] dmaengine: of-dma: Fix of_dma_router_xlates of_dma_xlate handling

2020-09-08 Thread Greg Kroah-Hartman
From: Peter Ujfalusi [ Upstream commit 5b2aa9f918f6837ae943557f8cec02c34fcf80e7 ] of_dma_xlate callback can return ERR_PTR as well NULL in case of failure. If error code is returned (not NULL) then the route should be released and the router should not be registered for the channel. Fixes:

[PATCH 4.14 06/65] 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 76/88] 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()

Re: [PATCH V2] ASoC: Intel: boards: Use FS as nau8825 sysclk in nau88125_* machine

2020-09-08 Thread Pierre-Louis Bossart
On 9/8/20 12:42 PM, Radosław Biernacki wrote: Sorry for missing the response for so long. Somehow lost this thread in my mailbox. That happens to all of us! śr., 6 maj 2020 o 00:04 Pierre-Louis Bossart napisał(a): This single fix address two issues on machines with nau88125: 1) Audio

[PATCH 4.19 78/88] 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 4.19 77/88] 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 013/129] 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:

[PATCH 4.19 85/88] 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.8 155/186] io_uring: fix removing the wrong file in __io_sqe_files_update()

2020-09-08 Thread Greg Kroah-Hartman
From: Jiufei Xue commit 98dfd5024a2e9e170b85c07078e2d89f20a5dfbd upstream. Index here is already the position of the file in fixed_file_table, we should not use io_file_from_index() again to get it. Otherwise, the wrong file which still in use may be released unexpectedly. Cc:

[PATCH 5.8 178/186] kconfig: streamline_config.pl: check defined(ENV variable) before using it

2020-09-08 Thread Greg Kroah-Hartman
From: Randy Dunlap commit a73fbfce2cc28883f659414d598e6e60ca2214b4 upstream. A user reported: 'Use of uninitialized value $ENV{"LMC_KEEP"} in split at ./scripts/kconfig/streamline_config.pl line 596.' so first check that $ENV{LMC_KEEP} is defined before trying to use it. Fixes: c027b02d89fd

[PATCH 5.8 183/186] 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.8 182/186] mm/hugetlb: try preferred node first when alloc gigantic page from cma

2020-09-08 Thread Greg Kroah-Hartman
From: Li Xinhai commit 953f064aa6b29debcc211869b60bd59f26d19c34 upstream. Since commit cf11e85fc08c ("mm: hugetlb: optionally allocate gigantic hugepages using cma"), the gigantic page would be allocated from node which is not the preferred node, although there are pages available from that

[PATCH 5.8 165/186] 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 012/129] drm/omap: fix incorrect lock state

2020-09-08 Thread Greg Kroah-Hartman
From: Tomi Valkeinen [ Upstream commit 7fd5b25499bcec157dd4de9a713425efcf4571cd ] After commit 92cc68e35863c1c61c449efa2b2daef6e9926048 ("drm/vblank: Use spin_(un)lock_irq() in drm_crtc_vblank_on()") omapdrm locking is broken: WARNING: inconsistent lock state 5.8.0-rc2-00483-g92cc68e35863 #13

[PATCH 5.8 176/186] io_uring: no read/write-retry on -EAGAIN error and O_NONBLOCK marked file

2020-09-08 Thread Greg Kroah-Hartman
From: Jens Axboe commit 355afaeb578abac907217c256a844cfafb0337b2 upstream. Actually two things that need fixing up here: - The io_rw_reissue() -EAGAIN retry is explicit to block devices and regular files, so don't ever attempt to do that on other types of files. - If we hit -EAGAIN on a

Re: [PATCH v2 0/4] drm/vc4: Support HDMI QHD or higher output

2020-09-08 Thread Nicolas Saenz Julienne
On Tue, 2020-09-01 at 13:07 +0900, Hoegeun Kwon wrote: > Hi everyone, > > There is a problem that the output does not work at a resolution > exceeding FHD. To solve this, we need to adjust the bvb clock at a > resolution exceeding FHD. > > Rebased on top of next-20200708 and [1]. > > [1] :

Re: [GIT PULL] First batch of KVM changes for Linux 5.9

2020-09-08 Thread Ingo Molnar
hi, * Paolo Bonzini wrote: > Paolo Bonzini (11): > Merge branch 'kvm-async-pf-int' into HEAD kvmtool broke in this merge window, hanging during bootup right after CPU bringup: [1.289404] #63 [0.012468] kvm-clock: cpu 63, msr 6ff69fc1, secondary cpu clock [0.012468]

[PATCH 5.4 024/129] batman-adv: Fix own OGM check in aggregated OGMs

2020-09-08 Thread Greg Kroah-Hartman
From: Linus Lüssing [ Upstream commit d8bf0c01642275c7dca1e5d02c34e4199c200b1f ] The own OGM check is currently misplaced and can lead to the following issues: For one thing we might receive an aggregated OGM from a neighbor node which has our own OGM in the first place. We would then not only

Re: [PATCH v5 2/3] dt-bindings: media: imx274: Add optional input clock and supplies

2020-09-08 Thread Sowjanya Komatineni
On 9/8/20 7:34 AM, Jacopo Mondi wrote: Hi Sakari, Sowjanya, On Tue, Sep 08, 2020 at 12:33:41PM +0300, Sakari Ailus wrote: On Thu, Sep 03, 2020 at 09:40:57AM -0700, Sowjanya Komatineni wrote: On 9/3/20 9:35 AM, Jacopo Mondi wrote: Hi Sowjanya, On Thu, Sep 03, 2020 at 09:05:27AM -0700,

[PATCH 5.8 175/186] mm/rmap: fixup copying of soft dirty and uffd ptes

2020-09-08 Thread Greg Kroah-Hartman
From: Alistair Popple commit ad7df764b7e1c7dc64e016da7ada2e3e1bb90700 upstream. During memory migration a pte is temporarily replaced with a migration swap pte. Some pte bits from the existing mapping such as the soft-dirty and uffd write-protect bits are preserved by copying these to the

[PATCH 5.8 171/186] 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

[Intel-gfx][PATCH v2] drm/i915/gvt: Prevent NULL pointer dereference in intel_vgpu_reg_rw_edid()

2020-09-08 Thread Alejandro Sior
In the function intel_vgpu_reg_rw_edid of kvmgt.c, pos can be equal to NULL for GPUs that do not properly support EDID. In those cases, when pos gets passed to the handle_edid functions, it gets added a short offset then it's dereferenced in memcpy's, leading to NULL pointer dereference kernel

[PATCH 5.4 035/129] net: hns: Fix memleak in hns_nic_dev_probe

2020-09-08 Thread Greg Kroah-Hartman
From: Dinghao Liu [ Upstream commit 100e3345c6e719d2291e1efd5de311cc24bb9c0b ] hns_nic_dev_probe allocates ndev, but not free it on two error handling paths, which may lead to memleak. Fixes: 63434888aaf1b ("net: hns: net: hns: enet adds support of acpi") Signed-off-by: Dinghao Liu

[PATCH 5.4 004/129] 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

[PATCH 5.8 139/186] ALSA: hda/hdmi: always check pin power status in i915 pin fixup

2020-09-08 Thread Greg Kroah-Hartman
From: Kai Vehmanen commit 858e0ad9301d1270c02b5aca97537d2d6ee9dd68 upstream. When system is suspended with active audio playback to HDMI/DP, two alternative sequences can happen at resume: a) monitor is detected first and ALSA prepare follows normal stream setup sequence, or b) ALSA

[PATCH 5.4 021/129] fsldma: fix very broken 32-bit ppc ioread64 functionality

2020-09-08 Thread Greg Kroah-Hartman
From: Linus Torvalds [ Upstream commit 0a4c56c80f90797e9b9f8426c6aae4c0cf1c9785 ] Commit ef91bb196b0d ("kernel.h: Silence sparse warning in lower_32_bits") caused new warnings to show in the fsldma driver, but that commit was not to blame: it only exposed some very incorrect code that tried to

[PATCH 5.8 184/186] 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.8 167/186] 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

[PATCH 5.4 002/129] drm/msm/dpu: Fix scale params in plane validation

2020-09-08 Thread Greg Kroah-Hartman
From: Kalyan Thota [ Upstream commit 4c978caf08aa155bdeadd9e2d4b026d4ce97ebd0 ] Plane validation uses an API drm_calc_scale which will return src/dst value as a scale ratio. when viewing the range on a scale the values should fall in as Upscale ratio < Unity scale < Downscale ratio for

[PATCH 5.8 179/186] 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 4.19 43/88] net: gemini: Fix another missing clk_disable_unprepare() in probe

2020-09-08 Thread Greg Kroah-Hartman
From: Dan Carpenter [ Upstream commit eb0f3bc463d59d86402f19c59aa44e82dc3fab6d ] We recently added some calls to clk_disable_unprepare() but we missed the last error path if register_netdev() fails. I made a couple cleanups so we avoid mistakes like this in the future. First I reversed the "if

[ANNOUNCE] v5.9-rc4-rt5

2020-09-08 Thread Sebastian Andrzej Siewior
Dear RT folks! I'm pleased to announce the v5.9-rc4-rt5 patch set. Changes since v5.9-rc4-rt4: - A queuing discipline other than pfifo_fast led to a lockdep splat. Reported by Mike Galbraith. - The series "seqlock: Introduce PREEMPT_RT support" by Ahmed S. Darwis has been updated

[PATCH 5.8 140/186] ALSA: firewire-digi00x: exclude Avid Adrenaline from detection

2020-09-08 Thread Greg Kroah-Hartman
From: Takashi Sakamoto commit acd46a6b6de88569654567810acad2b0a0a25cea upstream. Avid Adrenaline is reported that ALSA firewire-digi00x driver is bound to. However, as long as he investigated, the design of this model is hardly similar to the one of Digi 00x family. It's better to exclude the

[PATCH 5.8 154/186] io_uring: set table->files[i] to NULL when io_sqe_file_register failed

2020-09-08 Thread Greg Kroah-Hartman
From: Jiufei Xue commit 95d1c8e5f801e959a89181a2548a3efa60a1a6ce upstream. While io_sqe_file_register() failed in __io_sqe_files_update(), table->files[i] still point to the original file which may freed soon, and that will trigger use-after-free problems. Cc: sta...@vger.kernel.org Fixes:

Re: [PATCH v5 3/3] media: i2c: imx274: Add IMX274 power on and off sequence

2020-09-08 Thread Sowjanya Komatineni
On 9/7/20 12:48 AM, Jacopo Mondi wrote: Hello, On Fri, Sep 04, 2020 at 10:04:10AM -0700, Sowjanya Komatineni wrote: On 9/4/20 1:55 AM, Jacopo Mondi wrote: usleep_range() allows you to provide an interval in which your timeout can be coalesced with others. Giving a [1usec, 2usec] range kind

Re: [GIT PULL] livepatching for 5.9-rc5

2020-09-08 Thread Linus Torvalds
Josh, On Mon, Sep 7, 2020 at 1:20 AM Petr Mladek wrote: > > - Workaround "unreachable instruction" objtool warnings that happen > with some compiler versions. I know I said this fixes things for me, but I just realized it doesn't entirely. I wonder how I missed the remaining one:

[PATCH 5.8 186/186] 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 033/129] 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 5.4 006/129] 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 5.8 147/186] mmc: dt-bindings: Add resets/reset-names for Mediatek MMC bindings

2020-09-08 Thread Greg Kroah-Hartman
From: Wenbin Mei commit 65557383191de46611dd3d6b639cbcfbade43c4a upstream. Add description for resets/reset-names. Cc: # v5.4+ Fixes: 966580ad236e ("mmc: mediatek: add support for MT7622 SoC") Signed-off-by: Wenbin Mei Tested-by: Frank Wunderlich Link:

[PATCH 5.8 180/186] 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 000/129] 5.4.64-rc1 review

2020-09-08 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.4.64 release. There are 129 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

[PATCH 5.4 011/129] ceph: dont allow setlease on cephfs

2020-09-08 Thread Greg Kroah-Hartman
From: Jeff Layton [ Upstream commit 496ceaf12432b3d136dcdec48424312e71359ea7 ] Leases don't currently work correctly on kcephfs, as they are not broken when caps are revoked. They could eventually be implemented similarly to how we did them in libcephfs, but for now don't allow them. [

Re: [GIT PULL] livepatching for 5.9-rc5

2020-09-08 Thread pr-tracker-bot
The pull request you sent on Mon, 7 Sep 2020 10:20:36 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/livepatching/livepatching > tags/livepatching-for-5.9-rc5 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/612ab8ad64140f0f291d7baae45982ce7119839a Thank you!

Re: [PATCH net-next] rcu: prevent RCU_LOCKDEP_WARN() from swallowing the condition

2020-09-08 Thread nikolay
On 8 September 2020 20:36:24 EEST, Jakub Kicinski wrote: >We run into a unused variable warning in bridge code when >variable is only used inside the condition of >rcu_dereference_protected(). > > #define mlock_dereference(X, br) \ > rcu_dereference_protected(X,

[PATCH 5.8 142/186] ALSA; firewire-tascam: exclude Tascam FE-8 from detection

2020-09-08 Thread Greg Kroah-Hartman
From: Takashi Sakamoto commit 0bd8bce897b6697bbc286b8ba473aa0705fe394b upstream. Tascam FE-8 is known to support communication by asynchronous transaction only. The support can be implemented in userspace application and snd-firewire-ctl-services project has the support. However, ALSA

[PATCH 5.8 185/186] 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:

[PATCH 5.4 031/129] mmc: sdhci-acpi: Fix HS400 tuning for AMDI0040

2020-09-08 Thread Greg Kroah-Hartman
From: Raul E Rangel [ Upstream commit 61d7437ed13906984c44697970ee792ac6271a31 ] The AMD eMMC Controller can only use the tuned clock while in HS200 and HS400 mode. If we switch to a different mode, we need to disable the tuned clock. If we have previously performed tuning and switch back to

[PATCH 5.8 161/186] 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 028/129] rxrpc: Make rxrpc_kernel_get_srtt() indicate validity

2020-09-08 Thread Greg Kroah-Hartman
From: David Howells [ Upstream commit 1d4adfaf65746203861c72d9d78de349eb97d528 ] Fix rxrpc_kernel_get_srtt() to indicate the validity of the returned smoothed RTT. If we haven't had any valid samples yet, the SRTT isn't useful. Fixes: c410bf01933e ("rxrpc: Fix the excessive initial

[PATCH 5.4 022/129] dmaengine: of-dma: Fix of_dma_router_xlates of_dma_xlate handling

2020-09-08 Thread Greg Kroah-Hartman
From: Peter Ujfalusi [ Upstream commit 5b2aa9f918f6837ae943557f8cec02c34fcf80e7 ] of_dma_xlate callback can return ERR_PTR as well NULL in case of failure. If error code is returned (not NULL) then the route should be released and the router should not be registered for the channel. Fixes:

[PATCH 5.8 145/186] arm64: dts: mt7622: add reset node for mmc device

2020-09-08 Thread Greg Kroah-Hartman
From: Wenbin Mei commit d6f6cbeee4e5ee6976792851e0461c19f1ede864 upstream. This commit adds reset node for mmc device. Cc: # v5.4+ Fixes: 966580ad236e ("mmc: mediatek: add support for MT7622 SoC") Signed-off-by: Wenbin Mei Tested-by: Frank Wunderlich Acked-by: Matthias Brugger Link:

[PATCH 5.8 163/186] 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.

[PATCH 5.8 181/186] mm/migrate: fixup setting UFFD_WP flag

2020-09-08 Thread Greg Kroah-Hartman
From: Alistair Popple commit ebdf8321eeeb623aed60f7ed16f7445363230118 upstream. Commit f45ec5ff16a75 ("userfaultfd: wp: support swap and page migration") introduced support for tracking the uffd wp bit during page migration. However the non-swap PTE variant was used to set the flag for zone

[PATCH 5.8 146/186] mmc: mediatek: add optional module reset property

2020-09-08 Thread Greg Kroah-Hartman
From: Wenbin Mei commit 855d388df217989fbf1f18c781ae6490dbb48e86 upstream. This patch fixs eMMC-Access on mt7622/Bpi-64. Before we got these Errors on mounting eMMC ion R64: [ 48.664925] blk_update_request: I/O error, dev mmcblk0, sector 204800 op 0x1:(WRITE) flags 0x800 phys_seg 1 prio

  1   2   3   4   5   6   7   8   9   10   >