RE: [PATCH] dma-mapping: move dma configuration to bus infrastructure

2018-03-13 Thread Nipun Gupta
> -Original Message- > From: Robin Murphy [mailto:robin.mur...@arm.com] > Sent: Tuesday, March 13, 2018 17:06 > > On 12/03/18 15:24, Nipun Gupta wrote: > > The change introduces 'dma_configure' & 'dma_deconfigure'as > > bus callback functions so each bus can choose to implement > > its o

[PATCH 4.14 024/140] scsi: qla2xxx: Fix system crash for Notify ack timeout handling

2018-03-13 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Quinn Tran commit 2e01d0ba868ec1d4d55ddcba519339e072b0bf4d upstream. Fix NULL pointer crash due to missing timeout handling callback for Notify Ack IOCB. Fixes: 726b85487067d ("qla2xxx: Add f

[PATCH 4.14 025/140] scsi: qla2xxx: Fix gpnid error processing

2018-03-13 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Quinn Tran commit 22e786ea47f8795c561e1a01b6a66bb2cae2fc20 upstream. Stop GPNID command from advancing if command has failed. Fixes: 726b85487067d ("qla2xxx: Add framework for async fabric di

[PATCH 4.14 023/140] tpm: only attempt to disable the LPC CLKRUN if is already enabled

2018-03-13 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Javier Martinez Canillas commit 6c9f0ce0dffe64da2204f38b0fd90f3ae2a8903c upstream. Commit 5e572cab92f0 ("tpm: Enable CLKRUN protocol for Braswell systems") added logic in the TPM TIS driver to

[PATCH 4.14 021/140] tpm: delete the TPM_TIS_CLK_ENABLE flag

2018-03-13 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Javier Martinez Canillas commit 764325add6c2ad1641199edde7b2995495fc2d7c upstream. This flag is only used to warn if CLKRUN_EN wasn't disabled on Braswell systems, but the only way this can ha

[PATCH 4.14 020/140] tpm: Keep CLKRUN enabled throughout the duration of transmit_cmd()

2018-03-13 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Azhar Shaikh commit b3e958ce4c585bf666de249dc794971ebc62d2d3 upstream. Commit 5e572cab92f0bb5 ("tpm: Enable CLKRUN protocol for Braswell systems") disabled CLKRUN protocol during TPM transacti

[PATCH 4.14 019/140] tpm_tis: Move ilb_base_addr to tpm_tis_data

2018-03-13 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Azhar Shaikh commit c382babccba2c82fe57f9e647f290fb7bf4d130d upstream. Move static variable ilb_base_addr to tpm_tis_data. Cc: sta...@vger.kernel.org Signed-off-by: Azhar Shaikh Reviewed-by:

[PATCH 4.14 022/140] tpm: remove unused variables

2018-03-13 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit 68021bf4734d15c9a9ed1c1072b9ebcfda3e39cc upstream. The CLKRUN fix caused a few harmless compile-time warnings: drivers/char/tpm/tpm_tis.c: In function 'tpm_tis_pnp_remove

[PATCH 4.14 016/140] netfilter: bridge: ebt_among: add missing match size checks

2018-03-13 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Florian Westphal commit c4585a2823edf4d1326da44d1524ecbfda26bb37 upstream. ebt_among is special, it has a dynamic match size and is exempt from the central size checks. Therefore it must chec

Re: [PATCH v4 2/2] ARM: ftrace: Add MODULE_PLTS support

2018-03-13 Thread Ard Biesheuvel
On 13 March 2018 at 13:53, Alexander Sverdlin wrote: > Teach ftrace_make_call() and ftrace_make_nop() about PLTs. > Teach PLT code about FTRACE and all its callbacks. > Otherwise the following might happen: > > [ cut here ] > WARNING: CPU: 14 PID: 2265 at .../arch/arm/kerne

Re: [PATCH] netfilter: cttimeout: remove VLA usage

2018-03-13 Thread Joe Perches
On Tue, 2018-03-13 at 15:59 +0100, Pablo Neira Ayuso wrote: > On Mon, Mar 12, 2018 at 04:58:38PM -0700, Joe Perches wrote: > > On Mon, 2018-03-12 at 18:14 -0500, Gustavo A. R. Silva wrote: > > > In preparation to enabling -Wvla, remove VLA and replace it > > > with dynamic memory allocation. > > >

[PATCH 4.14 012/140] netfilter: x_tables: fix missing timer initialization in xt_LED

2018-03-13 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Paolo Abeni commit 10414014bc085aac9f787a5890b33b5605fbcfc4 upstream. syzbot reported that xt_LED may try to use the ledinternal->timer without previously initializing it: [ cut h

[PATCH 4.14 017/140] netfilter: ipv6: fix use-after-free Write in nf_nat_ipv6_manip_pkt

2018-03-13 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Florian Westphal commit b078556aecd791b0e5cb3a59f4c3a14273b52121 upstream. l4proto->manip_pkt() can cause reallocation of skb head so pointer to the ipv6 header must be reloaded. Reported-and

Re: [PATCH] net: dev_forward_skb(): Scrub packet's per-netns info only when crossing netns

2018-03-13 Thread Yuval Shaia
On Tue, Mar 13, 2018 at 05:07:22PM +0200, Liran Alon wrote: > Before this commit, dev_forward_skb() always cleared packet's > per-network-namespace info. Even if the packet doesn't cross > network namespaces. > > The comment above dev_forward_skb() describes that this is done > because the receivi

Re: [PATCH] powerpc/powernv : Add support to enable sensor groups

2018-03-13 Thread Guenter Roeck
On Tue, Mar 13, 2018 at 10:02:09PM +1100, Michael Ellerman wrote: > Shilpasri G Bhat writes: > > On 12/04/2017 10:11 AM, Stewart Smith wrote: > >> Shilpasri G Bhat writes: > >>> On 11/28/2017 05:07 PM, Michael Ellerman wrote: > Shilpasri G Bhat writes: > > > Adds support to enable/

[PATCH 4.14 013/140] netfilter: nat: cope with negative port range

2018-03-13 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Paolo Abeni commit db57ccf0f2f4624b4c4758379f8165277504fbd7 upstream. syzbot reported a division by 0 bug in the netfilter nat code: divide error: [#1] SMP KASAN Dumping ftrace buffer:

Re: [PATCH 3/5] arm64: dts: allwinner: a64: add simplefb for A64 SoC

2018-03-13 Thread Maxime Ripard
Hi, On Tue, Mar 13, 2018 at 10:18:22AM +0100, Harald Geyer wrote: > Maxime Ripard writes: > > On Mon, Mar 12, 2018 at 04:10:48PM +, Harald Geyer wrote: > >> The A64 SoC features two display pipelines, one has a LCD output, the > >> other has a HDMI output. > >> > >> Add support for simplefb fo

[PATCH 4.14 014/140] netfilter: IDLETIMER: be syzkaller friendly

2018-03-13 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet commit cfc2c740533368b96e2be5e0a4e8c3cace7d9814 upstream. We had one report from syzkaller [1] First issue is that INIT_WORK() should be done before mod_timer() or we risk timer

[PATCH 4.14 011/140] netfilter: xt_hashlimit: fix lock imbalance

2018-03-13 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet commit de526f401284e1638d4c97cb5a4c292ac3f37655 upstream. syszkaller found that rcu was not held in hashlimit_mt_common() We only need to enable BH at this point. Fixes: bea7464

[PATCH 4.14 008/140] ASoC: Intel: kbl: fix jack name

2018-03-13 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Vinod Koul commit cedb6415f9ece6d3368aa0ac8a433caff799792a upstream. Commit d1c4cb447a7e ("ASoC: Intel: Skylake: Fix jack name format substitution") added Jack name but erroneously added a spa

[PATCH 4.14 007/140] ASoC: Intel: Skylake: Fix jack name format substitution

2018-03-13 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Chintan Patel commit d1c4cb447a7efcb5608a33cdfed8ab4234378b0a upstream. Jack name is not getting formatted correctly hence resulting in invalid name for HDMI/DP input devices. This was recent

[PATCH 4.14 010/140] netfilter: ipt_CLUSTERIP: fix a race condition of proc file creation

2018-03-13 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Cong Wang commit b3e456fce9f51d6276e576d00271e2813c1b8b67 upstream. There is a race condition between clusterip_config_entry_put() and clusterip_config_init(), after we release the spinlock in

[PATCH 4.14 009/140] netfilter: add back stackpointer size checks

2018-03-13 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Florian Westphal commit 57ebd808a97d7c5b1e1afb937c2db22beba3c1f8 upstream. The rationale for removing the check is only correct for rulesets generated by ip(6)tables. In iptables, a jump can

[PATCH] [v2] test_rhashtable: avoid gcc-8 -Wformat-overflow warning

2018-03-13 Thread Arnd Bergmann
gcc-8 warns about a code pattern that is used in the newly added test_rhashtable code: lib/test_rhashtable.c: In function 'print_ht': lib/test_rhashtable.c:511:21: error: ' bucket[' directive writing 8 bytes into a region of size between 1 and 512 [-Werror=format-overflow=] sprintf(buff, "%s\

[PATCH 4.14 004/140] watchdog: hpwdt: fix unused variable warning

2018-03-13 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit aeebc6ba88ba3758ad95467ff6191fabf2074c13 upstream. The new hpwdt_my_nmi() function is used conditionally, which produces a harmless warning in some configurations: driver

[PATCH 4.14 005/140] watchdog: hpwdt: Remove legacy NMI sourcing.

2018-03-13 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Jerry Hoemann commit 2b3d89b402b085b08498e896c65267a145bed486 upstream. Gen8 and prior Proliant systems supported the "CRU" interface to firmware. This interfaces allows linux to "call back"

[PATCH 4.14 002/140] watchdog: hpwdt: SMBIOS check

2018-03-13 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Jerry Hoemann commit c42cbe41727a138905a28f8e0b00c147be77ee93 upstream. This corrects: commit cce78da76601 ("watchdog: hpwdt: Add check for UEFI bits") The test on HPE SMBIOS extension type 2

[PATCH 4.14 003/140] watchdog: hpwdt: Check source of NMI

2018-03-13 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Jerry Hoemann commit 838534e50e2e5c1e644e30ab6cb28da88eb31368 upstream. Do not claim the NMI (i.e. return NMI_DONE) if the source of the NMI isn't the iLO watchdog or debug. Signed-off-by: Je

Re: [pci PATCH v5 3/4] ena: Migrate over to unmanaged SR-IOV support

2018-03-13 Thread Don Dutile
On 03/13/2018 11:04 AM, David Woodhouse wrote: On Tue, 2018-03-13 at 07:51 -0700, Alexander Duyck wrote: Actually the suggestion I had from Don Dutile was that we should be looking at creating a pci-stub like driver specifically for those type of devices, but without the ability to arbitrarily

[PATCH 4.14 001/140] kbuild: move "_all" target out of $(KBUILD_SRC) conditional

2018-03-13 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Masahiro Yamada commit ba634eceb535d95e87ef09caae7814b3687c6036 upstream. The first "_all" occurrence around line 120 is only visible when KBUILD_SRC is unset. If O=... is specified, the work

[PATCH 4.14 000/140] 4.14.27-stable review

2018-03-13 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.14.27 release. There are 140 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Thu Mar 15 15:24:23 UTC 2018. Anything recei

Re: [PATCH] drm/nouveau/secboot: remove VLA usage

2018-03-13 Thread Gustavo A. R. Silva
Hi David, On 03/13/2018 11:10 AM, David Laight wrote: From: Gustavo A. R. Silva Sent: 13 March 2018 14:48 In preparation to enabling -Wvla, remove VLA. In this particular case directly use macro NVKM_MSGQUEUE_CMDLINE_SIZE instead of local variable cmdline_size. Also, remove cmdline_size as it i

Re: [PATCH 0/8] block: sed-opal: support write to shadow mbr

2018-03-13 Thread Scott Bauer
On Tue, Mar 13, 2018 at 02:08:53PM +0100, Jonas Rabenstein wrote: > Hi, > this patchset adds support to write data into the shadow mbr of sed-opal > enabled devices. They apply cleanly on today next-tree (next-20180313) > and requires the u64 short atom length fix from [0] as t

[PATCH 4.15 125/146] scsi: qla2xxx: Fix gpnid error processing

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Quinn Tran commit 22e786ea47f8795c561e1a01b6a66bb2cae2fc20 upstream. Stop GPNID command from advancing if command has failed. Fixes: 726b85487067d ("qla2xxx: Add framework for async fabric di

Re: [PATCH 4.14 095/140] bcache: fix crashes in duplicate cache device register

2018-03-13 Thread Marc MERLIN
On Tue, Mar 13, 2018 at 04:24:58PM +0100, Greg Kroah-Hartman wrote: > 4.14-stable review patch. If anyone has any objections, please let me know. Just in case someone is considering whether it's important to merge, the bug did crash my kernel of course, but I'm virtually certain it was also resp

[PATCH 4.15 133/146] scsi: qla2xxx: Relogin to target port on a cable swap

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Quinn Tran commit 5ef696aa9f3ccf999552d924c4e21a348f2bbea9 upstream. If user swaps one target port for another target port for same switch port, the new target port is not being recognized by

[PATCH 4.15 131/146] scsi: qla2xxx: Fix login state machine stuck at GPDB

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Quinn Tran commit 414d9ff3f8039f85d23f619dcbbd1ba2628a1a67 upstream. This patch returns discovery state machine back to Login Complete. Fixes: 726b85487067d ("qla2xxx: Add framework for async

[PATCH 4.15 132/146] scsi: qla2xxx: Fix NPIV host cleanup in target mode

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Sawan Chandak commit 3be63b1e1838e35ce93e83f19573e949f4b389b4 upstream. Add check to make sure we are cleaning up global target host list only for NPIV hosts Fixes: bdbe24de281e2 ("scsi: qla2

[PATCH] [v2] drm/i915/pmu: avoid -Wmaybe-uninitialized warning

2018-03-13 Thread Arnd Bergmann
The conditional spinlock confuses gcc into thinking the 'flags' value might contain uninitialized data: drivers/gpu/drm/i915/i915_pmu.c: In function '__i915_pmu_event_read': arch/x86/include/asm/paravirt_types.h:573:3: error: 'flags' may be used uninitialized in this function [-Werror=maybe-unini

[PATCH 4.15 129/146] scsi: qla2xxx: Retry switch command on time out

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Quinn Tran commit 25ad76b703d9ad536f3411b15b1070aeb059ab55 upstream. Retry GID_PN & GPN_ID switch commands for time out case. Fixes: 726b85487067d ("qla2xxx: Add framework for async fabric di

[PATCH 4.15 130/146] scsi: qla2xxx: Serialize GPNID for multiple RSCN

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Quinn Tran commit 2d73ac6102d943c4be4945735a338005359c6abc upstream. GPNID is triggered by RSCN. For multiple RSCNs of the same affected NPORT ID, serialize the GPNID to prevent confusion. Fi

[PATCH 4.15 128/146] scsi: qla2xxx: Fix re-login for Nport Handle in use

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Quinn Tran commit a084fd68e1d26174c4cc1a13fbb0112f468ff7f4 upstream. When NPort Handle is in use, driver needs to mark the handle as used and pick another. Instead, the code clears the handle

[PATCH 4.15 146/146] NFS: Fix unstable write completion

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Trond Myklebust commit c4f24df942a181699c5bab01b8e5e82b925f77f3 upstream. We do want to respect the FLUSH_SYNC argument to nfs_commit_inode() to ensure that all outstanding COMMIT requests to

[PATCH RESEND v2 2/2] drm/xen-front: Provide kernel documentation

2018-03-13 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Provide kernel documentation for the Xen para-virtualized frontend DRM driver. Signed-off-by: Oleksandr Andrushchenko --- Documentation/gpu/index.rst | 1 + Documentation/gpu/xen-front.rst | 77 + 2 files changed, 78 in

Re: [PATCHv3] iommu/intel: Ratelimit each dmar fault printing

2018-03-13 Thread Dmitry Safonov
Gentle ping? On Mon, 2018-03-05 at 15:00 +, Dmitry Safonov wrote: > Hi Joerg, > > What do you think about v3? > It looks like, I can solve my softlookups with just a bit more proper > ratelimiting.. > > On Thu, 2018-02-15 at 19:17 +, Dmitry Safonov wrote: > > There is a ratelimit for pri

[PATCH RESEND v2 0/2] drm/xen-front: Add support for Xen PV display frontend

2018-03-13 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Hello! Resending with all the patches squashed on Daniel's request. This patch series adds support for Xen [1] para-virtualized frontend display driver. It implements the protocol from include/xen/interface/io/displif.h [2]. Accompanying backend [3] is implemented

Re: [PATCH][next] ASoC: samsung: remove redundant pointer cpu_dai

2018-03-13 Thread Mark Brown
On Tue, Mar 13, 2018 at 01:36:26PM +, Colin King wrote: > From: Colin Ian King > > The pointer cpu_dai is assigned a value but the pointer is never > read, hence it is redundant and can be removed. There's some subsequent patches to that driver which I think provide an alternative fix for th

[PATCH RESEND v2 1/2] drm/xen-front: Add support for Xen PV display frontend

2018-03-13 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Add support for Xen para-virtualized frontend display driver. Accompanying backend [1] is implemented as a user-space application and its helper library [2], capable of running as a Weston client or DRM master. Configuration of both backend and frontend is done via X

Re: [PATCH][next] ASoC: samsung: remove redundant pointer cpu_dai

2018-03-13 Thread Colin Ian King
On 13/03/18 16:21, Mark Brown wrote: > On Tue, Mar 13, 2018 at 01:36:26PM +, Colin King wrote: >> From: Colin Ian King >> >> The pointer cpu_dai is assigned a value but the pointer is never >> read, hence it is redundant and can be removed. > > There's some subsequent patches to that driver w

Re: [PATCH 1/2] ARM: npcm: add CONFIG_ARCH_MULTI_V7 dependency

2018-03-13 Thread Arnd Bergmann
On Tue, Mar 13, 2018 at 2:35 PM, Tomer Maimon wrote: > Hi Arnd, > > I sent now Full patch for the NPCM BMC's V12, > > Is it O.K.? or do you want me to send the same patch to ARM: npcm: > drop extraneous 'select' statements as well? The patch series you just sent contains a new version of the patc

[PATCH 4.15 127/146] scsi: qla2xxx: Skip IRQ affinity for Target QPairs

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Quinn Tran commit d68b850e1bfb9afb24b888a946165a186a710195 upstream. Fix co-existence between Block MQ and Target Mode. Block MQ and initiator mode requires midlayer queue mapping to check for

[PATCH 4.15 140/146] scsi: qla2xxx: Defer processing of GS IOCB calls

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Giridhar Malavali commit 5d3300a9b8b122b4743aed5a178bf12c87e2b8c9 upstream. This patch defers processing of GS IOCB calls from interrupt context to avoid hardware spinlock recursion. Followin

[PATCH v2] drm/nouveau/secboot: remove VLA usage

2018-03-13 Thread Gustavo A. R. Silva
In preparation to enabling -Wvla, remove VLA. In this particular case directly use macro NVKM_MSGQUEUE_CMDLINE_SIZE instead of local variable cmdline_size. Also, remove cmdline_size as it is not actually useful anymore. The use of stack Variable Length Arrays needs to be avoided, as they can be a

[PATCH 4.15 143/146] scsi: qla2xxx: Fix memory leak in dual/target mode

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: himanshu.madh...@cavium.com commit 7867b98dceb7741065c9c1b645136facad5c2e93 upstream. When driver is loaded in Target/Dual mode, it creates QPair to support MQ and allocates resources for each

[PATCH 4.15 141/146] scsi: qla2xxx: Remove aborting ELS IOCB call issued as part of timeout.

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Giridhar Malavali commit bf07ef86e882013522876f7c834c8eea085f35b4 upstream. This fix the spinlock recursion issue seen while unloading the driver. 14 [9f2e21e03db8] native_queued_spin_loc

[PATCH 4.15 142/146] scsi: qla2xxx: Fix system crash in qlt_plogi_ack_unref

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Quinn Tran commit 19759033e0d0beed70421ab9258f5ede79e070ae upstream. Fix system crash due to NULL pointer access. qlt_plogi_ack_t and fc_port structures were not properly bound before calling

Re: [PATCH 8/8] gpio: ws16c48: Implement get_multiple callback

2018-03-13 Thread Andy Shevchenko
On Mon, Mar 12, 2018 at 10:50 PM, William Breathitt Gray wrote: For all your patches, just read the bitmap API. -- With Best Regards, Andy Shevchenko

Re: [PATCH] iio: potentiometer: ds1803: remove VLA usage

2018-03-13 Thread Himanshu Jha
Hi Gustavo, On Tue, Mar 13, 2018 at 10:23:43AM -0500, Gustavo A. R. Silva wrote: > In preparation to enabling -Wvla, remove VLA. In this particular > case use macro ARRAY_SIZE so the length of array _result_ can be > computed at preprocessing time. > > The use of stack Variable Length Arrays need

[PATCH 4.15 138/146] scsi: qla2xxx: Fix scan state field for fcport

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Quinn Tran commit 76f9a2dd4c60183879a1898bcd56a1dbab19a85d upstream. Add correct value of scan_state field indicating state of the FC port Fixes: 726b85487067d ("qla2xxx: Add framework for as

[PATCH 4.15 126/146] scsi: qla2xxx: Move session delete to driver work queue

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Quinn Tran commit a01c77d2cbc45ba527e884e5c30363a1200a4130 upstream. Move session delete from system work queue to driver's work queue for in time processing. Fixes: 726b85487067d ("qla2xxx:

[PATCH 4.15 136/146] scsi: qla2xxx: Fix abort command deadlock due to spinlock

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Quinn Tran commit b0dcce746b32ac573343ad39cb3dc485030de95e upstream. Original code acquires hardware_lock to add Abort IOCB onto driver request queue for processing. However, abort_command() w

[PATCH 4.15 104/146] watchdog: hpwdt: SMBIOS check

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Jerry Hoemann commit c42cbe41727a138905a28f8e0b00c147be77ee93 upstream. This corrects: commit cce78da76601 ("watchdog: hpwdt: Add check for UEFI bits") The test on HPE SMBIOS extension type 2

[PATCH 4.15 105/146] watchdog: hpwdt: Check source of NMI

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Jerry Hoemann commit 838534e50e2e5c1e644e30ab6cb28da88eb31368 upstream. Do not claim the NMI (i.e. return NMI_DONE) if the source of the NMI isn't the iLO watchdog or debug. Signed-off-by: Je

Re: [alsa-devel] [linux-sunxi] Re: [PATCH v2 6/6] ASoC: sun4i-i2s: Add support for loopback

2018-03-13 Thread Mark Brown
On Tue, Mar 13, 2018 at 01:39:44PM +, Chris Obbard wrote: > >> +- loopback: if this property is present then the dai is configured in > >> + loopback mode where the output fifo is redirected to the > >> input > >> + fifo. > > This really doesn't seem like something th

[PATCH 4.15 101/146] objtool: Fix another switch table detection issue

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Josh Poimboeuf commit 1402fd8ed7e5bda1b3e7613b70780b0db392d1e6 upstream. Continue the switch table detection whack-a-mole. Add a check to distinguish KASAN data reads from switch data reads.

[PATCH 4.15 102/146] objtool: Fix 32-bit build

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Josh Poimboeuf commit 63474dc4ac7ed3848a4786b9592dd061901f606d upstream. Fix the objtool build when cross-compiling a 64-bit kernel on a 32-bit host. This also simplifies read_retpoline_hints

[PATCH 4.15 106/146] watchdog: hpwdt: fix unused variable warning

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit aeebc6ba88ba3758ad95467ff6191fabf2074c13 upstream. The new hpwdt_my_nmi() function is used conditionally, which produces a harmless warning in some configurations: driver

Re: [PATCH] mtd: chips: Replace printk() with pr_*() and define pr_fmt()

2018-03-13 Thread Andy Shevchenko
On Mon, Mar 12, 2018 at 7:02 PM, Arushi Singhal wrote: > Using pr_() is more concise than printk(KERN_). > This patch: > @@ -182,7 +184,7 @@ static void fixup_convert_atmel_pri(struct mtd_info *mtd) > - printk(KERN_ERR "atmel Features: %02x\n", atmel_pri.Features); > + pr_err("atmel

[PATCH 4.15 123/146] x86/xen: Calculate __max_logical_packages on PV domains

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Prarit Bhargava commit 63e708f826bb21470155d37b103a75d8a9e25b18 upstream. The kernel panics on PV domains because native_smp_cpus_done() is only called for HVM domains. Calculate __max_logica

[PATCH 4.15 124/146] scsi: qla2xxx: Fix system crash for Notify ack timeout handling

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Quinn Tran commit 2e01d0ba868ec1d4d55ddcba519339e072b0bf4d upstream. Fix NULL pointer crash due to missing timeout handling callback for Notify Ack IOCB. Fixes: 726b85487067d ("qla2xxx: Add f

Re: [PATCH] rtc: mcp795: remove VLA usage

2018-03-13 Thread Alexandre Belloni
On 13/03/2018 at 09:29:33 +0100, Stefano Manni wrote: > Hi, > > 2018-03-13 0:31 GMT+01:00 Alexandre Belloni > : > > Hi, > > > > On 13/03/2018 at 00:13:38 +0100, Stefano Manni wrote: > >> In preparation to enabling -Wvla, remove VLAs and replace them with > >> fixed-length arrays instead. > >> > >>

[PATCH 4.15 120/146] tpm: delete the TPM_TIS_CLK_ENABLE flag

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Javier Martinez Canillas commit 764325add6c2ad1641199edde7b2995495fc2d7c upstream. This flag is only used to warn if CLKRUN_EN wasn't disabled on Braswell systems, but the only way this can ha

Re: [PATCH][next] scsi: lpfc: make several unions static, fix non-ANSI prototype

2018-03-13 Thread James Smart
On 3/13/2018 5:08 AM, Colin King wrote: From: Colin Ian King There are several unions that are local to the source and do not need to be in global scope, so make them static. Also add in a missing void parameter to functions lpfc_nvme_cmd_template and lpfc_nvmet_cmd_template to clean up non-ANS

Re: linux-next: build warning after merge of the net-next tree

2018-03-13 Thread David Miller
From: "Gustavo A. R. Silva" Date: Tue, 13 Mar 2018 06:46:24 -0500 > Hi Stephen, > > On 03/13/2018 01:11 AM, Stephen Rothwell wrote: >> Hi all, >> After merging the net-next tree, today's linux-next build (sparc >> defconfig) produced this warning: >> net/core/pktgen.c: In function 'pktgen_if_wri

[PATCH 4.15 121/146] tpm: remove unused variables

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit 68021bf4734d15c9a9ed1c1072b9ebcfda3e39cc upstream. The CLKRUN fix caused a few harmless compile-time warnings: drivers/char/tpm/tpm_tis.c: In function 'tpm_tis_pnp_remove

[PATCH 0/3] ASoC: stm32: sai: add support of iec958 controls

2018-03-13 Thread Olivier Moysan
This patchset adds support of iec958 controls to STM32 SAI driver. The patch makes use of iec958 control status helpers previously proposed and discussed through the following threads: https://patchwork.kernel.org/patch/8062601/ https://patchwork.kernel.org/patch/8091551/ (v2) https://patchwork.ke

[PATCH 2/3] ASoC: stm32: sai: add iec958 controls support

2018-03-13 Thread Olivier Moysan
Add support of iec958 controls for STM32 SAI. Signed-off-by: Olivier Moysan --- sound/core/pcm_iec958.c | 1 + sound/soc/stm/Kconfig | 1 + sound/soc/stm/stm32_sai_sub.c | 101 +- 3 files changed, 91 insertions(+), 12 deletions(-) diff -

[PATCH 1/3] ALSA: pcm: add IEC958 channel status control helper

2018-03-13 Thread Olivier Moysan
From: Arnaud Pouliquen Add IEC958 channel status helper that creates control to handle the IEC60958 status bits. Signed-off-by: Arnaud Pouliquen Signed-off-by: Olivier Moysan --- include/sound/pcm_iec958.h | 19 sound/core/pcm_iec958.c| 113 ++

[PATCH 3/3] ASoC: dmaengine_pcm: document process callback

2018-03-13 Thread Olivier Moysan
Add missing description of process callback. Fixes: 78648092ef46 ("ASoC: dmaengine_pcm: add processing support") Signed-off-by: Olivier Moysan --- include/sound/dmaengine_pcm.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/sound/dmaengine_pcm.h b/include/sound/dmaengine_pcm.h ind

Re: [PATCH] iio: potentiometer: ds1803: remove VLA usage

2018-03-13 Thread Gustavo A. R. Silva
On 03/13/2018 11:24 AM, Himanshu Jha wrote: Hi Gustavo, On Tue, Mar 13, 2018 at 10:23:43AM -0500, Gustavo A. R. Silva wrote: In preparation to enabling -Wvla, remove VLA. In this particular case use macro ARRAY_SIZE so the length of array _result_ can be computed at preprocessing time. The u

Applied "ASoC: da7219: clkdev_drop usage depends on CONFIG_COMMON_CLK" to the asoc tree

2018-03-13 Thread Mark Brown
The patch ASoC: da7219: clkdev_drop usage depends on CONFIG_COMMON_CLK has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hou

[PATCH 4.15 119/146] tpm: Keep CLKRUN enabled throughout the duration of transmit_cmd()

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Azhar Shaikh commit b3e958ce4c585bf666de249dc794971ebc62d2d3 upstream. Commit 5e572cab92f0bb5 ("tpm: Enable CLKRUN protocol for Braswell systems") disabled CLKRUN protocol during TPM transacti

[PATCH 4.15 099/146] objtool: Add module specific retpoline rules

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Peter Zijlstra commit ca41b97ed9124fd62323a162de5852f6e28f94b8 upstream. David allowed retpolines in .init.text, except for modules, which will trip up objtool retpoline validation, fix that.

[PATCH 4.15 115/146] netfilter: bridge: ebt_among: add missing match size checks

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Florian Westphal commit c4585a2823edf4d1326da44d1524ecbfda26bb37 upstream. ebt_among is special, it has a dynamic match size and is exempt from the central size checks. Therefore it must chec

[PATCH 4.15 113/146] netfilter: IDLETIMER: be syzkaller friendly

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet commit cfc2c740533368b96e2be5e0a4e8c3cace7d9814 upstream. We had one report from syzkaller [1] First issue is that INIT_WORK() should be done before mod_timer() or we risk timer

[PATCH 4.15 114/146] netfilter: ebtables: CONFIG_COMPAT: dont trust userland offsets

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Florian Westphal commit b71812168571fa55e44cdd0254471331b9c4c4c6 upstream. We need to make sure the offsets are not out of range of the total size. Also check that they are in ascending order.

[PATCH 4.15 112/146] netfilter: nat: cope with negative port range

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Paolo Abeni commit db57ccf0f2f4624b4c4758379f8165277504fbd7 upstream. syzbot reported a division by 0 bug in the netfilter nat code: divide error: [#1] SMP KASAN Dumping ftrace buffer:

[PATCH 4.15 111/146] netfilter: x_tables: fix missing timer initialization in xt_LED

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Paolo Abeni commit 10414014bc085aac9f787a5890b33b5605fbcfc4 upstream. syzbot reported that xt_LED may try to use the ledinternal->timer without previously initializing it: [ cut h

Re: [PATCH v3 2/2] kbuild: Don't mess with the .cache.mk when root

2018-03-13 Thread Nick Desaulniers
On Mon, Mar 12, 2018 at 11:23 PM Doug Anderson wrote: > Hi, > On Mon, Mar 12, 2018 at 11:16 PM, Ingo Molnar wrote: > > > > * Douglas Anderson wrote: > > > >> +# Don't create Makefile caches if running as root since they can't be deleted > >> +# easily; in the real world we might be root when d

[PATCH 4.15 109/146] netfilter: ipt_CLUSTERIP: fix a race condition of proc file creation

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Cong Wang commit b3e456fce9f51d6276e576d00271e2813c1b8b67 upstream. There is a race condition between clusterip_config_entry_put() and clusterip_config_init(), after we release the spinlock in

[PATCH 1/2] dt-bindings: reset: add STM32MP1 resets

2018-03-13 Thread gabriel.fernandez
From: Gabriel Fernandez This patch adds the reset binding entry for STM32MP1 Signed-off-by: Gabriel Fernandez --- include/dt-bindings/reset/stm32mp1-resets.h | 108 1 file changed, 108 insertions(+) create mode 100644 include/dt-bindings/reset/stm32mp1-resets.h d

[PATCH 0/2] Introduce STM32MP1 Reset driver

2018-03-13 Thread gabriel.fernandez
From: Gabriel Fernandez This patch-set enables the reset of STM32MP1. It uses the reset simple driver by introducing the clear register offset parameter. STM32MP1 reset IP has a register to assert by writing '1' and another register to de-assert by writing '1'. The offset between this two registe

Re: [PATCH v2] gpio: dwapb: Add support for a bus clock

2018-03-13 Thread Andy Shevchenko
On Mon, Mar 12, 2018 at 8:30 PM, Phil Edworthy wrote: > Enable an optional bus clock provided by DT. FWIW, Reviewed-by: Andy Shevchenko (Assuming it has been tested on clock-less cases) > Signed-off-by: Phil Edworthy > --- > v2: > - Fix include order. > - Use a clock name. > - Check errors

[PATCH 2/2] reset: simple: Enable stm32mp1 reset driver

2018-03-13 Thread gabriel.fernandez
From: Gabriel Fernandez The stm32mp1 reset driver is quite similar to simple reset driver. The difference is that stm32mp1 has a reset SET register and a reset CLEAR register. Writing '0' on reset SET register has no effect Writing '1' on reset SET register activates the reset of the cor

Re: [PATCH 1/4 v5] devpts: hoist out check for DEVPTS_SUPER_MAGIC

2018-03-13 Thread Eric W. Biederman
Christian Brauner writes: > Hoist the check whether we have already found a suitable devpts filesystem > out of devpts_ptmx_path() in preparation for the devpts bind-mount > resolution patch. This is a non-functional change. Reviewed-by: "Eric W. Biederman" > > Signed-off-by: Christian Brauner

[PATCH 4.15 098/146] objtool: Add retpoline validation

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Peter Zijlstra commit b5bc2231b8ad4387c9641f235ca0ad8cd300b6df upstream. David requested a objtool validation pass for CONFIG_RETPOLINE=y enabled builds, where it validates no unannotated indi

[PATCH 4.15 077/146] scsi: qla2xxx: Fix recursion while sending terminate exchange

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: himanshu.madh...@cavium.com commit 3efc31f76dd7fc8a71cd86683909f637e9b7cadb upstream. During error test case where switch port status is toggled from enable to disable, following stack trace i

[PATCH 4.15 074/146] ALSA: hda: add dock and led support for HP EliteBook 820 G3

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Dennis Wassenberg commit aea808172018ca01abf53db808323aed23281835 upstream. This patch adds missing initialisation for HP 2013 UltraSlim Dock Line-In/Out PINs and activates keyboard mute/micmu

[PATCH 4.15 075/146] ALSA: hda: add dock and led support for HP ProBook 640 G2

2018-03-13 Thread Greg Kroah-Hartman
4.15-stable review patch. If anyone has any objections, please let me know. -- From: Dennis Wassenberg commit 099fd6ca0ad25bc19c5ade2ea4b25b8fadaa11b3 upstream. This patch adds missing initialisation for HP 2013 UltraSlim Dock Line-In/Out PINs and activates keyboard mute/micmu

Re: [PATCH v3 0/2] kbuild: Fix corner caches with .cache.mk

2018-03-13 Thread Doug Anderson
Hi, On Tue, Mar 13, 2018 at 12:49 AM, Masahiro Yamada wrote: > Hi Douglas, > > > 2018-03-13 15:11 GMT+09:00 Douglas Anderson : >> This two-patches fixes two corner cases with .cache.mk that have been >> reported. Neither problem was catastrophic, but certainly several >> people ran into the prob

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