Re: [PATCH] perf trace: remove redundant ')'

2018-03-16 Thread Arnaldo Carvalho de Melo
Em Fri, Mar 16, 2018 at 03:51:09PM +0800, Du, Changbin escreveu: > Hi Arnaldo, How about this simple one? Thanks. > > On Tue, Mar 13, 2018 at 06:40:01PM +0800, changbin...@intel.com wrote: > > From: Changbin Du > > > > There is a redundant ')' at the tail of each event.

[PATCH] ACPI: Add Time and Alarm Device (TAD) driver

2018-03-16 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Introduce a driver for the ACPI Time and Alarm Device (TAD) based on Section 9.18 of ACPI 6.2. This driver only supports the system wakeup capabilities of the TAD which are mandatory. Support for the RTC capabilities of the TAD will be added

[PATCH v2] netns: send uevent messages

2018-03-16 Thread Christian Brauner
This patch adds a receive method to NETLINK_KOBJECT_UEVENT netlink sockets to allow sending uevent messages into the network namespace the socket belongs to. Currently non-initial network namespaces are already isolated and don't receive uevents. There are a number of cases where it is beneficial

Re: [PATCH] USB: wusbcore: crypto: Remove VLA usage

2018-03-16 Thread Gustavo A. R. Silva
I just discovered an issue with this patch. Please, drop it. I'll send v2 shortly. Thanks -- Gustavo On 03/16/2018 08:01 AM, Gustavo A. R. Silva wrote: In preparation to enabling -Wvla, remove VLA and replace it with dynamic memory allocation instead. The use of stack Variable Length

[PATCH v2 14/21] mtd: Remove depends on HAS_DMA in case of platform dependency

2018-03-16 Thread Geert Uytterhoeven
Remove dependencies on HAS_DMA where a Kconfig symbol depends on another symbol that implies HAS_DMA, and, optionally, on "|| COMPILE_TEST". In most cases this other symbol is an architecture or platform specific symbol, or PCI. Generic symbols and drivers without platform dependencies keep their

[PATCH v2 11/21] mailbox: Remove depends on HAS_DMA in case of platform dependency

2018-03-16 Thread Geert Uytterhoeven
Remove dependencies on HAS_DMA where a Kconfig symbol depends on another symbol that implies HAS_DMA, and, optionally, on "|| COMPILE_TEST". In most cases this other symbol is an architecture or platform specific symbol, or PCI. Generic symbols and drivers without platform dependencies keep their

Re: [PATCH v3] xen/acpi: upload _PSD info for non Dom0 CPUs too

2018-03-16 Thread Joao Martins
On 03/15/2018 03:45 PM, Boris Ostrovsky wrote: > On 03/15/2018 10:22 AM, Joao Martins wrote: >> All uploaded PM data from non-dom0 CPUs takes the info from vCPU 0 and >> changing only the acpi_id. For processors which P-state coordination type >> is HW_ALL (0xFD) it is OK to upload bogus P-state

Re: [PATCH] Improve mutex documentation

2018-03-16 Thread Peter Zijlstra
On Thu, Mar 15, 2018 at 04:58:12AM -0700, Matthew Wilcox wrote: > On Wed, Mar 14, 2018 at 01:56:31PM -0700, Andrew Morton wrote: > > My memory is weak and our documentation is awful. What does > > mutex_lock_killable() actually do and how does it differ from > > mutex_lock_interruptible()? > >

Re: [PATCH v4 1/2] kernel.h: Introduce const_max() for VLA removal

2018-03-16 Thread Rasmus Villemoes
On 2018-03-16 00:46, Linus Torvalds wrote: > On Thu, Mar 15, 2018 at 4:41 PM, Kees Cook wrote: >> >> I much prefer explicit typing, but both you and Rasmus mentioned >> wanting the int/sizeof_t mixing. > > Well, the explicit typing allows that mixing, in that you can just

[PATCH v4 5/7] x86/hyper-v: define struct hv_enlightened_vmcs and clean field bits

2018-03-16 Thread Vitaly Kuznetsov
The definitions are according to the Hyper-V TLFS v5.0. KVM on Hyper-V will use these. Signed-off-by: Vitaly Kuznetsov Reviewed-by: Michael Kelley --- arch/x86/include/asm/hyperv-tlfs.h | 200 + 1 file changed,

[PATCH][next] selftests: fix spelling mistake: "desciptor" -> "descriptor"

2018-03-16 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in error message text and re-adjust break in literal string to fit into 80 char wide format. Signed-off-by: Colin Ian King --- tools/testing/selftests/filesystems/devpts_pts.c | 4 ++-- 1

[PATCH] HSI: ssi_protocol: fix spelling mistake: "trigerred" -> "triggered"

2018-03-16 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in dev_err error message text. Signed-off-by: Colin Ian King --- drivers/hsi/clients/ssi_protocol.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [PATCH v2 13/36] x86/ioport: add ksys_ioperm() helper; remove in-kernel calls to sys_ioperm()

