[PATCH 5.11 119/306] media: v4l: vsp1: Fix bru null pointer access

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Biju Das commit ac8d82f586c8692b501cb974604a71ef0e22a04c upstream. RZ/G2L SoC has only BRS. This patch fixes null pointer access,when only BRS is enabled. Fixes: cbb7fa49c7466("media: v4l: vsp1: Rename BRU to BRx") Signed-off-by: Biju Das Signed-off-by: Hans

[PATCH 5.4 101/168] mmc: core: Fix partition switch time for eMMC

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Adrian Hunter commit 66fbacccbab91e6e55d9c8f1fc0910a8eb6c81f7 upstream. Avoid the following warning by always defining partition switch time: [3.209874] mmc1: unspecified timeout for CMD6 - use generic [3.222780] [ cut here ]

[PATCH 5.11 118/306] media: v4l: vsp1: Fix uif null pointer access

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Biju Das commit 6732f313938027a910e1f7351951ff52c0329e70 upstream. RZ/G2L SoC has no UIF. This patch fixes null pointer access, when UIF module is not used. Fixes: 5e824f989e6e8("media: v4l: vsp1: Integrate DISCOM in display pipeline") Signed-off-by: Biju Das

[PATCH 4.14 53/95] usb: renesas_usbhs: Clear PIPECFG for re-enabling pipe with other EPNUM

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Yoshihiro Shimoda commit b1d25e6ee57c2605845595b6c61340d734253eb3 upstream. According to the datasheet, this controller has a restriction which "set an endpoint number so that combinations of the DIR bit and the EPNUM bits do not overlap.". However, since the

[PATCH 4.19 054/120] i40e: Fix memory leak in i40e_probe

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Keita Suzuki [ Upstream commit 58cab46c622d6324e47bd1c533693c94498e4172 ] Struct i40e_veb is allocated in function i40e_setup_pf_switch, and stored to an array field veb inside struct i40e_pf. However when i40e_setup_misc_vector fails, this memory leaks. Fix

[PATCH 4.19 060/120] ALSA: hda/hdmi: Cancel pending works before suspend

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Takashi Iwai commit eea46a0879bcca23e15071f9968c0f6e6596e470 upstream. The per_pin->work might be still floating at the suspend, and this may hit the access to the hardware at an unexpected timing. Cancel the work properly at the suspend callback for avoiding

[PATCH 4.14 52/95] usb: gadget: f_uac1: stop playback on function disable

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Ruslan Bilovol commit cc2ac63d4cf72104e0e7f58bb846121f0f51bb19 upstream. There is missing playback stop/cleanup in case of gadget's ->disable callback that happens on events like USB host resetting or gadget disconnection Fixes: 0591bc236015 ("usb: gadget: add

[PATCH 5.10 108/290] net: hns3: fix error mask definition of flow director

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Jian Shen [ Upstream commit ae85ddda0f1b341b2d25f5a5e0eff1d42b6ef3df ] Currently, some bit filed definitions of flow director TCAM configuration command are incorrect. Since the wrong MSB is always 0, and these fields are assgined in order, so it still works.

[PATCH 4.19 053/120] PCI: Fix pci_register_io_range() memory leak

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Geert Uytterhoeven [ Upstream commit f6bda644fa3a7070621c3bf12cd657f69a42f170 ] Kmemleak reports: unreferenced object 0xc328de40 (size 64): comm "kworker/1:1", pid 21, jiffies 4294938212 (age 1484.670s) hex dump (first 32 bytes): 00 00 00 00 00

[PATCH 5.10 107/290] cifs: fix credit accounting for extra channel

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Aurelien Aptel commit a249cc8bc2e2fed680047d326eb9a50756724198 upstream. With multichannel, operations like the queries from "ls -lR" can cause all credits to be used and errors to be returned since max_credits was not being set correctly on the secondary

[PATCH 4.19 058/120] scsi: target: core: Prevent underflow for service actions

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Aleksandr Miloserdov [ Upstream commit 14d24e2cc77411301e906a8cf41884739de192de ] TCM buffer length doesn't necessarily equal 8 + ADDITIONAL LENGTH which might be considered an underflow in case of Data-In size being greater than 8 + ADDITIONAL LENGTH. So

[PATCH 5.10 106/290] media: rc: compile rc-cec.c into rc-core

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Hans Verkuil commit f09f9f93afad770a04b35235a0aa465fcc8d6e3d upstream. The rc-cec keymap is unusual in that it can't be built as a module, instead it is registered directly in rc-main.c if CONFIG_MEDIA_CEC_RC is set. This is because it can be called from

[PATCH 5.11 116/306] media: usbtv: Fix deadlock on suspend

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Maxim Mikityanskiy commit 8a7e27fd5cd696ba564a3f62cedef7269cfd0723 upstream. usbtv doesn't support power management, so on system suspend the .disconnect callback of the driver is called. The teardown sequence includes a call to snd_card_free. Its implementation

