[PATCH 5.8 151/255] scsi: qla2xxx: Fix login timeout

2020-09-01 Thread Greg Kroah-Hartman
From: Quinn Tran [ Upstream commit abb31aeaa9b20680b0620b23fea5475ea4591e31 ] Multipath errors were seen during failback due to login timeout. The remote device sent LOGO, the local host tore down the session and did relogin. The RSCN arrived indicates remote device is going through failover af

[PATCH 5.8 116/255] ext4: correctly restore system zone info when remount fails

2020-09-01 Thread Greg Kroah-Hartman
From: Jan Kara [ Upstream commit 0f5bde1db174f6c471f0bd27198575719dabe3e5 ] When remounting filesystem fails late during remount handling and block_validity mount option is also changed during the remount, we fail to restore system zone information to a state matching the mount option. This is m

Re: RFC: backport of commit a32c1c61212d

2020-09-01 Thread Doug Berger
On 9/1/2020 7:00 AM, Greg Kroah-Hartman wrote: > On Tue, Aug 25, 2020 at 03:58:27PM -0700, Doug Berger wrote: >> I recently tracked down a problem I observed when booting a v5.4 kernel >> on a sparsemem UMA arm platform which includes a no-map reserved-memory >> region in the middle of its HighMem

[PATCH 5.8 157/255] drm/amdgpu: fix NULL pointer access issue when unloading driver

2020-09-01 Thread Greg Kroah-Hartman
From: Guchun Chen [ Upstream commit 1a68d96f81b8e7eb2a121fbf9abf9e5974e58832 ] When unloading driver by "modprobe -r amdgpu", one NULL pointer dereference bug occurs in ras debugfs releasing. The cause is the duplicated debugfs_remove, as drm debugfs_root dir has been cleaned up already by drm_m

[PATCH 5.8 124/255] drm/amd/display: Fix LFC multiplier changing erratically

2020-09-01 Thread Greg Kroah-Hartman
From: Anthony Koo [ Upstream commit e4ed4dbbc8383d42a197da8fe7ca6434b0f14def ] [Why] 1. There is a calculation that is using frame_time_in_us instead of last_render_time_in_us to calculate whether choosing an LFC multiplier would cause the inserted frame duration to be outside of range. 2. We d

Re: [PATCH] staging: gdm724x: gdm_tty: replaced macro with an inline function

2020-09-01 Thread Greg KH
On Tue, Sep 01, 2020 at 05:44:37PM +0200, Antoni Przybylik wrote: > This approach is more elegant and prevents some problems related to > macros such as operator precedence in expanded expression. > > Signed-off-by: Antoni Przybylik > --- > drivers/staging/gdm724x/gdm_tty.c | 15 +--

[PATCH 5.8 100/255] i2c: core: Dont fail PRP0001 enumeration when no ID table exist

2020-09-01 Thread Greg Kroah-Hartman
From: Andy Shevchenko [ Upstream commit e3cb82c6d6f6c27ab754e13ae29bdd6b949982e2 ] When commit c647a9d1 ("i2c: core: Allow empty id_table in ACPI case as well") fixed the enumeration of I²C devices on ACPI enabled platforms when driver has no ID table, it missed the PRP0001 support. i2c_dev

[PATCH 5.8 163/255] libbpf: Fix map index used in error message

2020-09-01 Thread Greg Kroah-Hartman
From: Toke Høiland-Jørgensen [ Upstream commit 1e891e513e16c145cc9b45b1fdb8bf4a4f2f9557 ] The error message emitted by bpf_object__init_user_btf_maps() was using the wrong section ID. Signed-off-by: Toke Høiland-Jørgensen Signed-off-by: Daniel Borkmann Acked-by: Yonghong Song Link: https://l

[PATCH 5.8 167/255] hwmon: (gsc-hwmon) Scale temperature to millidegrees

2020-09-01 Thread Greg Kroah-Hartman
From: Tim Harvey commit c1ae18d313e24bc7833e1749dd36dba5d47f259c upstream. The GSC registers report temperature in decidegrees celcius so we need to scale it to represent the hwmon sysfs API of millidegrees. Cc: sta...@vger.kernel.org Fixes: 3bce5377ef66 ("hwmon: Add Gateworks System Controller

[PATCH 5.8 164/255] bpf: selftests: global_funcs: Check err_str before strstr

2020-09-01 Thread Greg Kroah-Hartman
From: Yauheni Kaliuta [ Upstream commit c210773d6c6f595f5922d56b7391fe343bc7310e ] The error path in libbpf.c:load_program() has calls to pr_warn() which ends up for global_funcs tests to test_global_funcs.c:libbpf_debug_print(). For the tests with no struct test_def::err_str initialized with a

[PATCH 5.8 169/255] block: loop: set discard granularity and alignment for block device backed loop

2020-09-01 Thread Greg Kroah-Hartman
From: Ming Lei commit bcb21c8cc9947286211327d663ace69f07d37a76 upstream. In case of block device backend, if the backend supports write zeros, the loop device will set queue flag of QUEUE_FLAG_DISCARD. However, limits.discard_granularity isn't setup, and this way is wrong, see the following desc

[PATCH 5.8 092/255] blk-mq: insert request not through ->queue_rq into sw/scheduler queue

2020-09-01 Thread Greg Kroah-Hartman
From: Ming Lei [ Upstream commit db03f88fae8a2c8007caafa70287798817df2875 ] c616cbee97ae ("blk-mq: punt failed direct issue to dispatch list") supposed to add request which has been through ->queue_rq() to the hw queue dispatch list, however it adds request running out of budget or driver tag to

[PATCH 5.8 120/255] 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 5.8 146/255] scsi: ufs: Clean up completed request without interrupt notification

