Re: [PATCH] [perf/core branch] perf coresight: Fix ARM builds caused by misplaced __printf

2017-06-19 Thread Mathieu Poirier
On 16 June 2017 at 13:59, Kim Phillips wrote: > Trailing __printf attributes work for function declarations, but not > definitions. This patch fixes arm32/64 builds by placing __printf > before the declarator. Otherwise this happens: > > arch/arm64/util/../../arm/util/cs-etm.c:586:1: error: attr

Re: [PATCH v3 1/2] tcp: md5: add an address prefix for key lookup

2017-06-19 Thread David Miller
From: Ivan Delalande Date: Thu, 15 Jun 2017 18:07:06 -0700 > This allows the keys used for TCP MD5 signature to be used for whole > range of addresses, specified with a prefix length, instead of only one > address as it currently is. > > Signed-off-by: Bob Gilligan > Signed-off-by: Eric Mowat

Re: [PATCH v3 2/2] tcp: md5: add TCP_MD5SIG_EXT socket option to set a key address prefix

2017-06-19 Thread David Miller
From: Ivan Delalande Date: Thu, 15 Jun 2017 18:07:07 -0700 > Replace first padding in the tcp_md5sig structure with a new flag field > and address prefix length so it can be specified when configuring a new > key for TCP MD5 signature. The tcpm_flags field will only be used if the > socket option

Re: [PATCH v2 8/9] amba: Export amba_bustype

2017-06-19 Thread Alex Williamson
On Mon, 19 Jun 2017 18:31:10 +0100 Russell King - ARM Linux wrote: > This patch on its own doesn't make much sense to me... any chance of > seeing the full series please? Hi Russell, Please find it here: https://lkml.org/lkml/2017/6/19/808 Patches 7 and 9: https://lkml.org/lkml/2017/6/19/813

Re: [RFC v2 1/2] swait: add idle variants which don't contribute to load average

2017-06-19 Thread Paul E. McKenney
On Fri, Jun 16, 2017 at 03:31:51PM -0500, Eric W. Biederman wrote: > "Luis R. Rodriguez" writes: > > > There are cases where folks are using an interruptible swait when > > using kthreads. This is rather confusing given you'd expect > > interruptible waits to be -- interruptible, but kthreads are

Re: [PATCH] ipmi: use rcu lock around call to intf->handlers->sender()

2017-06-19 Thread Corey Minyard
Ok, I have this queued for the next kernel, and in linux-next for testing. I added some information about when this was introduced. I also plan on sending this to stable, if that's ok with you. A note below On 06/19/2017 12:17 PM, Tony Camuso wrote: A vendor with a system having more than

Re: [PATCH v3 1/2] acpica: iort: Update SMMUv3 header for proximity domain mapping

2017-06-19 Thread Robin Murphy
On 08/06/17 05:44, Ganapatrao Kulkarni wrote: > ARM IORT specification (rev. C) has added two new fields to define > proximity domain for the SMMUv3 node in the IORT table. > > Proximity Domain Valid: > Set to 1 if the value provided in the Proximity Domain field is > valid. Set to 0 o

Re: [RFC v2 0/2] swait: add idle to make idle-hacks on kthreads explicit

2017-06-19 Thread Paul E. McKenney
On Fri, Jun 16, 2017 at 03:37:54PM -0500, Eric W. Biederman wrote: > "Paul E. McKenney" writes: > > > On Fri, Jun 16, 2017 at 01:26:19AM +0200, Luis R. Rodriguez wrote: > >> On Thu, Jun 15, 2017 at 02:57:17PM -0700, Paul E. McKenney wrote: > >> > On Thu, Jun 15, 2017 at 11:48:18AM -0700, Luis R.

Re: [RFC v2 10/12] powerpc: Read AMR only if pkey-violation caused the exception.

2017-06-19 Thread Ram Pai
On Mon, Jun 19, 2017 at 09:06:13PM +1000, Michael Ellerman wrote: > Ram Pai writes: > > > Signed-off-by: Ram Pai > > --- > > arch/powerpc/kernel/exceptions-64s.S | 16 ++-- > > 1 file changed, 10 insertions(+), 6 deletions(-) > > > > diff --git a/arch/powerpc/kernel/exceptions-64s.S

Re: [PATCH] PCI: Workaround AMD EHCI controller PME bug

2017-06-19 Thread Bjorn Helgaas
[+cc Alan] On Fri, Jun 16, 2017 at 05:40:54PM +0800, Kai-Heng Feng wrote: > On an AMD Carrizo laptop, when EHCI runtime PM is enabled, EHCI ports do > not respond to any device plugging event. > > As Alan Stern points out [1], the PME signal is not enabled when > controller is in D3, therefore it

Re: [PATCH] mm/hwpoison: Clear PRESENT bit for kernel 1:1 mappings of poison pages

2017-06-19 Thread Borislav Petkov
(drop stable from CC) You could use git's --suppress-cc= option when sending. On Fri, Jun 16, 2017 at 12:02:00PM -0700, Luck, Tony wrote: > From: Tony Luck > > Speculative processor accesses may reference any memory that has a > valid page table entry. While a speculative access won't generate

[PATCH 1/7] rwsem-spinlock: Add killable versions of __down_read()

2017-06-19 Thread Kirill Tkhai
Rename __down_read() in __down_read_common() and teach it to abort waiting in case of pending signals and killable state argument passed. Note, that we shouldn't wake anybody up in EINTR path, as: We check for signal_pending_state() after (!waiter.task) test and under spinlock. So, current task w

[PATCH 0/7] rwsem: Implement down_read_killable()

