[PATCH AUTOSEL for 4.9 42/54] i2c: i2c-cadence: Initialize configuration before probing devices

2017-11-22 Thread alexander . levin
From: Mike Looijmans [ Upstream commit 0e1929dedea36781e25902118c93edd8d8f09af1 ] The cadence I2C driver calls cdns_i2c_writereg(..) to setup a workaround in the controller, but did so after calling i2c_add_adapter() which starts probing devices on the bus. Change the order so that the configura

[PATCH AUTOSEL for 4.9 43/54] nvmet: cancel fatal error and flush async work before free controller

2017-11-22 Thread alexander . levin
From: Sagi Grimberg [ Upstream commit 06406d81a2d7cfb8abcc4fa6cdfeb8e5897007c5 ] Make sure they are not running and we can free the controller safely. Signed-off-by: Roy Shterman Signed-off-by: Sagi Grimberg Reviewed-by: Christoph Hellwig Signed-off-by: Sasha Levin --- drivers/nvme/target/

[PATCH AUTOSEL for 4.9 39/54] tipc: fix cleanup at module unload

2017-11-22 Thread alexander . levin
From: Parthasarathy Bhuvaragan [ Upstream commit 35e22e49a5d6a741ebe7f2dd280b2052c3003ef7 ] In tipc_server_stop(), we iterate over the connections with limiting factor as server's idr_in_use. We ignore the fact that this variable is decremented in tipc_close_conn(), leading to premature exit. I

[PATCH AUTOSEL for 4.9 36/54] RDMA/qedr: Return success when not changing QP state

2017-11-22 Thread alexander . levin
From: Ram Amrani [ Upstream commit 865cea40b69741c3da2574176876463233b2b67c ] If the user is requesting us to change the QP state to the same state that it is already in, return success instead of failure. Signed-off-by: Ram Amrani Signed-off-by: Michal Kalderon Signed-off-by: Doug Ledford S

[PATCH AUTOSEL for 4.9 41/54] tcp: correct memory barrier usage in tcp_check_space()

2017-11-22 Thread alexander . levin
From: Jason Baron [ Upstream commit 56d806222ace4c3aeae516cd7a855340fb2839d8 ] sock_reset_flag() maps to __clear_bit() not the atomic version clear_bit(). Thus, we need smp_mb(), smp_mb__after_atomic() is not sufficient. Fixes: 3c7151275c0c ("tcp: add memory barriers to write space paths") Cc:

[PATCH AUTOSEL for 4.9 35/54] mac80211: don't try to sleep in rate_control_rate_init()

2017-11-22 Thread alexander . levin
From: Johannes Berg [ Upstream commit 115865fa0826ed18ca04717cf72d0fe874c0fe7f ] In my previous patch, I missed that rate_control_rate_init() is called from some places that cannot sleep, so it cannot call ieee80211_recalc_min_chandef(). Remove that call for now to fix the context bug, we'll hav

[PATCH AUTOSEL for 4.4 09/17] NFSv4: Fix client recovery when server reboots multiple times

2017-11-22 Thread alexander . levin
From: Trond Myklebust [ Upstream commit c6180a6237174f481dc856ed6e890d8196b6f0fb ] If the server reboots multiple times, the client should rely on the server to tell it that it cannot reclaim state as per section 9.6.3.4 in RFC7530 and section 8.4.2.1 in RFC5661. Currently, the client is being t

[PATCH AUTOSEL for 4.9 48/54] be2net: fix initial MAC setting

2017-11-22 Thread alexander . levin
From: Ivan Vecera [ Upstream commit 4993b39ab04b083ff6ee1147e7e7f120feb6bf7f ] Recent commit 34393529163a ("be2net: fix MAC addr setting on privileged BE3 VFs") allows privileged BE3 VFs to set its MAC address during initialization. Although the initial MAC for such VFs is already programmed by

[PATCH AUTOSEL for 4.4 10/17] drm/exynos/decon5433: set STANDALONE_UPDATE_F on output enablement

2017-11-22 Thread alexander . levin
From: Andrzej Hajda [ Upstream commit 11d8bcef7a0399e1d2519f207fd575fc404306b4 ] DECON_TV requires STANDALONE_UPDATE after output enabling, otherwise it does not start. This change is neutral for DECON. Signed-off-by: Andrzej Hajda Signed-off-by: Inki Dae Signed-off-by: Sasha Levin --- driv

Re: [PATCH 08/30] x86, kaiser: unmap kernel from userspace page tables (core patch)

2017-11-22 Thread Dave Hansen
On 11/20/2017 09:21 AM, Thomas Gleixner wrote: >> +KAISER logically keeps a "copy" of the page tables which unmap >> +the kernel while in userspace. The kernel manages the page >> +tables as normal, but the "copying" is done with a few tricks >> +that mean that we do not have to manage two full co

[PATCH AUTOSEL for 4.4 05/17] net/appletalk: Fix kernel memory disclosure

2017-11-22 Thread alexander . levin
From: Vlad Tsyrklevich [ Upstream commit ce7e40c432ba84da104438f6799d460a4cad41bc ] ipddp_route structs contain alignment padding so kernel heap memory is leaked when they are copied to user space in ipddp_ioctl(SIOCFINDIPDDPRT). Change kmalloc() to kzalloc() to clear that memory. Signed-off-by

[PATCH AUTOSEL for 4.4 04/17] vti6: fix device register to report IFLA_INFO_KIND

2017-11-22 Thread alexander . levin
From: David Forster [ Upstream commit 93e246f783e6bd1bc64fdfbfe68b18161f69b28e ] vti6 interface is registered before the rtnl_link_ops block is attached. As a result the resulting RTM_NEWLINK is missing IFLA_INFO_KIND. Re-order attachment of rtnl_link_ops block to fix. Signed-off-by: Dave Forst

Re: [e1000_shutdown] e1000 0000:00:03.0: disabling already-disabled device