2020-09-01 Thread Greg Kroah-Hartman
From: Stanley Chu [ Upstream commit b10178ee7fa88b68a9e8adc06534d2605cb0ec23 ] If somehow no interrupt notification is raised for a completed request and its doorbell bit is cleared by host, UFS driver needs to cleanup its outstanding bit in ufshcd_abort(). Otherwise, system may behave abnormall

[PATCH 5.8 144/255] scsi: ufs: Fix possible infinite loop in ufshcd_hold

2020-09-01 Thread Greg Kroah-Hartman
From: Stanley Chu [ Upstream commit 93b6c5db06028a3b55122bbb74d0715dd8ca4ae0 ] In ufshcd_suspend(), after clk-gating is suspended and link is set as Hibern8 state, ufshcd_hold() is still possibly invoked before ufshcd_suspend() returns. For example, MediaTek's suspend vops may issue UIC commands

[PATCH 5.8 118/255] spi: stm32h7: fix race condition at end of transfer

2020-09-01 Thread Greg Kroah-Hartman
From: Antonio Borneo [ Upstream commit 135dd873d3c76d812ae64c668adef3f2c59ed27f ] The caller of stm32_spi_transfer_one(), spi_transfer_one_message(), is waiting for us to call spi_finalize_current_transfer() and will eventually schedule a new transfer, if available. We should guarantee that the

[PATCH 5.8 083/255] 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.8 135/255] dma-pool: fix coherent pool allocations for IOMMU mappings

2020-09-01 Thread Greg Kroah-Hartman
From: Christoph Hellwig [ Upstream commit 9420139f516d7fbc248ce17f35275cb005ed98ea ] When allocating coherent pool memory for an IOMMU mapping we don't care about the DMA mask. Move the guess for the initial GFP mask into the dma_direct_alloc_pages and pass dma_coherent_ok as a function pointer

[PATCH 5.8 141/255] ALSA: usb-audio: ignore broken processing/extension unit