2017-06-19 Thread Kirill Tkhai
This series implements killable version of down_read() similar to already existing down_write_killable() function. Patches [1-2/7] add arch-independent low-level primitives for the both rwsem types. Patches [3-6/7] add arch-dependent primitives for the architectures, that use rwsem-xadd implementa

[PATCH 2/7] rwsem-spinlock: Add killable versions of rwsem_down_read_failed()

2017-06-19 Thread Kirill Tkhai
Rename rwsem_down_read_failed() in __rwsem_down_read_failed_common() and teach it to abort waiting in case of pending signals and killable state argument passed. Note, that we shouldn't wake anybody up in EINTR path, as: We check for (waiter.task) under spinlock before we go to out_nolock path. C

[PATCH 3/7] alpha: Add __down_read_killable()

2017-06-19 Thread Kirill Tkhai
Similar to __down_write_killable(), and read killable primitive. Signed-off-by: Kirill Tkhai --- arch/alpha/include/asm/rwsem.h | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/arch/alpha/include/asm/rwsem.h b/arch/alpha/include/asm/rwsem.h index 77873d0a

[PATCH 5/7] s390: Add __down_read_killable()

2017-06-19 Thread Kirill Tkhai
Similar to __down_write_killable(), and read killable primitive. Signed-off-by: Kirill Tkhai --- arch/s390/include/asm/rwsem.h | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/arch/s390/include/asm/rwsem.h b/arch/s390/include/asm/rwsem.h index 597e7e96b59

[PATCH 6/7] x86: Add __down_read_killable()

2017-06-19 Thread Kirill Tkhai
Similar to __down_write_killable(), add read killable primitive: extract current __down_read() code to macros and teach it to get different functions as slow_path argument: store ax register to ret, and add sp register and preserve its value. Add call_rwsem_down_read_failed_killable() assembly ent

[PATCH 7/7] rwsem: Add down_read_killable()

2017-06-19 Thread Kirill Tkhai
Similar to down_read() and down_write_killable(), add killable version of down_read(), based on __down_read_killable() function, added in previous patches. Signed-off-by: Kirill Tkhai --- include/asm-generic/rwsem.h |8 include/linux/rwsem.h |1 + kernel/locking/rwsem.c

[PATCH 4/7] ia64: Add __down_read_killable()

2017-06-19 Thread Kirill Tkhai
Similar to __down_write_killable(), and read killable primitive. Signed-off-by: Kirill Tkhai --- arch/ia64/include/asm/rwsem.h | 22 +++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/arch/ia64/include/asm/rwsem.h b/arch/ia64/include/asm/rwsem.h index 8fa98dd

Re: [PATCH] ata: pata_octeon_cf: make of_device_ids const.

2017-06-19 Thread Tejun Heo
On Fri, Jun 16, 2017 at 05:24:41PM +0530, Arvind Yadav wrote: > of_device_ids are not supposed to change at runtime. All functions > working with of_device_ids provided by work with const > of_device_ids. So mark the non-const structs as const. > > File size before: >text data bs

Re: [PATCH] ata: sata_rcar: make of_device_ids const.

2017-06-19 Thread Tejun Heo
On Fri, Jun 16, 2017 at 05:32:21PM +0530, Arvind Yadav wrote: > of_device_ids are not supposed to change at runtime. All functions > working with of_device_ids provided by work with const > of_device_ids. So mark the non-const structs as const. > > File size before: >text data bs

Re: [PATCH v2 1/2] ip_tunnel: fix ip tunnel lookup in collect_md mode

2017-06-19 Thread Pravin Shelar
On Mon, Jun 19, 2017 at 6:13 AM, 严海双 wrote: > > >> On 19 Jun 2017, at 1:43 PM, Pravin Shelar wrote: >> >> On Fri, Jun 16, 2017 at 8:27 PM, Haishuang Yan >> wrote: >>> In collect_md mode, if the tun dev is down, it still can call >>> ip_tunnel_rcv to receive on packets, and the rx statistics incr

Re: [PATCH v2] arm: eBPF JIT compiler

2017-06-19 Thread Daniel Borkmann
On 06/17/2017 02:23 PM, Shubham Bansal wrote: Hi Daniel, Not all of the helpers have 4 or less byte arguments only, there are a few with 8 byte arguments, so making that general assumption wouldn't work. I guess what could be done is that helpers have a flag in struct bpf_func_proto which indic

Re: [PATCH 2/2] Support perf script -F brstackoff,dso

2017-06-19 Thread Arnaldo Carvalho de Melo
Em Mon, Jun 19, 2017 at 09:38:25AM -0700, Mark Santaniello escreveu: > With the new "brstackoff,dso" we get what we need: a simple offset into a > specific dso/binary that uniquely identifies a branch/target: You forgot to update tools/perf/Documentation/perf-script.txt about 'brstackoff', I added

[PATCH v2] spi/bcm63xx: Fix checkpatch warnings

2017-06-19 Thread Aravind Thokala
This patch fixes the checkpatch.pl warnings on the driver file. Signed-off-by: Aravind Thokala Reviewed-by: Florian Fainelli --- Changes in v2: - change the subject of the patch as suggested by Florian. --- drivers/spi/spi-bcm63xx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) di

Re: [RFC PATCH 1/2] mm: introduce bmap_walk()

2017-06-19 Thread Al Viro
On Sun, Jun 18, 2017 at 09:51:52AM +0200, Christoph Hellwig wrote: > > That said, I think "please don't add a new bmap() > > user, use iomap instead" is a fair comment. You know me well enough to > > know that would be all it takes to redirect my work, I can do without > > the bluster. > > But th

