[for-next][PATCH 3/5] selftests: ftrace: Have event tests also run in an tracing instance

2017-04-25 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The ftrace selftests of events: event-enable, event-pid, and subsystem-enable can all be run inside an instance. Change their tests to do both a toplevel run an an instance run. Signed-off-by: Steven Rostedt (VMware) --- tools/testing/selftests/ftrace/test.d/eve

[for-next][PATCH 2/5] selftests: ftrace: Make func_event_triggers and func_traceonoff_triggers tests do instances

2017-04-25 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Both the func_event_triggers and func_traceonoff_triggers tests can be performed in both the toplevel instance as well as for individual instances. Have their tests run in both cases. Signed-off-by: Steven Rostedt (VMware) --- tools/testing/selftests/ftrace/test

Re: [PATCH v2] usb: core: Warn if an URB's transfer_buffer is on stack

2017-04-25 Thread Felipe Balbi
Hi, Greg Kroah-Hartman writes: > On Tue, Apr 25, 2017 at 01:35:33PM +0300, Maksim Salau wrote: >> > + } else if (object_is_on_stack(urb->transfer_buffer)) { >> > + WARN_ONCE(1, "transfer buffer is on stack\n"); >> > + ret = -EAGA

Re: [PATCH v7 1/6] platform/x86: intel_pmc_ipc: fix gcr offset

2017-04-25 Thread Andy Shevchenko
On Mon, Apr 10, 2017 at 1:00 AM, Kuppuswamy Sathyanarayanan wrote: > According to Broxton APL spec, PMC MIMO resources for Global Control > Registers(GCR) are located at 4K(0x1000) offset from IPC base address. > In this driver, PLAT_RESOURCE_GCR_OFFSET macro defines the offset of GCR > region bas

Re: [PATCH] dell-laptop: Adds support for keyboard backlight timeout AC settings

2017-04-25 Thread Andy Shevchenko
On Tue, Apr 25, 2017 at 3:54 PM, Pali Rohár wrote: > On Tuesday 25 April 2017 15:36:56 Andy Shevchenko wrote: >> On Sun, Apr 23, 2017 at 10:40 PM, Pali Rohár wrote: >> This patch misses few others that were applied to our testing / for-next. > > Ah... sorry for that :-( And I was in impression t

Re: [PATCH 2/8] selftests: lib.mk: define CLEAN macro to allow Makefiles to override clean

2017-04-25 Thread Shuah Khan
On 04/21/2017 11:38 PM, Michael Ellerman wrote: > Shuah Khan writes: > >> Define CLEAN macro to allow Makefiles to override common clean target >> in lib.mk. This will help fix the following failures: >> >> warning: overriding recipe for target 'clean' >> ../lib.mk:55: warning: ignoring old recip

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

2017-04-25 Thread Thomas Bogendoerfer
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 struct clk or a valid IS_ERR condition. NULL is neither, so returning ERR_PTR(-

Re: [PATCH] dell-laptop: Adds support for keyboard backlight timeout AC settings

2017-04-25 Thread Pali Rohár
On Tuesday 25 April 2017 16:32:36 Andy Shevchenko wrote: > On Tue, Apr 25, 2017 at 3:54 PM, Pali Rohár wrote: > > On Tuesday 25 April 2017 15:36:56 Andy Shevchenko wrote: > >> On Sun, Apr 23, 2017 at 10:40 PM, Pali Rohár wrote: > > >> This patch misses few others that were applied to our testing

Re: [PATCH 1/3] arm64: extend ioremap for cacheable non-shareable memory

2017-04-25 Thread Mark Rutland
On Fri, Apr 21, 2017 at 02:30:32PM +, Roy Pledge wrote: > These transactions are done in HW via an ACP port which if I remember > correctly only supports non coherent transactions. I will need to go > back and check through email conversations I had with Catalin last > year when debugging an i

[PATCH v2 1/2] arm: process: dump memory around registers when displaying regs

2017-04-25 Thread Enric Balletbo i Serra
Dump a block of kernel memory from around the registers in the kernel oops dump. This is behind a config option (DEBUG_AROUND_REGS), since it adds a bunch of noise to the kernel logs (which someone can find valuable but not everyone else will). This is extremely useful in diagnosing remote crashes

[PATCH v2 2/2] arm64: process: dump memory around registers when displaying regs

2017-04-25 Thread Enric Balletbo i Serra
From: Greg Hackmann Dump a block of kernel memory from around the registers in the kernel oops dump. This is behind a config option (DEBUG_AROUND_REGS), since it adds a bunch of noise to the kernel logs (which someone can find valuable but not everyone else will). This is extremely useful in dia

Re: [PATCH 0/9] sched_clock fixes

2017-04-25 Thread Peter Zijlstra
On Tue, Apr 25, 2017 at 09:31:40AM +, Lofstedt, Marta wrote: > Hi Peterz, > > I tested your patch-set on the same Core2 machine as where we discovered the > regression. > With the tsc=unstable boot param that passrate has improved significantly; > 350 fails -> 15 fails. So is that the same

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

2017-04-25 Thread Alan Cox
> I am looking on Linux thermal framework and on how to cool down the > system effectively when it hits thermal condition. Already existing > cooling methods cpu_cooling and clock_cooling are good. However, I > wanted to go further and dynamically control also a switch ports' > speed based on therm

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

2017-04-25 Thread Jan Kiszka
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 >> built in DSDT this way? I'm all ears if we

Re: [PATCH v5 0/2] security: tty: make TIOCSTI ioctl require CAP_SYS_ADMIN

2017-04-25 Thread Alan Cox
> There could be a few user programs that would be effected by this > change. > See: > notable programs are: agetty, csh, xemacs and tcsh > > However, I still believe that this change is worth it given that the > Kconfig defaults to n.

RE: [PATCH] dell-laptop: Adds support for keyboard backlight timeout AC settings

2017-04-25 Thread Mario.Limonciello
> -Original Message- > From: Pali Rohár [mailto:pali.ro...@gmail.com] > Sent: Tuesday, April 25, 2017 8:41 AM > To: Andy Shevchenko > Cc: Matthew Garrett ; Darren Hart > ; Andy Shevchenko ; Arcadiy Ivanov > ; Limonciello, Mario ; > Platform Driver ; linux- > ker...@vger.kernel.org > Subjec

Re: [v6 PATCH 12/21] x86/insn: Support both signed 32-bit and 64-bit effective addresses

2017-04-25 Thread Borislav Petkov
On Tue, Mar 07, 2017 at 04:32:45PM -0800, Ricardo Neri wrote: > The 32-bit and 64-bit address encodings are identical. This means that we > can use the same function in both cases. In order to reuse the function for > 32-bit address encodings, we must sign-extend our 32-bit signed operands to > 64-

Re: [PATCH V9 1/3] irq: Allow to pass the IRQF_TIMER flag with percpu irq request

2017-04-25 Thread Daniel Lezcano
On 25/04/2017 15:22, Marc Zyngier wrote: > On 25/04/17 13:51, Daniel Lezcano wrote: >> On Tue, Apr 25, 2017 at 11:21:21AM +0100, Marc Zyngier wrote: >>> On 25/04/17 10:49, Daniel Lezcano wrote: On Tue, Apr 25, 2017 at 10:10:12AM +0100, Marc Zyngier wrote: >>> >>> [...] >>> >> +static inlin

Re: [PATCH v5 0/2] security: tty: make TIOCSTI ioctl require CAP_SYS_ADMIN

2017-04-25 Thread Jann Horn
On Tue, Apr 25, 2017 at 3:47 PM, Alan Cox wrote: >> There could be a few user programs that would be effected by this >> change. >> See: >> notable programs are: agetty, csh, xemacs and tcsh >> >> However, I still believe that this chan

admin

2017-04-25 Thread administrador
ATENCIÓN; Su buzón ha superado el límite de almacenamiento, que es de 5 GB definidos por el administrador, quien actualmente está ejecutando en 10.9GB, no puede ser capaz de enviar o recibir correo nuevo hasta que vuelva a validar su buzón de correo electrónico. Para revalidar su buzón de corre

[patch 2/2] MM: allow per-cpu vmstat_threshold and vmstat_worker configuration

2017-04-25 Thread Marcelo Tosatti
The per-CPU vmstat worker is a problem on -RT workloads (because ideally the CPU is entirely reserved for the -RT app, without interference). The worker transfers accumulated per-CPU vmstat counters to global counters. To resolve the problem, create two tunables: * Userspace configurable per-CPU

[patch 0/2] per-CPU vmstat thresholds and vmstat worker disablement

2017-04-25 Thread Marcelo Tosatti
The per-CPU vmstat worker is a problem on -RT workloads (because ideally the CPU is entirely reserved for the -RT app, without interference). The worker transfers accumulated per-CPU vmstat counters to global counters. To resolve the problem, create two tunables: * Userspace configurable per-CPU

[patch 1/2] MM: remove unused quiet_vmstat function

2017-04-25 Thread Marcelo Tosatti
Remove unused quiet_vmstat function. Signed-off-by: Marcelo Tosatti --- include/linux/vmstat.h |1 - mm/vmstat.c| 25 - 2 files changed, 26 deletions(-) Index: linux-2.6-git-disable-vmstat-worker/include/linux/vmstat.h =

Re: [PATCH] x86: kvm: Avoid guest page table walk when gpa_available is set

2017-04-25 Thread Radim Krčmář
2017-04-24 17:14-0500, Brijesh Singh: >> >/* GPA available (AMD only) */ >> >bool gpa_available; >> > + gpa_t gpa_val; >> >> Can't we pass this information through function parameters? >> >> (I'd rather avoid intractable variables.) >> > > I also wanted to avoid adding yet another vari

[PATCH 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 4d6fa57b4dab0d77f4d8e9d9c73d1e63f6fe8fee. Signed-off-by: Jason A. Donenfeld --- net/core/skbuff.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/net/core/skbuff.c b/net/core/skbuff.c index f86bf69cfb8d..3c

[PATCH 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,

[PATCH 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

[PATCH 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

[RELEASE] LTTng-modules 2.8.5 and 2.9.2 (Linux kernel tracer)

2017-04-25 Thread Mathieu Desnoyers
Hi! These new releases of LTTng-modules (2.8.5 and 2.9.2) mainly adapt actively maintained stable branches (stable-2.8 and stable-2.9) to build on 4.10 and 4.11-rc8 Linux kernels. LTTng-modules 2.9.1 already supported the 4.10 kernel. Therefore, 2.9.2 adds support for 4.11-rc8 kernel to the stabl

[PATCH 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

Re: [PATCH v17 2/3] usb: USB Type-C connector class

2017-04-25 Thread Guenter Roeck
On 04/25/2017 01:26 AM, Rajaram R wrote: On Mon, Apr 24, 2017 at 11:20 PM, Badhri Jagan Sridharan wrote: On Sat, Apr 22, 2017 at 2:23 AM, Rajaram R wrote: On Fri, Apr 21, 2017 at 10:13 PM, Guenter Roeck wrote: On Fri, Apr 21, 2017 at 07:57:52PM +0530, Rajaram R wrote: On Fri, Apr 21, 2017

[PATCH] sched/cputime: Fix ksoftirqd cputime accounting regression

2017-04-25 Thread Frederic Weisbecker
irq_time_read() returns the irqtime minus the ksoftirqd time. This is necessary because irq_time_read() is used to substract the IRQ time from the sum_exec_runtime of a task. If we were to include the softirq time of ksoftirqd, this task would substract its own CPU time everytime it updates ksoftir

Re: [PATCH v7 1/4] syscalls: Restore address limit after a syscall

2017-04-25 Thread Thomas Garnier
On Mon, Apr 24, 2017 at 11:23 PM, Ingo Molnar wrote: > > * Kees Cook wrote: > >> On Mon, Apr 10, 2017 at 9:44 AM, Thomas Garnier wrote: >> > This patch ensures a syscall does not return to user-mode with a kernel >> > address limit. If that happened, a process can corrupt kernel-mode >> > memory

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

2017-04-25 Thread Arnaldo Carvalho de Melo
Em Mon, Apr 24, 2017 at 01:36:30PM -0700, Luck, Tony escreveu: > On Mon, Apr 24, 2017 at 04:54:37PM -0300, Arnaldo Carvalho de Melo wrote: > > From: Arnaldo Carvalho de Melo > > Just a minor fix done in: > > Fixes: 26a37ab319a2 ("x86/mce: Fix copy/paste error in exception table > > entries")

Re: [PATCH v2 12/18] gpio: madera: Support Cirrus Logic Madera class codecs

2017-04-25 Thread Linus Walleij
On Mon, Apr 24, 2017 at 6:08 PM, Richard Fitzgerald wrote: > This adds support for the GPIOs on Cirrus Logic Madera class codecs. > Any pins not used for special functions (see the pinctrl driver) can be > used as general single-bit input or output lines. The number of available > GPIOs varies be

[PATCH v2 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 4d6fa57b4dab0d77f4d8e9d9c73d1e63f6fe8fee. Signed-off-by: Jason A. Donenfeld --- net/core/skbuff.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/net/core/skbuff.c b/net/core/skbuff.c index f86bf69cfb8d

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

2017-04-25 Thread Peter Rosin
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 >>> only set by the first consumer, and controls whether selecting locks? >> >> That has the drawback that it is hard

Re: [RFC 2/2] mm: skip HWPoisoned pages when onlining pages

2017-04-25 Thread Laurent Dufour
On 25/04/2017 10:00, Naoya Horiguchi wrote: > On Thu, Apr 20, 2017 at 11:26:02AM +0200, Laurent Dufour wrote: >> The commit b023f46813cd ("memory-hotplug: skip HWPoisoned page when >> offlining pages") skip the HWPoisoned pages when offlining pages, but >> this should be skipped when onlining the p

Re: [PATCH v7 1/4] syscalls: Restore address limit after a syscall

2017-04-25 Thread Thomas Garnier
On Mon, Apr 24, 2017 at 11:33 PM, Ingo Molnar wrote: > > * Thomas Garnier wrote: > >> This patch ensures a syscall does not return to user-mode with a kernel >> address limit. If that happened, a process can corrupt kernel-mode >> memory and elevate privileges. > > Don't start changelogs with 'Th

[PATCH v3 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 4d6fa57b4dab0d77f4d8e9d9c73d1e63f6fe8fee. Signed-off-by: Jason A. Donenfeld --- Sorry for the completely stupid amount of churn - v1,v2,v3 in the span of two minutes. It's just that after noticing first that nsg needs to be checked, I al

Re: Resizeable PCI BAR support V4

2017-04-25 Thread Andy Shevchenko
On Tue, Apr 25, 2017 at 4:19 PM, Christian König wrote: > Hi everyone, > > This is the fourth incarnation of this set of patches. It would be nice if you put (next time) version of the series in each patch. Usually it's done quite easy by passing -vX (where X is version number) to git format-patc

[PATCH v2 0/2] BUG raised when onlining HWPoisoned page

2017-04-25 Thread Laurent Dufour
When a page is HWPoisoned and later offlined and onlined back, a BUG warning is raised in the kernel: BUG: Bad page state in process mem-on-off-test pfn:7ae3b page:f1eb8ec0 count:0 mapcount:0 mapping: (null) index:0x1 flags: 0x380020(hwpoison) raw: 00380020 00

[PATCH v2 2/2] mm: skip HWPoisoned pages when onlining pages

2017-04-25 Thread Laurent Dufour
The commit b023f46813cd ("memory-hotplug: skip HWPoisoned page when offlining pages") skip the HWPoisoned pages when offlining pages, but this should be skipped when onlining the pages too. Signed-off-by: Laurent Dufour --- mm/memory_hotplug.c | 4 1 file changed, 4 insertions(+) diff --gi

[PATCH v2 1/2] mm: Uncharge poisoned pages

2017-04-25 Thread Laurent Dufour
When page are poisoned, they should be uncharged from the root memory cgroup. This is required to avoid a BUG raised when the page is onlined back: BUG: Bad page state in process mem-on-off-test pfn:7ae3b page:f1eb8ec0 count:0 mapcount:0 mapping: (null) index:0x1 flags: 0x380

Re: [PATCH] usb: plusb: Add support for PL-27A1

2017-04-25 Thread David Miller
From: Roman Spychała Date: Thu, 20 Apr 2017 12:04:10 +0200 > From: Roman Spychała > > This patch adds support for the PL-27A1 by adding the appropriate > USB ID's. This chip is used in the goobay Active USB 3.0 Data Link > and Unitek Y-3501 cables. > > Signed-off-by: Roman Spychała Applied,

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 09:17 AM, Peter Zijlstra wrote: > On Mon, Apr 24, 2017 at 12:11:59PM -0300, Lauro Venancio wrote: >> On 04/24/2017 10:03 AM, Peter Zijlstra wrote: >>> On Thu, Apr 20, 2017 at 04:51:43PM -0300, Lauro Ramos Venancio wrote: >>> diff --git a/kernel/sched/topology.c b/kernel/sched/top

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 9:19 AM, Christian König wrote: > From: Christian König > > Try to resize BAR0 to let CPU access all of VRAM. > > v2: rebased, style cleanups, disable mem decode before resize, > handle gmc_v9 as well, round size up to power of two. > > Signed-off-by: Christian König

[PATCH -next] drm/nouveau/secboot/gm20b: fix the error return code in gm20b_secboot_tegra_read_wpr()

2017-04-25 Thread Wei Yongjun
From: Wei Yongjun The error return code PTR_ERR(mc) is always 0 since mc is equal to 0 in this error handling case. Signed-off-by: Wei Yongjun --- drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gm20b.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nvk

Re: [PATCH v1] net: phy: fix auto-negotiation stall due to unavailable interrupt

2017-04-25 Thread David Miller
From: Alexander Kochetkov Date: Thu, 20 Apr 2017 14:00:04 +0300 > The Ethernet link on an interrupt driven PHY was not coming up if the Ethernet > cable was plugged before the Ethernet interface was brought up. > > The patch trigger PHY state machine to update link state if PHY was requested >

[PATCH v2] fscrypt: Add support for AES-128-CBC

2017-04-25 Thread David Gstir
From: Daniel Walter fscrypt provides facilities to use different encryption algorithms which are selectable by userspace when setting the encryption policy. Currently, only AES-256-XTS for file contents and AES-256-CBC-CTS for file names are implemented. This is a clear case of kernel offers the

Re: [PATCH v3 07/29] x86: bpf_jit, use ENTRY+ENDPROC

2017-04-25 Thread Jiri Slaby
On 04/24/2017, 08:24 PM, David Miller wrote: > From: Jiri Slaby > Date: Mon, 24 Apr 2017 19:51:54 +0200 > >> For example what's the point of making the sk_load_word_positive_offset >> label a global, callable function? Note that this is exactly the reason >> why this particular two hunks look wei

[PATCH] drivers: input: joystick: Add PSX (Play Station 1/2) pad with SPI driver.

2017-04-25 Thread AZO
PSX pads can be connected directry SPI bus. Signed-off-by: AZO --- drivers/input/joystick/Kconfig | 16 + drivers/input/joystick/Makefile | 1 + drivers/input/joystick/psxpad-spi.c | 671 3 files changed, 688 insertions(+) create mode 100644 driv

Re: [PATCH v2 12/18] gpio: madera: Support Cirrus Logic Madera class codecs

2017-04-25 Thread Richard Fitzgerald
On Tue, 2017-04-25 at 16:13 +0200, Linus Walleij wrote: > On Mon, Apr 24, 2017 at 6:08 PM, Richard Fitzgerald > wrote: > > > This adds support for the GPIOs on Cirrus Logic Madera class codecs. > > Any pins not used for special functions (see the pinctrl driver) can be > > used as general single-

[PATCH 0/4] rtc: m41t80: improve SQW support

2017-04-25 Thread Gary Bisson
Hi, This series aims at improving the square-wave support for some of the devices supported by the m41t80 driver. The first two patches are fixes that prevent the driver from overriding the SQW configuration (divider & enable bit). Then the last two remove the old sysfs entry and replace it with

[PATCH 2/4] rtc: m41t80: fix SQW dividers override when setting a date

2017-04-25 Thread Gary Bisson
This patch is only relevant for RTC with the SQ_ALT feature which means the clock output frequency divider is stored in the weekday register. Current implementation discards the previous dividers value and clear them as soon as the time is set. Signed-off-by: Gary Bisson --- drivers/rtc/rtc-m41

[PATCH 1/4] rtc: m41t80: fix SQWE override when setting an alarm

2017-04-25 Thread Gary Bisson
Currently setting an alarm clears the SQWE bit which means that the clock output is disabled no matter its previous state. Signed-off-by: Gary Bisson --- drivers/rtc/rtc-m41t80.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/rtc/rtc-m41t80.c b/drivers/rtc/rtc-m41t80.c index 5869

[PATCH 3/4] rtc: m41t80: remove sqw sysfs entry

2017-04-25 Thread Gary Bisson
In order to use the proper clock framework to control this feature. Signed-off-by: Gary Bisson --- drivers/rtc/rtc-m41t80.c | 88 1 file changed, 88 deletions(-) diff --git a/drivers/rtc/rtc-m41t80.c b/drivers/rtc/rtc-m41t80.c index 0c142653c309.

[PATCH 4/4] rtc: m41t80: add clock provider support

2017-04-25 Thread Gary Bisson
Some devices supported by the m41t80 driver have a programmable square-wave output signal (see M41T80_FEATURE_SQ). This enables to use this feature as a clock provider of common clock framework. Signed-off-by: Gary Bisson --- drivers/rtc/rtc-m41t80.c | 172 ++

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

2017-04-25 Thread David Miller
From: "Jason A. Donenfeld" Date: Tue, 25 Apr 2017 16:08:05 +0200 > This is a defense-in-depth measure in response to bugs like > 4d6fa57b4dab0d77f4d8e9d9c73d1e63f6fe8fee. > > Signed-off-by: Jason A. Donenfeld Please refer to commits in the form: $(SHA1_ID) ("Commit header line.") That is, 12

v4.11-rc7, deadlock? workqueue pool->lock and serial8250 port_lock_key

2017-04-25 Thread J. R. Okajima
Hello, I've found this kernel log from v4.11.0-rc7, and all(?) workqueues seem stopped working. The system is using a serial console by the kernel command line root=3D/dev/sda8 ro console=3DttyS0,115200 console=3Dtty0 mem=3D1G Does it mean that show_workqueue_state() on a serial console (

Re: [PATCH v2] sched/cfs: make util/load_avg more stable

2017-04-25 Thread Dietmar Eggemann
On 25/04/17 13:40, Vincent Guittot wrote: > On 25 April 2017 at 13:05, Dietmar Eggemann wrote: >> On 19/04/17 17:54, Vincent Guittot wrote: >>> In the current implementation of load/util_avg, we assume that the ongoing >>> time segment has fully elapsed, and util/load_sum is divided by >>> LOAD_A

Re: [PATCH] macsec: avoid heap overflow in skb_to_sgvec

2017-04-25 Thread Sabrina Dubroca
2017-04-21, 23:14:48 +0200, Jason A. Donenfeld wrote: > While this may appear as a humdrum one line change, it's actually quite > important. An sk_buff stores data in three places: > > 1. A linear chunk of allocated memory in skb->data. This is the easiest >one to work with, but it precludes u

Re: [PATCH 0/2] DS1374 Watchdog fixes

2017-04-25 Thread Moritz Fischer
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 currently I'm investigating how to make >> that work via DT. >> >> Watchdog maint

Re: [PATCH v4 1/2] tiocsti-restrict : Add owner user namespace to tty_struct

2017-04-25 Thread Alan Cox
On Mon, 24 Apr 2017 01:15:11 -0400 Matt Brown wrote: > This patch adds struct user_namespace *owner_user_ns to the tty_struct. > Then it is set to current_user_ns() in the alloc_tty_struct function. > > This is done to facilitate capability checks against the original user > namespace that alloc

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

2017-04-25 Thread Peter Rosin
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 only set by the first consumer, and controls whether selecting lock

Re: [BUG] x86: failed to boot a kernel on a Ryzen machine

2017-04-25 Thread Masami Hiramatsu
Hello, 2017-04-24 22:09 GMT+09:00 Satoru Takeuchi : > At Mon, 24 Apr 2017 14:48:46 +0200, > Borislav Petkov wrote: >> >> On Mon, Apr 24, 2017 at 09:39:12PM +0900, Satoru Takeuchi wrote: >> > I used the following auto-test tool (its backend is ktest). >> > >> > https://github.com/satoru-takeuchi/el

Re: [PATCH v2 0/3] efi: add support for non-standard capsule headers

2017-04-25 Thread Matt Fleming
On Wed, 19 Apr, at 08:32:59PM, Jan Kiszka wrote: > This picks up the patches Ard send before in [1], including the > "left-over" patches 6..8. > > As Ard suggested, I've taken updated patches 6 and 7 of him from [2] > which address reviewer comments. Furthermore, I've changed patch 8 to > factor o

Re: [PATCH 1/4] PCI: add resizeable BAR infrastructure v4

2017-04-25 Thread Alex Deucher
On Tue, Apr 25, 2017 at 9:19 AM, Christian König wrote: > From: Christian König > > Just the defines and helper functions to read the possible sizes of a BAR and > update it's size. > > See > https://pcisig.com/sites/default/files/specification_documents/ECN_Resizable-BAR_24Apr2008.pdf > and PCI

Re: [PATCH 3/4] x86/PCI: Enable a 64bit BAR on AMD Family 15h (Models 30h-3fh) Processors v2

2017-04-25 Thread Alex Deucher
On Tue, Apr 25, 2017 at 9:19 AM, Christian König wrote: > From: Christian König > > Most BIOS don't enable this because of compatibility reasons. > > Manually enable a 64bit BAR of 64GB size so that we have > enough room for PCI devices. > > v2: style cleanups, increase size, add resource name, s

Re: [PATCH v2 0/3] efi: add support for non-standard capsule headers

2017-04-25 Thread Ard Biesheuvel
On 25 April 2017 at 16:00, Matt Fleming wrote: > On Wed, 19 Apr, at 08:32:59PM, Jan Kiszka wrote: >> This picks up the patches Ard send before in [1], including the >> "left-over" patches 6..8. >> >> As Ard suggested, I've taken updated patches 6 and 7 of him from [2] >> which address reviewer com

Re: [PATCH 4/8] selftests: gpio: override clean in lib.mk to fix warnings

2017-04-25 Thread Shuah Khan
On 04/21/2017 11:40 PM, Michael Ellerman wrote: > Shuah Khan writes: > >> Add override for lib.mk clean to fix the following warnings from clean >> target run. >> >> Makefile:11: warning: overriding recipe for target 'clean' >> ../lib.mk:55: warning: ignoring old recipe for target 'clean' >> >> S

Re: [PATCH 6/8] selftests: splice: override clean in lib.mk to fix warnings

2017-04-25 Thread Shuah Khan
On 04/21/2017 11:40 PM, Michael Ellerman wrote: > Shuah Khan writes: > >> Add override 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' >> >> Si

Re: [PATCH 8/8] selftests: x86: override clean in lib.mk to fix warnings

2017-04-25 Thread Shuah Khan
On 04/21/2017 11:41 PM, Michael Ellerman wrote: > Shuah Khan writes: > >> Add override 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' >> >> S

Re: [PATCH 7/8] selftests: sync: override clean in lib.mk to fix warnings

2017-04-25 Thread Shuah Khan
On 04/21/2017 11:41 PM, Michael Ellerman wrote: > Shuah Khan writes: > >> Add override 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' >> >> S

[PATCH v4 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 --- v4 fixes the commit message and moves the check into the inner-most if. net/core/skbuff.c | 12 +++- 1 file changed, 11 insertio

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

2017-04-25 Thread Cédric Le Goater
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/ibmpowernv.c index 6d2e660..1f329fa8 100644 --- a

Re: [PATCH v2 0/3] efi: add support for non-standard capsule headers

2017-04-25 Thread Bryan O'Donoghue
On 25/04/17 16:01, Ard Biesheuvel wrote: > On 25 April 2017 at 16:00, Matt Fleming wrote: >> On Wed, 19 Apr, at 08:32:59PM, Jan Kiszka wrote: >>> This picks up the patches Ard send before in [1], including the >>> "left-over" patches 6..8. >>> >>> As Ard suggested, I've taken updated patches 6 and

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

2017-04-25 Thread Alexander Duyck
On Mon, Apr 24, 2017 at 4:00 PM, Singh, Krishneil K wrote: > > > > -Original Message- > From: Intel-wired-lan [mailto:intel-wired-lan-boun...@lists.osuosl.org] On > Behalf Of Liwei Song > Sent: Sunday, December 4, 2016 7:41 PM > To: Kirsher, Jeffrey T > Cc: net...@vger.kernel.org; intel-

Re: [PATCH v2 0/3] efi: add support for non-standard capsule headers

2017-04-25 Thread Ard Biesheuvel
On 25 April 2017 at 16:07, Bryan O'Donoghue wrote: > On 25/04/17 16:01, Ard Biesheuvel wrote: >> On 25 April 2017 at 16:00, Matt Fleming wrote: >>> On Wed, 19 Apr, at 08:32:59PM, Jan Kiszka wrote: This picks up the patches Ard send before in [1], including the "left-over" patches 6..8.

Re: [PATCH] macsec: avoid heap overflow in skb_to_sgvec

2017-04-25 Thread Jason A. Donenfeld
Hi Sabrina, On Tue, Apr 25, 2017 at 4:53 PM, Sabrina Dubroca wrote: > Ugh, good catch :/ > > AFAICT this patch doesn't really help, because NETIF_F_FRAGLIST > doesn't get tested in paths that can lead to triggering this. You're right. This fixes the xmit() path, but not the receive path, which a

[PATCH 4.4 00/28] 4.4.64-stable review

2017-04-25 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.4.64 release. There are 28 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Thu Apr 27 15:08:00 UTC 2017. Anything receive

[PATCH 4.4 01/28] KEYS: Disallow keyrings beginning with . to be joined as session keyrings

2017-04-25 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: David Howells commit ee8f844e3c5a73b999edf733df1c529d6503ec2f upstream. This fixes CVE-2016-9604. Keyrings whose name begin with a '.' are special internal keyrings and so userspace isn't allo

[PATCH 4.4 12/28] VSOCK: Detach QP check should filter out non matching QPs.

2017-04-25 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Jorgen Hansen commit 8ab18d71de8b07d2c4d6f984b718418c09ea45c5 upstream. The check in vmci_transport_peer_detach_cb should only allow a detach when the qp handle of the transport matches the one

[PATCH 4.4 19/28] x86/mce/AMD: Give a name to MCA bank 3 when accessed with legacy MSRs

2017-04-25 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Yazen Ghannam commit 29f72ce3e4d18066ec75c79c857bee0618a3504b upstream. MCA bank 3 is reserved on systems pre-Fam17h, so it didn't have a name. However, MCA bank 3 is defined on Fam17h systems

[PATCH 4.4 16/28] mac80211: reject ToDS broadcast data frames

2017-04-25 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Johannes Berg commit 3018e947d7fd536d57e2b550c33e456d921fff8c upstream. AP/AP_VLAN modes don't accept any real 802.11 multicast data frames, but since they do need to accept broadcast managemen

[PATCH 4.4 13/28] Input: elantech - add Fujitsu Lifebook E547 to force crc_enabled

2017-04-25 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Thorsten Leemhuis commit 704de489e0e3640a2ee2d0daf173e9f7375582ba upstream. Temporary got a Lifebook E547 into my hands and noticed the touchpad only works after running: echo "1" > /s

[PATCH 4.4 21/28] powerpc/64: Fix flush_(d|i)cache_range() called from modules

2017-04-25 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Oliver O'Halloran commit 8f5f525d5b83f7d76a6baf9c4e94d4bf312ea7f6 upstream. When the kernel is compiled to use 64bit ABIv2 the _GLOBAL() macro does not include a global entry point. A function'

[PATCH 4.4 25/28] hv: dont reset hv_context.tsc_page on crash

2017-04-25 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Vitaly Kuznetsov commit 56ef6718a1d8d77745033c5291e025ce18504159 upstream. It may happen that secondary CPUs are still alive and resetting hv_context.tsc_page will cause a consequent crash in r

[PATCH 4.4 08/28] s390/mm: fix CMMA vs KSM vs others

2017-04-25 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Christian Borntraeger commit a8f60d1fadf7b8b54449fcc9d6b15248917478ba upstream. On heavy paging with KSM I see guest data corruption. Turns out that KSM will add pages to its tree, where the ma

[PATCH 4.4 24/28] Drivers: hv: balloon: account for gaps in hot add regions

2017-04-25 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Vitaly Kuznetsov commit cb7a5724c7e1bfb5766ad1c3beba14cc715991cf upstream. I'm observing the following hot add requests from the WS2012 host: hot_add_req: start_pfn = 0x108200 count = 330752 h

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

2017-04-25 Thread Cédric Le Goater
... > + sdata[count].id = sensor_id; > + sdata[count].type = type; > + sdata[count].hwmon_index = sdata[count - 1].hwmon_index; > + create_hwmon_attr(&sdata[count], attr_name, > +

[PATCH 4.4 06/28] cifs: Do not send echoes before Negotiate is complete

2017-04-25 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Sachin Prabhu commit 62a6cfddcc0a5313e7da3e8311ba16226fe0ac10 upstream. commit 4fcd1813e640 ("Fix reconnect to not defer smb3 session reconnect long after socket reconnect") added support for N

[PATCH 4.9 05/21] ring-buffer: Have ring_buffer_iter_empty() return true when empty

2017-04-25 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Steven Rostedt (VMware) commit 78f7a45dac2a2d2002f98a3a95f7979867868d73 upstream. I noticed that reading the snapshot file when it is empty no longer gives a status. It suppose to show the stat

[PATCH 4.9 11/21] ACPI / power: Avoid maybe-uninitialized warning

2017-04-25 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit fe8c470ab87d90e4b5115902dd94eced7e3305c3 upstream. gcc -O2 cannot always prove that the loop in acpi_power_get_inferred_state() is enterered at least once, so it assumes th

[PATCH 4.9 15/21] mac80211: reject ToDS broadcast data frames

2017-04-25 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Johannes Berg commit 3018e947d7fd536d57e2b550c33e456d921fff8c upstream. AP/AP_VLAN modes don't accept any real 802.11 multicast data frames, but since they do need to accept broadcast managemen

[PATCH 4.9 18/21] powerpc/kprobe: Fix oops when kprobed on stdu instruction

2017-04-25 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Ravi Bangoria commit 9e1ba4f27f018742a1aa95d11e35106feba08ec1 upstream. If we set a kprobe on a 'stdu' instruction on powerpc64, we see a kernel OOPS: Bad kernel stack pointer cd93c840 at c0

[PATCH 4.9 08/21] CIFS: remove bad_network_name flag

2017-04-25 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Germano Percossi commit a0918f1ce6a43ac980b42b300ec443c154970979 upstream. STATUS_BAD_NETWORK_NAME can be received during node failover, causing the flag to be set and making the reconnect thre

[PATCH 4.9 04/21] tracing: Allocate the snapshot buffer before enabling probe

2017-04-25 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Steven Rostedt (VMware) commit df62db5be2e5f070ecd1a5ece5945b590ee112e0 upstream. Currently the snapshot trigger enables the probe and then allocates the snapshot. If the probe triggers before

[PATCH 4.10 13/24] ACPI / power: Avoid maybe-uninitialized warning

2017-04-25 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit fe8c470ab87d90e4b5115902dd94eced7e3305c3 upstream. gcc -O2 cannot always prove that the loop in acpi_power_get_inferred_state() is enterered at least once, so it assumes t

[PATCH 4.10 06/24] ring-buffer: Have ring_buffer_iter_empty() return true when empty

2017-04-25 Thread Greg Kroah-Hartman
4.10-stable review patch. If anyone has any objections, please let me know. -- From: Steven Rostedt (VMware) commit 78f7a45dac2a2d2002f98a3a95f7979867868d73 upstream. I noticed that reading the snapshot file when it is empty no longer gives a status. It suppose to show the sta

<    4   5   6   7   8   9   10   >