[PATCH 5.11 117/306] media: rkisp1: params: fix wrong bits settings

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Dafna Hirschfeld commit 2025a48cfd92d541c5ee47deee97f8a46d00c4ac upstream. The histogram mode is set using 'rkisp1_params_set_bits'. Only the bits of the mode should be the value argument for that function. Otherwise bits outside the mode mask are turned on

[PATCH 5.10 097/290] drm/i915: Wedge the GPU if command parser setup fails

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Tvrtko Ursulin commit a829f033e966d5e4aa27c3ef2b381f51734e4a7f upstream. Commit 311a50e76a33 ("drm/i915: Add support for mandatory cmdparsing") introduced mandatory command parsing but setup failures were not translated into wedging the GPU which was probably

[PATCH 5.11 103/306] drm/amdgpu/display: dont assert in set backlight function

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Alex Deucher commit dfd8b7fbd985ec1cf76fe10f2875a50b10833740 upstream. It just spams the logs. Reviewed-by: Nicholas Kazlauskas Signed-off-by: Alex Deucher Cc: sta...@vger.kernel.org Signed-off-by: Greg Kroah-Hartman ---

[PATCH 5.11 115/306] sh_eth: fix TRSCER mask for R7S9210

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Sergey Shtylyov commit 165bc5a4f30eee4735845aa7dbd6b738643f2603 upstream. According to the RZ/A2M Group User's Manual: Hardware, Rev. 2.00, the TRSCER register has bit 9 reserved, hence we can't use the driver's default TRSCER mask. Add the explicit

[PATCH 4.14 46/95] s390/dasd: fix hanging DASD driver unbind

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Stefan Haberland commit 7d365bd0bff3c0310c39ebaffc9a8458e036d666 upstream. In case of an unbind of the DASD device driver the function dasd_generic_remove() is called which shuts down the device. Among others this functions removes the int_handler from the cdev.

[PATCH 4.14 47/95] s390/dasd: fix hanging IO request during DASD driver unbind

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Stefan Haberland commit 66f669a272898feb1c69b770e1504aa2ec7723d1 upstream. Prevent that an IO request is build during device shutdown initiated by a driver unbind. This request will never be able to be processed or canceled and will hang forever. This will lead

[PATCH 5.11 105/306] drm/shmem-helper: Check for purged buffers in fault handler

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Neil Roberts commit d611b4a0907cece060699f2fd347c492451cd2aa upstream. When a buffer is madvised as not needed and then purged, any attempts to access the buffer from user-space should cause a bus fault. This patch adds a check for that. Cc:

[PATCH 4.14 50/95] USB: gadget: u_ether: Fix a configfs return code

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Dan Carpenter commit 650bf52208d804ad5ee449c58102f8dc43175573 upstream. If the string is invalid, this should return -EINVAL instead of 0. Fixes: 73517cf49bd4 ("usb: gadget: add RNDIS configfs options for class/subclass/protocol") Cc: stable Acked-by: Lorenzo

[PATCH 4.14 48/95] mmc: core: Fix partition switch time for eMMC

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Adrian Hunter commit 66fbacccbab91e6e55d9c8f1fc0910a8eb6c81f7 upstream. Avoid the following warning by always defining partition switch time: [3.209874] mmc1: unspecified timeout for CMD6 - use generic [3.222780] [ cut here ]

[PATCH 5.10 104/290] media: v4l: vsp1: Fix uif null pointer access

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Biju Das commit 6732f313938027a910e1f7351951ff52c0329e70 upstream. RZ/G2L SoC has no UIF. This patch fixes null pointer access, when UIF module is not used. Fixes: 5e824f989e6e8("media: v4l: vsp1: Integrate DISCOM in display pipeline") Signed-off-by: Biju Das

[PATCH 4.19 056/120] scsi: libiscsi: Fix iscsi_prep_scsi_cmd_pdu() error handling

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Mike Christie [ Upstream commit d28d48c699779973ab9a3bd0e5acfa112bd4fdef ] If iscsi_prep_scsi_cmd_pdu() fails we try to add it back to the cmdqueue, but we leave it partially setup. We don't have functions that can undo the pdu and init task setup. We only have

[PATCH 5.10 096/290] drm/shmem-helpers: vunmap: Dont put pages for dma-buf

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Noralf Trønnes commit 64e194e278673bceb68fb2dde7dbc3d812bfceb3 upstream. dma-buf importing was reworked in commit 7d2cd72a9aa3 ("drm/shmem-helpers: Simplify dma-buf importing"). Before that commit drm_gem_shmem_prime_import_sg_table() did set ->pages_use_count=1

