Re: [PATCH] gdrom: Add missing error code

2017-02-07 Thread Christoph Hellwig
Looks fine, Reviewed-by: Christoph Hellwig

[PATCH 05/18] HID: Improve two size determinations in hid_open_report()

2017-02-07 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 6 Feb 2017 22:00:07 +0100 Replace the specification of data structures by pointer dereferences as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. Signed-off-by: Markus

Re: [PATCH 1/4] perf tools: pass PYTHON config to feature detection

2017-02-07 Thread Arnaldo Carvalho de Melo
Em Wed, Feb 01, 2017 at 10:38:01PM -0800, David Carrillo-Cisneros escreveu: > Python's CC and link Makefile variables were not passed to feature > detection, causing feature detection to use system's Python rather than > PYTHON_CONFIG's one. This created a mismatch between the detected Python > sup

[PATCH 03/18] HID: Use kmalloc_array() in open_collection()

2017-02-07 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 6 Feb 2017 19:09:42 +0100 * A multiplication for the size determination of a memory allocation indicated that an array data structure should be processed. Thus use the corresponding function "kmalloc_array". * Replace the specification of a data structure by a

[PATCH 04/18] HID: Improve another size determination in open_collection()

2017-02-07 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 6 Feb 2017 19:19:22 +0100 Replace the specification of a data structure by pointer dereferences as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. Signed-off-by: Marku

[PATCH 07/18] HID: Improve another size determination in hid_register_report()

2017-02-07 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 7 Feb 2017 19:12:56 +0100 Replace the specification of a data structure by a pointer dereference as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. Signed-off-by: Mark

Re: [RFC 1/1] shiftfs: uid/gid shifting bind mount

2017-02-07 Thread Christoph Hellwig
On Tue, Feb 07, 2017 at 11:02:03AM -0800, James Bottomley wrote: > > Another option would be to require something like a project as used > > for project quotas as the root. This would also be conveniant as it > > could storge the used remapping tables. > > So this would be like the current pr

[GIT] Networking

2017-02-07 Thread David Miller
1) Load correct firmware in rtl8192ce wireless driver, from Jurij Smakov. 2) Fix leak of tx_ring and tx_cq due to overwriting in mlx4 driver, from Martin KaFai Lau. 3) Need to reference count PHY driver module when it is attached, from Mao Wenan. 4) Don't do zero length vzalloc() in et

[PATCH 08/18] HID: Adjust five checks for null pointers

2017-02-07 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 7 Feb 2017 19:15:21 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The script "checkpatch.pl" pointed information out like the following. Comparison to NULL could be written !… Thus fix affected source code places.

[PATCH 09/18] HID: Return an error code only as a constant in hid_allocate_device()

2017-02-07 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 7 Feb 2017 19:17:36 +0100 * Return an error code without storing it in an intermediate variable. * Delete the local variable "ret" which became unnecessary with this refactoring. Signed-off-by: Markus Elfring --- drivers/hid/hid-core.c | 3 +-- 1 file changed

[PATCH 10/18] HID-debug: Replace five seq_printf() calls by seq_putc()

2017-02-07 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 7 Feb 2017 19:21:17 +0100 Single characters should be put into a sequence. Thus use the corresponding function "seq_putc". This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/hid/hid-debug.c | 12 +++- 1 f

Re: [PATCH v3 0/3] locking/spinlock_debug: Change it to a mostly fair lock

2017-02-07 Thread Paul E. McKenney
On Tue, Feb 07, 2017 at 02:46:31PM -0500, Waiman Long wrote: > On 02/07/2017 04:48 AM, Ingo Molnar wrote: > > * Peter Zijlstra wrote: > > > >> On Thu, Feb 02, 2017 at 09:15:26AM -0500, Waiman Long wrote: > >>> v2->v3: > >>> - Keep the original v1 patches but move patch 3 of v2 in front so > >>>

[PATCH 2/3] arm: kprobes: remove kprobe_exceptions_notify

2017-02-07 Thread Naveen N. Rao
... as the weak variant will do. Signed-off-by: Naveen N. Rao --- arch/arm/probes/kprobes/core.c | 10 -- arch/arm64/kernel/probes/kprobes.c | 6 -- 2 files changed, 16 deletions(-) diff --git a/arch/arm/probes/kprobes/core.c b/arch/arm/probes/kprobes/core.c index a4ec240ee7ba.

[PATCH 1/3] kprobes: introduce weak variant of kprobe_exceptions_notify

2017-02-07 Thread Naveen N. Rao
kprobe_exceptions_notify() is not used on some of the architectures such as arm[64] and powerpc anymore. Introduce a weak variant for such architectures. Signed-off-by: Naveen N. Rao --- kernel/kprobes.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/kernel/kprobes.c b/kernel/kprobes.

[PATCH 3/3] powerpc: kprobes: remove kprobe_exceptions_notify()

2017-02-07 Thread Naveen N. Rao
... as the weak variant will do. Signed-off-by: Naveen N. Rao --- arch/powerpc/kernel/kprobes.c | 9 - 1 file changed, 9 deletions(-) diff --git a/arch/powerpc/kernel/kprobes.c b/arch/powerpc/kernel/kprobes.c index 45e4f82b230d..fce05a38851c 100644 --- a/arch/powerpc/kernel/kprobes.c ++