2017-11-22 Thread Fengguang Wu
On Wed, Nov 22, 2017 at 03:40:52AM +0530, Tushar Dave wrote: On 11/21/2017 06:11 PM, Fengguang Wu wrote: Hello, FYI this happens in mainline kernel 4.14.0-01330-g3c07399. It happens since 4.13 . It occurs in 3 out of 162 boots. [ 44.637743] advantechwdt: Unexpected close, not stopping wa

[PATCH AUTOSEL for 4.4 06/17] ravb: Remove Rx overflow log messages

2017-11-22 Thread alexander . levin
From: Kazuya Mizuguchi [ Upstream commit 18a3ed59d09cf81a6447aadf6931bf0c9ffec5e0 ] Remove Rx overflow log messages as in an environment where logging results in network traffic logging may cause further overflows. Fixes: c156633f1353 ("Renesas Ethernet AVB driver proper") Signed-off-by: Kazuya

Re: [v5 RESEND 14/17] ASoC: madera: Add common support for Cirrus Logic Madera codecs

2017-11-22 Thread kbuild test robot
Hi Richard, I love your patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on next-20171122] [cannot apply to ljones-mfd/for-mfd-next asoc/for-next v4.14] [if your patch is applied to the wrong git tree, please drop us a note to help improve

[PATCH AUTOSEL for 4.4 07/17] nfs: Don't take a reference on fl->fl_file for LOCK operation

2017-11-22 Thread alexander . levin
From: Benjamin Coddington [ Upstream commit 4b09ec4b14a168bf2c687e1f598140c3c11e9222 ] I have reports of a crash that look like __fput() was called twice for a NFSv4.0 file. It seems possible that the state manager could try to reclaim a lock and take a reference on the fl->fl_file at the same

[PATCH AUTOSEL for 4.4 08/17] KVM: arm/arm64: Fix occasional warning from the timer work function

2017-11-22 Thread alexander . levin
From: Christoffer Dall [ Upstream commit 63e41226afc3f7a044b70325566fa86ac3142538 ] When a VCPU blocks (WFI) and has programmed the vtimer, we program a soft timer to expire in the future to wake up the vcpu thread when appropriate. Because such as wake up involves a vcpu kick, and the timer ex

[PATCH AUTOSEL for 4.9 44/54] gtp: clear DF bit on GTP packet tx

2017-11-22 Thread alexander . levin
From: Andreas Schultz [ Upstream commit c6ce1d08eede4c2968ed08aafa3165e8e183c5a1 ] 3GPP TS 29.281 and 3GPP TS 29.060 imply that GTP-U packets should be sent with the DF bit cleared. For example 3GPP TS 29.060, Release 8, Section 13.2.2: > Backbone router: Any router in the backbone may fragment

[PATCH AUTOSEL for 4.9 50/54] mm: avoid returning VM_FAULT_RETRY from ->page_mkwrite handlers

2017-11-22 Thread alexander . levin
From: Jan Kara [ Upstream commit 0911d0041c2298ca52a977d7b0b0159fee4b ] Some ->page_mkwrite handlers may return VM_FAULT_RETRY as its return code (GFS2 or Lustre can definitely do this). However VM_FAULT_RETRY from ->page_mkwrite is completely unhandled by the mm code and results in locking

[PATCH AUTOSEL for 4.9 49/54] vfio/spapr: Fix missing mutex unlock when creating a window

2017-11-22 Thread alexander . levin
From: Alexey Kardashevskiy [ Upstream commit 2da64d20a0b20046d688e44f4033efd09157e29d ] Commit d9c728949ddc ("vfio/spapr: Postpone default window creation") added an additional exit to the VFIO_IOMMU_SPAPR_TCE_CREATE case and made it possible to return from tce_iommu_ioctl() without unlocking co

[PATCH AUTOSEL for 4.9 31/54] drm/exynos/decon5433: set STANDALONE_UPDATE_F on output enablement

2017-11-22 Thread alexander . levin
From: Andrzej Hajda [ Upstream commit 11d8bcef7a0399e1d2519f207fd575fc404306b4 ] DECON_TV requires STANDALONE_UPDATE after output enabling, otherwise it does not start. This change is neutral for DECON. Signed-off-by: Andrzej Hajda Signed-off-by: Inki Dae Signed-off-by: Sasha Levin --- driv

[PATCH AUTOSEL for 4.9 14/54] be2net: fix unicast list filling

2017-11-22 Thread alexander . levin
From: Ivan Vecera [ Upstream commit 6052cd1af86f9833b6b0b60d5d4787c4a06d65ea ] The adapter->pmac_id[0] item is used for primary MAC address but this is not true for adapter->uc_list[0] as is assumed in be_set_uc_list(). There are N UC addresses copied first from net_device to adapter->uc_list[1.

[PATCH AUTOSEL for 4.9 23/54] drm/exynos/decon5433: set STANDALONE_UPDATE_F also if planes are disabled

2017-11-22 Thread alexander . levin
From: Andrzej Hajda [ Upstream commit 821b40b79db7dedbfe15ab330dfd181e661a533f ] STANDALONE_UPDATE_F should be set if something changed in plane configurations, including plane disable. The patch fixes page-faults bugs, caused by decon still using framebuffers of disabled planes. v2: fixed clea

[PATCH AUTOSEL for 4.9 24/54] KVM: arm/arm64: Fix occasional warning from the timer work function

2017-11-22 Thread alexander . levin
From: Christoffer Dall [ Upstream commit 63e41226afc3f7a044b70325566fa86ac3142538 ] When a VCPU blocks (WFI) and has programmed the vtimer, we program a soft timer to expire in the future to wake up the vcpu thread when appropriate. Because such as wake up involves a vcpu kick, and the timer ex

[PATCH AUTOSEL for 4.9 16/54] libfs: Modify mount_pseudo_xattr to be clear it is not a userspace mount

2017-11-22 Thread alexander . levin
From: "Eric W. Biederman" [ Upstream commit 75422726b0f717d67db3283c2eb5bc14fa2619c5 ] Add MS_KERNMOUNT to the flags that are passed. Use sget_userns and force &init_user_ns instead of calling sget so that even if called from a weird context the internal filesystem will be considered to be in th

[PATCH AUTOSEL for 4.9 22/54] drm/exynos/decon5433: update shadow registers iff there are active windows

2017-11-22 Thread alexander . levin
From: Andrzej Hajda [ Upstream commit f65a7c9cb3770ed4d3e7c57c66d7032689081b5e ] Improper usage of DECON_UPDATE register leads to subtle errors. If it set in decon_commit when there are no active windows it results in slow registry updates - all subsequent shadow registry updates takes more than

[PATCH] MIPS: dma-default: Use vma_pages helper

2017-11-22 Thread Vasyl Gomonovych
Use vma_pages function on vma object instead of explicit computation. arch/mips/mm/dma-default.c:182:34-40: WARNING: Consider using vma_pages helper on vma Generated by: scripts/coccinelle/api/vma_pages.cocci Signed-off-by: Vasyl Gomonovych --- arch/mips/mm/dma-default.c | 2 +- 1 file changed,

[PATCH AUTOSEL for 4.9 15/54] net/appletalk: Fix kernel memory disclosure

2017-11-22 Thread alexander . levin
From: Vlad Tsyrklevich [ Upstream commit ce7e40c432ba84da104438f6799d460a4cad41bc ] ipddp_route structs contain alignment padding so kernel heap memory is leaked when they are copied to user space in ipddp_ioctl(SIOCFINDIPDDPRT). Change kmalloc() to kzalloc() to clear that memory. Signed-off-by

Re: x86/insn-eval: negative return value?

2017-11-22 Thread Kees Cook
On Wed, Nov 22, 2017 at 3:06 PM, Borislav Petkov wrote: > On Wed, Nov 22, 2017 at 01:48:55PM -0800, Kees Cook wrote: >> Cool, yeah, that looks like it would solve it. Thanks for taking a look! > > Btw, how do you build the kernel with clang? > > I tried: > > make -j9 CC=clang HOSTCC=clang > > and

[PATCH AUTOSEL for 4.9 33/54] x86/fpu: Set the xcomp_bv when we fake up a XSAVES area

2017-11-22 Thread alexander . levin
From: Kevin Hao [ Upstream commit 4c833368f0bf748d4147bf301b1f95bc8eccb3c0 ] I got the following calltrace on a Apollo Lake SoC with 32-bit kernel: WARNING: CPU: 2 PID: 261 at arch/x86/include/asm/fpu/internal.h:363 fpu__restore+0x1f5/0x260 [...] Hardware name: Intel Corp. Broxton P/NOTE

[PATCH AUTOSEL for 4.9 19/54] mac80211: calculate min channel width correctly

2017-11-22 Thread alexander . levin
From: Johannes Berg [ Upstream commit 96aa2e7cf126773b16c6c19b7474a8a38d3c707e ] In the current minimum chandef code there's an issue in that the recalculation can happen after rate control is initialized for a station that has a wider bandwidth than the current chanctx, and then rate control ca

[PATCH AUTOSEL for 4.9 13/54] be2net: fix accesses to unicast list

2017-11-22 Thread alexander . levin
From: Ivan Vecera [ Upstream commit 1d0f110a2c6c4bca3dbcc4b0e27f1e3dc2d44a2c ] Commit 988d44b "be2net: Avoid redundant addition of mac address in HW" introduced be_dev_mac_add & be_uc_mac_add helpers that incorrectly access adapter->uc_list as an array of bytes instead of an array of be_eth_addr

[PATCH AUTOSEL for 4.9 25/54] mac80211: prevent skb/txq mismatch

2017-11-22 Thread alexander . levin
From: Michal Kazior [ Upstream commit dbef53621116474bb883f76f0ba6b7640bc42332 ] Station structure is considered as not uploaded (to driver) until drv_sta_state() finishes. This call is however done after the structure is attached to mac80211 internal lists and hashes. This means mac80211 can lo

[PATCH AUTOSEL for 4.9 20/54] ravb: Remove Rx overflow log messages

2017-11-22 Thread alexander . levin
From: Kazuya Mizuguchi [ Upstream commit 18a3ed59d09cf81a6447aadf6931bf0c9ffec5e0 ] Remove Rx overflow log messages as in an environment where logging results in network traffic logging may cause further overflows. Fixes: c156633f1353 ("Renesas Ethernet AVB driver proper") Signed-off-by: Kazuya

[PATCH AUTOSEL for 4.9 21/54] nfs: Don't take a reference on fl->fl_file for LOCK operation

2017-11-22 Thread alexander . levin
From: Benjamin Coddington [ Upstream commit 4b09ec4b14a168bf2c687e1f598140c3c11e9222 ] I have reports of a crash that look like __fput() was called twice for a NFSv4.0 file. It seems possible that the state manager could try to reclaim a lock and take a reference on the fl->fl_file at the same

Re: [PATCH AUTOSEL for 4.14 45/51] locking/refcounts, x86/asm: Use unique .text section for refcount exceptions

2017-11-22 Thread Kees Cook
Hi, On Wed, Nov 22, 2017 at 2:25 PM, wrote: > From: Kees Cook > > [ Upstream commit 564c9cc84e2adf8a6671c1937f0a9fe3da2a4b0e ] Thanks! I was going to recommend this too. Please also add: commit 39208aa7ecb7 ("locking/refcounts, x86/asm: Enable CONFIG_ARCH_HAS_REFCOUNT") -Kees > > Using .tex

[PATCH AUTOSEL for 4.9 08/54] net: systemport: Utilize skb_put_padto()

2017-11-22 Thread alexander . levin
From: Florian Fainelli [ Upstream commit bb7da333d0a9f3bddc08f84187b7579a3f68fd24 ] Since we need to pad our packets, utilize skb_put_padto() which increases skb->len by how much we need to pad, allowing us to eliminate the test on skb->len right below. Signed-off-by: Florian Fainelli Signed-o

Re: [PATCH 00/18] arm64: Unmap the kernel whilst running in userspace (KAISER)

2017-11-22 Thread Ard Biesheuvel
> On 22 Nov 2017, at 22:33, Pavel Machek wrote: > >> On Wed 2017-11-22 21:19:28, Ard Biesheuvel wrote: >>> On 22 November 2017 at 16:19, Pavel Machek wrote: >>> Hi! >>> This patch series implements something along the lines of KAISER for arm64: https://gruss.cc/files/kaiser.pd

[PATCH AUTOSEL for 4.9 10/54] ARM: OMAP2+: Fix WL1283 Bluetooth Baud Rate

2017-11-22 Thread alexander . levin
From: Adam Ford [ Upstream commit a3ac350793d90d1da631c8b9352387974ed5 ] Commit 485fa1261f78 ("ARM: OMAP2+: LogicPD Torpedo + Wireless: Add Bluetooth") set the wrong baud rate for the UART. The Baud rate was 300,000 and it should be 3,000,000 for WL1283. Signed-off-by: Adam Ford Signed-off

[PATCH AUTOSEL for 4.9 11/54] ARM: OMAP1: DMA: Correct the number of logical channels

2017-11-22 Thread alexander . levin
From: Peter Ujfalusi [ Upstream commit 657279778af54f35e54b07b6687918f254a2992c ] OMAP1510, OMAP5910 and OMAP310 have only 9 logical channels. OMAP1610, OMAP5912, OMAP1710, OMAP730, and OMAP850 have 16 logical channels available. The wired 17 for the lch_count must have been used to cover the 1

[PATCH AUTOSEL for 4.9 30/54] drm/amdgpu: fix bug set incorrect value to vce register

2017-11-22 Thread alexander . levin
From: Rex Zhu [ Upstream commit e05208ded1905e500cd5b369d624b071951c68b9 ] Set the proper bits for clockgating setup. Signed-off-by: Rex Zhu Acked-by: Christian König Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/amdgpu/vce_v3_0.c | 2 +- 1 file changed, 1

[PATCH AUTOSEL for 4.9 32/54] net: sctp: fix array overrun read on sctp_timer_tbl

2017-11-22 Thread alexander . levin
From: Colin Ian King [ Upstream commit 0e73fc9a56f22f2eec4d2b2910c649f7af67b74d ] The comparison on the timeout can lead to an array overrun read on sctp_timer_tbl because of an off-by-one error. Fix this by using < instead of <= and also compare to the array size rather than SCTP_EVENT_TIMEOUT_

[PATCH AUTOSEL for 4.9 27/54] perf/x86/intel: Account interrupts for PEBS errors

2017-11-22 Thread alexander . levin
From: Jiri Olsa [ Upstream commit 475113d937adfd150eb82b5e2c5507125a68e7af ] It's possible to set up PEBS events to get only errors and not any data, like on SNB-X (model 45) and IVB-EP (model 62) via 2 perf commands running simultaneously: taskset -c 1 ./perf record -c 4 -e branches:pp -j

[PATCH AUTOSEL for 4.9 28/54] powerpc/mm: Fix memory hotplug BUG() on radix

2017-11-22 Thread alexander . levin
From: Reza Arbab [ Upstream commit 32b53c012e0bfe20b2745962a89db0dc72ef3270 ] Memory hotplug is leading to hash page table calls, even on radix: arch_add_memory create_section_mapping htab_bolt_mapping BUG_ON(!ppc_md.hpte_insert); To fix, refactor {create,remove}_section_ma

[PATCH AUTOSEL for 4.9 29/54] qla2xxx: Fix wrong IOCB type assumption

2017-11-22 Thread alexander . levin
From: Quinn Tran [ Upstream commit bb1181c9a8b46b6f10e749d9ed94480336445d7f ] qlt_reset is called with Immedidate Notify IOCB only. Current code wrongly cast it as ATIO IOCB. Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani Reviewed-by: Christoph Hellwig Signed-off-by: Bart Van Assc

[PATCH AUTOSEL for 4.9 05/54] dmaengine: stm32-dma: Fix null pointer dereference in stm32_dma_tx_status

2017-11-22 Thread alexander . levin
From: M'boumba Cedric Madianga [ Upstream commit 57b5a32135c813f2ab669039fb4ec16b30cb3305 ] chan->desc is always set to NULL when a DMA transfer is complete. As a DMA transfer could be complete during the call of stm32_dma_tx_status, we need to be sure that chan->desc is not NULL before using th

[PATCH AUTOSEL for 4.9 12/54] vti6: fix device register to report IFLA_INFO_KIND

2017-11-22 Thread alexander . levin
From: David Forster [ Upstream commit 93e246f783e6bd1bc64fdfbfe68b18161f69b28e ] vti6 interface is registered before the rtnl_link_ops block is attached. As a result the resulting RTM_NEWLINK is missing IFLA_INFO_KIND. Re-order attachment of rtnl_link_ops block to fix. Signed-off-by: Dave Forst

[PATCH AUTOSEL for 4.9 07/54] libcxgb: fix error check for ip6_route_output()

2017-11-22 Thread alexander . levin
From: Varun Prakash [ Upstream commit a9a8cdb368d99bb655b5cdabea560446db0527cc ] ip6_route_output() never returns NULL so check dst->error instead of !dst. Signed-off-by: Varun Prakash Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/chelsio/libcxgb/libcxgb

[PATCH AUTOSEL for 4.9 04/54] dmaengine: stm32-dma: Set correct args number for DMA request from DT

2017-11-22 Thread alexander . levin
From: M'boumba Cedric Madianga [ Upstream commit 7e96304d99477de1f70db42035071e56439da817 ] This patch sets the right number of arguments to be used for DMA clients which request channels from DT. Signed-off-by: M'boumba Cedric Madianga Reviewed-by: Ludovic BARRE Signed-off-by: Vinod Koul Si

[PATCH AUTOSEL for 4.9 06/54] usb: gadget: f_fs: Fix ExtCompat descriptor validation

2017-11-22 Thread alexander . levin
From: Vincent Pelletier [ Upstream commit 354bc45bf329494ef6051f3229ef50b9e2a7ea2a ] Reserved1 is documented as expected to be set to 0, but this test fails when it it set to 0. Reverse the condition. Signed-off-by: Vincent Pelletier Signed-off-by: Felipe Balbi Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL for 4.9 02/54] net/mlx4_en: Fix type mismatch for 32-bit systems

2017-11-22 Thread alexander . levin
From: Slava Shwartsman [ Upstream commit 61b6034c6cfdcb265bb453505c3d688e7567727a ] is_power_of_2 expects unsigned long and we pass u64 max_val_cycles, this will be truncated on 32 bit systems, and the result is not what we were expecting. div_u64 expects u32 as a second argument and we pass max

[PATCH AUTOSEL for 4.9 03/54] l2tp: take remote address into account in l2tp_ip and l2tp_ip6 socket lookups

2017-11-22 Thread alexander . levin
From: Guillaume Nault [ Upstream commit a9b2dff80be979432484afaf7f8d8e73f9e8838a ] For connected sockets, __l2tp_ip{,6}_bind_lookup() needs to check the remote IP when looking for a matching socket. Otherwise a connected socket can receive traffic not originating from its peer. Drop l2tp_ip_bin

[PATCH AUTOSEL for 4.9 10/56] fscrypt: use ENOKEY when file cannot be created w/o key

2017-11-22 Thread alexander . levin
From: Eric Biggers [ Upstream commit 54475f531bb8d7078f63c159e5e0615d486c498c ] As part of an effort to clean up fscrypt-related error codes, make attempting to create a file in an encrypted directory that hasn't been "unlocked" fail with ENOKEY. Previously, several error codes were used for th

[PATCH AUTOSEL for 4.9 09/54] net: systemport: Pad packet before inserting TSB

2017-11-22 Thread alexander . levin
From: Florian Fainelli [ Upstream commit 38e5a85562a6cd911fc26d951d576551a688574c ] Inserting the TSB means adding an extra 8 bytes in front the of packet that is going to be used as metadata information by the TDMA engine, but stripped off, so it does not really help with the packet padding. F

[PATCH AUTOSEL for 4.9 01/54] dax: Avoid page invalidation races and unnecessary radix tree traversals

2017-11-22 Thread alexander . levin
From: Jan Kara [ Upstream commit e3fce68cdbed297d927e993b3ea7b8b1cee545da ] Currently dax_iomap_rw() takes care of invalidating page tables and evicting hole pages from the radix tree when write(2) to the file happens. This invalidation is only necessary when there is some block allocation resul

[PATCH AUTOSEL for 4.9 10/54] ARM: OMAP2+: Fix WL1283 Bluetooth Baud Rate

2017-11-22 Thread alexander . levin
From: Adam Ford [ Upstream commit a3ac350793d90d1da631c8b9352387974ed5 ] Commit 485fa1261f78 ("ARM: OMAP2+: LogicPD Torpedo + Wireless: Add Bluetooth") set the wrong baud rate for the UART. The Baud rate was 300,000 and it should be 3,000,000 for WL1283. Signed-off-by: Adam Ford Signed-off

[PATCH AUTOSEL for 4.9 13/54] be2net: fix accesses to unicast list

2017-11-22 Thread alexander . levin
From: Ivan Vecera [ Upstream commit 1d0f110a2c6c4bca3dbcc4b0e27f1e3dc2d44a2c ] Commit 988d44b "be2net: Avoid redundant addition of mac address in HW" introduced be_dev_mac_add & be_uc_mac_add helpers that incorrectly access adapter->uc_list as an array of bytes instead of an array of be_eth_addr

[PATCH AUTOSEL for 4.9 04/56] RDS: RDMA: fix the ib_map_mr_sg_zbva() argument

2017-11-22 Thread alexander . levin
From: Santosh Shilimkar [ Upstream commit 3e56c2f856d7aba6a03feea834d68f9c05f7d0b6 ] Fixes warning: Using plain integer as NULL pointer Signed-off-by: Santosh Shilimkar Signed-off-by: Sasha Levin --- net/rds/ib_frmr.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/n

RE: [PATCH AUTOSEL for 4.9 01/56] ACPICA: Resources: Not a valid resource if buffer length too long

2017-11-22 Thread alexander . levin
On Mon, Nov 20, 2017 at 05:22:37PM +, Schmauss, Erik wrote: >> -Original Message- >> From: alexander.le...@verizon.com [mailto:alexander.le...@verizon.com] >> Sent: Thursday, November 16, 2017 4:56 PM >> To: Schmauss, Erik >> Cc: Moore, Robert ; linux-kernel@vger.kernel.org; >> sta...@

Re: [PATCH V2 09/29] drm/i915: deprecate pci_get_bus_and_slot()

2017-11-22 Thread Sinan Kaya
On 11/22/2017 5:49 PM, Sinan Kaya wrote: > static int i915_get_bridge_dev(struct drm_i915_private *dev_priv) > { > - dev_priv->bridge_dev = pci_get_bus_and_slot(0, PCI_DEVFN(0, 0)); > + u32 domain = pci_domain_nr(dev_priv->drm.pdev->bus); I'll convert domain type to int on the next versi

[PATCH AUTOSEL for 4.9 11/56] fscrypt: use ENOTDIR when setting encryption policy on nondirectory

2017-11-22 Thread alexander . levin
From: Eric Biggers [ Upstream commit dffd0cfa06d4ed83bb3ae8eb067989ceec5d18e1 ] As part of an effort to clean up fscrypt-related error codes, make FS_IOC_SET_ENCRYPTION_POLICY fail with ENOTDIR when the file descriptor does not refer to a directory. This is more descriptive than EINVAL, which w

[PATCH AUTOSEL for 4.9 01/56] ACPICA: Resources: Not a valid resource if buffer length too long

2017-11-22 Thread alexander . levin
From: Bob Moore [ Upstream commit 57707a9a7780fab426b8ae9b4c7b65b912a748b3 ] ACPICA commit 9f76de2d249b18804e35fb55d14b1c2604d627a1 ACPICA commit b2e89d72ef1e9deefd63c3fd1dee90f893575b3a ACPICA commit 23b5bbe6d78afd3c5abf3adb91a1b098a3000b2e The declared buffer length must be the same as the le

[PATCH AUTOSEL for 4.9 12/54] vti6: fix device register to report IFLA_INFO_KIND

2017-11-22 Thread alexander . levin
From: David Forster [ Upstream commit 93e246f783e6bd1bc64fdfbfe68b18161f69b28e ] vti6 interface is registered before the rtnl_link_ops block is attached. As a result the resulting RTM_NEWLINK is missing IFLA_INFO_KIND. Re-order attachment of rtnl_link_ops block to fix. Signed-off-by: Dave Forst

[PATCH AUTOSEL for 4.9 09/56] dmaengine: zx: set DMA_CYCLIC cap_mask bit

2017-11-22 Thread alexander . levin
From: Shawn Guo [ Upstream commit fc318d64f3d91e15babac00e08354b1beb650b57 ] The zx_dma driver supports cyclic transfer mode. Let's set DMA_CYCLIC cap_mask bit to make that clear, and avoid unnecessary failure when clients request channel via dma_request_chan_by_mask() with DMA_CYCLIC bit set i

[PATCH AUTOSEL for 4.9 11/54] ARM: OMAP1: DMA: Correct the number of logical channels

2017-11-22 Thread alexander . levin
From: Peter Ujfalusi [ Upstream commit 657279778af54f35e54b07b6687918f254a2992c ] OMAP1510, OMAP5910 and OMAP310 have only 9 logical channels. OMAP1610, OMAP5912, OMAP1710, OMAP730, and OMAP850 have 16 logical channels available. The wired 17 for the lch_count must have been used to cover the 1

[PATCH AUTOSEL for 4.9 08/56] clk: sunxi-ng: fix PLL_CPUX adjusting on A33

2017-11-22 Thread alexander . levin
From: Icenowy Zheng [ Upstream commit 790d929b540661945d1c70652ffb602c5c06ad85 ] When adjusting PLL_CPUX on A33, the PLL is temporarily driven too high, and the system hangs. Add a notifier to avoid this situation by temporarily switching to a known stable 24 MHz oscillator. Signed-off-by: Ice

[PATCH AUTOSEL for 4.9 04/54] dmaengine: stm32-dma: Set correct args number for DMA request from DT

2017-11-22 Thread alexander . levin
From: M'boumba Cedric Madianga [ Upstream commit 7e96304d99477de1f70db42035071e56439da817 ] This patch sets the right number of arguments to be used for DMA clients which request channels from DT. Signed-off-by: M'boumba Cedric Madianga Reviewed-by: Ludovic BARRE Signed-off-by: Vinod Koul Si

[PATCH AUTOSEL for 4.9 01/54] dax: Avoid page invalidation races and unnecessary radix tree traversals

2017-11-22 Thread alexander . levin
From: Jan Kara [ Upstream commit e3fce68cdbed297d927e993b3ea7b8b1cee545da ] Currently dax_iomap_rw() takes care of invalidating page tables and evicting hole pages from the radix tree when write(2) to the file happens. This invalidation is only necessary when there is some block allocation resul

[PATCH AUTOSEL for 4.9 02/54] net/mlx4_en: Fix type mismatch for 32-bit systems

2017-11-22 Thread alexander . levin
From: Slava Shwartsman [ Upstream commit 61b6034c6cfdcb265bb453505c3d688e7567727a ] is_power_of_2 expects unsigned long and we pass u64 max_val_cycles, this will be truncated on 32 bit systems, and the result is not what we were expecting. div_u64 expects u32 as a second argument and we pass max

[PATCH AUTOSEL for 4.9 07/56] clk: sunxi-ng: A31: Fix spdif clock register

2017-11-22 Thread alexander . levin
From: Marcus Cooper [ Upstream commit 70421257c068b91476e70cade15fca68045d0693 ] As the SPDIF was rarely documented on the earlier Allwinner SoCs it was assumed that it had a similar clock register to the one described in the H3 User Manual. However this is not the case and it looks to shares t

[PATCH AUTOSEL for 4.9 02/56] RDS: make message size limit compliant with spec

2017-11-22 Thread alexander . levin
From: Avinash Repaka [ Upstream commit f9fb69adb6c7acca60977a4db5a5f95b8e66c041 ] RDS support max message size as 1M but the code doesn't check this in all cases. Patch fixes it for RDMA & non-RDMA and RDS MR size and its enforced irrespective of underlying transport. Signed-off-by: Avinash Rep

[PATCH AUTOSEL for 4.9 08/54] net: systemport: Utilize skb_put_padto()

2017-11-22 Thread alexander . levin
From: Florian Fainelli [ Upstream commit bb7da333d0a9f3bddc08f84187b7579a3f68fd24 ] Since we need to pad our packets, utilize skb_put_padto() which increases skb->len by how much we need to pad, allowing us to eliminate the test on skb->len right below. Signed-off-by: Florian Fainelli Signed-o

Re: [PATCH] hwmon: (pmbus/lm25066) Swap low/high current coefficients for LM5066(i)

2017-11-22 Thread Guenter Roeck
On Wed, Nov 22, 2017 at 02:07:28PM -0800, Robert Lippert wrote: > The _L low-current mode coefficient values should reference the > datasheet rows with CL=VDD but it seems were mistakenly pulled from > the rows with CL=GND. > > This causes the current/power to be reported as approximately double >

Re: [PATCH 1/2] ALSA: pcm: add SNDRV_PCM_FORMAT_{S, U}20_4

2017-11-22 Thread Takashi Sakamoto
On Nov 23 2017 04:17, Maciej S. Szmigiero wrote: This format is similar to existing SNDRV_PCM_FORMAT_{S,U}20_3 that keep 20-bit PCM samples in 3 bytes, however i.MX6 platform SSI FIFO does not allow 3-byte accesses (including DMA) so a 4-byte format is needed for it. Signed-off-by: Maciej S. Szm

[PATCH AUTOSEL for 4.9 03/56] RDS: RDMA: return appropriate error on rdma map failures

2017-11-22 Thread alexander . levin
From: Santosh Shilimkar [ Upstream commit 584a8279a44a800dea5a5c1e9d53a002e03016b4 ] The first message to a remote node should prompt a new connection even if it is RDMA operation. For RDMA operation the MR mapping can fail because connections is not yet up. Since the connection establishment i

[PATCH AUTOSEL for 4.9 06/56] drm/sun4i: Fix a return value in case of error

2017-11-22 Thread alexander . levin
From: Christophe JAILLET [ Upstream commit 0f0861e31e3c59ca4bc1ec59d99260cfca79740e ] If 'sun4i_backend_drm_format_to_layer()' does not return 0, then 'val' is left unmodified. As it is not initialized either, the return value can be anything. It is likely that returning the error code was expe

[PATCH AUTOSEL for 4.9 05/56] PCI: Apply _HPX settings only to relevant devices

2017-11-22 Thread alexander . levin
From: Bjorn Helgaas [ Upstream commit 977509f7c5c6fb992ffcdf4291051af343b91645 ] Previously we didn't check the type of device before trying to apply Type 1 (PCI-X) or Type 2 (PCIe) Setting Records from _HPX. We don't support PCI-X Setting Records, so this was harmless, but the warning was usel

[PATCH AUTOSEL for 4.9 06/54] usb: gadget: f_fs: Fix ExtCompat descriptor validation

2017-11-22 Thread alexander . levin
From: Vincent Pelletier [ Upstream commit 354bc45bf329494ef6051f3229ef50b9e2a7ea2a ] Reserved1 is documented as expected to be set to 0, but this test fails when it it set to 0. Reverse the condition. Signed-off-by: Vincent Pelletier Signed-off-by: Felipe Balbi Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL for 4.9 05/54] dmaengine: stm32-dma: Fix null pointer dereference in stm32_dma_tx_status

2017-11-22 Thread alexander . levin
From: M'boumba Cedric Madianga [ Upstream commit 57b5a32135c813f2ab669039fb4ec16b30cb3305 ] chan->desc is always set to NULL when a DMA transfer is complete. As a DMA transfer could be complete during the call of stm32_dma_tx_status, we need to be sure that chan->desc is not NULL before using th

[PATCH AUTOSEL for 4.9 07/54] libcxgb: fix error check for ip6_route_output()

2017-11-22 Thread alexander . levin
From: Varun Prakash [ Upstream commit a9a8cdb368d99bb655b5cdabea560446db0527cc ] ip6_route_output() never returns NULL so check dst->error instead of !dst. Signed-off-by: Varun Prakash Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/chelsio/libcxgb/libcxgb

Re: [PATCH 09/30] x86, kaiser: only populate shadow page tables for userspace

2017-11-22 Thread Dave Hansen
On 11/21/2017 07:44 PM, Andy Lutomirski wrote: >> So, I guess we could enforce that only PGDs with _PAGE_USER set can ever >> be cleared. That has a nice symmetry to it because we set the shadow >> when we see _PAGE_USER and we would then clear the shadow when we see >> _PAGE_USER. > Is this code

Re: [serial8250_interrupt] RIP: 0010:arch_local_irq_restore+0x2/0x8

2017-11-22 Thread Fengguang Wu
On Tue, Nov 21, 2017 at 04:39:14PM +0200, Andy Shevchenko wrote: On Tue, 2017-11-21 at 21:31 +0800, Fengguang Wu wrote: On Tue, Nov 21, 2017 at 08:33:57PM +0800, Fengguang Wu wrote: > Hello, > > FYI this happens in mainline kernel 4.14.0-02748-gabc36be. > It shows up since v4.13 . Sorry it actu

Re: [PATCH 00/18] arm64: Unmap the kernel whilst running in userspace (KAISER)

2017-11-22 Thread Pavel Machek
Hi! > >>> If I'm willing to do timing attacks to defeat KASLR... what prevents > >>> me from using CPU caches to do that? > >>> > >> > >> Because it is impossible to get a cache hit on an access to an > >> unmapped address? > > > > Um, no, I don't need to be able to directly access kernel addre

Re: [PATCH] hwmon: (pmbus/lm25066) Swap low/high current coefficients for LM5066(i)

2017-11-22 Thread Rob Lippert
On Wed, Nov 22, 2017 at 3:28 PM, Guenter Roeck wrote: > > On Wed, Nov 22, 2017 at 02:07:28PM -0800, Robert Lippert wrote: > > The _L low-current mode coefficient values should reference the > > datasheet rows with CL=VDD but it seems were mistakenly pulled from > > the rows with CL=GND. > > > > Th

Re: [serial8250_interrupt] RIP: 0010:arch_local_irq_restore+0x2/0x8

2017-11-22 Thread Fengguang Wu
On Thu, Nov 23, 2017 at 07:36:23AM +0800, Fengguang Wu wrote: On Tue, Nov 21, 2017 at 04:39:14PM +0200, Andy Shevchenko wrote: On Tue, 2017-11-21 at 21:31 +0800, Fengguang Wu wrote: On Tue, Nov 21, 2017 at 08:33:57PM +0800, Fengguang Wu wrote: > Hello, > > FYI this happens in mainline kernel 4.

Re: [PATCH 1/2] ALSA: pcm: add SNDRV_PCM_FORMAT_{S, U}20_4

2017-11-22 Thread Maciej S. Szmigiero
On 23.11.2017 00:27, Takashi Sakamoto wrote: > On Nov 23 2017 04:17, Maciej S. Szmigiero wrote: (..) >> --- a/include/uapi/sound/asound.h >> +++ b/include/uapi/sound/asound.h >> @@ -236,7 +236,11 @@ typedef int __bitwise snd_pcm_format_t; >>   #define    SNDRV_PCM_FORMAT_DSD_U32_LE    ((__force snd

[GIT PULL] platform-drivers-x86 for 4.15-2

2017-11-22 Thread Darren Hart
Hi Linus, No merge-specific notes for this pull request, content described below in the tag. The following changes since commit aaa40965d2342137d756121993c395e2a7463a8d: platform/x86: silead_dmi: Add silead, home-button property to some tablets (2017-11-18 19:28:58 +0200) are available in th

Clang patch stacks for LTS kernels and status update

2017-11-22 Thread Matthias Kaehlcke
This is a follow-up on my earlier post on clang patch stacks for LTS kernels (https://lkml.org/lkml/2017/8/22/912). In the meantime v4.14 (LTS) has been released, which includes almost all changes for basic clang support, also a few issues have been fixed in clang. Status of v4.14: - all archs

Re: [PATCH v1] PCI: Remove unused HyperTransport interrupt support

2017-11-22 Thread Eric W. Biederman
Bjorn Helgaas writes: > From: Bjorn Helgaas > > There are no in-tree callers of ht_create_irq(), the driver interface for > HyperTransport interrupts. Remove the unused entry point and all the > supporting code. > > See 8b955b0dddb3 ("[PATCH] Initial generic hypertransport interrupt > support")

Re: [PATCHv3] drm: adv7511/33: Fix adv7511_cec_init() failure handling

2017-11-22 Thread John Stultz
On Tue, Nov 21, 2017 at 12:17 AM, Hans Verkuil wrote: > If the device tree for a board did not specify a cec clock, then > adv7511_cec_init would return an error, which would cause adv7511_probe() > to fail and thus there is no HDMI output. > > There is no need to have adv7511_probe() fail if the

Re: [PATCH v2 13/13] nubus: Add support for the driver model

2017-11-22 Thread Finn Thain
On Mon, 20 Nov 2017, I wrote: > > You need to free up the memory allocated, and I don't see that > > happening here ... The kernel should yell at you ... > > WARN(1, KERN_ERR "Device '%s' does not have a release() " > "function, it is broken and must be f

[PATCH 3/3] tools/perf/jvmti: generate correct debug information for inlined code

2017-11-22 Thread Kim Phillips
From: Ben Gainey tools/perf/jvmti is broken in so far as it generates incorrect debug information. Specifically it attributes all debug lines to the original method being output even in the case that some code is being inlined from elsewhere. This patch fixes the issue. To test (from within lin

[PATCH 2/3] perf bench futex: synchronize 'bench futex wake-parallel' wakers

2017-11-22 Thread Kim Phillips
From: James Yang Waker threads in the futex wake-parallel benchmark are started by a loop using pthread_create(). However, there is no synchronization for when the waker threads wake the waiting threads. Comparison of the waker threads' measurement timestamps show they are not all running concu

[PATCH 1/3] perf bench futex: benchmark only online CPUs

2017-11-22 Thread Kim Phillips
From: James Yang The "perf bench futex" benchmarks have a problem when not all CPUs in the system are online: perf assumes the CPUs that are online are contiguously numbered and assigns processor affinity to the threads by modulo striping. When the online CPUs are not contiguously numbered, per

[PATCH 3/4] cpufreq: Fix governor module removal race

2017-11-22 Thread Rafael J. Wysocki
From: Rafael J. Wysocki It is possible to remove a cpufreq governor module after cpufreq_parse_governor() has returned success in store_scaling_governor() and before cpufreq_set_policy() acquires a reference to it, because the governor list is not protected during that period and nothing prevents

[PATCH 4/4] cpufreq: Drop pointless return statement

2017-11-22 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Drop a pointless return statement from cpufreq_unregister_governor(). Signed-off-by: Rafael J. Wysocki --- drivers/cpufreq/cpufreq.c |1 - 1 file changed, 1 deletion(-) Index: linux-pm/drivers/cpufreq/cpufreq.c ==

[PATCH 0/4] cpufreq: Cleanups and governor module removal race fix

2017-11-22 Thread Rafael J. Wysocki
Hi, This series contains cleanup patches related to governor management, mostly for cpufreq_parse_governor(), and a fix for a governor module removal race. Thanks, Rafael

[PATCH 1/4] cpufreq: Clean up cpufreq_parse_governor()

2017-11-22 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Drop an unnecessary local variable from cpufreq_parse_governor() and rearrange the code in there to make it easier to follow. Signed-off-by: Rafael J. Wysocki --- drivers/cpufreq/cpufreq.c | 32 +--- 1 file changed, 17 insertions(+), 15 del

[PATCH 2/4] cpufreq: Pass policy pointer to cpufreq_parse_governor()

2017-11-22 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Pass policy pointer to cpufreq_parse_governor() instead of passing pointers to two members of it so as to make the code slightly more straightforward. Signed-off-by: Rafael J. Wysocki --- drivers/cpufreq/cpufreq.c | 16 +++- 1 file changed, 7 insertions(+)

[PATCH] net-sysfs: export gso_max_size attribute

2017-11-22 Thread Solio Sarabia
The netdevice gso_max_size is exposed to allow users fine-control on systems with multiple NICs with different GSO buffer sizes, and where the virtual devices like bridge and veth, need to be aware of the GSO size of the underlying devices. In a virtualized environment, setting the right GSO sizes

<    4   5   6   7   8   9   10   11   >