[PATCH 03/15] lustre: don't reinvent struct bio_vec

2016-07-22 Thread Oleg Drokin
From: Al Viro Signed-off-by: Al Viro --- drivers/staging/lustre/include/linux/lnet/types.h | 16 + .../staging/lustre/lnet/klnds/o2iblnd/o2iblnd_cb.c | 10 +-- .../staging/lustre/lnet/klnds/socklnd/socklnd_cb.c | 16 ++--- .../lustre/lnet/klnds/socklnd/socklnd_lib.c| 42 +--

[PATCH 05/15] ksocknal_lib_send_iov(): sendmsg doesn't bugger iovec...

2016-07-22 Thread Oleg Drokin
From: Al Viro Signed-off-by: Al Viro --- .../lustre/lnet/klnds/socklnd/socklnd_lib.c| 38 ++ 1 file changed, 10 insertions(+), 28 deletions(-) diff --git a/drivers/staging/lustre/lnet/klnds/socklnd/socklnd_lib.c b/drivers/staging/lustre/lnet/klnds/socklnd/socklnd_l

[PATCH 04/15] ksocknal_lib_recv_iov(): recvmsg doesn't bugger iovec anymore...

2016-07-22 Thread Oleg Drokin
From: Al Viro Signed-off-by: Al Viro --- .../lustre/lnet/klnds/socklnd/socklnd_lib.c| 22 +- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/drivers/staging/lustre/lnet/klnds/socklnd/socklnd_lib.c b/drivers/staging/lustre/lnet/klnds/socklnd/socklnd_li

[PATCH 00/15] Lustre cleanups.

2016-07-22 Thread Oleg Drokin
Here are some more Lustre cleanups. The biggest of the bunch being Al Viro's work to convert lnet to sendmsg and iovec iterators. Also some style fixes. Please consider. Al Viro (10): lustre: switch lnet_sock_write() to sock_sendmsg() lustre: simplify the living hell out of ksocknal_lib_recv

[PATCH 01/15] lustre: switch lnet_sock_write() to sock_sendmsg()

2016-07-22 Thread Oleg Drokin
From: Al Viro Signed-off-by: Al Viro --- drivers/staging/lustre/lnet/lnet/lib-socket.c | 21 +++-- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/drivers/staging/lustre/lnet/lnet/lib-socket.c b/drivers/staging/lustre/lnet/lnet/lib-socket.c index 891fd59..4e6dd51

[PATCH 08/15] lustre: constify lib-move.c stuff

2016-07-22 Thread Oleg Drokin
From: Al Viro Signed-off-by: Al Viro --- .../staging/lustre/include/linux/lnet/lib-lnet.h | 28 +++--- drivers/staging/lustre/lnet/lnet/lib-move.c| 20 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/drivers/staging/lustre/include/linu

[PATCH 07/15] lustre: ->kss_scratch... are unused now

2016-07-22 Thread Oleg Drokin
From: Al Viro Signed-off-by: Al Viro --- drivers/staging/lustre/lnet/klnds/socklnd/socklnd.h | 4 1 file changed, 4 deletions(-) diff --git a/drivers/staging/lustre/lnet/klnds/socklnd/socklnd.h b/drivers/staging/lustre/lnet/klnds/socklnd/socklnd.h index d5efb42..84a915c 100644 --- a/driv

[PATCH 12/15] staging/lustre: Add spaces preferred around that '{+,-,*,/,|,<<

2016-07-22 Thread Oleg Drokin
From: Emoly Liu This patch fixes all checkpatch occurences of "CHECK: spaces preferred around that '{+,-,*,/,|,<<,>>,&}' (ctx:VxV)" in Lustre code. Signed-off-by: Emoly Liu Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/lu_object.h | 3 +- .../lustre/lustre/include/lus

[PATCH 15/15] staging/lustre: Remove unused cp_error from struct cl_page

2016-07-22 Thread Oleg Drokin
cp_error member is not really set anywhere, so kill it and the only printing user of it too. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/cl_object.h | 2 -- drivers/staging/lustre/lustre/obdclass/cl_page.c | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff

[PATCH 10/15] lustre: introduce lnet_copy_{k,}iov2iter(), kill lnet_copy_{k,}iov2{k,}iov()

2016-07-22 Thread Oleg Drokin
From: Al Viro Signed-off-by: Al Viro Signed-off-by: James Simmons Signed-off-by: Oleg Drokin --- .../staging/lustre/include/linux/lnet/lib-lnet.h | 57 +--- .../staging/lustre/lnet/klnds/o2iblnd/o2iblnd_cb.c | 36 +-- drivers/staging/lustre/lnet/lnet/lib-move.c| 309 --

[PATCH 13/15] staging/lustre: Fix unnecessary parentheses around variables

2016-07-22 Thread Oleg Drokin
From: Emoly Liu This patch fixes all checkpatch occurences of "CHECK: Unnecessary parentheses around xxx" in Lustre code. Signed-off-by: Emoly Liu Signed-off-by: Oleg Drokin --- .../staging/lustre/lustre/include/lustre/lustre_user.h | 2 +- drivers/staging/lustre/lustre/lov/lov_obd.c

[PATCH 14/15] staging/lustre: Make alignment match open parenthesis

2016-07-22 Thread Oleg Drokin
From: Emoly Liu This patch fixes most of checkpatch occurences of "CHECK: Alignment should match open parenthesis" in Lustre code. Signed-off-by: Emoly Liu Signed-off-by: Oleg Drokin --- .../staging/lustre/include/linux/libcfs/libcfs.h | 6 +- .../lustre/include/linux/libcfs/libcfs_debug.

[PATCH 11/15] staging/lustre: Always return EEXIST on mkdir for existing names