2020-09-01 Thread Greg Kroah-Hartman
From: Tom Yan [ Upstream commit d8d0db7bb358ef65d60726a61bfcd08eccff0bc0 ] Some devices have broken extension unit where getting current value doesn't work. Attempt that once when creating mixer control for it. If it fails, just ignore it, so that it won't cripple the device entirely (and/or mak

[PATCH 3/3] drm/msm/gpu: Add suspend/resume tracepoints

2020-09-01 Thread Rob Clark
From: Rob Clark Signed-off-by: Rob Clark --- I'm not sure if there is a better way to do no-arg tracepoints? The trace framework seems to go out of it's way to make this difficult. Or maybe there is a more obvious thing that I'm not seeing. drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 4 dri

[PATCH 5.8 140/255] 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

[PATCH 5.8 125/255] drm/amd/display: Switch to immediate mode for updating infopackets

2020-09-01 Thread Greg Kroah-Hartman
From: Anthony Koo [ Upstream commit abba907c7a20032c2d504fd5afe3af7d440a09d0 ] [Why] Using FRAME_UPDATE will result in infopacket to be potentially updated one frame late. In commit stream scenarios for previously active stream, some stale infopacket data from previous config might be erroneousl

[PATCH 5.8 138/255] ALSA: hda/realtek: Add model alc298-samsung-headphone

2020-09-01 Thread Greg Kroah-Hartman
From: Mike Pozulp [ Upstream commit 23dc958689449be85e39351a8c809c3d344b155b ] The very quiet and distorted headphone output bug that afflicted my Samsung Notebook 9 is appearing in many other Samsung laptops. Expose the quirk which fixed my laptop as a model so other users can try it. BugLink:

[PATCH 5.8 055/255] btrfs: make btrfs_qgroup_check_reserved_leak take btrfs_inode

2020-09-01 Thread Greg Kroah-Hartman
From: Nikolay Borisov [ Upstream commit cfdd45921571eb24073e0737fa0bd44b4218f914 ] vfs_inode is used only for the inode number everything else requires btrfs_inode. Signed-off-by: Nikolay Borisov Reviewed-by: David Sterba [ use btrfs_ino ] Signed-off-by: David Sterba Signed-off-by: Sasha Lev

[PATCH 5.8 148/255] scsi: qla2xxx: Flush all sessions on zone disable

2020-09-01 Thread Greg Kroah-Hartman
From: Quinn Tran [ Upstream commit 10ae30ba664822f62de169a61628e31c999c7cc8 ] On Zone Disable, certain switches would ignore all commands. This causes timeout for both switch scan command and abort of that command. On detection of this condition, all sessions will be shutdown. Link: https://lor

[PATCH 5.8 134/255] can: j1939: transport: j1939_xtp_rx_dat_one(): compare own packets to detect corruptions

2020-09-01 Thread Greg Kroah-Hartman
From: Oleksij Rempel [ Upstream commit e052d0540298bfe0f6cbbecdc7e2ea9b859575b2 ] Since the stack relays on receiving own packets, it was overwriting own transmit buffer from received packets. At least theoretically, the received echo buffer can be corrupt or changed and the session partner can

RE: [PATCH v5 0/3] TypeC Connector Class driver improvements

2020-09-01 Thread Shaikh, Azhar
Thank you Enric! > -Original Message- > From: Enric Balletbo i Serra > Sent: Tuesday, September 1, 2020 2:07 AM > To: Shaikh, Azhar ; ble...@chromium.org; > gro...@chromium.org; heikki.kroge...@linux.intel.com; > pmal...@chromium.org > Cc: linux-kernel@vger.kernel.org; Mani, Rajmohan > ;

Re: [PATCH 5/5] mlock: fix unevictable_pgs event counts on THP

2020-09-01 Thread Yang Shi
On Sun, Aug 30, 2020 at 2:09 PM Hugh Dickins wrote: > > 5.8 commit 5d91f31faf8e ("mm: swap: fix vmstats for huge page") has > established that vm_events should count every subpage of a THP, > including unevictable_pgs_culled and unevictable_pgs_rescued; but > lru_cache_add_inactive_or_unevictable(

[PATCH 5.8 082/255] PM / devfreq: Fix the wrong end with semicolon

2020-09-01 Thread Greg Kroah-Hartman
From: Chanwoo Choi [ Upstream commit 27a69714450f5c9288cec2b20f1ae4f7ad34dacf ] Fix the wrong grammar at the end of code line by using semicolon. Cc: stable vger.kernel.org Fixes: 490a421bc575 ("PM / devfreq: Add debugfs support with devfreq_summary file") Signed-off-by: Chanwoo Choi Signed-o

[PATCH 5.8 128/255] netfilter: avoid ipv6 -> nf_defrag_ipv6 module dependency

2020-09-01 Thread Greg Kroah-Hartman
From: Florian Westphal [ Upstream commit 2404b73c3f1a5f15726c6ecd226b56f6f992767f ] nf_ct_frag6_gather is part of nf_defrag_ipv6.ko, not ipv6 core. The current use of the netfilter ipv6 stub indirections causes a module dependency between ipv6 and nf_defrag_ipv6. This prevents nf_defrag_ipv6

[PATCH 2/3] drm/msm: Convert shrinker msgs to tracepoints

2020-09-01 Thread Rob Clark
From: Rob Clark This reduces the spam in dmesg when we start hitting the shrinker, and replaces it with something we can put on a timeline while profiling or debugging system issues. Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/msm_gem_shrinker.c | 5 +++-- drivers/gpu/drm/msm/msm_gpu_tra

[PATCH 1/3] drm/msm/gpu: Add GPU freq_change traces

2020-09-01 Thread Rob Clark
From: Rob Clark Technically the GMU specific one is a bit redundant, but it was useful to track down a bug. Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/adreno/a6xx_gmu.c | 3 +++ drivers/gpu/drm/msm/msm_gpu.c | 2 ++ drivers/gpu/drm/msm/msm_gpu_trace.h | 31 +++

Re: [PATCH v4 0/4] Remove dependency of check subcmd upon orc

2020-09-01 Thread Josh Poimboeuf
On Tue, Aug 25, 2020 at 01:47:38PM +0100, Julien Thierry wrote: > Hi, > > Matt Helsley's change[1] provided a base framework to opt-in/out > objtool subcommands at compile time. This makes it easier for > architectures to port objtool, one subcommand at a time. > > Orc generation relies on the ch

Re: [PATCH v2 0/3] arm64: Convert to ARCH_STACKWALK

2020-09-01 Thread Mark Rutland
Hi, On Wed, Aug 19, 2020 at 01:49:10PM +0100, Mark Brown wrote: > This series updates the arm64 stacktrace code to use the newer and much > simpler arch_stack_walk() interface, the main benefit being a single > entry point to the arch code with no need for the arch code to worry > about skipping f

[PATCH 5.8 074/255] pinctrl: mediatek: avoid virtual gpio trying to set reg

2020-09-01 Thread Greg Kroah-Hartman
From: Hanks Chen [ Upstream commit edd546465002621665a3a275abe908a30efdce5b ] for virtual gpios, they should not do reg setting and should behave as expected for eint function. Signed-off-by: Mars Cheng Signed-off-by: Hanks Chen Acked-by: Sean Wang Link: https://lore.kernel.org/r/1595503197

[PATCH 5.8 088/255] 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

[PATCH 5.8 086/255] 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

Re: [PATCH v2] mmc: mmc_spi: Allow the driver to be built when CONFIG_HAS_DMA is unset

2020-09-01 Thread Christoph Hellwig
On Tue, Sep 01, 2020 at 05:36:17PM +0200, Ulf Hansson wrote: > > I still don't think this makes sense, as the dma_mask should always > > be non-NULL here. > > If that is the case, I wonder how the driver could even have worked without > DMA. > > Because in the existing code, host->dma_dev gets a

[PATCH 5.8 073/255] brcmfmac: Set timeout value when configuring power save

2020-09-01 Thread Greg Kroah-Hartman
From: Nicolas Saenz Julienne [ Upstream commit 3dc05ffb04436020f63138186dbc4f37bd938552 ] Set the timeout value as per cfg80211's set_power_mgmt() request. If the requested value value is left undefined we set it to 2 seconds, the maximum supported value. Signed-off-by: Nicolas Saenz Julienne

[PATCH 5.8 089/255] block: Fix page_is_mergeable() for compound pages

2020-09-01 Thread Greg Kroah-Hartman
From: Matthew Wilcox (Oracle) [ Upstream commit d81665198b83e55a28339d1f3e4890ed8a434556 ] If we pass in an offset which is larger than PAGE_SIZE, then page_is_mergeable() thinks it's not mergeable with the previous bio_vec, leading to a large number of bio_vecs being used. Use a slightly more

[PATCH 0/3] drm/msm: More GPU tracepoints

2020-09-01 Thread Rob Clark
From: Rob Clark Various extra tracepoints that I've been collecting. Rob Clark (3): drm/msm/gpu: Add GPU freq_change traces drm/msm: Convert shrinker msgs to tracepoints drm/msm/gpu: Add suspend/resume tracepoints drivers/gpu/drm/msm/adreno/a6xx_gmu.c | 3 + drivers/gpu/drm/msm/adreno/

[PATCH 5.8 090/255] bfq: fix blkio cgroup leakage v4

2020-09-01 Thread Greg Kroah-Hartman
From: Dmitry Monakhov [ Upstream commit 2de791ab4918969d8108f15238a701968375f235 ] Changes from v1: - update commit description with proper ref-accounting justification commit db37a34c563b ("block, bfq: get a ref to a group when adding it to a service tree") introduce leak forbfq_group and

[PATCH 5.8 111/255] drm/virtio: fix memory leak in virtio_gpu_cleanup_object()

2020-09-01 Thread Greg Kroah-Hartman
From: Xin He [ Upstream commit 836b194d65782aaec4485a07d2aab52d3f698505 ] Before setting shmem->pages to NULL, kfree() should be called. Signed-off-by: Xin He Reviewed-by: Qi Liu Link: http://patchwork.freedesktop.org/patch/msgid/20200722051851.72662-1-hexin...@bytedance.com Signed-off-by: G

Re: [PATCH] block: Fix potential NULL pointer dereference in __bio_crypt_clone()

2020-09-01 Thread Eric Biggers
On Tue, Sep 01, 2020 at 07:59:21AM -0400, Miaohe Lin wrote: > mempool_alloc() may return NULL if __GFP_DIRECT_RECLAIM is not set in > gfp_mask under memory pressure. So we should check the return value of > mempool_alloc() against NULL before dereference. > > Fixes: a892c8d52c02 ("block: Inline en

[PATCH 5.8 110/255] ext4: skip non-loaded groups at cr=0/1 when scanning for good groups

2020-09-01 Thread Greg Kroah-Hartman
From: Alex Zhuravlev [ Upstream commit c1d2c7d47e15482bb23cda83a5021e60f624a09c ] cr=0 is supposed to be an optimization to save CPU cycles, but if buddy data (in memory) is not initialized then all this makes no sense as we have to do sync IO taking a lot of cycles. Also, at cr=0 mballoc doesn

[PATCH 5.8 058/255] 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.8 024/255] 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.8 094/255] nvmet: fix a memory leak

2020-09-01 Thread Greg Kroah-Hartman
From: Sagi Grimberg [ Upstream commit 382fee1a8b623e2546a3e15e80517389e0e0673e ] We forgot to free new_model_number Fixes: 013b7ebe5a0d ("nvmet: make ctrl model configurable") Reviewed-by: Chaitanya Kulkarni Signed-off-by: Sagi Grimberg Signed-off-by: Jens Axboe Signed-off-by: Sasha Levin -

[PATCH 5.8 047/255] ASoC: Intel: sof_sdw_rt711: remove properties in card remove

2020-09-01 Thread Greg Kroah-Hartman
From: Pierre-Louis Bossart [ Upstream commit cf0418cd06ce42fcf35beb33e315b5a77e596926 ] The rt711 jack detection properties are set from the machine drivers during the card probe, as done in other ASoC examples. KASAN reports a use-after-free error when unbinding drivers due to a confusing sequ

[PATCH 5.8 098/255] habanalabs: Fix memory corruption in debugfs

2020-09-01 Thread Greg Kroah-Hartman
From: Dan Carpenter [ Upstream commit eeec23cd325ad4d83927b8ee162693579cf3813f ] This has to be a long instead of a u32 because we write a long value. On 64 bit systems, this will cause memory corruption. Fixes: c216477363a3 ("habanalabs: add debugfs support") Signed-off-by: Dan Carpenter Revi

[PATCH 5.8 097/255] 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.8 045/255] gpu: host1x: Put gathers BO on pinning error