[PATCH 12/18] HID-debug: Replace 12 seq_printf() calls by seq_puts()

2017-02-07 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 7 Feb 2017 20:02:45 +0100 Strings which did not contain data format specifications should be put into a sequence. Thus use the corresponding function "seq_puts". This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers

[PATCH 11/18] HID-debug: Delete an unnecessary seq_printf() call in hid_dump_device()

2017-02-07 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 7 Feb 2017 19:23:03 +0100 An information should be put into a sequence together with a line break. Pass the desired data in a single function call instead. Signed-off-by: Markus Elfring --- drivers/hid/hid-debug.c | 3 +-- 1 file changed, 1 insertion(+), 2 delet

ATENCIÓN;

2017-02-07 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 17/18] HID-debug: Delete an unnecessary variable initialisation in hid_resolv_usage()

2017-02-07 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 7 Feb 2017 20:12:09 +0100 The local variable "buf" will be set to an appropriate pointer by the following statement. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- drivers/hid/hid-debug.c | 2 +- 1 file changed, 1 inser

[PATCH 16/18] HID-debug: Add some spaces for better code readability

2017-02-07 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 7 Feb 2017 20:10:40 +0100 Use space characters at some source code places according to the Linux coding style convention. Signed-off-by: Markus Elfring --- drivers/hid/hid-debug.c | 26 ++ 1 file changed, 14 insertions(+), 12 deletions(-)

[PATCH 18/18] HID-picoLCD: Use seq_puts() in picolcd_debug_reset_show()

2017-02-07 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 7 Feb 2017 20:14:16 +0100 A string which did not contain a data format specification should be put into a sequence. Thus use the corresponding function "seq_puts". This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drive

[PATCH 13/18] HID-debug: Combine 11 seq_printf() calls into one call in hid_dump_field()

2017-02-07 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 7 Feb 2017 20:04:28 +0100 Some data were printed into a sequence by eleven separate function calls. Print the same data by a single function call instead. Signed-off-by: Markus Elfring --- drivers/hid/hid-debug.c | 23 +++ 1 file changed, 11

[PATCH 14/18] HID-debug: Adjust two function calls together with a variable assignment

2017-02-07 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 7 Feb 2017 20:06:31 +0100 * The script "checkpatch.pl" pointed information out like the following. ERROR: do not use assignment in if condition Thus fix the affected source code places. * Replace the specification of a data structure by a pointer dereference

[PATCH 15/18] HID-debug: Return an error code only as a constant in hid_debug_events_open()

2017-02-07 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 7 Feb 2017 20:08:04 +0100 * Return an error code without storing it in an intermediate variable. * Delete the local variable "err" and the jump label "out" which became unnecessary with this refactoring. Signed-off-by: Markus Elfring --- drivers/hid/hid-debug

Re: [RFC 1/1] shiftfs: uid/gid shifting bind mount

2017-02-07 Thread James Bottomley
On Tue, 2017-02-07 at 11:49 -0800, Christoph Hellwig wrote: > On Tue, Feb 07, 2017 at 11:02:03AM -0800, James Bottomley wrote: > > > Another option would be to require something like a project as > > > used > > > for project quotas as the root. This would also be conveniant as > > > it > > > c

Re: [PATCH] nohz: Fix possible missing clock reprog after tick soft restart

2017-02-07 Thread Rik van Riel
On Tue, 2017-02-07 at 17:44 +0100, Frederic Weisbecker wrote: > ts->next_tick keeps track of the next tick deadline in order to > optimize > clock programmation on irq exit and avoid redundant clock device > writes. > > Now if ts->next_tick missed an update, we may spuriously miss a clock > reprog

Re: [PATCH] userfaultfd: mcopy_atomic: update cases returning -ENOENT

2017-02-07 Thread Andrea Arcangeli
On Tue, Feb 07, 2017 at 05:02:50PM +0200, Mike Rapoport wrote: > Hello Andrew, > > The patch below is an incremental fixup for concerns Andrea raised at [1]. > Please let me know if you prefer me to update the original patch and > resend. > > [1] http://www.spinics.net/lists/linux-mm/msg121267.ht

Re: [PATCH 6/6] kvm: x86: do not use KVM_REQ_EVENT for APICv interrupt injection

2017-02-07 Thread Radim Krčmář
2016-12-19 17:17+0100, Paolo Bonzini: > Since bf9f6ac8d749 ("KVM: Update Posted-Interrupts Descriptor when vCPU > is blocked", 2015-09-18) the posted interrupt descriptor is checked > unconditionally for PIR.ON. Therefore we don't need KVM_REQ_EVENT to > trigger the scan and, if NMIs or SMIs are n

[for-next][PATCH 5/5] ktest: Add variable run_command_status to save status of commands executed

2017-02-07 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Create a variable called run_command_status that saves the status of the executed commands and can be used by other functions later to test for status. Signed-off-by: Steven Rostedt (VMware) --- tools/testing/ktest/ktest.pl | 22 +++--- 1 file ch

[for-next][PATCH 0/5] ktest: Updates for 4.11