[PATCH 4.19 045/120] mmc: mediatek: fix race condition between msdc_request_timeout and irq

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Chaotian Jing [ Upstream commit 0354ca6edd464a2cf332f390581977b8699ed081 ] when get request SW timeout, if CMD/DAT xfer done irq coming right now, then there is race between the msdc_request_timeout work and irq handler, and the host->cmd and host->data may set

[PATCH 5.10 103/290] media: rkisp1: params: fix wrong bits settings

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Dafna Hirschfeld commit 2025a48cfd92d541c5ee47deee97f8a46d00c4ac upstream. The histogram mode is set using 'rkisp1_params_set_bits'. Only the bits of the mode should be the value argument for that function. Otherwise bits outside the mode mask are turned on

[PATCH 4.19 048/120] powerpc/perf: Record counter overflow always if SAMPLE_IP is unset

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Athira Rajeev [ Upstream commit d137845c973147a22622cc76c7b0bc16f6206323 ] While sampling for marked events, currently we record the sample only if the SIAR valid bit of Sampled Instruction Event Register (SIER) is set. SIAR_VALID bit is used for fetching the

[PATCH 4.14 38/95] PCI: mediatek: Add missing of_node_put() to fix reference leak

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Krzysztof Wilczyński [ Upstream commit 42814c438aac79746d310f413a27d5b0b959c5de ] The for_each_available_child_of_node helper internally makes use of the of_get_next_available_child() which performs an of_node_get() on each iteration when searching for next

[PATCH 5.4 098/168] s390/dasd: fix hanging DASD driver unbind

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Stefan Haberland commit 7d365bd0bff3c0310c39ebaffc9a8458e036d666 upstream. In case of an unbind of the DASD device driver the function dasd_generic_remove() is called which shuts down the device. Among others this functions removes the int_handler from the cdev.

[PATCH 5.4 097/168] arm64: kasan: fix page_alloc tagging with DEBUG_VIRTUAL

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Andrey Konovalov commit 86c83365ab76e4b43cedd3ce07a07d32a4dc79ba upstream. When CONFIG_DEBUG_VIRTUAL is enabled, the default page_to_virt() macro implementation from include/linux/mm.h is used. That definition doesn't account for KASAN tags, which leads to no

[PATCH 5.4 094/168] ALSA: usb-audio: Fix "cannot get freq eq" errors on Dell AE515 sound bar

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Takashi Iwai commit fec60c3bc5d1713db2727cdffc638d48f9c07dc3 upstream. Dell AE515 sound bar (413c:a506) spews the error messages when the driver tries to read the current sample frequency, hence it needs to be on the list in snd_usb_get_sample_rate_quirk().

[PATCH 5.10 101/290] sh_eth: fix TRSCER mask for R7S9210

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Sergey Shtylyov commit 165bc5a4f30eee4735845aa7dbd6b738643f2603 upstream. According to the RZ/A2M Group User's Manual: Hardware, Rev. 2.00, the TRSCER register has bit 9 reserved, hence we can't use the driver's default TRSCER mask. Add the explicit

[PATCH 5.11 112/306] s390/cio: return -EFAULT if copy_to_user() fails

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Eric Farman commit d9c48a948d29bcb22f4fe61a81b718ef6de561a0 upstream. Fixes: 120e214e504f ("vfio: ccw: realize VFIO_DEVICE_G(S)ET_IRQ_INFO ioctls") Signed-off-by: Eric Farman Signed-off-by: Heiko Carstens Signed-off-by: Greg Kroah-Hartman ---

[PATCH 5.11 111/306] drm/i915: Wedge the GPU if command parser setup fails

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Tvrtko Ursulin commit a829f033e966d5e4aa27c3ef2b381f51734e4a7f upstream. Commit 311a50e76a33 ("drm/i915: Add support for mandatory cmdparsing") introduced mandatory command parsing but setup failures were not translated into wedging the GPU which was probably

[PATCH 5.4 085/168] scsi: libiscsi: Fix iscsi_prep_scsi_cmd_pdu() error handling

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Mike Christie [ Upstream commit d28d48c699779973ab9a3bd0e5acfa112bd4fdef ] If iscsi_prep_scsi_cmd_pdu() fails we try to add it back to the cmdqueue, but we leave it partially setup. We don't have functions that can undo the pdu and init task setup. We only have

[PATCH 5.11 102/306] drm/amdgpu/display: simplify backlight setting

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Alex Deucher commit a2f8d988698d7d3645b045f4940415b045140b81 upstream. Avoid the extra wrapper function. Reviewed-by: Nicholas Kazlauskas Signed-off-by: Alex Deucher Cc: sta...@vger.kernel.org Signed-off-by: Greg Kroah-Hartman ---