2020-09-01 Thread Greg Kroah-Hartman
From: Dmitry Osipenko [ Upstream commit fd323e9ef0a19112c0c85b85afc4848c0518174b ] This patch fixes gather's BO refcounting on a pinning error. Gather's BO won't be leaked now if something goes wrong. Signed-off-by: Dmitry Osipenko Signed-off-by: Thierry Reding Signed-off-by: Sasha Levin ---

[PATCH 5.8 056/255] scsi: iscsi: Do not put host in iscsi_set_flashnode_param()

2020-09-01 Thread Greg Kroah-Hartman
From: Jing Xiangfeng [ Upstream commit 68e12e5f61354eb42cfffbc20a693153fc39738e ] If scsi_host_lookup() fails we will jump to put_host which may cause a panic. Jump to exit_set_fnode instead. Link: https://lore.kernel.org/r/20200615081226.183068-1-jingxiangf...@huawei.com Reviewed-by: Mike Chri

[PATCH 5.8 101/255] 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.8 078/255] net: openvswitch: introduce common code for flushing flows

2020-09-01 Thread Greg Kroah-Hartman
From: Tonghao Zhang [ Upstream commit 1f3a090b9033f69de380c03db3ea1a1015c850cf ] To avoid some issues, for example RCU usage warning and double free, we should flush the flows under ovs_lock. This patch refactors table_instance_destroy and introduces table_instance_flow_flush which can be invoke

