[PATCH AUTOSEL 4.18 057/100] KVM: nVMX: Do not expose MPX VMX controls when guest MPX disabled

2018-10-15 Thread Sasha Levin
From: Liran Alon [ Upstream commit 5f76f6f5ff96587af5acd5930f7d9fea81e0d1a8 ] Before this commit, KVM exposes MPX VMX controls to L1 guest only based on if KVM and host processor supports MPX virtualization. However, these controls should be exposed to guest only in case guest vCPU supports MPX.

[PATCH AUTOSEL 4.18 059/100] KVM: nVMX: Fix emulation of VM_ENTRY_LOAD_BNDCFGS

2018-10-15 Thread Sasha Levin
From: Liran Alon [ Upstream commit 62cf9bd8118c4009f02c477ef78c723f49e53e16 ] L2 IA32_BNDCFGS should be updated with vmcs12->guest_bndcfgs only when VM_ENTRY_LOAD_BNDCFGS is specified in vmcs12->vm_entry_controls. Otherwise, L2 IA32_BNDCFGS should be set to vmcs01->guest_bndcfgs which is L1 IA3

[PATCH AUTOSEL 4.18 058/100] KVM: x86: Do not use kvm_x86_ops->mpx_supported() directly

2018-10-15 Thread Sasha Levin
From: Liran Alon [ Upstream commit 503234b3fdcaa578395c07e393ea3e5d13958824 ] Commit a87036add092 ("KVM: x86: disable MPX if host did not enable MPX XSAVE features") introduced kvm_mpx_supported() to return true iff MPX is enabled in the host. However, that commit seems to have missed replacing

[PATCH AUTOSEL 4.18 060/100] net/mlx5: E-Switch, Fix out of bound access when setting vport rate

