[PATCH 5.4 037/111] gtp: set NLM_F_MULTI flag in gtp_genl_dump_pdp()

2020-05-26 Thread Greg Kroah-Hartman
From: Yoshiyuki Kurauchi [ Upstream commit 846c68f7f1ac82c797a2f1db3344a2966c0fe2e1 ] In drivers/net/gtp.c, gtp_genl_dump_pdp() should set NLM_F_MULTI flag since it returns multipart message. This patch adds a new arg "flags" in gtp_genl_fill_info() so that flags can be set by the callers.

[PATCH 5.4 091/111] ipack: tpci200: fix error return code in tpci200_register()

2020-05-26 Thread Greg Kroah-Hartman
From: Wei Yongjun commit 133317479f0324f6faaf797c4f5f3e9b1b36ce35 upstream. Fix to return negative error code -ENOMEM from the ioremap() error handling case instead of 0, as done elsewhere in this function. Fixes: 43986798fd50 ("ipack: add error handling for ioremap_nocache") Reported-by: Hulk

[PATCH 5.4 100/111] flow_dissector: Drop BPF flow dissector prog ref on netns cleanup

2020-05-26 Thread Greg Kroah-Hartman
From: Jakub Sitnicki commit 5cf65922bb15279402e1e19b5ee8c51d618fa51f upstream. When attaching a flow dissector program to a network namespace with bpf(BPF_PROG_ATTACH, ...) we grab a reference to bpf_prog. If netns gets destroyed while a flow dissector is still attached, and there are no other

[PATCH 5.4 094/111] device-dax: dont leak kernel memory to user space after unloading kmem

2020-05-26 Thread Greg Kroah-Hartman
From: David Hildenbrand commit 60858c00e5f018eda711a3aa84cf62214ef62d61 upstream. Assume we have kmem configured and loaded: [root@localhost ~]# cat /proc/iomem ... 14000-33fff : Persistent Memory$ 14000-1481f : namespace0.0 15000-33fff : dax0.0

[PATCH 5.4 086/111] iio: dac: vf610: Fix an error handling path in vf610_dac_probe()

2020-05-26 Thread Greg Kroah-Hartman
From: Christophe JAILLET commit aad4742fbf0a560c25827adb58695a4497ffc204 upstream. A call to 'vf610_dac_exit()' is missing in an error handling path. Fixes: 1b983bf42fad ("iio: dac: vf610_dac: Add IIO DAC driver for Vybrid SoC") Signed-off-by: Christophe JAILLET Cc: Signed-off-by: Jonathan

[PATCH 5.4 101/111] x86/unwind/orc: Fix unwind_get_return_address_ptr() for inactive tasks

2020-05-26 Thread Greg Kroah-Hartman
From: Josh Poimboeuf commit 187b96db5ca79423618dfa29a05c438c34f9e1f0 upstream. Normally, show_trace_log_lvl() scans the stack, looking for text addresses to print. In parallel, it unwinds the stack with unwind_next_frame(). If the stack address matches the pointer returned by

[PATCH 5.4 109/111] sched/fair: Reorder enqueue/dequeue_task_fair path

2020-05-26 Thread Greg Kroah-Hartman
From: Vincent Guittot [ Upstream commit 6d4d22468dae3d8757af9f8b81b848a76ef4409d ] The walk through the cgroup hierarchy during the enqueue/dequeue of a task is split in 2 distinct parts for throttled cfs_rq without any added value but making code less readable. Change the code ordering such

[PATCH 5.4 098/111] rxrpc: Fix a memory leak in rxkad_verify_response()

