[PATCH 5.4 135/214] selftests: disable rp_filter for icmp_redirect.sh

2020-09-01 Thread Greg Kroah-Hartman
From: David Ahern [ Upstream commit bcf7ddb0186d366f761f86196b480ea6dd2dc18c ] h1 is initially configured to reach h2 via r1 rather than the more direct path through r2. If rp_filter is set and inherited for r2, forwarding fails since the source address of h1 is reachable from eth0 vs the packet

Re: [PATCH v3 11/23] mips: use asm-generic/mmu_context.h for no-op implementations

2020-09-01 Thread Thomas Bogendoerfer
On Wed, Sep 02, 2020 at 12:15:27AM +1000, Nicholas Piggin wrote: > Cc: Thomas Bogendoerfer > Cc: linux-m...@vger.kernel.org > Signed-off-by: Nicholas Piggin > --- > > Please ack or nack if you object to this being mered via > Arnd's tree. > > arch/mips/include/asm/mmu_context.h | 11 --

[PATCH 5.4 091/214] EDAC: skx_common: get rid of unused type var

2020-09-01 Thread Greg Kroah-Hartman
From: Mauro Carvalho Chehab [ Upstream commit f05390d30e20cccd8f8de981dee42bcdd8d2d137 ] drivers/edac/skx_common.c: In function ‘skx_mce_output_error’: drivers/edac/skx_common.c:478:8: warning: variable ‘type’ set but not used [-Wunused-but-set-variable] 478 | char *t

Re: [PATCH 4.19 016/125] media: pci: ttpci: av7110: fix possible buffer overflow caused by bad DMA value in debiirq()

2020-09-01 Thread Sean Young
Greg, On Tue, Sep 01, 2020 at 05:09:31PM +0200, Greg Kroah-Hartman wrote: > From: Jia-Ju Bai > > [ Upstream commit 6499a0db9b0f1e903d52f8244eacc1d4be00eea2 ] > > The value av7110->debi_virt is stored in DMA memory, and it is assigned > to data, and thus data[0] can be modified at any time by ma

[PATCH v2 4.19 0/7] Fix timeout clock used by hardware data timeout

2020-09-01 Thread Sowjanya Komatineni
Tegra210/Tegra186/Tegra194 has incorrectly enabled SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK from the beginning of their support. Tegra210 and later SDMMC hardware default uses sdmmc_legacy_tm (TMCLK) all the time for hardware data timeout instead of SDCLK and this TMCLK need to be kept enabled by Tegra

[PATCH 5.4 088/214] drm/amd/display: Fix dmesg warning from setting abm level

2020-09-01 Thread Greg Kroah-Hartman
From: Stylon Wang [ Upstream commit c5892a10218214d729699ab61bad6fc109baf0ce ] [Why] Setting abm level does not correctly update CRTC state. As a result no surface update is added to dc stream state and triggers warning. [How] Correctly update CRTC state when setting abm level property. CC: St

Re: [RFC PATCH] selinux: Add denied trace with permssion filter

2020-09-01 Thread Paul Moore
On Mon, Aug 31, 2020 at 11:34 AM peter enderborg wrote: > On 8/31/20 4:16 PM, Paul Moore wrote: > > On Thu, Aug 27, 2020 at 10:04 AM peter enderborg wrote: ... > >> Im happly fine with replacing the selinux_audited with selinux_denied. > >> However it is the case where there are more than one d

[PATCH v2 4.19 1/7] sdhci: tegra: Remove SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK for Tegra210

2020-09-01 Thread Sowjanya Komatineni
SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK has been set on Tegra210 ever since Tegra210 support was added to the driver in commit b5a84ecf025a ("mmc: tegra: Add Tegra210 support"). Tegra210 SDMMC hardware by default uses timeout clock (TMCLK) instead of SDCLK and this quirk should not be set. So, this p

[PATCH v2 4.19 6/7] arm64: tegra: Add missing timeout clock to Tegra194 SDMMC nodes

2020-09-01 Thread Sowjanya Komatineni
Tegra194 uses separate SDMMC_LEGACY_TM clock for data timeout and this clock was not enabled when Tegra194 support was added to the driver in commit 5425fb15d8ee ("arm64: tegra: Add Tegra194 chip device tree") which is not recommended. Tegra194 SDMMC advertises 12Mhz as timeout clock frequency in

[PATCH v2 4.19 7/7] sdhci: tegra: Add missing TMCLK for data timeout