2017-02-07 Thread Steven Rostedt
git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-ktest.git for-next Head SHA1: 5739438b725c09938bb6af9e4477c4283b8326cf Steven Rostedt (VMware) (5): ktest: Have POST_TEST run after the test has totally completed ktest: Fix child exit code processing ktest: Add time

[for-next][PATCH 3/5] ktest: Add timeout to ssh command

2017-02-07 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Add a timeout to performing an ssh command. This will let testing if a machine is alive or not, or if something else may be amiss. A timeout can be passed to ssh, where ssh will fail if it does not complete within the given timeout. Signed-off-by: Steven Rostedt (

[for-next][PATCH 1/5] ktest: Have POST_TEST run after the test has totally completed

2017-02-07 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The POST_TEST config is to be executed after a test has fully compeleted, whether the test passed or failed. It currently is executed at the moment that the test has been decided if it failed or not. As the test does other clean ups, it isn't truly finished. Move t

[for-next][PATCH 2/5] ktest: Fix child exit code processing

2017-02-07 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The child_exit errno needs to be shifted by 8 bits to compare against the return values for the bisect variables. Fixes: c5dacb88f0a64 ("ktest: Allow overriding bisect test results") Cc: sta...@vger.kernel.org Signed-off-by: Steven Rostedt (VMware) --- tools/tes

[for-next][PATCH 4/5] ktest.pl: Powercycle the box on reboot if no connection can be made

2017-02-07 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" When performing a reboot of the test box, try to ssh to it. If it can't connect for 5 seconds, then powercycle the box. This is useful because the reboot is done via ssh, and if you can't ssh to the box because it is hung, the reboot fails to reboot. Signed-off-by

Re: [PATCH v9] fs: clear file privilege bits when mmap writing

2017-02-07 Thread Kees Cook
On Fri, Jan 27, 2017 at 7:47 PM, Andy Lutomirski wrote: > On Wed, May 25, 2016 at 2:49 PM, Al Viro wrote: >> On Wed, May 25, 2016 at 02:36:57PM -0700, Kees Cook wrote: >> >>> Hm, this didn't end up getting picked up. (This jumped out at me again >>> because i_mutex just vanished...) >>> >>> Al, w

Re: [PATCH 5/6] KVM: x86: do not scan IRR twice on APICv vmentry

2017-02-07 Thread Radim Krčmář
2016-12-19 17:17+0100, Paolo Bonzini: > Calls to apic_find_highest_irr are scanning IRR twice, once > in vmx_sync_pir_from_irr and once in apic_search_irr. Change > sync_pir_from_irr to get the new maximum IRR from kvm_apic_update_irr; > now that it does the computation, it can also do the RVI wri

[PATCH] mm, page_alloc: do not depend on cpu hotplug locks inside the allocator

2017-02-07 Thread Michal Hocko
From: Michal Hocko Dmitry has reported the following lockdep splat [] lock_acquire+0x2a1/0x630 kernel/locking/lockdep.c:3753 [] __mutex_lock_common kernel/locking/mutex.c:521 [inline] [] mutex_lock_nested+0x24e/0xff0 kernel/locking/mutex.c:621 [] pcpu_alloc+0xbda/0x1280 mm/percpu.c:896 [] __alloc

Re: [RFC/PATCH] arm64: Rename macro arguments to silence sparse

2017-02-07 Thread Stephen Boyd
On 02/06/2017 05:50 PM, Luc Van Oostenryck wrote: > On Mon, Feb 06, 2017 at 05:08:17PM -0800, Stephen Boyd wrote: >> On 02/06/2017 05:01 PM, Stephen Boyd wrote: >>> When I compile files with sparse, I get these sorts of warnings: >>> >>> arch/arm64/include/asm/lse.h:14:28: warning: Unknown escape '

Re: [PATCH 00/12] Cqm2: Intel Cache quality monitoring fixes

2017-02-07 Thread Shivappa Vikas
On Tue, 7 Feb 2017, Stephane Eranian wrote: Hi, I wanted to take a few steps back and look at the overall goals for cache monitoring. From the various threads and discussion, my understanding is as follows. I think the design must ensure that the following usage models can be monitored: -

[PATCH] mm-page_alloc-use-static-global-work_struct-for-draining-per-cpu-pages-fix

2017-02-07 Thread Michal Hocko
From: Michal Hocko there is no need to have both pcpu_drain and pcpu_drain_mutex visible outside of drain_all_pages. This might just attract abuse. Signed-off-by: Michal Hocko --- Hi Andrew, Mel, I think this would be a good cleanup to be folded into mm-page_alloc-use-static-global-work_struct-

[PATCH v2 1/6] ARM: dts: Fix typo in armada-xp-98dx4251

2017-02-07 Thread Chris Packham
The compatible should be 98dx4251 not 98dx4521. Signed-off-by: Chris Packham --- Notes: Changes in v2 - new arch/arm/boot/dts/armada-xp-98dx4251.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/armada-xp-98dx4251.dtsi b/arch/arm/boot/dts/armad

[PATCH v2 4/6] ARM: mvebu: Add mv98dx3236-soc-id

2017-02-07 Thread Chris Packham
The DFX server on the 98dx3236 and compatible SoCs has an ID register that provides revision information that the PCI based ID register doesn't have. Use this if it's available. Signed-off-by: Chris Packham --- Notes: Changes in v2: - none .../bindings/arm/marvell/mv98dx3236-soc-id.txt

[PATCH v2 6/6] clk: mvebu: Expand mv98dx3236-core-clock support

2017-02-07 Thread Chris Packham
The initial implementation in commit e120c17a70e5 ("clk: mvebu: support for 98DX3236 SoC") hardcoded a fixed value for the main PLL frequency. Port code from the Marvell supplied Linux kernel to support different PLL frequencies and provide clock gating support. Signed-off-by: Chris Packham ---

[PATCH v2 2/6] ARM: dts: armada-xp-98dx3236: combine dfx server nodes

2017-02-07 Thread Chris Packham
Rather than having a separate node for the dfx server add a reg property to the parent node. This give somes compatibility with the Marvell supplied SDK. Signed-off-by: Chris Packham --- Notes: Changes in v2: - none Documentation/devicetree/bindings/net/marvell,prestera.txt | 13 +-

[PATCH v2 0/6] Updates for Marvell Switch SoCs

2017-02-07 Thread Chris Packham
Shortly after I posted my last series I got access to a more recent Marvell SDK which had some device tree support for the switch SoCs I'd been wanting. It was still based on an older kernel but it was a huge improvement over what came before. Patch 1/6 is a typo I noticed after my initial series

[PATCH v2 3/6] ARM: dts: Use armada-370-xp as a base for armada-xp-98dx3236

2017-02-07 Thread Chris Packham
The Marvell datasheets refer to the integrated CPU as "Armada-XP". In reality there are a number of differences to the actual Armada-XP so rather than including armada-xp.dtsi and disabling many of the IP blocks. Include armada-370-xp.dtsi and add the required nodes. Signed-off-by: Chris Packham

[PATCH v2 5/6] ARM: dts: mvebu: Move mv98dx3236 clock bindings

2017-02-07 Thread Chris Packham
This moves the coreclk binding for the 98dx3236 SoC to the DFX block where the sampled at reset register is located and switches to using the correct gating clock compatible string. Signed-off-by: Chris Packham --- Notes: Changes in v2: - New. Split out from "clk: mvebu: Expand mv98dx323

Re: mm: deadlock between get_online_cpus/pcpu_alloc

2017-02-07 Thread Michal Hocko
On Tue 07-02-17 12:03:19, Tejun Heo wrote: > Hello, > > Sorry about the delay. > > On Tue, Feb 07, 2017 at 04:34:59PM +0100, Michal Hocko wrote: > > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > > index c3358d4f7932..b6411816787a 100644 > > --- a/mm/page_alloc.c > > +++ b/mm/page_alloc.c > > @

Re: [PATCH] spi: s3c64xx: fix inconsistency between binding and driver

2017-02-07 Thread Krzysztof Kozlowski
On Tue, Feb 07, 2017 at 05:07:48PM +0900, Andi Shyti wrote: > Commit a92e7c3d82a1 ("spi: s3c64xx: consider the case when the CS > line is not connected") introduced an inconsistency between the > binding where the disconnected CS line was marked as > 'no-cs-readback' while the driver was erroneousl

[PATCH V2] perf/x86/intel/uncore: remove nonexistent clockticks event for client uncore

2017-02-07 Thread kan . liang
From: Kan Liang For client uncore, every core's cbox seems has its own clockticks event, uncore_cbox_*/clockticks/. However, only the clockticks event for core 0 can work. Accessing other cores' clockticks will always return EINVAL. There is only one clocktick fixed counter in Hardware. Current

[PATCH 2/3] ARM: davinci_all_defconfig: Enable TI ADS7950

2017-02-07 Thread David Lechner
This enables the TI ADS7950 IIO driver. This is used on LEGO MINDSTORMS EV3. The other IIO configs removed in this patch are selected by CONFIG_TI_ADS7950, so they are not actually being desabled. Signed-off-by: David Lechner --- arch/arm/configs/davinci_all_defconfig | 4 +--- 1 file changed, 1

[PATCH 1/3] ARM: da850-lego-ev3: Add device tree node for A/DC

2017-02-07 Thread David Lechner
This adds a node for the TI ADS7957 analog/digital converter on LEGO MINDSTORMS EV3 as well as a regulator node that is used by the A/DC node. Signed-off-by: David Lechner --- arch/arm/boot/dts/da850-lego-ev3.dts | 21 + 1 file changed, 21 insertions(+) diff --git a/arch/arm

Re: [PATCH net-next v2 1/8] bpf: Use bpf_load_program() from the library

2017-02-07 Thread Mickaël Salaün
Right, it was a batch of miscellaneous patches at first but I split them in three series. I'm going to resend this patches in two v3 series (with cover letters): one for each tree (net-next and perf). Thanks, Mickaël On 07/02/2017 19:35, David Miller wrote: > > Please post your patch series(s)

Re: v4.9, 4.4-final: 28 bioset threads on small notebook, 36 threads on cellphone

2017-02-07 Thread Pavel Machek
On Mon 2017-02-06 17:49:06, Kent Overstreet wrote: > On Mon, Feb 06, 2017 at 04:47:24PM -0900, Kent Overstreet wrote: > > On Mon, Feb 06, 2017 at 01:53:09PM +0100, Pavel Machek wrote: > > > Still there on v4.9, 36 threads on nokia n900 cellphone. > > > > > > So.. what needs to be done there? > >

[PATCH 3/3] ARM: da850-lego-ev3: Add device tree node for sound

2017-02-07 Thread David Lechner
This adds a device tree node for sound on LEGO MINDSTORMS EV3. The EV3 uses one of the SoC PWMs connected to an amplifier to create sound from a speaker. The PWM is passed through a low-pass filter, so it is actually possible to do PCM playback, but there is no existing driver, so just using pwm-b

[PATCH 0/3] A/C and Sound device tree nodes for LEGO MINDSTORMS EV3

2017-02-07 Thread David Lechner
v4.11. This series has been tested on LEGO MINDSTORMS EV3 using next-20170207 merged with linux-davinci/master. David Lechner (3): ARM: da850-lego-ev3: Add device tree node for A/DC ARM: davinci_all_defconfig: Enable TI ADS7950 ARM: da850-lego-ev3: Add device tree node for sound arch/arm/boot

Re: [RFC/PATCH] arm64: Rename macro arguments to silence sparse

2017-02-07 Thread Van Oostenryck Luc
On Tue, Feb 7, 2017 at 9:11 PM, Stephen Boyd wrote: > On 02/06/2017 05:50 PM, Luc Van Oostenryck wrote: >> On Mon, Feb 06, 2017 at 05:08:17PM -0800, Stephen Boyd wrote: >>> On 02/06/2017 05:01 PM, Stephen Boyd wrote: When I compile files with sparse, I get these sorts of warnings: a

Re: [PATCH 1/2] spi: s3c64xx: fix potential segmentation fault

2017-02-07 Thread Krzysztof Kozlowski
On Tue, Feb 07, 2017 at 05:10:24PM +0900, Andi Shyti wrote: > The return value of dmaengine_prep_slave_sg is not checked, but > eventually it can fail and in that case return 'NULL' causing a > segmentation fault. NULL pointer dereference instead of segmentation fault. > > Check dmaengine_prep_s

Re: [PATCH] bug: Switch data corruption check to __must_check

2017-02-07 Thread Paul E. McKenney
On Mon, Feb 06, 2017 at 12:45:47PM -0800, Kees Cook wrote: > The CHECK_DATA_CORRUPTION() macro was designed to have callers do > something meaningful/protective on failure. However, using "return false" > in the macro too strictly limits the design patterns of callers. Instead, > let callers handle

Re: [PATCH 2/2] spi: s3c64xx: fix potential division by zero

2017-02-07 Thread Krzysztof Kozlowski
On Tue, Feb 07, 2017 at 05:10:25PM +0900, Andi Shyti wrote: > Even though it's quite unlikely to happen in this particular > case, clk_get_rate can return '0' if sdd->src_clk is not set > properly. In that case we would have a clear division by '0'. > I do not think it is possible. if (IS

Re: [net-next PATCH 0/4] Documenting eBPF - extended Berkeley Packet Filter

2017-02-07 Thread Jesper Dangaard Brouer
On Tue, 7 Feb 2017 09:46:08 -0700 Jonathan Corbet wrote: > On Tue, 7 Feb 2017 17:09:08 +0100 > Jesper Dangaard Brouer wrote: > > > > > Question: What kernel tree should this go into??? > > > > > > > > If going through Jonathan Corbet, will it appear sooner here??? > > > > https://www.kernel.o

Re: [PATCH] kvm: vmx: Use the hardware provided GPA instead of page walk

2017-02-07 Thread Radim Krčmář
2017-01-27 19:34+0100, Paolo Bonzini: > As in the SVM patch, the guest physical address is passed by > VMX to x86_emulate_instruction already, so mark the GPA as available > in vcpu->arch. > > Signed-off-by: Paolo Bonzini > --- In line with the SVM patch, Reviewed-by: Radim Krčmář Still, I do

Re: [PATCH] leds: pca9532: Extend pca9532 device tree support

2017-02-07 Thread Jacek Anaszewski
Hi Felix, Thanks for the patch. On 02/07/2017 07:11 PM, Felix Brack wrote: > This patch extends the device tree support for the pca9532 allowing LEDs to > blink, dim or even being unchanged, i.e. not being turned off during driver > initialization. Isn't it possible to apply desired settings w

[PATCH v3 3/5] samples/bpf: Ignore already processed ELF sections

2017-02-07 Thread Mickaël Salaün
Add a missing check for the map fixup loop. Signed-off-by: Mickaël Salaün Cc: Alexei Starovoitov Cc: Arnaldo Carvalho de Melo Cc: Daniel Borkmann --- samples/bpf/bpf_load.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/samples/bpf/bpf_load.c b/samples/bpf/bpf_load.c index 396e204888b3

[PATCH v3 5/5] samples/bpf: Add missing header

2017-02-07 Thread Mickaël Salaün
Include unistd.h to define __NR_getuid and __NR_getsid. Signed-off-by: Mickaël Salaün Cc: Alexei Starovoitov Cc: Arnaldo Carvalho de Melo Cc: Daniel Borkmann Cc: David S. Miller --- samples/bpf/tracex5_kern.c | 1 + 1 file changed, 1 insertion(+) diff --git a/samples/bpf/tracex5_kern.c b/sa

Re: [PATCH] bug: Switch data corruption check to __must_check

2017-02-07 Thread Kees Cook
On Tue, Feb 7, 2017 at 12:39 PM, Paul E. McKenney wrote: > On Mon, Feb 06, 2017 at 12:45:47PM -0800, Kees Cook wrote: >> The CHECK_DATA_CORRUPTION() macro was designed to have callers do >> something meaningful/protective on failure. However, using "return false" >> in the macro too strictly limit

[PATCH v3 2/5] bpf: Simplify bpf_load_program() error handling in the library

2017-02-07 Thread Mickaël Salaün
Do not call a second time bpf(2) when a program load failed. Signed-off-by: Mickaël Salaün Cc: Alexei Starovoitov Cc: Arnaldo Carvalho de Melo Cc: Daniel Borkmann Cc: Wang Nan --- tools/lib/bpf/bpf.c | 18 ++ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/tool

[PATCH v3 1/5] bpf: Add missing header to the library

2017-02-07 Thread Mickaël Salaün
Include stddef.h to define size_t. Signed-off-by: Mickaël Salaün Cc: Alexei Starovoitov Cc: Arnaldo Carvalho de Melo Cc: Daniel Borkmann Cc: Wang Nan --- tools/lib/bpf/bpf.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/lib/bpf/bpf.h b/tools/lib/bpf/bpf.h index a2f9853dd882..df6e

[PATCH v3 0/5] Miscellaneous fixes for BPF (perf tree)

2017-02-07 Thread Mickaël Salaün
This series brings some fixes and small improvements to the BPF library and samples. This is intended for the perf tree and apply on e06094ab6755 ("Merge remote-tracking branch 'tip/perf/urgent' into perf/core"). Changes since v2: * add this cover letter Changes since v1: * exclude patches not i

[PATCH v3 4/5] samples/bpf: Reset global variables

2017-02-07 Thread Mickaël Salaün
Before loading a new ELF, clean previous kernel version, license and processed sections. Signed-off-by: Mickaël Salaün Cc: Alexei Starovoitov Cc: Arnaldo Carvalho de Melo Cc: Daniel Borkmann Cc: David S. Miller --- samples/bpf/bpf_load.c | 5 + 1 file changed, 5 insertions(+) diff --git

Re: [PATCH v3 13/24] platform: add video-multiplexer subdevice driver

2017-02-07 Thread Sakari Ailus
Hi Steve, On Fri, Jan 06, 2017 at 06:11:31PM -0800, Steve Longerbeam wrote: > From: Philipp Zabel > > This driver can handle SoC internal and external video bus multiplexers, > controlled either by register bit fields or by a GPIO. The subdevice > passes through frame interval and mbus configura

Re: [PATCH v3 13/24] platform: add video-multiplexer subdevice driver

2017-02-07 Thread Sakari Ailus
Hi Benoit, On Tue, Feb 07, 2017 at 07:36:48AM -0600, Benoit Parrot wrote: > Laurent Pinchart wrote on Tue > [2017-Feb-07 12:26:32 +0200]: > > Hi Steve, > > > > On Monday 06 Feb 2017 15:10:46 Steve Longerbeam wrote: > > > On 02/06/2017 02:33 PM, Laurent Pinchart wrote: > > > > On Monday 06 Feb 2

Re: Linux 4.9.6 ( Restore IO-APIC irq_chip retrigger callback , breaks my box )

2017-02-07 Thread Thomas Gleixner
On Mon, 6 Feb 2017, Linus Torvalds wrote: > But for now, I'd be inclined to just revert it unless somebody has a > "Duh!" moment and can tell me what's wrong with that commit with an > obvious fix. I have no "Duh!" moment even after staring at the code for quite a while. Gabriel, can you please s

Re: [RFC 1/1] shiftfs: uid/gid shifting bind mount

2017-02-07 Thread Amir Goldstein
On Tue, Feb 7, 2017 at 10:05 PM, James Bottomley wrote: > On Tue, 2017-02-07 at 11:49 -0800, Christoph Hellwig wrote: >> On Tue, Feb 07, 2017 at 11:02:03AM -0800, James Bottomley wrote: >> > > Another option would be to require something like a project as >> > > used >> > > for project quotas as

Re: [PATCHv3 0/2] Hardening configs refactor/rename

2017-02-07 Thread Kees Cook
On Mon, Feb 6, 2017 at 4:31 PM, Laura Abbott wrote: > Hi, > > This is v3 of my series to rename/refactor CONFIG_DEBUG_RODATA > and CONFIG_DEBUG_SET_MODULE_RONX. Among other objections, there shouldn't > be 'debug' in the name since these provide necessary kernel protection. > > v3 mostly focuses o

[RFC PATCH] mm: move pcp and lru-pcp drainging into vmstat_wq

2017-02-07 Thread Michal Hocko
From: Michal Hocko We currently have 2 specific WQ_RECLAIM workqueues. One for updating pcp stats vmstat_wq and one dedicated to drain per cpu lru caches. This seems more than necessary because both can run on a single WQ. Both do not block on locks requiring a memory allocation nor perform any a

[RFC][PATCH] treewide: Move set_memory_* functions away from cacheflush.h

2017-02-07 Thread Laura Abbott
The set_memory_* APIs came out of a desire to have a better way to change memory attributes. Many of these attributes were linked to cache functionality so the prototypes were put in cacheflush.h. These days, the APIs have grown and have a much wider use than just cache APIs. To support this growth

Re: [RFC PATCH 1/2] mm, vmscan: account the number of isolated pages per zone

2017-02-07 Thread Michal Hocko
On Mon 06-02-17 11:39:18, Michal Hocko wrote: > On Sun 05-02-17 19:43:07, Tetsuo Handa wrote: > > Michal Hocko wrote: > > I got same warning with ext4. Maybe we need to check carefully. > > > > [ 511.215743] = > > [ 511.218003] WARNING: RECLAIM

Re: [PATCH] staging: vc04_services: remove unused functions

2017-02-07 Thread Eric Anholt
Dan Carpenter writes: > There is a bunch of vc04_services that we're still looking to merge in > the near future. Please hold off deleting these until we are further > along on that. Checking the downstream tree, these are actually dead. signature.asc Description: PGP signature

Re: [PATCH] arm64: dts: Enable ir-spi in the tm2 and tm2e boards

2017-02-07 Thread Krzysztof Kozlowski
On Tue, Feb 07, 2017 at 05:13:25PM +0900, Andi Shyti wrote: > Add the device tree node for the ir-spi driver which enable the > ir led for remote controlling. > > This patch sets first the GPR3[3] gpio line as a regulator-fixed > for enabling an external regulator which powers the IR LED. > > Rem

[PATCH 1/3] dt-bindings: Document the dmas and dma-names properties for VC4 HDMI

2017-02-07 Thread Eric Anholt
From: Boris Brezillon These are optional, but necessary for HDMI audio support. Signed-off-by: Boris Brezillon Signed-off-by: Eric Anholt --- Documentation/devicetree/bindings/display/brcm,bcm-vc4.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/dis

[PATCH 3/3] ARM: dts: bcm283x: Add HDMI audio related properties

2017-02-07 Thread Eric Anholt
From: Boris Brezillon Add the dmas and dma-names properties to support HDMI audio. Signed-off-by: Boris Brezillon Signed-off-by: Eric Anholt --- arch/arm/boot/dts/bcm283x.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/bcm283x.dtsi b/arch/arm/boot/dts/bcm283x.dtsi

[PATCH 2/3] drm/vc4: Add HDMI audio support

2017-02-07 Thread Eric Anholt
The HDMI encoder IP embeds all needed blocks to output audio, with a custom DAI called MAI moving audio between the two parts of the HDMI core. This driver now exposes a sound card to let users stream audio to their display. Using the hdmi-codec driver has been considered here, but MAI meant havi

Re: [net-next PATCH 0/4] Documenting eBPF - extended Berkeley Packet Filter

2017-02-07 Thread Jesper Dangaard Brouer
On Tue, 07 Feb 2017 17:43:38 +0100 Daniel Borkmann wrote: > Hi Jesper, > > On 02/07/2017 03:30 PM, Jesper Dangaard Brouer wrote: > > Question: What kernel tree should this go into??? > > > > If going through Jonathan Corbet, will it appear sooner here??? > > https://www.kernel.org/doc/html/lat

Re: Linux 4.9.6 ( Restore IO-APIC irq_chip retrigger callback , breaks my box )

2017-02-07 Thread Thomas Gleixner
On Tue, 7 Feb 2017, Thomas Gleixner wrote: > Gabriel, can you please send me the bootlog from a working kernel? Plus content of /proc/interrupts. Btw, how far in the boot process is the machine when this happens? Thanks, tglx

Re: [PATCH] mprotect: drop overprotective lock_pte_protection()

2017-02-07 Thread Andrea Arcangeli
On Tue, Feb 07, 2017 at 05:33:47PM +0300, Kirill A. Shutemov wrote: > lock_pte_protection() uses pmd_lock() to make sure that we have stable > PTE page table before walking pte range. > > That's not necessary. We only need to make sure that PTE page table is > established. It cannot vanish under u

Re: [RFC][PATCH] treewide: Move set_memory_* functions away from cacheflush.h

2017-02-07 Thread Kees Cook
On Tue, Feb 7, 2017 at 1:10 PM, Laura Abbott wrote: > The set_memory_* APIs came out of a desire to have a better way to > change memory attributes. Many of these attributes were linked to cache > functionality so the prototypes were put in cacheflush.h. These days, > the APIs have grown and have

Re: [PATCH] bug: Switch data corruption check to __must_check

2017-02-07 Thread Paul E. McKenney
On Tue, Feb 07, 2017 at 12:57:33PM -0800, Kees Cook wrote: > On Tue, Feb 7, 2017 at 12:39 PM, Paul E. McKenney > wrote: > > On Mon, Feb 06, 2017 at 12:45:47PM -0800, Kees Cook wrote: > >> The CHECK_DATA_CORRUPTION() macro was designed to have callers do > >> something meaningful/protective on fail

Re: [net-next PATCH 0/4] Documenting eBPF - extended Berkeley Packet Filter

2017-02-07 Thread Jonathan Corbet
On Tue, 7 Feb 2017 21:51:49 +0100 Jesper Dangaard Brouer wrote: > I sounds like Daniel (see other email) have bigger plans for what > Documentation/BPF/ should contain. E.g. consolidating > Documentation/networking/filter.txt which covers the cBPF/eBPF internals. > If that is the case (and I lik

[PATCH] f2fs: fix a typo in f2fs.txt

2017-02-07 Thread Tiezhu Yang
There is a typo "f2f2" in f2fs.txt, this patch fixes it. Signed-off-by: Tiezhu Yang --- Documentation/filesystems/f2fs.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/filesystems/f2fs.txt b/Documentation/filesystems/f2fs.txt index 0ab33d4..3d7e12d 100644 --

[PATCH-tip] debugobjects: Improve variable naming

2017-02-07 Thread Waiman Long
As suggested by Ingo, the debug_objects_alloc counter is now renamed to debug_objects_allocated with minor twist in comment and debug output. Signed-off-by: Waiman Long --- lib/debugobjects.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/debugobjects.c b/lib/

Re: [PATCH 4.4 00/29] 4.4.48-stable review

2017-02-07 Thread Guenter Roeck
On Tue, Feb 07, 2017 at 01:45:29PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.48 release. > There are 29 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.

Re: [PATCH] mprotect: drop overprotective lock_pte_protection()

2017-02-07 Thread Andrew Morton
On Tue, 7 Feb 2017 17:33:47 +0300 "Kirill A. Shutemov" wrote: > lock_pte_protection() uses pmd_lock() to make sure that we have stable > PTE page table before walking pte range. > > That's not necessary. We only need to make sure that PTE page table is > established. It cannot vanish under us

Re: [PATCH 4.9 00/66] 4.9.9-stable review

2017-02-07 Thread Guenter Roeck
On Tue, Feb 07, 2017 at 01:58:34PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.9 release. > There are 66 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.

Re: [PATCH 1/1] asus-wireless: Use the correct HSWC parameter for each HID

2017-02-07 Thread João Paulo Rechi Vita
On 4 February 2017 at 10:02, Andy Shevchenko wrote: > On Wed, Feb 1, 2017 at 2:20 PM, João Paulo Rechi Vita > wrote: >> On 27 January 2017 at 10:26, Andy Shevchenko >> wrote: >>> On Thu, Jan 26, 2017 at 5:00 PM, João Paulo Rechi Vita >>> wrote: > +static const struct acpi_device_id devic

[PATCH net-next v3 03/11] bpf: Always test unprivileged programs

2017-02-07 Thread Mickaël Salaün
If selftests are run as root, then execute the unprivileged checks as well. This switch from 243 to 368 tests. The test numbers are suffixed with "/u" when executed as unprivileged or with "/p" when executed as privileged. The geteuid() check is replaced with a capability check. Handling capabil

[PATCH net-next v3 00/11] Improve BPF selftests and use the library (net-next tree)

2017-02-07 Thread Mickaël Salaün
This series brings some fixes to selftests, add the ability to test unprivileged BPF programs as root and replace bpf_sys.h with calls to the BPF library. This is intended for the net-next tree and apply on 76e0e70e6452 ("liquidio: do not dereference pointer if it's NULL"). Changes since v2: * us

Re: [PATCH] bfq-mq: cause deadlock by executing exit_icq body immediately

2017-02-07 Thread Omar Sandoval
On Tue, Feb 07, 2017 at 06:33:46PM +0100, Paolo Valente wrote: > Hi, > this patch is meant to show that, if the body of the hook exit_icq is > executed > from inside that hook, and not as deferred work, then a circular deadlock > occurs. > > It happens if, on a CPU > - the body of icq_exit takes

[PATCH net-next v3 06/11] bpf: Use bpf_map_lookup_elem() from the library

2017-02-07 Thread Mickaël Salaün
Replace bpf_map_lookup() with bpf_map_lookup_elem() calls. Signed-off-by: Mickaël Salaün Cc: Alexei Starovoitov Cc: Daniel Borkmann Cc: Shuah Khan --- tools/lib/bpf/bpf.c| 5 ++--- tools/lib/bpf/bpf.h| 2 +- tools/testing/selftests/bpf/bpf_sys

[PATCH net-next v3 09/11] bpf: Use bpf_create_map() from the library

2017-02-07 Thread Mickaël Salaün
Replace bpf_map_create() with bpf_create_map() calls. Signed-off-by: Mickaël Salaün Cc: Alexei Starovoitov Cc: Daniel Borkmann Cc: Shuah Khan --- tools/testing/selftests/bpf/bpf_sys.h | 15 --- tools/testing/selftests/bpf/test_lpm_map.c | 6 +++--- tools/testing/selftests/

<    2   3   4   5   6   7   8   9   10   >