[PATCH V2 2/3] mm/slub: wrap cpu_slab->partial in CONFIG_SLUB_CPU_PARTIAL

2017-05-02 Thread Wei Yang
cpu_slab's field partial is used when CONFIG_SLUB_CPU_PARTIAL is set, which means we can save a pointer's space on each cpu for every slub item. This patch wrap cpu_slab->partial in CONFIG_SLUB_CPU_PARTIAL and wrap its sysfs too. Signed-off-by: Wei Yang --- v2: define slub_percpu_partial() to m

[PATCH] ARM: imx_v6_v7_defconfig: Enable cpufreq governors

2017-05-02 Thread Leonard Crestez
Enable more common cpufreq governors in imx defconfig because this is very useful for testing. In particular you can't use cpufreq-set -f $FREQ without explicitly defining CONFIG_CPU_FREQ_GOV_USERSPACE=y. Signed-off-by: Leonard Crestez --- It might make sense for all governors to be enabled by

Re: [PATCH 2/2] efi/efi_test: drop useless kfree

2017-05-02 Thread Geliang Tang
On Tue, May 02, 2017 at 03:11:45PM +0800, ivanhu wrote: > > > On 04/29/2017 09:42 AM, Geliang Tang wrote: > > Drop useless kfree when memdup_user() failed, since we have already > > called kfree in memdup_user(). > > > > Signed-off-by: Geliang Tang > > --- > > drivers/firmware/efi/test/efi_te

Re: [PATCH v4 1/5] dt-bindings: gpu: add bindings for the ARM Mali Midgard GPU

2017-05-02 Thread Guillaume Tucker
On 02/05/17 15:13, Rob Herring wrote: On Tue, May 2, 2017 at 6:23 AM, Guillaume Tucker wrote: Hi Rob, On 28/04/17 20:27, Rob Herring wrote: On Tue, Apr 25, 2017 at 02:16:16PM +0100, Guillaume Tucker wrote: diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt b/Document

Re: [PATCH v2] IB/i40iw: use setup_timer

2017-05-02 Thread Geliang Tang
On Sat, Apr 29, 2017 at 09:45:27AM -0400, Doug Ledford wrote: > On 4/28/2017 9:37 PM, Geliang Tang wrote: > > Use setup_timer() instead of init_timer() to simplify the code. > > > > Signed-off-by: Geliang Tang > > --- > > Changes in v2: > > - use setup_timer() in i40iw_terminate_start_timer(). >

Re: [PATCH] vmscan: scan pages until it founds eligible pages

2017-05-02 Thread Minchan Kim
Hi Michal, On Tue, May 02, 2017 at 09:54:32AM +0200, Michal Hocko wrote: > On Tue 02-05-17 14:14:52, Minchan Kim wrote: > > Oops, forgot to add lkml and linux-mm. > > Sorry for that. > > Send it again. > > > > >From 8ddf1c8aa15baf085bc6e8c62ce705459d57ea4c Mon Sep 17 00:00:00 2001 > > From: Minch

Re: [PATCH 06/14] sched/topology,debug: Verify the first group matches the child domain

2017-05-02 Thread Peter Zijlstra
On Mon, May 01, 2017 at 05:13:26PM -0400, Rik van Riel wrote: > On Fri, 2017-04-28 at 15:20 +0200, Peter Zijlstra wrote: > > Signed-off-by: Peter Zijlstra (Intel) > > This could use a changelog. Yes indeed... I put off writing one because $hard, and clearly I forgot entirely :-/ How's this? --

Re: [PATCH v2 1/9] dt-bindings: display: sun4i: Add component endpoint ID numbering scheme

2017-05-02 Thread Maxime Ripard
Hi, On Fri, Apr 28, 2017 at 08:48:41AM -0500, Rob Herring wrote: > On Fri, Apr 21, 2017 at 04:38:49PM +0800, Chen-Yu Tsai wrote: > > The Allwinner display pipeline contains many hardware components, some > > of which can consume data from one of multiple upstream components. > > The numbering sche

Re: [PATCH 00/14] sched/topology fixes

2017-05-02 Thread Lauro Venancio
On 05/02/2017 11:43 AM, Peter Zijlstra wrote: > On Fri, Apr 28, 2017 at 03:53:39PM +0200, Peter Zijlstra wrote: >> Also, the following occurred to me: >> >> sg_span & sg_mask == sg_mask >> >> Therefore, we don't need to do the whole "sg_span &" business. >> >> Hmm? >> @@ -856,7 +857,7 @@ build_sc

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

2017-05-02 Thread Christian König
Am 26.04.2017 um 18:45 schrieb Andy Shevchenko: [SNIP] -#define PCI_REBAR_CTRL_NBAR_MASK (7 << 5)/* mask for # bars */ -#define PCI_REBAR_CTRL_NBAR_SHIFT 5 /* shift for # bars */ +#define PCI_REBAR_CTRL_NBAR_MASK (7 << 5)/* mask for # BARs */ +#define PCI_

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