2020-09-01 Thread Sowjanya Komatineni
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 using TMCLK is recommended. Enabling TMCLK was missed when Tegra210 support was added to the driver in commit b5a84ecf025a ("mmc: tegra: Add Tegra21

Re: [PATCH] KVM: fix memory leak in kvm_io_bus_unregister_dev()

2020-09-01 Thread Vitaly Kuznetsov
Rustam Kovhaev writes: > when kmalloc() fails in kvm_io_bus_unregister_dev(), before removing > the bus, we should iterate over all other devices linked to it and call > kvm_iodevice_destructor() for them > > Reported-and-tested-by: syzbot+f196caa45793d6374...@syzkaller.appspotmail.com > Link: ht

[PATCH v2 4.19 4/7] arm64: tegra: Add missing timeout clock to Tegra210 SDMMC

2020-09-01 Thread Sowjanya Komatineni
Tegra210 uses separate SDMMC_LEGACY_TM clock for data timeout and this clock was not enabled when Tegra210 support was added to the driver in commit 742af7e7a0a1 ("arm64: tegra: Add Tegra210 support") which is not recommended. Tegra SDMMC advertises 12Mhz as timeout clock frequency in host capabil

[PATCH v2 4.19 5/7] arm64: tegra: Add missing timeout clock to Tegra186 SDMMC nodes

2020-09-01 Thread Sowjanya Komatineni
Tegra186 uses separate SDMMC_LEGACY_TM clock for data timeout and this clock was not enabled when Tegra186 support was added to the driver in commit 39cb62cb8973 ("arm64: tegra: Add Tegra186 support") which is not recommended. Tegra186 SDMMC advertises 12Mhz as timeout clock frequency in host capa

[PATCH v2 4.19 3/7] dt-bindings: mmc: tegra: Add tmclk for Tegra210 and Tegra186

2020-09-01 Thread Sowjanya Komatineni
Tegra210 and later uses separate SDMMC_LEGACY_TM clock for data timeout. So, this patch adds "tmclk" to Tegra sdhci clock property in the device tree binding. Fixes: b5a84ecf025a ("mmc: tegra: Add Tegra210 support") Cc: stable # 4.19 Reviewed-by: Jon Hunter Signed-off-by: Sowjanya Komatineni -

[PATCH 5.4 092/214] EDAC/{i7core,sb,pnd2,skx}: Fix error event severity

2020-09-01 Thread Greg Kroah-Hartman
From: Tony Luck [ Upstream commit 45bc6098a3e279d8e391d22428396687562797e2 ] IA32_MCG_STATUS.RIPV indicates whether the return RIP value pushed onto the stack as part of machine check delivery is valid or not. Various drivers copied a code fragment that uses the RIPV bit to determine the severi

[PATCH v2 4.19 2/7] sdhci: tegra: Remove SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK for Tegra186

2020-09-01 Thread Sowjanya Komatineni
SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK has been set on Tegra186 ever since Tegra186 support was added to the driver in commit 4346b7c7941d ("mmc: tegra: Add Tegra186 support"). Tegra186 SDMMC hardware by default uses timeout clock (TMCLK) instead of SDCLK and this quirk should not be set. So, this p

Re: [LKP] Re: [rcuperf] 4e88ec4a9e: UBSAN:division-overflow_in_arch/x86/include/asm/div64.h

2020-09-01 Thread Paul E. McKenney
On Tue, Sep 01, 2020 at 03:03:28PM +0800, Rong Chen wrote: > > > On 8/31/20 11:50 PM, Paul E. McKenney wrote: > > On Mon, Aug 31, 2020 at 08:01:22PM +0800, kernel test robot wrote: > > > Greeting, > > > > > > FYI, we noticed the following commit (built with gcc-9): > > > > > > commit: 4e88ec4a9

[PATCH 5.4 081/214] mm: fix kthread_use_mm() vs TLB invalidate

2020-09-01 Thread Greg Kroah-Hartman
From: Peter Zijlstra [ Upstream commit 38cf307c1f2011d413750c5acb725456f47d9172 ] For SMP systems using IPI based TLB invalidation, looking at current->active_mm is entirely reasonable. This then presents the following race condition: CPU0 CPU1 flush_tlb_mm(mm) use_m

[PATCH 5.4 083/214] cma: dont quit at first error when activating reserved areas

2020-09-01 Thread Greg Kroah-Hartman
From: Mike Kravetz [ Upstream commit 3a5139f1c5bb76d69756fb8f13fffa173e261153 ] The routine cma_init_reserved_areas is designed to activate all reserved cma areas. It quits when it first encounters an error. This can leave some areas in a state where they are reserved but not activated. There

[PATCH 5.4 084/214] gpu/drm: ingenic: Use the planes src_[x,y] to configure DMA length

2020-09-01 Thread Greg Kroah-Hartman
From: Paul Cercueil [ Upstream commit 52e4607dace1eeeb2e012fca291dc4e6cb449bff ] Instead of obtaining the width/height of the framebuffer from the CRTC state, obtain it from the current plane state. v2: No change Signed-off-by: Paul Cercueil Link: https://patchwork.freedesktop.org/patch/msgi

[PATCH 5.4 085/214] drm/ingenic: Fix incorrect assumption about plane->index

2020-09-01 Thread Greg Kroah-Hartman
From: Paul Cercueil [ Upstream commit ca43f274e03f91c533643299ae4984965ce03205 ] plane->index is NOT the index of the color plane in a YUV frame. Actually, a YUV frame is represented by a single drm_plane, even though it contains three Y, U, V planes. v2-v3: No change Cc: sta...@vger.kernel.or

Re: [PATCH v4 -rcu 1/4] rcu/segcblist: Do not depend on rcl->len to store the segcb len during merge

2020-09-01 Thread Paul E. McKenney
On Tue, Sep 01, 2020 at 11:06:09AM -0400, Joel Fernandes wrote: > Hi, > Resuming regular activities here, post-LPC :) > > On Fri, Aug 28, 2020 at 07:18:55AM -0700, Paul E. McKenney wrote: > > On Thu, Aug 27, 2020 at 06:55:18PM -0400, Joel Fernandes wrote: > > > On Wed, Aug 26, 2020 at 07:20:28AM -

[PATCH 5.4 082/214] mm/cma.c: switch to bitmap_zalloc() for cma bitmap allocation

2020-09-01 Thread Greg Kroah-Hartman
From: Yunfeng Ye [ Upstream commit 2184f9928ab52f26c2ae5e9ba37faf29c78f50b8 ] kzalloc() is used for cma bitmap allocation in cma_activate_area(), switch to bitmap_zalloc() for clarity. Link: http://lkml.kernel.org/r/895d4627-f115-c77a-d454-c0a196116...@huawei.com Signed-off-by: Yunfeng Ye Revi

[PATCH 5.4 101/214] drm/msm/adreno: fix updating ring fence

2020-09-01 Thread Greg Kroah-Hartman
From: Rob Clark [ Upstream commit f228af11dfa1d1616bc67f3a4119ab77c36181f1 ] We need to set it to the most recent completed fence, not the most recent submitted. Otherwise we have races where we think we can retire submits that the GPU is not finished with, if the GPU doesn't manage to overwrit

[RFC PATCH 1/7] Fix khugepaged's request size in collapse_file()