[PATCH 5.4 093/168] ALSA: hda: Avoid spurious unsol event handling during S3/S4

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Takashi Iwai commit 5ff9dde42e8c72ed8102eb8cb62e03f9dc2103ab upstream. When HD-audio bus receives unsolicited events during its system suspend/resume (S3 and S4) phase, the controller driver may still try to process events although the codec chips are already

[PATCH 4.14 45/95] Revert 95ebabde382c ("capabilities: Dont allow writing ambiguous v3 file capabilities")

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Eric W. Biederman commit 3b0c2d3eaa83da259d7726192cf55a137769012f upstream. It turns out that there are in fact userspace implementations that care and this recent change caused a regression. https://github.com/containers/buildah/issues/3071 As the motivation

[PATCH 5.10 102/290] media: usbtv: Fix deadlock on suspend

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Maxim Mikityanskiy commit 8a7e27fd5cd696ba564a3f62cedef7269cfd0723 upstream. usbtv doesn't support power management, so on system suspend the .disconnect callback of the driver is called. The teardown sequence includes a call to snd_card_free. Its implementation

[PATCH 4.14 37/95] PCI: xgene-msi: Fix race in installing chained irq handler

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Martin Kaiser [ Upstream commit a93c00e5f975f23592895b7e83f35de2d36b7633 ] Fix a race where a pending interrupt could be received and the handler called before the handler's data has been setup, by converting to irq_set_chained_handler_and_data(). See also

[PATCH 5.4 083/168] s390/smp: __smp_rescan_cpus() - move cpumask away from stack

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Heiko Carstens [ Upstream commit 62c8dca9e194326802b43c60763f856d782b225c ] Avoid a potentially large stack frame and overflow by making "cpumask_t avail" a static variable. There is no concurrent access due to the existing locking. Signed-off-by: Heiko

[PATCH 5.4 095/168] ALSA: usb-audio: Apply the control quirk to Plantronics headsets

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Takashi Iwai commit 06abcb18b3a021ba1a3f2020cbefb3ed04e59e72 upstream. Other Plantronics headset models seem requiring the same workaround as C320-M to add the 20ms delay for the control messages, too. Apply the workaround generically for devices with the

[PATCH 5.4 086/168] scsi: target: core: Add cmd length set before cmd complete

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Aleksandr Miloserdov [ Upstream commit 1c73e0c5e54d5f7d77f422a10b03ebe61eaed5ad ] TCM doesn't properly handle underflow case for service actions. One way to prevent it is to always complete command with target_complete_cmd_with_length(), however it requires

[PATCH 4.19 052/120] PCI: mediatek: Add missing of_node_put() to fix reference leak

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Krzysztof Wilczyński [ Upstream commit 42814c438aac79746d310f413a27d5b0b959c5de ] The for_each_available_child_of_node helper internally makes use of the of_get_next_available_child() which performs an of_node_get() on each iteration when searching for next

[PATCH 4.19 046/120] powerpc/pci: Add ppc_md.discover_phbs()

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Oliver O'Halloran [ Upstream commit 5537fcb319d016ce387f818dd774179bc03217f5 ] On many powerpc platforms the discovery and initalisation of pci_controllers (PHBs) happens inside of setup_arch(). This is very early in boot (pre-initcalls) and means that we're

[PATCH 5.11 106/306] drm/shmem-helper: Dont remove the offset in vm_area_struct pgoff

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Neil Roberts commit 11d5a4745e00e73745774671dbf2fb07bd6e2363 upstream. When mmapping the shmem, it would previously adjust the pgoff in the vm_area_struct to remove the fake offset that is added to be able to identify the buffer. This patch removes the

[PATCH 5.11 104/306] drm/amdgpu/display: handle aux backlight in backlight_get_brightness

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Alex Deucher commit 0ad3e64eb46d8c47de3af552e282894e3893e973 upstream. Need to fetch it via aux. Reviewed-by: Nicholas Kazlauskas Signed-off-by: Alex Deucher Cc: sta...@vger.kernel.org Signed-off-by: Greg Kroah-Hartman ---

[PATCH 4.19 047/120] powerpc: improve handling of unrecoverable system reset

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Nicholas Piggin [ Upstream commit 11cb0a25f71818ca7ab4856548ecfd83c169aa4d ] If an unrecoverable system reset hits in process context, the system does not have to panic. Similar to machine check, call nmi_exit() before die(). Signed-off-by: Nicholas Piggin

[PATCH 5.10 100/290] qxl: Fix uninitialised struct field head.surface_id

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Colin Ian King commit 738acd49eb018feb873e0fac8f9517493f6ce2c7 upstream. The surface_id struct field in head is not being initialized and static analysis warns that this is being passed through to dev->monitors_config->heads[i] on an assignment. Clear up this