[PATCH 5.8 042/255] rtlwifi: rtl8192cu: Prevent leaking urb

2020-09-01 Thread Greg Kroah-Hartman
From: Reto Schneider [ Upstream commit 03128643eb5453a798db5770952c73dc64fcaf00 ] If usb_submit_urb fails the allocated urb should be unanchored and released. Signed-off-by: Reto Schneider Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/20200622132113.14508-3-c...@reto-schneider.ch

Re: [PATCH 3/5] shmem: shmem_writepage() split unlikely i915 THP

2020-09-01 Thread Yang Shi
On Sun, Aug 30, 2020 at 2:04 PM Hugh Dickins wrote: > > drivers/gpu/drm/i915/gem/i915_gem_shmem.c contains a shmem_writeback() > which calls shmem_writepage() from a shrinker: that usually works well > enough; but if /sys/kernel/mm/transparent_hugepage/shmem_enabled has > been set to "force" (docu

[PATCH 5.8 041/255] ARM: dts: ls1021a: output PPS signal on FIPER2

2020-09-01 Thread Greg Kroah-Hartman
From: Yangbo Lu [ Upstream commit 5656bb3857c4904d1dec6e1b8f876c1c0337274e ] The timer fixed interval period pulse generator register is used to generate periodic pulses. The down count register loads the value programmed in the fixed period interval (FIPER). At every tick of the timer accumulat

[PATCH 5.8 052/255] 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.8 075/255] pinctrl: mediatek: fix build for tristate changes