2018-03-16 Thread Thomas Gleixner
On Fri, 16 Mar 2018, Dominik Brodowski wrote: > On Fri, Mar 16, 2018 at 01:00:48PM +0100, Thomas Gleixner wrote: > > On Thu, 15 Mar 2018, Dominik Brodowski wrote: > > > > > Using this helper allows us to avoid the in-kernel calls to the > > > sys_ioperm() > > > syscall. > > > > > > Cc: Thomas

[PATCH v2 08/21] iio: adc: Remove depends on HAS_DMA in case of platform dependency

2018-03-16 Thread Geert Uytterhoeven
Remove dependencies on HAS_DMA where a Kconfig symbol depends on another symbol that implies HAS_DMA, and, optionally, on "|| COMPILE_TEST". In most cases this other symbol is an architecture or platform specific symbol, or PCI. Generic symbols and drivers without platform dependencies keep their

Re: arm64 kvm built with clang doesn't boot

2018-03-16 Thread Andrey Konovalov
On Fri, Mar 16, 2018 at 3:13 PM, Marc Zyngier wrote: > I wasn't aware of that discussion, but this is indeed quite annoying. > Note that you should be able to restrict this to arch/arm64/kvm/hyp/* > and virt/kvm/arm/hyp/*. That works as well (tried it, the kernel boots).

[PATCH 3.18 08/25] netfilter: nat: cope with negative port range

2018-03-16 Thread Greg Kroah-Hartman
3.18-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

[PATCH 3.18 10/25] netfilter: ebtables: CONFIG_COMPAT: dont trust userland offsets

2018-03-16 Thread Greg Kroah-Hartman
3.18-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

[PATCH 4.9 46/86] x86/paravirt, objtool: Annotate indirect calls

2018-03-16 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Peter Zijlstra commit 3010a0663fd949d122eca0561b06b0a9453f7866 upstream. Paravirt emits indirect calls which get flagged by objtool retpoline checks, annotate it away

[PATCH 4.9 66/86] scsi: qla2xxx: Replace fcport alloc with qla2x00_alloc_fcport

2018-03-16 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Quinn Tran commit 063b36d6b0ad74c748d536f5cb47bac2f850a0fa upstream. Current code manually allocate an fcport structure that is not properly initialize. Replace kzalloc

[PATCH 4.9 68/86] NFS: Fix unstable write completion

2018-03-16 Thread Greg Kroah-Hartman
4.9-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

[PATCH 4.9 78/86] USB: storage: Add JMicron bridge 152d:2567 to unusual_devs.h

2018-03-16 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Teijo Kinnunen commit 5126a504b63d82785eaece3a9c30c660b313785a upstream. This USB-SATA controller seems to be similar with JMicron bridge 152d:2566 already on the

Re: [PATCH v2 02/13] ARM: dts: ipq4019: Add a few peripheral nodes

2018-03-16 Thread Marc Zyngier
On 16/03/18 09:38, Sricharan R wrote: > Now with the driver updates for some peripherals being there, > add i2c, spi, pcie, bam, qpic-nand, scm nodes to enhance the available > peripheral support. > > Signed-off-by: Sricharan R > --- >

Re: [PATCH -mm] mm: Fix race between swapoff and mincore

2018-03-16 Thread Michal Hocko
On Tue 13-03-18 09:20:36, Huang, Ying wrote: > From: Huang Ying > > >From commit 4b3ef9daa4fc ("mm/swap: split swap cache into 64MB > trunks") on, after swapoff, the address_space associated with the swap > device will be freed. So swap_address_space() users which touch

Re: [PATCH v3 3/5] tpm: migrate tpm2_probe() to use struct tpm_buf

2018-03-16 Thread Mimi Zohar
On Fri, 2018-03-16 at 14:21 +0200, Jarkko Sakkinen wrote: > On Mon, Mar 05, 2018 at 05:52:24PM -0500, Mimi Zohar wrote: > > Hi Jarrko, > > > > On Mon, 2018-03-05 at 18:56 +0200, Jarkko Sakkinen wrote: > > > In order to make struct tpm_buf the first class object for constructing > > > TPM > > >

Re: [PATCH v2 11/13] ARM: dts: ipq8074: Add peripheral nodes

2018-03-16 Thread Sricharan R
On 3/16/2018 4:17 PM, Abhishek Sahu wrote: > On 2018-03-16 15:08, Sricharan R wrote: >> Add serial, i2c, bam, spi, qpic peripheral nodes. >> >> Signed-off-by: Sricharan R >> --- >>  arch/arm64/boot/dts/qcom/ipq8074.dtsi | 105 >> ++ >>  

[PATCH v2] USB: wusbcore: crypto: Remove VLA usage

2018-03-16 Thread Gustavo A. R. Silva
In preparation to enabling -Wvla, remove VLA and replace it with dynamic memory allocation instead. The use of stack Variable Length Arrays needs to be avoided, as they can be a vector for stack exhaustion, which can be both a runtime bug or a security flaw. Also, in general, as code evolves it

Re: [PATCH 6/8] trace_uprobe/sdt: Fix multiple update of same reference counter

2018-03-16 Thread Ravi Bangoria
On 03/16/2018 05:42 PM, Ravi Bangoria wrote: > > On 03/15/2018 08:19 PM, Oleg Nesterov wrote: >> On 03/13, Ravi Bangoria wrote: >>> For tiny binaries/libraries, different mmap regions points to the >>> same file portion. In such cases, we may increment reference counter >>> multiple times. >>

