[PATCH 5.1 72/85] drm/vmwgfx: Fix user space handle equal to zero

2019-06-07 Thread Greg Kroah-Hartman
From: Thomas Hellstrom commit 8407f8a1d940fe28c4243ad4f0cb6a44dcee88f6 upstream. User-space handles equal to zero are interpreted as uninitialized or illegal by some drm systems (most notably kms). This means that a dumb buffer or surface with a zero user-space handle can never be used as a kms

[PATCH 5.1 63/85] vt/fbcon: deinitialize resources in visual_init() after failed memory allocation

2019-06-07 Thread Greg Kroah-Hartman
From: Grzegorz Halat commit a1ad1cc9704f64c169261a76e1aee1cf1ae51832 upstream. After memory allocation failure vc_allocate() doesn't clean up data which has been initialized in visual_init(). In case of fbcon this leads to divide-by-0 in fbcon_init() on next open of the same tty. memory allocat

[PATCH 5.1 71/85] drm/tegra: gem: Fix CPU-cache maintenance for BOs allocated using get_pages()

2019-06-07 Thread Greg Kroah-Hartman
From: Dmitry Osipenko commit 61b51fb51c01a519a249d28ec55c6513a13be5a3 upstream. The allocated pages need to be invalidated in CPU caches. On ARM32 the DMA_BIDIRECTIONAL flag only ensures that data is written-back to DRAM and the data stays in CPU cache lines. While the DMA_FROM_DEVICE flag ensur

[PATCH 5.1 69/85] Revert "lockd: Show pid of lockd for remote locks"

2019-06-07 Thread Greg Kroah-Hartman
From: Benjamin Coddington commit 141731d15d6eb2fd9aaefbf9b935ce86ae243074 upstream. This reverts most of commit b8eee0e90f97 ("lockd: Show pid of lockd for remote locks"), which caused remote locks to not be differentiated between remote processes for NLM. We retain the fixup for setting the cl

[PATCH 5.1 82/85] drm/lease: Make sure implicit planes are leased

