[PATCH v3 8/8] ACPI: PM: s2idle: Execute LPS0 _DSM functions with suspended devices

2019-08-02 Thread Rafael J. Wysocki
From: Rafael J. Wysocki According to Section 3.5 of the "Intel Low Power S0 Idle" document [1], Function 5 of the LPS0 _DSM is expected to be invoked when the system configuration matches the criteria for entering the target low-power state of the platform. In particular, this means that all

Re: [PATCH 1/4] mailbox: arm_mhuv2: add device tree binding documentation

2019-08-02 Thread Morten Borup Petersen
On 7/31/19 9:31 AM, Jassi Brar wrote: > On Sun, Jul 28, 2019 at 4:28 PM Morten Borup Petersen > wrote: >> >> >> >> On 7/25/19 7:49 AM, Jassi Brar wrote: >>> On Sun, Jul 21, 2019 at 4:58 PM Jassi Brar wrote: On Wed, Jul 17, 2019 at 2:26 PM Tushar Khandelwal wrote: >

Re: [PATCH 09/20] ext4: Initialize timestamps limits

2019-08-02 Thread Arnd Bergmann
On Fri, Aug 2, 2019 at 12:43 AM Theodore Y. Ts'o wrote: > > On Thu, Aug 01, 2019 at 12:18:28PM -0700, Deepa Dinamani wrote: > > > Say you have a filesystem with s_inode_size > 128 where not all of the > > > ondisk inodes have been upgraded to i_extra_isize > 0 and therefore > > > don't support

Re: Linux 4.9.180 build fails with gcc 9 and 'cleanup_module' specifies less restrictive attribute than its target …

2019-08-02 Thread Miguel Ojeda
On Fri, Aug 2, 2019 at 12:33 PM Greg KH wrote: > > On Fri, Aug 02, 2019 at 12:19:33PM +0200, Miguel Ojeda wrote: > > On Fri, Aug 2, 2019 at 10:17 AM Rolf Eike Beer wrote: > > > > > > Am Samstag, 8. Juni 2019, 14:00:34 CEST schrieb Miguel Ojeda: > > > > On Thu, Jun 6, 2019 at 8:59 PM Greg KH

Re: Linux 4.9.180 build fails with gcc 9 and 'cleanup_module' specifies less restrictive attribute than its target …

2019-08-02 Thread Greg KH
On Fri, Aug 02, 2019 at 12:19:33PM +0200, Miguel Ojeda wrote: > On Fri, Aug 2, 2019 at 10:17 AM Rolf Eike Beer wrote: > > > > Am Samstag, 8. Juni 2019, 14:00:34 CEST schrieb Miguel Ojeda: > > > On Thu, Jun 6, 2019 at 8:59 PM Greg KH wrote: > > > > "manually fixing it up" means "hacked it to

[PATCH v2 5/6] ARM: dts: mmp2: specify reg-shift for the UARTs

2019-08-02 Thread Lubomir Rintel
This makes the 8250_of driver happy. There are two more drivers in the tree that bind to mrvl,mmp-uart compatibles: pxa and 8250_pxa and neither of them requires the reg-shift property, assuming it's always 2. Signed-off-by: Lubomir Rintel --- Changes since v1: - Updated the subject to fit the

[PATCH v2 0/6] ARM: dts: mmp2: devicetree updates

2019-08-02 Thread Lubomir Rintel
Hi, Here's a couple of updates for the MMP2 SoC devicetree files. The only change from the last submission is the addition of the OLPC XO 1.75 dts file. Apart from that one, the patches are independent of each other, can be applied in any order. Hopefully I'm sending the patch set in the

[PATCH v2 3/6] ARM: dts: mmp2: rename the USB PHY node

2019-08-02 Thread Lubomir Rintel
This device is not an OTG phy, it's a regular USB HS phy. Follow the generic node name recommendation, and rename it to "usb-phy". Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp2.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/mmp2.dtsi

[PATCH v2 1/6] ARM: dts: mmp2: trivial whitespace fix

2019-08-02 Thread Lubomir Rintel
A missing space before a curly brace. Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp2.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/mmp2.dtsi b/arch/arm/boot/dts/mmp2.dtsi index b6f40743e07b0..50b6c38b39cc3 100644 ---

[PATCH v2 2/6] ARM: dts: mmp2: fix the SPI nodes

2019-08-02 Thread Lubomir Rintel
The SPI bus has a single address cell and not size cells. Also, dtc thinks the SPI nodes are preferrably called "spi" and it is right to think so. Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp2.dtsi | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git

[PATCH v2 4/6] ARM: dts: mmp2: add camera interfaces

2019-08-02 Thread Lubomir Rintel
Supported by the mmp-camera driver. Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp2.dtsi | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/boot/dts/mmp2.dtsi b/arch/arm/boot/dts/mmp2.dtsi index 21432cb9143f7..68b5470773232 100644 ---

[PATCH v2 6/6] ARM: dts: mmp2: add OLPC XO 1.75 machine

2019-08-02 Thread Lubomir Rintel
This is a fairly complete description of an OLPC XO 1.75 laptop. What's missing for now is the GPU, LCD controller, DCON, the panel and audio. The machine is booted with OpenFirmware and thus has a devicetree. However, older versions are unable to create a valid FDT and don't follow the Linux

Re: [PATCH v2 1/2] khugepaged: enable collapse pmd for pte-mapped THP