2020-09-01 Thread Greg Kroah-Hartman
From: Randy Dunlap [ Upstream commit 047cd9a6bd8a2a73e8d92eb97a1b50c7bcd59279 ] Export mtk_is_virt_gpio() for the case when CONFIG_PINCTRL_MTK=y CONFIG_PINCTRL_MTK_V2=y CONFIG_PINCTRL_MTK_MOORE=y CONFIG_PINCTRL_MTK_PARIS=m to fix this build error: ERROR: modpost: "mtk_is_virt_gpio" [drivers/pi

[PATCH 5.8 080/255] PCI: qcom: Change duplicate PCI reset to phy reset

2020-09-01 Thread Greg Kroah-Hartman
From: Abhishek Sahu [ Upstream commit dd58318c019f10bc94db36df66af6c55d4c0cbba ] The deinit issues reset_control_assert for PCI twice and does not contain phy reset. Link: https://lore.kernel.org/r/20200615210608.21469-4-ansuels...@gmail.com Signed-off-by: Abhishek Sahu Signed-off-by: Ansuel S

[PATCH 5.8 053/255] 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

[PATCH 5.8 072/255] mmc: sdhci-of-arasan: fix timings allocation code

2020-09-01 Thread Greg Kroah-Hartman
From: Manish Narani [ Upstream commit 88e1d0b175ec0bfa775c8629eae2a728726e2c6a ] The initial code that was adding delays was doing a cast over undefined memory. This meant that the delays would be all gibberish. This change, allocates all delays on the stack, and assigns them from the ZynqMP &

[PATCH 5.8 018/255] staging: rts5208: fix memleaks on error handling paths in probe

2020-09-01 Thread Greg Kroah-Hartman
From: Evgeny Novikov [ Upstream commit 11507bf9a8832741db69efd32bf09a2ab26426bf ] rtsx_probe() allocates host, but does not free it on error handling paths. The patch adds missed scsi_host_put(). Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Evgeny Novikov Link

Re: [PATCH] block: Fix potential page reference leak in __bio_iov_iter_get_pages()

2020-09-01 Thread Christoph Hellwig
On Tue, Sep 01, 2020 at 08:00:06AM -0400, Miaohe Lin wrote: > When bio is full, __bio_iov_iter_get_pages() would return error directly > while left page reference still held in pages. Release these references. > Also advance the iov_iter according to what we have done successfully. > > Fixes: 576e

Re: [PATCH v2 5/9] iommu/ioasid: Introduce ioasid_set private ID

2020-09-01 Thread Auger Eric
Hi Jacob, On 8/22/20 6:35 AM, Jacob Pan wrote: > When an IOASID set is used for guest SVA, each VM will acquire its > ioasid_set for IOASID allocations. IOASIDs within the VM must have a > host/physical IOASID backing, mapping between guest and host IOASIDs can > be non-identical. IOASID set privat

[PATCH 5.8 030/255] drm/amdkfd: fix ref count leak when pm_runtime_get_sync fails

2020-09-01 Thread Greg Kroah-Hartman
From: Alex Deucher [ Upstream commit 1c1ada37af6ee6fb9cfc8da6a56cc83208cd8d6f ] 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. Reviewed-by: Rajneesh Bhardwaj Signed-of

Re: [PATCH 04/11] spi: bcm2835: Simplify with dev_err_probe()

2020-09-01 Thread Florian Fainelli
On 9/1/2020 8:27 AM, Krzysztof Kozlowski wrote: 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 Acked-by: Florian Fainelli -- Florian

Re: [PATCH v2] mmc: mmc_spi: Allow the driver to be built when CONFIG_HAS_DMA is unset

2020-09-01 Thread Ulf Hansson
On Tue, 1 Sep 2020 at 17:06, Christoph Hellwig wrote: > > On Tue, Sep 01, 2020 at 05:04:38PM +0200, Ulf Hansson wrote: > > +#ifdef CONFIG_HAS_DMA > > +static int mmc_spi_dma_alloc(struct mmc_spi_host *host) > > +{ > > + struct spi_device *spi = host->spi; > > + struct device *dev; > > + >

[PATCH 5.8 070/255] dmaengine: idxd: fix PCI_MSI build errors

2020-09-01 Thread Greg Kroah-Hartman
[ Upstream commit d6a7bb869dd8a516901591136a9a895fd829d6c6 ] Fix build errors when CONFIG_PCI_MSI is not enabled by making the driver depend on PCI_MSI: ld: drivers/dma/idxd/device.o: in function `idxd_mask_msix_vector': device.c:(.text+0x26f): undefined reference to `pci_msi_mask_irq' ld: driver

[PATCH 5.8 066/255] drm/amd/display: change global buffer to local buffer

2020-09-01 Thread Greg Kroah-Hartman
From: Lewis Huang [ Upstream commit 8ae5b155928c9183c2f37b5c4eec21037d958699 ] [Why] Multi-adapter calculate regamma table at the same time. Two thread used the same global variable cause race condition. [How] Change global buffer to local buffer Signed-off-by: Lewis Huang Reviewed-by: Aric C

[PATCH 5.8 051/255] drm/nouveau: fix reference count leak in nv50_disp_atomic_commit

2020-09-01 Thread Greg Kroah-Hartman
From: Aditya Pakki [ Upstream commit a2cdf39536b0d21fb06113f5e16692513d7bcb9c ] nv50_disp_atomic_commit() calls 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-b

[PATCH 5.8 067/255] drm/amd/display: fix compilation error on allmodconfig

2020-09-01 Thread Greg Kroah-Hartman
From: Qingqing Zhuo [ Upstream commit 8c823e4ff67c78659ab403d63d071103416f49eb ] when compiled with allmodconfig option, there are error messages as below: ERROR: modpost: "mod_color_is_table_init" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined! ERROR: modpost: "mod_color_get_table" [drivers/

[PATCH 5.8 059/255] ceph: do not access the kiocb after aio requests

2020-09-01 Thread Greg Kroah-Hartman
From: Xiubo Li [ Upstream commit d1d9655052606fd9078e896668ec90191372d513 ] In aio case, if the completion comes very fast just before the ceph_read_iter() returns to fs/aio.c, the kiocb will be freed in the completion callback, then if ceph_read_iter() access again we will potentially hit the u

[PATCH 5.8 025/255] 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: [PATCH 1/2] serial: 8250: Simplify with dev_err_probe()

2020-09-01 Thread Florian Fainelli
On 9/1/2020 8:30 AM, Krzysztof Kozlowski wrote: 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/se

[PATCH 5.8 065/255] media: i2c: imx290: fix reset GPIO pin handling

2020-09-01 Thread Greg Kroah-Hartman
From: Andrey Konovalov [ Upstream commit 3909a92d7df622b41b9ca694e641cad7667b ] According to https://www.kernel.org/doc/Documentation/gpio/consumer.txt, - all of the gpiod_set_value_xxx() functions operate with the *logical* value. So in imx290_power_on() the reset signal should be cleared

[PATCH 5.8 016/255] gcc-plugins/stackleak: Dont instrument itself

2020-09-01 Thread Greg Kroah-Hartman
From: Alexander Popov [ Upstream commit 005e696df65d0ff90468ecf38a50aa584dc82421 ] There is no need to try instrumenting functions in kernel/stackleak.c. Otherwise that can cause issues if the cleanup pass of stackleak gcc plugin is disabled. Signed-off-by: Alexander Popov Link: https://lore.k

[PATCH 5.8 063/255] hugetlbfs: prevent filesystem stacking of hugetlbfs

2020-09-01 Thread Greg Kroah-Hartman
From: Mike Kravetz [ Upstream commit 15568299b7d9988063afce60731df605ab236e2a ] syzbot found issues with having hugetlbfs on a union/overlay as reported in [1]. Due to the limitations (no write) and special functionality of hugetlbfs, it does not work well in filesystem stacking. There are no

[PATCH 5.8 064/255] 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.8 036/255] f2fs: remove write attribute of main_blkaddr sysfs node

2020-09-01 Thread Greg Kroah-Hartman
From: Dehe Gu [ Upstream commit ffcde4b29a5f20ddca6fe559b48f345818bf1d91 ] Fuzzing main_blkaddr sysfs node will corrupt this field's value, causing kernel panic, remove its write attribute to avoid potential security risk. [Chao Yu: add description] Signed-off-by: Dehe Gu Signed-off-by: Daiyu

[PATCH 5.8 020/255] mfd: intel-lpss: Add Intel Tiger Lake PCH-H PCI IDs

2020-09-01 Thread Greg Kroah-Hartman
From: Andy Shevchenko [ Upstream commit bb7fcad48d3804d814b97c785514e2d1657e157f ] Intel Tiger Lake PCH-H has the same LPSS than Intel Broxton. Add the new IDs to the list of supported devices. Signed-off-by: Andy Shevchenko Signed-off-by: Lee Jones Signed-off-by: Sasha Levin --- drivers/mf

[PATCH 5.8 003/255] 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.8 021/255] iommu/iova: Dont BUG on invalid PFNs