Re: [PATCH NET] net/hns:bugfix of ethtool -t phy self_test

2017-06-19 Thread David Miller
From: Lin Yun Sheng Date: Fri, 16 Jun 2017 17:24:51 +0800 > This patch fixes the phy loopback self_test failed issue. when > Marvell Phy Module is loaded, it will powerdown fiber when doing > phy loopback self test, which cause phy loopback self_test fail. > > Signed-off-by: Lin Yun Sheng Appl

Re: [PATCH] fs: buffer: Modify alloc_page_buffers.

2017-06-19 Thread kbuild test robot
Hi Sean, [auto build test WARNING on linus/master] [also build test WARNING on v4.12-rc6 next-20170619] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Sean-Fu/fs-buffer-Modify

Re:Mr Madj,

2017-06-19 Thread Mr. Majd Firas
Good Day, May you permit me to express that I have interest to set up a Joint investment and partnership with you in your country.My names are Firas Majd,The Finance Manager,Cham Bank Syria.Aleppo Branch. In clarity, I am willing to enter into any possible discussion that will bring about a busines

Re: [PATCH] ipmi: use rcu lock around call to intf->handlers->sender()

2017-06-19 Thread Tony Camuso
On 06/19/2017 01:53 PM, Corey Minyard wrote: Ok, I have this queued for the next kernel, and in linux-next for testing. I added some information about when this was introduced. I also plan on sending this to stable, if that's ok with you. Yes, I've tested it for regressions, and it's fine.

Re: [PATCH 1/4] perf ftrace: Show error message when fails to set ftrace files

2017-06-19 Thread Arnaldo Carvalho de Melo
Em Sun, Jun 18, 2017 at 11:22:59PM +0900, Namhyung Kim escreveu: > It'd be better for debugging to show an error message when it fails to > setup ftrace for some reason. Thanks a lot, tested the series, excellent ftrace subset to support in 'perf ftrace'! :-) - Arnaldo > Cc: Steven Rostedt > C

Re: [PATCH v3 0/4] PTP support for macb driver

2017-06-19 Thread David Miller
From: Rafal Ozieblo Date: Fri, 16 Jun 2017 12:58:18 +0100 > This patch series adds support for PTP synchronization protocol > in Cadence GEM driver based on PHC. This doesn't apply cleanly to net-next, please respin.

Re: [PATCH v2 3/3] iio: adc: Fix polling of INA219 conversion ready flag

2017-06-19 Thread Brüns , Stefan
On Mittwoch, 24. Mai 2017 21:56:54 CEST Jonathan Cameron wrote: > On Wed, 24 May 2017 20:53:35 +0100 > > Jonathan Cameron wrote: > > On Wed, 24 May 2017 02:09:07 +0200 > > > > Stefan Brüns wrote: > > > While the INA226 has a conversion ready flag (CVRF) in the R/W > > > Mask/Enable > > > regist

Re: [PATCH v2 3/3] iio: adc: Fix polling of INA219 conversion ready flag

2017-06-19 Thread Andrew F. Davis
On 06/19/2017 01:24 PM, Brüns, Stefan wrote: > On Mittwoch, 24. Mai 2017 21:56:54 CEST Jonathan Cameron wrote: >> On Wed, 24 May 2017 20:53:35 +0100 >> >> Jonathan Cameron wrote: >>> On Wed, 24 May 2017 02:09:07 +0200 >>> >>> Stefan Brüns wrote: While the INA226 has a conversion ready flag

Re: sudden increase in load 4 -> 258 in few minutes with NVidia DNN training

2017-06-19 Thread Alan Cox
On Mon, 19 Jun 2017 12:11:34 +0200 David van Leeuwen wrote: > Hello, > > I have a system with two NVidia gtx 1080 graphics cards for deep > neural net training. Every once in a while (1x per hour--day) the > load of the system goes up from 4 to 258 in a matter of minutes, > without CPU utilizat

Re: [PATCH v4 1/5] perf config: Check error cases of {show_spec, set}_config()

2017-06-19 Thread Arnaldo Carvalho de Melo
Em Sat, Jun 17, 2017 at 12:46:37PM +0900, Taeung Song escreveu: > show_spec_config() and set_config() can be called multiple times > in the loop in cmd_config(). > However, The error cases of them wasn't checked, so fix it. Thanks, applied. > Reported-by: Arnaldo Carvalho de Melo > Cc: Jiri Ols

Re: linux-next: Tree for Jun 19 (x86: memcpy)

