[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 u

[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 i

[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 lea

[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 ex

[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 vmalloc_to_pf

[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 transactions

[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: https://syzkaller.appspot.com/bug?extid=

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 addr

[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: 56f

[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() an

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 Kroah-Har

[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 Kroah-Har

[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: https

[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: sta...@vger.kerne

[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 node

[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() an

[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 T

[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 no

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] : [PATC

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] [Fi

[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, Sowja

[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 tempo

[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 oops

[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 Signed-off-

[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 transactions

[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 pre

[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 t

[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 wind

[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 up

[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 src/dst

[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 usin

[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 t

[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 mo

[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: f3bd

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 o

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: arch/x86

[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 match

[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: https://lore.kernel.org/r/2020081401434

[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 rec

[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. [ idryomov

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, lockdep_is_held(&br->multicas

[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 firewire-t

[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: https://syzkaller.appspot.com/bug?extid=

[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 HS2

[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 was

[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 retransmiss

[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: 56f

[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: https:/

[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. Signed

[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 devi

[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 class

[PATCH 5.8 141/186] ALSA: hda - Fix silent audio output and corrupted input on MSI X570-A PRO

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

[PATCH 5.4 009/129] habanalabs: check correct vmalloc return code

2020-09-08 Thread Greg Kroah-Hartman
From: Ofir Bitton [ Upstream commit 0839152f8c1efc1cc2d515d1ff1e253ca9402ad3 ] vmalloc can return different return code than NULL and a valid pointer. We must validate it in order to dereference a non valid pointer. Signed-off-by: Ofir Bitton Signed-off-by: Oded Gabbay Signed-off-by: Sasha Le

[PATCH 5.8 162/186] drm/i915: Fix sha_text population code

2020-09-08 Thread Greg Kroah-Hartman
From: Sean Paul commit 9ab57658a608f879469ffa22b723c4539c05a58f upstream. This patch fixes a few bugs: 1- We weren't taking into account sha_leftovers when adding multiple ksvs to sha_text. As such, we were or'ing the end of ksv[j - 1] with the beginning of ksv[j] 2- In the sha_leftovers

Re: [PATCH 1/3] net: ax88796c: ASIX AX88796C SPI Ethernet Adapter Driver

2020-09-08 Thread Andrew Lunn
On Tue, Sep 08, 2020 at 07:49:20PM +0200, Lukasz Stelmach wrote: > It was <2020-09-07 pon 20:18>, when Andrew Lunn wrote: > >> > On Tue, Aug 25, 2020 at 07:03:09PM +0200, Łukasz Stelmach wrote: > >> >> +++ b/drivers/net/ethernet/asix/ax88796c_ioctl.c > >> > > >> > This is an odd filename. The ioctl

[PATCH 5.8 174/186] mm: madvise: fix vma user-after-free

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

[PATCH 5.8 177/186] perf record: Correct the help info of option "--no-bpf-event"

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

[PATCH 5.8 173/186] mm: track page table modifications in __apply_to_page_range()

2020-09-08 Thread Greg Kroah-Hartman
From: Joerg Roedel commit e80d3909be42f7e38cc350c1ba109cf0aa51956a upstream. __apply_to_page_range() is also used to change and/or allocate page-table pages in the vmalloc area of the address space. Make sure these changes get synchronized to other page-tables in the system by calling arch_sync

Re: [PATCH v3] debugobjects: install CPU hotplug callback

2020-09-08 Thread Waiman Long
On 9/8/20 2:27 AM, qiang.zh...@windriver.com wrote: From: Zqiang Due to CPU hotplug, it may never be online after it's offline, some objects in percpu pool is never free. in order to avoid this happening, install CPU hotplug callback, call this callback func to free objects in percpu pool when

[PATCH 5.8 168/186] dm crypt: Initialize crypto wait structures

2020-09-08 Thread Greg Kroah-Hartman
From: Damien Le Moal commit 7785a9e4c228db6d01086a52d5685cd7336a08b7 upstream. Use the DECLARE_CRYPTO_WAIT() macro to properly initialize the crypto wait structures declared on stack before their use with crypto_wait_req(). Fixes: 39d13a1ac41d ("dm crypt: reuse eboiv skcipher for IV generation"

Re: [IB/srpt] c804af2c1d: last_state.test.blktests.exit_code.143

2020-09-08 Thread Jason Gunthorpe
On Sun, Sep 06, 2020 at 07:58:12PM -0700, Bart Van Assche wrote: > The following appeared: > > WARNING: CPU: 5 PID: 1760 at drivers/infiniband/core/device.c:335 > ib_device_put+0xf2/0x100 [ib_core] > > Call Trace: > rxe_elem_release+0x76/0x90 [rdma_rxe] > rxe_destroy_cq+0x4f/0x70 [rdma_rxe] >

Re: [PATCH v11 25/25] x86/cet/shstk: Add arch_prctl functions for shadow stack

2020-09-08 Thread Yu, Yu-cheng
On 9/8/2020 10:57 AM, Dave Hansen wrote: On 9/8/20 10:50 AM, Yu, Yu-cheng wrote: What about this: - Do not add any new syscall or arch_prctl for creating a new shadow stack. - Add a new arch_prctl that can turn an anonymous mapping to a shadow stack mapping. This allows the application to do

[PATCH 5.4 005/129] 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 5.4 027/129] rxrpc: Keep the ACK serial in a var in rxrpc_input_ack()

2020-09-08 Thread Greg Kroah-Hartman
From: David Howells [ Upstream commit 68528d937dcd675e79973061c1a314db598162d1 ] Keep the ACK serial number in a variable in rxrpc_input_ack() as it's used frequently. Signed-off-by: David Howells Signed-off-by: Sasha Levin --- net/rxrpc/input.c | 21 +++-- 1 file changed, 11

Re: [git pull] drm fixes for 5.9-rc4

2020-09-08 Thread Linus Torvalds
On Fri, Sep 4, 2020 at 2:51 PM Harald Arnesen wrote: > > Still doesn't work without the three reverts > (763fedd6a216, 9e0f9464e2ab, 7ac2d2536dfa)... So this didn't make rc4, but it's in my tree now. Harald, I'm assuming things work for you again now with the current git tree, but it is always g

[PATCH 5.4 034/129] netfilter: nf_tables: fix destination register zeroing

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

Re: [git pull] drm fixes for 5.9-rc5 (special edition)

2020-09-08 Thread pr-tracker-bot
The pull request you sent on Tue, 8 Sep 2020 16:22:25 +1000: > git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2020-09-08 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/6f6a73c8b715d59594d48450a734297ab21f Thank you! -- Deet-doot-dot, I am a bot. https://ko

WARNING in kernfs_get (2)

2020-09-08 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:7a695657 Add linux-next specific files for 20200903 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=14089ff590 kernel config: https://syzkaller.appspot.com/x/.config?x=39134fcec6c78e33 dashboard

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

2020-09-08 Thread Christian Borntraeger
On 08.09.20 07:06, Christophe Leroy wrote: > > > Le 07/09/2020 à 20:00, Gerald Schaefer a écrit : >> From: Alexander Gordeev >> >> 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 pa

[PATCH 5.8 158/186] mips/oprofile: Fix fallthrough placement

2020-09-08 Thread Greg Kroah-Hartman
From: He Zhe commit 91dbd73a1739039fa7e9fe5c0169f2817a7f7670 upstream. We want neither " include/linux/compiler_attributes.h:201:41: warning: statement will never be executed [-Wswitch-unreachable] 201 | # define fallthrough __attribute__((__fallthrough__)) | ^~~

[PATCH 5.4 039/129] 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 5.8 159/186] blk-iocost: ioc_pd_free() shouldnt assume irq disabled

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

[PATCH 5.4 001/129] HID: quirks: Always poll three more Lenovo PixArt mice

2020-09-08 Thread Greg Kroah-Hartman
From: Sebastian Parschauer [ Upstream commit 627a49975bdc3220f360a8237603a6344ee6a588 ] The PixArt OEM mice are known for disconnecting every minute in runlevel 1 or 3 if they are not always polled. One Lenovo PixArt mouse is already fixed. Got two references for 17ef:602e and three references f

[PATCH 5.8 172/186] 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 no-op

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

[PATCH 5.8 144/186] ALSA: hda/realtek - Improved routing for Thinkpad X1 7th/8th Gen

2020-09-08 Thread Greg Kroah-Hartman
From: Takashi Iwai commit 6a6660d049f88b89fd9a4b9db3581b245f7782fa upstream. There've been quite a few regression reports about the lowered volume (reduced to ca 65% from the previous level) on Lenovo Thinkpad X1 after the commit d2cd795c4ece ("ALSA: hda - fixup for the bass speaker on Lenovo Ca

[PATCH 5.4 003/129] tty: serial: qcom_geni_serial: Drop __init from qcom_geni_console_setup

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

[PATCH 5.4 036/129] net: systemport: Fix memleak in bcm_sysport_probe

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

[PATCH 5.8 169/186] 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 Kroah-Har

Re: [RFC] dt-bindings: mailbox: add doorbell support to ARM MHU

2020-09-08 Thread Sudeep Holla
On Tue, Sep 08, 2020 at 11:14:50AM +0200, Arnd Bergmann wrote: > Picking up the old thread again after and getting pinged by multiple > colleagues about it (thanks!) reading through the history. > > On Fri, Jun 12, 2020 at 7:29 AM Viresh Kumar wrote: > > > > On 11-06-20, 19:34, Jassi Brar wrote:

[PATCH 5.8 143/186] ALSA: hda/realtek: Add quirk for Samsung Galaxy Book Ion NT950XCJ-X716A

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

[PATCH 5.8 170/186] 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 Kroah-Har

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

[PATCH 5.4 030/129] MIPS: BMIPS: Also call bmips_cpu_setup() for secondary cores

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

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

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

[PATCH 5.8 148/186] mmc: sdhci-pci: Fix SDHCI_RESET_ALL for CQHCI for Intel GLK-based controllers

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

Re: [RFC 0/5] disable pcplists during page isolation

2020-09-08 Thread David Hildenbrand
On 07.09.20 18:36, Vlastimil Babka wrote: > As per the discussions [1] [2] this is an attempt to implement David's > suggestion that page isolation should disable pcplists to avoid races. This is > done without extra checks in fast paths, as I mentioned should be possible in > the discussion, and e

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