2019-08-02 Thread Oleg Nesterov
On 08/01, Song Liu wrote: > > > > On Aug 1, 2019, at 7:50 AM, Oleg Nesterov wrote: > > > > On 07/31, Song Liu wrote: > >> > >> +static int khugepaged_add_pte_mapped_thp(struct mm_struct *mm, > >> + unsigned long addr) > >> +{ > >> + struct mm_slot *mm_slot; > >>

[PATCH] dpaa_eth: Use refcount_t for refcount

2019-08-02 Thread Chuhong Yuan
refcount_t is better for reference counters since its implementation can prevent overflows. So convert atomic_t ref counters to refcount_t. Signed-off-by: Chuhong Yuan --- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 6 +++--- drivers/net/ethernet/freescale/dpaa/dpaa_eth.h | 2 +- 2 files

Re: UDF filesystem image with Write-Once UDF Access Type

2019-08-02 Thread Jan Kara
On Thu 01-08-19 10:57:55, Pali Rohár wrote: > On Thursday 01 August 2019 10:38:00 Jan Kara wrote: > > Hum, looks like a problem with mkudffs. Relevant debug messages look like: > > > > UDF-fs: fs/udf/super.c:671:udf_check_vsd: Starting at sector 16 (2048 byte > > sectors) > > UDF-fs:

Re: [BUILD REGRESSION] building single .ko not working in 5.3-rc1

2019-08-02 Thread Masahiro Yamada
On Fri, Aug 2, 2019 at 6:26 PM Arend Van Spriel wrote: > > In previous kernel versions I could do: > > make M=net/wireless cfg80211.ko > > However, in 5.3-rc1 I now get: > > $ make M=net/wireless cfg80211.ko > make[1]: *** No rule to make target `cfg80211.ko'. Stop. > make: *** [sub-make] Error

Re: [PATCH 0/5] Fix FIFO-99 abuse

2019-08-02 Thread Qais Yousef
On 08/02/19 11:32, Peter Zijlstra wrote: > On Thu, Aug 01, 2019 at 02:17:07PM +0100, Qais Yousef wrote: > > On 08/01/19 13:13, Peter Zijlstra wrote: > > > I noticed a bunch of kthreads defaulted to FIFO-99, fix them. > > > > > > The generic default is FIFO-50, the admin will have to configure the

[PATCH] ACPI: PM: Print debug messages on device power state changes

2019-08-02 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Add an acpi_handle_debug() statement to acpi_device_set_power() to allow ACPI device power state changes to be tracked. Signed-off-by: Rafael J. Wysocki --- drivers/acpi/device_pm.c |4 1 file changed, 4 insertions(+) Index: linux-pm/drivers/acpi/device_pm.c

[PATCH] kbuild: revive single target %.ko

2019-08-02 Thread Masahiro Yamada
I removed the single target %.ko in commit ff9b45c55b26 ("kbuild: modpost: read modules.order instead of $(MODVERDIR)/*.mod") because the modpost stage does not work reliably. For instance, the module dependency, modversion, etc. do not work if we lack symbol information from the other modules.

Re: Reminder: 1 open syzbot bug in rtc subsystem

2019-08-02 Thread Pavel Machek
On Tue 2019-07-30 19:27:07, Eric Biggers wrote: > On Sun, Jul 28, 2019 at 03:23:33PM +0200, Pavel Machek wrote: > > On Tue 2019-07-23 19:50:08, Eric Biggers wrote: > > > [This email was generated by a script. Let me know if you have any > > > suggestions > > > to make it better, or if you want

[PATCH][net-next] net/mlx5: remove self-assignment on esw->dev

2019-08-02 Thread Colin King
From: Colin Ian King There is a self assignment of esw->dev to itself, clean this up by removing it. Addresses-Coverity: ("Self assignment") Fixes: 6cedde451399 ("net/mlx5: E-Switch, Verify support QoS element type") Signed-off-by: Colin Ian King ---

Re: [RFC PATCH 2/3] mm, compaction: use MIN_COMPACT_COSTLY_PRIORITY everywhere for costly orders

2019-08-02 Thread Vlastimil Babka
On 8/1/19 10:33 PM, Mike Kravetz wrote: > On 8/1/19 6:01 AM, Vlastimil Babka wrote: >> Could you try testing the patch below instead? It should hopefully >> eliminate the stalls. If it makes hugepage allocation give up too early, >> we'll know we have to involve __GFP_RETRY_MAYFAIL in allowing the

Re: [PATCH v19 00/15] arm64: untag user pointers passed to the kernel

2019-08-02 Thread Catalin Marinas
On Thu, Aug 01, 2019 at 08:36:47AM -0700, Dave Hansen wrote: > On 8/1/19 5:48 AM, Andrey Konovalov wrote: > > On Thu, Aug 1, 2019 at 2:11 PM Kevin Brodsky wrote: > >> On 31/07/2019 17:50, Dave Hansen wrote: > >>> On 7/23/19 10:58 AM, Andrey Konovalov wrote: > The mmap and mremap (only

Re: Linux 4.9.180 build fails with gcc 9 and 'cleanup_module' specifies less restrictive attribute than its target …

2019-08-02 Thread Miguel Ojeda
On Fri, Aug 2, 2019 at 10:17 AM Rolf Eike Beer wrote: > > Am Samstag, 8. Juni 2019, 14:00:34 CEST schrieb Miguel Ojeda: > > On Thu, Jun 6, 2019 at 8:59 PM Greg KH wrote: > > > "manually fixing it up" means "hacked it to pieces" to me, I have no > > > idea what the end result really was :) > > >

man-pages-5.02 is released

2019-08-02 Thread Michael Kerrisk (man-pages)
Gidday, The Linux man-pages maintainer proudly announces: man-pages-5.02 - man pages for Linux This release resulted from patches, bug reports, reviews, and comments from 28 people, with around 120 commits making changes to over 50 pages. Tarball download:

[PATCH 3/6] lib/refcount: Remove unused refcount_*_checked() variants

2019-08-02 Thread Will Deacon
The full-fat refcount implementation is exposed via a set of functions suffixed with "_checked()", the idea being that code can choose to use the more expensive, yet more secure implementation on a case-by-case basis. In reality, this hasn't happened, so with a grand total of zero users, let's

[PATCH 5/6] lib/refcount: Improve performance of generic REFCOUNT_FULL code

2019-08-02 Thread Will Deacon
Rewrite the generic REFCOUNT_FULL implementation so that the saturation point is moved to INT_MIN / 2. This allows us to defer the sanity checks until after the atomic operation, which removes many uses of cmpxchg() in favour of atomic_fetch_{add,sub}(). Cc: Kees Cook Cc: Ingo Molnar Cc: Elena

[PATCH 4/6] lib/refcount: Move bulk of REFCOUNT_FULL implementation into header

2019-08-02 Thread Will Deacon
In an effort to improve performance of the REFCOUNT_FULL implementation, move the bulk of its functions into linux/refcount.h. This allows them to be inlined in the same way as if they had been provided via CONFIG_ARCH_HAS_REFCOUNT. Cc: Kees Cook Cc: Ingo Molnar Cc: Elena Reshetova Cc: Peter

[PATCH 6/6] lib/refcount: Consolidate REFCOUNT_{MAX,SATURATED} definitions

2019-08-02 Thread Will Deacon
The definitions of REFCOUNT_MAX and REFCOUNT_SATURATED are the same, regardless of CONFIG_REFCOUNT_FULL, so consolidate them into a single pair of definitions. Cc: Kees Cook Cc: Ingo Molnar Cc: Elena Reshetova Cc: Peter Zijlstra Cc: Ard Biesheuvel Signed-off-by: Will Deacon ---

[PATCH 2/6] lib/refcount: Ensure integer operands are treated as signed

2019-08-02 Thread Will Deacon
In preparation for changing the saturation point of REFCOUNT_FULL to INT_MIN / 2, change the type of integer operands passed into the API from 'unsigned int' to 'int' so that we can avoid casting during comparisons when we don't want to fall foul of C integral conversion rules for signed and

[PATCH 0/6] Rework REFCOUNT_FULL using atomic_fetch_* operations

2019-08-02 Thread Will Deacon
Hi all, This patch series reworks the generic REFCOUNT_FULL implementation using atomic_fetch_* operations so that the performance impact of the cmpxchg() loops is mitigated for common refcount operations. The algorithm was heavily inspired by Ard's assembly implementation for arm64:

[PATCH 1/6] lib/refcount: Define constants for saturation and max refcount values

2019-08-02 Thread Will Deacon
The REFCOUNT_FULL implementation uses a different saturation point than the x86 implementation, which means that the shared refcount code in lib/refcount.c (e.g. refcount_dec_not_one()) needs to be aware of the difference. Rather than duplicate the definitions from the lkdtm driver, instead move

[PATCH 4.4 005/158] ath9k: Check for errors when reading SREV register

2019-08-02 Thread Greg Kroah-Hartman
[ Upstream commit 2f90c7e5d09437a4d8d5546feaae9f1cf48cfbe1 ] Right now, if an error is encountered during the SREV register read (i.e. an EIO in ath9k_regread()), that error code gets passed all the way to __ath9k_hw_init(), where it is visible during the "Chip rev not supported" message.

[PATCH 4.4 021/158] media: wl128x: Fix some error handling in fm_v4l2_init_video_device()

2019-08-02 Thread Greg Kroah-Hartman
[ Upstream commit 69fbb3f47327d959830c94bf31893972b8c8f700 ] X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected The fm_v4l2_init_video_device() forget to unregister v4l2/video device in the error path, it could lead to UAF issue, eg, BUG: KASAN: use-after-free in atomic64_read

[PATCH 4.4 015/158] af_key: fix leaks in key_pol_get_resp and dump_sp.

2019-08-02 Thread Greg Kroah-Hartman
[ Upstream commit 7c80eb1c7e2b8420477fbc998971d62a648035d9 ] In both functions, if pfkey_xfrm_policy2msg failed we leaked the newly allocated sk_buff. Free it on error. Fixes: 55569ce256ce ("Fix conversion between IPSEC_MODE_xxx and XFRM_MODE_xxx.") Reported-by:

[PATCH 4.4 003/158] dmaengine: imx-sdma: fix use-after-free on probe error path

2019-08-02 Thread Greg Kroah-Hartman
[ Upstream commit 2b8066c3deb9140fdf258417a51479b2aeaa7622 ] If probe() fails anywhere beyond the point where sdma_get_firmware() is called, then a kernel oops may occur. Problematic sequence of events: 1. probe() calls sdma_get_firmware(), which schedules the firmware callback to run when

[PATCH 4.4 017/158] media: staging: media: davinci_vpfe: - Fix for memory leak if decoder initialization fails.

2019-08-02 Thread Greg Kroah-Hartman
[ Upstream commit 6995a659101bd4effa41cebb067f9dc18d77520d ] Fix to avoid possible memory leak if the decoder initialization got failed.Free the allocated memory for file handle object before return in case decoder initialization fails. Signed-off-by: Shailendra Verma Signed-off-by: Mauro

[PATCH 4.4 011/158] media: marvell-ccic: fix DMA s/g desc number calculation

2019-08-02 Thread Greg Kroah-Hartman
[ Upstream commit 0c7aa32966dab0b8a7424e1b34c7f206817953ec ] The commit d790b7eda953 ("[media] vb2-dma-sg: move dma_(un)map_sg here") left dma_desc_nent unset. It previously contained the number of DMA descriptors as returned from dma_map_sg(). We can now (since the commit referred to above)

[PATCH 4.4 024/158] net: axienet: Fix race condition causing TX hang

2019-08-02 Thread Greg Kroah-Hartman
[ Upstream commit 7de44285c1f69ccfbe8be1d6a16fcd956681fee6 ] It is possible that the interrupt handler fires and frees up space in the TX ring in between checking for sufficient TX ring space and stopping the TX queue in axienet_start_xmit. If this happens, the queue wake from the interrupt

[PATCH 4.4 009/158] media: dvb: usb: fix use after free in dvb_usb_device_exit

2019-08-02 Thread Greg Kroah-Hartman
[ Upstream commit 6cf97230cd5f36b7665099083272595c55d72be7 ] dvb_usb_device_exit() frees and uses the device name in that order. Fix by storing the name in a buffer before freeing it. Signed-off-by: Oliver Neukum Reported-by: syzbot+26ec41e9f788b3eba...@syzkaller.appspotmail.com Signed-off-by:

[PATCH 4.4 016/158] xfrm: Fix xfrm sel prefix length validation

2019-08-02 Thread Greg Kroah-Hartman
[ Upstream commit b38ff4075a80b4da5cb2202d7965332ca0efb213 ] Family of src/dst can be different from family of selector src/dst. Use xfrm selector family to validate address prefix length, while verifying new sa from userspace. Validated patch with this command: ip xfrm state add src 1.1.6.1 dst

[PATCH 4.4 026/158] perf test 6: Fix missing kvm module load for s390

2019-08-02 Thread Greg Kroah-Hartman
[ Upstream commit 53fe307dfd309e425b171f6272d64296a54f4dff ] Command # perf test -Fv 6 fails with error running test 100 'kvm-s390:kvm_s390_create_vm' failed to parse event 'kvm-s390:kvm_s390_create_vm', err -1, str 'unknown tracepoint' event syntax error:

[PATCH 4.4 018/158] net: phy: Check against net_device being NULL

2019-08-02 Thread Greg Kroah-Hartman
[ Upstream commit 82c76aca81187b3d28a6fb3062f6916450ce955e ] In general, we don't want MAC drivers calling phy_attach_direct with the net_device being NULL. Add checks against this in all the functions calling it: phy_attach() and phy_connect_direct(). Signed-off-by: Ioana Ciornei Suggested-by:

[PATCH 4.4 041/158] media: coda: increment sequence offset for the last returned frame

2019-08-02 Thread Greg Kroah-Hartman
[ Upstream commit b3b7d96817cdb8b6fc353867705275dce8f41ccc ] If no more frames are decoded in bitstream end mode, and a previously decoded frame has been returned, the firmware still increments the frame number. To avoid a sequence number mismatch after decoder restart, increment the

[PATCH 4.4 025/158] s390/qdio: handle PENDING state for QEBSM devices

2019-08-02 Thread Greg Kroah-Hartman
[ Upstream commit 04310324c6f482921c071444833e70fe861b73d9 ] When a CQ-enabled device uses QEBSM for SBAL state inspection, get_buf_states() can return the PENDING state for an Output Queue. get_outbound_buffer_frontier() isn't prepared for this, and any PENDING buffer will permanently stall all

[PATCH 4.4 027/158] gpio: omap: fix lack of irqstatus_raw0 for OMAP4

2019-08-02 Thread Greg Kroah-Hartman
[ Upstream commit 64ea3e9094a1f13b96c33244a3fb3a0f45690bd2 ] Commit 384ebe1c2849 ("gpio/omap: Add DT support to GPIO driver") added the register definition tables to the gpio-omap driver. Subsequently to that commit, commit 4e962e8998cc ("gpio/omap: remove cpu_is_omap() checks from

[PATCH 4.4 061/158] NFSv4: Handle the special Linux file open access mode

2019-08-02 Thread Greg Kroah-Hartman
From: Trond Myklebust commit 44942b4e457beda00981f616402a1a791e8c616e upstream. According to the open() manpage, Linux reserves the access mode 3 to mean "check for read and write permission on the file and return a file descriptor that can't be used for reading or writing." Currently, the

[PATCH 4.4 030/158] bpf: silence warning messages in core

2019-08-02 Thread Greg Kroah-Hartman
[ Upstream commit aee450cbe482a8c2f6fa5b05b178ef8b8ff107ca ] Compiling kernel/bpf/core.c with W=1 causes a flood of warnings: kernel/bpf/core.c:1198:65: warning: initialized field overwritten [-Woverride-init] 1198 | #define BPF_INSN_3_TBL(x, y, z) [BPF_##x | BPF_##y | BPF_##z] = true |

[PATCH 4.4 045/158] ath10k: fix PCIE device wake up failed

2019-08-02 Thread Greg Kroah-Hartman
[ Upstream commit 011d4111c8c602ea829fa4917af1818eb0500a90 ] Observed PCIE device wake up failed after ~120 iterations of soft-reboot test. The error message is "ath10k_pci :01:00.0: failed to wake up device : -110" The call trace as below: ath10k_pci_probe -> ath10k_pci_force_wake ->

[PATCH 4.4 050/158] bcache: check c->gc_thread by IS_ERR_OR_NULL in cache_set_flush()

2019-08-02 Thread Greg Kroah-Hartman
[ Upstream commit b387e9b58679c60f5b1e4313939bd4878204fc37 ] When system memory is in heavy pressure, bch_gc_thread_start() from run_cache_set() may fail due to out of memory. In such condition, c->gc_thread is assigned to -ENOMEM, not NULL pointer. Then in following failure code path

[PATCH 4.4 033/158] perf evsel: Make perf_evsel__name() accept a NULL argument

2019-08-02 Thread Greg Kroah-Hartman
[ Upstream commit fdbdd7e8580eac9bdafa532746c865644d125e34 ] In which case it simply returns "unknown", like when it can't figure out the evsel->name value. This makes this code more robust and fixes a problem in 'perf trace' where a NULL evsel was being passed to a routine that only used the

[PATCH 4.4 059/158] regulator: s2mps11: Fix buck7 and buck8 wrong voltages

2019-08-02 Thread Greg Kroah-Hartman
From: Krzysztof Kozlowski commit 16da0eb5ab6ef2dd1d33431199126e63db9997cc upstream. On S2MPS11 device, the buck7 and buck8 regulator voltages start at 750 mV, not 600 mV. Using wrong minimal value caused shifting of these regulator values by 150 mV (e.g. buck7 usually configured to v1.35 V was

[PATCH 4.4 043/158] x86/build: Add set -e to mkcapflags.sh to delete broken capflags.c

2019-08-02 Thread Greg Kroah-Hartman
[ Upstream commit bc53d3d777f81385c1bb08b07bd1c06450ecc2c1 ] Without 'set -e', shell scripts continue running even after any error occurs. The missed 'set -e' is a typical bug in shell scripting. For example, when a disk space shortage occurs while this script is running, it actually ends up

[PATCH 4.4 036/158] media: i2c: fix warning same module names

2019-08-02 Thread Greg Kroah-Hartman
[ Upstream commit b2ce5617dad254230551feda3599f2cc68e53ad8 ] When building with CONFIG_VIDEO_ADV7511 and CONFIG_DRM_I2C_ADV7511 enabled as loadable modules, we see the following warning: drivers/gpu/drm/bridge/adv7511/adv7511.ko drivers/media/i2c/adv7511.ko Rework so that the file is named

[PATCH 4.4 047/158] rslib: Fix handling of of caller provided syndrome

2019-08-02 Thread Greg Kroah-Hartman
[ Upstream commit ef4d6a8556b637ad27c8c2a2cff1dda3da38e9a9 ] Check if the syndrome provided by the caller is zero, and act accordingly. Signed-off-by: Ferdinand Blomqvist Signed-off-by: Thomas Gleixner Link: https://lkml.kernel.org/r/20190620141039.9874-6-ferdinand.blomqv...@gmail.com

[PATCH 4.4 054/158] Bluetooth: validate BLE connection interval updates

2019-08-02 Thread Greg Kroah-Hartman
[ Upstream commit c49a8682fc5d298d44e8d911f4fa14690ea9485e ] Problem: The Linux Bluetooth stack yields complete control over the BLE connection interval to the remote device. The Linux Bluetooth stack provides access to the BLE connection interval min and max values through

Re: [PATCH] drm/komeda: Adds error event print functionality

2019-08-02 Thread Mihail Atanassov
On Friday, 2 August 2019 10:43:10 BST Lowry Li (Arm Technology China) wrote: > From: "Lowry Li (Arm Technology China)" > > Adds to print the event message when error happens and the same event > will not be printed until next vsync. > > Changes since v2: > 1. Refine komeda_sprintf(); > 2. Not

Re: [PATCH 5.2 10/20] media: radio-raremono: change devm_k*alloc to k*alloc

2019-08-02 Thread Joe Perches
On Fri, 2019-08-02 at 11:40 +0200, Greg Kroah-Hartman wrote: > From: Luke Nowakowski-Krijger > > commit c666355e60ddb4748ead3bdd983e3f7f2224aaf0 upstream. > > Change devm_k*alloc to k*alloc to manually allocate memory > > The manual allocation and freeing of memory is necessary because when >

[PATCH v3 2/4] serial: mctrl_gpio: Add a NULL check to mctrl_gpio_to_gpiod()

2019-08-02 Thread Schrempf Frieder
From: Frieder Schrempf As it is allowed to use the mctrl_gpio_* functions before initialization (as the 8250 driver does according to 434be0ae7aa7), it seems appropriate to have a NULL check in all of the functions. Otherwise the mctrl_gpio_to_gpiod() function is prone to be used in a context

[PATCH 1/4] iio: adc: ad7606: Add support for AD7606B ADC

2019-08-02 Thread Beniamin Bia
From: Stefan Popa The AD7606B is a 16-bit ADC that supports simultaneous sampling of 8 channels. It is pin compatible to AD7606, but adds extra modes by writing to the register map. The AD7606B can be configured to work in software mode by setting all oversampling pins to high. This mode is

[PATCH 3/4] dt-bindings: iio: adc: Migrate AD7606 documentation to yaml

2019-08-02 Thread Beniamin Bia
The documentation for ad7606 was migrated to yaml, the new Linux Kernel standard. Signed-off-by: Beniamin Bia --- .../bindings/iio/adc/adi,ad7606.yaml | 134 ++ MAINTAINERS | 2 +- 2 files changed, 135 insertions(+), 1 deletion(-)

[PATCH 4.9 001/223] MIPS: ath79: fix ar933x uart parity mode

2019-08-02 Thread Greg Kroah-Hartman
[ Upstream commit db13a5ba2732755cf13320f3987b77cf2a71e790 ] While trying to get the uart with parity working I found setting even parity enabled odd parity insted. Fix the register settings to match the datasheet of AR9331. A similar patch was created by 8devices, but not sent upstream.

[PATCH 4.4 056/158] crypto: arm64/sha1-ce - correct digest for empty data in finup

2019-08-02 Thread Greg Kroah-Hartman
From: Elena Petrova commit 1d4aaf16defa86d2665ae7db0259d6cb07e2091f upstream. The sha1-ce finup implementation for ARM64 produces wrong digest for empty input (len=0). Expected: da39a3ee..., result: 67452301... (initial value of SHA internal state). The error is in sha1_ce_finup: for empty data

[PATCH v3 1/4] serial: mctrl_gpio: Avoid probe failures in case of missing gpiolib

2019-08-02 Thread Schrempf Frieder
From: Frieder Schrempf If CONFIG_GPIOLIB is not enabled, mctrl_gpio_init() and mctrl_gpio_init_noauto() will currently return an error pointer with -ENOSYS. As the mctrl GPIOs are usually optional, drivers need to check for this condition to allow continue probing. To avoid the need for this

[PATCH v3 3/4] serial: sh-sci: Don't check for mctrl_gpio_init() returning -ENOSYS

2019-08-02 Thread Schrempf Frieder
From: Frieder Schrempf Now that the mctrl_gpio code returns NULL instead of ERR_PTR(-ENOSYS) if CONFIG_GPIOLIB is disabled, we can safely remove this check. Signed-off-by: Frieder Schrempf --- Changes in v3 = * Adjust the commit message and subject line Changes in v2 =

[PATCH 4.4 069/158] 9p/virtio: Add cleanup path in p9_virtio_init

2019-08-02 Thread Greg Kroah-Hartman
From: YueHaibing commit d4548543fc4ece56c6f04b8586f435fb4fd84c20 upstream. KASAN report this: BUG: unable to handle kernel paging request at a0097000 PGD 3870067 P4D 3870067 PUD 3871063 PMD 2326e2067 PTE 0 Oops: [#1 CPU: 0 PID: 5340 Comm: modprobe Not tainted 5.1.0-rc7+ #25

[PATCH 4/4] dt-bindings: iio: adc: Add AD7606B ADC documentation

2019-08-02 Thread Beniamin Bia
Documentation for AD7606B Analog to Digital Converter and software mode was added. Signed-off-by: Beniamin Bia --- Documentation/devicetree/bindings/iio/adc/adi,ad7606.txt | 8 Documentation/devicetree/bindings/iio/adc/adi,ad7606.yaml | 4 +++- 2 files changed, 11 insertions(+), 1

[PATCH 2/4] MAINTAINERS: Add Beniamin Bia for AD7606 driver

2019-08-02 Thread Beniamin Bia
Add Beniamin Bia as maintainer for AD7606 driver. Signed-off-by: Beniamin Bia --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index ad498428b38c..052d7a8591fb 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -895,6 +895,7 @@ F:

[PATCH v3 4/4] serial: 8250: Don't check for mctrl_gpio_init() returning -ENOSYS

2019-08-02 Thread Schrempf Frieder
From: Frieder Schrempf Now that the mctrl_gpio code returns NULL instead of ERR_PTR(-ENOSYS) if CONFIG_GPIOLIB is disabled, we can safely remove this check. Signed-off-by: Frieder Schrempf --- Changes in v3 = * Adjust the commit message and subject line Changes in v2 =

[PATCH 4.9 023/223] crypto: talitos - properly handle split ICV.

2019-08-02 Thread Greg Kroah-Hartman
[ Upstream commit eae55a586c3c8b50982bad3c3426e9c9dd7a0075 ] The driver assumes that the ICV is as a single piece in the last element of the scatterlist. This assumption is wrong. This patch ensures that the ICV is properly handled regardless of the scatterlist layout. Fixes: 9c4a79653b35

[PATCH 4.9 003/223] arm64/efi: Mark __efistub_stext_offset as an absolute symbol explicitly

2019-08-02 Thread Greg Kroah-Hartman
[ Upstream commit aa69fb62bea15126e744af2e02acc0d6cf3ed4da ] After r363059 and r363928 in LLVM, a build using ld.lld as the linker with CONFIG_RANDOMIZE_BASE enabled fails like so: ld.lld: error: relocation R_AARCH64_ABS32 cannot be used against symbol __efistub_stext_offset; recompile with

[PATCH 4.9 004/223] dmaengine: imx-sdma: fix use-after-free on probe error path

2019-08-02 Thread Greg Kroah-Hartman
[ Upstream commit 2b8066c3deb9140fdf258417a51479b2aeaa7622 ] If probe() fails anywhere beyond the point where sdma_get_firmware() is called, then a kernel oops may occur. Problematic sequence of events: 1. probe() calls sdma_get_firmware(), which schedules the firmware callback to run when

[PATCH 4.9 030/223] net: axienet: Fix race condition causing TX hang

2019-08-02 Thread Greg Kroah-Hartman
[ Upstream commit 7de44285c1f69ccfbe8be1d6a16fcd956681fee6 ] It is possible that the interrupt handler fires and frees up space in the TX ring in between checking for sufficient TX ring space and stopping the TX queue in axienet_start_xmit. If this happens, the queue wake from the interrupt

[PATCH 4.9 008/223] ath: DFS JP domain W56 fixed pulse type 3 RADAR detection

2019-08-02 Thread Greg Kroah-Hartman
[ Upstream commit d8792393a783158cbb2c39939cb897dc5e5299b6 ] Increase pulse width range from 1-2usec to 0-4usec. During data traffic HW occasionally fails detecting radar pulses, so that SW cannot get enough radar reports to achieve the success rate. Tested ath10k hw and fw: *

Re: [PATCH RFC] mm/memcontrol: reclaim severe usage over high limit in get_user_pages loop

2019-08-02 Thread Michal Hocko
On Mon 29-07-19 20:55:09, Michal Hocko wrote: > On Mon 29-07-19 11:49:52, Johannes Weiner wrote: > > On Sun, Jul 28, 2019 at 03:29:38PM +0300, Konstantin Khlebnikov wrote: > > > --- a/mm/gup.c > > > +++ b/mm/gup.c > > > @@ -847,8 +847,11 @@ static long __get_user_pages(struct task_struct > > >

[PATCH 4.9 015/223] net: stmmac: dwmac1000: Clear unused address entries

2019-08-02 Thread Greg Kroah-Hartman
[ Upstream commit 9463c445590091202659cdfdd44b236acadfbd84 ] In case we don't use a given address entry we need to clear it because it could contain previous values that are no longer valid. Found out while running stmmac selftests. Signed-off-by: Jose Abreu Cc: Joao Pinto Cc: David S. Miller

[PATCH 4.9 021/223] media: staging: media: davinci_vpfe: - Fix for memory leak if decoder initialization fails.

2019-08-02 Thread Greg Kroah-Hartman
[ Upstream commit 6995a659101bd4effa41cebb067f9dc18d77520d ] Fix to avoid possible memory leak if the decoder initialization got failed.Free the allocated memory for file handle object before return in case decoder initialization fails. Signed-off-by: Shailendra Verma Signed-off-by: Mauro

[PATCH 4.9 017/223] signal/pid_namespace: Fix reboot_pid_ns to use send_sig not force_sig

2019-08-02 Thread Greg Kroah-Hartman
[ Upstream commit f9070dc94542093fd516ae4ccea17ef46a4362c5 ] The locking in force_sig_info is not prepared to deal with a task that exits or execs (as sighand may change). The is not a locking problem in force_sig as force_sig is only built to handle synchronous exceptions. Further the function

[PATCH 4.9 028/223] cpupower : frequency-set -r option misses the last cpu in related cpu list

2019-08-02 Thread Greg Kroah-Hartman
[ Upstream commit 04507c0a9385cc8280f794a36bfff567c8cc1042 ] To set frequency on specific cpus using cpupower, following syntax can be used : cpupower -c #i frequency-set -f #f -r While setting frequency using cpupower frequency-set command, if we use '-r' option, it is expected to set frequency

[PATCH 4.9 041/223] perf evsel: Make perf_evsel__name() accept a NULL argument

2019-08-02 Thread Greg Kroah-Hartman
[ Upstream commit fdbdd7e8580eac9bdafa532746c865644d125e34 ] In which case it simply returns "unknown", like when it can't figure out the evsel->name value. This makes this code more robust and fixes a problem in 'perf trace' where a NULL evsel was being passed to a routine that only used the

[PATCH 4.9 040/223] xfrm: fix sa selector validation

2019-08-02 Thread Greg Kroah-Hartman
[ Upstream commit b8d6d0079757cbd1b69724cfd1c08e2171c68cee ] After commit b38ff4075a80, the following command does not work anymore: $ ip xfrm state add src 10.125.0.2 dst 10.125.0.1 proto esp spi 34 reqid 1 \ mode tunnel enc 'cbc(aes)' 0xb0abdba8b782ad9d364ec81e3a7d82a1 auth-trunc \

[PATCH 4.9 043/223] ipoib: correcly show a VF hardware address

2019-08-02 Thread Greg Kroah-Hartman
[ Upstream commit 64d701c608fea362881e823b666327f5d28d7ffd ] in the case of IPoIB with SRIOV enabled hardware ip link show command incorrecly prints 0 instead of a VF hardware address. Before: 11: ib1: mtu 2044 qdisc pfifo_fast state UP mode DEFAULT group default qlen 256 link/infiniband

[PATCH 4.9 036/223] regmap: fix bulk writes on paged registers

2019-08-02 Thread Greg Kroah-Hartman
[ Upstream commit db057679de3e9e6a03c1bcd5aee09b0d25fd9f5b ] On buses like SlimBus and SoundWire which does not support gather_writes yet in regmap, A bulk write on paged register would be silently ignored after programming page. This is because local variable 'ret' value in

[PATCH 4.9 042/223] vhost_net: disable zerocopy by default

2019-08-02 Thread Greg Kroah-Hartman
[ Upstream commit 098eadce3c622c07b328d0a43dda379b38cf7c5e ] Vhost_net was known to suffer from HOL[1] issues which is not easy to fix. Several downstream disable the feature by default. What's more, the datapath was split and datacopy path got the support of batching and XDP support recently

[PATCH 4.9 033/223] perf test 6: Fix missing kvm module load for s390

2019-08-02 Thread Greg Kroah-Hartman
[ Upstream commit 53fe307dfd309e425b171f6272d64296a54f4dff ] Command # perf test -Fv 6 fails with error running test 100 'kvm-s390:kvm_s390_create_vm' failed to parse event 'kvm-s390:kvm_s390_create_vm', err -1, str 'unknown tracepoint' event syntax error:

[PATCH 4.9 034/223] gpio: omap: fix lack of irqstatus_raw0 for OMAP4

2019-08-02 Thread Greg Kroah-Hartman
[ Upstream commit 64ea3e9094a1f13b96c33244a3fb3a0f45690bd2 ] Commit 384ebe1c2849 ("gpio/omap: Add DT support to GPIO driver") added the register definition tables to the gpio-omap driver. Subsequently to that commit, commit 4e962e8998cc ("gpio/omap: remove cpu_is_omap() checks from

[PATCH 4.9 029/223] net: fec: Do not use netdev messages too early

2019-08-02 Thread Greg Kroah-Hartman
[ Upstream commit a19a0582363b9a5f8ba812f34f1b8df394898780 ] When a valid MAC address is not found the current messages are shown: fec 2188000.ethernet (unnamed net_device) (uninitialized): Invalid MAC address: 00:00:00:00:00:00 fec 2188000.ethernet (unnamed net_device) (uninitialized): Using

[PATCH 4.9 061/223] ixgbe: Check DDM existence in transceiver before access

2019-08-02 Thread Greg Kroah-Hartman
[ Upstream commit 655c91414579d7bb115a4f7898ee726fc18e0984 ] Some transceivers may comply with SFF-8472 but not implement the Digital Diagnostic Monitoring (DDM) interface described in it. The existence of such area is specified by bit 6 of byte 92, set to 1 if implemented. Currently, due to not

[PATCH 4.9 053/223] x86/build: Add set -e to mkcapflags.sh to delete broken capflags.c

2019-08-02 Thread Greg Kroah-Hartman
[ Upstream commit bc53d3d777f81385c1bb08b07bd1c06450ecc2c1 ] Without 'set -e', shell scripts continue running even after any error occurs. The missed 'set -e' is a typical bug in shell scripting. For example, when a disk space shortage occurs while this script is running, it actually ends up

[PATCH 4.9 066/223] net: usb: asix: init MAC address buffers

2019-08-02 Thread Greg Kroah-Hartman
[ Upstream commit 78226f6eaac80bf30256a33a4926c194ceefdf36 ] This is for fixing bug KMSAN: uninit-value in ax88772_bind Tested by https://groups.google.com/d/msg/syzkaller-bugs/aFQurGotng4/eB_HlNhhCwAJ Reported-by: syzbot+8a3fc6674bbc3978e...@syzkaller.appspotmail.com syzbot found the

[PATCH 4.9 065/223] iwlwifi: mvm: Drop large non sta frames

2019-08-02 Thread Greg Kroah-Hartman
[ Upstream commit ac70499ee97231a418dc1a4d6c9dc102e8f64631 ] In some buggy scenarios we could possible attempt to transmit frames larger than maximum MSDU size. Since our devices don't know how to handle this, it may result in asserts, hangs etc. This can happen, for example, when we receive a

[PATCH 4.9 072/223] gtp: fix Illegal context switch in RCU read-side critical section.

2019-08-02 Thread Greg Kroah-Hartman
[ Upstream commit 3f167e1921865b379a9becf03828e7202c7b4917 ] ipv4_pdp_add() is called in RCU read-side critical section. So GFP_KERNEL should not be used in the function. This patch make ipv4_pdp_add() to use GFP_ATOMIC instead of GFP_KERNEL. Test commands: gtp-link add gtp1 & gtp-tunnel add

[PATCH 4.9 091/223] ALSA: hda/realtek: apply ALC891 headset fixup to one Dell machine

2019-08-02 Thread Greg Kroah-Hartman
From: Hui Wang commit 4b4e0e32e4b09274dbc9d173016c1a026f44608c upstream. Without this patch, the headset-mic and headphone-mic don't work. Cc: Signed-off-by: Hui Wang Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/pci/hda/patch_realtek.c |5 + 1 file

[PATCH 4.9 013/223] media: vpss: fix a potential NULL pointer dereference

2019-08-02 Thread Greg Kroah-Hartman
[ Upstream commit e08f0761234def47961d3252eac09ccedfe4c6a0 ] In case ioremap fails, the fix returns -ENOMEM to avoid NULL pointer dereference. Signed-off-by: Kangjie Lu Acked-by: Lad, Prabhakar Reviewed-by: Mukesh Ojha Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin ---

[PATCH 4.9 090/223] ALSA: seq: Break too long mutex context in the write loop

2019-08-02 Thread Greg Kroah-Hartman
From: Takashi Iwai commit ede34f397ddb063b145b9e7d79c6026f819ded13 upstream. The fix for the racy writes and ioctls to sequencer widened the application of client->ioctl_mutex to the whole write loop. Although it does unlock/relock for the lengthy operation like the event dup, the loop keeps

[PATCH 4.9 094/223] KVM: x86/vPMU: refine kvm_pmu err msg when event creation failed

2019-08-02 Thread Greg Kroah-Hartman
From: Like Xu commit 6fc3977ccc5d3c22e851f2dce2d3ce2a0a843842 upstream. If a perf_event creation fails due to any reason of the host perf subsystem, it has no chance to log the corresponding event for guest which may cause abnormal sampling data in guest result. In debug mode, this message

[PATCH 4.9 075/223] scsi: NCR5380: Reduce goto statements in NCR5380_select()

2019-08-02 Thread Greg Kroah-Hartman
From: Finn Thain commit 6a162836997c10bbefb7c7ca772201cc45c0e4a6 upstream. Replace a 'goto' statement with a simple 'return' where possible. This improves readability. No functional change. Tested-by: Michael Schmitz Signed-off-by: Finn Thain Signed-off-by: Martin K. Petersen

[PATCH 4.9 095/223] arm64: tegra: Fix AGIC register range

2019-08-02 Thread Greg Kroah-Hartman
From: Jon Hunter commit ba24eee6686f6ed3738602b54d959253316a9541 upstream. The Tegra AGIC interrupt controller is an ARM GIC400 interrupt controller. Per the ARM GIC device-tree binding, the first address region is for the GIC distributor registers and the second address region is for the GIC

Re: [PATCH RFC] mm/memcontrol: reclaim severe usage over high limit in get_user_pages loop

2019-08-02 Thread Konstantin Khlebnikov
On 02.08.2019 12:40, Michal Hocko wrote: On Mon 29-07-19 20:55:09, Michal Hocko wrote: On Mon 29-07-19 11:49:52, Johannes Weiner wrote: On Sun, Jul 28, 2019 at 03:29:38PM +0300, Konstantin Khlebnikov wrote: --- a/mm/gup.c +++ b/mm/gup.c @@ -847,8 +847,11 @@ static long

[PATCH 4.9 082/223] crypto: crypto4xx - fix a potential double free in ppc4xx_trng_probe

2019-08-02 Thread Greg Kroah-Hartman
From: Wen Yang commit 95566aa75cd6b3b404502c06f66956b5481194b3 upstream. There is a possible double free issue in ppc4xx_trng_probe(): 85: dev->trng_base = of_iomap(trng, 0); 86: of_node_put(trng); ---> released here 87: if (!dev->trng_base) 88: goto err_out;

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