2016-07-22 Thread Oleg Drokin
if the name already exists, but we don't have write permissions in the parent, force talking to the MDS to determine what more sensical error code to return. This also happens to fix matlab and other such programs that assume that EEXIST is the only valid error code for mkdir of an existing directo

[PATCH 06/15] ksocknal_lib_send_kiov(): sendmsg doesn't bugger iovec...

2016-07-22 Thread Oleg Drokin
From: Al Viro Signed-off-by: Al Viro --- .../lustre/lnet/klnds/socklnd/socklnd_lib.c| 29 -- 1 file changed, 5 insertions(+), 24 deletions(-) diff --git a/drivers/staging/lustre/lnet/klnds/socklnd/socklnd_lib.c b/drivers/staging/lustre/lnet/klnds/socklnd/socklnd_li

[PATCH 02/15] lustre: simplify the living hell out of ksocknal_lib_recv_kiov()

2016-07-22 Thread Oleg Drokin
From: Al Viro ... by using ITER_BVEC recvmsg Signed-off-by: Al Viro --- .../staging/lustre/lnet/klnds/socklnd/socklnd.h| 6 +- .../lustre/lnet/klnds/socklnd/socklnd_lib.c| 98 ++ 2 files changed, 12 insertions(+), 92 deletions(-) diff --git a/drivers/staging/l

[PATCH 09/15] lustre: pass iov_iter to ->lnd_recv()

2016-07-22 Thread Oleg Drokin
From: Al Viro Signed-off-by: Al Viro --- .../staging/lustre/include/linux/lnet/lib-types.h | 5 +--- .../staging/lustre/lnet/klnds/o2iblnd/o2iblnd.h| 3 +- .../staging/lustre/lnet/klnds/o2iblnd/o2iblnd_cb.c | 32 -- .../staging/lustre/lnet/klnds/socklnd/socklnd.h|

Re: [kernel,v2,1/2] powerpc/iommu: Stop using @current in mm_iommu_xxx

2016-07-22 Thread Nicholas Piggin
On Wed, 20 Jul 2016 14:34:30 +1000 Alexey Kardashevskiy wrote: > static long tce_iommu_register_pages(struct tce_container *container, > @@ -128,10 +129,17 @@ static long tce_iommu_register_pages(struct > tce_container *container, ((vaddr + size) < vaddr)) > return -EINVAL; > >

Re: [PATCH 1/3] net: ethernet: ti: cpdma: fix lockup in cpdma_ctlr_destroy()

2016-07-22 Thread Ivan Khoronzhuk
On 22.07.16 16:58, Grygorii Strashko wrote: Fix deadlock in cpdma_ctlr_destroy() which is triggered now on cpsw module removal: cpsw_remove() - cpdma_ctlr_destroy() - spin_lock_irqsave(&ctlr->lock, flags) - cpdma_ctlr_stop() - spin_lock_irqsave(&ctlr->lock, flags); <- deadlock -

Re: [PATCH] net: neigh: disallow state transition DELAY->STALE in neigh_update()

2016-07-22 Thread Julian Anastasov
Hello, On Fri, 22 Jul 2016, Chunhui He wrote: > The origin code allows NUD_DELAY -> NUD_STALE and NUD_PROBE -> NUD_STALE. > This part was imported to kernel since v2.1.79, I don't know clearly why it > allows that. > > My analysis: > (1) As shown in my previous mail, NUD_DELAY -> NUD_ST

[PATCH] tipc: fix NULL pointer dereference in shutdown()

2016-07-22 Thread Vegard Nossum
tipc_msg_create() can return a NULL skb and if so, we shouldn't try to call tipc_node_xmit_skb() on it. general protection fault: [#1] PREEMPT SMP KASAN CPU: 3 PID: 30298 Comm: trinity-c0 Not tainted 4.7.0-rc7+ #19 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Ubunt

[GIT] Networking

2016-07-22 Thread David Miller
1) Fix memory leak in nftables, from Liping Zhang. 2) Need to check result of vlan_insert_tag() in batman-adv otherwise we risk NULL skb derefs, from Sven Eckelmann. 3) Check for dev_alloc_skb() failures in cfg80211, from Gregory Greenman. 4) Handle properly when we have ppp_unregister_ch

Re: i2c: slave support framework for Linux devices

2016-07-22 Thread Wolfram Sang
On Fri, Jul 22, 2016 at 01:55:52PM +0300, Kachalov Anton wrote: > Wolfram, > > I would like to include you in the discussion loop while you are main author > of the I2C slave framework. You should rather resend the message to the linux-i2c list. signature.asc Description: PGP signature

Re: [PATCH 1/3] ARM: mach-omap2: remove bogus "or_module" from rx51-peripherals

2016-07-22 Thread Tony Lindgren
* Paul Gortmaker [160722 07:02]: > [Re: [PATCH 1/3] ARM: mach-omap2: remove bogus "or_module" from > rx51-peripherals] On 21/07/2016 (Thu 23:41) Tony Lindgren wrote: > > > Hi, > > > > * Paul Gortmaker [160719 21:17]: > > > During unrelated work, attempting to remove an include of the > > > lin

[PATCH] net/irda: fix NULL pointer dereference on memory allocation failure