[PATCH v2 15/21] net: Remove depends on HAS_DMA in case of platform dependency

2018-03-16 Thread Geert Uytterhoeven
Remove dependencies on HAS_DMA where a Kconfig symbol depends on another symbol that implies HAS_DMA, and, optionally, on "|| COMPILE_TEST". In most cases this other symbol is an architecture or platform specific symbol, or PCI. Generic symbols and drivers without platform dependencies keep their

[PATCH v2 12/21] media: Remove depends on HAS_DMA in case of platform dependency

2018-03-16 Thread Geert Uytterhoeven
Remove dependencies on HAS_DMA where a Kconfig symbol depends on another symbol that implies HAS_DMA, and, optionally, on "|| COMPILE_TEST". In most cases this other symbol is an architecture or platform specific symbol, or PCI. Generic symbols and drivers without platform dependencies keep their

Re: [RFT][PATCH v4 3/7] sched: idle: Do not stop the tick before cpuidle_idle_call()

2018-03-16 Thread Frederic Weisbecker
On Thu, Mar 15, 2018 at 09:41:10PM +0100, Rafael J. Wysocki wrote: > On Thu, Mar 15, 2018 at 7:19 PM, Frederic Weisbecker > wrote: > > On Mon, Mar 12, 2018 at 10:53:25AM +0100, Rafael J. Wysocki wrote: > >> From: Rafael J. Wysocki > >> > >> Make

Re: [RFT][PATCH v4 3/7] sched: idle: Do not stop the tick before cpuidle_idle_call()

2018-03-16 Thread Frederic Weisbecker
On Thu, Mar 15, 2018 at 10:12:57PM +0100, Rafael J. Wysocki wrote: > On Thu, Mar 15, 2018 at 9:41 PM, Rafael J. Wysocki wrote: > > On Thu, Mar 15, 2018 at 7:19 PM, Frederic Weisbecker > > wrote: > >> On Mon, Mar 12, 2018 at 10:53:25AM +0100, Rafael J.

Re: arm64 kvm built with clang doesn't boot

2018-03-16 Thread Mark Rutland
On Fri, Mar 16, 2018 at 02:13:14PM +, Mark Rutland wrote: > On Fri, Mar 16, 2018 at 02:49:00PM +0100, Andrey Konovalov wrote: > > Hi! > > Hi, > > > I've recently tried to boot clang built kernel on real hardware > > (Odroid C2 board) instead of using a VM. The issue that I stumbled > > upon

[PATCH] Revert "mm: page_alloc: skip over regions of invalid pfns where possible"