2018-10-15 Thread Sasha Levin
From: Eran Ben Elisha [ Upstream commit 11aa5800ed66ed0415b7509f02881c76417d212a ] The code that deals with eswitch vport bw guarantee was going beyond the eswitch vport array limit, fix that. This was pointed out by the kernel address sanitizer (KASAN). The error from KASAN log: [2018-09-15 1

[PATCH AUTOSEL 4.18 050/100] sr9800: Check for supported Wake-on-LAN modes

2018-10-15 Thread Sasha Levin
From: Florian Fainelli [ Upstream commit c5cb93e994ffb43b7b3b1ff10b9f928f54574a36 ] The driver currently silently accepts unsupported Wake-on-LAN modes (other than WAKE_PHY or WAKE_MAGIC) without reporting that to the user, which is confusing. Fixes: 19a38d8e0aa3 ("USB2NET : SR9800 : One chip U

[PATCH AUTOSEL 4.18 051/100] r8152: Check for supported Wake-on-LAN Modes

2018-10-15 Thread Sasha Levin
From: Florian Fainelli [ Upstream commit f2750df1548bd8a2b060eb609fc43ca82811af4c ] The driver does not check for Wake-on-LAN modes specified by an user, but will conditionally set the device as wake-up enabled or not based on that, which could be a very confusing user experience. Fixes: 21ff2e

[PATCH AUTOSEL 4.18 052/100] smsc75xx: Check for Wake-on-LAN modes

2018-10-15 Thread Sasha Levin
From: Florian Fainelli [ Upstream commit 9c734b2769a73eea2e9e9767c0e0bf839ff23679 ] The driver does not check for Wake-on-LAN modes specified by an user, but will conditionally set the device as wake-up enabled or not based on that, which could be a very confusing user experience. Fixes: 6c6365

Re: [PATCH net] r8169: Enable MSI-X on RTL8106e

2018-10-15 Thread David Miller
From: Jian-Hong Pan Date: Mon, 15 Oct 2018 16:51:12 +0800 > 2018-10-02 13:57 GMT+08:00 Jian-Hong Pan : >> David Miller 於 2018年10月2日 週二 下午1:51寫道: >>> >>> From: Jian-Hong Pan >>> Date: Thu, 27 Sep 2018 12:09:48 +0800 >>> >>> > However, there is a commit which resolves the drivers getting nothing

[PATCH AUTOSEL 4.18 046/100] qed: Fix shmem structure inconsistency between driver and the mfw.

2018-10-15 Thread Sasha Levin
From: Sudarsana Reddy Kalluru [ Upstream commit 5f672090e44f4951084c5e1d6b0668a5fc422af8 ] The structure shared between driver and the management FW (mfw) differ in sizes. This would lead to issues when driver try to access the structure members which are not-aligned with the mfw copy e.g., data

[PATCH AUTOSEL 4.18 043/100] rxrpc: Fix error distribution

2018-10-15 Thread Sasha Levin
From: David Howells [ Upstream commit f334430316e7fd37c4821ebec627e27714bb5d76 ] Fix error distribution by immediately delivering the errors to all the affected calls rather than deferring them to a worker thread. The problem with the latter is that retries and things can happen in the meantime

[PATCH AUTOSEL 4.18 045/100] netfilter: avoid erronous array bounds warning

2018-10-15 Thread Sasha Levin
From: Florian Westphal [ Upstream commit 421c119f558761556afca6a62ad183bc2d8659e0 ] Unfortunately some versions of gcc emit following warning: $ make net/xfrm/xfrm_output.o linux/compiler.h:252:20: warning: array subscript is above array bounds [-Warray-bounds] hook_head = rcu_dereference

[PATCH AUTOSEL 4.18 041/100] rxrpc: Fix RTT gathering

2018-10-15 Thread Sasha Levin
From: David Howells [ Upstream commit b604dd9883f783a94020d772e4fe03160f455372 ] Fix RTT information gathering in AF_RXRPC by the following means: (1) Enable Rx timestamping on the transport socket with SO_TIMESTAMPNS. (2) If the sk_buff doesn't have a timestamp set when rxrpc_data_ready()

[PATCH AUTOSEL 4.18 047/100] asix: Check for supported Wake-on-LAN modes

2018-10-15 Thread Sasha Levin
From: Florian Fainelli [ Upstream commit c4ce446e33d7a0e978256ac6fea4c80e59d9de5f ] The driver currently silently accepts unsupported Wake-on-LAN modes (other than WAKE_PHY or WAKE_MAGIC) without reporting that to the user, which is confusing. Fixes: 2e55cc7210fe ("[PATCH] USB: usbnet (3/9) mod

[PATCH AUTOSEL 4.18 048/100] ax88179_178a: Check for supported Wake-on-LAN modes

2018-10-15 Thread Sasha Levin
From: Florian Fainelli [ Upstream commit 5ba6b4aa9a410c5e2c6417df52b5e2118ea9b467 ] The driver currently silently accepts unsupported Wake-on-LAN modes (other than WAKE_PHY or WAKE_MAGIC) without reporting that to the user, which is confusing. Fixes: e2ca90c276e1 ("ax88179_178a: ASIX AX88179_17

[PATCH AUTOSEL 4.18 044/100] netfilter: nft_set_rbtree: add missing rb_erase() in GC routine

2018-10-15 Thread Sasha Levin
From: Taehee Yoo [ Upstream commit a13f814a67b12a2f29d1decf4b4f4e700658a517 ] The nft_set_gc_batch_check() checks whether gc buffer is full. If gc buffer is full, gc buffer is released by the nft_set_gc_batch_complete() internally. In case of rbtree, the rb_erase() should be called before callin

[PATCH AUTOSEL 4.18 042/100] rxrpc: Fix transport sockopts to get IPv4 errors on an IPv6 socket

2018-10-15 Thread Sasha Levin
From: David Howells [ Upstream commit 37a675e768d7606fe8a53e0c459c9b53e121ac20 ] It seems that enabling IPV6_RECVERR on an IPv6 socket doesn't also turn on IP_RECVERR, so neither local errors nor ICMP-transported remote errors from IPv4 peer addresses are returned to the AF_RXRPC protocol. Make

[PATCH AUTOSEL 4.18 040/100] rxrpc: Fix checks as to whether we should set up a new call

2018-10-15 Thread Sasha Levin
From: David Howells [ Upstream commit dc71db34e4f3c06b8277c8f3c2ff014610607a8c ] There's a check in rxrpc_data_ready() that's checking the CLIENT_INITIATED flag in the packet type field rather than in the packet flags field. Fix this by creating a pair of helper functions to check whether the p

[PATCH AUTOSEL 4.18 034/100] bonding: avoid possible dead-lock

2018-10-15 Thread Sasha Levin
From: Mahesh Bandewar [ Upstream commit d4859d749aa7090ffb743d15648adb962a1baeae ] Syzkaller reported this on a slightly older kernel but it's still applicable to the current kernel - == WARNING: possible circular locking dependency detected 4

[PATCH AUTOSEL 4.18 035/100] qed: Avoid constant logical operation warning in qed_vf_pf_acquire

2018-10-15 Thread Sasha Levin
From: Nathan Chancellor [ Upstream commit 1c492a9d55ba99079210ed901dd8a5423f980487 ] Clang warns when a constant is used in a boolean context as it thinks a bitwise operation may have been intended. drivers/net/ethernet/qlogic/qed/qed_vf.c:415:27: warning: use of logical '&&' with constant oper

[PATCH AUTOSEL 4.18 036/100] qed: Avoid implicit enum conversion in qed_iwarp_parse_rx_pkt

2018-10-15 Thread Sasha Levin
From: Nathan Chancellor [ Upstream commit 77f2d753819b7d50c16abfb778caf1fe075faed0 ] Clang warns when one enumerated type is implicitly converted to another. drivers/net/ethernet/qlogic/qed/qed_iwarp.c:1713:25: warning: implicit conversion from enumeration type 'enum tcp_ip_version' to differen

[PATCH AUTOSEL 4.18 039/100] scsi: qedi: Initialize the stats mutex lock

2018-10-15 Thread Sasha Levin
From: Nilesh Javali [ Upstream commit 3cc5746e5ad7688e274e193fa71278d98aa52759 ] Fix kernel NULL pointer dereference, Call Trace: [] __mutex_lock_slowpath+0xa6/0x1d0 [] mutex_lock+0x1f/0x2f [] qedi_get_protocol_tlv_data+0x61/0x450 [qedi] [] ? map_vm_area+0x2e/0x40 [] ? __vmalloc_node_

[PATCH AUTOSEL 4.18 033/100] bonding: pass link-local packets to bonding master also.

2018-10-15 Thread Sasha Levin
From: Mahesh Bandewar [ Upstream commit 6a9e461f6fe4434e6172304b69774daff9a3ac4c ] Commit b89f04c61efe ("bonding: deliver link-local packets with skb->dev set to link that packets arrived on") changed the behavior of how link-local-multicast packets are processed. The change in the behavior brok

[PATCH AUTOSEL 4.18 032/100] qed: Avoid implicit enum conversion in qed_roce_mode_to_flavor

2018-10-15 Thread Sasha Levin
From: Nathan Chancellor [ Upstream commit d3a315795b4ce8b105a64a90699103121bde04a8 ] Clang warns when one enumerated type is implicitly converted to another. drivers/net/ethernet/qlogic/qed/qed_roce.c:153:12: warning: implicit conversion from enumeration type 'enum roce_mode' to different enume

[PATCH AUTOSEL 4.18 029/100] pxa168fb: prepare the clock

2018-10-15 Thread Sasha Levin
From: Lubomir Rintel [ Upstream commit d85536cde91fcfed6fb8d983783bd2b92c843939 ] Add missing prepare/unprepare operations for fbi->clk, this fixes following kernel warning: [ cut here ] WARNING: CPU: 0 PID: 1 at drivers/clk/clk.c:874 clk_core_enable+0x2c/0x1b0 Ena

[PATCH AUTOSEL 4.18 031/100] qed: Fix mask parameter in qed_vf_prep_tunn_req_tlv

2018-10-15 Thread Sasha Levin
From: Nathan Chancellor [ Upstream commit db803f36e56f23b5a2266807e190d1dc11554d54 ] Clang complains when one enumerated type is implicitly converted to another. drivers/net/ethernet/qlogic/qed/qed_vf.c:686:6: warning: implicit conversion from enumeration type 'enum qed_tunn_mode' to different

[PATCH AUTOSEL 4.18 030/100] qed: Avoid implicit enum conversion in qed_set_tunn_cls_info

2018-10-15 Thread Sasha Levin
From: Nathan Chancellor [ Upstream commit a898fba32229efd5e6b6154f83fa86a7145156b9 ] Clang warns when one enumerated type is implicitly converted to another. drivers/net/ethernet/qlogic/qed/qed_sp_commands.c:163:25: warning: implicit conversion from enumeration type 'enum tunnel_clss' to differ

[PATCH AUTOSEL 4.18 028/100] Bluetooth: SMP: fix crash in unpairing

2018-10-15 Thread Sasha Levin
From: Matias Karhumaa [ Upstream commit cb28c306b93b71f2741ce1a5a66289db26715f4d ] In case unpair_device() was called through mgmt interface at the same time when pairing was in progress, Bluetooth kernel module crash was seen. [ 600.351225] general protection fault: [#1] SMP PTI [ 600.3

[PATCH AUTOSEL 4.18 026/100] mac80211_hwsim: fix race in radio destruction from netlink notifier

2018-10-15 Thread Sasha Levin
From: Martin Willi [ Upstream commit f1c47eb61d52379de5747d02bb36be20d7a2d0d3 ] The asynchronous destruction from a work-queue of radios tagged with destroy-on-close may race with the owning namespace about to exit, resulting in potential use-after-free of that namespace. Instead of using a wor

[PATCH AUTOSEL 4.18 027/100] mac80211_hwsim: do not omit multicast announce of first added radio

2018-10-15 Thread Sasha Levin
From: Martin Willi [ Upstream commit 28ef8b49a338dc1844e86b7954cfffc7dfa2660a ] The allocation of hwsim radio identifiers uses a post-increment from 0, so the first radio has idx 0. This idx is explicitly excluded from multicast announcements ever since, but it is unclear why. Drop that idx che

[PATCH AUTOSEL 4.18 020/100] net: macb: Clean 64b dma addresses if they are not detected

2018-10-15 Thread Sasha Levin
From: Michal Simek [ Upstream commit e1e5d8a9fe737d94ccc0ccbaf0c97f69a8f3e000 ] Clear ADDR64 dma bit in DMACFG register in case that HW_DMA_CAP_64B is not detected on 64bit system. The issue was observed when bootloader(u-boot) does not check macb feature at DCFG6 register (DAW64_OFFSET) and ena

[PATCH AUTOSEL 4.18 018/100] arm64: hugetlb: Fix handling of young ptes

2018-10-15 Thread Sasha Levin
From: Steve Capper [ Upstream commit 469ed9d823b7d240d6b9574f061ded7c3834c167 ] In the contiguous bit hugetlb break-before-make code we assume that all hugetlb pages are young. In fact, remove_migration_pte is able to place an old hugetlb pte so this assumption is not valid. This patch fixes t

[PATCH AUTOSEL 4.18 023/100] soc: fsl: qe: Fix copy/paste bug in ucc_get_tdm_sync_shift()

2018-10-15 Thread Sasha Levin
From: Zhao Qiang [ Upstream commit 96fc74333f84cfdf8d434c6c07254e215e2aad00 ] There is a copy and paste bug so we accidentally use the RX_ shift when we're in TX_ mode. Fixes: bb8b2062aff3 ("fsl/qe: setup clock source for TDM mode") Signed-off-by: Dan Carpenter Signed-off-by: Zhao Qiang Signe

[PATCH AUTOSEL 4.18 013/100] xfrm: validate template mode

2018-10-15 Thread Sasha Levin
From: Sean Tranchetti [ Upstream commit 32bf94fb5c2ec4ec842152d0e5937cd4bb6738fa ] XFRM mode parameters passed as part of the user templates in the IP_XFRM_POLICY are never properly validated. Passing values other than valid XFRM modes can cause stack-out-of-bounds reads to occur later in the XF

[PATCH AUTOSEL 4.18 025/100] mac80211_hwsim: fix locking when iterating radios during ns exit

2018-10-15 Thread Sasha Levin
From: Martin Willi [ Upstream commit 628980e5c8f038f730582c6ee50b7410741cd96e ] The cleanup of radios during namespace exit has recently been reworked to directly delete a radio while temporarily releasing the spinlock, fixing a race condition between the work-queue execution and namespace exits

[PATCH AUTOSEL 4.18 022/100] soc: fsl: qbman: qman: avoid allocating from non existing gen_pool

2018-10-15 Thread Sasha Levin
From: Alexandre Belloni [ Upstream commit 64e9e22e68512da8df3c9a7430f07621e48db3c2 ] If the qman driver didn't probe, calling qman_alloc_fqid_range, qman_alloc_pool_range or qman_alloc_cgrid_range (as done in dpaa_eth) will pass a NULL pointer to gen_pool_alloc, leading to a NULL pointer derefer

[PATCH AUTOSEL 4.18 021/100] net: hns: fix for unmapping problem when SMMU is on

2018-10-15 Thread Sasha Levin
From: Yunsheng Lin [ Upstream commit 2e9361efa707e186d91b938e44f9e326725259f7 ] If SMMU is on, there is more likely that skb_shinfo(skb)->frags[i] can not send by a single BD. when this happen, the hns_nic_net_xmit_hw function map the whole data in a frags using skb_frag_dma_map, but unmap each

[PATCH AUTOSEL 4.18 024/100] nl80211: Fix possible Spectre-v1 for NL80211_TXRATE_HT

2018-10-15 Thread Sasha Levin
From: Masashi Honma [ Upstream commit 30fe6d50eb088783c8729c7d930f65296b2b3fa7 ] Use array_index_nospec() to sanitize ridx with respect to speculation. Signed-off-by: Masashi Honma Signed-off-by: Johannes Berg Signed-off-by: Sasha Levin --- net/wireless/nl80211.c | 1 + 1 file changed, 1 in

[PATCH AUTOSEL 4.18 015/100] drm/i2c: tda9950: set MAX_RETRIES for errors only

2018-10-15 Thread Sasha Levin
From: Hans Verkuil [ Upstream commit e0dccce1193f87597548d0db6ecc942fb92c04cd ] The CEC_TX_STATUS_MAX_RETRIES should be set for errors only to prevent the CEC framework from retrying the transmit. If the transmit was successful, then don't set this flag. Found by running 'cec-compliance -A' on

[PATCH AUTOSEL 4.18 014/100] drm/i2c: tda9950: fix timeout counter check

2018-10-15 Thread Sasha Levin
From: Colin Ian King [ Upstream commit d98627d1360d55e3b28f702caca8b6342c4a4e45 ] Currently the check to see if the timeout has reached zero is incorrect and the check is instead checking if the timeout is non-zero and not zero, hence it will break out of the loop on the first iteration and the

[PATCH AUTOSEL 4.18 017/100] netfilter: conntrack: get rid of double sizeof

2018-10-15 Thread Sasha Levin
From: zhong jiang [ Upstream commit 346fa83d10934cf206e2fd0f514bf8ce186f08fe ] sizeof(sizeof()) is quite strange and does not seem to be what is wanted here. The issue is detected with the help of Coccinelle. Fixes: 39215846740a ("netfilter: conntrack: remove nlattr_size pointer from l4proto

[PATCH] mtd: rawnand: denali: include instead of

2018-10-15 Thread Masahiro Yamada
The reason of including here is just for BIT() and GENMASK macros. Since commit 8bd9cb51daac8 ("locking/atomics, asm-generic: Move some macros from to a new file"), is enough for such compile-time macros. Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/raw/denali.h | 2 +- 1 file chang

[PATCH] gpio: uniphier: include instead of

2018-10-15 Thread Masahiro Yamada
The reason of including here is just for BIT() and GENMASK macros. Since commit 8bd9cb51daac8 ("locking/atomics, asm-generic: Move some macros from to a new file"), is enough for such compile-time macros. Signed-off-by: Masahiro Yamada --- drivers/gpio/gpio-uniphier.c | 2 +- 1 file change

[PATCH AUTOSEL 4.18 011/100] xfrm: Fix NULL pointer dereference when skb_dst_force clears the dst_entry.

2018-10-15 Thread Sasha Levin
From: Steffen Klassert [ Upstream commit 9e1437937807b0122e8da1ca8765be2adca9aee6 ] Since commit 222d7dbd258d ("net: prevent dst uses after free") skb_dst_force() might clear the dst_entry attached to the skb. The xfrm code don't expect this to happen, so we crash with a NULL pointer dereference

[PATCH AUTOSEL 4.18 008/100] cfg80211: Address some corner cases in scan result channel updating

2018-10-15 Thread Sasha Levin
From: Jouni Malinen [ Upstream commit 119f94a6fefcc76d47075b83d2b73d04c895df78 ] cfg80211_get_bss_channel() is used to update the RX channel based on the available frame payload information (channel number from DSSS Parameter Set element or HT Operation element). This is needed on 2.4 GHz channe

[PATCH AUTOSEL 4.18 012/100] ARM: 8799/1: mm: fix pci_ioremap_io() offset check

2018-10-15 Thread Sasha Levin
From: Thomas Petazzoni [ Upstream commit 3a58ac65e2d7969bcdf1b6acb70fa4d12a88e53e ] IO_SPACE_LIMIT is the ending address of the PCI IO space, i.e something like 0xf (and not 0x10). Therefore, when offset = 0xf is passed as argument, this function fails even though the offset + SZ_64

[PATCH AUTOSEL 4.18 010/100] mac80211: fix TX status reporting for ieee80211s

2018-10-15 Thread Sasha Levin
From: Yuan-Chi Pang [ Upstream commit c42055105785580563535e6d3143cad95c7ac7ee ] TX status reporting to ieee80211s is through ieee80211s_update_metric. There are two problems about ieee80211s_update_metric: 1. The purpose is to estimate the fail probability to a specific link. No need to restri

[PATCH AUTOSEL 4.18 009/100] mac80211: TDLS: fix skb queue/priority assignment

2018-10-15 Thread Sasha Levin
From: Johannes Berg [ Upstream commit cb59bc14e830028d2244861216df038165d7625d ] If the TDLS setup happens over a connection to an AP that doesn't have QoS, we nevertheless assign a non-zero TID (skb->priority) and queue mapping, which may confuse us or drivers later. Fix it by just assigning t

[PATCH AUTOSEL 4.18 007/100] mac80211: fix pending queue hang due to TX_DROP

2018-10-15 Thread Sasha Levin
From: Bob Copeland [ Upstream commit 6eae4a6c2be387fec41b0d2782c4fffb57159498 ] In our environment running lots of mesh nodes, we are seeing the pending queue hang periodically, with the debugfs queues file showing lines such as: 00: 0x/348 i.e. there are a large number of frames b

[PATCH AUTOSEL 4.18 005/100] mac80211: Always report TX status

2018-10-15 Thread Sasha Levin
From: Andrei Otcheretianski [ Upstream commit 8682250b3c1b75a45feb7452bc413d004cfe3778 ] If a frame is dropped for any reason, mac80211 wouldn't report the TX status back to user space. As the user space may rely on the TX_STATUS to kick its state machines, resends etc, it's better to just repo

[PATCH AUTOSEL 4.18 006/100] cfg80211: reg: Init wiphy_idx in regulatory_hint_core()

2018-10-15 Thread Sasha Levin
From: Andrei Otcheretianski [ Upstream commit 24f33e64fcd0d50a4b1a8e5b41bd0257aa66b0e8 ] Core regulatory hints didn't set wiphy_idx to WIPHY_IDX_INVALID. Since the regulatory request is zeroed, wiphy_idx was always implicitly set to 0. This resulted in updating only phy #0. Fix that. Fixes: 806

[PATCH AUTOSEL 4.18 004/100] xfrm: reset crypto_done when iterating over multiple input xfrms

2018-10-15 Thread Sasha Levin
From: Sowmini Varadhan [ Upstream commit 782710e333a526780d65918d669cb96646983ba2 ] We only support one offloaded xfrm (we do not have devices that can handle more than one offload), so reset crypto_done in xfrm_input() when iterating over multiple transforms in xfrm_input, so that we can invoke

[PATCH AUTOSEL 4.18 002/100] xfrm6: call kfree_skb when skb is toobig

2018-10-15 Thread Sasha Levin
From: Thadeu Lima de Souza Cascardo [ Upstream commit 215ab0f021c9fea3c18b75e7d522400ee6a49990 ] After commit d6990976af7c5d8f55903bfb4289b6fb030bf754 ("vti6: fix PMTU caching and reporting on xmit"), some too big skbs might be potentially passed down to __xfrm6_output, causing it to fail to tra

[PATCH AUTOSEL 4.18 001/100] xfrm: Validate address prefix lengths in the xfrm selector.

2018-10-15 Thread Sasha Levin
From: Steffen Klassert [ Upstream commit 07bf7908950a8b14e81aa1807e3c667eab39287a ] We don't validate the address prefix lengths in the xfrm selector we got from userspace. This can lead to undefined behaviour in the address matching functions if the prefix is too big for the given address famil

RE: [PATCH 2/2] clk: imx: imx7d: remove clks_init_on array

2018-10-15 Thread Anson Huang
Hi, Stephen Anson Huang Best Regards! > -Original Message- > From: Stephen Boyd > Sent: Tuesday, October 16, 2018 12:46 AM > To: ker...@pengutronix.de; linux-arm-ker...@lists.infradead.org; > linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; > mturque...@baylibre.com; s.ha...@pen

Re: [PATCH] clk: meson-gxbb: set fclk_div3 as CLK_IS_CRITICAL

2018-10-15 Thread Christian Hewitt
On 15 Oct 2018, at 9:07 pm, Jerome Brunet wrote: > > On Sat, 2018-10-13 at 18:08 +0200, Michael Turquette wrote: >> Quoting Christian Hewitt (2018-10-13 12:04:46) >>> On the Khadas VIM2 (GXM) and LePotato (GXL) board there are problems >>> with reboot; e.g. a ~60 second delay between issuing rebo

[RFC][PATCHv2 1/4] panic: avoid deadlocks in re-entrant console drivers

2018-10-15 Thread Sergey Senozhatsky
>From printk()/serial console point of view panic() is special, because it may force CPU to re-enter printk() or/and serial console driver. Therefore, some of serial consoles drivers are re-entrant. E.g. 8250: serial8250_console_write() { if (port->sysrq) locked = 0;

[RFC][PATCHv2 0/4] less deadlock prone serial consoles

2018-10-15 Thread Sergey Senozhatsky
Hello, RFC The patch set reduces the number of ways serial consoles can deadlock the system, including the recently reported deadlock in panic(). The test scenario I ran on my x86_64 box: - panic() the system while one of the CPUs holds 8250's uart_port->lock. Test r

[RFC][PATCHv2 3/4] serial: introduce uart_port locking helpers

2018-10-15 Thread Sergey Senozhatsky
The patch introduces several macros which should make serial console drivers less printk() deadlock prone. There are several console driver entry points so we are looking at several slightly different deadlock scenarios. - The first entry point is console ->write() callback, which we call from

[RFC][PATCHv2 2/4] printk: move printk_safe macros to printk header

2018-10-15 Thread Sergey Senozhatsky
Make printk_safe_enter_irqsave()/etc macros available to the rest of the kernel. Signed-off-by: Sergey Senozhatsky --- include/linux/printk.h | 40 + kernel/printk/internal.h| 37 -- kernel/printk/printk_safe.c | 6 +++

[RFC][PATCHv2 4/4] tty: 8250: switch to uart_port locking helpers

2018-10-15 Thread Sergey Senozhatsky
Switch to uart_port_lock macros: - use uart_port_lock_for_printk()/uart_port_unlock_after_printk() in serial8250_console_write(). - use uart_port_lock_*()/uart_port_unlock_*() elsewhere. Signed-off-by: Sergey Senozhatsky --- drivers/tty/serial/8250/8250_core.c | 8 +-- drivers/tty/serial/82

[RESEND PATCH v3 0/2] add new UniPhier PCIe host driver

2018-10-15 Thread Kunihiko Hayashi
This series adds PCIe host controller driver for Socionext UniPhier SoCs. This controller is based on the DesignWare PCIe core. This driver supports LD20 and PXs3 SoCs. v2: https://www.spinics.net/lists/linux-pci/msg75930.html About legacy IRQ, it might be necessary to share common view from keys

[RESEND PATCH v3 1/2] dt-bindings: PCI: Add UniPhier PCIe host controller description

2018-10-15 Thread Kunihiko Hayashi
Add DT bindings for PCIe controller implemented in UniPhier SoCs when configured in Root Complex (host) mode. This controller is based on the DesignWare PCIe core. Signed-off-by: Kunihiko Hayashi Reviewed-by: Rob Herring --- .../devicetree/bindings/pci/uniphier-pcie.txt | 81 ++

[RESEND PATCH v3 2/2] PCI: uniphier: Add UniPhier PCIe host controller support

2018-10-15 Thread Kunihiko Hayashi
This introduces specific glue layer for UniPhier platform to support PCIe host controller that is based on the DesignWare PCIe core, and this driver supports Root Complex (host) mode. Signed-off-by: Kunihiko Hayashi --- drivers/pci/controller/dwc/Kconfig | 9 + drivers/pci/controller/d

Re: [RFC PATCH 12/30] rcu: Prepare rcu_read_[un]lock_bh() for handling softirq mask

2018-10-15 Thread Joel Fernandes
On Thu, Oct 11, 2018 at 01:11:59AM +0200, Frederic Weisbecker wrote: > This pair of function is implemented on top of local_bh_disable() that > is going to handle a softirq mask in order to apply finegrained vector > disablement. The lock function is going to return the previous vectors > enabled m

linux-next: Tree for Oct 16

2018-10-15 Thread Stephen Rothwell
Hi all, Changes since 20181015: The jc_docs tree gained a conflict against the pci tree The netfilter-next tree gained a build failure so I used the version from next-20181015. The block tree gained a conflict against the pci tree. I added a patch to the akpm tree to fix my qemu PowerPC boot

Re: [PATCH] tpm: tpm_try_transmit() ignore value of go_to_idle()

2018-10-15 Thread Jason Gunthorpe
On Mon, Oct 15, 2018 at 02:14:34PM +0300, Tomas Winkler wrote: > Ignore the return value of go_to_idle() in tpm_try_transmit(). > Once it may shadow the return value of actual tpm operation, > second the consequent command will fail as well and the error > will be caought anyway. > Last fix wrong g

[PATCH V9 21/21] csky: support dword access for get_user_size()

2018-10-15 Thread Guo Ren
Support dword access for get_user_size and redesign put_user_size with the same style of get_user_size. It's Ok to use xxx_user_asm_common for all size of variable with ldb, ldh, ldw, ld.d ld.d rx, (addr, 0) could "rx <= addr" "and r(x+1) <= addr+4" and this also follow abiv2 gcc ABI for dword acc

Re: [PATCH] dt-bindings: ufs: Fix the compatible string definition

2018-10-15 Thread Vivek Gautam
On Mon, Oct 15, 2018 at 10:54 PM Doug Anderson wrote: > > Vivek, > > On Mon, Oct 15, 2018 at 8:23 AM Vivek Gautam > wrote: > > > > Hi Doug, > > > > On Sat, Oct 13, 2018 at 3:09 AM Douglas Anderson > > wrote: > > > > > > If you look at the bindings for the UFS Host Controller it says: > > > > >

Re: [PATCH] jffs2: free jffs2_sb_info through jffs2_kill_sb()

2018-10-15 Thread Hou Tao
ping ? On 2018/10/6 17:09, Hou Tao wrote: > When an invalid mount option is passed to jffs2, jffs2_parse_options() > will fail and jffs2_sb_info will be freed, but then jffs2_sb_info will > be used (use-after-free) and freeed (double-free) in jffs2_kill_sb(). > > Fix it by removing the buggy invo

INFO: task hung in evdev_release

2018-10-15 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:9dcd936c5312 Merge tag 'for-4.19/dm-fixes-4' of git://git... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1285436e40 kernel config: https://syzkaller.appspot.com/x/.config?x=88e9a8a39dc0be2d da

[PATCH v2 1/2] dt-bindings: pwm: tiecap: Add TI AM654 SoC specific compatible

2018-10-15 Thread Vignesh R
Add a new compatible string "ti,am654-ecap" to support PWM ECAP IP of TI AM654 SoC. Signed-off-by: Vignesh R Reviewed-by: Rob Herring --- v2: Add Reviewed-by Documentation/devicetree/bindings/pwm/pwm-tiecap.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindi

[PATCH] extract-vmlinux: Check for uncompressed image as fallback

2018-10-15 Thread Helge Deller
As on x86-64 and other architectures, the boot kernel on parisc (vmlinuz and bzImage) contains a full compressed copy of the final kernel executable (vmlinux.bin.gz), which one should be able to extract with the extract-vmlinux script. But on parisc extracting the kernel with extract-vmlinux fails

[PATCH v2 0/2] pwm-tiecap: Add support for AM654 SoCs

2018-10-15 Thread Vignesh R
Couple of patches to enable pwm-tiecap driver to be used with TI's new AM654 platforms. Vignesh R (2): dt-bindings: pwm: tiecap: Add TI AM654 SoC specific compatible pwm: Kconfig: Enable TI ECAP driver for ARCH_K3 Documentation/devicetree/bindings/pwm/pwm-tiecap.txt | 1 + drivers/pwm/Kconfi

[PATCH v2 2/2] pwm: Kconfig: Enable TI ECAP driver for ARCH_K3

2018-10-15 Thread Vignesh R
K3 devices have the same ECAP IP as OMAP SoCs. Enable driver to be built for K3 devices. Also, drop reference to AM33xx in help text, as IP is found on multiple TI SoCs. Signed-off-by: Vignesh R --- v2: Update help text to drop AM33xx as suggested by Andrew drivers/pwm/Kconfig | 5 ++--- 1 file

RE: [PATCH] tpm: tpm_try_transmit() ignore value of go_to_idle()

2018-10-15 Thread Winkler, Tomas
> > On Mon, Oct 15, 2018 at 02:14:34PM +0300, Tomas Winkler wrote: > > Ignore the return value of go_to_idle() in tpm_try_transmit(). > > Once it may shadow the return value of actual tpm operation, second > > the consequent command will fail as well and the error will be caought > > anyway. >

[PATCH] pinctrl: sunxi: Fix a memory leak in 'sunxi_pinctrl_build_state()'

2018-10-15 Thread Christophe JAILLET
If 'krealloc()' fails, 'pctl->functions' is set to NULL. We should instead use a temp variable in order to be able to free the previously allocated memeory, in case of OOM. Signed-off-by: Christophe JAILLET --- drivers/pinctrl/sunxi/pinctrl-sunxi.c | 11 +++ 1 file changed, 7 insertions(

[tip:x86/urgent] x86/entry/64: Further improve paranoid_entry comments

2018-10-15 Thread tip-bot for Andy Lutomirski
Commit-ID: 0cd6fa95a4a44ff2d649957423946c19eb98e825 Gitweb: https://git.kernel.org/tip/0cd6fa95a4a44ff2d649957423946c19eb98e825 Author: Andy Lutomirski AuthorDate: Sun, 14 Oct 2018 11:38:18 -0700 Committer: Ingo Molnar CommitDate: Tue, 16 Oct 2018 08:19:34 +0200 x86/entry/64: Further i

Re: [RFC 2/4] pwm: sifive: Add a driver for SiFive SoC PWM

2018-10-15 Thread Atish Patra
On 10/10/18 7:13 AM, Thierry Reding wrote: On Tue, Oct 09, 2018 at 11:51:23AM -0700, Atish Patra wrote: From: "Wesley W. Terpstra" Adds a PWM driver for PWM chip present in SiFive's HiFive Unleashed SoC. Signed-off-by: Wesley W. Terpstra [Atish: Various fixes and code cleanup] Signed-off-by:

Re: [PATCH] x86: modify inline asm constraints in __cmpxchg_double()

2018-10-15 Thread Ingo Molnar
* Juergen Gross wrote: > Some gcc versions seem to have problems with the constraints in > __cmpxchg_double() as they suddenly issue a build error when random > parts of sources calling __cmpxchg_double() are modified, like e.g. > slub.c. This has been observed on Debian systems only so far. >

Re: [PATCH] bcache: add separate workqueue for journal_write to avoid deadlock

2018-10-15 Thread Coly Li
On 2018/10/4 下午10:07, Eddie Chapman wrote: > On 28/09/18 03:32, Coly Li wrote: >> >> On 9/27/18 11:53 PM, Eddie Chapman wrote: >>> On 27/09/18 16:23, Coly Li wrote: On 9/27/18 9:45 PM, guoju wrote: > After write SSD completed, bcache schedule journal_write work to > system_wq, tha

Re: [PATCH v3 06/15] platform: goldfish: pipe: Move memory allocation from probe to init

2018-10-15 Thread Greg KH
On Mon, Oct 15, 2018 at 12:06:12PM -0700, Roman Kiryanov wrote: > > > probe does not know what memory to allocate. We have several versions > > > of the driver (with different init) and different versions allocate > > > different state. > > > > I only see one driver here. > > It will be added in "

Re: [RFC 2/4] pwm: sifive: Add a driver for SiFive SoC PWM

2018-10-15 Thread Atish Patra
On 10/10/18 6:11 AM, Christoph Hellwig wrote: Thanks for getting these drivers submitted upstream! I don't really know anything about PWM, so just some random nitpicking below.. + iowrite32(frac, pwm->regs + REG_PWMCMP0 + (dev->hwpwm * SIZE_PWMCMP)); * already has a higher precedence t

Re: [PATCH v3 09/15] platform: goldfish: pipe: Move goldfish_pipe to goldfish_pipe_v2

2018-10-15 Thread Greg KH
On Mon, Oct 15, 2018 at 01:23:35PM -0700, Roman Kiryanov wrote: > > > I want our "v2" driver to be in a "v2" file and our "v1" driver in a > > > "v1" file. I think this is reasonable. > > > > The in kernel driver is the "v1" one. > > I believe v2 (on our end) was upstream as goldfish_pipe.c instea

Re: [BUG -next 20181008] list corruption with "mm/slub: remove useless condition in deactivate_slab"

2018-10-15 Thread Pingfan Liu
Hi heiko, On Mon, Oct 15, 2018 at 1:54 PM Pingfan Liu wrote: > > On Tue, Oct 9, 2018 at 2:35 PM Heiko Carstens > wrote: > > > > Hello, > > > > with linux-next for 20181008 I can reliably crash my system with lot's of > > debugging options enabled on s390. List debugging triggers the list > > co

Re: [PATCH v3 07/15] platform: goldfish: pipe: Return status from "deinit" since "remove" does not do much

2018-10-15 Thread Greg KH
On Mon, Oct 15, 2018 at 03:04:47PM -0700, Roman Kiryanov wrote: > > This function can not fail, why are you returning 0 always? That > > doesn't make sense. > > remove in struct platform_driver requires returning something, we have > to have "return" somewhere. But this code always returns 0, yo

[tip:locking/core] locking/lockdep: Remove duplicated 'lock_class_ops' percpu array

2018-10-15 Thread tip-bot for Waiman Long
Commit-ID: 4766ab5677a2842834f9bc4a21587256a811531c Gitweb: https://git.kernel.org/tip/4766ab5677a2842834f9bc4a21587256a811531c Author: Waiman Long AuthorDate: Fri, 12 Oct 2018 17:42:27 -0400 Committer: Ingo Molnar CommitDate: Tue, 16 Oct 2018 08:21:10 +0200 locking/lockdep: Remove dup

Re: [RFC][PATCH] perf: Rewrite core context handling

2018-10-15 Thread Alexey Budankov
Hi, On 15.10.2018 21:31, Stephane Eranian wrote: > Hi, > > On Mon, Oct 15, 2018 at 10:29 AM Alexey Budankov > wrote: >> >> >> Hi, >> On 15.10.2018 11:34, Peter Zijlstra wrote: >>> On Mon, Oct 15, 2018 at 10:26:06AM +0300, Alexey Budankov wrote: Hi, On 10.10.2018 13:45, Peter Zijls

Re: [PATCH] cpufreq: conservative: Take limits changes into account properly

2018-10-15 Thread Waldemar Rymarkiewicz
On Mon, 15 Oct 2018 at 23:24, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > If the policy limits change between invocations of cs_dbs_update(), > the requested frequency value stored in dbs_info may not be updated > and the function may use a stale value of it next time. Moreover, if

Re: [PATCH] jffs2: free jffs2_sb_info through jffs2_kill_sb()

2018-10-15 Thread Richard Weinberger
On Tue, Oct 16, 2018 at 7:53 AM Hou Tao wrote: > > ping ? > > On 2018/10/6 17:09, Hou Tao wrote: > > When an invalid mount option is passed to jffs2, jffs2_parse_options() > > will fail and jffs2_sb_info will be freed, but then jffs2_sb_info will > > be used (use-after-free) and freeed (double-fre

Re: [PATCH v4 1/2] Bluetooth: Add device_get_bd_address()

2018-10-15 Thread Marcel Holtmann
Hi Matthias, >> void bt_sock_reclassify_lock(struct sock *sk, int proto); >> >> +int device_get_bd_address(struct device *dev, bdaddr_t *bd_addr); > > Maybe change the API name to start with bt_ and get rid of device_? device_ indicates that we get the BD_ADDR for

Re: [PATCH] pinctrl: sunxi: Fix a memory leak in 'sunxi_pinctrl_build_state()'

2018-10-15 Thread Maxime Ripard
On Tue, Oct 16, 2018 at 08:22:28AM +0200, Christophe JAILLET wrote: > If 'krealloc()' fails, 'pctl->functions' is set to NULL. > We should instead use a temp variable in order to be able to free the > previously allocated memeory, in case of OOM. > > Signed-off-by: Christophe JAILLET Acked-by: M

linux-next: manual merge of the akpm tree with Linus' tree

2018-10-15 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm tree got a conflict in: arch/arm64/kernel/setup.c between commit: d91680e687f4 ("arm64: Fix /proc/iomem for reserved but not memory regions") from Linus' tree and patch: "memblock: replace alloc_bootmem_low with memblock_alloc_low (2)" from

Re: linux-next: build failure after merge of the akpm tree

2018-10-15 Thread Stephen Rothwell
Hi all, On Mon, 8 Oct 2018 19:03:41 +1100 Stephen Rothwell wrote: > > After merging the akpm tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > arch/x86/mm/kaslr.c:26:10: fatal error: linux/bootmem.h: No such file or > directory > #include > ^~

linux-next: manual merge of the akpm tree with Linus' tree

2018-10-15 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm tree got a conflict in: arch/arm64/kernel/setup.c between commit: d91680e687f4 ("arm64: Fix /proc/iomem for reserved but not memory regions") from Linus' tree and patch: "memblock: stop using implicit alignment to SMP_CACHE_BYTES" from the a

Re: [RFC][PATCH] perf: Rewrite core context handling

2018-10-15 Thread Alexey Budankov
Hi, On 10.10.2018 13:45, Peter Zijlstra wrote: > Hi all, > > There have been various issues and limitations with the way perf uses > (task) contexts to track events. Most notable is the single hardware PMU > task context, which has resulted in a number of yucky things (both > proposed and merged)

Re: [PATCH 0/2] mmc: uniphier-sd: two bug-fixes

2018-10-15 Thread Wolfram Sang
> Some sub-systems rebase, and some do not. > It is up to the sub-system maintainer. We used to have a very strict rule to not rebase anything which ends up in linux-next. Dunno what happened to this rule but I liked it. > I know what you are saying, but this is how we develop in linux-next. I

Re: [PATCH 00/11] staging: gasket: fixes

2018-10-15 Thread Greg Kroah-Hartman
On Sun, Oct 14, 2018 at 09:59:16PM -0700, Todd Poynor wrote: > From: Todd Poynor > > Various fixes for gasket/apex drivers. For some reason you seem to have ignored/missed this patch: Subject: [PATCH v3] staging: gasket: Fix sparse "incorrect type in assignment" warnings. that was sent

Re: [PATCH 01/11] staging: gasket: core: debug log updates

2018-10-15 Thread Greg Kroah-Hartman
On Sun, Oct 14, 2018 at 09:59:17PM -0700, Todd Poynor wrote: > From: Todd Poynor > > Add debug logs for device enable/disable events, Why? What is going to need this? > remove logs for > callbacks (the called functions can generate their own logs if needed). That's a different thing than "add

Re: rseq system call incompletely wired up in microblaze

2018-10-15 Thread Michal Simek
Hi Mathieu, On 14.10.2018 18:46, Mathieu Desnoyers wrote: > Hi Michal, > > I notice the following commit went into 4.18: > > commit 54b0a2011dfcd2e3fe2c28062694fbbe3eb377a3 > Author: Michal Simek > Date: Thu Jun 14 08:24:39 2018 +0200 > > microblaze: Add new syscalls io_pgetevents and rs

Re: [PATCH 05/11] staging: gasket: page_table: rearrange gasket_page_table_entry

2018-10-15 Thread Greg Kroah-Hartman
On Sun, Oct 14, 2018 at 09:59:21PM -0700, Todd Poynor wrote: > From: Nick Ewalt > > Rearrange gasket_page_table entry to reduce padding slop. In the future, defining exactly what "slop" is here would be nice :) thanks, greg k-h

<    1   2   3   4   5   6   7   8   9   >