[PATCH 5.11 110/306] drm/shmem-helpers: vunmap: Dont put pages for dma-buf

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Noralf Trønnes commit 64e194e278673bceb68fb2dde7dbc3d812bfceb3 upstream. dma-buf importing was reworked in commit 7d2cd72a9aa3 ("drm/shmem-helpers: Simplify dma-buf importing"). Before that commit drm_gem_shmem_prime_import_sg_table() did set ->pages_use_count=1

[PATCH 4.19 050/120] sparc64: Use arch_validate_flags() to validate ADI flag

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Khalid Aziz [ Upstream commit 147d8622f2a26ef34beacc60e1ed8b66c2fa457f ] When userspace calls mprotect() to enable ADI on an address range, do_mprotect_pkey() calls arch_validate_prot() to validate new protection flags. arch_validate_prot() for sparc looks at

[PATCH 5.4 092/168] ALSA: hda: Flush pending unsolicited events before suspend

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Takashi Iwai commit 13661fc48461282e43fe8f76bf5bf449b3d40687 upstream. The HD-audio controller driver processes the unsolicited events via its work asynchronously, and this might be pending when the system goes to suspend. When a lengthy event handling like ELD

[PATCH 4.14 44/95] ALSA: usb-audio: Fix "cannot get freq eq" errors on Dell AE515 sound bar

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Takashi Iwai commit fec60c3bc5d1713db2727cdffc638d48f9c07dc3 upstream. Dell AE515 sound bar (413c:a506) spews the error messages when the driver tries to read the current sample frequency, hence it needs to be on the list in snd_usb_get_sample_rate_quirk().

[PATCH 5.10 099/290] s390/crypto: return -EFAULT if copy_to_user() fails

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Wang Qing commit 942df4be7ab40195e2a839e9de81951a5862bc5b upstream. The copy_to_user() function returns the number of bytes remaining to be copied, but we want to return -EFAULT if the copy doesn't complete. Fixes: e06670c5fe3b ("s390: vfio-ap: implement

[PATCH 4.14 43/95] ALSA: hda: Avoid spurious unsol event handling during S3/S4

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Takashi Iwai commit 5ff9dde42e8c72ed8102eb8cb62e03f9dc2103ab upstream. When HD-audio bus receives unsolicited events during its system suspend/resume (S3 and S4) phase, the controller driver may still try to process events although the codec chips are already

[PATCH 4.19 051/120] PCI: xgene-msi: Fix race in installing chained irq handler

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Martin Kaiser [ Upstream commit a93c00e5f975f23592895b7e83f35de2d36b7633 ] Fix a race where a pending interrupt could be received and the handler called before the handler's data has been setup, by converting to irq_set_chained_handler_and_data(). See also

[PATCH 5.4 087/168] scsi: target: core: Prevent underflow for service actions

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Aleksandr Miloserdov [ Upstream commit 14d24e2cc77411301e906a8cf41884739de192de ] TCM buffer length doesn't necessarily equal 8 + ADDITIONAL LENGTH which might be considered an underflow in case of Data-In size being greater than 8 + ADDITIONAL LENGTH. So

[PATCH 5.4 090/168] ALSA: hda/ca0132: Add Sound BlasterX AE-5 Plus support

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Simeon Simeonoff commit f15c5c11abfbf8909eb30598315ecbec2311cfdc upstream. The new AE-5 Plus model has a different Subsystem ID compared to the non-plus model. Adding the new id to the list of quirks. Signed-off-by: Simeon Simeonoff Cc: Link:

[PATCH 5.11 109/306] drm: meson_drv add shutdown function

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Artem Lapkin commit fa0c16caf3d73ab4d2e5d6fa2ef2394dbec91791 upstream. Problem: random stucks on reboot stage about 1/20 stuck/reboots // debug kernel log [4.496660] reboot: kernel restart prepare CMD:(null) [4.498114] meson_ee_pwrc

[PATCH 5.4 091/168] ALSA: hda: Drop the BATCH workaround for AMD controllers

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Takashi Iwai commit 28e96c1693ec1cdc963807611f8b5ad400431e82 upstream. The commit c02f77d32d2c ("ALSA: hda - Workaround for crackled sound on AMD controller (1022:1457)") introduced a few workarounds for the recent AMD HD-audio controller, and one of them is the

[PATCH 4.14 41/95] ALSA: hda/hdmi: Cancel pending works before suspend

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Takashi Iwai commit eea46a0879bcca23e15071f9968c0f6e6596e470 upstream. The per_pin->work might be still floating at the suspend, and this may hit the access to the hardware at an unexpected timing. Cancel the work properly at the suspend callback for avoiding

[PATCH 4.19 049/120] sparc32: Limit memblock allocation to low memory

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Andreas Larsson [ Upstream commit bda166930c37604ffa93f2425426af6921ec575a ] Commit cca079ef8ac29a7c02192d2bad2ffe4c0c5ffdd0 changed sparc32 to use memblocks instead of bootmem, but also made high memory available via memblock allocation which does not work