2019-06-07 Thread Greg Kroah-Hartman
From: Daniel Vetter commit 204f640da6914844b3270b41b29c84f6e3b74083 upstream. If userspace doesn't enable universal planes, then we automatically add the primary and cursor planes. But for universal userspace there's no such check (and maybe we only want to give the lessee one plane, maybe not e

[PATCH 5.1 79/85] drm/atomic: Wire file_priv through for property changes

2019-06-07 Thread Greg Kroah-Hartman
From: Daniel Vetter commit 36e4523aaf4a35de963e190064b53839fa131653 upstream. We need this to make sure lessees can only connect their plane/connectors to crtc objects they own. And note that this is irrespective of whether the lessor is atomic or not, lessor cannot prevent lessees from enabling

[PATCH 5.1 66/85] staging: wlan-ng: fix adapter initialization failure

2019-06-07 Thread Greg Kroah-Hartman
From: Tim Collier commit a67fedd788182764dc8ed59037c604b7e60349f1 upstream. Commit e895f00a8496 ("Staging: wlan-ng: hfa384x_usb.c Fixed too long code line warnings.") moved the retrieval of the transfer buffer from the URB from the top of function hfa384x_usbin_callback to a point after repostin

[PATCH 5.1 84/85] Revert "x86/build: Move _etext to actual end of .text"

2019-06-07 Thread Greg Kroah-Hartman
From: Greg Kroah-Hartman This reverts commit 392bef709659abea614abfe53cf228e7a59876a4. It seems to cause lots of problems when using the gold linker, and no one really needs this at the moment, so just revert it from the stable trees. Cc: Sami Tolvanen Reported-by: Kees Cook Cc: Borislav Petk

[PATCH 5.1 28/85] iio: dac: ds4422/ds4424 fix chip verification

2019-06-07 Thread Greg Kroah-Hartman
From: Ruslan Babayev commit 60f2208699ec08ff9fdf1f97639a661a92a18f1c upstream. The ds4424_get_value function takes channel number as it's 3rd argument and translates it internally into I2C address using DS4424_DAC_ADDR macro. The caller ds4424_verify_chip was passing an already translated I2C ad

[PATCH 5.1 30/85] iio: adc: modify NPCM ADC read reference voltage

2019-06-07 Thread Greg Kroah-Hartman
From: Tomer Maimon commit 4e63ed6b90803eeb400c392e9ff493200d926b06 upstream. Checking if regulator is valid before reading NPCM ADC regulator voltage to avoid system crash in a case the regulator is not valid. Signed-off-by: Tomer Maimon Cc: Signed-off-by: Jonathan Cameron Signed-off-by: Gre

[PATCH 5.1 77/85] drm/imx: ipuv3-plane: fix atomic update status query for non-plus i.MX6Q

2019-06-07 Thread Greg Kroah-Hartman
From: Philipp Zabel commit 137caa702f2308f7ef03876e164b0d0f3300712a upstream. The current buffer check halves the frame rate on non-plus i.MX6Q, as the IDMAC current buffer pointer is not yet updated when ipu_plane_atomic_update_pending is called from the EOF irq handler. Fixes: 70e8a0c71e9 ("d

[PATCH 5.1 31/85] iio: adc: ti-ads8688: fix timestamp is not updated in buffer

2019-06-07 Thread Greg Kroah-Hartman
From: Sean Nyekjaer commit e6d12298310fa1dc11f1d747e05b168016057fdd upstream. When using the hrtimer iio trigger timestamp isn't updated. If we use iio_get_time_ns it is updated correctly. Fixes: 2a86487786b5c ("iio: adc: ti-ads8688: add trigger and buffer support") Signed-off-by: Sean Nyekjaer

[PATCH 5.1 54/85] arm64: Fix the arm64_personality() syscall wrapper redirection

2019-06-07 Thread Greg Kroah-Hartman
From: Catalin Marinas commit 00377277166bac6939d8f72b429301369acaf2d8 upstream. Following commit 4378a7d4be30 ("arm64: implement syscall wrappers"), the syscall function names gained the '__arm64_' prefix. Ensure that we have the correct #define for redirecting a default syscall through a wrappe

[PATCH 5.1 57/85] doc: Cope with Sphinx logging deprecations

2019-06-07 Thread Greg Kroah-Hartman
From: Jonathan Corbet commit 096ea522e84ea68f8e6c41e5e7294731a81e29bc upstream. Recent versions of sphinx will emit messages like: Documentation/sphinx/kerneldoc.py:103: RemovedInSphinx20Warning: app.warning() is now deprecated. Use sphinx.util.logging instead. Switch to sphinx.uti

[PATCH 5.1 55/85] docs: Fix conf.py for Sphinx 2.0

2019-06-07 Thread Greg Kroah-Hartman
From: Jonathan Corbet commit 3bc8088464712fdcb078eefb68837ccfcc413c88 upstream. Our version check in Documentation/conf.py never envisioned a world where Sphinx moved beyond 1.x. Now that the unthinkable has happened, fix our version check to handle higher version numbers correctly. Cc: sta...

[PATCH 5.1 53/85] mm, compaction: make sure we isolate a valid PFN

2019-06-07 Thread Greg Kroah-Hartman
From: Suzuki K Poulose commit e577c8b64d58fe307ea4d5149d31615df2d90861 upstream. When we have holes in a normal memory zone, we could endup having cached_migrate_pfns which may not necessarily be valid, under heavy memory pressure with swapping enabled ( via __reset_isolation_suitable(), trigger

[PATCH 5.1 27/85] btrfs: reloc: Also queue orphan reloc tree for cleanup to avoid BUG_ON()

2019-06-07 Thread Greg Kroah-Hartman
From: Qu Wenruo commit 30d40577e322b670551ad7e2faa9570b6e23eb2b upstream. [BUG] When a fs has orphan reloc tree along with unfinished balance: ... item 16 key (TREE_RELOC ROOT_ITEM FS_TREE) itemoff 12090 itemsize 439 generation 12 root_dirid 256 bytenr 300400640 level 1

[PATCH 5.1 46/85] tty: serial: msm_serial: Fix XON/XOFF

2019-06-07 Thread Greg Kroah-Hartman
From: Jorge Ramirez-Ortiz commit 61c0e37950b88bad590056286c1d766b1f167f4e upstream. When the tty layer requests the uart to throttle, the current code executing in msm_serial will trigger "Bad mode in Error Handler" and generate an invalid stack frame in pstore before rebooting (that is if pstor

[PATCH 5.1 42/85] KVM: s390: Do not report unusabled IDs via KVM_CAP_MAX_VCPU_ID

2019-06-07 Thread Greg Kroah-Hartman
From: Thomas Huth commit a86cb413f4bf273a9d341a3ab2c2ca44e12eb317 upstream. KVM_CAP_MAX_VCPU_ID is currently always reporting KVM_MAX_VCPU_ID on all architectures. However, on s390x, the amount of usable CPUs is determined during runtime - it is depending on the features of the machine the code

[PATCH 5.1 44/85] i2c: mlxcpld: Fix wrong initialization order in probe

2019-06-07 Thread Greg Kroah-Hartman
From: Vadim Pasternak commit 13067ef73f337336e3149f5bb9f3fd05fe7f87a0 upstream. Fix wrong order in probing routine initialization - field `base_addr' is used before it's initialized. Move assignment of 'priv->base_addr` to the beginning, prior the call to mlxcpld_i2c_read_comm(). Wrong order cau

[PATCH 5.1 35/85] KVM: PPC: Book3S HV: Fix lockdep warning when entering guest on POWER9

2019-06-07 Thread Greg Kroah-Hartman
From: Paul Mackerras commit 1b28d5531e446a87bbefa5ced191c4cbd316576c upstream. Commit 3309bec85e60 ("KVM: PPC: Book3S HV: Fix lockdep warning when entering the guest") moved calls to trace_hardirqs_{on,off} in the entry path used for HPT guests. Similar code exists in the new streamlined entry

[PATCH 5.1 00/85] 5.1.8-stable review

2019-06-07 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.1.8 release. There are 85 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 Sun 09 Jun 2019 03:37:09 PM UTC. Anything recei

[PATCH 5.1 47/85] tty: max310x: Fix external crystal register setup

2019-06-07 Thread Greg Kroah-Hartman
From: Joe Burmeister commit 5d24f455c182d5116dd5db8e1dc501115ecc9c2c upstream. The datasheet states: Bit 4: ClockEnSet the ClockEn bit high to enable an external clocking (crystal or clock generator at XIN). Set the ClockEn bit to 0 to disable clocking Bit 1: CrystalEnSet the CrystalEn bit

[PATCH 5.1 25/85] btrfs: qgroup: Check bg while resuming relocation to avoid NULL pointer dereference

2019-06-07 Thread Greg Kroah-Hartman
From: Qu Wenruo commit 57949d033a09c57d77be218b5bec07af6878ab32 upstream. [BUG] When mounting a fs with reloc tree and has qgroup enabled, it can cause NULL pointer dereference at mount time: BUG: kernel NULL pointer dereference, address: 00a8 #PF: supervisor read access in kern

[PATCH 5.1 05/85] xhci: Convert xhci_handshake() to use readl_poll_timeout_atomic()

2019-06-07 Thread Greg Kroah-Hartman
From: Andrey Smirnov commit f7fac17ca925faa03fc5eb854c081a24075f8bad upstream. Xhci_handshake() implements the algorithm already captured by readl_poll_timeout_atomic(). Convert the former to use the latter to avoid repetition. Turned out this patch also fixes a bug on the AMD Stoneyridge platf

[PATCH 5.1 03/85] xhci: update bounce buffer with correct sg num

2019-06-07 Thread Greg Kroah-Hartman
From: Henry Lin commit 597c56e372dab2c7f79b8d700aad3a5deebf9d1b upstream. This change fixes a data corruption issue occurred on USB hard disk for the case that bounce buffer is used during transferring data. While updating data between sg list and bounce buffer, current implementation passes ma

[PATCH 5.1 06/85] usb: xhci: avoid null pointer deref when bos field is NULL

2019-06-07 Thread Greg Kroah-Hartman
From: Carsten Schmid commit 7aa1bb2ffd84d6b9b5f546b079bb15cd0ab6e76e upstream. With defective USB sticks we see the following error happen: usb 1-3: new high-speed USB device number 6 using xhci_hcd usb 1-3: device descriptor read/64, error -71 usb 1-3: device descriptor read/64, error -71 usb 1

[PATCH 5.1 21/85] Btrfs: fix wrong ctime and mtime of a directory after log replay

2019-06-07 Thread Greg Kroah-Hartman
From: Filipe Manana commit 5338e43abbab13791144d37fd8846847062351c6 upstream. When replaying a log that contains a new file or directory name that needs to be added to its parent directory, we end up updating the mtime and the ctime of the parent directory to the current time after we have set t

[PATCH 5.1 22/85] Btrfs: fix race updating log root item during fsync

2019-06-07 Thread Greg Kroah-Hartman
From: Filipe Manana commit 06989c799f04810f6876900d4760c0edda369cf7 upstream. When syncing the log, the final phase of a fsync operation, we need to either create a log root's item or update the existing item in the log tree of log roots, and that depends on the current value of the log root's l

[PATCH 5.1 19/85] scsi: zfcp: fix to prevent port_remove with pure auto scan LUNs (only sdevs)

2019-06-07 Thread Greg Kroah-Hartman
From: Steffen Maier commit ef4021fe5fd77ced0323cede27979d80a56211ca upstream. When the user tries to remove a zfcp port via sysfs, we only rejected it if there are zfcp unit children under the port. With purely automatically scanned LUNs there are no zfcp units but only SCSI devices. In such cas

[PATCH 5.1 20/85] tracing: Avoid memory leak in predicate_parse()

2019-06-07 Thread Greg Kroah-Hartman
From: Tomas Bortoli commit dfb4a6f2191a80c8b790117d0ff592fd712d3296 upstream. In case of errors, predicate_parse() goes to the out_free label to free memory and to return an error code. However, predicate_parse() does not free the predicates of the temporary prog_stack array, thence leaking the

[PATCH 5.1 18/85] scsi: zfcp: fix missing zfcp_port reference put on -EBUSY from port_remove

2019-06-07 Thread Greg Kroah-Hartman
From: Steffen Maier commit d27e5e07f9c49bf2a6a4ef254ce531c1b4fb5a38 upstream. With this early return due to zfcp_unit child(ren), we don't use the zfcp_port reference from the earlier zfcp_get_port_by_wwpn() anymore and need to put it. Signed-off-by: Steffen Maier Fixes: d99b601b6338 ("[SCSI]

[GIT PULL] Kbuild fixes for v5.2-rc4

2019-06-07 Thread Masahiro Yamada
Hi Linus, Please pull some Kbuild fixes. Thanks. The following changes since commit f2c7c76c5d0a443053e94adb9f0918fa2fb85c3a: Linux 5.2-rc3 (2019-06-02 13:55:33 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git tags/kb

[PATCH 5.1 14/85] media: usb: siano: Fix general protection fault in smsusb

2019-06-07 Thread Greg Kroah-Hartman
From: Alan Stern commit 31e0456de5be379b10fea0fa94a681057114a96e upstream. The syzkaller USB fuzzer found a general-protection-fault bug in the smsusb part of the Siano DVB driver. The fault occurs during probe because the driver assumes without checking that the device has both IN and OUT endp

Re: [PATCH 08/15] x86/alternatives: Teach text_poke_bp() to emulate instructions

2019-06-07 Thread Masami Hiramatsu
On Wed, 05 Jun 2019 15:08:01 +0200 Peter Zijlstra wrote: > In preparation for static_call support, teach text_poke_bp() to > emulate instructions, including CALL. > > The current text_poke_bp() takes a @handler argument which is used as > a jump target when the temporary INT3 is hit by a differe

[PATCH 4.19 35/73] drm/nouveau/i2c: Disable i2c bus access after ->fini()

2019-06-07 Thread Greg Kroah-Hartman
From: Lyude Paul commit 342406e4fbba9a174125fbfe6aeac3d64ef90f76 upstream. For a while, we've had the problem of i2c bus access not grabbing a runtime PM ref when it's being used in userspace by i2c-dev, resulting in nouveau spamming the kernel log with errors if anything attempts to access the

Re: [PATCH v3 4/8] arm64: Fix interrupt tracing in the presence of NMIs

2019-06-07 Thread Julien Thierry
On 07/06/2019 16:42, Marc Zyngier wrote: > On 06/06/2019 10:31, Julien Thierry wrote: >> In the presence of any form of instrumentation, nmi_enter() should be >> done before calling any traceable code and any instrumentation code. >> >> Currently, nmi_enter() is done in handle_domain_nmi(), whic

[PATCH 4.19 44/73] doc: Cope with the deprecation of AutoReporter

2019-06-07 Thread Greg Kroah-Hartman
From: Jonathan Corbet commit 2404dad1f67f8917e30fc22a85e0dbcc85b99955 upstream. AutoReporter is going away; recent versions of sphinx emit a warning like: Documentation/sphinx/kerneldoc.py:125: RemovedInSphinx20Warning: AutodocReporter is now deprecated. Use sphinx.util.docutils.s

[PATCH 4.19 41/73] kernel/signal.c: trace_signal_deliver when signal_group_exit

2019-06-07 Thread Greg Kroah-Hartman
From: Zhenliang Wei commit 98af37d624ed8c83f1953b1b6b2f6866011fc064 upstream. In the fixes commit, removing SIGKILL from each thread signal mask and executing "goto fatal" directly will skip the call to "trace_signal_deliver". At this point, the delivery tracking of the SIGKILL signal will be i

[PATCH 4.19 38/73] tty: serial: msm_serial: Fix XON/XOFF

2019-06-07 Thread Greg Kroah-Hartman
From: Jorge Ramirez-Ortiz commit 61c0e37950b88bad590056286c1d766b1f167f4e upstream. When the tty layer requests the uart to throttle, the current code executing in msm_serial will trigger "Bad mode in Error Handler" and generate an invalid stack frame in pstore before rebooting (that is if pstor

[PATCH 4.19 60/73] drm/rockchip: shutdown drm subsystem on shutdown

2019-06-07 Thread Greg Kroah-Hartman
From: Vicente Bergas commit b8f9d7f37b6af829c34c49d1a4f73ce6ed58e403 upstream. As explained by Robin Murphy: > the IOMMU shutdown disables paging, so if the VOP is still > scanning out then that will result in whatever IOVAs it was using now going > straight out onto the bus as physical addresse

[PATCH] rtc: jz4740: Make probe function __init_or_module

2019-06-07 Thread Paul Cercueil
This allows the probe function to be dropped after the kernel finished its initialization, in the case where the driver was not compiled as a module. Signed-off-by: Paul Cercueil --- drivers/rtc/rtc-jz4740.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-jz47

[PATCH 4.19 61/73] drm/lease: Make sure implicit planes are leased

2019-06-07 Thread Greg Kroah-Hartman
From: Daniel Vetter commit 204f640da6914844b3270b41b29c84f6e3b74083 upstream. If userspace doesn't enable universal planes, then we automatically add the primary and cursor planes. But for universal userspace there's no such check (and maybe we only want to give the lessee one plane, maybe not e

[PATCH 4.19 69/73] x86/kprobes: Set instruction page as executable

2019-06-07 Thread Greg Kroah-Hartman
[ Upstream commit 7298e24f904224fa79eb8fd7e0fbd78950ccf2db ] Set the page as executable after allocation. This patch is a preparatory patch for a following patch that makes module allocated pages non-executable. While at it, do some small cleanup of what appears to be unnecessary masking. Signe

[PATCH 4.19 39/73] tty: max310x: Fix external crystal register setup

2019-06-07 Thread Greg Kroah-Hartman
From: Joe Burmeister commit 5d24f455c182d5116dd5db8e1dc501115ecc9c2c upstream. The datasheet states: Bit 4: ClockEnSet the ClockEn bit high to enable an external clocking (crystal or clock generator at XIN). Set the ClockEn bit to 0 to disable clocking Bit 1: CrystalEnSet the CrystalEn bit

[PATCH 4.19 03/73] xhci: update bounce buffer with correct sg num

2019-06-07 Thread Greg Kroah-Hartman
From: Henry Lin commit 597c56e372dab2c7f79b8d700aad3a5deebf9d1b upstream. This change fixes a data corruption issue occurred on USB hard disk for the case that bounce buffer is used during transferring data. While updating data between sg list and bounce buffer, current implementation passes ma

[PATCH 4.19 05/73] xhci: Convert xhci_handshake() to use readl_poll_timeout_atomic()

2019-06-07 Thread Greg Kroah-Hartman
From: Andrey Smirnov commit f7fac17ca925faa03fc5eb854c081a24075f8bad upstream. Xhci_handshake() implements the algorithm already captured by readl_poll_timeout_atomic(). Convert the former to use the latter to avoid repetition. Turned out this patch also fixes a bug on the AMD Stoneyridge platf

[PATCH 4.19 52/73] cifs: fix memory leak of pneg_inbuf on -EOPNOTSUPP ioctl case

2019-06-07 Thread Greg Kroah-Hartman
From: Colin Ian King commit 210782038b54ec8e9059a3c12d6f6ae173efa3a9 upstream. Currently in the case where SMB2_ioctl returns the -EOPNOTSUPP error there is a memory leak of pneg_inbuf. Fix this by returning via the out_free_inbuf exit path that will perform the relevant kfree. Addresses-Coveri

[PATCH 4.19 53/73] CIFS: cifs_read_allocate_pages: dont iterate through whole page array on ENOMEM

2019-06-07 Thread Greg Kroah-Hartman
From: Roberto Bergantinos Corpas commit 31fad7d41e73731f05b8053d17078638cf850fa6 upstream. In cifs_read_allocate_pages, in case of ENOMEM, we go through whole rdata->pages array but we have failed the allocation before nr_pages, therefore we may end up calling put_page with NULL pointer, causin

[PATCH 4.19 37/73] i2c: synquacer: fix synquacer_i2c_doxfer() return value

2019-06-07 Thread Greg Kroah-Hartman
From: Masahisa Kojima commit ff9378904d9d7a3fcb8406604e089e535e357b1d upstream. master_xfer should return the number of messages successfully processed. Fixes: 0d676a6c4390 ("i2c: add support for Socionext SynQuacer I2C controller") Cc: # v4.19+ Signed-off-by: Okamoto Satoru Signed-off-by: Ma

[PATCH 4.19 32/73] ALSA: hda/realtek - Set default power save node to 0

2019-06-07 Thread Greg Kroah-Hartman
From: Kailang Yang commit 317d9313925cd8388304286c0d3c8dda7f060a2d upstream. I measured power consumption between power_save_node=1 and power_save_node=0. It's almost the same. Codec will enter to runtime suspend and suspend. That pin also will enter to D3. Don't need to enter to D3 by single pi

[PATCH 4.19 63/73] include/linux/module.h: copy __init/__exit attrs to init/cleanup_module

2019-06-07 Thread Greg Kroah-Hartman
From: Miguel Ojeda commit a6e60d84989fa0e91db7f236eda40453b0e44afa upstream. The upcoming GCC 9 release extends the -Wmissing-attributes warnings (enabled by -Wall) to C and aliases: it warns when particular function attributes are missing in the aliases but not in their target. In particular,

[PATCH 4.19 45/73] doc: Cope with Sphinx logging deprecations

2019-06-07 Thread Greg Kroah-Hartman
From: Jonathan Corbet commit 096ea522e84ea68f8e6c41e5e7294731a81e29bc upstream. Recent versions of sphinx will emit messages like: Documentation/sphinx/kerneldoc.py:103: RemovedInSphinx20Warning: app.warning() is now deprecated. Use sphinx.util.logging instead. Switch to sphinx.uti

[PATCH 4.19 36/73] i2c: mlxcpld: Fix wrong initialization order in probe

2019-06-07 Thread Greg Kroah-Hartman
From: Vadim Pasternak commit 13067ef73f337336e3149f5bb9f3fd05fe7f87a0 upstream. Fix wrong order in probing routine initialization - field `base_addr' is used before it's initialized. Move assignment of 'priv->base_addr` to the beginning, prior the call to mlxcpld_i2c_read_comm(). Wrong order cau

[PATCH 4.19 06/73] usb: xhci: avoid null pointer deref when bos field is NULL

2019-06-07 Thread Greg Kroah-Hartman
From: Carsten Schmid commit 7aa1bb2ffd84d6b9b5f546b079bb15cd0ab6e76e upstream. With defective USB sticks we see the following error happen: usb 1-3: new high-speed USB device number 6 using xhci_hcd usb 1-3: device descriptor read/64, error -71 usb 1-3: device descriptor read/64, error -71 usb 1

[PATCH 4.19 26/73] iio: adc: ti-ads8688: fix timestamp is not updated in buffer

2019-06-07 Thread Greg Kroah-Hartman
From: Sean Nyekjaer commit e6d12298310fa1dc11f1d747e05b168016057fdd upstream. When using the hrtimer iio trigger timestamp isn't updated. If we use iio_get_time_ns it is updated correctly. Fixes: 2a86487786b5c ("iio: adc: ti-ads8688: add trigger and buffer support") Signed-off-by: Sean Nyekjaer

[PATCH 4.19 28/73] s390/crypto: fix possible sleep during spinlock aquired

2019-06-07 Thread Greg Kroah-Hartman
From: Harald Freudenberger commit 1c2c7029c008922d4d48902cc386250502e73d51 upstream. This patch fixes a complain about possible sleep during spinlock aquired "BUG: sleeping function called from invalid context at include/crypto/algapi.h:426" for the ctr(aes) and ctr(des) s390 specific ciphers.

[PATCH 4.19 09/73] USB: Fix slab-out-of-bounds write in usb_get_bos_descriptor

2019-06-07 Thread Greg Kroah-Hartman
From: Alan Stern commit a03ff54460817c76105f81f3aa8ef655759ccc9a upstream. The syzkaller USB fuzzer found a slab-out-of-bounds write bug in the USB core, caused by a failure to check the actual size of a BOS descriptor. This patch adds a check to make sure the descriptor is at least as large as

[PATCH v2 4/6] pwm: jz4740: Drop dependency on MACH_INGENIC

2019-06-07 Thread Paul Cercueil
Depending on MACH_INGENIC prevent us from creating a generic kernel that works on more than one MIPS board. Instead, we just depend on MIPS being set. Signed-off-by: Paul Cercueil --- Notes: v2: Rebase on v5.2-rc3 drivers/pwm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) d

[PATCH 4.19 25/73] iio: dac: ds4422/ds4424 fix chip verification

2019-06-07 Thread Greg Kroah-Hartman
From: Ruslan Babayev commit 60f2208699ec08ff9fdf1f97639a661a92a18f1c upstream. The ds4424_get_value function takes channel number as it's 3rd argument and translates it internally into I2C address using DS4424_DAC_ADDR macro. The caller ds4424_verify_chip was passing an already translated I2C ad

[PATCH] spi: spi-gpio: Make probe function __init_or_module

2019-06-07 Thread Paul Cercueil
This allows the probe function to be dropped after the kernel finished its initialization, in the case where the driver was not compiled as a module. Signed-off-by: Paul Cercueil --- drivers/spi/spi-gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-gpio.c

[PATCH v2 2/6] pwm: jz4740: Remove unused devicetree compatible strings

2019-06-07 Thread Paul Cercueil
Right now none of the Ingenic-based boards probe this driver from devicetree. This driver defined three compatible strings for the exact same behaviour. Before these strings are used, we can remove two of them. Signed-off-by: Paul Cercueil --- Notes: v2: Rebase on v5.2-rc3 drivers/pwm/pwm-

[PATCH v2 0/6] PWM JZ4740 fixes and cleanups

2019-06-07 Thread Paul Cercueil
Hi Thierry, I rebased my patchset on top of v5.2-rc3 since it didn't apply anymore. Patches 1-4 are unmodified. The old patch 5 added a SPDX license notifier, but somebody else added it in -rc3 apparently, so I dropped it. In the meantime I added two more cleanups. Cheers -Paul

[PATCH v2 3/6] pwm: jz4740: Apply configuration atomically

2019-06-07 Thread Paul Cercueil
This is cleaner, more future-proof, and incidentally it also fixes the PWM resetting its config when stopped/started several times. Signed-off-by: Paul Cercueil --- Notes: v2: Rebase on v5.2-rc3 drivers/pwm/pwm-jz4740.c | 37 - 1 file changed, 12 inserti

[PATCH v2 6/6] pwm: jz4740: Use __init_or_module and __exit for .probe and .remove

2019-06-07 Thread Paul Cercueil
This allows the probe function to be dropped after the kernel finished its initialization, in the case where the driver was not compiled as a module. Signed-off-by: Paul Cercueil --- Notes: v2: New patch drivers/pwm/pwm-jz4740.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) di

[PATCH v2 5/6] pwm: jz4740: Force TCU2 channels to return to their init level

2019-06-07 Thread Paul Cercueil
When the PWM mode of TCU2 channels is disabled, their corresponding pin does not always return to its initial level. Force this by using a small trick: we set duty > period, which is an invalid configuration for the hardware, which then correctly resets the pin to the initial level. Signed-off-by:

[PATCH 4.19 23/73] Btrfs: fix fsync not persisting changed attributes of a directory

2019-06-07 Thread Greg Kroah-Hartman
From: Filipe Manana commit 60d9f50308e5df19bc18c2fefab0eba4a843900a upstream. While logging an inode we follow its ancestors and for each one we mark it as logged in the current transaction, even if we have not logged it. As a consequence if we change an attribute of an ancestor, such as the UID

[PATCH 4.19 11/73] USB: Add LPM quirk for Surface Dock GigE adapter

2019-06-07 Thread Greg Kroah-Hartman
From: Maximilian Luz commit ea261113385ac0a71c2838185f39e8452d54b152 upstream. Without USB_QUIRK_NO_LPM ethernet will not work and rtl8152 will complain with r8152 : Stop submitting intr, status -71 Adding the quirk resolves this. As the dock is externally powered, this should not have any

[PATCH 4.19 18/73] scsi: zfcp: fix missing zfcp_port reference put on -EBUSY from port_remove

2019-06-07 Thread Greg Kroah-Hartman
From: Steffen Maier commit d27e5e07f9c49bf2a6a4ef254ce531c1b4fb5a38 upstream. With this early return due to zfcp_unit child(ren), we don't use the zfcp_port reference from the earlier zfcp_get_port_by_wwpn() anymore and need to put it. Signed-off-by: Steffen Maier Fixes: d99b601b6338 ("[SCSI]

[PATCH 4.19 15/73] media: usb: siano: Fix false-positive "uninitialized variable" warning

2019-06-07 Thread Greg Kroah-Hartman
From: Alan Stern commit 45457c01171fd1488a7000d1751c06ed8560ee38 upstream. GCC complains about an apparently uninitialized variable recently added to smsusb_init_device(). It's a false positive, but to silence the warning this patch adds a trivial initialization. Signed-off-by: Alan Stern Rep

[PATCH] usb: musb: jz4740: Make probe function __init_or_module

2019-06-07 Thread Paul Cercueil
This allows the probe function to be dropped after the kernel finished its initialization, in the case where the driver was not compiled as a module. Signed-off-by: Paul Cercueil --- drivers/usb/musb/jz4740.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/mus

[PATCH 4.14 45/69] ALSA: hda/realtek - Set default power save node to 0

2019-06-07 Thread Greg Kroah-Hartman
From: Kailang Yang commit 317d9313925cd8388304286c0d3c8dda7f060a2d upstream. I measured power consumption between power_save_node=1 and power_save_node=0. It's almost the same. Codec will enter to runtime suspend and suspend. That pin also will enter to D3. Don't need to enter to D3 by single pi

[PATCH 4.14 48/69] tty: serial: msm_serial: Fix XON/XOFF

2019-06-07 Thread Greg Kroah-Hartman
From: Jorge Ramirez-Ortiz commit 61c0e37950b88bad590056286c1d766b1f167f4e upstream. When the tty layer requests the uart to throttle, the current code executing in msm_serial will trigger "Bad mode in Error Handler" and generate an invalid stack frame in pstore before rebooting (that is if pstor

Re: [PATCH V4 04/12] misc: xilinx_sdfec: Add open, close and ioctl

2019-06-07 Thread Greg KH
On Fri, Jun 07, 2019 at 10:58:34AM +, Dragan Cvetic wrote: > > On Sat, May 25, 2019 at 12:37:17PM +0100, Dragan Cvetic wrote: > > > +static int xsdfec_dev_open(struct inode *iptr, struct file *fptr) > > > +{ > > > + return 0; > > > +} > > > + > > > +static int xsdfec_dev_release(struct inode *i

[PATCH] mtd: spi-nor: add support for sst26wf016, sst26wf032 memory

2019-06-07 Thread Eugeniy Paltsev
This commit adds support for the SST sst26wf016 and sst26wf032 flash memory IC. Signed-off-by: Eugeniy Paltsev --- drivers/mtd/spi-nor/spi-nor.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c index 73172d7f512b..224275461a2c 10

[PATCH 4.14 68/69] binder: fix race between munmap() and direct reclaim

2019-06-07 Thread Greg Kroah-Hartman
From: Todd Kjos commit 5cec2d2e5839f9c0fec319c523a911e0a7fd299f upstream. An munmap() on a binder device causes binder_vma_close() to be called which clears the alloc->vma pointer. If direct reclaim causes binder_alloc_free_page() to be called, there is a race where alloc->vma is read into a lo

[PATCH 4.14 63/69] drm/rockchip: shutdown drm subsystem on shutdown

2019-06-07 Thread Greg Kroah-Hartman
From: Vicente Bergas commit b8f9d7f37b6af829c34c49d1a4f73ce6ed58e403 upstream. As explained by Robin Murphy: > the IOMMU shutdown disables paging, so if the VOP is still > scanning out then that will result in whatever IOVAs it was using now going > straight out onto the bus as physical addresse

[PATCH 4.19 01/73] sparc64: Fix regression in non-hypervisor TLB flush xcall

2019-06-07 Thread Greg Kroah-Hartman
From: James Clarke commit d3c976c14ad8af421134c428b0a89ff8dd3bd8f8 upstream. Previously, %g2 would end up with the value PAGE_SIZE, but after the commit mentioned below it ends up with the value 1 due to being reused for a different purpose. We need it to be PAGE_SIZE as we use it to step throug

[PATCH 4.14 64/69] Compiler Attributes: add support for __copy (gcc >= 9)

2019-06-07 Thread Greg Kroah-Hartman
From: Miguel Ojeda commit c0d9782f5b6d7157635ae2fd782a4b27d55a6013 upstream. >From the GCC manual: copy copy(function) The copy attribute applies the set of attributes with which function has been declared to the declaration of the function to which the attribute is applied. Th

[PATCH 4.14 65/69] include/linux/module.h: copy __init/__exit attrs to init/cleanup_module

2019-06-07 Thread Greg Kroah-Hartman
From: Miguel Ojeda commit a6e60d84989fa0e91db7f236eda40453b0e44afa upstream. The upcoming GCC 9 release extends the -Wmissing-attributes warnings (enabled by -Wall) to C and aliases: it warns when particular function attributes are missing in the aliases but not in their target. In particular,

[PATCH 4.14 61/69] gcc-plugins: Fix build failures under Darwin host

2019-06-07 Thread Greg Kroah-Hartman
From: Kees Cook commit 7210e060155b9cf557fb13128353c3e494fa5ed3 upstream. The gcc-common.h file did not take into account certain macros that might have already been defined in the build environment. This updates the header to avoid redefining the macros, as seen on a Darwin host using gcc 4.9.2

[PATCH 4.14 09/69] net/mlx5: Allocate root ns memory using kzalloc to match kfree

2019-06-07 Thread Greg Kroah-Hartman
From: Parav Pandit [ Upstream commit 25fa506b70cadb580c1e9cbd836d6417276d4bcd ] root ns is yet another fs core node which is freed using kfree() by tree_put_node(). Rest of the other fs core objects are also allocated using kmalloc variants. However, root ns memory is allocated using kvzalloc()

[PATCH 4.14 12/69] ipv4/igmp: fix build error if !CONFIG_IP_MULTICAST

2019-06-07 Thread Greg Kroah-Hartman
From: Eric Dumazet [ Upstream commit 903869bd10e6719b9df6718e785be7ec725df59f ] ip_sf_list_clear_all() needs to be defined even if !CONFIG_IP_MULTICAST Fixes: 3580d04aa674 ("ipv4/igmp: fix another memory leak in igmpv3_del_delrec()") Signed-off-by: Eric Dumazet Reported-by: kbuild test robot

[PATCH 4.14 51/69] kernel/signal.c: trace_signal_deliver when signal_group_exit

2019-06-07 Thread Greg Kroah-Hartman
From: Zhenliang Wei commit 98af37d624ed8c83f1953b1b6b2f6866011fc064 upstream. In the fixes commit, removing SIGKILL from each thread signal mask and executing "goto fatal" directly will skip the call to "trace_signal_deliver". At this point, the delivery tracking of the SIGKILL signal will be i

[PATCH 4.14 55/69] ima: show rules with IMA_INMASK correctly

2019-06-07 Thread Greg Kroah-Hartman
From: Roberto Sassu commit 8cdc23a3d9ec0944000ad43bad588e36afdc38cd upstream. Show the '^' character when a policy rule has flag IMA_INMASK. Fixes: 80eae209d63ac ("IMA: allow reading back the current IMA policy") Signed-off-by: Roberto Sassu Cc: sta...@vger.kernel.org Signed-off-by: Mimi Zohar

[PATCH 4.14 56/69] serial: sh-sci: disable DMA for uart_console

2019-06-07 Thread Greg Kroah-Hartman
From: George G. Davis commit 099506cbbc79c0bd52b19cb6b930f256dabc3950 upstream. As noted in commit 84b40e3b57ee ("serial: 8250: omap: Disable DMA for console UART"), UART console lines use low-level PIO only access functions which will conflict with use of the line when DMA is enabled, e.g. when

[PATCH 4.14 58/69] staging: wlan-ng: fix adapter initialization failure

2019-06-07 Thread Greg Kroah-Hartman
From: Tim Collier commit a67fedd788182764dc8ed59037c604b7e60349f1 upstream. Commit e895f00a8496 ("Staging: wlan-ng: hfa384x_usb.c Fixed too long code line warnings.") moved the retrieval of the transfer buffer from the URB from the top of function hfa384x_usbin_callback to a point after repostin

Re: [PATCH] Documentation: coresight: Update the generic device names

2019-06-07 Thread Mathieu Poirier
On Fri, 7 Jun 2019 at 02:40, Suzuki K Poulose wrote: > > Hi Leo, > > A Coresight PMU works the same way as any other PMU, i.e the name of > the PMU is > listed along with configuration options within forward slashes '/'. > Since a > Coresight system will typica

Re: [PATCH] spi: spi-gpio: Make probe function __init_or_module

2019-06-07 Thread Mark Brown
On Fri, Jun 07, 2019 at 05:56:31PM +0200, Paul Cercueil wrote: > This allows the probe function to be dropped after the kernel finished > its initialization, in the case where the driver was not compiled as a > module. Hopefully not since we might probe later on if something registers a new device

Re: [PATCH 00/18] ARM/ARM64: Support hierarchical CPU arrangement for PSCI

2019-06-07 Thread Sudeep Holla
On Tue, May 14, 2019 at 10:58:04AM +0200, Ulf Hansson wrote: > On Tue, 14 May 2019 at 10:08, Rafael J. Wysocki wrote: > > > > On Mon, May 13, 2019 at 9:23 PM Ulf Hansson wrote: > > > > > > This series enables support for hierarchical CPU arrangement, managed by > > > PSCI > > > for ARM/ARM64. It

[PATCH 4.14 11/69] ipv4/igmp: fix another memory leak in igmpv3_del_delrec()

2019-06-07 Thread Greg Kroah-Hartman
From: Eric Dumazet [ Upstream commit 3580d04aa674383c42de7b635d28e52a1e5bc72c ] syzbot reported memory leaks [1] that I have back tracked to a missing cleanup from igmpv3_del_delrec() when (im->sfmode != MCAST_INCLUDE) Add ip_sf_list_clear_all() and kfree_pmc() helpers to explicitely handle the

[PATCH 4.14 07/69] usbnet: fix kernel crash after disconnect

2019-06-07 Thread Greg Kroah-Hartman
From: Kloetzke Jan [ Upstream commit ad70411a978d1e6e97b1e341a7bde9a79af0c93d ] When disconnecting cdc_ncm the kernel sporadically crashes shortly after the disconnect: [ 57.868812] Unable to handle kernel NULL pointer dereference at virtual address ... [ 58.006653] PC is at

[PATCH 4.14 06/69] net: stmmac: fix reset gpio free missing

2019-06-07 Thread Greg Kroah-Hartman
From: Jisheng Zhang [ Upstream commit 49ce881c0d4c4a7a35358d9dccd5f26d0e56fc61 ] Commit 984203ceff27 ("net: stmmac: mdio: remove reset gpio free") removed the reset gpio free, when the driver is unbinded or rmmod, we miss the gpio free. This patch uses managed API to request the reset gpio, so

[PATCH 4.14 33/69] USB: rio500: fix memory leak in close after disconnect

2019-06-07 Thread Greg Kroah-Hartman
From: Oliver Neukum commit e0feb73428b69322dd5caae90b0207de369b5575 upstream. If a disconnected device is closed, rio_close() must free the buffers. Signed-off-by: Oliver Neukum Cc: stable Signed-off-by: Greg Kroah-Hartman --- drivers/usb/misc/rio500.c | 17 +++-- 1 file chan

[PATCH 4.14 05/69] net-gro: fix use-after-free read in napi_gro_frags()

2019-06-07 Thread Greg Kroah-Hartman
From: Eric Dumazet [ Upstream commit a4270d6795b0580287453ea55974d948393e66ef ] If a network driver provides to napi_gro_frags() an skb with a page fragment of exactly 14 bytes, the call to gro_pull_from_frag0() will 'consume' the fragment by calling skb_frag_unref(skb, 0), and the page might be

[PATCH 4.14 39/69] Btrfs: fix wrong ctime and mtime of a directory after log replay

2019-06-07 Thread Greg Kroah-Hartman
From: Filipe Manana commit 5338e43abbab13791144d37fd8846847062351c6 upstream. When replaying a log that contains a new file or directory name that needs to be added to its parent directory, we end up updating the mtime and the ctime of the parent directory to the current time after we have set t

[PATCH 4.14 19/69] Revert "tipc: fix modprobe tipc failed after switch order of device registration"

2019-06-07 Thread Greg Kroah-Hartman
From: David S. Miller commit 5593530e56943182ebb6d81eca8a3be6db6dbba4 upstream. This reverts commit 532b0f7ece4cb2ffd24dc723ddf55242d1188e5e. More revisions coming up. Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- net/tipc/core.c | 14 +++--- 1 file changed

[PATCH 4.14 16/69] net: phy: marvell10g: report if the PHY fails to boot firmware

2019-06-07 Thread Greg Kroah-Hartman
From: Russell King [ Upstream commit 3d3ced2ec5d71b99d72ae6910fbdf890bc2eccf0 ] Some boards do not have the PHY firmware programmed in the 3310's flash, which leads to the PHY not working as expected. Warn the user when the PHY fails to boot the firmware and refuse to initialise. Fixes: 20b2af

Re: [PATCH] spi: spi-gpio: Make probe function __init_or_module

2019-06-07 Thread Paul Cercueil
Le ven. 7 juin 2019 à 17:59, Mark Brown a écrit : On Fri, Jun 07, 2019 at 05:56:31PM +0200, Paul Cercueil wrote: This allows the probe function to be dropped after the kernel finished its initialization, in the case where the driver was not compiled as a module. Hopefully not since we

[PATCH 1/2] mtd/rawnand: ingenic-ecc: Make probe function __init_or_module

2019-06-07 Thread Paul Cercueil
This allows the probe function to be dropped after the kernel finished its initialization, in the case where the driver was not compiled as a module. Signed-off-by: Paul Cercueil --- drivers/mtd/nand/raw/ingenic/ingenic_ecc.c | 2 +- drivers/mtd/nand/raw/ingenic/ingenic_ecc.h | 3 ++- drivers/mt

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