2017-05-02 Thread Laurent Dufour
On 28/04/2017 15:48, Michal Hocko wrote: > On Fri 28-04-17 11:17:34, Laurent Dufour wrote: >> On 28/04/2017 09:31, Michal Hocko wrote: >>> [CC Johannes and Vladimir - the patch is >>> http://lkml.kernel.org/r/1493130472-22843-2-git-send-email-lduf...@linux.vnet.ibm.com] >>> >>> On Fri 28-04-17 08:0

[PATCH] input: edt-ft5x06: increase allowed data range for threshold parameter

2017-05-02 Thread Martin Kepplinger
The datasheet and application note does not mention an allowed range for the M09_REGISTER_THRESHOLD parameter. One of our customers needs to set lower values than 20 and they seem to work just fine on EDT EP0xx0M09 with T5x06 touch. So, lacking a known lower limit, we increase the range for thresh

Re: [PATCH 1/3] drm: fourcc byteorder: drop DRM_FORMAT_BIG_ENDIAN

2017-05-02 Thread Gerd Hoffmann
Hi, > I also think that this patch requires more comments than the > commit message has at the moment. > > Removing the definition also removes the possibility to describe a lot > of pixel formats, so that should definitely be mentioned. I think it > would also be good to have some kind of just

Re: [PATCH 2/7] perf config: Check list empty before showing configs

2017-05-02 Thread Arnaldo Carvalho de Melo
Em Wed, Apr 26, 2017 at 09:21:03PM +0900, Taeung Song escreveu: > If existent config files contains nothing, > the sections list in config_set can be empty. > > So check not only NULL pointer of config_set but > also the list in config_set. > +++ b/tools/perf/builtin-config.c > @@ -75,7 +75,7 @@

Re: [PATCH] vmscan: scan pages until it founds eligible pages

2017-05-02 Thread Michal Hocko
On Tue 02-05-17 23:51:50, Minchan Kim wrote: > Hi Michal, > > On Tue, May 02, 2017 at 09:54:32AM +0200, Michal Hocko wrote: > > On Tue 02-05-17 14:14:52, Minchan Kim wrote: > > > Oops, forgot to add lkml and linux-mm. > > > Sorry for that. > > > Send it again. > > > > > > >From 8ddf1c8aa15baf085b

Re: [PATCH] Allow to use DMA_CTRL_REUSE flag for all channel types

2017-05-02 Thread Eugeniy Paltsev
Hi Vinod, On Mon, 2017-05-01 at 11:21 +0530, Vinod Koul wrote: > On Fri, Apr 28, 2017 at 04:37:46PM +0300, Eugeniy Paltsev wrote: > > In the current implementation dma_get_slave_caps is used to check > > state of descriptor_reuse option. But dma_get_slave_caps includes > > check if the channel sup

Re: [PATCH] Remove ARM errata Workarounds 458693 and 460075

2017-05-02 Thread Catalin Marinas
On Tue, May 02, 2017 at 01:27:54PM +0100, Robin Murphy wrote: > On 18/04/17 16:57, Catalin Marinas wrote: > > On Sun, Apr 16, 2017 at 09:04:46AM +0100, Russell King - ARM Linux wrote: > >> On Sat, Apr 15, 2017 at 07:06:06PM -0500, Nisal Menuka wrote: > >>> According to ARM, these errata exist only

Re: [PATCH V2] pwm: tegra: Set maximum pwm clock source per SoC tapeout

2017-05-02 Thread Jon Hunter
On 02/05/17 15:05, Laxman Dewangan wrote: > The PWM hardware IP is taped-out with different maximum frequency > on different SoCs. > > From HW team: > Before Tegra186, it is 38.4MHz. > In Tegra186, it is 102MHz. > > Add support to limit the clock source frequency to the maximum IP >

[GIT PULL] Hardware module parameter annotation for secure boot

2017-05-02 Thread David Howells
Hi Linus, Can you pull this branch, please? It consists of a set of patches that annotate module parameters that configure hardware resources including ioports, iomem addresses, irq lines and dma channels. This allows a future patch to prohibit the use of such module parameters to prevent that h

Re: linux-next: Tree for May 2 (xen: events_base.c)

2017-05-02 Thread Randy Dunlap
On 05/01/17 23:47, Stephen Rothwell wrote: > Hi all, > > Please do not add any v4.13 destined material in your linux-next > included branches until after v4.12-rc1 has been released. > > Changes since 20170501: > on x86_64: drivers/built-in.o: In function `set_affinity_irq': events_base.c:(.te

[PATCH tip/core/rcu 0/2] Debloat rcu_segcblist header file

2017-05-02 Thread Paul E. McKenney
Hello! This series debloats the include/linux/rcu_segcblist.h include file: 1. Leave data structures in include/linux/rcu_segcblist.h, but move functions to kernel/rcu/rcu_segcblist.h, courtesy of Ingo Molnar. 2. Move non-trivial functions from kernel/rcu/rcu_segcblist.

[PATCH tip/core/rcu 2/2] rcu: Separately compile large rcu_segcblist functions

2017-05-02 Thread Paul E. McKenney
This commit creates a new kernel/rcu/rcu_segcblist.c file that contains non-trivial segcblist functions. Trivial functions remain as static inline functions in kernel/rcu/rcu_segcblist.h Reported-by: Linus Torvalds Signed-off-by: Paul E. McKenney Cc: Peter Zijlstra Cc: Thomas Gleixner --- in

[PATCH tip/core/rcu 1/2] srcu: Debloat the header

2017-05-02 Thread Paul E. McKenney
From: Ingo Molnar Linus noticed that the has huge inline functions which should not be inline at all. As a first step in cleaning this up, move them all to kernel/rcu/ and only keep an absolute minimum of data type defines in the header: before: -rw-r--r-- 1 mingo mingo 22284 May 2 10:25

RE: Asmedia USB 1343 crashes

2017-05-02 Thread David Laight
From: Thomas Fjellstrom > Sent: 01 May 2017 14:40 > I've got a 970 Pro gaming aura motherboard with an Asmedia 1343 Usb 3.1 > controller. It's been consistently throwing errors and eventually crashing and > becomming unresponsive. ... I've an earlier Asmedia 1042 controller. It has a bug (which I

Re: [PATCH 1/1 linux-next] btrfs: kmap() can't fail

2017-05-02 Thread David Sterba
On Tue, Apr 25, 2017 at 08:11:02PM +0200, Fabian Frederick wrote: > Remove NULL test on kmap() > > Signed-off-by: Fabian Frederick Reviewed-by: David Sterba

Re: [PATCH 2/4] PCI: add functionality for resizing resources v3

2017-05-02 Thread Christian König
Am 26.04.2017 um 19:00 schrieb Andy Shevchenko: On Tue, Apr 25, 2017 at 4:19 PM, Christian König wrote: From: Christian König This allows device drivers to request resizing their BARs. The function only tries to reprogram the windows of the bridge directly above the requesting device and onl

Re: [PATCH] usb: gadget: udc: add null check before pointer dereference

2017-05-02 Thread Gustavo A. R. Silva
Hi Alan, Quoting Alan Stern : On Mon, 1 May 2017, Gustavo A. R. Silva wrote: Add null check before dereferencing dev->regs pointer inside net2280_led_shutdown() function. Addresses-Coverity-ID: 101783 Signed-off-by: Gustavo A. R. Silva --- drivers/usb/gadget/udc/net2280.c | 8 +--- 1 f

[PATCH v4 RFT 1/2] powerpc/fadump: reduce memory consumption for capture kernel

2017-05-02 Thread Michal Suchanek
With fadump (dump capture) kernel booting like a regular kernel, it almost needs the same amount of memory to boot as the production kernel, which is unwarranted for a dump capture kernel. But with no option to disable some of the unnecessary subsystems in fadump kernel, that much memory is wasted

[PATCH v4 RFT 2/2] powerpc/fadump: update documentation about 'fadump_append=' parameter

2017-05-02 Thread Michal Suchanek
With the introduction of 'fadump_append=' parameter to pass additional parameters to fadump (capture) kernel, update documentation about it. Signed-off-by: Hari Bathini Signed-off-by: Michal Suchanek --- Documentation/powerpc/firmware-assisted-dump.txt | 8 +++- 1 file changed, 7 insertions

Re: [Xen-devel] linux-next: Tree for May 2 (xen: events_base.c)

2017-05-02 Thread Boris Ostrovsky
On 05/02/2017 11:34 AM, Randy Dunlap wrote: > On 05/01/17 23:47, Stephen Rothwell wrote: >> Hi all, >> >> Please do not add any v4.13 destined material in your linux-next >> included branches until after v4.12-rc1 has been released. >> >> Changes since 20170501: >> > on x86_64: > > drivers/built-in

Re: [PATCH v2 3/4] iio: accel: adxl345: Setup DATA_READY trigger

2017-05-02 Thread Jonathan Cameron
On 02/05/17 04:01, Rob Herring wrote: > On Sun, Apr 30, 2017 at 7:32 PM, Jonathan Cameron wrote: >> On 29/04/17 08:49, Eva Rachel Retuya wrote: >>> The ADXL345 provides a DATA_READY interrupt function to signal >>> availability of new data. This interrupt function is latched and can be >>> cleared

Re: [usb-host] question about pointer dereference before null check

2017-05-02 Thread Gustavo A. R. Silva
Hi Alan, Quoting Alan Stern : On Mon, 1 May 2017, Gustavo A. R. Silva wrote: Hello everybody, While taking a look into Coverity ID 100828 I ran into the following piece of code at drivers/usb/host/ehci-sched.c:1096: u32 addr; int think_time; int hs_transf

Re: [PATCH RFC] hugetlbfs 'noautofill' mount option

2017-05-02 Thread Prakash Sangappa
On 5/2/17 3:53 AM, Anshuman Khandual wrote: On 05/01/2017 11:30 PM, Prakash Sangappa wrote: Some applications like a database use hugetblfs for performance reasons. Files on hugetlbfs filesystem are created and huge pages allocated using fallocate() API. Pages are deallocated/freed using fallo

[PATCH] usb: host: remove unnecessary null check

2017-05-02 Thread Gustavo A. R. Silva
Remove unnecessary null check. udev->tt cannot ever be NULL when this section of code runs. Addresses-Coverity-ID: 100828 Cc: Alan Stern Signed-off-by: Gustavo A. R. Silva --- drivers/usb/host/ehci-sched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/ehci

Re: [PATCH v2 4/4] iio: accel: adxl345: Add support for triggered buffer

2017-05-02 Thread Jonathan Cameron
On 02/05/17 13:23, Eva Rachel Retuya wrote: > On Mon, May 01, 2017 at 01:42:29AM +0100, Jonathan Cameron wrote: > [...] >> Few minor bits inline... I'm a little bit in two minds about the >> holding up waiting for new data when using another trigger... >> >> Jonathan > [...] >>> static int adxl3

Re: [PATCH] device-dax: fix sysfs attribute deadlock

2017-05-02 Thread Dan Williams
On Tue, May 2, 2017 at 3:43 AM, Yi Zhang wrote: > Verified this patch on 4.11. > > Tested-by: Yi Zhang Thanks!

Re: [PATCH v3 0/4] Improved seccomp logging

2017-05-02 Thread Andy Lutomirski
On Mon, May 1, 2017 at 7:41 PM, Tyler Hicks wrote: > On 04/27/2017 07:42 PM, Kees Cook wrote: >> On Thu, Apr 27, 2017 at 3:17 PM, Tyler Hicks wrote: >>> Quick update... I finished the move from the high-water mark >>> log_max_action sysctl to the bitmask based actions_logged sysctl. >> >> Awesome

Re: [PATCH] mtd: nand: gpio: make nCE GPIO optional

2017-05-02 Thread Brian Norris
Hi Christophe, Boris, On Tue, May 02, 2017 at 11:03:34AM +0200, Boris Brezillon wrote: > On Tue, 2 May 2017 07:47:40 +0200 > Christophe LEROY wrote: > > > Le 01/05/2017 à 23:46, Brian Norris a écrit : > > > On Fri, Feb 10, 2017 at 03:01:10PM +0100, Christophe Leroy wrote: > > >> On some hardwa

Re: LKML: "Fixes as per checkpatch.pl" patches

2017-05-02 Thread Joe Perches
On Tue, 2017-05-02 at 18:08 +0300, Ali Kaasinen wrote: > Hellooo, presumably contacted the right people. > > I often browse LKML, and patches saying "Fix style issues as reported by > checkpatch.pl", and Greg responding "That's really vague, you need to be > specific, and only fix one type of th

[PATCH tip/core/rcu 0/3] Open-code trivial rcu_cblist accessors

2017-05-02 Thread Paul E. McKenney
Hello! And this series open-codes trivial rcu_cblist structure accessors: 1. Open-code rcu_cblist_empty(p) as !p->head. 2. Open-code rcu_cblist_n_cbs(p) as p->len. 3. Open-code rcu_cblist_n_lazy_cbs(p) as p->len_lazy. Than

Re: [PATCH v4] irqchip/gicv3-its: Avoid memory over allocation for ITEs

2017-05-02 Thread Marc Zyngier
On Sun, Apr 30 2017 at 3:36:15 pm BST, Shanker Donthineni wrote: > We are always allocating extra 255Bytes of memory to handle ITE > physical address alignment requirement. The kmalloc() satisfies > the ITE alignment since the ITS driver is requesting a minimum > size of ITS_ITT_ALIGN bytes. > >

[PATCH tip/core/rcu 1/3] rcu: Open-code the rcu_cblist_empty() function

2017-05-02 Thread Paul E. McKenney
Because the rcu_cblist_empty() just samples the ->head pointer, and because the rcu_cblist structure is quite straightforward, it makes sense to open-code rcu_cblist_empty(p) as !p->head, cutting out a level of indirection. This commit makes this change. Reported-by: Ingo Molnar Signed-off-by: P

[PATCH tip/core/rcu 3/3] rcu: Open-code the rcu_cblist_n_lazy_cbs() function

2017-05-02 Thread Paul E. McKenney
Because the rcu_cblist_n_lazy_cbs() just samples the ->len_lazy counter, and because the rcu_cblist structure is quite straightforward, it makes sense to open-code rcu_cblist_n_lazy_cbs(p) as p->len_lazy, cutting out a level of indirection. This commit makes this change. Reported-by: Ingo Molnar

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

2017-05-02 Thread Paolo Bonzini
On 28/04/2017 21:15, Brijesh Singh wrote: > Hi Radim, > >> >> This will probably return false negatives when then vcpu->arch.gpa_val >> couldn't be used anyway (possibly after a VM exits), so it is hard to >> draw a conclusion. >> >> I would really like if we had a solution that passed the gpa i

[PATCH tip/core/rcu 2/3] rcu: Open-code the rcu_cblist_n_cbs() function

2017-05-02 Thread Paul E. McKenney
Because the rcu_cblist_n_cbs() just samples the ->len counter, and because the rcu_cblist structure is quite straightforward, it makes sense to open-code rcu_cblist_n_cbs(p) as p->len, cutting out a level of indirection. This commit makes this change. Reported-by: Ingo Molnar Signed-off-by: Paul

Re: [BUG] cannot mount nfs, bisected to 0db10944a76ba ("nfs: Convert to separately allocated bdi")

2017-05-02 Thread Jan Kara
Hello, On Fri 28-04-17 11:56:24, Corentin Labbe wrote: > Since linux next-20170421, mounting nfs give me: > [ 774.994934] [ cut here ] > [ 774.994975] WARNING: CPU: 1 PID: 10284 at /linux-next/fs/sysfs/dir.c:31 > sysfs_warn_dup+0x64/0x74 > [ 774.994985] sysfs: cannot cr

[PATCH 2/2] ARM: dts: omap4-droid4: Add vibrator

2017-05-02 Thread Sebastian Reichel
Add vibrator to Droid4's device tree. Signed-off-by: Sebastian Reichel --- arch/arm/boot/dts/omap4-droid4-xt894.dts | 38 1 file changed, 38 insertions(+) diff --git a/arch/arm/boot/dts/omap4-droid4-xt894.dts b/arch/arm/boot/dts/omap4-droid4-xt894.dts index 89e

[PATCH 0/2] PWM Vibrator driver

2017-05-02 Thread Sebastian Reichel
Hi, The Motorola Droid 4 has a vibrator, that is connected to two GPIOs. Motorola's stock kernel names them vib_en and vib_dir, which probably stand for vibrator_enable and vibrator_direction. In their stock kernel both GPIOs are toggled using a hrtimer and a custom vibrator "misc" device is provi

[PATCH 1/2] Input: pwm-vibra: new driver

2017-05-02 Thread Sebastian Reichel
Provide a simple driver for PWM controllable vibrators. It will be used by Motorola Droid 4. Signed-off-by: Sebastian Reichel --- .../devicetree/bindings/input/pwm-vibrator.txt | 60 drivers/input/misc/Kconfig | 11 + drivers/input/misc/Makefile

[PATCH] btrfs: always write superblocks synchronously

2017-05-02 Thread Davidlohr Bueso
Commit b685d3d65ac7 "block: treat REQ_FUA and REQ_PREFLUSH as synchronous" removed REQ_SYNC flag from WRITE_FUA implementation. Since REQ_FUA and REQ_FLUSH flags are stripped from submitted IO when the disk doesn't have volatile write cache and thus effectively make the write async. This was seen t

Re: [PATCH 1/1] arm64: Always provide "model name" in /proc/cpuinfo

2017-05-02 Thread Heinrich Schuchardt
On 05/02/2017 01:08 PM, Catalin Marinas wrote: > On Tue, May 02, 2017 at 12:39:13AM +0200, Heinrich Schuchardt wrote: >> There is no need to hide the model name in processes >> that are not PER_LINUX32. >> >> So let us always provide a model name that is easily readable. >> >> Fixes: e47b020a323d (

[PATCH v3] arm64: perf: Ignore exclude_hv when kernel is running in HYP

2017-05-02 Thread Ganapatrao Kulkarni
commit d98ecdaca296 ("arm64: perf: Count EL2 events if the kernel is running in HYP") returns -EINVAL when perf system call perf_event_open is called with exclude_hv != exclude_kernel. This change breaks applications on VHE enabled ARMv8.1 platforms. The issue was observed with HHVM application, wh

[PATCH] ata-sff: always map page before data transfer

2017-05-02 Thread Tycho Andersen
The XPFO [1] patchset may unmap pages from physmap if they happened to be destined for userspace. If such a page is unmapped, it needs to be remapped. Rather than test if a page is in the highmem/xpfo unmapped state, Christoph suggested [2] that we simply always map the page. Suggested-by: Christo

Re: [PATCH v2 2/4] iio: accel: adxl345_core: Introduce set_mode and data_ready functions

2017-05-02 Thread Jonathan Cameron
On 02/05/17 12:39, Eva Rachel Retuya wrote: > On Mon, May 01, 2017 at 01:22:52AM +0100, Jonathan Cameron wrote: > Hello Jonathan, > [...] >>> +static int adxl345_set_mode(struct adxl345_data *data, u8 mode) >>> +{ >>> + struct device *dev = regmap_get_device(data->regmap); >>> + int ret; >>> +

Re: [PATCH 2/2] pid_ns: Introduce ioctl to set vector of ns_last_pid's on ns hierarhy

2017-05-02 Thread Oleg Nesterov
sorry for delay, vacation... On 04/28, Kirill Tkhai wrote: > > On 27.04.2017 19:22, Oleg Nesterov wrote: > > > > Ah, OK, I didn't notice the ns->child_reaper check in > > pidns_for_children_get(). > > > > But note that it doesn't need tasklist_lock too. > > Hm, are there possible strange situatio

Re: [PATCH RFC v2 4/6] proc: support mounting private procfs instances inside same pid namespace

2017-05-02 Thread Andy Lutomirski
On Tue, May 2, 2017 at 7:29 AM, Djalal Harouni wrote: > On Thu, Apr 27, 2017 at 12:13 AM, Andy Lutomirski wrote: >> On Tue, Apr 25, 2017 at 5:23 AM, Djalal Harouni wrote: > [...] >>> We have to align procfs and modernize it to have a per mount context >>> where at least the mount option do not p

Re: [GIT PULL] TTY/Serial driver fixes for 4.11-rc4

2017-05-02 Thread Dmitry Vyukov
On Fri, Apr 14, 2017 at 2:30 PM, Greg KH wrote: > On Fri, Apr 14, 2017 at 11:41:26AM +0200, Vegard Nossum wrote: >> On 13 April 2017 at 20:34, Greg KH wrote: >> > On Thu, Apr 13, 2017 at 09:07:40AM -0700, Linus Torvalds wrote: >> >> On Thu, Apr 13, 2017 at 3:50 AM, Vegard Nossum >> >> wrote: >>

Re: [PATCH] security: Use user_namespace::level to avoid redundant iterations in cap_capable()

2017-05-02 Thread Andy Lutomirski
On Tue, May 2, 2017 at 5:40 AM, Kirill Tkhai wrote: > When ns->level is not larger then cred->user_ns->level, > then ns can't be cred->user_ns's descendant, and > there is no a sence to search in parents. > > So, breake the cycle earlier and skip needless iterations. > > Signed-off-by: Kirill Tkha

Re: [PATCH 1/1] arm64: Always provide "model name" in /proc/cpuinfo

2017-05-02 Thread Sudeep Holla
On 02/05/17 17:28, Heinrich Schuchardt wrote: [...] > The real interesting thing in an ARM SOC is to see which CPU is A72, > A57, A53 or whatever. > > This information is available from the device tree in the compatible > property of the individual CPUs > (/sys/firmware/devicetree/base/cpus/cpu

net/key: slab-out-of-bounds in pfkey_compile_policy

2017-05-02 Thread Andrey Konovalov
Hi, I've got the following error report while fuzzing the kernel with syzkaller. On commit d3b5d35290d729a2518af00feca867385a1b08fa (4.11). A reproducer and .config are attached. == BUG: KASAN: slab-out-of-bounds in pfkey_compile_p

Re: [PATCH v4 RFT 1/2] powerpc/fadump: reduce memory consumption for capture kernel

2017-05-02 Thread Hari Bathini
Hi Michal, On Tuesday 02 May 2017 09:26 PM, Michal Suchanek wrote: With fadump (dump capture) kernel booting like a regular kernel, it almost needs the same amount of memory to boot as the production kernel, which is unwarranted for a dump capture kernel. But with no option to disable some of t

Re: net/key: slab-out-of-bounds in pfkey_compile_policy

2017-05-02 Thread Andrey Konovalov
On Tue, May 2, 2017 at 6:45 PM, Andrey Konovalov wrote: > Hi, > > I've got the following error report while fuzzing the kernel with syzkaller. > > On commit d3b5d35290d729a2518af00feca867385a1b08fa (4.11). > > A reproducer and .config are attached. > > =

Re: [PATCH tip/core/rcu 0/3] Open-code trivial rcu_cblist accessors

2017-05-02 Thread Ingo Molnar
* Paul E. McKenney wrote: > Hello! > > And this series open-codes trivial rcu_cblist structure accessors: > > 1.Open-code rcu_cblist_empty(p) as !p->head. > > 2.Open-code rcu_cblist_n_cbs(p) as p->len. > > 3.Open-code rcu_cblist_n_lazy_cbs(p) as p->len_lazy. > > >

Re: [PATCH 1/1] arm64: Always provide "model name" in /proc/cpuinfo

2017-05-02 Thread Mark Rutland
On Tue, May 02, 2017 at 06:28:40PM +0200, Heinrich Schuchardt wrote: > On 05/02/2017 01:08 PM, Catalin Marinas wrote: > > On Tue, May 02, 2017 at 12:39:13AM +0200, Heinrich Schuchardt wrote: > >> There is no need to hide the model name in processes > >> that are not PER_LINUX32. > >> > >> So let us

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

2017-05-02 Thread Marcelo Tosatti
On Tue, May 02, 2017 at 10:28:36AM -0400, Luiz Capitulino wrote: > On Tue, 25 Apr 2017 10:57:19 -0300 > Marcelo Tosatti wrote: > > > 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 tra

Re: net/ipv6: use-after-free in __call_rcu/in6_dev_finish_destroy_rcu

2017-05-02 Thread Andrey Konovalov
On Tue, May 2, 2017 at 4:44 AM, David Ahern wrote: > On 4/26/17 9:15 AM, Andrey Konovalov wrote: >> +David >> >> I've enabled CONFIG_DEBUG_OBJECTS_RCU_HEAD and this is what I get. >> >> Apparently the rcu warning is related to the fib6_del_route bug I've >> been trying to reproduce: >> https://gro

[PATCH v2] usb: gadget: udc: add null check before pointer dereference

2017-05-02 Thread Gustavo A. R. Silva
Add null check before dereferencing dev->regs pointer inside net2280_led_shutdown() function. Addresses-Coverity-ID: 101783 Cc: Alan Stern Signed-off-by: Gustavo A. R. Silva --- Changes in v2: Move the net2280_led_shutdown() call later. drivers/usb/gadget/udc/net2280.c | 5 +++-- 1 file chan

Re: [PATCH tip/core/rcu 0/3] Open-code trivial rcu_cblist accessors

2017-05-02 Thread Paul E. McKenney
On Tue, May 02, 2017 at 06:47:10PM +0200, Ingo Molnar wrote: > > * Paul E. McKenney wrote: > > > Hello! > > > > And this series open-codes trivial rcu_cblist structure accessors: > > > > 1. Open-code rcu_cblist_empty(p) as !p->head. > > > > 2. Open-code rcu_cblist_n_cbs(p) as p->len. > > >

[PATCHv3 3/3] drm/vgem: Enable dmabuf import interfaces

2017-05-02 Thread Laura Abbott
Enable the GEM dma-buf import interfaces in addition to the export interfaces. This lets vgem be used as a test source for other allocators (e.g. Ion). Cc: intel-...@lists.freedesktop.org Reviewed-by: Chris Wilson Signed-off-by: Laura Abbott --- v3: Minor fixes suggested by Chris Wilson --- dri

[PATCHv3 0/3] dma_buf import support for vgem

2017-05-02 Thread Laura Abbott
Hi, This is v3 of the series to add dma_buf import functions for vgem. This is mostly a rebase to drm-misc/drm-misc-next with a fixup of the resulting conflicts. More details can be found on the individual patches. Thanks, Laura Laura Abbott (3): drm/vgem: Add a dummy platform device drm/pri

[PATCHv3 1/3] drm/vgem: Add a dummy platform device

2017-05-02 Thread Laura Abbott
The vgem driver is currently registered independent of any actual device. Some usage of the dmabuf APIs require an actual device structure to do anything. Register a dummy platform device for use with dmabuf. Cc: intel-...@lists.freedesktop.org Reviewed-by: Chris Wilson Signed-off-by: Laura Abbot

[PATCHv3 2/3] drm/prime: Introduce drm_gem_prime_import_platform

2017-05-02 Thread Laura Abbott
The existing drm_gem_prime_import function uses the underlying struct device of a drm_device for attaching to a dma_buf. Some drivers (notably vgem) may not have an underlying device structure. Offer an alternate function to attach using a platform device associated with drm_device. Cc: intel-...@

[PATCH] selftests: x86: add missing executables to .gitignore

2017-05-02 Thread Shuah Khan
Executables that are common for both x86_32 and x86_64 are missing from .gitignore. Add them. Signed-off-by: Shuah Khan --- tools/testing/selftests/x86/.gitignore | 13 + 1 file changed, 13 insertions(+) diff --git a/tools/testing/selftests/x86/.gitignore b/tools/testing/selftests/

Re: [PATCH 4.10 00/62] 4.10.14-stable review

2017-05-02 Thread Greg Kroah-Hartman
On Tue, May 02, 2017 at 07:54:23AM -0600, Shuah Khan wrote: > On 05/01/2017 10:59 PM, kernelci.org bot wrote: > > stable-rc/linux-4.10.y boot: 87 boots: 0 failed, 87 passed > > (v4.10.13-63-gcabfe9402479) > > > > Full Boot Summary: > > https://kernelci.org/boot/all/job/stable-rc/branch/linux-4.1

Re: [PATCH 4.10 00/62] 4.10.14-stable review

2017-05-02 Thread Greg Kroah-Hartman
On Mon, May 01, 2017 at 09:59:07PM -0700, kernelci.org bot wrote: > stable-rc/linux-4.10.y boot: 87 boots: 0 failed, 87 passed > (v4.10.13-63-gcabfe9402479) That's good, but it seems like a very small number, is that correct? thanks, greg k-h

[PATCH v2] security: Use user_namespace::level to avoid redundant iterations in cap_capable()

2017-05-02 Thread Kirill Tkhai
When ns->level is not larger then cred->user_ns->level, then ns can't be cred->user_ns's descendant, and there is no a sence to search in parents. So, breake the cycle earlier and skip needless iterations. v2: Change comment on suggested by Andy Lutomirski. Signed-off-by: Kirill Tkhai --- secu

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

2017-05-02 Thread Luiz Capitulino
On Tue, 2 May 2017 13:52:00 -0300 Marcelo Tosatti wrote: > > I have several questions about the tunables: > > > > - What does the vmstat_threshold value mean? What are the implications > >of changing this value? What's the difference in choosing 1, 2, 3 > >or 500? > > Its the maximum

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

2017-05-02 Thread Marcelo Tosatti
On Tue, May 02, 2017 at 01:15:27PM -0400, Luiz Capitulino wrote: > On Tue, 2 May 2017 13:52:00 -0300 > Marcelo Tosatti wrote: > > > > I have several questions about the tunables: > > > > > > - What does the vmstat_threshold value mean? What are the implications > > >of changing this value?

Re: net/ipv6: use-after-free in __call_rcu/in6_dev_finish_destroy_rcu

2017-05-02 Thread David Ahern
On 5/2/17 10:58 AM, Andrey Konovalov wrote: > Do you have a patch that I could test? not yet. > > I also reported another issue recently, that might also be related to this > one: > https://groups.google.com/forum/#!topic/syzkaller/Rt0pgY4wfiw different problem. I can still trigger this one wi

Re: [BUG] cannot mount nfs, bisected to 0db10944a76ba ("nfs: Convert to separately allocated bdi")

2017-05-02 Thread Corentin Labbe
s/distfiles /usr/portage/distfiles mount -t nfs -o tcp,hard,intr,async,vers=4 192.168.1.100:/mnt/tempo/portages/cubiedev/packages /usr/portage/packages mount -t nfs -o tcp,hard,intr,async,vers=4,rsize=4096,wsize=4096 192.168.1.100:/var/tmp/portage/cubie /var/tmp/portage/ mount -t nfs -o tcp,hard,intr,

[PATCH] xen: Move xen_have_vector_callback definition to enlighten.c

2017-05-02 Thread Boris Ostrovsky
Commit 84d582d236dc ("xen: Revert commits da72ff5bfcb0 and 72a9b186292d") defined xen_have_vector_callback in enlighten_hvm.c. Since guest-type-neutral code refers to this variable this causes build failures when CONFIG_XEN_PVHVM is not defined. Moving xen_have_vector_callback definition to enligh

Re: [PATCH] arm64: Fix multiple 'asm-operand-widths' warnings

2017-05-02 Thread Matthias Kaehlcke
Hi Mark, El Tue, May 02, 2017 at 11:27:18AM +0100 Mark Rutland ha dit: > On Mon, May 01, 2017 at 02:26:22PM -0700, Matthias Kaehlcke wrote: > > clang raises 'asm-operand-widths' warnings in inline assembly code when > > the size of an operand is < 64 bits and the operand width is unspecified. > >

Re: [PATCH 2/2] pid_ns: Introduce ioctl to set vector of ns_last_pid's on ns hierarhy

2017-05-02 Thread Eric W. Biederman
Oleg Nesterov writes: > sorry for delay, vacation... > > On 04/28, Kirill Tkhai wrote: >> >> On 27.04.2017 19:22, Oleg Nesterov wrote: >> > >> > Ah, OK, I didn't notice the ns->child_reaper check in >> > pidns_for_children_get(). >> > >> > But note that it doesn't need tasklist_lock too. >> >> H

Re: [PATCH] MAINTAINERS: Remove myself as reviewer for Exynos

2017-05-02 Thread Krzysztof Kozlowski
On Fri, Apr 28, 2017 at 12:22:15AM -0400, Javier Martinez Canillas wrote: > I left Samsung and lost access to most Exynos hardware and documentation. > Also, I likely won't be able to keep an eye on the platform anymore in the > short term so remove myself as a reviewer for Exynos. > > Signed-off-

Re: [PATCH] arm64: Fix multiple 'asm-operand-widths' warnings

2017-05-02 Thread Mark Rutland
Hi, On Mon, May 01, 2017 at 02:26:22PM -0700, Matthias Kaehlcke wrote: > diff --git a/arch/arm64/include/asm/uaccess.h > b/arch/arm64/include/asm/uaccess.h > index 5308d696311b..7db143689694 100644 > --- a/arch/arm64/include/asm/uaccess.h > +++ b/arch/arm64/include/asm/uaccess.h > @@ -302,7 +302,

Re: [PATCH 2/2] pid_ns: Introduce ioctl to set vector of ns_last_pid's on ns hierarhy

2017-05-02 Thread Kirill Tkhai
On 02.05.2017 19:33, Oleg Nesterov wrote: > sorry for delay, vacation... > > On 04/28, Kirill Tkhai wrote: >> >> On 27.04.2017 19:22, Oleg Nesterov wrote: >>> >>> Ah, OK, I didn't notice the ns->child_reaper check in >>> pidns_for_children_get(). >>> >>> But note that it doesn't need tasklist_loc

Re: [PATCH 4.4 00/43] 4.4.66-stable review

2017-05-02 Thread Guenter Roeck
On Mon, May 01, 2017 at 02:27:00PM -0700, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.66 release. > There are 43 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 4.9 00/54] 4.9.26-stable review

2017-05-02 Thread Guenter Roeck
On Mon, May 01, 2017 at 02:31:07PM -0700, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.26 release. > There are 54 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 4.10 00/62] 4.10.14-stable review

2017-05-02 Thread Guenter Roeck
On Mon, May 01, 2017 at 02:34:13PM -0700, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.10.14 release. > There are 62 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] MAINTAINERS: Add myself as reviewer for Exynos

2017-05-02 Thread Krzysztof Kozlowski
On Fri, Apr 28, 2017 at 08:01:07AM -0600, Shuah Khan wrote: > Adding myself as a reviewer for Exynos in the interest of keeping an > eye on the Exynos platform and help keep it stable. > > Signed-off-by: Shuah Khan > --- > MAINTAINERS | 1 + > 1 file changed, 1 insertion(+) Dear Shuah, Thank y

[PATCH 0/3] net/atm: Fine-tuning for three function implementations

2017-05-02 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 2 May 2017 19:37:39 +0200 A few update suggestions were taken into account from static source code analysis. Markus Elfring (3): Combine four seq_printf() calls in mpc_show() Use seq_putc() in mpc_show() Add some spaces for better code readability net/atm/

Re: [PATCH V2] pwm: tegra: Set maximum pwm clock source per SoC tapeout

2017-05-02 Thread Laxman Dewangan
On Tuesday 02 May 2017 08:53 PM, Jon Hunter wrote: On 02/05/17 15:05, Laxman Dewangan wrote: The PWM hardware IP is taped-out with different maximum frequency on different SoCs. From HW team: Before Tegra186, it is 38.4MHz. In Tegra186, it is 102MHz. Add support to limit the

Mounting fuse with v4.11.0 produced WARNING in fs/super.c:1281 super_setup_bdi_name+0xcf/0xe0

2017-05-02 Thread Andrey Melnikov
Hello. Mounting ntfs fs with fuse shows this warning in log: [ 761.948837] [ cut here ] [ 761.948845] WARNING: CPU: 1 PID: 10879 at /usr/src/ml-build/mainline/fs/super.c:1281 super_setup_bdi_name+0xcf/0xe0 [ 761.948846] Modules linked in: nouveau mxm_wmi wmi ttm drm_kms

[PATCH 1/3] net/atm: Combine four seq_printf() calls in mpc_show()

2017-05-02 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 2 May 2017 18:52:58 +0200 Some data were put into a sequence by four separate function calls. Print the same data by two function calls instead. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- net/atm/mpoa_proc.c | 8

[PATCH 2/3] net/atm: Use seq_putc() in mpc_show()

2017-05-02 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 2 May 2017 18:58:08 +0200 Single characters (line breaks) 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 --- net/atm/mpoa_proc.c | 6 +++---

[PATCH 3/3] net/atm: Add some spaces for better code readability

2017-05-02 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 2 May 2017 19:19:14 +0200 Use space characters at some source code places according to the Linux coding style convention. Signed-off-by: Markus Elfring --- net/atm/mpoa_proc.c | 23 +-- 1 file changed, 13 insertions(+), 10 deletions(-) diff

Re: [PATCH 1/3] drm: fourcc byteorder: drop DRM_FORMAT_BIG_ENDIAN

2017-05-02 Thread Ilia Mirkin
On Tue, May 2, 2017 at 11:06 AM, Gerd Hoffmann wrote: > Radeon and nvidia (nv40) cards where mentioned. I'll try to summarize > (feel free to correct me if I'm wrong). > > nvidia has support for 8 bit-per-color formats only on bigendian hosts. > Not sure whenever this is a driver or hardware limi

[PATCH] x86/xen: Improve failed hypercall debugging

2017-05-02 Thread Andy Lutomirski
When fiddling with xen_exit_mmap(), I noticed that failed multicall debugging doesn't work if the multicall is just one call. Fix it. Cc: Juergen Gross Cc: Konrad Rzeszutek Wilk Cc: Boris Ostrovsky Signed-off-by: Andy Lutomirski --- arch/x86/xen/multicalls.c | 26 +-

Re: [PATCH] bluetooth: hci_uart: fix kconfig dependency

2017-05-02 Thread Marcel Holtmann
Hi Tobias, > We see the following link error with CONFIG_BT_HCIUART=y, > CONFIG_BT_HCIUART_LL=y and CONFIG_SERIAL_DEV_BUS=m: > > drivers/built-in.o: In function 'll_close': > supp.c:(.text+0x55add4): undefined reference to 'serdev_device_close' > supp.c:(.text+0x55add4): relocation truncated to f

VERY URGENT

2017-05-02 Thread Dk Ani Nadhirah Pg Juata
Dear Friend, I Have an Important Proposal For You Please Urgently Write Back Through This Email:: mrsanncha...@gmail.com Privileged/Confidential information may be contained in this message. If you are neither the addressee (intended recipient) nor an authorised recip

<    1   2   3   4   5   6   7   >