2016-07-22 Thread Vegard Nossum
I ran into this: kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: [#1] PREEMPT SMP KASAN CPU: 2 PID: 2012 Comm: trinity-c3 Not tainted 4.7.0-rc7+ #19 Hardware name: QEMU Standard PC (i440FX + PI

Re: [PATCH 00/19] x86/dumpstack: rewrite x86 stack dump code

2016-07-22 Thread Linus Torvalds
On Sat, Jul 23, 2016 at 2:35 PM, Josh Poimboeuf wrote: > > While doing the scanning and printing, it does call the frame pointer > unwinder in parallel, but like before, that's *only* used to determine > whether a found address should be printed without a question mark. If > the unwinder goes off

Re: [PATCH 00/19] x86/dumpstack: rewrite x86 stack dump code

2016-07-22 Thread Josh Poimboeuf
On Fri, Jul 22, 2016 at 05:31:47PM -0700, Andy Lutomirski wrote: > On Fri, Jul 22, 2016 at 5:22 PM, Linus Torvalds > wrote: > > > > So without having yet looked at the code, I want people to understand > > that to a very real degree, the stack tracer that the *oopsing* code > > (ie what all the us

Re: PM-wakeup: Delete unnecessary checks before two function calls

2016-07-22 Thread SF Markus Elfring
>> How do you think about to integrate this update suggestion >> into another source code repository? > > I'm not really sure what you mean. Do you find the suggested source code change acceptable? http://article.gmane.org/gmane.linux.power-management.general/61766 https://lkml.org/lkml/2015/6/2

Re: [kernel-hardening] [PATCH v5 03/32] x86/cpa: In populate_pgd, don't set the pgd entry until it's populated

2016-07-22 Thread Valdis . Kletnieks
On Thu, 21 Jul 2016 22:34:33 -0700, Andy Lutomirski said: > How much memory do you have and what's your config? My code is > obviously buggy, but I'm wondering why neither I nor the 0day bot caught > this. Probably because your devel box and the 0day bot both have 4-level page tables and the dua

Re: [PATCH/RFC] Re: linux-next: build failure after merge of the luto-misc tree

2016-07-22 Thread Stephen Rothwell
Hi Arnaldo, On Fri, 22 Jul 2016 16:57:34 -0300 Arnaldo Carvalho de Melo wrote: > > Em Fri, Jul 22, 2016 at 02:44:17PM -0500, Josh Poimboeuf escreveu: > > On Fri, Jul 22, 2016 at 04:36:55PM -0300, Arnaldo Carvalho de Melo wrote: > > > Em Fri, Jul 22, 2016 at 02:19:20PM -0500, Josh Poimboeuf esc

[PATCH] x86/mm/cpa: Unbreak populate_pgd(): stop trying to deallocate failed PUDs

2016-07-22 Thread Andy Lutomirski
This mostly reverts commit 360cb4d15567a7eca07a5f3ade6de308bbfb4e70. I broke the case where a PUD table got allocated -- populate_pud() would wander off a pgd_none entry and get lost. I'm not sure how this survived my testing. Fixing this directly is difficult or impossible because of the awful

Re: [PATCH v4 2/4] drm/rockchip: add an common abstracted PSR driver

2016-07-22 Thread Doug Anderson
Yakir, On Wed, Jul 13, 2016 at 9:15 PM, Yakir Yang wrote: > +static void psr_set_state(struct psr_drv *psr, enum psr_state state) > +{ > + mutex_lock(&psr->state_mutex); > + > + if (psr->state == state) { > + mutex_unlock(&psr->state_mutex); > + return; > +

Re: [PATCH 1/3] Add a new field to struct shrinker

2016-07-22 Thread Tony Jones
On 07/22/2016 06:27 PM, Tony Jones wrote: > On 07/20/2016 07:54 AM, Michal Hocko wrote: > >>> Michal, just to make sure I understand you correctly, do you mean that we >>> could infer the names of the shrinkers by looking at the names of their >>> callbacks? >> >> Yes, %ps can then be used for th

Re: linux-next: build failure after merge of the nvdimm tree

2016-07-22 Thread Dan Williams
On Fri, Jul 22, 2016 at 6:04 PM, Dan Williams wrote: > On Thu, Jul 21, 2016 at 11:13 PM, Stephen Rothwell > wrote: >> Hi Dan, >> >> After merging the nvdimm tree, today's linux-next build (powerpc >> ppc64_defconfig) failed like this: >> >> In file included from drivers/md/dm.h:14:0, >>

Crypto Fixes for 4.7

2016-07-22 Thread Herbert Xu
Hi Linus: This push fixes a sporadic build failure in the qat driver as well as a memory corruption bug in rsa-pkcs1pad. Please pull from git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6.git linus Herbert Xu (1): crypto: rsa-pkcs1pad - fix rsa-pkcs1pad request struct Ja

Re: [GIT PULL] clk fixes for v4.7-rc8

2016-07-22 Thread Linus Torvalds
On Fri, Jul 22, 2016 at 9:47 AM, Michael Turquette wrote: > > git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git > tags/clk-fixes-for-linus The pgp key you sign your pull requests with keep changing. Sometimes it's your primary key, most often it seems to be your 4kb subkey, now it's

Re: [PATCH net-next v3] cdc_ether: Improve ZTE MF823/831/910 handling

2016-07-22 Thread kbuild test robot
Hi, [auto build test WARNING on net-next/master] url: https://github.com/0day-ci/linux/commits/Kristian-Evensen/cdc_ether-Improve-ZTE-MF823-831-910-handling/20160723-093100 config: x86_64-randconfig-i0-201629 (attached as .config) compiler: gcc-4.9 (Debian 4.9.3-14) 4.9.3 reproduce: #

Re: [PATCH v2 00/10] userns: sysctl limits for namespaces

2016-07-22 Thread Eric W. Biederman
Kees Cook writes: > On Fri, Jul 22, 2016 at 11:45 AM, Eric W. Biederman > wrote: >> Colin Walters writes: >> >>> On Thu, Jul 21, 2016, at 12:39 PM, Eric W. Biederman wrote: This patchset addresses two use cases: - Implement a sane upper bound on the number of namespaces. - P

Re: [v6 PATCH 1/6] extcon: Add Type-C and DP support

2016-07-22 Thread Chanwoo Choi
Hi, 2016-07-23 6:40 GMT+09:00 Guenter Roeck : > On Fri, Jul 22, 2016 at 2:29 AM, Chanwoo Choi wrote: >> Hi Chris, >> >> I'm sorry for late reply. I finished the first draft to support the extcon >> property. >> You can check the patches[1]. But, I need more time to test it. After tested >> it,

Re: [v6 PATCH 1/6] extcon: Add Type-C and DP support

2016-07-22 Thread Chanwoo Choi
Hi, 2016-07-23 3:21 GMT+09:00 Guenter Roeck : > Hi, > > On Fri, Jul 22, 2016 at 2:29 AM, Chanwoo Choi wrote: >> Hi Chris, >> >> I'm sorry for late reply. I finished the first draft to support the extcon >> property. >> You can check the patches[1]. But, I need more time to test it. After tested

Re: [PATCH v8 0/10] Output raw touch data via V4L2

2016-07-22 Thread Chris Healy
I'm not Nick, but I'm testing his patches. ;-) Here's what I'm getting from v4l2-compliance with his patches: root@RDU2:/mnt/disk ./v4l2-compliance -a -f -d /dev/v4l-touch0 Driver Info: Driver name : rmi4_f54 Card type : Synaptics RMI4 Touch Sensor Bus info : rmi4:rmi4-00.fn54 Driver v

[PATCH v18 net-next 1/1] hv_sock: introduce Hyper-V Sockets

2016-07-22 Thread Dexuan Cui
Hyper-V Sockets (hv_sock) supplies a byte-stream based communication mechanism between the host and the guest. It's somewhat like TCP over VMBus, but the transportation layer (VMBus) is much simpler than IP. With Hyper-V Sockets, applications between the host and the guest can talk to each other d

Re: [PATCH v3] virtio_blk: Fix a slient kernel panic

2016-07-22 Thread Minfei Huang
Ping, Any comment is appreciate. Thanks Minfei > On Jul 19, 2016, at 20:22, Cornelia Huck wrote: > > On Tue, 19 Jul 2016 12:32:42 +0800 > Minfei Huang wrote: > >> From: Minfei Huang >> >> We do a lot of memory allocation in function init_vq, and don't handle >> the allocation failure prope

Re: [PATCH] add u64 number parser

2016-07-22 Thread Bart Van Assche
On 07/22/16 17:23, James Smart wrote: + buf = kmalloc(len + 1, GFP_KERNEL); + if (!buf) + return -ENOMEM; + memcpy(buf, s->from, len); + buf[len] = '\0'; Hello James, Have you considered to combine the above kmalloc() and memcpy() calls into a single kasp

[PATCH v18 net-next 0/1] introduce Hyper-V VM Sockets(hv_sock)

2016-07-22 Thread Dexuan Cui
Hyper-V Sockets (hv_sock) supplies a byte-stream based communication mechanism between the host and the guest. It's somewhat like TCP over VMBus, but the transportation layer (VMBus) is much simpler than IP. With Hyper-V Sockets, applications between the host and the guest can talk to each other d

Re: [PATCH 1/3] Add a new field to struct shrinker

2016-07-22 Thread Tony Jones
On 07/20/2016 07:54 AM, Michal Hocko wrote: >> Michal, just to make sure I understand you correctly, do you mean that we >> could infer the names of the shrinkers by looking at the names of their >> callbacks? > > Yes, %ps can then be used for the name of the shrinker structure > (assuming it is

Re: [PATCH 2/5] mm: add per-zone lru list stat

2016-07-22 Thread Minchan Kim
Hi Fengguang, On Sat, Jul 23, 2016 at 08:45:15AM +0800, Fengguang Wu wrote: > Hi Minchan, > > We find duplicate /proc/vmstat lines showing up in linux-next, which > look related to this patch. > > >>--- a/mm/vmstat.c > >>+++ b/mm/vmstat.c > >>@@ -921,6 +921,11 @@ int fragmentation_index(struct z

ADS1118: hwmon or iio ? [was: Re: [RCF 1/3] hwmon: Add ads1118 driver]

2016-07-22 Thread Guenter Roeck
On 07/22/2016 07:39 AM, Joshua Clayton wrote: Greetings Guenter, Thank you for reviewing my submission. On 07/15/2016 06:40 PM, Guenter Roeck wrote: On 07/15/2016 05:18 PM, Joshua Clayton wrote: Add new driver for Texas Instruments ADS1118 and and ADS1018. This driver works with ADS1018, beca

Re: [PATCH] x86/boot: Reorganize and clean up the BIOS area reservation code

2016-07-22 Thread Linus Torvalds
On Fri, Jul 22, 2016 at 10:00 PM, Matt Fleming wrote: > > I suppose we could rewrite the page table mapping for those precious > <1MB regions to coerce the firmware into accessing different pages > instead of the 1:1 addresses and copy the regions elsewhere. Maybe. > That assumes we don't hit othe

Re: linux-next: build failure after merge of the nvdimm tree

2016-07-22 Thread Dan Williams
On Thu, Jul 21, 2016 at 11:13 PM, Stephen Rothwell wrote: > Hi Dan, > > After merging the nvdimm tree, today's linux-next build (powerpc > ppc64_defconfig) failed like this: > > In file included from drivers/md/dm.h:14:0, > from drivers/md/dm-uevent.c:27: > include/linux/device-m

Re: linux-next: Tree for Jul 22

2016-07-22 Thread Paul Gortmaker
ot > a modulo of the size of section > __mod_input___device_table=384. > Fix definition of struct input_device_id in mod_devicetable.h > make[2]: *** [__modpost] Error 1 > make[1]: *** [modules] Error 2 > make: *** [sub-make] Error 2 > > paul@builder:~/git/linux-head$ git

Re: [PATCH v2 16/17] x86/insn: remove pcommit

2016-07-22 Thread Dan Williams
On Fri, Jul 22, 2016 at 9:52 AM, Ingo Molnar wrote: > > * Dan Williams wrote: > >> On Tue, Jul 12, 2016 at 3:12 PM, Dan Williams >> wrote: >> > On Tue, Jul 12, 2016 at 7:57 AM, Peter Zijlstra >> > wrote: >> >> On Sat, Jul 09, 2016 at 08:25:54PM -0700, Dan Williams wrote: >> >>> The pcommit in

Re: [PATCH 2/5] mm: add per-zone lru list stat

2016-07-22 Thread Fengguang Wu
Hi Minchan, We find duplicate /proc/vmstat lines showing up in linux-next, which look related to this patch. --- a/mm/vmstat.c +++ b/mm/vmstat.c @@ -921,6 +921,11 @@ int fragmentation_index(struct zone *zone, unsigned int order) const char * const vmstat_text[] = { /* enum zone_stat_i

Re: [PATCH v4 00/12] mm: Hardened usercopy

2016-07-22 Thread Laura Abbott
On 07/20/2016 01:26 PM, Kees Cook wrote: Hi, [This is now in my kspp -next tree, though I'd really love to add some additional explicit Tested-bys, Reviewed-bys, or Acked-bys. If you've looked through any part of this or have done any testing, please consider sending an email with your "*-by:" l

Re: [PATCH 00/19] x86/dumpstack: rewrite x86 stack dump code

2016-07-22 Thread Andy Lutomirski
On Fri, Jul 22, 2016 at 5:22 PM, Linus Torvalds wrote: > > So without having yet looked at the code, I want people to understand > that to a very real degree, the stack tracer that the *oopsing* code > (ie what all the usual kernel fault handlers use) is very very special > code and needs to be ha

[PATCH] add u64 number parser

2016-07-22 Thread James Smart
add u64 number parser Will be used by the nvme-fabrics FC transport in parsing options Signed-off-by: James Smart --- include/linux/parser.h | 1 + lib/parser.c | 47 +++ 2 files changed, 48 insertions(+) diff --git a/include/linux/parser

Re: [PATCH 00/19] x86/dumpstack: rewrite x86 stack dump code

2016-07-22 Thread Linus Torvalds
On Fri, Jul 22, 2016 at 6:21 AM, Josh Poimboeuf wrote: > > Some if its advantages: > > - simplicity: no more callback sprawl and less code duplication. > > - flexibility: allows the caller to stop and inspect the stack state at > each step in the unwinding process. > > - modularity: the unwinder

[PATCH] f2fs: clean up codying style and redundancy

2016-07-22 Thread Jaegeuk Kim
This patch includes minor clean-ups. Signed-off-by: Jaegeuk Kim --- fs/f2fs/acl.h | 2 +- fs/f2fs/data.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/f2fs/acl.h b/fs/f2fs/acl.h index 997ca8e..b2334d1 100644 --- a/fs/f2fs/acl.h +++ b/fs/f2fs/acl.h @@ -37,7 +37,7 @@

Re: [PATCH 10/19] x86/dumpstack: add get_stack_info() interface

2016-07-22 Thread Andy Lutomirski
On Fri, Jul 22, 2016 at 4:54 PM, Josh Poimboeuf wrote: >> > +static bool in_hardirq_stack(unsigned long *stack, struct stack_info >> > *info, >> > +unsigned long *visit_mask) >> > +{ >> > + unsigned long *begin = (unsigned long >> > *)this_cpu_read(hardirq_stack

Re: [RFC PATCH 2/2] mm, mempool: do not throttle PF_LESS_THROTTLE tasks

2016-07-22 Thread NeilBrown
On Fri, Jul 22 2016, Michal Hocko wrote: > On Fri 22-07-16 18:46:57, Neil Brown wrote: >> On Mon, Jul 18 2016, Michal Hocko wrote: >> >> > From: Michal Hocko >> > >> > Mikulas has reported that a swap backed by dm-crypt doesn't work >> > properly because the swapout cannot make a sufficient forw

Re: [PATCH v4 1/2] bpf: Add bpf_probe_write BPF helper to be called in tracers (kprobes)

2016-07-22 Thread Sargun Dhillon
On Fri, Jul 22, 2016 at 11:53:52AM +0200, Daniel Borkmann wrote: > On 07/22/2016 04:14 AM, Alexei Starovoitov wrote: > >On Thu, Jul 21, 2016 at 06:09:17PM -0700, Sargun Dhillon wrote: > >>This allows user memory to be written to during the course of a kprobe. > >>It shouldn't be used to implement a

Re: [PATCH 19/19] x86/dumpstack: print any pt_regs found on the stack

2016-07-22 Thread Josh Poimboeuf
On Fri, Jul 22, 2016 at 04:39:00PM -0700, Andy Lutomirski wrote: > On Fri, Jul 22, 2016 at 4:30 PM, Josh Poimboeuf wrote: > > On Fri, Jul 22, 2016 at 04:18:04PM -0700, Andy Lutomirski wrote: > >> On Fri, Jul 22, 2016 at 3:20 PM, Josh Poimboeuf > >> wrote: > >> > On Fri, Jul 22, 2016 at 02:46:10P

Re: [PATCH v4 7/7] power_supply: make use of new strcpytoupper() function

2016-07-22 Thread Sebastian Reichel
Hi, On Fri, Jul 22, 2016 at 04:31:09PM -0700, Markus Mayer wrote: > Call strcpytoupper() rather than walking the string explicitly to > convert it to uppercase. > > Signed-off-by: Markus Mayer > --- > drivers/power/power_supply_sysfs.c | 13 + > 1 file changed, 5 insertions(+), 8 de

Re: [PATCH v4 4/7] staging: speakup: replace spk_strlwr() with strlcpytolower()

2016-07-22 Thread Chris Brannon
Markus Mayer writes: > After introducing generic strltolower() and strtolower(), spk_strlwr() > is no longer needed. > > Signed-off-by: Markus Mayer > Acked-by: Samuel Thibault Acked-by: Chris Brannon Haven't looked at much kernel code in a while, but this looks good. -- Chris

Re: [PATCH 10/19] x86/dumpstack: add get_stack_info() interface

2016-07-22 Thread Josh Poimboeuf
On Fri, Jul 22, 2016 at 04:26:46PM -0700, Andy Lutomirski wrote: > On Thu, Jul 21, 2016 at 2:21 PM, Josh Poimboeuf wrote: > > valid_stack_ptr() is buggy: it assumes that all stacks are of size > > THREAD_SIZE, which is not true for exception stacks. So the > > walk_stack() callbacks will need to

Re: [PATCH 10/19] x86/dumpstack: add get_stack_info() interface

2016-07-22 Thread Andy Lutomirski
On Fri, Jul 22, 2016 at 4:26 PM, Andy Lutomirski wrote: > On Thu, Jul 21, 2016 at 2:21 PM, Josh Poimboeuf wrote: >> valid_stack_ptr() is buggy: it assumes that all stacks are of size >> THREAD_SIZE, which is not true for exception stacks. So the >> walk_stack() callbacks will need to know the lo

Re: [PATCH] Revert "cpufreq: pcc-cpufreq: update default value of cpuinfo_transition_latency"

2016-07-22 Thread Viresh Kumar
On 23-07-16, 01:47, Rafael J. Wysocki wrote: > I'll apply the revert with a "Cc: stable" tag. That will work. > Question is what to do about the other drivers setting > cpuinfo.transition_latency to CPUFREQ_ETERNAL. Perhaps leave them as is unless someone comes and reports a problem, they don't

Re: [PATCH] Revert "cpufreq: pcc-cpufreq: update default value of cpuinfo_transition_latency"

2016-07-22 Thread Rafael J. Wysocki
On Sat, Jul 23, 2016 at 1:30 AM, Viresh Kumar wrote: > On 22-07-16, 23:46, Rafael J. Wysocki wrote: >> On Friday, July 22, 2016 02:28:52 PM Viresh Kumar wrote: >> > On 22-07-16, 23:31, Rafael J. Wysocki wrote: >> > > > cpufreq.c >> > > > >> > > > if (policy->governor->max_transition_latenc

[PATCH 1/1] EDAC, sb_edac: Fix channel reporting on Knights Landing

2016-07-22 Thread Lukasz Odzioba
On Intel Xeon Phi Knights Landing processor family the channels of memory controller have untypical arrangement - MC0 is mapped to CH3,4,5 and MC1 is mapped to CH0,1,2. This causes EDAC driver to report the channel name incorrectly. We missed this change earlier, so the code already contains simil

Re: [PATCH 19/19] x86/dumpstack: print any pt_regs found on the stack

2016-07-22 Thread Andy Lutomirski
On Fri, Jul 22, 2016 at 4:30 PM, Josh Poimboeuf wrote: > On Fri, Jul 22, 2016 at 04:18:04PM -0700, Andy Lutomirski wrote: >> On Fri, Jul 22, 2016 at 3:20 PM, Josh Poimboeuf wrote: >> > On Fri, Jul 22, 2016 at 02:46:10PM -0700, Andy Lutomirski wrote: >> >> On Fri, Jul 22, 2016 at 8:57 AM, Josh Poi

[git pull] Input updates for 4.7-rc7 (part 2)

2016-07-22 Thread Dmitry Torokhov
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git for-linus to receive a few more fixes for the input subsystem: - restore naming for tsc2005 touchscreens as some userspace match on it - fix out of bound access in legacy keyboard driver - fixup in

[PATCH v4 7/7] power_supply: make use of new strcpytoupper() function

2016-07-22 Thread Markus Mayer
Call strcpytoupper() rather than walking the string explicitly to convert it to uppercase. Signed-off-by: Markus Mayer --- drivers/power/power_supply_sysfs.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/drivers/power/power_supply_sysfs.c b/drivers/power/powe

[PATCH v4 6/7] drm/nouveau/fifo/gk104: make use of new strcpytoupper() function

2016-07-22 Thread Markus Mayer
Call strcpytoupper() rather than copying the string explicitly and then walking it to convert it to uppercase. Signed-off-by: Markus Mayer --- drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/eng

[PATCH v4 5/7] iscsi-target: replace iscsi_initiatorname_tolower() with strtolower()

2016-07-22 Thread Markus Mayer
After introducing generic strtolower(), iscsi_initiatorname_tolower() is no longer needed. Signed-off-by: Markus Mayer Acked-by: Nicholas Bellinger --- drivers/target/iscsi/iscsi_target_nego.c | 17 + 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/drivers/target/i

[PATCH v4 4/7] staging: speakup: replace spk_strlwr() with strlcpytolower()

2016-07-22 Thread Markus Mayer
After introducing generic strltolower() and strtolower(), spk_strlwr() is no longer needed. Signed-off-by: Markus Mayer Acked-by: Samuel Thibault --- drivers/staging/speakup/kobjects.c| 3 +-- drivers/staging/speakup/main.c| 3 ++- drivers/staging/speakup/speakup.h | 1 - dri

[PATCH v4 2/7] drm/nouveau/core: make use of new strlcpytolower() function

2016-07-22 Thread Markus Mayer
Call strlcpytolower() rather than copying the string explicitly and then walking it to convert it to lowercase. Signed-off-by: Markus Mayer --- The semantics of the new function has changed, so this patch has been updated since v2 to match the new strlcpy() semantics (no explicit NULL terminatin

[PATCH v4 3/7] ACPI / device_sysfs: make use of new strtolower() function

2016-07-22 Thread Markus Mayer
Call strtolower() rather than walking the string explicitly to convert it to lowercase. Signed-off-by: Markus Mayer Acked-by: Rafael J. Wysocki --- drivers/acpi/device_sysfs.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/acpi/device_sysfs.c b/drivers/acpi/devic

[PATCH v4 1/7] lib: string: add functions to case-convert strings

2016-07-22 Thread Markus Mayer
Add a collection of generic functions to convert strings to lowercase or uppercase. Changing the case of a string (with or without copying it first) seems to be a recurring requirement in the kernel that is currently being solved by several duplicated implementations doing the same thing. This cha

[PATCH v4 0/7] lib: string: add functions to case-convert strings

2016-07-22 Thread Markus Mayer
This series introduces a family of generic string case conversion functions. This kind of functionality is needed in several places in the kernel. Right now, everybody seems to be implementing their own copy of this functionality. Based on the discussion of the previous version of this series[1] a

Re: [PATCH] Revert "cpufreq: pcc-cpufreq: update default value of cpuinfo_transition_latency"

2016-07-22 Thread Viresh Kumar
On 22-07-16, 23:46, Rafael J. Wysocki wrote: > On Friday, July 22, 2016 02:28:52 PM Viresh Kumar wrote: > > On 22-07-16, 23:31, Rafael J. Wysocki wrote: > > > > cpufreq.c > > > > > > > > if (policy->governor->max_transition_latency && > > > > policy->cpuinfo.transition_latency

Re: [PATCH 19/19] x86/dumpstack: print any pt_regs found on the stack

2016-07-22 Thread Josh Poimboeuf
On Fri, Jul 22, 2016 at 04:18:04PM -0700, Andy Lutomirski wrote: > On Fri, Jul 22, 2016 at 3:20 PM, Josh Poimboeuf wrote: > > On Fri, Jul 22, 2016 at 02:46:10PM -0700, Andy Lutomirski wrote: > >> On Fri, Jul 22, 2016 at 8:57 AM, Josh Poimboeuf > >> wrote: > >> > On Thu, Jul 21, 2016 at 10:13:03P

Re: [PATCH 10/19] x86/dumpstack: add get_stack_info() interface

2016-07-22 Thread Andy Lutomirski
On Thu, Jul 21, 2016 at 2:21 PM, Josh Poimboeuf wrote: > valid_stack_ptr() is buggy: it assumes that all stacks are of size > THREAD_SIZE, which is not true for exception stacks. So the > walk_stack() callbacks will need to know the location of the beginning > of the stack as well as the end. > >

[PATCH v3 1/3] pmem: clarify a debug print in pmem_clear_poison

2016-07-22 Thread Vishal Verma
Prefix the sector number being cleared with a '0x' to make it clear that this is a hex value. Signed-off-by: Vishal Verma --- drivers/nvdimm/pmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nvdimm/pmem.c b/drivers/nvdimm/pmem.c index 7251b4b..9f75eb8 100644 ---

[PATCH v3 0/3] ARS rescanning triggered by latent errors or userspace

2016-07-22 Thread Vishal Verma
Changes in v3: - Add a missing sysfs_put (Dan) - Improve readability in an expression, making it (!x || !y) instead of !(x && y) (Dan) - Only show the 'scrub' attribute if ARS is supported (Linda) - For scrub_show(), indicate if a scrub is in progress (Dan) - Rebase to nvdimm-for-next + 2 patches

[PATCH v3 3/3] nfit: do an ARS scrub on hitting a latent media error

2016-07-22 Thread Vishal Verma
When a latent (unknown to 'badblocks') error is encountered, it will trigger a machine check exception. On a system with machine check recovery, this will only SIGBUS the process(es) which had the bad page mapped (as opposed to a kernel panic on platforms without machine check recovery features). I

[PATCH v3 2/3] nfit, libnvdimm: allow an ARS scrub to be triggered on demand

2016-07-22 Thread Vishal Verma
Normally, an ARS (Address Range Scrub) only happens at boot/initialization time. There can however arise situations where a bus-wide rescan is needed - notably, in the case of discovering a latent media error, we should do a full rescan to figure out what other sectors are bad, and thus potentially

Re: [PATCH 19/19] x86/dumpstack: print any pt_regs found on the stack

2016-07-22 Thread Andy Lutomirski
On Fri, Jul 22, 2016 at 3:20 PM, Josh Poimboeuf wrote: > On Fri, Jul 22, 2016 at 02:46:10PM -0700, Andy Lutomirski wrote: >> On Fri, Jul 22, 2016 at 8:57 AM, Josh Poimboeuf wrote: >> > On Thu, Jul 21, 2016 at 10:13:03PM -0700, Andy Lutomirski wrote: >> >> On Thu, Jul 21, 2016 at 8:30 PM, Josh Poi

Re: [PATCH v6 12/22] sh: Add PCI host bridge driver for SH7751

2016-07-22 Thread Bjorn Helgaas
On Mon, Jul 04, 2016 at 01:46:32AM +0900, Yoshinori Sato wrote: > This is an alternative SH7751 PCI driver. > Existing driver (arch/sh/drivers/pci/pci-sh7751) uses SH specific interface. > But this driver uses common PCI interface. It is more modern and generic. I'd like some details here about wh

Re: [patch 4 15/22] timer: Remove slack leftovers

2016-07-22 Thread Jason A. Donenfeld
On Fri, Jul 22, 2016 at 5:18 PM, Jason A. Donenfeld wrote: > Hi Thomas, > > On Fri, Jul 22, 2016 at 3:04 PM, Thomas Gleixner wrote: >> >> Well, this really depends on the TIMEOUT value you have. The code now does >> implicit batching for larger timeouts by queueing the timers into wheels with >>

mmotm 2016-07-22-15-51 uploaded

2016-07-22 Thread akpm
The mm-of-the-moment snapshot 2016-07-22-15-51 has been uploaded to http://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: http://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You wi

Re: [PATCH] pinctrl: fix pincontrol definition for marvell

2016-07-22 Thread Andreas Klinger
Sebastian Hesselbarth schrieb am Fri, 22. Jul 18:59: > On 16.07.2016 17:07, Andreas Klinger wrote: > >On Marvell mv88f6180 with pin control driver one can not use multi > >purpose pins 35 through 44. > >I'm using this controller on an embedded board and i found that the > >pin multiplexing is not

[tip:smp/hotplug 3/4] enlighten.c:undefined reference to `xen_smp_intr_free'

2016-07-22 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git smp/hotplug head: 484afa6961eb9409ea120b38397e6883696d8aa6 commit: 4c90758355117d2b6343ec6d0d37e10842ede11f [3/4] xen/x86: Move irq allocation from Xen smp_op.cpu_up() config: x86_64-randconfig-s0-07230529 (attached as .config)

Re: [PATCH 2/2] hwmon: adt7411: add external thermal diode support

2016-07-22 Thread Guenter Roeck
On Fri, Jul 22, 2016 at 06:10:55PM +0200, Michael Walle wrote: > If the EXT_TDM bit is set and ain[12]_input will be switch to a temp2_input > attribute. ain -> in "will be switch" is odd. "If the EXT_TDM bit is set, the chip supports a second temperature sensor instead of two voltage sensors",

Re: [PATCH 1/2] hwmon: adt7411: set sane values for CFG1 and CFG3

2016-07-22 Thread Guenter Roeck
On Fri, Jul 22, 2016 at 06:10:54PM +0200, Michael Walle wrote: > According to the datasheet we have to set some bits as 0 and others as 1. > Make sure we do this for CFG1 and CFG3. > > Signed-off-by: Michael Walle > --- > drivers/hwmon/adt7411.c | 53 > ++

Re: [PATCH v7 2/2] PCI: Rockchip: Add Rockchip PCIe controller support

2016-07-22 Thread Brian Norris
Hi Shawn, On Mon, Jul 18, 2016 at 08:42:13AM +0800, Shawn Lin wrote: > This patch adds Rockchip PCIe controller support found > on RK3399 Soc platform. > > Signed-off-by: Shawn Lin > > --- > > Changes in v7: > - make it as a build-in driver > - improve gen1/2 training timeout checking > - only

Re: [PATCH 19/19] x86/dumpstack: print any pt_regs found on the stack

2016-07-22 Thread Josh Poimboeuf
On Fri, Jul 22, 2016 at 02:46:10PM -0700, Andy Lutomirski wrote: > On Fri, Jul 22, 2016 at 8:57 AM, Josh Poimboeuf wrote: > > On Thu, Jul 21, 2016 at 10:13:03PM -0700, Andy Lutomirski wrote: > >> On Thu, Jul 21, 2016 at 8:30 PM, Josh Poimboeuf > >> wrote: > >> > On Thu, Jul 21, 2016 at 03:32:32P

Re: [PATCH 3/3] xen-blkfront: dynamic configuration of per-vbd resources

2016-07-22 Thread Bob Liu
On 07/22/2016 07:45 PM, Roger Pau Monné wrote: > On Fri, Jul 22, 2016 at 05:43:32PM +0800, Bob Liu wrote: >> >> On 07/22/2016 05:34 PM, Roger Pau Monné wrote: >>> On Fri, Jul 22, 2016 at 04:17:48PM +0800, Bob Liu wrote: On 07/22/2016 03:45 PM, Roger Pau Monné wrote: > On Thu, Jul 21,

Re: [PATCH] genirq/msi: Make sure PCI MSIs are activated early

2016-07-22 Thread Bjorn Helgaas
On Wed, Jul 13, 2016 at 05:18:33PM +0100, Marc Zyngier wrote: > Bharat Kumar Gogada reported issues with the generic MSI code, > where the end-point ended up with garbage in its MSI configuration > (both for the vector and the message). > > It turns out that the two MSI paths in the kernel are doi

Re: [PATCH 00/14] PCI: trivial demodularization of builtin code

2016-07-22 Thread Bjorn Helgaas
On Sat, Jul 02, 2016 at 07:13:20PM -0400, Paul Gortmaker wrote: > Firstly, this group of commits was chosen for the fact that they don't > change anything even at a binary object file level ; they just replace > module_platform_driver with builtin_platform_driver, and remove some > MODULE_ tags tha

Re: [PATCH] PM-wakeup: Delete unnecessary checks before two function calls

2016-07-22 Thread Rafael J. Wysocki
On Friday, July 22, 2016 10:35:27 PM SF Markus Elfring wrote: > Am 28.06.2015 um 12:21 schrieb SF Markus Elfring: > > From: Markus Elfring > > Date: Sun, 28 Jun 2015 12:14:43 +0200 > > > > The functions dev_pm_disarm_wake_irq() and wakeup_source_unregister() test > > whether their argument is NUL

Re: [PATCH v2 00/10] userns: sysctl limits for namespaces

2016-07-22 Thread Kees Cook
On Fri, Jul 22, 2016 at 11:45 AM, Eric W. Biederman wrote: > Colin Walters writes: > >> On Thu, Jul 21, 2016, at 12:39 PM, Eric W. Biederman wrote: >>> >>> This patchset addresses two use cases: >>> - Implement a sane upper bound on the number of namespaces. >>> - Provide a way for sandboxes to l

  1   2   3   4   5   6   >