[PATCH 5.4 089/168] ALSA: hda/hdmi: Cancel pending works before suspend

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Takashi Iwai commit eea46a0879bcca23e15071f9968c0f6e6596e470 upstream. The per_pin->work might be still floating at the suspend, and this may hit the access to the hardware at an unexpected timing. Cancel the work properly at the suspend callback for avoiding

[PATCH 4.14 42/95] ALSA: hda: Drop the BATCH workaround for AMD controllers

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Takashi Iwai commit 28e96c1693ec1cdc963807611f8b5ad400431e82 upstream. The commit c02f77d32d2c ("ALSA: hda - Workaround for crackled sound on AMD controller (1022:1457)") introduced a few workarounds for the recent AMD HD-audio controller, and one of them is the

[PATCH 5.11 107/306] drm: Use USB controllers DMA mask when importing dmabufs

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Thomas Zimmermann commit 659ab7a49cbebe0deffcbe1f9560e82006b21817 upstream. USB devices cannot perform DMA and hence have no dma_mask set in their device structure. Therefore importing dmabuf into a USB-based driver fails, which breaks joining and mirroring of

[PATCH 4.14 40/95] scsi: libiscsi: Fix iscsi_prep_scsi_cmd_pdu() error handling

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Mike Christie [ Upstream commit d28d48c699779973ab9a3bd0e5acfa112bd4fdef ] If iscsi_prep_scsi_cmd_pdu() fails we try to add it back to the cmdqueue, but we leave it partially setup. We don't have functions that can undo the pdu and init task setup. We only have

[PATCH 5.11 101/306] drm/amd/pm: bug fix for pcie dpm

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Kenneth Feng commit 50ceb1fe7acd50831180f4b5597bf7b39e8059c8 upstream. Currently the pcie dpm has two problems. 1. Only the high dpm level speed/width can be overrided if the requested values are out of the pcie capability. 2. The high dpm level is always

[PATCH 4.19 039/120] media: v4l: vsp1: Fix uif null pointer access

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Biju Das commit 6732f313938027a910e1f7351951ff52c0329e70 upstream. RZ/G2L SoC has no UIF. This patch fixes null pointer access, when UIF module is not used. Fixes: 5e824f989e6e8("media: v4l: vsp1: Integrate DISCOM in display pipeline") Signed-off-by: Biju Das

[PATCH 5.10 094/290] drm: Use USB controllers DMA mask when importing dmabufs

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Thomas Zimmermann commit 659ab7a49cbebe0deffcbe1f9560e82006b21817 upstream. USB devices cannot perform DMA and hence have no dma_mask set in their device structure. Therefore importing dmabuf into a USB-based driver fails, which breaks joining and mirroring of

[PATCH 4.14 39/95] s390/smp: __smp_rescan_cpus() - move cpumask away from stack

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Heiko Carstens [ Upstream commit 62c8dca9e194326802b43c60763f856d782b225c ] Avoid a potentially large stack frame and overflow by making "cpumask_t avail" a static variable. There is no concurrent access due to the existing locking. Signed-off-by: Heiko

[PATCH 5.4 081/168] PCI: Fix pci_register_io_range() memory leak

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Geert Uytterhoeven [ Upstream commit f6bda644fa3a7070621c3bf12cd657f69a42f170 ] Kmemleak reports: unreferenced object 0xc328de40 (size 64): comm "kworker/1:1", pid 21, jiffies 4294938212 (age 1484.670s) hex dump (first 32 bytes): 00 00 00 00 00

[PATCH 5.10 095/290] drm: meson_drv add shutdown function

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Artem Lapkin commit fa0c16caf3d73ab4d2e5d6fa2ef2394dbec91791 upstream. Problem: random stucks on reboot stage about 1/20 stuck/reboots // debug kernel log [4.496660] reboot: kernel restart prepare CMD:(null) [4.498114] meson_ee_pwrc

[PATCH 5.10 092/290] drm/shmem-helper: Check for purged buffers in fault handler

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Neil Roberts commit d611b4a0907cece060699f2fd347c492451cd2aa upstream. When a buffer is madvised as not needed and then purged, any attempts to access the buffer from user-space should cause a bus fault. This patch adds a check for that. Cc:

[PATCH 4.14 33/95] mmc: mxs-mmc: Fix a resource leak in an error handling path in mxs_mmc_probe()

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Christophe JAILLET [ Upstream commit 0bb7e560f821c7770973a94e346654c4bdccd42c ] If 'mmc_of_parse()' fails, we must undo the previous 'dma_request_chan()' call. Signed-off-by: Christophe JAILLET Link:

[PATCH 4.19 042/120] i2c: rcar: optimize cacheline to minimize HW race condition

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Wolfram Sang [ Upstream commit 25c2e0fb5fefb8d7847214cf114d94c7aad8e9ce ] 'flags' and 'io' are needed first, so they should be at the beginning of the private struct. Signed-off-by: Wolfram Sang Reviewed-by: Niklas Söderlund Signed-off-by: Wolfram Sang

[PATCH 5.11 100/306] drm/amd/pm: correct the watermark settings for Polaris

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Evan Quan commit 48123d068fcb584838ce29912660c5e9490bad0e upstream. The "/ 10" should be applied to the right-hand operand instead of the left-hand one. Signed-off-by: Evan Quan Noticed-by: Georgios Toptsidis Reviewed-by: Feifei Xu Reviewed-by: Alex Deucher

[PATCH 5.4 076/168] sparc64: Use arch_validate_flags() to validate ADI flag

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Khalid Aziz [ Upstream commit 147d8622f2a26ef34beacc60e1ed8b66c2fa457f ] When userspace calls mprotect() to enable ADI on an address range, do_mprotect_pkey() calls arch_validate_prot() to validate new protection flags. arch_validate_prot() for sparc looks at

[PATCH 4.14 29/95] s390/cio: return -EFAULT if copy_to_user() fails

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Eric Farman commit d9c48a948d29bcb22f4fe61a81b718ef6de561a0 upstream. Fixes: 120e214e504f ("vfio: ccw: realize VFIO_DEVICE_G(S)ET_IRQ_INFO ioctls") Signed-off-by: Eric Farman Signed-off-by: Heiko Carstens Signed-off-by: Greg Kroah-Hartman ---

[PATCH 5.10 085/290] drm/amd/display: Add a backlight module option

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Takashi Iwai commit 7a46f05e5e163c00e41892e671294286e53fe15c upstream. There seem devices that don't work with the aux channel backlight control. For allowing such users to test with the other backlight control method, provide a new module option,

[PATCH 4.19 040/120] media: v4l: vsp1: Fix bru null pointer access

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Biju Das commit ac8d82f586c8692b501cb974604a71ef0e22a04c upstream. RZ/G2L SoC has only BRS. This patch fixes null pointer access,when only BRS is enabled. Fixes: cbb7fa49c7466("media: v4l: vsp1: Rename BRU to BRx") Signed-off-by: Biju Das Signed-off-by: Hans

[PATCH 4.14 32/95] udf: fix silent AED tagLocation corruption

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Steven J. Magnani [ Upstream commit 63c9e47a1642fc817654a1bc18a6ec4bbcc0f056 ] When extending a file, udf_do_extend_file() may enter following empty indirect extent. At the end of udf_do_extend_file() we revert prev_epos to point to the last written extent.

[PATCH 5.10 084/290] drm/compat: Clear bounce structures

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Daniel Vetter commit de066e116306baf3a6a62691ac63cfc0b1dabddb upstream. Some of them have gaps, or fields we don't clear. Native ioctl code does full copies plus zero-extends on size mismatch, so nothing can leak. But compat is more hand-rolled so need to be

[PATCH 5.11 098/306] drm/amdgpu/display: use GFP_ATOMIC in dcn21_validate_bandwidth_fp()

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Holger Hoffstätte commit 680174cfd1e1cea70a8f30ccb44d8fbdf996018e upstream. After fixing nested FPU contexts caused by 41401ac67791 we're still seeing complaints about spurious kernel_fpu_end(). As it turns out this was already fixed for dcn20 in commit

[PATCH 5.11 095/306] drm/compat: Clear bounce structures

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Daniel Vetter commit de066e116306baf3a6a62691ac63cfc0b1dabddb upstream. Some of them have gaps, or fields we don't clear. Native ioctl code does full copies plus zero-extends on size mismatch, so nothing can leak. But compat is more hand-rolled so need to be

[PATCH 4.19 038/120] media: usbtv: Fix deadlock on suspend

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Maxim Mikityanskiy commit 8a7e27fd5cd696ba564a3f62cedef7269cfd0723 upstream. usbtv doesn't support power management, so on system suspend the .disconnect callback of the driver is called. The teardown sequence includes a call to snd_card_free. Its implementation

[PATCH 5.11 097/306] drm/amd/display: Add a backlight module option

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Takashi Iwai commit 7a46f05e5e163c00e41892e671294286e53fe15c upstream. There seem devices that don't work with the aux channel backlight control. For allowing such users to test with the other backlight control method, provide a new module option,

[PATCH 4.14 31/95] net: phy: fix save wrong speed and duplex problem if autoneg is on

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Guangbin Huang [ Upstream commit d9032dba5a2b2bbf0fdce67c8795300ec9923b43 ] If phy uses generic driver and autoneg is on, enter command "ethtool -s eth0 speed 50" will not change phy speed actually, but command "ethtool eth0" shows speed is 50Mb/s because

