Aw: Re: [Intel-wired-lan] [PATCH] ixgbe: initialize u64_stats_sync structures early at ixgbe_probe

2017-04-25 Thread Lino Sanfilippo
Hi, > This patch doesn't look right to me. I would suggest rejecting it. > > The call to initialize the stats should be done when the ring is > allocated, not in ixgbe_probe(). This should probably be done in > ixgbe_alloc_q_vector() instead. > AFAICS ixgbe_alloc_q_vector() is also called in pr

Re: [PATCH 4/4] sched/topology: the group balance cpu must be a cpu where the group is installed

2017-04-25 Thread Peter Zijlstra
On Tue, Apr 25, 2017 at 05:27:03PM +0200, Peter Zijlstra wrote: > On Tue, Apr 25, 2017 at 05:22:36PM +0200, Peter Zijlstra wrote: > > On Tue, Apr 25, 2017 at 05:12:00PM +0200, Peter Zijlstra wrote: > > > But I'll first try and figure out why I'm not having empty masks. > > > > Ah, so this is befor

[PATCH v2] selftests: sync: override clean in lib.mk to fix warnings

2017-04-25 Thread Shuah Khan
Add override with EXTRA_CLEAN for lib.mk clean to fix the following warnings from clean target run. Makefile:24: warning: overriding recipe for target 'clean' ../lib.mk:55: warning: ignoring old recipe for target 'clean' Signed-off-by: Shuah Khan --- Changes since v1: - simplified to use EXTRA_C

[PATCH v2] selftests: x86: override clean in lib.mk to fix warnings

2017-04-25 Thread Shuah Khan
Add override with EXTRA_CLEAN for lib.mk clean to fix the following warnings from clean target run. Makefile:44: warning: overriding recipe for target 'clean' ../lib.mk:55: warning: ignoring old recipe for target 'clean' Signed-off-by: Shuah Khan --- Changes since v1: - simplified to use EXTRA_C

[PATCH v2] selftests: splice: override clean in lib.mk to fix warnings

2017-04-25 Thread Shuah Khan
Add override with EXTRA_CLEAN for lib.mk clean to fix the following warnings from clean target run. Makefile:8: warning: overriding recipe for target 'clean' ../lib.mk:55: warning: ignoring old recipe for target 'clean' Signed-off-by: Shuah Khan --- Changes since v1: - simplified to use EXTRA_CL

Re: [PATCH 1/5] skbuff: return -EMSGSIZE in skb_to_sgvec to prevent overflow

2017-04-25 Thread Sergei Shtylyov
Hello! On 04/25/2017 05:08 PM, Jason A. Donenfeld wrote: This is a defense-in-depth measure in response to bugs like 4d6fa57b4dab0d77f4d8e9d9c73d1e63f6fe8fee. You need to also specify the summary line enclosed in (""). And it's enough to specify 12 digits of SHA1 ID... Signed-off-by: J

Re: [PATCH 2/2] ARM: dts: Add the ethernet and ethernet PHY to the cygnus core DT.

2017-04-25 Thread Jon Mason
On Tue, Apr 25, 2017 at 11:23 AM, Sergei Shtylyov wrote: > Hello! > > On 04/25/2017 06:15 PM, Jon Mason wrote: > Cygnus has a single amac controller connected to the B53 switch with 2 PHYs. On the BCM911360_EP platform, those two PHYs are connected to the external ethernet jacks. >

Re: [PATCH v2] net/packet: initialize val in packet_getsockopt()

2017-04-25 Thread David Miller
From: Alexander Potapenko Date: Mon, 24 Apr 2017 14:59:14 +0200 > In the case getsockopt() is called with PACKET_HDRLEN and optlen < 4 > |val| remains uninitialized and the syscall may behave differently > depending on its value. This doesn't have security consequences (as the > uninit bytes aren

RE: IT Newsletter

2017-04-25 Thread Mortensen, Amber D.
From: Mortensen, Amber D. Sent: Tuesday, April 25, 2017 8:43 AM Subject: IT Newsletter Dear colleagues, To keep you abreast of ICT developments of the Organization and to keep your technical skills up to date, the latest IT Newsletter issue is now avai

Applied "regulator: Add ROHM BD9571MWV-M PMIC regulator driver" to the regulator tree

2017-04-25 Thread Mark Brown
The patch regulator: Add ROHM BD9571MWV-M PMIC regulator driver has been applied to the regulator tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hou

Applied "regulator: arizona-micsupp: Move pdata into a separate structure" to the regulator tree

2017-04-25 Thread Mark Brown
The patch regulator: arizona-micsupp: Move pdata into a separate structure has been applied to the regulator tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the

Applied "regulator: arizona-micsupp: Make arizona_micsupp independent of struct arizona" to the regulator tree

2017-04-25 Thread Mark Brown
The patch regulator: arizona-micsupp: Make arizona_micsupp independent of struct arizona has been applied to the regulator tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually s

Applied "regulator: arizona-ldo1: Factor out generic initialization" to the regulator tree

2017-04-25 Thread Mark Brown
The patch regulator: arizona-ldo1: Factor out generic initialization has been applied to the regulator tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 2

Applied "regulator: arizona-ldo1: Make arizona_ldo1 independent of struct arizona" to the regulator tree

2017-04-25 Thread Mark Brown
The patch regulator: arizona-ldo1: Make arizona_ldo1 independent of struct arizona has been applied to the regulator tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime

Applied "regulator: arizona-ldo1: Move pdata into a separate structure" to the regulator tree

2017-04-25 Thread Mark Brown
The patch regulator: arizona-ldo1: Move pdata into a separate structure has been applied to the regulator tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the nex