2020-05-26 Thread Greg Kroah-Hartman
From: Qiushi Wu commit f45d01f4f30b53c3a0a1c6c1c154acb7ff74ab9f upstream. A ticket was not released after a call of the function "rxkad_decrypt_ticket" failed. Thus replace the jump target "temporary_error_free_resp" by "temporary_error_free_ticket". Fixes: 8c2f826dc3631 ("rxrpc: Don't put

[PATCH 5.4 108/111] tpm: check event log version before reading final events

2020-05-26 Thread Greg Kroah-Hartman
From: Loïc Yhuel [ Upstream commit b4f1874c62168159fdb419ced4afc77c1b51c475 ] This fixes the boot issues since 5.3 on several Dell models when the TPM is enabled. Depending on the exact grub binary, booting the kernel would freeze early, or just report an error parsing the final events log. We

[PATCH 5.4 092/111] s390/pci: Fix s390_mmio_read/write with MIO

2020-05-26 Thread Greg Kroah-Hartman
From: Niklas Schnelle commit f058599e22d59e594e5aae1dc10560568d8f4a8b upstream. The s390_mmio_read/write syscalls are currently broken when running with MIO. The new pcistb_mio/pcstg_mio/pcilg_mio instructions are executed similiarly to normal load/store instructions and do address translation

[PATCH 5.4 074/111] drm/i915/gvt: Init DPLL/DDI vreg for virtual display instead of inheritance.

2020-05-26 Thread Greg Kroah-Hartman
From: Colin Xu commit f965b68188ab59a40a421ced1b05a2fea638465c upstream. Init value of some display vregs rea inherited from host pregs. When host display in different status, i.e. all monitors unpluged, different display configurations, etc., GVT virtual display setup don't consistent thus may

[PATCH 5.4 104/111] iio: adc: stm32-dfsdm: Use dma_request_chan() instead dma_request_slave_channel()

2020-05-26 Thread Greg Kroah-Hartman
From: Peter Ujfalusi [ Upstream commit a9ab624edd9186fbad734cfe5d606a6da3ca34db ] dma_request_slave_channel() is a wrapper on top of dma_request_chan() eating up the error code. By using dma_request_chan() directly the driver can support deferred probing against DMA. Signed-off-by: Peter

[PATCHv4 2/3] optee: use uuid for sysfs driver entry

2020-05-26 Thread Maxim Uvarov
OP-TEE device names for sysfs need to be unique and it's better if they will mean something. UUID for name looks like good solution: /sys/bus/tee/devices/optee-ta- Signed-off-by: Maxim Uvarov --- Documentation/ABI/testing/sysfs-bus-optee-devices | 8 MAINTAINERS

[PATCH 5.4 084/111] staging: greybus: Fix uninitialized scalar variable

2020-05-26 Thread Greg Kroah-Hartman
From: Oscar Carter commit 34625c1931f8204c234c532b446b9f53c69f4b68 upstream. In the "gb_tty_set_termios" function the "newline" variable is declared but not initialized. So the "flow_control" member is not initialized and the OR / AND operations with itself results in an undefined value in this

[PATCH 5.4 089/111] tty: serial: add missing spin_lock_init for SiFive serial console

2020-05-26 Thread Greg Kroah-Hartman
From: Sagar Shrikant Kadam commit 17b4efdf4e4867079012a48ca10d965fe9d68822 upstream. An uninitialised spin lock for sifive serial console raises a bad magic spin_lock error as reported and discussed here [1]. Initialising the spin lock resolves the issue. The fix is tested on HiFive Unleashed

Re: [PATCH 1/1] dt-bindings: MIPS: Document Ingenic SoCs binding.

2020-05-26 Thread Paul Cercueil
Hi Zhou, Le mer. 27 mai 2020 à 1:07, 周琰杰 (Zhou Yanjie) a écrit : Document the available properties for the SoC root node and the CPU nodes of the devicetree for the Ingenic XBurst SoCs. Tested-by: H. Nikolaus Schaller Tested-by: Paul Boddie Signed-off-by: 周琰杰 (Zhou Yanjie) ---

[PATCH 5.6 034/126] component: Silence bind error on -EPROBE_DEFER

2020-05-26 Thread Greg Kroah-Hartman
From: James Hilliard [ Upstream commit 7706b0a76a9697021e2bf395f3f065c18f51043d ] If a component fails to bind due to -EPROBE_DEFER we should not log an error as this is not a real failure. Fixes messages like: vc4-drm soc:gpu: failed to bind 3f902000.hdmi (ops vc4_hdmi_ops): -517 vc4-drm

[PATCH 5.6 018/126] ubi: Fix seq_file usage in detailed_erase_block_info debugfs file

2020-05-26 Thread Greg Kroah-Hartman
From: Richard Weinberger [ Upstream commit 0e7572cffe442290c347e779bf8bd4306bb0aa7c ] 3bfa7e141b0b ("fs/seq_file.c: seq_read(): add info message about buggy .next functions") showed that we don't use seq_file correctly. So make sure that our ->next function always updates the position. Fixes:

[PATCH 5.6 021/126] iommu: Fix deferred domain attachment

2020-05-26 Thread Greg Kroah-Hartman
From: Joerg Roedel [ Upstream commit bd421264ed307dd296eab036851221b225071a32 ] The IOMMU core code has support for deferring the attachment of a domain to a device. This is needed in kdump kernels where the new domain must not be attached to a device before the device driver takes it over.

[PATCH 5.6 008/126] ACPI: EC: PM: Avoid flushing EC work when EC GPE is inactive

2020-05-26 Thread Greg Kroah-Hartman
From: Rafael J. Wysocki [ Upstream commit 607b9df63057a56f6172d560d5366cca6a030c76 ] Flushing the EC work while suspended to idle when the EC GPE status is not set causes some EC wakeup events (notably power button and lid ones) to be missed after a series of spurious wakeups on the Dell XPS13

[PATCH 5.6 003/126] ima: Set file->f_mode instead of file->f_flags in ima_calc_file_hash()

2020-05-26 Thread Greg Kroah-Hartman
From: Roberto Sassu [ Upstream commit 0014cc04e8ec077dc482f00c87dfd949cfe2b98f ] Commit a408e4a86b36 ("ima: open a new file instance if no read permissions") tries to create a new file descriptor to calculate a file digest if the file has not been opened with O_RDONLY flag. However, if a new

[PATCH 5.6 012/126] ubifs: remove broken lazytime support

2020-05-26 Thread Greg Kroah-Hartman
From: Christoph Hellwig [ Upstream commit ecf84096a526f2632ee85c32a3d05de3fa60ce80 ] When "ubifs: introduce UBIFS_ATIME_SUPPORT to ubifs" introduced atime support to ubifs, it also added lazytime support. As far as I can tell the lazytime support is terminally broken, as it causes

[PATCH 5.6 014/126] iommu/amd: Fix over-read of ACPI UID from IVRS table

2020-05-26 Thread Greg Kroah-Hartman
From: Alexander Monakov [ Upstream commit e461b8c991b9202b007ea2059d953e264240b0c9 ] IVRS parsing code always tries to read 255 bytes from memory when retrieving ACPI device path, and makes an assumption that firmware provides a zero-terminated string. Both of those are bugs: the entry is

[PATCH 5.6 005/126] ima: Fix return value of ima_write_policy()

2020-05-26 Thread Greg Kroah-Hartman
From: Roberto Sassu [ Upstream commit 2e3a34e9f409ebe83d1af7cd2f49fca7af97dfac ] This patch fixes the return value of ima_write_policy() when a new policy is directly passed to IMA and the current policy requires appraisal of the file containing the policy. Currently, if appraisal is not in

[PATCH 5.6 006/126] ovl: potential crash in ovl_fid_to_fh()

2020-05-26 Thread Greg Kroah-Hartman
From: Dan Carpenter [ Upstream commit 9aafc1b0187322fa4fd4eb905d0903172237206c ] The "buflen" value comes from the user and there is a potential that it could be zero. In do_handle_to_path() we know that "handle->handle_bytes" is non-zero and we do: handle_dwords =

[PATCH 5.6 019/126] afs: Dont unlock fetched data pages until the op completes successfully

2020-05-26 Thread Greg Kroah-Hartman
From: David Howells [ Upstream commit 9d1be4f4dc5ff1c66c86acfd2c35765d9e3776b3 ] Don't call req->page_done() on each page as we finish filling it with the data coming from the network. Whilst this might speed up the application a bit, it's a problem if there's a network failure and the

[PATCH 5.6 035/126] net/ena: Fix build warning in ena_xdp_set()

2020-05-26 Thread Greg Kroah-Hartman
From: Gavin Shan [ Upstream commit caec66198d137c26f0d234abc498866a58c64150 ] This fixes the following build warning in ena_xdp_set(), which is observed on aarch64 with 64KB page size. In file included from ./include/net/inet_sock.h:19, from ./include/net/ip.h:27, from

[PATCH 5.6 033/126] aquantia: Fix the media type of AQC100 ethernet controller in the driver

2020-05-26 Thread Greg Kroah-Hartman
From: Richard Clark [ Upstream commit 6de556c31061e3b9c36546ffaaac5fdb679a2f14 ] The Aquantia AQC100 controller enables a SFP+ port, so the driver should configure the media type as '_TYPE_FIBRE' instead of '_TYPE_TP'. Signed-off-by: Richard Clark Cc: Igor Russkikh Cc: "David S. Miller"

[PATCH 5.6 024/126] gcc-common.h: Update for GCC 10

2020-05-26 Thread Greg Kroah-Hartman
From: Frédéric Pierret (fepitre) [ Upstream commit c7527373fe28f97d8a196ab562db5589be0d34b9 ] Remove "params.h" include, which has been dropped in GCC 10. Remove is_a_helper() macro, which is now defined in gimple.h, as seen when running './scripts/gcc-plugin.sh g++ g++ gcc': In file included

[PATCHv4 1/3] optee: do drivers initialization before and after tee-supplicant run

2020-05-26 Thread Maxim Uvarov
Some drivers (like ftpm) can operate only after tee-supplicant runs becase of tee-supplicant provides things like storage services. This patch splits probe of non tee-supplicant dependable drivers to early stage, and after tee-supplicant run probe other drivers. Signed-off-by: Maxim Uvarov

[PATCH 5.6 045/126] stmmac: fix pointer check after utilization in stmmac_interrupt

2020-05-26 Thread Greg Kroah-Hartman
From: Maxim Petrov [ Upstream commit f42234ffd531ca6b13d9da02faa60b72eccf8334 ] The paranoidal pointer check in IRQ handler looks very strange - it really protects us only against bogus drivers which request IRQ line with null pointer dev_id. However, the code fragment is incorrect because the

[PATCH 5.6 053/126] ARM: futex: Address build warning

2020-05-26 Thread Greg Kroah-Hartman
From: Thomas Gleixner [ Upstream commit 8101b5a1531f3390b3a69fa7934c70a8fd6566ad ] Stephen reported the following build warning on a ARM multi_v7_defconfig build with GCC 9.2.1: kernel/futex.c: In function 'do_futex': kernel/futex.c:1676:17: warning: 'oldval' may be used uninitialized in this

[PATCH 5.6 055/126] scripts/gdb: repair rb_first() and rb_last()

2020-05-26 Thread Greg Kroah-Hartman
From: Aymeric Agon-Rambosson [ Upstream commit 50e36be1fb9572b2e4f2753340bdce3116bf2ce7 ] The current implementations of the rb_first() and rb_last() gdb functions have a variable that references itself in its instanciation, which causes the function to throw an error if a specific condition on

[PATCH 5.6 041/126] x86/apic: Move TSC deadline timer debug printk

2020-05-26 Thread Greg Kroah-Hartman
From: Thomas Gleixner [ Upstream commit c84cb3735fd53c91101ccdb191f2e3331a9262cb ] Leon reported that the printk_once() in __setup_APIC_LVTT() triggers a lockdep splat due to a lock order violation between hrtimer_base::lock and console_sem, when the 'once' condition is reset via

[PATCH 5.6 060/126] ALSA: hda/realtek - Enable headset mic of ASUS UX550GE with ALC295

2020-05-26 Thread Greg Kroah-Hartman
From: Jian-Hong Pan [ Upstream commit ad97d667854c2fbce05a004e107f358ef4b04cf6 ] The ASUS laptop UX550GE with ALC295 can't detect the headset microphone until ALC295_FIXUP_ASUS_MIC_NO_PRESENCE quirk applied. Signed-off-by: Jian-Hong Pan Signed-off-by: Daniel Drake Link:

[PATCH 5.6 049/126] iommu/amd: Call domain_flush_complete() in update_domain()

2020-05-26 Thread Greg Kroah-Hartman
From: Joerg Roedel [ Upstream commit f44a4d7e4f1cdef73c90b1dc749c4d8a7372a8eb ] The update_domain() function is expected to also inform the hardware about domain changes. This needs a COMPLETION_WAIT command to be sent to all IOMMUs which use the domain. Signed-off-by: Joerg Roedel Tested-by:

[PATCH 5.6 056/126] ALSA: hda/realtek - Add supported new mute Led for HP

2020-05-26 Thread Greg Kroah-Hartman
From: Kailang Yang [ Upstream commit 431e76c3edd76d84a0ed1eb81a286b2ddecc5ee4 ] HP Note Book supported new mute Led. Hardware PIN was not enough to meet old LED rule. JD2 to control playback mute led. GPO3 to control capture mute led. (ALC285 didn't control GPO3 via verb command) This two PIN

[PATCH 5.6 042/126] gtp: set NLM_F_MULTI flag in gtp_genl_dump_pdp()

2020-05-26 Thread Greg Kroah-Hartman
From: Yoshiyuki Kurauchi [ Upstream commit 846c68f7f1ac82c797a2f1db3344a2966c0fe2e1 ] In drivers/net/gtp.c, gtp_genl_dump_pdp() should set NLM_F_MULTI flag since it returns multipart message. This patch adds a new arg "flags" in gtp_genl_fill_info() so that flags can be set by the callers.

[PATCH 5.6 052/126] KVM: selftests: Fix build for evmcs.h

2020-05-26 Thread Greg Kroah-Hartman
From: Peter Xu [ Upstream commit 8ffdaf9155ebe517cdec5edbcca19ba6e7ee9c3c ] I got this error when building kvm selftests: /usr/bin/ld: /home/xz/git/linux/tools/testing/selftests/kvm/libkvm.a(vmx.o):/home/xz/git/linux/tools/testing/selftests/kvm/include/evmcs.h:222: multiple definition of

[PATCH 5.6 061/126] ALSA: hda/realtek: Enable headset mic of ASUS UX581LV with ALC295

2020-05-26 Thread Greg Kroah-Hartman
From: Jian-Hong Pan [ Upstream commit 7900e81797613b92f855f9921392a7430cbdf88c ] The ASUS UX581LV laptop's audio (1043:19e1) with ALC295 can't detect the headset microphone until ALC295_FIXUP_ASUS_MIC_NO_PRESENCE quirk applied. Signed-off-by: Jian-Hong Pan Link:

[PATCH 5.6 054/126] tools/bootconfig: Fix resource leak in apply_xbc()

2020-05-26 Thread Greg Kroah-Hartman
From: Yunfeng Ye [ Upstream commit 8842604446d1f005abcbf8c63c12eabdb5695094 ] Fix the @data and @fd allocations that are leaked in the error path of apply_xbc(). Link: http://lkml.kernel.org/r/583a49c9-c27a-931d-e6c2-6f63a4b18...@huawei.com Acked-by: Masami Hiramatsu Signed-off-by: Yunfeng

[PATCH 5.6 036/126] scsi: ibmvscsi: Fix WARN_ON during event pool release

2020-05-26 Thread Greg Kroah-Hartman
From: Tyrel Datwyler [ Upstream commit b36522150e5b85045f868768d46fbaaa034174b2 ] While removing an ibmvscsi client adapter a WARN_ON like the following is seen in the kernel log: drmgr: drmgr: -r -c slot -s U9080.M9S.783AEC8-V11-C11 -w 5 -d 1 WARNING: CPU: 9 PID: 24062 at

[PATCH 5.6 038/126] ibmvnic: Skip fatal error reset after passive init

2020-05-26 Thread Greg Kroah-Hartman
From: Juliet Kim [ Upstream commit f9c6cea0b38518741c8dcf26ac056d26ee2fd61d ] During MTU change, the following events may happen. Client-driven CRQ initialization fails due to partner’s CRQ closed, causing client to enqueue a reset task for FATAL_ERROR. Then passive (server-driven) CRQ

[PATCH 5.6 059/126] ALSA: hda/realtek - Enable headset mic of ASUS GL503VM with ALC295

2020-05-26 Thread Greg Kroah-Hartman
From: Chris Chiu [ Upstream commit 9e43342b464f1de570a3ad8256ac77645749ef45 ] The ASUS laptop GL503VM with ALC295 can't detect the headset microphone. The headset microphone does not work until pin 0x19 is enabled for it. Signed-off-by: Chris Chiu Signed-off-by: Daniel Drake Signed-off-by:

[PATCH 5.6 062/126] bpf: Restrict bpf_probe_read{, str}() only to archs where they work

2020-05-26 Thread Greg Kroah-Hartman
From: Daniel Borkmann commit 0ebeea8ca8a4d1d453ad299aef0507dab04f6e8d upstream. Given the legacy bpf_probe_read{,str}() BPF helpers are broken on archs with overlapping address ranges, we should really take the next step to disable them from BPF use there. To generally fix the situation, we've

[PATCH 5.4 079/111] kbuild: Remove debug info from kallsyms linking

2020-05-26 Thread Greg Kroah-Hartman
From: Kees Cook [ Upstream commit af73d78bd384aa9b8789aa6e7ddbb165f971276f ] When CONFIG_DEBUG_INFO is enabled, the two kallsyms linking steps spend time collecting and writing the dwarf sections to the temporary output files. kallsyms does not need this information, and leaving it off halves

[PATCH 5.6 063/126] bpf: Add bpf_probe_read_{user, kernel}_str() to do_refine_retval_range

2020-05-26 Thread Greg Kroah-Hartman
From: Daniel Borkmann commit 47cc0ed574abcbbde0cf143ddb21a0baed1aa2df upstream. Given bpf_probe_read{,str}() BPF helpers are now only available under CONFIG_ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE, we need to add the drop-in replacements of bpf_probe_read_{kernel,user}_str() to

[PATCH 5.6 029/126] scsi: qla2xxx: Fix hang when issuing nvme disconnect-all in NPIV

2020-05-26 Thread Greg Kroah-Hartman
From: Arun Easi [ Upstream commit 45a76264c26fd8cfd0c9746196892d9b7e2657ee ] In NPIV environment, a NPIV host may use a queue pair created by base host or other NPIVs, so the check for a queue pair created by this NPIV is not correct, and can cause an abort to fail, which in turn means the NVME

[PATCH 5.6 030/126] scsi: qla2xxx: Delete all sessions before unregister local nvme port

2020-05-26 Thread Greg Kroah-Hartman
From: Quinn Tran [ Upstream commit c48f849d3f7a4ec1025105f446e29d395c4dcc2f ] Delete all sessions before unregistering local nvme port. This allows nvme layer to decrement all active rport count down to zero. Once the count is down to zero, nvme would call qla to continue with the npiv port

[PATCH 5.6 027/126] HID: alps: Add AUI1657 device ID

2020-05-26 Thread Greg Kroah-Hartman
From: Artem Borisov [ Upstream commit 640e403b1fd24e7f31ac6f29f0b6a21d285ed729 ] This device is used on Lenovo V130-15IKB variants and uses the same registers as U1. Signed-off-by: Artem Borisov Signed-off-by: Jiri Kosina Signed-off-by: Sasha Levin --- drivers/hid/hid-alps.c | 1 +

[PATCH 5.6 066/126] ALSA: hda/realtek - Fix silent output on Gigabyte X570 Aorus Xtreme

2020-05-26 Thread Greg Kroah-Hartman
From: Christian Lachner commit d9e8fe0cffbfdd18de96fa68ee2a8b667a0b046e upstream. The Gigabyte X570 Aorus Xtreme motherboard with ALC1220 codec requires a similar workaround for Clevo laptops to enforce the DAC/mixer connection path. Set up a quirk entry for that. BugLink:

[PATCH 5.6 064/126] ALSA: iec1712: Initialize STDSP24 properly when using the model=staudio option

2020-05-26 Thread Greg Kroah-Hartman
From: Scott Bahling commit b0cb099062b0c18246c3a20caaab4c0afc303255 upstream. The ST Audio ADCIII is an STDSP24 card plus extension box. With commit e8a91ae18bdc ("ALSA: ice1712: Add support for STAudio ADCIII") we enabled the ADCIII ports using the model=staudio option but forgot this part to

[PATCH 5.6 065/126] ALSA: pcm: fix incorrect hw_base increase

2020-05-26 Thread Greg Kroah-Hartman
From: Brent Lu commit e7513c5786f8b33f0c107b3759e433bc6cbb2efa upstream. There is a corner case that ALSA keeps increasing the hw_ptr but DMA already stop working/updating the position for a long time. In following log we can see the position returned from DMA driver does not move at all but

[PATCH v2 03/14] dt-bindings: PCI: Add bindings for more Brcmstb chips

2020-05-26 Thread Jim Quinlan
From: Jim Quinlan - Add compatible strings for three more Broadcom STB chips: 7278, 7216, 7211 (STB version of RPi4). - add new property 'brcm,scb-sizes' - add new property 'resets' - add new property 'reset-names' - allow 'ranges' and 'dma-ranges' to have more than one item and update the

[PATCH v2 07/14] PCI: brcmstb: Add control of rescal reset

2020-05-26 Thread Jim Quinlan
From: Jim Quinlan Some STB chips have a special purpose reset controller named RESCAL (reset calibration). The PCIe HW can now control RESCAL to start and stop its operation. Signed-off-by: Jim Quinlan --- drivers/pci/controller/pcie-brcmstb.c | 81 ++- 1 file

[PATCH v2 05/14] PCI: brcmstb: Add suspend and resume pm_ops

2020-05-26 Thread Jim Quinlan
From: Jim Quinlan Broadcom Set-top (BrcmSTB) boards typically support S2, S3, and S5 suspend and resume. Now the PCIe driver may do so as well. Signed-off-by: Jim Quinlan --- drivers/pci/controller/pcie-brcmstb.c | 49 +++ 1 file changed, 49 insertions(+) diff --git

Re: [PATCH] capabilities: Introduce CAP_RESTORE

2020-05-26 Thread Casey Schaufler
On 5/26/2020 12:01 PM, Christine Flood wrote: Please do not top-post on this list. > Java applications suffer from slow startup times due to dynamic class loading > and warming up the Just In Time compilers.  Not all Java users have root > access on their machines.  Enabling CRIU in user mode

[PATCH v2 04/14] PCI: brcmstb: Add bcm7278 reigister info

2020-05-26 Thread Jim Quinlan
From: Jim Quinlan Add in compatibility strings and code for three Broadcom STB chips. Some of the register locations, shifts, and masks are different for certain chips, requiring the use of different constants based on of_id. We would like to add the following at this time to the match list

[PATCH v2 02/14] ata: ahci_brcm: Fix use of BCM7216 reset controller

2020-05-26 Thread Jim Quinlan
From: Jim Quinlan A reset controller "rescal" is shared between the AHCI driver and the PCIe driver for the BrcmSTB 7216 chip. The code is modified to allow this sharing and to deassert() properly. Signed-off-by: Jim Quinlan --- drivers/ata/ahci_brcm.c | 14 +- 1 file changed, 5

[PATCH v2 11/14] PCI: brcmstb: Set internal memory viewport sizes

2020-05-26 Thread Jim Quinlan
BrcmSTB PCIe controllers are intimately connected to the memory controller(s) on the SOC. There is a "viewport" for each memory controller that allows inbound accesses to CPU memory. Each viewport's size must be set to a power of two, and that size must be equal to or larger than the amount of

[PATCH 5.6 023/126] net: drop_monitor: use IS_REACHABLE() to guard net_dm_hw_report()

2020-05-26 Thread Greg Kroah-Hartman
From: Masahiro Yamada [ Upstream commit 1cd9b3abf5332102d4d967555e7ed861a75094bf ] In net/Kconfig, NET_DEVLINK implies NET_DROP_MONITOR. The original behavior of the 'imply' keyword prevents NET_DROP_MONITOR from being 'm' when NET_DEVLINK=y. With the planned Kconfig change that relaxes the

[PATCH v2 08/14] of: Include a dev param in of_dma_get_range()

2020-05-26 Thread Jim Quinlan
Currently there is only one caller of of_dma_get_range(). A struct device *dev param is needed For implementing multiple dma offsets. This function will still work if dev == NULL. Signed-off-by: Jim Quinlan --- drivers/of/address.c| 4 +++- drivers/of/device.c | 2 +-

[PATCH 5.6 079/126] dmaengine: dmatest: Restore default for channel

2020-05-26 Thread Greg Kroah-Hartman
From: Vladimir Murzin commit 6b41030fdc79086db5d673c5ed7169f3ee8c13b9 upstream. In case of dmatest is built-in and no channel was configured test doesn't run with: dmatest: Could not start test, no channels configured Even though description to "channel" parameter claims that default is any.

[PATCH 5.6 068/126] scsi: qla2xxx: Do not log message when reading port speed via sysfs

2020-05-26 Thread Greg Kroah-Hartman
From: Ewan D. Milne commit fb9024b0646939e59d8a0b6799b317070619795a upstream. Calling ql_log() inside qla2x00_port_speed_show() is causing messages to be output to the console for no particularly good reason. The sysfs read routine should just return the information to userspace. The only

[PATCH 5.6 031/126] configfs: fix config_item refcnt leak in configfs_rmdir()

2020-05-26 Thread Greg Kroah-Hartman
From: Xiyu Yang [ Upstream commit 8aebfffacfa379ba400da573a5bf9e49634e38cb ] configfs_rmdir() invokes configfs_get_config_item(), which returns a reference of the specified config_item object to "parent_item" with increased refcnt. When configfs_rmdir() returns, local variable "parent_item"

[PATCH v2 13/14] PCI: brcmstb: Set bus max burst size by chip type

2020-05-26 Thread Jim Quinlan
From: Jim Quinlan The proper value of the parameter SCB_MAX_BURST_SIZE varies per chip. The 2711 family requires 128B whereas other devices can employ 512. The assignment is complicated by the fact that the values for this two-bit field have different meanings; Value Type_Generic

[PATCH 5.6 077/126] dmaengine: tegra210-adma: Fix an error handling path in tegra_adma_probe()

2020-05-26 Thread Greg Kroah-Hartman
From: Christophe JAILLET commit 3a5fd0dbd87853f8bd2ea275a5b3b41d6686e761 upstream. Commit b53611fb1ce9 ("dmaengine: tegra210-adma: Fix crash during probe") has moved some code in the probe function and reordered the error handling path accordingly. However, a goto has been missed. Fix it and

[PATCH 5.6 093/126] staging: greybus: Fix uninitialized scalar variable

2020-05-26 Thread Greg Kroah-Hartman
From: Oscar Carter commit 34625c1931f8204c234c532b446b9f53c69f4b68 upstream. In the "gb_tty_set_termios" function the "newline" variable is declared but not initialized. So the "flow_control" member is not initialized and the OR / AND operations with itself results in an undefined value in this

[PATCH 5.6 090/126] staging: iio: ad2s1210: Fix SPI reading

2020-05-26 Thread Greg Kroah-Hartman
From: Dragos Bogdan commit 5e4f99a6b788047b0b8a7496c2e0c8f372f6edf2 upstream. If the serial interface is used, the 8-bit address should be latched using the rising edge of the WR/FSYNC signal. This basically means that a CS change is required between the first byte sent, and the second one.

[PATCH 5.6 069/126] scsi: target: Put lun_ref at end of tmr processing

2020-05-26 Thread Greg Kroah-Hartman
From: Bodo Stroesser commit f2e6b75f6ee82308ef7b00f29e71e5f1c6b3d52a upstream. Testing with Loopback I found that, after a Loopback LUN has executed a TMR, I can no longer unlink the LUN. The rm command hangs in transport_clear_lun_ref() at wait_for_completion(>lun_shutdown_comp) The reason

[PATCH 5.6 092/126] staging: kpc2000: fix error return code in kp2000_pcie_probe()

2020-05-26 Thread Greg Kroah-Hartman
From: Wei Yongjun commit b17884ccf29e127b16bba6aea1438c851c9f5af1 upstream. Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Also removed var 'rv' since we can use 'err' instead. Fixes: 7dc7967fc39a ("staging: kpc2000: add

[PATCH 5.6 083/126] drm/i915/gvt: Init DPLL/DDI vreg for virtual display instead of inheritance.

2020-05-26 Thread Greg Kroah-Hartman
From: Colin Xu commit f965b68188ab59a40a421ced1b05a2fea638465c upstream. Init value of some display vregs rea inherited from host pregs. When host display in different status, i.e. all monitors unpluged, different display configurations, etc., GVT virtual display setup don't consistent thus may

[PATCH v2 12/14] PCI: brcmstb: Accommodate MSI for older chips

2020-05-26 Thread Jim Quinlan
From: Jim Quinlan Older BrcmSTB chips do not have a separate register for MSI interrupts; the MSIs are in a register that also contains unrelated interrupts. In addition, the interrupts lie in bits [31..24] for these legacy chips. This commit provides common code for both legacy and non-legacy

[PATCH 5.6 084/126] drm/i915: Propagate error from completed fences

2020-05-26 Thread Greg Kroah-Hartman
From: Chris Wilson commit bc850943486887e3859597a266767f95db90aa72 upstream. We need to preserve fatal errors from fences that are being terminated as we hook them up. Fixes: ef4688497512 ("drm/i915: Propagate fence errors") Signed-off-by: Chris Wilson Cc: Tvrtko Ursulin Cc: Matthew Auld

[PATCH 5.6 080/126] dmaengine: idxd: fix interrupt completion after unmasking

2020-05-26 Thread Greg Kroah-Hartman
From: Dave Jiang commit 4f302642b70c1348773fe7e3ded9fc315fa92990 upstream. The current implementation may miss completions after we unmask the interrupt. In order to make sure we process all competions, we need to: 1. Do an MMIO read from the device as a barrier to ensure that all PCI writes

Re: [PATCH v2 4/4] x86/boot: Check that there are no runtime relocations

2020-05-26 Thread Arvind Sankar
On Tue, May 26, 2020 at 10:13:40AM -0700, Fangrui Song wrote: > > On 2020-05-26, Arvind Sankar wrote: > >On Tue, May 26, 2020 at 08:11:56AM +0200, Ard Biesheuvel wrote: > >> On Tue, 26 May 2020 at 00:59, Arvind Sankar wrote: > >> > # Compressed kernel should be built as PIE since it may be

[PATCH 5.6 088/126] tools/bootconfig: Fix apply_xbc() to return zero on success

2020-05-26 Thread Greg Kroah-Hartman
From: Steven Rostedt (VMware) [ Upstream commit 9d82ccda2bc5c148060543d249d54f8703741bb4 ] The return of apply_xbc() returns the result of the last write() call, which is not what is expected. It should only return zero on success. Link: https://lore.kernel.org/r/20200508093059.GF9365@kadam

[PATCH 5.6 094/126] iio: adc: stm32-adc: fix device used to request dma

2020-05-26 Thread Greg Kroah-Hartman
From: Fabrice Gasnier commit 52cd91c27f3908b88e8b25aed4a4d20660abcc45 upstream. DMA channel request should use device struct from platform device struct. Currently it's using iio device struct. But at this stage when probing, device struct isn't yet registered (e.g. device_register is done in

[PATCH 5.6 070/126] arm64: Fix PTRACE_SYSEMU semantics

2020-05-26 Thread Greg Kroah-Hartman
From: Keno Fischer commit 1cf6022bd9161081215028203919c33fcfa6debb upstream. Quoth the man page: ``` If the tracee was restarted by PTRACE_SYSCALL or PTRACE_SYSEMU, the tracee enters syscall-enter-stop just prior to entering any system call (which will not be executed if

[PATCH 5.6 119/126] flow_dissector: Drop BPF flow dissector prog ref on netns cleanup

2020-05-26 Thread Greg Kroah-Hartman
From: Jakub Sitnicki commit 5cf65922bb15279402e1e19b5ee8c51d618fa51f upstream. When attaching a flow dissector program to a network namespace with bpf(BPF_PROG_ATTACH, ...) we grab a reference to bpf_prog. If netns gets destroyed while a flow dissector is still attached, and there are no other

[PATCH 5.6 072/126] drm/etnaviv: fix perfmon domain interation

2020-05-26 Thread Greg Kroah-Hartman
From: Christian Gmeiner commit 40b697e256ccdb88aaff424b44b4d300eb8460e8 upstream. The GC860 has one GPU device which has a 2d and 3d core. In this case we want to expose perfmon information for both cores. The driver has one array which contains all possible perfmon domains with some meta data

[PATCH 5.6 110/126] sh: include linux/time_types.h for sockios

2020-05-26 Thread Greg Kroah-Hartman
From: Arnd Bergmann commit fc94cf2092c7c1267fa2deb8388d624f50eba808 upstream. Using the socket ioctls on arch/sh (and only there) causes build time problems when __kernel_old_timeval/__kernel_old_timespec are not already visible to the compiler. Add an explict include line for the header that

[PATCH 5.6 105/126] s390/pci: Fix s390_mmio_read/write with MIO

2020-05-26 Thread Greg Kroah-Hartman
From: Niklas Schnelle commit f058599e22d59e594e5aae1dc10560568d8f4a8b upstream. The s390_mmio_read/write syscalls are currently broken when running with MIO. The new pcistb_mio/pcstg_mio/pcilg_mio instructions are executed similiarly to normal load/store instructions and do address translation

[PATCH 5.6 107/126] device-dax: dont leak kernel memory to user space after unloading kmem

2020-05-26 Thread Greg Kroah-Hartman
From: David Hildenbrand commit 60858c00e5f018eda711a3aa84cf62214ef62d61 upstream. Assume we have kmem configured and loaded: [root@localhost ~]# cat /proc/iomem ... 14000-33fff : Persistent Memory$ 14000-1481f : namespace0.0 15000-33fff : dax0.0

[PATCH 5.6 124/126] sched/fair: Reorder enqueue/dequeue_task_fair path

2020-05-26 Thread Greg Kroah-Hartman
From: Vincent Guittot [ Upstream commit 6d4d22468dae3d8757af9f8b81b848a76ef4409d ] The walk through the cgroup hierarchy during the enqueue/dequeue of a task is split in 2 distinct parts for throttled cfs_rq without any added value but making code less readable. Change the code ordering such

[PATCH 5.6 102/126] tty: serial: add missing spin_lock_init for SiFive serial console

2020-05-26 Thread Greg Kroah-Hartman
From: Sagar Shrikant Kadam commit 17b4efdf4e4867079012a48ca10d965fe9d68822 upstream. An uninitialised spin lock for sifive serial console raises a bad magic spin_lock error as reported and discussed here [1]. Initialising the spin lock resolves the issue. The fix is tested on HiFive Unleashed

[PATCH 5.6 100/126] driver core: Fix handling of SYNC_STATE_ONLY + STATELESS device links

2020-05-26 Thread Greg Kroah-Hartman
From: Saravana Kannan commit 44e960490ddf868fc9135151c4a658936e771dc2 upstream. Commit 21c27f06587d ("driver core: Fix SYNC_STATE_ONLY device link implementation") didn't completely fix STATELESS + SYNC_STATE_ONLY handling. What looks like an optimization in that commit is actually a bug that

[PATCH 5.6 115/126] rxrpc: Fix the excessive initial retransmission timeout

2020-05-26 Thread Greg Kroah-Hartman
From: David Howells commit c410bf01933e5e09d142c66c3df9ad470a7eec13 upstream. rxrpc currently uses a fixed 4s retransmission timeout until the RTT is sufficiently sampled. This can cause problems with some fileservers with calls to the cache manager in the afs filesystem being dropped from the

[PATCH 5.6 117/126] tpm: check event log version before reading final events

2020-05-26 Thread Greg Kroah-Hartman
From: Loïc Yhuel commit b4f1874c62168159fdb419ced4afc77c1b51c475 upstream. This fixes the boot issues since 5.3 on several Dell models when the TPM is enabled. Depending on the exact grub binary, booting the kernel would freeze early, or just report an error parsing the final events log. We

[PATCH 5.6 118/126] s390/kexec_file: fix initrd location for kdump kernel

2020-05-26 Thread Greg Kroah-Hartman
From: Philipp Rudo commit 70b690547d5ea1a3d135a4cc39cd1e08246d0c3a upstream. initrd_start must not point at the location the initrd is loaded into the crashkernel memory but at the location it will be after the crashkernel memory is swapped with the memory at 0. Fixes: ee337f5469fd

[PATCH 5.6 116/126] rxrpc: Fix a memory leak in rxkad_verify_response()

2020-05-26 Thread Greg Kroah-Hartman
From: Qiushi Wu commit f45d01f4f30b53c3a0a1c6c1c154acb7ff74ab9f upstream. A ticket was not released after a call of the function "rxkad_decrypt_ticket" failed. Thus replace the jump target "temporary_error_free_resp" by "temporary_error_free_ticket". Fixes: 8c2f826dc3631 ("rxrpc: Don't put

[PATCH 5.6 122/126] rxrpc: Fix ack discard

2020-05-26 Thread Greg Kroah-Hartman
From: David Howells [ Upstream commit 441fdee1eaf050ef0040bde0d7af075c1c6a6d8b ] The Rx protocol has a "previousPacket" field in it that is not handled in the same way by all protocol implementations. Sometimes it contains the serial number of the last DATA packet received, sometimes the

[PATCH 5.6 112/126] sparc32: fix page table traversal in srmmu_nocache_init()

2020-05-26 Thread Greg Kroah-Hartman
From: Mike Rapoport commit 0cfc8a8d70dcd51db783e8e87917e02149c71458 upstream. The srmmu_nocache_init() uses __nocache_fix() macro to add an offset to page table entry to access srmmu_nocache_pool. But since sparc32 has only three actual page table levels, pgd, p4d and pud are essentially the

[PATCH 5.6 125/126] sched/fair: Fix reordering of enqueue/dequeue_task_fair()

2020-05-26 Thread Greg Kroah-Hartman
From: Vincent Guittot [ Upstream commit 5ab297bab984310267734dfbcc8104566658ebef ] Even when a cgroup is throttled, the group se of a child cgroup can still be enqueued and its gse->on_rq stays true. When a task is enqueued on such child, we still have to update the load_avg and increase

[PATCH 5.6 114/126] iio: imu: st_lsm6dsx: unlock on error in st_lsm6dsx_shub_write_raw()

2020-05-26 Thread Greg Kroah-Hartman
From: Dan Carpenter commit 115c215a7e5753ddf982c8760ce7904dd3fbb8ae upstream. We need to release a lock if st_lsm6dsx_check_odr() fails, we can't return directly. Fixes: 76551a3c3df1 ("iio: imu: st_lsm6dsx: specify slave odr in slv_odr") Signed-off-by: Dan Carpenter Signed-off-by: Jonathan

[PATCH 5.6 073/126] pinctrl: qcom: Add affinity callbacks to msmgpio IRQ chip

2020-05-26 Thread Greg Kroah-Hartman
From: Venkata Narendra Kumar Gutta commit dca4f40742e09ec5d908a7fc2862498e6cf9d911 upstream. Wakeup capable GPIO IRQs routed via PDC are not being migrated when a CPU is hotplugged. Add affinity callbacks to msmgpio IRQ chip to update the affinity of wakeup capable IRQs. Fixes: e35a6ae0eb3a

[PATCH 5.6 113/126] z3fold: fix use-after-free when freeing handles

2020-05-26 Thread Greg Kroah-Hartman
From: Uladzislau Rezki commit d8f117abb380ba968b5e3ef2042d901c02872a4c upstream. free_handle() for a foreign handle may race with inter-page compaction, what can lead to memory corruption. To avoid that, take write lock not read lock in free_handle to be synchronized with

[PATCH 5.6 109/126] kasan: disable branch tracing for core runtime

2020-05-26 Thread Greg Kroah-Hartman
From: Marco Elver commit 33cd65e73abd693c00c4156cf23677c453b41b3b upstream. During early boot, while KASAN is not yet initialized, it is possible to enter reporting code-path and end up in kasan_report(). While uninitialized, the branch there prevents generating any reports, however, under

[PATCH 5.6 074/126] apparmor: Fix use-after-free in aa_audit_rule_init

2020-05-26 Thread Greg Kroah-Hartman
From: Navid Emamdoost commit c54d481d71c6849e044690d3960aaebc730224cc upstream. In the implementation of aa_audit_rule_init(), when aa_label_parse() fails the allocated memory for rule is released using aa_audit_rule_free(). But after this release, the return statement tries to access the label

[PATCH 5.6 120/126] x86/unwind/orc: Fix unwind_get_return_address_ptr() for inactive tasks

2020-05-26 Thread Greg Kroah-Hartman
From: Josh Poimboeuf commit 187b96db5ca79423618dfa29a05c438c34f9e1f0 upstream. Normally, show_trace_log_lvl() scans the stack, looking for text addresses to print. In parallel, it unwinds the stack with unwind_next_frame(). If the stack address matches the pointer returned by

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