[PATCH 5.4 079/168] PCI: mediatek: Add missing of_node_put() to fix reference leak

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Krzysztof Wilczyński [ Upstream commit 42814c438aac79746d310f413a27d5b0b959c5de ] The for_each_available_child_of_node helper internally makes use of the of_get_next_available_child() which performs an of_node_get() on each iteration when searching for next

[PATCH 5.10 086/290] drm/amdgpu/display: use GFP_ATOMIC in dcn21_validate_bandwidth_fp()

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Holger Hoffstätte commit 680174cfd1e1cea70a8f30ccb44d8fbdf996018e upstream. After fixing nested FPU contexts caused by 41401ac67791 we're still seeing complaints about spurious kernel_fpu_end(). As it turns out this was already fixed for dcn20 in commit

[PATCH 5.10 087/290] drm/amd/display: Fix nested FPU context in dcn21_validate_bandwidth()

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Holger Hoffstätte commit 15e8b95d5f7509e0b09289be8c422c459c9f0412 upstream. Commit 41401ac67791 added FPU wrappers to dcn21_validate_bandwidth(), which was correct. Unfortunately a nested function alredy contained DC_FP_START()/DC_FP_END() calls, which results

[PATCH 5.11 096/306] drm/radeon: also init GEM funcs in radeon_gem_prime_import_sg_table

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Christian König commit a25955ba123499d7db520175c6be59c29f9215e3 upstream. Otherwise we will run into a NULL ptr deref. Signed-off-by: Christian König Bug: https://bugzilla.kernel.org/show_bug.cgi?id=212137 Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher

[PATCH 5.4 080/168] kbuild: clamp SUBLEVEL to 255

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman [ Upstream commit 9b82f13e7ef316cdc0a8858f1349f4defce3f9e0 ] Right now if SUBLEVEL becomes larger than 255 it will overflow into the territory of PATCHLEVEL, causing havoc in userspace that tests for specific kernel version. While userspace code tests for MAJOR and

[PATCH 5.10 088/290] drm/amd/pm: bug fix for pcie dpm

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Kenneth Feng commit 50ceb1fe7acd50831180f4b5597bf7b39e8059c8 upstream. Currently the pcie dpm has two problems. 1. Only the high dpm level speed/width can be overrided if the requested values are out of the pcie capability. 2. The high dpm level is always

[PATCH 4.14 30/95] media: usbtv: Fix deadlock on suspend

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Maxim Mikityanskiy commit 8a7e27fd5cd696ba564a3f62cedef7269cfd0723 upstream. usbtv doesn't support power management, so on system suspend the .disconnect callback of the driver is called. The teardown sequence includes a call to snd_card_free. Its implementation

[PATCH 5.4 077/168] Input: applespi - dont wait for responses to commands indefinitely.

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Ronald Tschalär [ Upstream commit 0ce1ac23149c6da939a5926c098c270c58c317a0 ] The response to a command may never arrive or it may be corrupted (and hence dropped) for some reason. While exceedingly rare, when it did happen it blocked all further commands. One

[PATCH 5.4 078/168] PCI: xgene-msi: Fix race in installing chained irq handler

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Martin Kaiser [ Upstream commit a93c00e5f975f23592895b7e83f35de2d36b7633 ] Fix a race where a pending interrupt could be received and the handler called before the handler's data has been setup, by converting to irq_set_chained_handler_and_data(). See also

[PATCH 5.10 078/290] bnxt_en: reliably allocate IRQ table on reset to avoid crash

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Edwin Peer commit 20d7d1c5c9b11e9f538ed4a2289be106de970d3e upstream. The following trace excerpt corresponds with a NULL pointer dereference of 'bp->irq_tbl' in bnxt_setup_inta() on an Aarch64 system after many device resets: Unable to handle kernel NULL

[PATCH 5.10 079/290] gpiolib: acpi: Add ACPI_GPIO_QUIRK_ABSOLUTE_NUMBER quirk

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Andy Shevchenko commit 62d5247d239d4b48762192a251c647d7c997616a upstream. On some systems the ACPI tables has wrong pin number and instead of having a relative one it provides an absolute one in the global GPIO number space. Add ACPI_GPIO_QUIRK_ABSOLUTE_NUMBER

[PATCH 5.11 090/306] net: hns3: fix query vlan mask value error for flow director

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Jian Shen commit c75ec148a316e8cf52274d16b9b422703b96f5ce upstream. Currently, the driver returns VLAN_VID_MASK for vlan mask field, when get flow director rule information for rule doesn't use vlan. It may cause the vlan mask value display as 0xf000 in this

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