2017-06-19 Thread Randy Dunlap
On 06/19/2017 01:18 AM, Stephen Rothwell wrote: > Hi all, > > Changes since 20170616: > on i386: CC arch/x86/lib/memcpy_32.o ../arch/x86/lib/memcpy_32.c: In function 'memcpy': ../arch/x86/lib/memcpy_32.c:10:2: error: implicit declaration of function '__memcpy3d' [-Werror=implicit-functi

Re: [PATCH] usb: host: ehci: workaround PME bug on AMD EHCI controller

2017-06-19 Thread Alan Stern
On Mon, 19 Jun 2017, Bjorn Helgaas wrote: > > > Have you tested it with system suspend? That is, if you suspend the > > > whole computer, does plugging or unplugging a USB device cause the > > > system to wake up? > > > > No, the system will not wake up when plugging or unplugging. > > Tried sev

[PATCH 3.10 009/268] ext4: trim allocation requests to group size

2017-06-19 Thread Willy Tarreau
From: Jan Kara commit cd648b8a8fd5071d232242d5ee7ee3c0815776af upstream. If filesystem groups are artifically small (using parameter -g to mkfs.ext4), ext4_mb_normalize_request() can result in a request that is larger than a block group. Trim the request size to not confuse allocation code. Rep

[PATCH 3.10 003/268] ext4: use more strict checks for inodes_per_block on mount

2017-06-19 Thread Willy Tarreau
From: Theodore Ts'o commit cd6bb35bf7f6d7d922509bf50265383a0ceabe96 upstream. Centralize the checks for inodes_per_block and be more strict to make sure the inodes_per_block_group can't end up being zero. Signed-off-by: Theodore Ts'o Reviewed-by: Andreas Dilger Signed-off-by: Jiri Slaby Sign

[PATCH 3.10 018/268] md/raid5: limit request size according to implementation limits

2017-06-19 Thread Willy Tarreau
From: Konstantin Khlebnikov commit e8d7c33232e5fdfa761c3416539bc5b4acd12db5 upstream. Current implementation employ 16bit counter of active stripes in lower bits of bio->bi_phys_segments. If request is big enough to overflow this counter bio will be completed and freed too early. Fortunately th

[PATCH 3.10 085/268] drop_monitor: add missing call to genlmsg_end

2017-06-19 Thread Willy Tarreau
From: Reiter Wolfgang commit 4200462d88f47f3759bdf4705f87e207b0f5b2e4 upstream. Update nlmsg_len field with genlmsg_end to enable userspace processing using nlmsg_next helper. Also adds error handling. Signed-off-by: Reiter Wolfgang Acked-by: Neil Horman Signed-off-by: David S. Miller Signed

[PATCH 3.10 092/268] Input: kbtab - validate number of endpoints before using them

2017-06-19 Thread Willy Tarreau
From: Johan Hovold commit cb1b494663e037253337623bf1ef2df727883cb7 upstream. Make sure to check the number of endpoints to avoid dereferencing a NULL-pointer should a malicious device lack endpoints. Signed-off-by: Johan Hovold Signed-off-by: Dmitry Torokhov Signed-off-by: Willy Tarreau ---

[PATCH 3.10 164/268] KVM: VMX: use correct vmcs_read/write for guest segment selector/base

2017-06-19 Thread Willy Tarreau
From: Chao Peng commit 96794e4ed4d758272c486e1529e431efb7045265 upstream. Guest segment selector is 16 bit field and guest segment base is natural width field. Fix two incorrect invocations accordingly. Without this patch, build fails when aggressive inlining is used with ICC. [js] no vmx_dump

[PATCH 3.10 072/268] scsi: lpfc: Add shutdown method for kexec

2017-06-19 Thread Willy Tarreau
From: Anton Blanchard commit 85e8a23936ab3442de0c42da97d53b29f004ece1 upstream. We see lpfc devices regularly fail during kexec. Fix this by adding a shutdown method which mirrors the remove method. Signed-off-by: Anton Blanchard Reviewed-by: Mauricio Faria de Oliveira Tested-by: Mauricio Far

[PATCH 3.10 023/268] CIFS: Fix a possible memory corruption in push locks

2017-06-19 Thread Willy Tarreau
From: Pavel Shilovsky commit e3d240e9d505fc67f8f8735836df97a794bbd946 upstream. If maxBuf is not 0 but less than a size of SMB2 lock structure we can end up with a memory corruption. Signed-off-by: Pavel Shilovsky Signed-off-by: Willy Tarreau --- fs/cifs/smb2file.c | 2 +- 1 file changed, 1

[PATCH 3.10 014/268] block: allow WRITE_SAME commands with the SG_IO ioctl

2017-06-19 Thread Willy Tarreau
From: Mauricio Faria de Oliveira commit 25cdb64510644f3e854d502d69c73f21c6df88a9 upstream. The WRITE_SAME commands are not present in the blk_default_cmd_filter write_ok list, and thus are failed with -EPERM when the SG_IO ioctl() is executed without CAP_SYS_RAWIO capability (e.g., unprivileged

[PATCH 3.10 073/268] scsi: sr: Sanity check returned mode data

2017-06-19 Thread Willy Tarreau
From: "Martin K. Petersen" commit a00a7862513089f17209b732f230922f1942e0b9 upstream. Kefeng Wang discovered that old versions of the QEMU CD driver would return mangled mode data causing us to walk off the end of the buffer in an attempt to parse it. Sanity check the returned mode sense data. R

[PATCH 3.10 221/268] drm/vmwgfx: avoid calling vzalloc with a 0 size in vmw_get_cap_3d_ioctl()

2017-06-19 Thread Willy Tarreau
From: Murray McAllister commit 63774069d9527a1aeaa4aa20e929ef5e8e9ecc38 upstream. In vmw_get_cap_3d_ioctl(), a user can supply 0 for a size that is used in vzalloc(). This eventually calls dump_stack() (in warn_alloc()), which can leak useful addresses to dmesg. Add check to avoid a size of 0.

[PATCH 3.10 263/268] tun: read vnet_hdr_sz once

2017-06-19 Thread Willy Tarreau
From: Willem de Bruijn commit e1edab87faf6ca30cd137e0795bc73aa9a9a22ec upstream. When IFF_VNET_HDR is enabled, a virtio_net header must precede data. Data length is verified to be greater than or equal to expected header length tun->vnet_hdr_sz before copying. Read this value once and cache loc

[PATCH 3.10 133/268] nfs: Don't increment lock sequence ID after NFS4ERR_MOVED

2017-06-19 Thread Willy Tarreau
From: Chuck Lever commit 059aa734824165507c65fd30a55ff000afd14983 upstream. Xuan Qi reports that the Linux NFSv4 client failed to lock a file that was migrated. The steps he observed on the wire: 1. The client sent a LOCK request to the source server 2. The source server replied NFS4ERR_MOVED 3

[PATCH 3.10 112/268] apparmor: fix uninitialized lsm_audit member

2017-06-19 Thread Willy Tarreau
From: John Johansen commit b6b1b81b3afba922505b57f4c812bba022f7c4a9 upstream. BugLink: http://bugs.launchpad.net/bugs/1268727 The task field in the lsm_audit struct needs to be initialized if a change_hat fails, otherwise the following oops will occur BUG: unable to handle kernel paging reques

[PATCH 3.10 180/268] dccp: Unlock sock before calling sk_free()

2017-06-19 Thread Willy Tarreau
From: Arnaldo Carvalho de Melo commit d5afb6f9b6bb2c57bd0c05e76e12489dc0d037d9 upstream. The code where sk_clone() came from created a new socket and locked it, but then, on the error path didn't unlock it. This problem stayed there for a long while, till b0691c8ee7c2 ("net: Unlock sock before

[PATCH 3.10 056/268] usb: dwc3: gadget: delay unmap of bounced requests

2017-06-19 Thread Willy Tarreau
From: Janusz Dziedzic commit de288e36fe33f7e06fa272bc8e2f85aa386d99aa upstream. In the case of bounced ep0 requests, we must delay DMA operation until after ->complete() otherwise we might overwrite contents of req->buf. This caused problems with RNDIS gadget. Signed-off-by: Janusz Dziedzic S

[PATCH 3.10 187/268] give up on gcc ilog2() constant optimizations

2017-06-19 Thread Willy Tarreau
From: Linus Torvalds commit 474c90156c8dcc2fa815e6716cc9394d7930cb9c upstream. gcc-7 has an "optimization" pass that completely screws up, and generates the code expansion for the (impossible) case of calling ilog2() with a zero constant, even when the code gcc compiles does not actually have a

[PATCH 3.10 201/268] uvcvideo: uvc_scan_fallback() for webcams with broken chain

2017-06-19 Thread Willy Tarreau
From: Henrik Ingo commit e950267ab802c8558f1100eafd4087fd039ad634 upstream. Some devices have invalid baSourceID references, causing uvc_scan_chain() to fail, but if we just take the entities we can find and put them together in the most sensible chain we can think of, turns out they do work any

[PATCH 3.10 174/268] crypto: improve gcc optimization flags for serpent and wp512

2017-06-19 Thread Willy Tarreau
From: Arnd Bergmann commit 7d6e9105026788c497f0ab32fa16c82f4ab5ff61 upstream. An ancient gcc bug (first reported in 2003) has apparently resurfaced on MIPS, where kernelci.org reports an overly large stack frame in the whirlpool hash algorithm: crypto/wp512.c:987:1: warning: the frame size of 1

[PATCH 3.10 141/268] ARC: [arcompact] brown paper bag bug in unaligned access delay slot fixup

2017-06-19 Thread Willy Tarreau
From: Vineet Gupta commit a524c218bc94c705886a0e0fedeee45d1931da32 upstream. Reported-by: Jo-Philipp Wich Fixes: 9aed02feae57bf7 ("ARC: [arcompact] handle unaligned access delay slot") Cc: linux-kernel@vger.kernel.org Cc: linux-snps-...@lists.infradead.org Signed-off-by: Vineet Gupta Signed-of

[PATCH 3.10 179/268] net: don't call strlen() on the user buffer in packet_bind_spkt()

2017-06-19 Thread Willy Tarreau
From: Alexander Potapenko commit 540e2894f7905538740aaf122bd8e0548e1c34a4 upstream. KMSAN (KernelMemorySanitizer, a new error detection tool) reports use of uninitialized memory in packet_bind_spkt(): Acked-by: Eric Dumazet == BUG

[PATCH 3.10 265/268] ipv6: check raw payload size correctly in ioctl

2017-06-19 Thread Willy Tarreau
From: Jamie Bainbridge commit 105f5528b9bbaa08b526d3405a5bcd2ff0c953c8 upstream. In situations where an skb is paged, the transport header pointer and tail pointer can be the same because the skb contents are in frags. This results in ioctl(SIOCINQ/FIONREAD) incorrectly returning a length of 0

[PATCH 3.10 049/268] USB: serial: io_ti: bind to interface after fw download

2017-06-19 Thread Willy Tarreau
From: Johan Hovold commit e35d6d7c4e6532a89732cf4bace0e910ee684c88 upstream. Bind to the interface, but do not register any ports, after having downloaded the firmware. The device will still disconnect and re-enumerate, but this way we avoid an error messages from being logged as part of the pro

[PATCH 3.10 260/268] nfsd: check for oversized NFSv2/v3 arguments

2017-06-19 Thread Willy Tarreau
From: "J. Bruce Fields" commit e6838a29ecb484c97e4efef9429643b9851fba6e upstream. A client can append random data to the end of an NFSv2 or NFSv3 RPC call without our complaining; we'll just stop parsing at the end of the expected data and ignore the rest. Encoded arguments and replies are stor

[PATCH 3.10 007/268] jbd2: don't leak modified metadata buffers on an aborted journal

2017-06-19 Thread Willy Tarreau
From: Theodore Ts'o commit e112666b4959b25a8552d63bc564e1059be703e8 upstream. If the journal has been aborted, we shouldn't mark the underlying buffer head as dirty, since that will cause the metadata block to get modified. And if the journal has been aborted, we shouldn't allow this since it w

[PATCH 3.10 047/268] USB: gadgetfs: fix checks of wTotalLength in config descriptors

2017-06-19 Thread Willy Tarreau
From: Alan Stern commit 1c069b057dcf64fada952eaa868d35f02bb0cfc2 upstream. Andrey Konovalov's fuzz testing of gadgetfs showed that we should improve the driver's checks for valid configuration descriptors passed in by the user. In particular, the driver needs to verify that the wTotalLength val

[PATCH 3.10 145/268] packet: round up linear to header len

2017-06-19 Thread Willy Tarreau
From: Willem de Bruijn commit 57031eb794906eea4e1c7b31dc1e2429c0af0c66 upstream. Link layer protocols may unconditionally pull headers, as Ethernet does in eth_type_trans. Ensure that the entire link layer header always lies in the skb linear segment. tpacket_snd has such a check. Extend this to

[PATCH 3.10 074/268] scsi: sd: Fix capacity calculation with 32-bit sector_t

2017-06-19 Thread Willy Tarreau
From: "Martin K. Petersen" commit 7c856152cb92f8eee2df29ef325a1b1f43161aff upstream. We previously made sure that the reported disk capacity was less than 0x blocks when the kernel was not compiled with large sector_t support (CONFIG_LBDAF). However, this check assumed that the capacity

[PATCH 3.10 099/268] vme: Fix wrong pointer utilization in ca91cx42_slave_get

2017-06-19 Thread Willy Tarreau
From: Augusto Mecking Caringi commit c8a6a09c1c617402cc9254b2bc8da359a0347d75 upstream. In ca91cx42_slave_get function, the value pointed by vme_base pointer is set through: *vme_base = ioread32(bridge->base + CA91CX42_VSI_BS[i]); So it must be dereferenced to be used in calculation of pci_bas

[PATCH 3.10 034/268] can: usb_8dev: Fix memory leak of priv->cmd_msg_buffer

2017-06-19 Thread Willy Tarreau
From: Marc Kleine-Budde commit 7c42631376306fb3f34d51fda546b50a9b6dd6ec upstream. The priv->cmd_msg_buffer is allocated in the probe function, but never kfree()ed. This patch converts the kzalloc() to resource-managed kzalloc. Signed-off-by: Marc Kleine-Budde Signed-off-by: Willy Tarreau ---

[PATCH 3.10 185/268] futex: Fix potential use-after-free in FUTEX_REQUEUE_PI

2017-06-19 Thread Willy Tarreau
From: Peter Zijlstra commit c236c8e95a3d395b0494e7108f0d41cf36ec107c upstream. While working on the futex code, I stumbled over this potential use-after-free scenario. Dmitry triggered it later with syzkaller. pi_mutex is a pointer into pi_state, which we drop the reference on in unqueue_me_pi(

[PATCH 3.10 113/268] apparmor: exec should not be returning ENOENT when it denies

2017-06-19 Thread Willy Tarreau
From: John Johansen commit 9049a7922124d843a2cd26a02b1d00a17596ec0c upstream. The current behavior is confusing as it causes exec failures to report the executable is missing instead of identifying that apparmor caused the failure. Signed-off-by: John Johansen Acked-by: Seth Arnold Signed-off

[PATCH 3.10 211/268] ACPI: Fix incompatibility with mcount-based function graph tracing

2017-06-19 Thread Willy Tarreau
From: Josh Poimboeuf commit 61b79e16c68d703dde58c25d3935d67210b7d71b upstream. Paul Menzel reported a warning: WARNING: CPU: 0 PID: 774 at /build/linux-ROBWaj/linux-4.9.13/kernel/trace/trace_functions_graph.c:233 ftrace_return_to_handler+0x1aa/0x1e0 Bad frame pointer: expected f6919d98, r

[PATCH 3.10 267/268] x86/mm/32: Enable full randomization on i386 and X86_32

2017-06-19 Thread Willy Tarreau
From: Hector Marco-Gisbert commit 8b8addf891de8a00e4d39fc32f93f7c5eb8feceb upstream. Currently on i386 and on X86_64 when emulating X86_32 in legacy mode, only the stack and the executable are randomized but not other mmapped files (libraries, vDSO, etc.). This patch enables randomization for th

[PATCH 3.10 205/268] c6x/ptrace: Remove useless PTRACE_SETREGSET implementation

2017-06-19 Thread Willy Tarreau
From: Dave Martin commit fb411b837b587a32046dc4f369acb93a10b1def8 upstream. gpr_set won't work correctly and can never have been tested, and the correct behaviour is not clear due to the endianness-dependent task layout. So, just remove it. The core code will now return -EOPNOTSUPPORT when try

[PATCH 3.10 038/268] ALSA: timer: Reject user params with too small ticks

2017-06-19 Thread Willy Tarreau
From: Takashi Iwai commit 71321eb3f2d0df4e6c327e0b936eec4458a12054 upstream. When a user sets a too small ticks with a fine-grained timer like hrtimer, the kernel tries to fire up the timer irq too frequently. This may lead to the condensed locks, eventually the kernel spinlock lockup with warni

[PATCH 3.10 125/268] move the call of __d_drop(anon) into __d_materialise_unique(dentry, anon)

2017-06-19 Thread Willy Tarreau
From: Al Viro commit 6f18493e541c690169c3b1479d47d95f624161cf upstream. and lock the right list there Signed-off-by: Al Viro Acked-by: NeilBrown Signed-off-by: Jiri Slaby Signed-off-by: Willy Tarreau --- fs/dcache.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/

[PATCH 3.10 131/268] ARC: [arcompact] handle unaligned access delay slot corner case

2017-06-19 Thread Willy Tarreau
From: Vineet Gupta commit 9aed02feae57bf7a40cb04ea0e3017cb7a998db4 upstream. After emulating an unaligned access in delay slot of a branch, we pretend as the delay slot never happened - so return back to actual branch target (or next PC if branch was not taken). Curently we did this by handling

[PATCH 3.10 235/268] char: lack of bool string made CONFIG_DEVPORT always on

2017-06-19 Thread Willy Tarreau
From: Max Bires commit f2cfa58b136e4b06a9b9db7af5ef62fbb5992f62 upstream. Without a bool string present, using "# CONFIG_DEVPORT is not set" in defconfig files would not actually unset devport. This esnured that /dev/port was always on, but there are reasons a user may wish to disable it (smalle

[PATCH 3.10 218/268] HID: i2c-hid: Add sleep between POWER ON and RESET

2017-06-19 Thread Willy Tarreau
From: Brendan McGrath commit a89af4abdf9b353cdd6f61afc0eaaac403304873 upstream. Support for the Asus Touchpad was recently added. It turns out this device can fail initialisation (and become unusable) when the RESET command is sent too soon after the POWER ON command. Unfortunately the i2c-hid

[PATCH 3.10 013/268] block: fix use-after-free in sys_ioprio_get()

2017-06-19 Thread Willy Tarreau
From: Omar Sandoval commit 8ba8682107ee2ca3347354e018865d8e1967c5f4 upstream. get_task_ioprio() accesses the task->io_context without holding the task lock and thus can race with exit_io_context(), leading to a use-after-free. The reproducer below hits this within a few seconds on my 4-core QEMU

[PATCH 3.10 236/268] platform/x86: acer-wmi: setup accelerometer when machine has appropriate notify event

2017-06-19 Thread Willy Tarreau
From: Chun-Yi Lee commit 98d610c3739ac354319a6590b915f4624d9151e6 upstream. The accelerometer event relies on the ACERWMID_EVENT_GUID notify. So, this patch changes the codes to setup accelerometer input device when detected ACERWMID_EVENT_GUID. It avoids that the accel input device created on e

[PATCH 3.10 120/268] apparmor: fix module parameters can be changed after policy is locked

2017-06-19 Thread Willy Tarreau
From: John Johansen commit 58acf9d911c8831156634a44d0b022d683e1e50c upstream. the policy_lock parameter is a one way switch that prevents policy from being further modified. Unfortunately some of the module parameters can effectively modify policy by turning off enforcement. split policy_admin_

[PATCH 3.10 041/268] ALSA: seq: Fix race during FIFO resize

2017-06-19 Thread Willy Tarreau
From: Takashi Iwai commit 2d7d54002e396c180db0c800c1046f0a3c471597 upstream. When a new event is queued while processing to resize the FIFO in snd_seq_fifo_clear(), it may lead to a use-after-free, as the old pool that is being queued gets removed. For avoiding this race, we need to close the p

[PATCH 3.10 226/268] metag/usercopy: Zero rest of buffer from copy_from_user

2017-06-19 Thread Willy Tarreau
From: James Hogan commit 563ddc1076109f2b3f88e6d355eab7b6fd4662cb upstream. Currently we try to zero the destination for a failed read from userland in fixup code in the usercopy.c macros. The rest of the destination buffer is then zeroed from __copy_user_zeroing(), which is used for both copy_f

[PATCH 3.10 027/268] ocfs2: fix crash caused by stale lvb with fsdlm plugin

2017-06-19 Thread Willy Tarreau
From: Eric Ren commit e7ee2c089e94067d68475990bdeed211c8852917 upstream. The crash happens rather often when we reset some cluster nodes while nodes contend fiercely to do truncate and append. The crash backtrace is below: dlm: C21CBDA5E0774F4BA5A9D4F317717495: dlm_recover_grant 1 locks on

[PATCH 3.10 250/268] tty: nozomi: avoid a harmless gcc warning

2017-06-19 Thread Willy Tarreau
From: Arnd Bergmann commit a4f642a8a3c2838ad09fe8313d45db46600e1478 upstream. The nozomi wireless data driver has its own helper function to transfer data from a FIFO, doing an extra byte swap on big-endian architectures, presumably to bring the data back into byte-serial order after readw() or

[PATCH 3.10 152/268] rtlwifi: rtl_usb: Fix for URB leaking when doing ifconfig up/down

2017-06-19 Thread Willy Tarreau
From: Michael Schenk commit 575ddce0507789bf9830d089557d2199d2f91865 upstream. In the function rtl_usb_start we pre-allocate a certain number of urbs for RX path but they will not be freed when calling rtl_usb_stop. This results in leaking urbs when doing ifconfig up and down. Eventually, the sy

[PATCH 3.10 251/268] hostap: avoid uninitialized variable use in hfa384x_get_rid

2017-06-19 Thread Willy Tarreau
From: Arnd Bergmann commit 48dc5fb3ba53b20418de8514700f63d88c5de3a3 upstream. The driver reads a value from hfa384x_from_bap(), which may fail, and then assigns the value to a local variable. gcc detects that in in the failure case, the 'rlen' variable now contains uninitialized data: In file i

[PATCH 3.10 095/268] Input: mpr121 - handle multiple bits change of status register

2017-06-19 Thread Willy Tarreau
From: Akinobu Mita commit 08fea55e37f58371bffc5336a59e55d1f155955a upstream. This driver reports input events on their interrupts which are triggered by the sensor's status register changes. But only single bit change is reported in the interrupt handler. So if there are multiple bits are chan

[PATCH 3.10 192/268] Drivers: hv: balloon: don't crash when memory is added in non-sorted order

2017-06-19 Thread Willy Tarreau
From: Vitaly Kuznetsov commit 77c0c9735bc0ba5898e637a3a20d6bcb50e3f67d upstream. When we iterate through all HA regions in handle_pg_range() we have an assumption that all these regions are sorted in the list and the 'start_pfn >= has->end_pfn' check is enough to find the proper region. Unfortun

Re: linux-next: manual merge of the uuid tree with the arm64 tree

2017-06-19 Thread Baicar, Tyler
On 6/19/2017 4:22 AM, Will Deacon wrote: On Mon, Jun 19, 2017 at 01:06:30PM +0300, Andy Shevchenko wrote: On Mon, 2017-06-19 at 10:19 +0100, Will Deacon wrote: Hi Stephen, Christoph, Tyler, On Fri, Jun 16, 2017 at 03:21:36PM +1000, Stephen Rothwell wrote: Apologies for this: I've just dropped t

Re: [PATCH] [perf/core branch] perf coresight: Fix ARM builds caused by misplaced __printf

2017-06-19 Thread Arnaldo Carvalho de Melo
Em Mon, Jun 19, 2017 at 11:51:20AM -0600, Mathieu Poirier escreveu: > On 16 June 2017 at 13:59, Kim Phillips wrote: > > -static int cs_device__print_file(const char *name, const char *fmt, ...) > > __printf(2, 3) > > +static int __printf(2, 3) cs_device__print_file(const char *name, const > > ch

Re: [PATCH] eeprom: fix Kconfig typo (swtich)

2017-06-19 Thread Uwe Kleine-König
Hello Jan, On Mon, Jun 19, 2017 at 03:46:10PM +0200, Jan Luebbe wrote: > --- > drivers/misc/eeprom/Kconfig | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/misc/eeprom/Kconfig b/drivers/misc/eeprom/Kconfig > index de58762097c4..d1c8cd5b33e2 100644 > --- a/driv

[GIT PULL] NTB bug fixes for v4.12

2017-06-19 Thread Jon Mason
Hello Linus, Here are a few NTB bug fixes for 4.12. Please consider pulling them. Thanks, Jon The following changes since commit 41f1830f5a7af77cf5c86359aba3cbd706687e52: Linux 4.12-rc6 (2017-06-19 22:19:37 +0800) are available in the git repository at: git://github.com/jonmason/ntb tag

[PATCH 3.10 132/268] parisc: Don't use BITS_PER_LONG in userspace-exported swab.h header

2017-06-19 Thread Willy Tarreau
From: Helge Deller commit 2ad5d52d42810bed95100a3d912679d8864421ec upstream. In swab.h the "#if BITS_PER_LONG > 32" breaks compiling userspace programs if BITS_PER_LONG is #defined by userspace with the sizeof() compiler builtin. Solve this problem by using __BITS_PER_LONG instead. Since we no

[PATCH 3.10 173/268] xhci: fix 10 second timeout on removal of PCI hotpluggable xhci controllers

2017-06-19 Thread Willy Tarreau
From: Mathias Nyman commit 98d74f9ceaefc2b6c4a6440050163a83be0abede upstream. PCI hotpluggable xhci controllers such as some Alpine Ridge solutions will remove the xhci controller from the PCI bus when the last USB device is disconnected. Add a flag to indicate that the host is being removed to

Re: [REGRESSION] Touchpad failure after e7348396c6d5 ("Input: ALPS - fix V8+ protocol handling (73 03 28)")

2017-06-19 Thread Paul Donohue
I get the same results as you - x_max and y_max affect cursor speed, and x_res and y_res seem to have no effect. I can't seem to come up with any values that cause intermittent cursor issues on one side of the touchpad. Both max and res do get passed up to the X driver, and I do see references t

[PATCH 0/2] ALSA: add const to snd_ratnum structures

2017-06-19 Thread Bhumika Goyal
Declare snd_ratnum structures as const as their reference is only stored in the rate field of a snd_pcm_hw_constraint_ratnums structure. This field is of type const, so snd_ratnum structures can be made const. Bhumika Goyal (2): ALSA: sound/isa: constify snd_ratnum structures ALSA: sound/pci:

[PATCH 1/2] ALSA: sound/isa: constify snd_ratnum structures

2017-06-19 Thread Bhumika Goyal
Declare snd_ratnum structures as const as their reference is only stored in the rate field of a snd_pcm_hw_constraint_ratnums structure. This field is of type const, so snd_ratnum structures can be made const. Signed-off-by: Bhumika Goyal --- sound/isa/gus/gus_pcm.c | 2 +- sound/isa/sb/sb8_main

[PATCH 2/2] ALSA: sound/pci: add const to snd_ratnum structures

2017-06-19 Thread Bhumika Goyal
Declare snd_ratnum structures as const as their reference is only stored in the rate field of a snd_pcm_hw_constraint_ratnums structure. This field is of type const, so snd_ratnum structures can be made const. Signed-off-by: Bhumika Goyal --- sound/pci/bt87x.c | 2 +- sound/pci/ens1370.c | 4 +

[PATCH 3.10 046/268] USB: gadgetfs: fix use-after-free bug

2017-06-19 Thread Willy Tarreau
From: Alan Stern commit add333a81a16abbd4f106266a2553677a165725f upstream. Andrey Konovalov reports that fuzz testing with syzkaller causes a KASAN use-after-free bug report in gadgetfs: BUG: KASAN: use-after-free in gadgetfs_setup+0x208a/0x20e0 at addr 88003dfe5bf2 Read of size 2 by task

<    5   6   7   8   9   10   11   12   13   14   >