2018-03-16 Thread Daniel Vacek
This reverts commit b92df1de5d289c0b5d653e72414bf0850b8511e0. The commit is meant to be a boot init speed up skipping the loop in memmap_init_zone() for invalid pfns. But given some specific memory mapping on x86_64 (or more generally theoretically anywhere but on arm with

Re: [PATCH v2 13/36] x86/ioport: add ksys_ioperm() helper; remove in-kernel calls to sys_ioperm()

2018-03-16 Thread Dominik Brodowski
On Fri, Mar 16, 2018 at 01:00:48PM +0100, Thomas Gleixner wrote: > On Thu, 15 Mar 2018, Dominik Brodowski wrote: > > > Using this helper allows us to avoid the in-kernel calls to the sys_ioperm() > > syscall. > > > > Cc: Thomas Gleixner > > Cc: Ingo Molnar

[PATCH v2 16/21] remoteproc: Remove depends on HAS_DMA in case of platform dependency

2018-03-16 Thread Geert Uytterhoeven
Remove dependencies on HAS_DMA where a Kconfig symbol depends on another symbol that implies HAS_DMA, and, optionally, on "|| COMPILE_TEST". In most cases this other symbol is an architecture or platform specific symbol, or PCI. Generic symbols and drivers without platform dependencies keep their

Re: [PATCH] crypto: doc - clarify hash callbacks state machine

2018-03-16 Thread Herbert Xu
On Mon, Mar 05, 2018 at 12:39:45PM +0200, Horia Geantă wrote: > Even though it doesn't make too much sense, it is perfectly legal to: > - call .init() and then (as many times) .update() > - subseqently _not_ call any of .final(), .finup() or .export() Actually it makes perfect sense, because

Re: [PATCH 2/2] kprobe: fix: Add ftrace_ops_assist_func to kprobe blacklist

2018-03-16 Thread Steven Rostedt
On Fri, 16 Mar 2018 11:18:25 -0400 Francis Deslauriers wrote: > Hi Steven, > > I completely forgot about this issue until recently when I encountered it > again. > Instrumenting the ftrace_ops_assist_func symbol and some other symbol > seems to be causing

[PATCH 3.18 18/25] tty/serial: atmel: add new version check for usart

2018-03-16 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Jonas Danielsson commit fd63a8903a2c40425a9811c3371dd4d0f42c0ad3 upstream. On our at91sam9260 based board the usart0 and usart1 ports report their versions

[PATCH 3.18 20/25] staging: android: ashmem: Fix lockdep issue during llseek

2018-03-16 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Joel Fernandes commit cb57469c9573f6018cd1302953dd45d6e05aba7b upstream. ashmem_mutex create a chain of dependencies like so: (1) mmap syscall -> mmap_sem -> (acquired)

[PATCH 4.9 48/86] watchdog: hpwdt: Check source of NMI

2018-03-16 Thread Greg Kroah-Hartman
4.9-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

[PATCH 4.14 013/109] uas: fix comparison for error code

2018-03-16 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Oliver Neukum commit 9a513c905bb95bef79d96feb08621c1ec8d8c4bb upstream. A typo broke the comparison. Fixes: cbeef22fd611 ("usb: uas: unconditionally bring back host after

[PATCH 4.9 81/86] usb: usbmon: Read text within supplied buffer size

2018-03-16 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Pete Zaitcev commit a5f596830e27e15f7a0ecd6be55e433d776986d8 upstream. This change fixes buffer overflows and silent data corruption with the usbmon device driver

Re: [PATCH v5 2/2] PCI: mediatek: Set up class type and vendor ID for MT7622

2018-03-16 Thread Lorenzo Pieralisi
On Wed, Jan 03, 2018 at 02:39:04PM +0800, Honghui Zhang wrote: > On Tue, 2018-01-02 at 10:56 +, Lorenzo Pieralisi wrote: > > On Thu, Dec 28, 2017 at 09:39:12AM +0800, Honghui Zhang wrote: > > > On Wed, 2017-12-27 at 12:45 -0600, Bjorn Helgaas wrote: > > > > On Wed, Dec 27, 2017 at 08:59:54AM

Re: [PATCH v2 1/1] can: ucan: add driver for Theobroma Systems UCAN devices

2018-03-16 Thread kbuild test robot
Hi Jakob, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v4.16-rc5] [cannot apply to next-20180316] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https

Re: [PATCH v2 02/13] ARM: dts: ipq4019: Add a few peripheral nodes

2018-03-16 Thread Sricharan R
Hi Marc, On 3/16/2018 5:47 PM, Marc Zyngier wrote: > On 16/03/18 09:38, Sricharan R wrote: >> Now with the driver updates for some peripherals being there, >> add i2c, spi, pcie, bam, qpic-nand, scm nodes to enhance the available >> peripheral support. >> >> Signed-off-by: Sricharan R

Re: [PATCH v2 12/13] ARM: dts: ipq8074: Add pcie nodes

2018-03-16 Thread Sricharan R
Hi Abhishek, On 3/16/2018 4:50 PM, Abhishek Sahu wrote: > On 2018-03-16 15:08, Sricharan R wrote: >> The driver/phy support for ipq8074 is available now. >> So enabling the nodes in DT. >> >> Signed-off-by: Sricharan R >> --- >>  arch/arm64/boot/dts/qcom/ipq8074.dtsi |

Re: [PATCH] mm/shmem: Do not wait for lock_page() in shmem_unused_huge_shrink()

2018-03-16 Thread Michal Hocko
On Fri 16-03-18 15:25:08, Kirill A. Shutemov wrote: > On Fri, Mar 16, 2018 at 01:13:03PM +0100, Michal Hocko wrote: > > On Fri 16-03-18 13:59:08, Kirill A. Shutemov wrote: > > [..] > > > @@ -498,31 +498,42 @@ static unsigned long > > > shmem_unused_huge_shrink(struct shmem_sb_info *sbinfo, > > >

Re: [PATCH v6 0/4] Utilization estimation (util_est) for FAIR tasks

2018-03-16 Thread Peter Zijlstra
On Fri, Mar 09, 2018 at 09:52:41AM +, Patrick Bellasi wrote: > Hi, here is an update of [1], based on today's tip/sched/core [2], which > mainly > adds some code cleanups suggested by Peter as well as fixes compilation for > !CONFIG_SMP systems. > > Most notably: > a) The util_est's update

[PATCH-Review] f2fs: Set GF_NOFS in read_cache_page_gfp while doing f2fs_quota_read

2018-03-16 Thread Ritesh Harjani
Hello, Observed below deadlock with quota enabled on f2fs during low memory situation. I think during f2fs_quota_enable -> which is doing read_cache_page with __GFP_FS flag set, due to low memory this is causing shrinker to get invoked and thus going into a deadlock due to mutex lock in dquota.

Re: [PATCH] mm/shmem: Do not wait for lock_page() in shmem_unused_huge_shrink()

2018-03-16 Thread Kirill A. Shutemov
On Fri, Mar 16, 2018 at 10:14:24PM +0900, Tetsuo Handa wrote: > f2fs is doing > > page = f2fs_pagecache_get_page(inode->i_mapping, 0, FGP_LOCK|FGP_NOWAIT, 0); > > which calls > > struct page *pagecache_get_page(inode->i_mapping, 0, FGP_LOCK|FGP_NOWAIT, > 0); > > . Then, can't we define >

Re: [RESEND PATCH v5] input: pxrc: new driver for PhoenixRC Flight Controller Adapter

2018-03-16 Thread Marcus Folkesson
ping. I do not want to nag, but would someone please have a look at this? Thanks, Marcus Folkesson On Sun, Feb 18, 2018 at 05:17:46PM +0100, Marcus Folkesson wrote: > This driver let you plug in your RC controller to the adapter and > use it as input device in various RC simulators. > >

Re: [PATCH] staging: typec: rt1711h typec chip driver

2018-03-16 Thread 李書帆
Hi Greg, 2018-03-16 21:29 GMT+08:00 Mats Karrman : > Hi, > > On 2018-03-16 13:58, Greg KH wrote: > >> On Fri, Mar 16, 2018 at 05:12:49PM +0800, ShuFan Lee wrote: >>> >>> From: ShuFan Lee >>> >>> Richtek RT1711H Type-C chip driver that works with

Re: [PATCH v5 1/2] hwmon: (ucd9000) Add gpio chip interface

2018-03-16 Thread Guenter Roeck
On 03/15/2018 03:21 PM, Eddie James wrote: From: Christopher Bostic Add a struct gpio_chip and define some methods so that this device's I/O can be accessed via /sys/class/gpio. Sorry for not noticing earlier. The 0day reports should be addressed by selecting

[PATCH v2 17/21] scsi: hisi_sas: Remove depends on HAS_DMA in case of platform dependency

2018-03-16 Thread Geert Uytterhoeven
Remove dependencies on HAS_DMA where a Kconfig symbol depends on another symbol that implies HAS_DMA, and, optionally, on "|| COMPILE_TEST". In most cases this other symbol is an architecture or platform specific symbol, or PCI. Generic symbols and drivers without platform dependencies keep their

[PATCH v4 0/9] Initial Allwinner H6 support

2018-03-16 Thread Icenowy Zheng
This patchset adds initial support for the Allwinner H6 SoC. It's quite different from earlier Allwinner SoCs. For example, the memory map is refactored, and the CCU is rearranged. It's also the first Allwinner SoC with PCI Express interface (although the implementation of the PCI Express

[PATCH v2 21/21] usb: Remove depends on HAS_DMA in case of platform dependency

2018-03-16 Thread Geert Uytterhoeven
Remove dependencies on HAS_DMA where a Kconfig symbol depends on another symbol that implies HAS_DMA, and, optionally, on "|| COMPILE_TEST". In most cases this other symbol is an architecture or platform specific symbol, or PCI. Generic symbols and drivers without platform dependencies keep their

Re: [PATCH v2 0/8] tpm: factor out tpm1 code into tpm1-cmd.c

2018-03-16 Thread Jarkko Sakkinen
On Thu, Mar 15, 2018 at 11:25:48PM +, Winkler, Tomas wrote: > > On Sat, 2018-03-10 at 10:24 +0200, Tomas Winkler wrote: > > > Move TPM1 implementation from tpm-interface.c to tpm1-cmd.c similarly > > > to tpm2-cmd.c, as well as move TPM2 open code flows into new functions > > > to tpm2-cmd.c

[PATCH v4 3/9] pinctrl: sunxi: change irq_bank_base to irq_bank_map

2018-03-16 Thread Icenowy Zheng
The Allwinner H6 SoC have its pin controllers with the first IRQ-capable GPIO bank at IRQ bank 1 and the second bank at IRQ bank 5. Change the current code that uses IRQ bank base to a IRQ bank map, in order to support the case that holes exist among IRQ banks. Signed-off-by: Icenowy Zheng

[PATCH v4 2/9] pinctrl: sunxi: introduce IRQ bank conversion function

2018-03-16 Thread Icenowy Zheng
The Allwinner H6 SoC have its pin controllers with the first IRQ-capable GPIO bank at IRQ bank 1 and the second bank at IRQ bank 5. Some refactors in the sunxi pinctrl framework are needed. This commit introduces a IRQ bank conversion function, which replaces the "(bank_base + bank)" code in IRQ

Re: [PATCH] scsi: ufs: sysfs: reworking of the rpm_lvl and spm_lvl entries

2018-03-16 Thread Adrian Hunter
On 01/03/18 12:48, Stanislav Nijnikov wrote: > Read from these files will return the integed value of the chosen power > management level now. Separate entries were added to show the target > UFS device and UIC link states. The description of the possible power > managements levels was added to

[PATCH v2 09/21] iommu: Remove depends on HAS_DMA in case of platform dependency

2018-03-16 Thread Geert Uytterhoeven
Remove dependencies on HAS_DMA where a Kconfig symbol depends on another symbol that implies HAS_DMA, and, optionally, on "|| COMPILE_TEST". In most cases this other symbol is an architecture or platform specific symbol, or PCI. Generic symbols and drivers without platform dependencies keep their

Re: [PATCH v2] vhost: add vsock compat ioctl

2018-03-16 Thread Stefan Hajnoczi
On Wed, Mar 14, 2018 at 02:36:25PM -0700, Sonny Rao wrote: > This will allow usage of vsock from 32-bit binaries on a 64-bit > kernel. > > Signed-off-by: Sonny Rao > --- > drivers/vhost/vsock.c | 11 +++ > 1 file changed, 11 insertions(+) Reviewed-by: Stefan

Re: [PATCH v2 2/4] ioremap: Implement TLB_INV before huge mapping

2018-03-16 Thread Kani, Toshi
On Fri, 2018-03-16 at 13:10 +0530, Chintan Pandya wrote: > > On 3/15/2018 9:42 PM, Kani, Toshi wrote: > > On Thu, 2018-03-15 at 18:15 +0530, Chintan Pandya wrote: > > > Huge mapping changes PMD/PUD which could have > > > valid previous entries. This requires proper > > > TLB maintanance on some

Re: [PATCH v1 3/4] arm64: Fix the page leak in pud/pmd_set_huge

2018-03-16 Thread kbuild test robot
Hi Chintan, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v4.16-rc5] [cannot apply to next-20180316] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https

[PATCH v2 07/21] i2c: Remove depends on HAS_DMA in case of platform dependency

2018-03-16 Thread Geert Uytterhoeven
Remove dependencies on HAS_DMA where a Kconfig symbol depends on another symbol that implies HAS_DMA, and, optionally, on "|| COMPILE_TEST". In most cases this other symbol is an architecture or platform specific symbol, or PCI. Generic symbols and drivers without platform dependencies keep their

[PATCH] ARM64: dts: meson-gx: make efuse read-only

2018-03-16 Thread Jerome Brunet
efuse is one time programmable, so it is safer to deny write request to this memory, unless the user is savvy enough to remove the read-only flag from DTB Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-gx.dtsi | 1 + 1 file changed, 1 insertion(+) diff

Re: [PATCH net 1/2] vmxnet3: avoid xmit reset due to a race in vmxnet3

2018-03-16 Thread David Miller
From: Ronak Doshi Date: Tue, 13 Mar 2018 12:40:08 -0700 > @@ -977,6 +977,8 @@ vmxnet3_tq_xmit(struct sk_buff *skb, struct > vmxnet3_tx_queue *tq, > { > int ret; > u32 count; > + int numPkts; > + int localTxNumDeferred; > unsigned long flags; >

[PATCH v2 01/21] ASoC: Remove depends on HAS_DMA in case of platform dependency

2018-03-16 Thread Geert Uytterhoeven
Remove dependencies on HAS_DMA where a Kconfig symbol depends on another symbol that implies HAS_DMA, and, optionally, on "|| COMPILE_TEST". In most cases this other symbol is an architecture or platform specific symbol, or PCI. Generic symbols and drivers without platform dependencies keep their

[PATCH 4.9 57/86] netfilter: IDLETIMER: be syzkaller friendly

2018-03-16 Thread Greg Kroah-Hartman
4.9-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

[PATCH 4.9 61/86] netfilter: x_tables: pass xt_counters struct instead of packet counter

2018-03-16 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Florian Westphal commit 4d31eef5176df06f218201bc9c0ce40babb41660 upstream. On SMP we overload the packet counter (unsigned long) to contain percpu offset. Hide this from

[PATCH 4.9 56/86] netfilter: nat: cope with negative port range

2018-03-16 Thread Greg Kroah-Hartman
4.9-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

[PATCH 4.9 59/86] netfilter: bridge: ebt_among: add missing match size checks

2018-03-16 Thread Greg Kroah-Hartman
4.9-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.

[PATCH 4.9 64/86] ext4: inplace xattr block update fails to deduplicate blocks

2018-03-16 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Tahsin Erdogan commit ec00022030da5761518476096626338bd67df57a upstream. When an xattr block has a single reference, block is updated inplace and it is reinserted to the

[PATCH 4.9 17/86] MIPS: BMIPS: Do not mask IPIs during suspend

2018-03-16 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Justin Chen commit 06a3f0c9f2725f5d7c63c4203839373c9bd00c28 upstream. Commit a3e6c1eff548 ("MIPS: IRQ: Fix disable_irq on CPU IRQs") fixes an issue where disable_irq did

[PATCH 4.9 08/86] drm: Allow determining if current task is output poll worker

2018-03-16 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Lukas Wunner commit 25c058ccaf2ebbc3e250ec1e199e161f91fe27d4 upstream. Introduce a helper to determine if the current task is an output poll worker. This allows us to fix a

[PATCH 4.9 12/86] drm/amdgpu: Notify sbios device ready before send request

2018-03-16 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Rex Zhu commit 1bced75f4ab04bec55aecb57d99435dc6d0ae5a0 upstream. it is required if a platform supports PCIe root complex core voltage reduction. After receiving this

Re: [PATCH v2 09/13] ARM: dts: ipq4019: Add qcom-ipq4019-ap.dk07.1-c1 board file

2018-03-16 Thread Sricharan R
On 3/16/2018 3:55 PM, Abhishek Sahu wrote: > On 2018-03-16 15:08, Sricharan R wrote: >> Signed-off-by: Sricharan R >> --- >>  arch/arm/boot/dts/Makefile  |  1 + >>  arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1-c1.dts | 65 >> +

Re: Regression from efi: call get_event_log before ExitBootServices

2018-03-16 Thread Jarkko Sakkinen
On Mon, Mar 12, 2018 at 11:41:25AM +0100, Paul Menzel wrote: > Dear Jarkko, > > > On 03/12/18 11:17, Jarkko Sakkinen wrote: > > On Sat, 2018-03-10 at 10:45 +, Thiebaud Weksteen wrote: > > > On Fri, Mar 9, 2018 at 5:54 PM Jeremy Cline wrote: > > > > and it's hanging at

[PATCH] USB: wusbcore: crypto: Remove VLA usage

2018-03-16 Thread Gustavo A. R. Silva
In preparation to enabling -Wvla, remove VLA and replace it with dynamic memory allocation instead. The use of stack Variable Length Arrays needs to be avoided, as they can be a vector for stack exhaustion, which can be both a runtime bug or a security flaw. Also, in general, as code evolves it

Re: [PATCH] mm/shmem: Do not wait for lock_page() in shmem_unused_huge_shrink()

2018-03-16 Thread Kirill A. Shutemov
On Fri, Mar 16, 2018 at 01:58:27PM +0100, Michal Hocko wrote: > On Fri 16-03-18 15:25:08, Kirill A. Shutemov wrote: > > On Fri, Mar 16, 2018 at 01:13:03PM +0100, Michal Hocko wrote: > > > On Fri 16-03-18 13:59:08, Kirill A. Shutemov wrote: > > > [..] > > > > @@ -498,31 +498,42 @@ static unsigned

Re: [PATCH] ARM: dts: sun7i: Add pinmux settings for LCD0 RGB888 output.

2018-03-16 Thread Giulio Benetti
Hi, Il 16/03/2018 10:39, Chen-Yu Tsai ha scritto: On Fri, Mar 16, 2018 at 5:19 PM, Giulio Benetti wrote: Hi Maxime, Il 16/03/2018 07:47, Maxime Ripard ha scritto: Hi Giulio, On Thu, Mar 15, 2018 at 02:43:30PM +0100, Giulio Benetti wrote: The A20 supports

Re: [PATCH RFC rebase 2/9] powerpc: Use barrier_nospec in copy_from_user

2018-03-16 Thread Michael Ellerman
Linus Torvalds writes: > On Thu, Mar 15, 2018 at 12:15 PM, Michal Suchanek wrote: >> This is based on x86 patch doing the same. >> >> Signed-off-by: Michal Suchanek >> --- >> --- a/arch/powerpc/include/asm/uaccess.h >> +++

Re: [PATCH 4.14 024/110] btrfs: use proper endianness accessors for super_copy

2018-03-16 Thread David Sterba
On Fri, Mar 16, 2018 at 01:30:49PM +0100, Greg Kroah-Hartman wrote: > On Thu, Mar 15, 2018 at 07:55:42PM +0100, Christoph Biedl wrote: > > Greg Kroah-Hartman wrote... > > > > > 4.14-stable review patch. If anyone has any objections, please let me > > > know. > > > > > commit

[PATCH] f2fs: Set GF_NOFS in read_cache_page_gfp while doing f2fs_quota_read

2018-03-16 Thread Ritesh Harjani
Quota code itself is serializing the operations by taking mutex_lock. It seems a below deadlock can happen if GF_NOFS is not used in f2fs_quota_read __switch_to+0x88 __schedule+0x5b0 schedule+0x78 schedule_preempt_disabled+0x20 __mutex_lock_slowpath+0xdc //mutex owner is itself

[PATCH v2 1/1] mm/ksm: fix interaction with THP

2018-03-16 Thread Claudio Imbrenda
This patch fixes a corner case for KSM. When two pages belong or belonged to the same transparent hugepage, and they should be merged, KSM fails to split the page, and therefore no merging happens. This bug can be reproduced by: * making sure ksm is running (in case disabling ksmtuned) * enabling

Re: [PATCH v2 1/1] mm/ksm: fix interaction with THP

2018-03-16 Thread Kirill A. Shutemov
On Fri, Mar 16, 2018 at 01:42:35PM +, Claudio Imbrenda wrote: > This patch fixes a corner case for KSM. When two pages belong or > belonged to the same transparent hugepage, and they should be merged, > KSM fails to split the page, and therefore no merging happens. > > This bug can be

Re: [PATCH 7/7] staging:iio:ade7854: Add proper error handling condition

2018-03-16 Thread Rodrigo Siqueira
On 03/16, Dan Carpenter wrote: > You're right that there is a bug but this is not the right fix. > > The ade7854_i2c_write_reg_32() function returns 6 on success which makes > no sense. It should be zero or negative error codes. All the write_reg > functions in

Re: [PATCH v2 -perf/core 1/2] perf mmap: Discard head in overwrite_rb_find_range

2018-03-16 Thread Liang, Kan
On 3/13/2018 8:31 AM, Yisheng Xie wrote: In overwrite mode, start will be set to head in perf_mmap__read_init. Therefore, it is no need to set the start one more in overwrite_rb_find_range and *start can be used as head instead of passing head to overwrite_rb_find_range. Looks good to me.

Re: [PATCH] hv_netvsc: Make sure out channel is fully opened on send

2018-03-16 Thread David Miller
From: Mohammed Gamal Date: Tue, 13 Mar 2018 20:06:50 +0100 > Dring high network traffic changes to network interface parameters > such as number of channels or MTU can cause a kernel panic with a NULL > pointer dereference. This is due to netvsc_device_remove() being > called

Re: [PATCH 7/7] staging:iio:ade7854: Add proper error handling condition

2018-03-16 Thread Dan Carpenter
Generally, it's better to fix the bug in the existing code, and then do the cleanup later. That way the fixes can be backported to stable kernels more easily. I don't know this subsystem very well. Perhaps Jonathan doesn't care for one reason or another (like maybe he's not going to back port

[PATCH v4 1/7] x86/hyper-v: move hyperv.h out of uapi

2018-03-16 Thread Vitaly Kuznetsov
hyperv.h is not part of uapi, there are no (known) users outside of kernel. We are making changes to this file to match current Hyper-V Hypervisor Top-Level Functional Specification (TLFS, see: https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/reference/tlfs) and we don't want to

[PATCH v4 3/7] x86/kvm: rename HV_X64_MSR_APIC_ASSIST_PAGE to HV_X64_MSR_VP_ASSIST_PAGE

2018-03-16 Thread Vitaly Kuznetsov
From: Ladi Prosek The assist page has been used only for the paravirtual EOI so far, hence the "APIC" in the MSR name. Renaming to match the Hyper-V TLFS where it's called "Virtual VP Assist MSR". Signed-off-by: Ladi Prosek Signed-off-by: Vitaly

[PATCH v4 2/7] x86/hyper-v: move definitions from TLFS to hyperv-tlfs.h

2018-03-16 Thread Vitaly Kuznetsov
mshyperv.h now only contains fucntions/variables we define in kernel, all definitions from TLFS should go to hyperv-tlfs.h. 'enum hv_cpuid_function' is removed as we already have this info in hyperv-tlfs.h, code in mshyperv.c is adjusted accordingly. Signed-off-by: Vitaly Kuznetsov

[PATCH v4 0/7] Enlightened VMCS support for KVM on Hyper-V

2018-03-16 Thread Vitaly Kuznetsov
Changes since v3: - Add Michael's Reviewed-by to PATCH2,5,6 - PATCH1: - Decipher 'TLFS' and add a reference where it can be obtained [Christoph Hellwig] - PATCH4: - remove vfree() from hv_cpu_die() [Thomas Gleixner] - free hv_vp_assist_page() in the error path [Thomas Gleixner] While

Re: [RESEND PATCH v2] sched/fair: Remove check in idle_balance against migration_cost

2018-03-16 Thread Peter Zijlstra
On Wed, Mar 14, 2018 at 11:36:47AM -0700, Rohit Jain wrote: > Signed-off-by: Rohit Jain > > Signed-off-by: Rohit Jain Surely you only need a single on of those. > --- > kernel/sched/fair.c | 3 +-- > 1 file changed, 1 insertion(+), 2

Re: [PATCH v2 2/2] reset: stm32mp1: Enable stm32mp1 reset driver

2018-03-16 Thread Gabriel FERNANDEZ
Hi Philipp, Thanks for reviewing. On 03/16/2018 02:29 PM, Philipp Zabel wrote: > Hi Gabriel, > > this looks mostly good to me, a few questions and comments below: > > On Wed, 2018-03-14 at 17:30 +0100, gabriel.fernan...@st.com wrote: >> From: Gabriel Fernandez >> >>

Re: [RFC 0/3] seccomp trap to userspace

2018-03-16 Thread Christian Brauner
On Fri, Mar 16, 2018 at 12:46:55AM +, Andy Lutomirski wrote: > On Thu, Mar 15, 2018 at 5:35 PM, Tycho Andersen wrote: > > Hi Andy, > > > > On Thu, Mar 15, 2018 at 05:11:32PM +, Andy Lutomirski wrote: > >> On Thu, Mar 15, 2018 at 5:05 PM, Serge E. Hallyn

Re: [PATCH v5 16/19] tracing: probeevent: Add array type support

2018-03-16 Thread Masami Hiramatsu
On Thu, 8 Mar 2018 17:50:51 +0900 Masami Hiramatsu wrote: > Add array type support for probe events. > This allows user to get arraied types from memory address. > The array type syntax is > > TYPE[N] > > Where TYPE is one of types (u8/16/32/64,s8/16/32/64, >

Re: [PATCH] IB/mlx5: Set the default active rate and width to QDR and 4X

2018-03-16 Thread Hal Rosenstock
On 3/15/2018 10:37 PM, Honggang LI wrote: > From: Honggang Li > > commit f1b65df5a232 ("IB/mlx5: Add support for active_width and > active_speed in RoCE"). Before this patch applied, the mlx5_ib > driver set default active_width and active_speed to IB_WIDTH_4X > and

Re: [PATCH] staging: typec: rt1711h typec chip driver

2018-03-16 Thread Heikki Krogerus
Hi ShuFan, On Fri, Mar 16, 2018 at 05:12:49PM +0800, ShuFan Lee wrote: > +static int rt1711h_init_gpio(struct rt1711h_chip *chip) > +{ > + int ret; > + struct device_node *np = chip->dev->of_node; > + > + ret = of_get_named_gpio(np, "rt,intr_gpio", 0); > + if (ret < 0) { > +

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