2020-09-01 Thread David Howells
collapse_file() in khugepaged passes PAGE_SIZE as the number of pages to be read ahead to page_cache_sync_readahead(). It seems this was expressed as a number of bytes rather than a number of pages. Fix it to use the number of pages to the end of the window instead. Fixes: 99cb0dbd47a1 ("mm,thp:

[RFC PATCH 0/7] mm: Make more use of readahead_control

2020-09-01 Thread David Howells
Hi Willy, Here's a set of patches to expand the use of the readahead_control struct, essentially from do_sync_mmap_readahead() down. Note that I've been passing the number of pages to read in rac->_nr_pages, and then saving it and changing it certain points, e.g. page_cache_readahead_unbounded(

[PATCH 5.4 100/214] block: virtio_blk: fix handling single range discard request

2020-09-01 Thread Greg Kroah-Hartman
From: Ming Lei [ Upstream commit af822aa68fbdf0a480a17462ed70232998127453 ] 1f23816b8eb8 ("virtio_blk: add discard and write zeroes support") starts to support multi-range discard for virtio-blk. However, the virtio-blk disk may report max discard segment as 1, at least that is exactly what qemu

[RFC PATCH 2/7] mm: Make ondemand_readahead() take a readahead_control struct

2020-09-01 Thread David Howells
Make ondemand_readahead() take a readahead_control struct in preparation for making do_sync_mmap_readahead() pass down an RAC struct. Signed-off-by: David Howells --- mm/readahead.c | 35 +-- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/mm/re

[PATCH 3/3] watchdog: rti: Simplify with dev_err_probe()

2020-09-01 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and the error value gets printed. Signed-off-by: Krzysztof Kozlowski --- It is unusual to expect deferred probe from pm_runtime_get()... --- drivers/watchdog/rti_wdt.c | 14 -- 1 file chang

[PATCH 5.4 079/214] btrfs: only commit delayed items at fsync if we are logging a directory

2020-09-01 Thread Greg Kroah-Hartman
From: Filipe Manana [ Upstream commit 5aa7d1a7f4a2f8ca6be1f32415e9365d026e8fa7 ] When logging an inode we are committing its delayed items if either the inode is a directory or if it is a new inode, created in the current transaction. We need to do it for directories, since new directory indexe

[RFC PATCH 4/7] mm: Pass readahead_control into page_cache_{sync,async}_readahead()

2020-09-01 Thread David Howells
Pass struct readahead_control into the page_cache_{sync,async}_readahead() functions in preparation for making do_sync_mmap_readahead() pass down an RAC struct. Signed-off-by: David Howells --- fs/btrfs/free-space-cache.c |7 --- fs/btrfs/ioctl.c| 10 +++--- fs/btrfs/r

[PATCH 5.4 061/214] KVM: arm64: Fix symbol dependency in __hyp_call_panic_nvhe

2020-09-01 Thread Greg Kroah-Hartman
From: David Brazdil [ Upstream commit b38b298aa4397e2dc74a89b4dd3eac9e59b64c96 ] __hyp_call_panic_nvhe contains inline assembly which did not declare its dependency on the __hyp_panic_string symbol. The static-declared string has previously been kept alive because of a use in __hyp_call_panic_v

[RFC PATCH 3/7] mm: Push readahead_control down into force_page_cache_readahead()

2020-09-01 Thread David Howells
Push readahead_control down into force_page_cache_readahead() from its callers in preparation for making do_sync_mmap_readahead() pass down an RAC struct. Signed-off-by: David Howells --- mm/fadvise.c |6 +- mm/internal.h |3 +-- mm/readahead.c | 20 3 file

[PATCH 2/3] watchdog: davinci: Simplify with dev_err_probe()

2020-09-01 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and the error value gets printed. Signed-off-by: Krzysztof Kozlowski --- drivers/watchdog/davinci_wdt.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/watchdog/davin

[RFC PATCH 6/7] mm: Fold ra_submit() into do_sync_mmap_readahead()

2020-09-01 Thread David Howells
Fold ra_submit() into its last remaining user and pass the previously added readahead_control struct down into __do_page_cache_readahead(). Signed-off-by: David Howells --- mm/filemap.c |6 +++--- mm/internal.h | 11 --- 2 files changed, 3 insertions(+), 14 deletions(-) diff --g

[RFC PATCH 7/7] mm: Pass a file_ra_state struct into force_page_cache_readahead()

2020-09-01 Thread David Howells
Pass a file_ra_state struct into force_page_cache_readahead(). One caller has one that should be passed in and the other doesn't, but the former needs to pass its in. Signed-off-by: David Howells --- mm/fadvise.c |2 +- mm/internal.h |2 +- mm/readahead.c |6 +++--- 3 files chan

[RFC PATCH 5/7] mm: Make __do_page_cache_readahead() use rac->_nr_pages

2020-09-01 Thread David Howells
Make __do_page_cache_readahead() use rac->_nr_pages rather than passing in nr_to_read argument. Signed-off-by: David Howells --- fs/ext4/verity.c|8 +--- fs/f2fs/verity.c|8 +--- include/linux/pagemap.h |3 +-- mm/internal.h |6 +++--- mm/readah

[PATCH 5.4 075/214] drm/xen-front: Fix misused IS_ERR_OR_NULL checks

2020-09-01 Thread Greg Kroah-Hartman
From: Oleksandr Andrushchenko [ Upstream commit 14dee058610446aa464254fc5c8e88c7535195e0 ] The patch c575b7eeb89f: "drm/xen-front: Add support for Xen PV display frontend" from Apr 3, 2018, leads to the following static checker warning: drivers/gpu/drm/xen/xen_drm_front_gem.c:140 xen_dr

[PATCH 1/3] watchdog: cadence: Simplify with dev_err_probe()

2020-09-01 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and the error value gets printed. Signed-off-by: Krzysztof Kozlowski --- drivers/watchdog/cadence_wdt.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/watchdog/caden

[PATCH 5.4 099/214] block: respect queue limit of max discard segment

2020-09-01 Thread Greg Kroah-Hartman
From: Ming Lei [ Upstream commit 943b40c832beb71115e38a1c4d99b640b5342738 ] When queue_max_discard_segments(q) is 1, blk_discard_mergable() will return false for discard request, then normal request merge is applied. However, only queue_max_segments() is checked, so max discard segment limit isn

[PATCH 5.4 071/214] PM / devfreq: rk3399_dmc: Add missing of_node_put()

2020-09-01 Thread Greg Kroah-Hartman
From: Yangtao Li [ Upstream commit 29d867e97f7d781972ed542acfca3c2c0b512603 ] of_node_put() needs to be called when the device node which is got from of_parse_phandle has finished using. Signed-off-by: Yangtao Li Signed-off-by: Chanwoo Choi Signed-off-by: Sasha Levin --- drivers/devfreq/rk3

[PATCH 5.4 073/214] PM / devfreq: rk3399_dmc: Fix kernel oops when rockchip,pmu is absent

2020-09-01 Thread Greg Kroah-Hartman
From: Marc Zyngier [ Upstream commit 63ef91f24f9bfc70b6446319f6cabfd094481372 ] Booting a recent kernel on a rk3399-based system (nanopc-t4), equipped with a recent u-boot and ATF results in an Oops due to a NULL pointer dereference. This turns out to be due to the rk3399-dmc driver looking for

[PATCH 5.4 060/214] media: davinci: vpif_capture: fix potential double free

2020-09-01 Thread Greg Kroah-Hartman
From: Evgeny Novikov [ Upstream commit 602649eadaa0c977e362e641f51ec306bc1d365d ] In case of errors vpif_probe_complete() releases memory for vpif_obj.sd and unregisters the V4L2 device. But then this is done again by vpif_probe() itself. The patch removes the cleaning from vpif_probe_complete()

[PATCH 5.4 098/214] media: gpio-ir-tx: improve precision of transmitted signal due to scheduling

2020-09-01 Thread Greg Kroah-Hartman
From: Sean Young [ Upstream commit ea8912b788f8144e7d32ee61e5ccba45424bef83 ] usleep_range() may take longer than the max argument due to scheduling, especially under load. This is causing random errors in the transmitted IR. Remove the usleep_range() in favour of busy-looping with udelay(). Si

[PATCH 5.4 033/214] drm/amdgpu/display: fix ref count leak when pm_runtime_get_sync fails

2020-09-01 Thread Greg Kroah-Hartman
From: Navid Emamdoost [ Upstream commit f79f94765f8c39db0b7dec1d335ab046aac03f20 ] The call to pm_runtime_get_sync increments the counter even in case of failure, leading to incorrect ref count. In case of failure, decrement the ref count before returning. Signed-off-by: Navid Emamdoost Signed

[PATCH 5.4 032/214] drm/amdgpu: fix ref count leak in amdgpu_display_crtc_set_config

2020-09-01 Thread Greg Kroah-Hartman
From: Navid Emamdoost [ Upstream commit e008fa6fb41544b63973a529b704ef342f47cc65 ] in amdgpu_display_crtc_set_config, the call to pm_runtime_get_sync increments the counter even in case of failure, leading to incorrect ref count. In case of failure, decrement the ref count before returning. Sig

[PATCH 5.4 029/214] drm/radeon: fix multiple reference count leak

2020-09-01 Thread Greg Kroah-Hartman
From: Aditya Pakki [ Upstream commit 6f2e8acdb48ed166b65d47837c31b177460491ec ] On calling pm_runtime_get_sync() the reference count of the device is incremented. In case of failure, decrement the reference count before returning the error. Signed-off-by: Aditya Pakki Signed-off-by: Alex Deuch

[PATCH 5.4 055/214] ceph: fix potential mdsc use-after-free crash

2020-09-01 Thread Greg Kroah-Hartman
From: Xiubo Li [ Upstream commit fa9967734227b44acb1b6918033f9122dc7825b9 ] Make sure the delayed work stopped before releasing the resources. cancel_delayed_work_sync() will only guarantee that the work finishes executing if the work is already in the ->worklist. That means after the cancel_d

[PATCH 5.4 031/214] drm/amd/display: fix ref count leak in amdgpu_drm_ioctl

2020-09-01 Thread Greg Kroah-Hartman
From: Navid Emamdoost [ Upstream commit 5509ac65f2fe5aa3c0003237ec629ca55024307c ] in amdgpu_drm_ioctl the call to pm_runtime_get_sync increments the counter even in case of failure, leading to incorrect ref count. In case of failure, decrement the ref count before returning. Signed-off-by: Nav

[PATCH 5.4 096/214] cpufreq: intel_pstate: Fix EPP setting via sysfs in active mode

2020-09-01 Thread Greg Kroah-Hartman
From: Rafael J. Wysocki [ Upstream commit de002c55cadfc2f6cdf0ed427526f6085d240238 ] Because intel_pstate_set_energy_pref_index() reads and writes the MSR_HWP_REQUEST register without using the cached value of it used by intel_pstate_hwp_boost_up() and intel_pstate_hwp_boost_down(), those functi

[PATCH 5.4 058/214] EDAC/ie31200: Fallback if host bridge device is already initialized

2020-09-01 Thread Greg Kroah-Hartman
From: Jason Baron [ Upstream commit 709ed1bcef12398ac1a35c149f3e582db04456c2 ] The Intel uncore driver may claim some of the pci ids from ie31200 which means that the ie31200 edac driver will not initialize them as part of pci_register_driver(). Let's add a fallback for this case to 'pci_get_de

Re: [PATCH] drm/radeon: Reset ASIC if suspend is not managed by platform firmware

2020-09-01 Thread Alex Deucher
On Tue, Sep 1, 2020 at 12:21 PM Kai-Heng Feng wrote: > > > > > On Sep 1, 2020, at 22:19, Alex Deucher wrote: > > > > On Tue, Sep 1, 2020 at 3:32 AM Kai-Heng Feng > > wrote: > >> > >> Suspend with s2idle or by the following steps cause screen frozen: > >> # echo devices > /sys/power/pm_test > >>

[PATCH 5.4 030/214] drm/amdgpu: fix ref count leak in amdgpu_driver_open_kms

2020-09-01 Thread Greg Kroah-Hartman
From: Navid Emamdoost [ Upstream commit 9ba8923cbbe11564dd1bf9f3602add9a9cfbb5c6 ] in amdgpu_driver_open_kms the call to pm_runtime_get_sync increments the counter even in case of failure, leading to incorrect ref count. In case of failure, decrement the ref count before returning. Signed-off-b

Re: memory leak in do_seccomp

2020-09-01 Thread Tycho Andersen
On Tue, Sep 01, 2020 at 08:08:13AM -0700, Kees Cook wrote: > On Mon, Aug 31, 2020 at 07:14:59PM -0600, Tycho Andersen wrote: > > On Mon, Aug 31, 2020 at 06:09:15PM -0600, Tycho Andersen wrote: > > > On Mon, Aug 31, 2020 at 04:25:35PM -0700, Kees Cook wrote: > > > > On Sun, Aug 30, 2020 at 08:50:15P

Re: [PATCH v4 29/78] drm/vc4: crtc: Add a delay after disabling the PixelValve output

2020-09-01 Thread Stefan Wahren
Hi Maxime, Am 01.09.20 um 11:58 schrieb Maxime Ripard: > Hi Stefan > > On Tue, Aug 25, 2020 at 11:30:58PM +0200, Stefan Wahren wrote: >> Am 25.08.20 um 17:06 schrieb Maxime Ripard: >>> Hi Stefan, >>> >>> On Wed, Jul 29, 2020 at 05:50:31PM +0200, Stefan Wahren wrote: Am 29.07.20 um 16:42 schri

[PATCH 5.4 124/214] spi: stm32: fix stm32_spi_prepare_mbr in case of odd clk_rate

2020-09-01 Thread Greg Kroah-Hartman
From: Amelie Delaunay [ Upstream commit 9cc61973bf9385b19ff5dda4a2a7e265fcba85e4 ] Fix spi->clk_rate when it is odd to the nearest lowest even value because minimum SPI divider is 2. Signed-off-by: Amelie Delaunay Signed-off-by: Alain Volmat Link: https://lore.kernel.org/r/1597043558-29668-4

Re: [PATCH 1/4] pidfd: support PIDFD_NONBLOCK in pidfd_open()

2020-09-01 Thread Christian Brauner
On Tue, Sep 01, 2020 at 06:23:10PM +0200, Oleg Nesterov wrote: > On 08/31, Christian Brauner wrote: > > > > --- /dev/null > > +++ b/include/uapi/linux/pidfd.h > > @@ -0,0 +1,12 @@ > > +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ > > + > > +#ifndef _UAPI_LINUX_PIDFD_H > > +#define

[PATCH 5.4 014/214] ALSA: pci: delete repeated words in comments

2020-09-01 Thread Greg Kroah-Hartman
From: Randy Dunlap [ Upstream commit c7fabbc51352f50cc58242a6dc3b9c1a3599849b ] Drop duplicated words in sound/pci/. {and, the, at} Signed-off-by: Randy Dunlap Link: https://lore.kernel.org/r/20200806021926.32418-1-rdun...@infradead.org Signed-off-by: Takashi Iwai Signed-off-by: Sasha Levin

[PATCH 5.4 080/214] mm/shuffle: dont move pages between zones and dont read garbage memmaps

2020-09-01 Thread Greg Kroah-Hartman
From: David Hildenbrand [ Upstream commit 4a93025cbe4a0b19d1a25a2d763a3d2018bad0d9 ] Especially with memory hotplug, we can have offline sections (with a garbage memmap) and overlapping zones. We have to make sure to only touch initialized memmaps (online sections managed by the buddy) and that

[PATCH 5.4 123/214] spi: stm32: fix fifo threshold level in case of short transfer

2020-09-01 Thread Greg Kroah-Hartman
From: Amelie Delaunay [ Upstream commit 3373e9004acc0603242622b4378c64bc01d21b5f ] When transfer is shorter than half of the fifo, set the data packet size up to transfer size instead of up to half of the fifo. Check also that threshold is set at least to 1 data frame. Signed-off-by: Amelie Del

[PATCH 4.19 101/125] PM: sleep: core: Fix the handling of pending runtime resume requests

2020-09-01 Thread Greg Kroah-Hartman
From: Rafael J. Wysocki commit e3eb6e8fba65094328b8dca635d00de74ba75b45 upstream. It has been reported that system-wide suspend may be aborted in the absence of any wakeup events due to unforseen interactions of it with the runtume PM framework. One failing scenario is when there are multiple d

[PATCH 5.4 117/214] jbd2: abort journal if free a async write error metadata buffer

2020-09-01 Thread Greg Kroah-Hartman
From: zhangyi (F) [ Upstream commit c044f3d8360d2ecf831ba2cc9f08cf9fb2c699fb ] If we free a metadata buffer which has been failed to async write out in the background, the jbd2 checkpoint procedure will not detect this failure in jbd2_log_do_checkpoint(), so it may lead to filesystem inconsisten

[PATCH 5.4 112/214] usb: gadget: f_tcm: Fix some resource leaks in some error paths

2020-09-01 Thread Greg Kroah-Hartman
From: Christophe JAILLET [ Upstream commit 07c8434150f4eb0b65cae288721c8af1080fde17 ] If a memory allocation fails within a 'usb_ep_alloc_request()' call, the already allocated memory must be released. Fix a mix-up in the code and free the correct requests. Fixes: c52661d60f63 ("usb-gadget: In

[PATCH 5.4 010/214] net: ena: Make missed_tx stat incremental

2020-09-01 Thread Greg Kroah-Hartman
From: Shay Agroskin [ Upstream commit ccd143e5150f24b9ba15145c7221b61dd9e41021 ] Most statistics in ena driver are incremented, meaning that a stat's value is a sum of all increases done to it since driver/queue initialization. This patch makes all statistics this way, effectively making missed

[PATCH 5.4 076/214] s390/numa: set node distance to LOCAL_DISTANCE

2020-09-01 Thread Greg Kroah-Hartman
[ Upstream commit 535e4fc623fab2e09a0653fc3a3e17f382ad0251 ] The node distance is hardcoded to 0, which causes a trouble for some user-level applications. In particular, "libnuma" expects the distance of a node to itself as LOCAL_DISTANCE. This update removes the offending node distance override.

[PATCH 5.4 093/214] PCI: qcom: Add missing ipq806x clocks in PCIe driver

2020-09-01 Thread Greg Kroah-Hartman
From: Ansuel Smith [ Upstream commit 8b6f0330b5f9a7543356bfa9e76d580f03aa2c1e ] Aux and Ref clk are missing in PCIe qcom driver. Add support for this optional clks for ipq8064/apq8064 SoC. Link: https://lore.kernel.org/r/20200615210608.21469-2-ansuels...@gmail.com Fixes: 82a823833f4e ("PCI: qco

[PATCH 5.4 087/214] drm/amd/display: Add additional config guards for DCN

2020-09-01 Thread Greg Kroah-Hartman
From: Aurabindo Pillai [ Upstream commit e10517b3cb93f90c8a790def6ae884d1e2b65ee7 ] [Why&How] Fix build error by protecting code with config guard to enable building amdgpu without CONFIG_DRM_AMD_DC_DCN enabled. This option is disabled by default for allmodconfig. Signed-off-by: Aurabindo Pill

[PATCH 5.4 078/214] btrfs: only commit the delayed inode when doing a full fsync

2020-09-01 Thread Greg Kroah-Hartman
From: Filipe Manana [ Upstream commit 8c8648dd1f6d62aeb912deeb788b6ac33cb782e7 ] Commit 2c2c452b0cafdc ("Btrfs: fix fsync when extend references are added to an inode") forced a commit of the delayed inode when logging an inode in order to ensure we would end up logging the inode item during a f

[PATCH 5.4 001/214] powerpc/64s: Dont init FSCR_DSCR in __init_FSCR()

2020-09-01 Thread Greg Kroah-Hartman
From: Michael Ellerman commit 0828137e8f16721842468e33df0460044a0c588b upstream. __init_FSCR() was added originally in commit 2468dcf641e4 ("powerpc: Add support for context switching the TAR register") (Feb 2013), and only set FSCR_TAR. At that point FSCR (Facility Status and Control Register)

[PATCH 5.4 119/214] ext4: handle error of ext4_setup_system_zone() on remount

2020-09-01 Thread Greg Kroah-Hartman
From: Jan Kara [ Upstream commit d176b1f62f242ab259ff665a26fbac69db1aecba ] ext4_setup_system_zone() can fail. Handle the failure in ext4_remount(). Reviewed-by: Lukas Czerner Signed-off-by: Jan Kara Link: https://lore.kernel.org/r/20200728130437.7804-2-j...@suse.cz Signed-off-by: Theodore Ts

[PATCH 5.4 104/214] hwmon: (nct7904) Correct divide by 0

2020-09-01 Thread Greg Kroah-Hartman
From: Jason Baron [ Upstream commit 8ae2d573d0b4afc08b90ac7d73dba2d9da97 ] We hit a kernel panic due to a divide by 0 in nct7904_read_fan() for the hwmon_fan_min case. Extend the check to hwmon_fan_input case as well for safety. [ 1656.545650] divide error: [#1] SMP PTI [ 1656.545779]

[PATCH 5.4 090/214] EDAC: sb_edac: get rid of unused vars

2020-09-01 Thread Greg Kroah-Hartman
From: Mauro Carvalho Chehab [ Upstream commit 323014d85d2699b2879ecb15cd06a15408e3e801 ] There are several vars unused on this driver, probably because it was a modified copy of another driver. Get rid of them. drivers/edac/sb_edac.c: In function ‘knl_get_dimm_capacity’: drivers

[PATCH 1/2] serial: 8250: Simplify with dev_err_probe()

2020-09-01 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and the error value gets printed. Signed-off-by: Krzysztof Kozlowski --- drivers/tty/serial/8250/8250_bcm2835aux.c | 12 +++- drivers/tty/serial/8250/8250_ingenic.c| 20 ++--

[PATCH 4.19 099/125] xhci: Do warm-reset when both CAS and XDEV_RESUME are set

2020-09-01 Thread Greg Kroah-Hartman
From: Kai-Heng Feng commit 904df64a5f4d5ebd670801d869ca0a6d6a6e8df6 upstream. Sometimes re-plugging a USB device during system sleep renders the device useless: [ 173.418345] xhci_hcd :00:14.0: Get port status 2-4 read: 0x14203e2, return 0x10262 ... [ 176.496485] usb 2-4: Waited 2000ms fo

[PATCH 5.4 013/214] ALSA: hda/hdmi: Add quirk to force connectivity

2020-09-01 Thread Greg Kroah-Hartman
From: Kai-Heng Feng [ Upstream commit cd72c317a0a11f64225b9a3f1fe503bb8c7327b5 ] HDMI on some platforms doesn't enable audio support because its Port Connectivity [31:30] is set to AC_JACK_PORT_NONE: Node 0x05 [Pin Complex] wcaps 0x40778d: 8-Channels Digital Amp-Out CP Amp-Out caps: ofs=0x00,

[PATCH 5.4 077/214] btrfs: factor out inode items copy loop from btrfs_log_inode()

2020-09-01 Thread Greg Kroah-Hartman
From: Filipe Manana [ Upstream commit da447009a25609327309f695b244710f12794471 ] The function btrfs_log_inode() is quite large and so is its loop which iterates the inode items from the fs/subvolume tree and copies them into a log tree. Because this is a large loop inside a very large function a

[PATCH 5.4 111/214] i2c: rcar: in slave mode, clear NACK earlier

2020-09-01 Thread Greg Kroah-Hartman
From: Wolfram Sang [ Upstream commit 914a7b3563b8fb92f976619bbd0fa3a4a708baae ] Currently, a NACK in slave mode is set/cleared when SCL is held low by the IP core right before the bit is about to be pushed out. This is too late for clearing and then a NACK from the previous byte is still used fo

[PATCH 5.4 066/214] arm64: Fix __cpu_logical_map undefined issue

2020-09-01 Thread Greg Kroah-Hartman
From: Kefeng Wang [ Upstream commit eaecca9e7710281be7c31d892c9f447eafd7ddd9 ] The __cpu_logical_map undefined issue occued when the new tegra194-cpufreq drvier building as a module. ERROR: modpost: "__cpu_logical_map" [drivers/cpufreq/tegra194-cpufreq.ko] undefined! The driver using cpu_logi

[PATCH 5.4 107/214] nvme-fc: Fix wrong return value in __nvme_fc_init_request()

2020-09-01 Thread Greg Kroah-Hartman
From: Tianjia Zhang [ Upstream commit f34448cd0dc697723fb5f4118f8431d9233b370d ] On an error exit path, a negative error code should be returned instead of a positive return value. Fixes: e399441de9115 ("nvme-fabrics: Add host support for FC transport") Cc: James Smart Signed-off-by: Tianjia Z

[PATCH 5.4 109/214] null_blk: fix passing of REQ_FUA flag in null_handle_rq

2020-09-01 Thread Greg Kroah-Hartman
From: Hou Pu [ Upstream commit 2d62e6b038e729c3e4bfbfcfbd44800ef0883680 ] REQ_FUA should be checked using rq->cmd_flags instead of req_op(). Fixes: deb78b419dfda ("nullb: emulate cache") Signed-off-by: Hou Pu Signed-off-by: Jens Axboe Signed-off-by: Sasha Levin --- drivers/block/null_blk_ma

[PATCH 5.4 017/214] ASoC: img: Fix a reference count leak in img_i2s_in_set_fmt

2020-09-01 Thread Greg Kroah-Hartman
From: Qiushi Wu [ Upstream commit c4c59b95b7f7d4cef5071b151be2dadb33f3287b ] pm_runtime_get_sync() increments the runtime PM usage counter even when it returns an error code, causing incorrect ref count if pm_runtime_put_noidle() is not called in error handling paths. Thus call pm_runtime_put_no

[PATCH 5.4 086/214] drm/amd/display: Trigger modesets on MST DSC connectors

2020-09-01 Thread Greg Kroah-Hartman
From: Mikita Lipski [ Upstream commit 44be939ff7ac5858f0dbd8a2a4af1fe198e14db1 ] Whenever a connector on an MST network is attached, detached, or undergoes a modeset, the DSC configs for each stream on that topology will be recalculated. This can change their required bandwidth, requiring a full

[PATCH 5.4 011/214] net/sched: act_ct: Fix skb double-free in tcf_ct_handle_fragments() error flow

2020-09-01 Thread Greg Kroah-Hartman
From: Alaa Hleihel [ Upstream commit eda814b97dfb8d9f4808eb2f65af9bd3705c4cae ] tcf_ct_handle_fragments() shouldn't free the skb when ip_defrag() call fails. Otherwise, we will cause a double-free bug. In such cases, just return the error to the caller. Fixes: b57dc7c13ea9 ("net/sched: Introduc

[PATCH 5.4 074/214] drm/xen: fix passing zero to PTR_ERR warning

2020-09-01 Thread Greg Kroah-Hartman
From: Ding Xiang [ Upstream commit 4c1cb04e0e7ac4ba1ef5457929ef9b5671d9eed3 ] Fix a static code checker warning: drivers/gpu/drm/xen/xen_drm_front.c:404 xen_drm_drv_dumb_create() warn: passing zero to 'PTR_ERR' Signed-off-by: Ding Xiang Reviewed-by: Oleksandr Andrushchenko Signed-off-

Re: [PATCH 4.19 016/125] media: pci: ttpci: av7110: fix possible buffer overflow caused by bad DMA value in debiirq()

2020-09-01 Thread Greg Kroah-Hartman
On Tue, Sep 01, 2020 at 05:25:12PM +0100, Sean Young wrote: > Greg, > > On Tue, Sep 01, 2020 at 05:09:31PM +0200, Greg Kroah-Hartman wrote: > > From: Jia-Ju Bai > > > > [ Upstream commit 6499a0db9b0f1e903d52f8244eacc1d4be00eea2 ] > > > > The value av7110->debi_virt is stored in DMA memory, and

[PATCH 5.4 115/214] ext4: dont BUG on inconsistent journal feature

2020-09-01 Thread Greg Kroah-Hartman
From: Jan Kara [ Upstream commit 11215630aada28307ba555a43138db6ac54fa825 ] A customer has reported a BUG_ON in ext4_clear_journal_err() hitting during an LTP testing. Either this has been caused by a test setup issue where the filesystem was being overwritten while LTP was mounting it or the jo

Re: [RFC RESEND PATCH 0/1] USB EHCI: repeated resets on full and low speed devices

2020-09-01 Thread Alan Stern
On Tue, Sep 01, 2020 at 09:15:46AM -0700, Khalid Aziz wrote: > On 8/31/20 8:31 PM, Alan Stern wrote: > > Can you collect a usbmon trace showing an example of this problem? > > > > I have attached usbmon traces for when USB hub with keyboards and mouse > is plugged into USB 2.0 port and when it is

[PATCH 5.4 072/214] PM / devfreq: rk3399_dmc: Disable devfreq-event device when fails

2020-09-01 Thread Greg Kroah-Hartman
From: Yangtao Li [ Upstream commit 39a6e4739c19d5334e552d71ceca544ed84f4b87 ] The probe process may fail, but the devfreq event device remains enabled. Call devfreq_event_disable_edev on the error return path. Signed-off-by: Yangtao Li Signed-off-by: Chanwoo Choi Signed-off-by: Sasha Levin -

[PATCH 4.19 070/125] scsi: fcoe: Fix I/O path allocation

2020-09-01 Thread Greg Kroah-Hartman
From: Mike Christie [ Upstream commit fa39ab5184d64563cd36f2fb5f0d3fbad83a432c ] ixgbe_fcoe_ddp_setup() can be called from the main I/O path and is called with a spin_lock held, so we have to use GFP_ATOMIC allocation instead of GFP_KERNEL. Link: https://lore.kernel.org/r/1596831813-9839-1-git

[PATCH 4.19 069/125] ASoC: wm8994: Avoid attempts to read unreadable registers

2020-09-01 Thread Greg Kroah-Hartman
From: Sylwester Nawrocki [ Upstream commit f082bb59b72039a2326ec1a44496899fb8aa6d0e ] The driver supports WM1811, WM8994, WM8958 devices but according to documentation and the regmap definitions the WM8958_DSP2_* registers are only available on WM8958. In current code these registers are being a

Re: [PATCH v2 1/4] ARM: exynos: clear L310_AUX_CTRL_NS_LOCKDOWN in default l2c_aux_val

2020-09-01 Thread Krzysztof Kozlowski
On Tue, 1 Sep 2020 at 16:42, Guillaume Tucker wrote: > > On 01/09/2020 14:51, Krzysztof Kozlowski wrote: > > On Tue, 1 Sep 2020 at 15:45, Krzysztof Kozlowski wrote: > >> > >> On Tue, 1 Sep 2020 at 15:34, Guillaume Tucker > >> wrote: > >>> > >>> Hi Krzysztof, Russell, > >>> > >>> On 10/08/2020 13

[PATCH 4.19 061/125] ext4: handle read only external journal device

2020-09-01 Thread Greg Kroah-Hartman
From: Lukas Czerner [ Upstream commit 273108fa5015eeffc4bacfa5ce272af3434b96e4 ] Ext4 uses blkdev_get_by_dev() to get the block_device for journal device which does check to see if the read-only block device was opened read-only. As a result ext4 will hapily proceed mounting the file system wit

[PATCH 5.4 051/214] locking/lockdep: Fix overflow in presentation of average lock-time

2020-09-01 Thread Greg Kroah-Hartman
From: Chris Wilson [ Upstream commit a7ef9b28aa8d72a1656fa6f0a01bbd1493886317 ] Though the number of lock-acquisitions is tracked as unsigned long, this is passed as the divisor to div_s64() which interprets it as a s32, giving nonsense values with more than 2 billion acquisitons. E.g. acquis

Re: [PATCH] signal: clean up codestyle

2020-09-01 Thread Oleg Nesterov
On 09/01, Christian Brauner wrote: > > On Tue, Sep 01, 2020 at 07:58:00AM -0400, Miaohe Lin wrote: > > No functional change intended. > > Hey Miaohe, > > Thank you for the patch. > I'm sure this is well-intended but afaict the whole file has more or > less a consistent style already where e.g. sig-

[PATCH 5.4 050/214] drm/nouveau: Fix reference count leak in nouveau_connector_detect

2020-09-01 Thread Greg Kroah-Hartman
From: Aditya Pakki [ Upstream commit 990a1162986e8eff7ca18cc5a0e03b4304392ae2 ] nouveau_connector_detect() calls pm_runtime_get_sync and in turn increments the reference count. In case of failure, decrement the ref count before returning the error. Signed-off-by: Aditya Pakki Signed-off-by: Be

[PATCH 5.4 048/214] drm/nouveau/drm/noveau: fix reference count leak in nouveau_fbcon_open

2020-09-01 Thread Greg Kroah-Hartman
From: Aditya Pakki [ Upstream commit bfad51c7633325b5d4b32444efe04329d53297b2 ] nouveau_fbcon_open() calls calls pm_runtime_get_sync() that increments the reference count. In case of failure, decrement the ref count before returning the error. Signed-off-by: Aditya Pakki Signed-off-by: Ben Ske

Re: [PATCH] [v2] nvme-pci: check req to prevent crash in nvme_handle_cqe()

2020-09-01 Thread Keith Busch
On Mon, Aug 31, 2020 at 06:55:53PM +0800, Xianting Tian wrote: > As blk_mq_tag_to_rq() may return null, so it should be check whether it is > null before using it to prevent a crash. It may return NULL if the command id exceeds the number of tags. We already have a check for a valid command id val

[PATCH 4.19 067/125] spi: stm32: fix stm32_spi_prepare_mbr in case of odd clk_rate

2020-09-01 Thread Greg Kroah-Hartman
From: Amelie Delaunay [ Upstream commit 9cc61973bf9385b19ff5dda4a2a7e265fcba85e4 ] Fix spi->clk_rate when it is odd to the nearest lowest even value because minimum SPI divider is 2. Signed-off-by: Amelie Delaunay Signed-off-by: Alain Volmat Link: https://lore.kernel.org/r/1597043558-29668-4

[PATCH 2/6] mtd: rawnand: atmel: Simplify with dev_err_probe()

2020-09-01 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and the error value gets printed. Signed-off-by: Krzysztof Kozlowski --- drivers/mtd/nand/raw/atmel/nand-controller.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/driver

[PATCH 5.4 035/214] xfs: Dont allow logging of XFS_ISTALE inodes

2020-09-01 Thread Greg Kroah-Hartman
From: Dave Chinner [ Upstream commit 96355d5a1f0ee6dcc182c37db4894ec0c29f1692 ] In tracking down a problem in this patchset, I discovered we are reclaiming dirty stale inodes. This wasn't discovered until inodes were always attached to the cluster buffer and then the rcu callback that freed inod

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