Applied "regulator: arizona: Split KConfig options for LDO1 and MICSUPP regulators" to the regulator tree

2017-04-25 Thread Mark Brown
The patch regulator: arizona: Split KConfig options for LDO1 and MICSUPP regulators has been applied to the regulator tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometim

Applied "regulator: arizona-micsupp: Factor out generic initialization" to the regulator tree

2017-04-25 Thread Mark Brown
The patch regulator: arizona-micsupp: Factor out generic initialization has been applied to the regulator tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the nex

Re: [PATCH] hwmon: (ibmpowernv) Add min/max attributes and current sensors

2017-04-25 Thread Cédric Le Goater
On 04/25/2017 04:28 PM, Cédric Le Goater wrote: > On 04/22/2017 08:11 AM, Michael Ellerman wrote: >> Shilpasri G Bhat writes: >>> On 04/21/2017 05:17 PM, Cédric Le Goater wrote: On 04/21/2017 06:31 AM, Shilpasri G Bhat wrote: > diff --git a/drivers/hwmon/ibmpowernv.c b/drivers/hwmon/ibmpo

Re: net: heap out-of-bounds in fib6_clean_node/rt6_fill_node/fib6_age/fib6_prune_clone

2017-04-25 Thread David Ahern
On 4/18/17 2:43 PM, Andrey Konovalov wrote: > kasan: CONFIG_KASAN_INLINE enabled > kasan: GPF could be caused by NULL-ptr deref or user memory access > general protection fault: [#1] SMP KASAN > Modules linked in: > CPU: 1 PID: 4035 Comm: a.out Not tainted 4.11.0-rc7+ #250 > Hardware name: QEM

[PATCH v5 2/5] ipsec: check return value of skb_to_sgvec always

2017-04-25 Thread Jason A. Donenfeld
Signed-off-by: Jason A. Donenfeld --- net/ipv4/ah4.c | 8 ++-- net/ipv4/esp4.c | 30 -- net/ipv6/ah6.c | 8 ++-- net/ipv6/esp6.c | 31 +-- 4 files changed, 53 insertions(+), 24 deletions(-) diff --git a/net/ipv4/ah4.c b/net/ipv4

[PATCH v5 1/5] skbuff: return -EMSGSIZE in skb_to_sgvec to prevent overflow

2017-04-25 Thread Jason A. Donenfeld
This is a defense-in-depth measure in response to bugs like 4d6fa57b4dab ("macsec: avoid heap overflow in skb_to_sgvec") Signed-off-by: Jason A. Donenfeld --- This is a resend of v4 with all the other child commits along with it. net/core/skbuff.c | 12 +++- 1 file changed, 11 insertion

[PATCH v5 5/5] virtio_net: check return value of skb_to_sgvec always

2017-04-25 Thread Jason A. Donenfeld
Signed-off-by: Jason A. Donenfeld --- drivers/net/virtio_net.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index f36584616e7d..1709fd0b4bf7 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c @@ -1081,

Re: [PATCH v2 15/18] dt-bindings: sound: Add bindings for Cirrus Logic Madera codecs

2017-04-25 Thread Mark Brown
On Mon, Apr 24, 2017 at 05:08:41PM +0100, Richard Fitzgerald wrote: > The Cirrus Logic Madera codecs are a family of related codecs with > extensive digital and analogue I/O, digital mixing and routing, > signal processing and programmable DSPs. Please submit patches using subject lines reflecting

Re: [PATCH] net: hso: fix module unloading

2017-04-25 Thread David Miller
From: Andreas Kemnade Date: Mon, 24 Apr 2017 21:18:39 +0200 > keep tty driver until usb driver is unregistered > rmmod hso > produces traces like this without that: ... > Signed-off-by: Andreas Kemnade Applied, thank you.

Re: [PATCH 4/4] sched/topology: the group balance cpu must be a cpu where the group is installed

2017-04-25 Thread Peter Zijlstra
On Tue, Apr 25, 2017 at 05:39:37PM +0200, Peter Zijlstra wrote: > On Tue, Apr 25, 2017 at 05:27:03PM +0200, Peter Zijlstra wrote: > > Ah! the asymmetric setup, where @sibling is entirely uninitialized for > > the top domain. Like so then... --- a/kernel/sched/topology.c +++ b/kernel/sched/topolo

[PATCH v5 4/5] macsec: check return value of skb_to_sgvec always

2017-04-25 Thread Jason A. Donenfeld
Signed-off-by: Jason A. Donenfeld --- drivers/net/macsec.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/drivers/net/macsec.c b/drivers/net/macsec.c index dbab05afcdbe..d846f42b99ec 100644 --- a/drivers/net/macsec.c +++ b/drivers/net/macsec.c @@ -733,7 +733,12

[PATCH v5 3/5] rxrpc: check return value of skb_to_sgvec always

2017-04-25 Thread Jason A. Donenfeld
Signed-off-by: Jason A. Donenfeld --- net/rxrpc/rxkad.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/net/rxrpc/rxkad.c b/net/rxrpc/rxkad.c index 4374e7b9c7bf..dcf46c9c3ece 100644 --- a/net/rxrpc/rxkad.c +++ b/net/rxrpc/rxkad.c @@ -229,7 +229,9 @@ static int rxkad

Re: [PATCH] net: ethernet: ti: netcp_core: remove unused compl queue mapping

2017-04-25 Thread David Miller
From: Ivan Khoronzhuk Date: Mon, 24 Apr 2017 23:54:06 +0300 > This code is unused and probably was unintentionally left while > moving completion queue mapping in submit function. > > Signed-off-by: Ivan Khoronzhuk Applied.

Re: net: heap out-of-bounds in fib6_clean_node/rt6_fill_node/fib6_age/fib6_prune_clone

2017-04-25 Thread David Ahern
On 3/4/17 11:57 AM, Dmitry Vyukov wrote: > == > BUG: KASAN: slab-out-of-bounds in rt6_dump_route+0x293/0x2f0 > net/ipv6/route.c:3551 at addr 88007e523694 > Read of size 4 by task syz-executor3/24426 > CPU: 2 PID: 24426 Comm: syz-ex

Re: [PATCH 4/4] sched/topology: the group balance cpu must be a cpu where the group is installed

2017-04-25 Thread Lauro Venancio
On 04/25/2017 12:39 PM, Peter Zijlstra wrote: > On Tue, Apr 25, 2017 at 05:27:03PM +0200, Peter Zijlstra wrote: >> On Tue, Apr 25, 2017 at 05:22:36PM +0200, Peter Zijlstra wrote: >>> On Tue, Apr 25, 2017 at 05:12:00PM +0200, Peter Zijlstra wrote: But I'll first try and figure out why I'm not h

Re: net: heap out-of-bounds in fib6_clean_node/rt6_fill_node/fib6_age/fib6_prune_clone

2017-04-25 Thread David Ahern
On 3/7/17 2:21 AM, Dmitry Vyukov wrote: > [ cut here ] > WARNING: CPU: 2 PID: 3990 at net/ipv6/ip6_fib.c:991 > fib6_add+0x2e12/0x3290 net/ipv6/ip6_fib.c:991 net/ipv6/ip6_fib.c:991 > Kernel panic - not syncing: panic_on_warn set ... > > CPU: 2 PID: 3990 Comm: kworker/2:4 Not

Re: [PATCH 2/2] fpga: lattice machxo2: Add Lattice MachXO2 support

2017-04-25 Thread Alan Tull
On Sun, Apr 23, 2017 at 10:20 AM, Paolo Pisati wrote: Hi Paolo, Thanks for submitting your driver. A few things... > Add support for the Lattice MachXO2 FPGA chip in Slave SPI configuration. > Please add a bit of a description here. Format should be subject line, skip a line, description, s

Re: [PATCH] iio: inkern: fix a static checker error

2017-04-25 Thread Lars-Peter Clausen
On 04/24/2017 11:32 AM, Peter Rosin wrote: > On 2017-04-20 23:13, Peter Rosin wrote: >> On 2017-04-20 23:12, Lars-Peter Clausen wrote: >>> On 04/20/2017 11:01 PM, Peter Rosin wrote: Avoid this smatch error: drivers/iio/inkern.c:751 iio_read_avail_channel_raw() error: double unlock '

Re: [PATCH V15 04/11] efi: parse ARM processor error

2017-04-25 Thread Baicar, Tyler
On 4/24/2017 11:52 AM, Borislav Petkov wrote: On Fri, Apr 21, 2017 at 12:22:09PM -0600, Baicar, Tyler wrote: I guess it's not really needed. It just may be useful considering there can be numerous error info structures, numerous context info structures, and a variable length vendor information s

Re: [for-next][PATCH 0/5] selftests: ftrace: Tracing updates to allow instance testing

2017-04-25 Thread Masami Hiramatsu
On Tue, 25 Apr 2017 09:24:40 -0400 Steven Rostedt wrote: > git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git > for-next > > Head SHA1: d6322f6cc483bd512efd3360fa76d0286a5b528b > > > Steven Rostedt (VMware) (5): > selftests: ftrace: Allow some tests to be run in a tr

Re: [PATCH v2] x86, msr: Document AMD "tweak MSRs", use MSR_FnnH_NAME scheme for them

2017-04-25 Thread Borislav Petkov
On Tue, Apr 25, 2017 at 05:27:04PM +0200, Denys Vlasenko wrote: > MSRs in 0xC001102x range (and a few close to this range) > allow to modify some internal actions of the pipeline. > > (There is one non-debug MSR in this range, introduced in Fam15h: > MSR 0xC0011027 Address Mask For DR0 Breakpoints

Re: [patch V2 00/24] cpu/hotplug: Convert get_online_cpus() to a percpu_rwsem

2017-04-25 Thread Mark Rutland
Hi, This series appears to break boot on some arm64 platforms, seen with next-20170424. More info below. On Tue, Apr 18, 2017 at 07:04:42PM +0200, Thomas Gleixner wrote: > get_online_cpus() is used in hot pathes in mainline and even more so in > RT. That can show up badly under certain conditions

Re: [PATCH] iio: adc: Add support for TI ADC1x8s102

2017-04-25 Thread Jan Kiszka
On 2017-04-25 15:47, Jan Kiszka wrote: > On 2017-04-25 14:30, Mika Westerberg wrote: >> On Tue, Apr 25, 2017 at 02:17:23PM +0200, Jan Kiszka wrote: >>> I'm not ACPI guru: How do we come from a SSDT to information that is >>> carried in the DSDT so far? How can we overload wrong information in the >

[PATCH -next] irqchip/qcom: Use builtin_platform_driver to simplify the code

2017-04-25 Thread Wei Yongjun
From: Wei Yongjun Use the builtin_platform_driver() macro to make the code simpler. Signed-off-by: Wei Yongjun --- drivers/irqchip/qcom-irq-combiner.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/irqchip/qcom-irq-combiner.c b/drivers/irqchip/qcom-irq-combi

[PATCH -next] auxdisplay: Convert list_for_each to entry variant

2017-04-25 Thread Wei Yongjun
From: Wei Yongjun convert list_for_each() to list_for_each_entry() where applicable. Signed-off-by: Wei Yongjun --- drivers/auxdisplay/panel.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/auxdisplay/panel.c b/drivers/auxdisplay/panel.c index e0c014c..7a8b8fb

Re: [PATCH v2] x86, msr: Document AMD "tweak MSRs", use MSR_FnnH_NAME scheme for them

2017-04-25 Thread Denys Vlasenko
On 04/25/2017 06:06 PM, Borislav Petkov wrote: Pls no. Not every MSR for every family. Only the 4 which are actually being used. We can't hold in here the full 32-bit MSR space. The replacement of four define names is not the purpose of the proposed patch. The patch was prompted by the realiza

Re: [PATCH 0/2] DS1374 Watchdog fixes

2017-04-25 Thread Guenter Roeck
On Tue, Apr 25, 2017 at 07:55:28AM -0700, Moritz Fischer wrote: > Hi Guenter, > > On Mon, Apr 24, 2017 at 10:03 PM, Guenter Roeck wrote: > > On 04/24/2017 03:05 PM, Moritz Fischer wrote: > > >> I'm very unhappy with the CONFIG_DRV_RTC_DS1374_WDT way of enabling > >> the watchdog behavior and cur

RE: [PATCH 20/22] tools arch: Sync arch/x86/lib/memcpy_64.S with the kernel

2017-04-25 Thread Luck, Tony
>> If we are going to have all these copies of kernel files below >> "tools/...", perhaps checkpatch could warn people touching one >> that the other needs the same update? > > How would checkpatch know tools hasn't already updated the other? If checkpatch had a list of all the tools copies, it co

[PATCH] kallsyms: optimize kallsyms_lookup_name() for a few cases

2017-04-25 Thread Naveen N. Rao
1. Fail early for invalid/zero length symbols. 2. Detect names of the form and skip checking for kernel symbols in that case. Signed-off-by: Naveen N. Rao --- Masami, Michael, I have added two very simple checks here, which I felt is good to have, rather than the elaborate checks in the previous

Re: [PATCH v4 00/21] PCI: fix config space memory mappings

2017-04-25 Thread Jingoo Han
On Tuesday, April 25, 2017 2:41 AM, Jon Masters wrote: > > On 04/19/2017 12:48 PM, Lorenzo Pieralisi wrote: > > > On some platforms (ie ARM/ARM64) ioremap fails to comply with the PCI > > configuration non-posted write transactions requirement, because it > > provides a memory mapping that issues

Re: [PATCH 4/4] drm/amdgpu: resize VRAM BAR for CPU access v2

2017-04-25 Thread Christian König
Am 25.04.2017 um 17:14 schrieb Alex Deucher: On Tue, Apr 25, 2017 at 11:09 AM, Christian König wrote: Am 25.04.2017 um 16:34 schrieb Alex Deucher: On Tue, Apr 25, 2017 at 9:19 AM, Christian König wrote: From: Christian König Try to resize BAR0 to let CPU access all of VRAM. v2: rebased, s

Re: [PATCH v4 net-next] mdio_bus: Issue GPIO RESET to PHYs.

2017-04-25 Thread Lars-Peter Clausen
On 04/24/2017 11:04 AM, Roger Quadros wrote: > On 24/04/17 02:35, Andrew Lunn wrote: >> On Fri, Apr 21, 2017 at 03:31:09PM +0200, Lars-Peter Clausen wrote: >>> On 04/21/2017 03:15 PM, Roger Quadros wrote: diff --git a/Documentation/devicetree/bindings/net/mdio.txt b/Documentation/devicet

Re: Network cooling device and how to control NIC speed on thermal condition

2017-04-25 Thread Florian Fainelli
Hello, On 04/25/2017 01:36 AM, Waldemar Rymarkiewicz wrote: > Hi, > > I am not much aware of linux networking architecture so I'd like to > ask first before will start to dig into the code. Appreciate any > feedback. > > I am looking on Linux thermal framework and on how to cool down the > syste

Re: [PATCH v2] x86, msr: Document AMD "tweak MSRs", use MSR_FnnH_NAME scheme for them

2017-04-25 Thread Borislav Petkov
On Tue, Apr 25, 2017 at 06:15:23PM +0200, Denys Vlasenko wrote: > On 04/25/2017 06:06 PM, Borislav Petkov wrote: > > Pls no. Not every MSR for every family. Only the 4 which are actually > > being used. We can't hold in here the full 32-bit MSR space. > > The replacement of four define names is no

Re: [PATCH] ACPI / GED: use late init to allow other drivers init

2017-04-25 Thread Sinan Kaya
On 4/25/2017 3:01 AM, Lukas Wunner wrote: > On Sat, Apr 22, 2017 at 12:48 AM, Sinan Kaya wrote: >> On 4/21/2017 6:43 PM, Rafael J. Wysocki wrote: >>> +late_initcall(ged_init); >>> Does this fix the problem? >>> >>> What about if the module in question is loaded after running >>> late_initcalls? >>

Re: Applied "ASoC: Add support for Maxim Integrated MAX98927 Amplifier" to the asoc tree

2017-04-25 Thread Ryan Lee
I was not able to see any activities about MAX98927 driver after previous mail. Is there anything wrong with this driver? On Thu, Apr 6, 2017 at 11:55 AM, Mark Brown wrote: > The patch > >ASoC: Add support for Maxim Integrated MAX98927 Amplifier > > has been applied to the asoc tree at > >

Re: [PATCH] ACPI / GED: use late init to allow other drivers init

2017-04-25 Thread Sinan Kaya
On 4/25/2017 7:03 AM, Rafael J. Wysocki wrote: >> Are you talking about init vs. probe in general? > Yes. > > Generally speaking, if the initialization of built-in code depends on > a loadable module to be present, it has to explicitly wait for that > module to advertise itself, this way or anothe

Re: [PATCH 4/4] sched/topology: the group balance cpu must be a cpu where the group is installed

2017-04-25 Thread Peter Zijlstra
On Tue, Apr 25, 2017 at 12:56:23PM -0300, Lauro Venancio wrote: > > Another thing I've been thinking about; I think we can do away with the > > kzalloc() in build_group_from_child_sched_domain() and use the sdd->sg > > storage. > I considered this too. I decided to do not change this because I was

Re: [PATCH v2] net/packet: initialize val in packet_getsockopt()

2017-04-25 Thread Alexander Potapenko
On Tue, Apr 25, 2017 at 5:44 PM, David Miller wrote: > From: Alexander Potapenko > Date: Mon, 24 Apr 2017 14:59:14 +0200 > >> In the case getsockopt() is called with PACKET_HDRLEN and optlen < 4 >> |val| remains uninitialized and the syscall may behave differently >> depending on its value. This

Re: [PATCH 20/22] tools arch: Sync arch/x86/lib/memcpy_64.S with the kernel

2017-04-25 Thread Joe Perches
On Tue, 2017-04-25 at 16:18 +, Luck, Tony wrote: > > > If we are going to have all these copies of kernel files below > > > "tools/...", perhaps checkpatch could warn people touching one > > > that the other needs the same update? > > > > How would checkpatch know tools hasn't already updated

Re: [PATCH v2 15/18] dt-bindings: sound: Add bindings for Cirrus Logic Madera codecs

2017-04-25 Thread Richard Fitzgerald
On Tue, 2017-04-25 at 16:52 +0100, Mark Brown wrote: > On Mon, Apr 24, 2017 at 05:08:41PM +0100, Richard Fitzgerald wrote: > > The Cirrus Logic Madera codecs are a family of related codecs with > > extensive digital and analogue I/O, digital mixing and routing, > > signal processing and programmabl

Re: Applied "ASoC: Add support for Maxim Integrated MAX98927 Amplifier" to the asoc tree

2017-04-25 Thread Mark Brown
On Tue, Apr 25, 2017 at 09:24:34AM -0700, Ryan Lee wrote: > I was not able to see any activities about MAX98927 driver after previous > mail. > Is there anything wrong with this driver? Please don't top post, reply in line with needed context. This allows readers to readily follow the flow of co

[PATCH 0/5] {ioctl_}userfaultfd.2: initial updates for 4.11

2017-04-25 Thread Mike Rapoport
Hello Michael, These patches are some kind of brief highlights of the changes to the userfaultfd pages. The changes to userfaultfd functionality are also described at update to Documentation/vm/userfaultfd.txt [1]. In general, there were three major additions: * hugetlbfs support * shmem support

[PATCH] x86/tboot: add an option to disable iommu force on

2017-04-25 Thread Shaohua Li
IOMMU harms performance signficantly when we run very fast networking workloads. It's 40GB networking doing XDP test. Software overhead is almost unaware, but it's the IOTLB miss (based on our analysis) which kills the performance. We observed the same performance issue even with software passthrou

[PATCH 3/5] ioctl_userfaultfd.2: update UFFDIO_API description

2017-04-25 Thread Mike Rapoport
Signed-off-by: Mike Rapoport --- man2/ioctl_userfaultfd.2 | 38 -- 1 file changed, 32 insertions(+), 6 deletions(-) diff --git a/man2/ioctl_userfaultfd.2 b/man2/ioctl_userfaultfd.2 index 78abc4d..dade631 100644 --- a/man2/ioctl_userfaultfd.2 +++ b/man2/ioctl_u

[PATCH 1/5] userfaultfd.2: describe memory types that can be used from 4.11

2017-04-25 Thread Mike Rapoport
Signed-off-by: Mike Rapoport --- man2/userfaultfd.2 | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/man2/userfaultfd.2 b/man2/userfaultfd.2 index 1603c20..c89484f 100644 --- a/man2/userfaultfd.2 +++ b/man2/userfaultfd.2 @@ -130,8 +130,12 @@ Details of the various oper

[PATCH 4/5] userfaultfd.2: add Linux container migration use-case to NOTES

2017-04-25 Thread Mike Rapoport
Signed-off-by: Mike Rapoport --- man2/userfaultfd.2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/man2/userfaultfd.2 b/man2/userfaultfd.2 index c89484f..dc37319 100644 --- a/man2/userfaultfd.2 +++ b/man2/userfaultfd.2 @@ -279,7 +279,8 @@ signal and It can also be used to

[PATCH 5/5] usefaultfd.2: add brief description of "non-cooperative" mode

2017-04-25 Thread Mike Rapoport
Signed-off-by: Mike Rapoport --- man2/userfaultfd.2 | 14 ++ 1 file changed, 14 insertions(+) diff --git a/man2/userfaultfd.2 b/man2/userfaultfd.2 index dc37319..291dd10 100644 --- a/man2/userfaultfd.2 +++ b/man2/userfaultfd.2 @@ -89,6 +89,20 @@ them using the operations described in

[PATCH 2/5] ioctl_userfaultfd.2: describe memory types that can be used from 4.11

2017-04-25 Thread Mike Rapoport
Signed-off-by: Mike Rapoport --- man2/ioctl_userfaultfd.2 | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/man2/ioctl_userfaultfd.2 b/man2/ioctl_userfaultfd.2 index 66fbfdc..78abc4d 100644 --- a/man2/ioctl_userfaultfd.2 +++ b/man2/ioctl_userfaultfd.2 @@ -169,11 +169,15

Re: [PATCH 4/4] drm/amdgpu: resize VRAM BAR for CPU access v2

2017-04-25 Thread Alex Deucher
On Tue, Apr 25, 2017 at 12:22 PM, Christian König wrote: > Am 25.04.2017 um 17:14 schrieb Alex Deucher: >> >> On Tue, Apr 25, 2017 at 11:09 AM, Christian König >> wrote: >>> >>> Am 25.04.2017 um 16:34 schrieb Alex Deucher: On Tue, Apr 25, 2017 at 9:19 AM, Christian König wrote: >>

Re: [PATCH V15 04/11] efi: parse ARM processor error

2017-04-25 Thread Borislav Petkov
On Tue, Apr 25, 2017 at 10:05:31AM -0600, Baicar, Tyler wrote: > That seems like something that should be done outside of these patches (if > added to the kernel at all). The decoding for this information would all be > vendor specific, so I'm not sure if we want to pollute the EFI code with > vend

Re: [PATCH v4 net-next] mdio_bus: Issue GPIO RESET to PHYs.

2017-04-25 Thread Florian Fainelli
On 04/25/2017 09:22 AM, Lars-Peter Clausen wrote: > On 04/24/2017 11:04 AM, Roger Quadros wrote: >> On 24/04/17 02:35, Andrew Lunn wrote: >>> On Fri, Apr 21, 2017 at 03:31:09PM +0200, Lars-Peter Clausen wrote: On 04/21/2017 03:15 PM, Roger Quadros wrote: > diff --git a/Documentation/device

Re: [PATCH] Fix returns of some CLK API calls, if !CONFIG_HAVE_CLOCK

2017-04-25 Thread Russell King - ARM Linux
On Tue, Apr 25, 2017 at 02:30:07PM +0200, Thomas Bogendoerfer wrote: > If CONFIG_HAVE_CLOCK is not set, return values of clk_get(), > devm_clk_get(), devm_get_clk_from_child(), clk_get_parent() > and clk_get_sys() are wrong. According to spec these functions > should either return a pointer to a st

Re: [PATCH 0/2] DS1374 Watchdog fixes

2017-04-25 Thread Alexandre Belloni
On 25/04/2017 at 09:17:43 -0700, Guenter Roeck wrote: > On Tue, Apr 25, 2017 at 07:55:28AM -0700, Moritz Fischer wrote: > > Hi Guenter, > > > > On Mon, Apr 24, 2017 at 10:03 PM, Guenter Roeck wrote: > > > On 04/24/2017 03:05 PM, Moritz Fischer wrote: > > > > >> I'm very unhappy with the CONFIG_D

Re: [PATCH v2] net/packet: initialize val in packet_getsockopt()

2017-04-25 Thread David Miller
From: Alexander Potapenko Date: Tue, 25 Apr 2017 18:27:04 +0200 > On Tue, Apr 25, 2017 at 5:44 PM, David Miller wrote: >> From: Alexander Potapenko >> Date: Mon, 24 Apr 2017 14:59:14 +0200 >> >>> In the case getsockopt() is called with PACKET_HDRLEN and optlen < 4 >>> |val| remains uninitialize

Re: [PATCH v14 00/11] mux controller abstraction and iio/i2c muxes

2017-04-25 Thread Philipp Zabel
On Tue, 2017-04-25 at 16:55 +0200, Peter Rosin wrote: > On 2017-04-25 16:16, Peter Rosin wrote: > > On 2017-04-24 16:59, Philipp Zabel wrote: > >> On Mon, 2017-04-24 at 16:36 +0200, Peter Rosin wrote: > >> [...] > How about an atomic use_count on the mux_control, a bool shared that is > o

Re: [PATCH] macsec: dynamically allocate space for sglist

2017-04-25 Thread Sabrina Dubroca
2017-04-25, 17:23:00 +0200, Jason A. Donenfeld wrote: > We call skb_cow_data, which is good anyway to ensure we can actually > modify the skb as such (another error from prior). Now that we have the > number of fragments required, we can safely allocate exactly that amount > of memory. > > Signed-

RE: [PATCH] kallsyms: optimize kallsyms_lookup_name() for a few cases

2017-04-25 Thread David Laight
From: Naveen N. Rao > Sent: 25 April 2017 17:18 > 1. Fail early for invalid/zero length symbols. > 2. Detect names of the form and skip checking for kernel > symbols in that case. > > Signed-off-by: Naveen N. Rao > --- > Masami, Michael, > I have added two very simple checks here, which I felt i

Re: [PATCH] x86/refcount: Implement fast refcount_t handling

2017-04-25 Thread Kees Cook
On Tue, Apr 25, 2017 at 4:26 AM, PaX Team wrote: > On 25 Apr 2017 at 0:01, Peter Zijlstra wrote: >> How is the below not useful fodder for an exploit? It might be a less >> common bug, and perhaps a bit more fiddly to make work, but afaict its >> still a full use-after-free and therefore useful. >

Re: [PATCH v8 1/3] backlight arcxcnn add arc to vendor prefix

2017-04-25 Thread Jingoo Han
On Monday, April 24, 2017 1:56 PM, Olimpiu Dejeu wrote: > > On Mon, April 24, 2017 11:10 AM, Rob Herring < r...@kernel.org> wrote: > > > On Wed, Mar 15, 2017 at 2:45 PM, Olimpiu Dejeu > wrote: > >> backlight: Add arc to vendor prefixes > >> Signed-off-by: Olimpiu Dejeu > >> --- > >> v8: > >> -

Re: net: heap out-of-bounds in fib6_clean_node/rt6_fill_node/fib6_age/fib6_prune_clone

2017-04-25 Thread Andrey Konovalov
On Tue, Apr 25, 2017 at 5:56 PM, David Ahern wrote: > On 3/4/17 11:57 AM, Dmitry Vyukov wrote: >> == >> BUG: KASAN: slab-out-of-bounds in rt6_dump_route+0x293/0x2f0 >> net/ipv6/route.c:3551 at addr 88007e523694 >> Read of size 4 b

Re: [PATCH v2 2/2] libnvdimm, region: sysfs trigger for nvdimm_flush()

2017-04-25 Thread Ross Zwisler
On Mon, Apr 24, 2017 at 04:50:01PM -0700, Dan Williams wrote: > The nvdimm_flush() mechanism helps to reduce the impact of an ADR > (asynchronous-dimm-refresh) failure. The ADR mechanism handles flushing > platform WPQ (write-pending-queue) buffers when power is removed. The > nvdimm_flush() mechan

Re: [PATCH v2] net/packet: initialize val in packet_getsockopt()

2017-04-25 Thread Alexander Potapenko
On Tue, Apr 25, 2017 at 6:32 PM, David Miller wrote: > From: Alexander Potapenko > Date: Tue, 25 Apr 2017 18:27:04 +0200 > >> On Tue, Apr 25, 2017 at 5:44 PM, David Miller wrote: >>> From: Alexander Potapenko >>> Date: Mon, 24 Apr 2017 14:59:14 +0200 >>> In the case getsockopt() is called

Re: [PATCH v2 2/2] libnvdimm, region: sysfs trigger for nvdimm_flush()

2017-04-25 Thread Dan Williams
On Tue, Apr 25, 2017 at 9:37 AM, Ross Zwisler wrote: > On Mon, Apr 24, 2017 at 04:50:01PM -0700, Dan Williams wrote: >> The nvdimm_flush() mechanism helps to reduce the impact of an ADR >> (asynchronous-dimm-refresh) failure. The ADR mechanism handles flushing >> platform WPQ (write-pending-queue)

Re: net: heap out-of-bounds in fib6_clean_node/rt6_fill_node/fib6_age/fib6_prune_clone

2017-04-25 Thread Andrey Konovalov
On Tue, Apr 25, 2017 at 6:36 PM, Andrey Konovalov wrote: > On Tue, Apr 25, 2017 at 5:56 PM, David Ahern wrote: >> On 3/4/17 11:57 AM, Dmitry Vyukov wrote: >>> == >>> BUG: KASAN: slab-out-of-bounds in rt6_dump_route+0x293/0x2f0 >>> ne

Re: [PATCH] x86/refcount: Implement fast refcount_t handling

2017-04-25 Thread Kees Cook
On Tue, Apr 25, 2017 at 4:26 AM, PaX Team wrote: > INT_MAX threads would be needed when the leaking path is locked so > that it can only be exercised once and you'll need to get normal > (balanced) paths preempted just after the increment. if the leaking > path is lockless (can be exercised in par

Re: net: heap out-of-bounds in fib6_clean_node/rt6_fill_node/fib6_age/fib6_prune_clone

2017-04-25 Thread David Ahern
On 4/25/17 10:38 AM, Andrey Konovalov wrote: > I'll keep fuzzing in the meantime to make sure. > Maybe I'll be able to collect more reports or even another reproducer. start a new email thread for each stack trace. I'll write a debug patch for the trace you hit today.

GPU hangs and X shot down with 4.11-rc6

2017-04-25 Thread Michal Hocko
Hi, I have just experienced X being shut down once with 4.11-rc2 and 2 times with 4.11-rc6 kernel. I do not remember seeing something like this before but it is quite possible I was just lucky to not trigger this issue before. It always happened while I was working on a presentation in LibreOffice

Re: [PATCH v3 10/20] fuse: set mapping error in writepage_locked when it fails

2017-04-25 Thread Jeff Layton
On Tue, 2017-04-25 at 13:19 +0200, Jan Kara wrote: > On Tue 25-04-17 06:35:13, Jeff Layton wrote: > > On Tue, 2017-04-25 at 10:17 +0200, Jan Kara wrote: > > > On Mon 24-04-17 13:14:36, Jeff Layton wrote: > > > > On Mon, 2017-04-24 at 18:04 +0200, Jan Kara wrote: > > > > > On Mon 24-04-17 09:22:49,

Re: get_zone_device_page() in get_page() and page_cache_get_speculative()

2017-04-25 Thread Dan Williams
On Tue, Apr 25, 2017 at 6:19 AM, Kirill A. Shutemov wrote: > On Mon, Apr 24, 2017 at 11:41:51AM -0700, Dan Williams wrote: >> On Mon, Apr 24, 2017 at 11:25 AM, Kirill A. Shutemov >> wrote: >> > On Mon, Apr 24, 2017 at 09:01:58PM +0300, Kirill A. Shutemov wrote: >> >> On Mon, Apr 24, 2017 at 10:47

Re: [PATCH] x86/mm/64: Fix crash in remove_pagetable()

2017-04-25 Thread Dan Williams
On Tue, Apr 25, 2017 at 2:25 AM, Kirill A. Shutemov wrote: > remove_pagetable() does page walk using p*d_page_vaddr() plus cast. > It's not canonical approach -- we usually use p*d_offset() for that. > > It works fine as long as all page table levels are present. We broke the > invariant by introd

Re: [PATCH v2 2/2] of: Add unit tests for applying overlays

2017-04-25 Thread Rob Herring
On Mon, Apr 24, 2017 at 6:05 PM, wrote: > From: Frank Rowand > > Existing overlay unit tests examine individual pieces of the overlay > code. The new tests target the entire process of applying an overlay. Just a few nits. > Signed-off-by: Frank Rowand [...] > diff --git a/drivers/of/of_pr

[PATCH] ARM: dts: Add devicetree for the Raspberry Pi 3, for arm32 (v6)

2017-04-25 Thread Eric Anholt
Raspbian and Fedora have decided to support the Pi3 in 32-bit mode for now, so it's useful to be able to test that mode on an upstream kernel. It's also been useful for me to use the same board for 32-bit and 64-bit development. Signed-off-by: Eric Anholt --- arch/arm/boot/dts/Makefile

Re: [PATCH] ARM: dts: Add devicetree for the Raspberry Pi 3, for arm32 (v5)

2017-04-25 Thread Eric Anholt
Stefan Wahren writes: > Am 24.04.2017 um 22:00 schrieb Eric Anholt: >> Raspbian and Fedora have decided to support the Pi3 in 32-bit mode for >> now, so it's useful to be able to test that mode on an upstream >> kernel. It's also been useful for me to use the same board for 32-bit >> and 64-bit

Re: [PATCH v2] x86, msr: Document AMD "tweak MSRs", use MSR_FnnH_NAME scheme for them

2017-04-25 Thread Denys Vlasenko
On 04/25/2017 06:23 PM, Borislav Petkov wrote: On Tue, Apr 25, 2017 at 06:15:23PM +0200, Denys Vlasenko wrote: On 04/25/2017 06:06 PM, Borislav Petkov wrote: Pls no. Not every MSR for every family. Only the 4 which are actually being used. We can't hold in here the full 32-bit MSR space. The

typec: tcpm/tcpci drivers acceptable for drivers/staging in v4.12 ?

2017-04-25 Thread Guenter Roeck
Hi Greg, would you be open to accepting the tcpm [1] and tcpci [2] drivers into drivers/staging for v4.12 ? The drivers are not ready for prime time, yet there is interest by others to have them available and to help improving the code. I could create a repository/branch at github to enable that,

Re: support autofocus / autogain in libv4l2

2017-04-25 Thread Nicolas Dufresne
Le mardi 25 avril 2017 à 10:08 +0200, Pali Rohár a écrit : > On Tuesday 25 April 2017 10:05:38 Pavel Machek wrote: > > > > It would be nice if more than one application could be > > > > accessing the > > > > camera at the same time... (I.e. something graphical running > > > > preview > > > > then u

Re: Applied "ASoC: Add support for Maxim Integrated MAX98927 Amplifier" to the asoc tree

2017-04-25 Thread Ryan Lee
' On Thu, Apr 6, 2017 at 11:55 AM, Mark Brown wrote: > The patch > >ASoC: Add support for Maxim Integrated MAX98927 Amplifier > > has been applied to the asoc tree at > >git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git > > All being well this means that it will be integrate

Re: [PATCH] scsi: fcoe: make fcoe_e_d_tov and fcoe_r_a_tov static

2017-04-25 Thread Martin K. Petersen
Colin, > These module parameter variables don't need global scope, make them > static Applied to 4.12/scsi-queue. Thanks! -- Martin K. Petersen Oracle Linux Engineering

[PATCH] net/packet: check length in getsockopt() called with PACKET_HDRLEN

2017-04-25 Thread Alexander Potapenko
In the case getsockopt() is called with PACKET_HDRLEN and optlen < 4 |val| remains uninitialized and the syscall may behave differently depending on its value, and even copy garbage to userspace on certain architectures. To fix this we now return -EINVAL if optlen is too small. This bug has been d

Re: [PATCH v2] arm64: perf: Use only exclude_kernel attribute when kernel is running in HYP

2017-04-25 Thread Will Deacon
On Tue, Apr 25, 2017 at 09:13:40AM +0530, Ganapatrao Kulkarni wrote: > On Mon, Apr 24, 2017 at 9:15 PM, Will Deacon wrote: > > On Thu, Apr 20, 2017 at 02:56:50PM +0530, Ganapatrao Kulkarni wrote: > >> On Thu, Apr 20, 2017 at 2:19 PM, Mark Rutland wrote: > >> > On Wed, Apr 19, 2017 at 11:14:06PM +

Re: [PATCH] scsi/mac_esp: Replace bogus memory barrier with spinlock

2017-04-25 Thread Martin K. Petersen
Michael, > looks good to me, so: > > Reviewed-By: Michael Schmitz Applied to 4.12/scsi-queue. Thank you! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] arm64: Preventing READ_IMPLIES_EXEC propagation

2017-04-25 Thread Will Deacon
On Tue, Apr 25, 2017 at 02:11:29PM +0800, dongbo (E) wrote: > From: Dong Bo > > Once the READ_IMPLIES_EXEC flag is set on arm64, the flag is > propagated to its child processes, even the ELF files are > marked as not requiring executable stack. > > Signed-off-by: Dong Bo > --- > arch/arm64/inc

Re: support autofocus / autogain in libv4l2

2017-04-25 Thread Nicolas Dufresne
Le mardi 25 avril 2017 à 10:05 +0200, Pavel Machek a écrit : > Well, fd's are hard, because application can do fork() and now > interesting stuff happens. Threads are tricky, because now you have > locking etc. > > libv4l2 is designed to be LD_PRELOADED. That is not really feasible > with "complex

Re: [PATCH v3] fpga manager: Add Altera CvP driver

2017-04-25 Thread Yi Li
hi Anatolij On 04/21/2017 04:14 PM, Li, Yi wrote: On 4/20/2017 12:29 PM, matthew.gerl...@linux.intel.com wrote: On Thu, 20 Apr 2017, Anatolij Gustschin wrote: Add FPGA manager driver for loading Arria/Cyclone/Stratix FPGAs via CvP. Signed-off-by: Anatolij Gustschin --- Hi Anatolij, S

  1   2   3   4   5   6   7   8   9   10   >