2020-09-01 Thread Greg Kroah-Hartman
From: Robin Murphy [ Upstream commit d3e3d2be688b4b5864538de61e750721a311e4fc ] Unlike the other instances which represent a complete loss of consistency within the rcache mechanism itself, or a fundamental and obvious misconfiguration by an IOMMU driver, the BUG_ON() in iova_magazine_free_pfns(

[PATCH 5.8 043/255] mips/vdso: Fix resource leaks in genvdso.c

2020-09-01 Thread Greg Kroah-Hartman
From: Peng Fan [ Upstream commit a859647b4e6bfeb192284d27d24b6a0c914cae1d ] Close "fd" before the return of map_vdso() and close "out_file" in main(). Signed-off-by: Peng Fan Signed-off-by: Thomas Bogendoerfer Signed-off-by: Sasha Levin --- arch/mips/vdso/genvdso.c | 10 ++ 1 file c

[PATCH 5.8 035/255] selftests/powerpc: Purge extra count_pmc() calls of ebb selftests

2020-09-01 Thread Greg Kroah-Hartman
From: Desnes A. Nunes do Rosario [ Upstream commit 3337bf41e0dd70b4064cdf60acdfcdc2d050066c ] An extra count on ebb_state.stats.pmc_count[PMC_INDEX(pmc)] is being per- formed when count_pmc() is used to reset PMCs on a few selftests. This extra pmc_count can occasionally invalidate results, such

[PATCH 5.4 196/214] USB: gadget: f_ncm: add bounds checks to ncm_unwrap_ntb()

2020-09-01 Thread Greg Kroah-Hartman
From: Brooke Basile commit 2b74b0a04d3e9f9f08ff026e5663dce88ff94e52 upstream. Some values extracted by ncm_unwrap_ntb() could possibly lead to several different out of bounds reads of memory. Specifically the values passed to netdev_alloc_skb_ip_align() need to be checked so that memory is not

[PATCH 5.8 011/255] ASoC: tegra: Fix reference count leaks.

2020-09-01 Thread Greg Kroah-Hartman
From: Qiushi Wu [ Upstream commit deca195383a6085be62cb453079e03e04d618d6e ] Calling pm_runtime_get_sync increments the counter even in case of failure, causing incorrect ref count if pm_runtime_put is not called in error handling paths. Call pm_runtime_put if pm_runtime_get_sync fails. Signed-

[PATCH 5.8 040/255] PCI: Fix pci_create_slot() reference count leak

2020-09-01 Thread Greg Kroah-Hartman
From: Qiushi Wu [ Upstream commit 8a94644b440eef5a7b9c104ac8aa7a7f413e35e5 ] kobject_init_and_add() takes a reference even when it fails. If it returns an error, kobject_put() must be called to clean up the memory associated with the object. When kobject_init_and_add() fails, call kobject_put(

[PATCH 5.8 048/255] HID: quirks: add NOGET quirk for Logitech GROUP

2020-09-01 Thread Greg Kroah-Hartman
From: Ikjoon Jang [ Upstream commit 68f775ddd2a6f513e225f9a565b054ab48fef142 ] Add HID_QUIRK_NOGET for Logitech GROUP device. Logitech GROUP is a compound with camera and audio. When the HID interface in an audio device is requested to get specific report id, all following control transfers are

Re: [PATCH 2/4] exit: support non-blocking pidfds

2020-09-01 Thread Oleg Nesterov
On 08/31, Christian Brauner wrote: > > --- a/kernel/exit.c > +++ b/kernel/exit.c > @@ -934,6 +934,7 @@ struct wait_opts { > > wait_queue_entry_t child_wait; > int notask_error; > + int eagain_error; > }; > > static int eligi

[PATCH 5.8 034/255] scsi: target: Fix xcopy sess release leak

2020-09-01 Thread Greg Kroah-Hartman
From: Mike Christie [ Upstream commit 3c006c7d23aac928279f7cbe83bbac4361255d53 ] transport_init_session can allocate memory via percpu_ref_init, and target_xcopy_release_pt never frees it. This adds a transport_uninit_session function to handle cleanup of resources allocated in the init function

[PATCH 5.8 031/255] drm/amdgpu/pm: fix ref count leak when pm_runtime_get_sync fails

2020-09-01 Thread Greg Kroah-Hartman
From: Alex Deucher [ Upstream commit 66429300e1bd9cdfbe96cfc475e4964db2a36921 ] 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. Reviewed-by: Evan Quan Signed-off-by: Al

[PATCH 5.8 032/255] scsi: lpfc: Fix shost refcount mismatch when deleting vport

2020-09-01 Thread Greg Kroah-Hartman
From: Dick Kennedy [ Upstream commit 03dbfe0668e6692917ac278883e0586cd7f7d753 ] When vports are deleted, it is observed that there is memory/kthread leakage as the vport isn't fully being released. There is a shost reference taken in scsi_add_host_dma that is not released during scsi_remove_hos

[PATCH 5.4 211/214] kbuild: fix broken builds because of GZIP,BZIP2,LZOP variables

2020-09-01 Thread Greg Kroah-Hartman
From: Denis Efremov commit e4a42c82e943b97ce124539fcd7a47445b43fa0d upstream. Redefine GZIP, BZIP2, LZOP variables as KGZIP, KBZIP2, KLZOP resp. GZIP, BZIP2, LZOP env variables are reserved by the tools. The original attempt to redefine them internally doesn't work in makefiles/scripts intercall

[PATCH 5.8 009/255] 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.8 029/255] drm/amdgpu/fence: fix ref count leak when pm_runtime_get_sync fails

2020-09-01 Thread Greg Kroah-Hartman
From: Alex Deucher [ Upstream commit e520d3e0d2818aafcdf9d8b60916754d8fedc366 ] 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. Reviewed-by: Felix Kuehling Acked-by: Ra

[PATCH 5.8 008/255] EDAC/mc: Call edac_inc_ue_error() before panic

2020-09-01 Thread Greg Kroah-Hartman
From: Zhenzhong Duan [ Upstream commit e9ff6636d3f97a764487999754c0bfee9d2c231e ] By calling edac_inc_ue_error() before panic, we get a correct UE error count for core dump analysis. Signed-off-by: Zhenzhong Duan Signed-off-by: Tony Luck Link: https://lore.kernel.org/r/20200610065846.3626-2-z

[PATCH 5.8 033/255] 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

[PATCH 5.8 005/255] ALSA: hda/realtek: Fix pin default on Intel NUC 8 Rugged

2020-09-01 Thread Greg Kroah-Hartman
From: Kai-Heng Feng [ Upstream commit e2d2fded6bdf3f7bb40718a208140dba8b4ec574 ] The jack on Intel NUC 8 Rugged rear panel doesn't work. The spec [1] states that the jack supports both headphone and microphone, so override a Pin Complex which has both Amp-In and Amp-Out to make the jack work.

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