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

2017-03-06 Thread Laura Abbott
On 03/06/2017 07:07 PM, Stephen Rothwell wrote: > Hi Andrew, > > After merging the akpm tree, today's linux-next build (powerpc > ppc64_defconfig) failed like this: > > In file included from include/net/sock.h:64:0, > from include/linux/tcp.h:23, > from include/l

Re: linux-next: manual merge of the sunxi tree with the drm-misc tree

2017-03-06 Thread Chen-Yu Tsai
On Tue, Mar 7, 2017 at 7:59 AM, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the sunxi tree got a conflict in: > > drivers/gpu/drm/sun4i/sun4i_drv.c > > between commit: > > 50480a78e282 ("drm: sun4i: use vblank hooks in struct drm_crtc_funcs") > > from the drm-misc tree an

Re: [PATCH] pciehp: Fix race condition handling surprise link-down

2017-03-06 Thread Bjorn Helgaas
On Fri, Feb 03, 2017 at 10:51:04AM -0600, Bjorn Helgaas wrote: > On Thu, Feb 02, 2017 at 10:00:53PM -0800, Raj, Ashok wrote: > > ... > > Just to summarize, we only queue the POWEROFF due to surprise link down > > and another POWERON due to link becoming back up. The transient link-down > > events

Re: [linux-sunxi] [PATCH v3 0/5] Add dual-role OTG support for Allwinner H3

2017-03-06 Thread Ondřej Jirman
Hi Icenowy, when I was trying to add OTG support I found an issue with powercycling. When I have USB cable connecting PC and the OTG port on the SBC, when the board enables the vbus, it would become impossible to power cycle the board after poweroff. The reason being that when vbus is enabled, the

Re: [PATCH] ASoC: Intel: Skylake: fix spelling mistake: "allocationf" -> "allocation"

2017-03-06 Thread Vinod Koul
On Tue, Feb 21, 2017 at 06:50:05PM +, Colin King wrote: > From: Colin Ian King > > Trivial fix to spelling mistake in dev_err message. Acked-by: Vinod Koul -- ~Vinod

linux-next: build failure after merge of the sunxi tree

2017-03-06 Thread Stephen Rothwell
Hi all, After merging the sunxi tree, today's linux-next build (arm multi_v7_defconfig) failed like this: drivers/gpu/drm/sun4i/sun4i_crtc.c: In function 'sun4i_crtc_enable_vblank': drivers/gpu/drm/sun4i/sun4i_crtc.c:109:31: error: 'struct sun4i_crtc' has no member named 'drv' struct sun4i_drv

[PATCH 09/18] pstore: Replace arguments for read() API

2017-03-06 Thread Kees Cook
The argument list for the pstore_read() interface is unwieldy. This changes passes the new struct pstore_record instead. The erst backend was already doing something similar internally. Signed-off-by: Kees Cook --- arch/powerpc/kernel/nvram_64.c| 61 +++--- drivers/acpi/apei

Re: [PATCH net-next 1/5] ldmvsw: better use of link up and down on ldom vswitch

2017-03-06 Thread Shannon Nelson
On 3/6/2017 3:53 PM, Florian Fainelli wrote: On 03/06/2017 03:15 PM, Shannon Nelson wrote: When an ldom VM is bound, the network vswitch infrastructure is set up for it, but was being forced 'UP' by the userland switch configuration script. When 'UP' but not actually connected to a running VM,

[PATCH] irqchip/gic-v3: Fix GICD_CTLR_ARE_NS bit field

2017-03-06 Thread Alim Akhtar
From: Alim Akhtar As per GICv3 Architecture specification 8.9.4 field descriptions, GICD_CTLR_ARE_NS is bit[5]. This patch correct the same. Fixes: 021f6537 ("irqchip: gic-v3: Initial support for GICv3") Cc: sta...@vger.kernel.org Signed-off-by: Alim Akhtar --- include/linux/irqchip/arm-gic-v3

Re: [PATCH 1/2] device: Stop requiring that struct device is embedded in struct pci_dev

2017-03-06 Thread Greg Kroah-Hartman
On Mon, Mar 06, 2017 at 04:35:48PM -0800, Bart Van Assche wrote: > The dma mapping operations of several architectures and also of > several I/O MMU implementations need to translate a struct > device pointer into a struct pci_dev pointer. This translation > is performed by to_pci_dev(). That macro

Re: netlink: GPF in netlink_unicast

2017-03-06 Thread Richard Guy Briggs
On 2017-03-06 10:10, Cong Wang wrote: > On Mon, Mar 6, 2017 at 2:54 AM, Dmitry Vyukov wrote: > > Hello, > > > > I've got the following crash while running syzkaller fuzzer on > > net-next/8d70eeb84ab277377c017af6a21d0a337025dede: > > > > kasan: GPF could be caused by NULL-ptr deref or user memory

Re: [PATCH] xfs: remove kmem_zalloc_greedy

2017-03-06 Thread Christoph Hellwig
On Tue, Mar 07, 2017 at 11:54:20AM +1100, Dave Chinner wrote: > > Or maybe I've misunderstood, and you're asking if we should try > > kmem_zalloc(4 pages), then kmem_zalloc(1 page), and only then switch to > > the __vmalloc calls? > > Just call kmem_zalloc_large() for 4 pages without a fallback on

RE: [PATCH 1/2] device: Stop requiring that struct device is embedded in struct pci_dev

2017-03-06 Thread Parav Pandit
Hi Greg, > -Original Message- > From: Greg Kroah-Hartman [mailto:gre...@linuxfoundation.org] > Sent: Monday, March 6, 2017 10:53 PM > To: Bart Van Assche > Cc: Doug Ledford ; Sebastian Ott > ; Parav Pandit ; linux- > r...@vger.kernel.org; linux-kernel@vger.kernel.org; Bjorn Helgaas > ; Be

Re: [PATCH 1/2] device: Stop requiring that struct device is embedded in struct pci_dev

2017-03-06 Thread Bart Van Assche
On Tue, 2017-03-07 at 05:08 +, Parav Pandit wrote: > I replied with pseudo code in previous reply to Bart to bring back dma_device > member in the ib_device. > dma_device member was already present in near past of few weeks. > It should be able to work using it without performance impact and w

[lkp-robot] [block] 165a5e22fa: BUG_kmalloc-#(Not_tainted):Poison_overwritten

2017-03-06 Thread kernel test robot
FYI, we noticed the following commit: commit: 165a5e22fafb127ecb5914e12e8c32a1f0d3f820 ("block: Move bdi_unregister() to del_gendisk()") https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master in testcase: trinity with following parameters: runtime: 300s test-description

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

2017-03-06 Thread Greg KH
tomisp2/./atomisp_compat.h:27:27: fatal > error: linux/atomisp.h: No such file or directory > > Caused by commit > > a49d25364dfb ("staging/atomisp: Add support for the Intel IPU v2") > > or maybe some of the followups? > > I have used the staging tree from n

Re: [tip:x86/asm] x86/asm: Optimize clear_page()

2017-03-06 Thread Yinghai Lu
On Wed, Mar 1, 2017 at 1:47 AM, tip-bot for Borislav Petkov wrote: > Commit-ID: 49ca7bb328c630dd43be626534b49e19513296fd > Gitweb: http://git.kernel.org/tip/49ca7bb328c630dd43be626534b49e19513296fd > Author: Borislav Petkov > AuthorDate: Thu, 9 Feb 2017 01:34:49 +0100 > Committer: Ingo

[PATCH 5/5] staging/lustre: Use generic range rwlock

2017-03-06 Thread Davidlohr Bueso
This replaces the in-house version, which is also derived from Jan's interval tree implementation. Cc: oleg.dro...@intel.com Cc: andreas.dil...@intel.com Cc: jsimm...@infradead.org Cc: lustre-de...@lists.lustre.org Signed-off-by: Davidlohr Bueso --- XXX: compile tested only. In house uses 'ulong

Re: + mm-reclaim-madv_free-pages.patch added to -mm tree

2017-03-06 Thread Minchan Kim
On Mon, Mar 06, 2017 at 10:49:06AM -0500, Johannes Weiner wrote: > On Mon, Mar 06, 2017 at 12:03:44PM +0900, Minchan Kim wrote: > > On Fri, Mar 03, 2017 at 10:18:51AM -0500, Johannes Weiner wrote: > > > On Fri, Mar 03, 2017 at 11:52:37AM +0900, Minchan Kim wrote: > > > > On Tue, Feb 28, 2017 at 04:

[PATCH 4/5] locking/locktorture: Support range rwlocks

2017-03-06 Thread Davidlohr Bueso
Torture the reader/writer range locks. Each thread will attempt to lock+unlock a range of up to [0, 4096]. Signed-off-by: Davidlohr Bueso --- kernel/locking/locktorture.c | 221 +-- 1 file changed, 172 insertions(+), 49 deletions(-) diff --git a/kernel/lo

RE: [PATCH v5] PCI: Xilinx NWL: Modifying irq chip for legacy interrupts

2017-03-06 Thread Bharat Kumar Gogada
Hi Marc, can you please look into my last comments ? Regards, Bharat > Subject: RE: [PATCH v5] PCI: Xilinx NWL: Modifying irq chip for legacy > interrupts > > Waiting for Marc's Reply... > > > > -Original Message- > > > From: Marc Zyngier [mailto:marc.zyng...@arm.com] > > > Sent: Thurs

Re: + mm-reclaim-madv_free-pages.patch added to -mm tree

2017-03-06 Thread Minchan Kim
On Mon, Mar 06, 2017 at 10:49:06AM -0500, Johannes Weiner wrote: < snip > > > @@ -1413,20 +1413,24 @@ static int try_to_unmap_one(struct page *page, > > struct vm_area_struct *vma, > > * Store the swap location in the pte. > > * See handle_pte_fault() ..

[PATCH] sched/deadline: Add missing update_rq_clock() in dl_task_timer()

2017-03-06 Thread Wanpeng Li
From: Wanpeng Li The following warning can be triggered by hot-unplugging the CPU on which an active SCHED_DEADLINE task is running on: [ cut here ] WARNING: CPU: 7 PID: 0 at kernel/sched/sched.h:833 replenish_dl_entity+0x71e/0xc40 rq->clock_update_flags < RQCF_ACT_SK

[PATCH v1 0/1] mtk-vcodec: check the vp9 decoder buffer index from VPU

2017-03-06 Thread Wu-Cheng Li
From: Wu-Cheng Li This patch guards against the invalid buffer index from VPU firmware. Wu-Cheng Li (1): mtk-vcodec: check the vp9 decoder buffer index from VPU. drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c | 6 + .../media/platform/mtk-vcodec/vdec/vdec_vp9_if.c | 26 +++

[PATCH 1/1] mtk-vcodec: check the vp9 decoder buffer index from VPU.

2017-03-06 Thread Wu-Cheng Li
From: Wu-Cheng Li VPU firmware has a bug and may return invalid buffer index for some vp9 videos. Check the buffer indexes before accessing the buffer. Signed-off-by: Wu-Cheng Li --- drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c | 6 + .../media/platform/mtk-vcodec/vdec/vdec_vp9_if.c

Re: Subject: [PATCH v4] USB:Core: BugFix: Proper handling of Race Condition when two USB class drivers try to call init_usb_class simultaneously

2017-03-06 Thread Ajay Kaher
      > On Fri, 3 Mar 2017, Ajay Kaher wrote: >  > > > usb_class->kref is not accessible outside the file.c > > > as usb_class is _static_ inside the file.c and > > > pointer of usb_class->kref is not passed anywhere. > > >  > > > Hence as you wanted, there are no references of usb_class->kref > > 

[PATCH 0/5] locking Introduce range reader/writer lock

2017-03-06 Thread Davidlohr Bueso
Hi, Here's a very tardy proposal for enhancements to Jan's original[1] range lock using interval trees. Because at some point it would be awesome to switch mmap_sem from rwsem to range rwlock, I've focused on making it sharable and performance enhancements reducing the performance delta between t

Re: [PATCH] zram: set physical queue limits to avoid array out of bounds accesses

2017-03-06 Thread Minchan Kim
Hello Johannes, On Mon, Mar 06, 2017 at 11:23:35AM +0100, Johannes Thumshirn wrote: > zram can handle at most SECTORS_PER_PAGE sectors in a bio's bvec. When using > the NVMe over Fabrics loopback target which potentially sends a huge bulk of > pages attached to the bio's bvec this results in a ker

Re: [PATCH V3 1/3] sched/deadline: Replenishment timer should fire in the next period

2017-03-06 Thread Wanpeng Li
2017-02-28 18:07 GMT+08:00 Daniel Bristot de Oliveira : > Currently, the replenishment timer is set to fire at the deadline > of a task. Although that works for implicit deadline tasks because the > deadline is equals to the begin of the next period, that is not correct > for constrained deadline t

Re: [PATCH 00/17] fs, btrfs refcount conversions

2017-03-06 Thread Qu Wenruo
At 03/06/2017 05:43 PM, Reshetova, Elena wrote: At 03/03/2017 04:55 PM, Elena Reshetova wrote: Now when new refcount_t type and API are finally merged (see include/linux/refcount.h), the following patches convert various refcounters in the btrfs filesystem from atomic_t to refcount_t. By doi

RE: [v3] mmc: sdhci-cadence: add HS400 enhanced strobe support

2017-03-06 Thread Piotr Sroka
Hi Masahiro, Thanks for all of your reviews. Best Regards Piotr Sroka > -Original Message- > From: Masahiro Yamada [mailto:yamada.masah...@socionext.com] > Sent: 06 March, 2017 9:59 PM > Subject: Re: [v3] mmc: sdhci-cadence: add HS400 enhanced strobe support > > Hi Piotr, > > 2017-03-0

[PATCH 3/5] locking/locktorture: Fix num reader/writer corner cases

2017-03-06 Thread Davidlohr Bueso
Things can explode for locktorture if the user does combinations of nwriters_stress=0 nreaders_stress=0. Fix this by not assuming we always want to torture writer threads. Signed-off-by: Davidlohr Bueso --- kernel/locking/locktorture.c | 76 +--- 1 file ch

[PATCH 1/5] locking: Introduce range reader/writer lock

2017-03-06 Thread Davidlohr Bueso
This implements a sleepable range rwlock, based on interval tree, serializing conflicting/intersecting/overlapping ranges within the tree. The largest range is given by [0, ~0 - 1] (inclusive). Unlike traditional locks, range locking involves dealing with the tree itself and the range to be locked,

[PATCH 2/5] locking/locktorture: Fix rwsem reader_delay

2017-03-06 Thread Davidlohr Bueso
We should account for nreader threads, not writers in this callback. Could even trigger a div by 0 if the user explicitly disables writers. Signed-off-by: Davidlohr Bueso --- kernel/locking/locktorture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/locking/locktortu

[PATCH] staging: rtl8192e: fix coding style issue, improve error handling

2017-03-06 Thread Suniel Mahesh
Fix coding style issue and comments in rtl_core.c Return -ENOMEM, if it is out of memory Pointer comparison with NULL replaced by logical NOT Signed-off-by: Suniel Mahesh --- drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 253 +++ 1 file changed, 100 insertions(+), 153 de

Re: [GIT PULL 00/35] perf/core improvements and fixes

2017-03-06 Thread Ingo Molnar
81ca5dc94ffe: > > Merge branch 'linus' into perf/urgent, to resolve conflict (2017-03-02 > 08:05:45 +0100) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git > tags/pe

Re: [PATCH v5 05/15] livepatch/powerpc: add TIF_PATCH_PENDING thread flag

2017-03-06 Thread Balbir Singh
On Mon, 2017-02-13 at 19:42 -0600, Josh Poimboeuf wrote: > Add the TIF_PATCH_PENDING thread flag to enable the new livepatch > per-task consistency model for powerpc. The bit getting set indicates > the thread has a pending patch which needs to be applied when the thread > exits the kernel. > > T

Re: [PATCH] zram: set physical queue limits to avoid array out of bounds accesses

2017-03-06 Thread Minchan Kim
Hi Hannes, On Tue, Mar 7, 2017 at 4:00 PM, Hannes Reinecke wrote: > On 03/07/2017 06:22 AM, Minchan Kim wrote: >> Hello Johannes, >> >> On Mon, Mar 06, 2017 at 11:23:35AM +0100, Johannes Thumshirn wrote: >>> zram can handle at most SECTORS_PER_PAGE sectors in a bio's bvec. When using >>> the NVMe

[PATCH 2/2] usb: xhci-mtk: fix checkpatch warning and erorr

2017-03-06 Thread Chunfeng Yun
there are two warnings and a erorr when checked by checkpatch.pl as following: WARNING:BLOCK_COMMENT_STYLE: Block comments should align the * on each line ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci-mtk

[PATCH 1/2] usb: xhci-mtk: rebuild xhci_mtk_setup()

2017-03-06 Thread Chunfeng Yun
simplify xhci_mtk_setup() and add xhci_mtk_start() for xhci_driver_overrides struct Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci-mtk.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/drivers/usb/host/xhci-mtk.c b/drivers/usb/host/xhci-mtk.c index

[tip:perf/core] perf vendor events: Add mapping for KnightsMill PMU events

2017-03-06 Thread tip-bot for Karol Wachowski
Commit-ID: 771ceddaadd0a2b31603034b36dca50943ff6836 Gitweb: http://git.kernel.org/tip/771ceddaadd0a2b31603034b36dca50943ff6836 Author: Karol Wachowski AuthorDate: Mon, 20 Feb 2017 12:50:40 +0100 Committer: Arnaldo Carvalho de Melo CommitDate: Fri, 3 Mar 2017 19:07:13 -0300 perf vendor

Re: [lustre-devel] [PATCH] staging: lustre: fix sparse warning about different address spaces

2017-03-06 Thread Oleg Drokin
On Mar 1, 2017, at 6:57 PM, Mario Bambagini wrote: > fixed the following sparse warning by adding proper cast: > drivers/staging//lustre/lustre/obdclass/obd_config.c:1055:74: warning: > incorrect type in argument 2 (different address spaces) > drivers/staging//lustre/lustre/obdclass/obd_config.c

Re: [PATCH] x86/fpu: fix boolreturn.cocci warnings

2017-03-06 Thread Ingo Molnar
* kbuild test robot wrote: > arch/x86/kernel/fpu/xstate.c:931:9-10: WARNING: return of 0/1 in function > 'xfeatures_mxcsr_quirk' with return type bool > > Return statements in functions returning bool should use > true/false instead of 1/0. Note that this is a totally bogus warning. I perso

Re: [PATCH] zram: set physical queue limits to avoid array out of bounds accesses

2017-03-06 Thread Hannes Reinecke
On 03/07/2017 06:22 AM, Minchan Kim wrote: > Hello Johannes, > > On Mon, Mar 06, 2017 at 11:23:35AM +0100, Johannes Thumshirn wrote: >> zram can handle at most SECTORS_PER_PAGE sectors in a bio's bvec. When using >> the NVMe over Fabrics loopback target which potentially sends a huge bulk of >> pa

Re: [PATCH] perf probe: Return errno when does not hit any event

2017-03-06 Thread Kefeng Wang
+ Arnaldo Carvalho de Melo On 2017/3/6 17:34, Kefeng Wang wrote: > On old perf, when using perf probe -d to delete an inexistent event, > it return errno, eg, > > -bash-4.3# perf probe -d xxx || echo $? > Info: Event "*:xxx" does not exist. > Error: Failed to delete events. > 255 > > But now

[tip:perf/core] tools arch x86: Introduce atomic_cmpxchg()

2017-03-06 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 8a73615df3b8973df2de1455c00e9169522d8257 Gitweb: http://git.kernel.org/tip/8a73615df3b8973df2de1455c00e9169522d8257 Author: Arnaldo Carvalho de Melo AuthorDate: Wed, 22 Feb 2017 16:55:43 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Fri, 3 Mar 2017 19:07:13 -0300 too

Re: [PATCH] docs: Clarify details for reporting security bugs

2017-03-06 Thread Jonathan Corbet
On Mon, 6 Mar 2017 11:13:51 -0800 Kees Cook wrote: > The kernel security team is regularly asked to provide CVE identifiers, > which we don't normally do. This updates the documentation to mention > this and adds some more details about coordination and patch handling > that come up regularly. Ba

Re: [PATCH] irqchip/gic-v3: Fix GICD_CTLR_ARE_NS bit field

2017-03-06 Thread Marc Zyngier
On Tue, Mar 07 2017 at 4:07:05 am GMT, Alim Akhtar wrote: > From: Alim Akhtar > > As per GICv3 Architecture specification 8.9.4 field descriptions, > GICD_CTLR_ARE_NS is bit[5]. This patch correct the same. > > Fixes: 021f6537 ("irqchip: gic-v3: Initial support for GICv3") > Cc: sta...@vger.ker

Re: [PATCH 1/2] x86/platform: Add a low priority low frequency NMI call chain

2017-03-06 Thread Ingo Molnar
* Mike Travis wrote: > Add a new NMI call chain that is called last after all other NMI handlers > have been checked and did not "handle" the NMI. This mimics the current > NMI_UNKNOWN call chain except it eliminates the WARNING message about > multiple NMI handlers registering on this call cha

Re: [PATCH 1/9] mm: fix 100% CPU kswapd busyloop on unreclaimable nodes

2017-03-06 Thread Minchan Kim
On Mon, Mar 06, 2017 at 11:24:10AM -0500, Johannes Weiner wrote: > On Mon, Mar 06, 2017 at 10:37:40AM +0900, Minchan Kim wrote: > > On Fri, Mar 03, 2017 at 08:59:54AM +0100, Michal Hocko wrote: > > > On Fri 03-03-17 10:26:09, Minchan Kim wrote: > > > > On Tue, Feb 28, 2017 at 04:39:59PM -0500, Joha

RE: [PATCH] Input: elan_i2c - add ASUS EeeBook X205TA special touchpad fw

2017-03-06 Thread 廖崇榮
Hi Dmitry -Original Message- From: Dmitry Torokhov [mailto:dmitry.torok...@gmail.com] Sent: Tuesday, March 07, 2017 3:55 AM To: KT Liao Cc: linux-in...@vger.kernel.org; linux-kernel@vger.kernel.org; Matjaz Hegedic Subject: Re: [PATCH] Input: elan_i2c - add ASUS EeeBook X205TA special touc

[tip:perf/core] tools include: Introduce atomic_cmpxchg_{relaxed,release}()

2017-03-06 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 2bcdeadbc094b4f6511aedea1e5b8052bf0cc89c Gitweb: http://git.kernel.org/tip/2bcdeadbc094b4f6511aedea1e5b8052bf0cc89c Author: Arnaldo Carvalho de Melo AuthorDate: Wed, 22 Feb 2017 16:57:53 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Fri, 3 Mar 2017 19:07:14 -0300 too

[RFC PATCH 1/5] Document: Add document file for Sony CXD2880 DVB-T2/T tuner + demodulator

2017-03-06 Thread Yasunari.Takiguchi
From: Yasunari Takiguchi This is the driver for Sony CXD2880 DVB-T2/T tuner + demodulator. Regarding this third Beta Release, the status is: - Tested on Raspberry Pi 3. - The DVB-API operates under dvbv5 tools. Signed-off-by: Yasunari Takiguchi Signed-off-by: Masayuki Yamamoto Signed-off-by:

[tip:perf/core] tools arch x86: Include asm/cmpxchg.h

2017-03-06 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 3337e682d9f3043bb0b925d976558ed5c41b0a09 Gitweb: http://git.kernel.org/tip/3337e682d9f3043bb0b925d976558ed5c41b0a09 Author: Arnaldo Carvalho de Melo AuthorDate: Wed, 22 Feb 2017 16:54:53 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Fri, 3 Mar 2017 19:07:13 -0300 too

Re: [PATCH] docs: Clarify details for reporting security bugs

2017-03-06 Thread Kees Cook
On Mon, Mar 6, 2017 at 11:27 PM, Jonathan Corbet wrote: > On Mon, 6 Mar 2017 11:13:51 -0800 > Kees Cook wrote: > >> The kernel security team is regularly asked to provide CVE identifiers, >> which we don't normally do. This updates the documentation to mention >> this and adds some more details a

RE: [PATCH 00/17] fs, btrfs refcount conversions

2017-03-06 Thread Reshetova, Elena
> At 03/06/2017 05:43 PM, Reshetova, Elena wrote: > > > >> At 03/03/2017 04:55 PM, Elena Reshetova wrote: > >>> Now when new refcount_t type and API are finally merged > >>> (see include/linux/refcount.h), the following > >>> patches convert various refcounters in the btrfs filesystem from atomic_t

Re: [RFC PATCH 00/12] Ion cleanup in preparation for moving out of staging

2017-03-06 Thread Michal Hocko
On Fri 03-03-17 09:37:55, Laura Abbott wrote: > On 03/03/2017 05:29 AM, Michal Hocko wrote: > > On Thu 02-03-17 13:44:32, Laura Abbott wrote: > >> Hi, > >> > >> There's been some recent discussions[1] about Ion-like frameworks. There's > >> apparently interest in just keeping Ion since it works rea

Re: [PATCH] MIPS: reset all task's asid to 0 after asid_cache(cpu) overflows

2017-03-06 Thread jsun4
Hello Sergei, Thanks for your reply. On 03/05/2017 05:38 PM, Sergei Shtylyov wrote: > Hello! > > On 3/5/2017 6:24 AM, Jiwei Sun wrote: > >> If asid_cache(cpu) overflows, there may be two tasks with the same >> asid. It is a risk that the two different tasks may have the same >> address space. >

Re: [PATCH] mm, add_memory_resource: hold device_hotplug lock over mem_hotplug_{begin, done}

2017-03-06 Thread Heiko Carstens
Hello Dan, > > If you look at commit 5e33bc4165f3 ("driver core / ACPI: Avoid device hot > > remove locking issues") then lock_device_hotplug_sysfs() was introduced to > > avoid a different subtle deadlock, but it also sleeps uninterruptible, but > > not for more than 5ms ;) > > > > However I'm no

Re: [PATCH] HID: hid-multitouch: change for touch height/width

2017-03-06 Thread Benjamin Tissoires
On Mar 06 2017 or thereabouts, hn.c...@weidahitech.com wrote: > From: HungNien Chen > > Just quote from Jonathan Clarke in previous thread(2017/01/24): > "This division by 2 was added along with the touch width/height > fields 6 years ago so that those fields 'match the visual scale > of the touc

[PATCH v2 4/4] MAINTAINERS: usb251xb: remove reference inexistent file

2017-03-06 Thread Richard Leitner
The platform_data header file was dropped in the merged version of the USB251xB driver. Therefore remove its reference from the MAINTAINERS file. Signed-off-by: Richard Leitner --- MAINTAINERS | 1 - 1 file changed, 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index c265a5f..c776906 100

[PATCH v2] clk: imx: correct uart4_serial clock name in driver for i.MX6UL

2017-03-06 Thread Robin van der Gracht
Reviewed-by: Fabio Estevam Signed-off-by: Robin van der Gracht --- v2: Rebased on latest mainline drivers/clk/imx/clk-imx6ul.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/imx/clk-imx6ul.c b/drivers/clk/imx/clk-imx6ul.c index dbd6e59..b4e0dff 100644 --- a/driv

Re: [PATCH] MIPS: reset all task's asid to 0 after asid_cache(cpu) overflows

2017-03-06 Thread Sergei Shtylyov
On 3/6/2017 10:21 AM, jsun4 wrote: If asid_cache(cpu) overflows, there may be two tasks with the same asid. It is a risk that the two different tasks may have the same address space. A process will update its asid to newer version only when switch_mm() is called and matches the following condit

Re: [PATCH v2] arm64: kvm: Use has_vhe() instead of hyp_alternate_select()

2017-03-06 Thread Marc Zyngier
Hi Shanker, On Mon, Mar 06 2017 at 2:33:18 am GMT, Shanker Donthineni wrote: > Now all the cpu_hwcaps features have their own static keys. We don't > need a separate function hyp_alternate_select() to patch the vhe/nvhe > code. We can achieve the same functionality by using has_vhe(). It > impr

[PATCH v2 1/4] usb: usb251xb: remove max_{power,current}_{sp,bp} properties

2017-03-06 Thread Richard Leitner
Remove the max_{power,current}_{sp,bp} properties of the usb251xb driver from devicetree. This is done to simplify the dt bindings as requested by Rob Herring in https://lkml.org/lkml/2017/2/15/1283. If those properties are ever needed by somebody they can be enabled again easily. Signed-off-by: R

[PATCH v2 2/4] usb: usb251xb: dt: add unit suffix to oc-delay and power-on-time

2017-03-06 Thread Richard Leitner
Rename oc-delay-* to oc-delay-us and make it expect a time value. Furthermore add -ms suffix to power-on-time. There changes were suggested by Rob Herring in https://lkml.org/lkml/2017/2/15/1283. Signed-off-by: Richard Leitner --- Documentation/devicetree/bindings/usb/usb251xb.txt | 10 ---

[PATCH v2 3/4] doc: dt-bindings: usb251xb: mark reg as required

2017-03-06 Thread Richard Leitner
Mark the reg property as required and furthermore fix some typos and spellings in the documentation. Signed-off-by: Richard Leitner --- Documentation/devicetree/bindings/usb/usb251xb.txt | 23 +++--- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/Documentation/de

Re: [PATCH] clk: tegra: mark TEGRA210_CLK_DBGAPB as always on

2017-03-06 Thread Peter De Schrijver
On Thu, Mar 02, 2017 at 05:56:49PM +, Jon Hunter wrote: > > On 28/02/17 15:19, Peter De Schrijver wrote: > > This is needed to make the JTAG debugging interface work. > > > > Signed-off-by: Peter De Schrijver > > --- > > drivers/clk/tegra/clk-tegra210.c | 1 + > > 1 file changed, 1 insertio

Re: [PATCH 1/3] futex: remove duplicated code

2017-03-06 Thread Jiri Slaby
On 03/05/2017, 12:39 AM, Stafford Horne wrote: > On Sat, Mar 04, 2017 at 03:08:50PM -0800, H. Peter Anvin wrote: >> ,Chris Metcalf ,Thomas Gleixner >> ,Ingo Molnar ,Chris Zankel >> ,Max Filippov ,Arnd Bergmann >> ,x...@kernel.org,linux-al...@vger.kernel.org,linux-snps-...@lists.infradead.org,lin

[PATCH v2 0/4] usb: misc: fix/improve USB251xB/xBi dt bindings

2017-03-06 Thread Richard Leitner
This patchset improves/fixes the USB251xB/xBi devicetree bindings as recommended by Rob Herring. CHANGES v2: - Require exact values for oc-delay-us property - Remove erroneous be32_to_cpu call in power-on-time-ms prop parsing - Remove reference to inexistent file from MAINT

Re: [PATCH] x86: thinkpad_acpi: Handle return error.

2017-03-06 Thread Andy Shevchenko
On Mon, Mar 6, 2017 at 9:43 AM, Arvind Yadav wrote: > This patch is for handling a return error. > > Signed-off-by: Arvind Yadav > --- > drivers/platform/x86/thinkpad_acpi.c | 15 --- > 1 file changed, 12 insertions(+), 3 deletions(-) > > diff --git a/drivers/platform/x86/thinkpad_ac

Re: [PATCH v2 0/4] fujitsu_init() cleanup

2017-03-06 Thread Jonathan Woithe
Hi Michael Some quick feedback. On Mon, Mar 06, 2017 at 03:31:04PM +1030, Jonathan Woithe wrote: > > > I can add that immediately after loading the driver the value returned by > > > a > > > read of bl_power is 0. As noted above, setting to 1 makes no difference > > > to > > > the backlight, n

Re: [PATCH v4 2/5] arm: dts: Add the burst and esc clock frequency properties to DSI node

2017-03-06 Thread Lothar Waßmann
Hi, On Mon, 06 Mar 2017 13:42:20 +0900 Hoegeun Kwon wrote: > The OF graph is not needed because the panel is a child of dsi. Add > This is obviously from your patch #5 and doesn't make sense in this context. > the burst and esc clock frequency properties to the parent (DSI node). > > Signed-off-

Re: [PATCH 4/4] tty/serial: sh-sci: remove uneeded IS_ERR_OR_NULL calls

2017-03-06 Thread Geert Uytterhoeven
Hi Uwe, On Sat, Mar 4, 2017 at 6:48 PM, Uwe Kleine-König wrote: > Cc += linux-g...@vger.kernel.org > > On Sat, Mar 04, 2017 at 04:35:46PM +0100, Geert Uytterhoeven wrote: >> On Fri, Mar 3, 2017 at 8:44 PM, Uwe Kleine-König >> wrote: >> > On Fri, Mar 03, 2017 at 08:21:05PM +0100, Geert Uytterhoev

Re: [PATCH v2 3/3] ARM64: dts: meson-gx: Add MALI nodes for GXBB and GXL

2017-03-06 Thread Neil Armstrong
On 03/04/2017 01:38 PM, Andreas Färber wrote: > Am 03.03.2017 um 20:29 schrieb Kevin Hilman: >> Neil Armstrong writes: >>> On 03/02/2017 01:31 PM, Andreas Färber wrote: Am 01.03.2017 um 11:46 schrieb Neil Armstrong: > The same MALI-450 MP3 GPU is present in the GXBB and GXL SoCs. > [...]

[PATCH v1] x86/build/defconfig/64: Enable CONFIG_R8169=y

2017-03-06 Thread Andy Shevchenko
Very common PCIe ethernet card. Already enabled in i386_defconfig. Cc: Ingo Molnar Cc: Peter Zijlstra Cc: Thomas Gleixner Signed-off-by: Andy Shevchenko --- arch/x86/configs/x86_64_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/configs/x86_64_defconfig b/arch/x86/conf

Re: [PATCH 4/4] tty/serial: sh-sci: remove uneeded IS_ERR_OR_NULL calls

2017-03-06 Thread Uwe Kleine-König
Hello Geert, On Mon, Mar 06, 2017 at 09:49:39AM +0100, Geert Uytterhoeven wrote: > > Given that mctrl-gpio can be useful on legacy platforms, a device could > > silently run without cts-gpio even there. > > On platforms were CONFIG_GPIOLIB=n, this is not true, so the issue is moot. > > All seria

Re: [RFC 01/11] mm: use SWAP_SUCCESS instead of 0

2017-03-06 Thread Anshuman Khandual
On 03/03/2017 08:31 AM, Minchan Kim wrote: > On Thu, Mar 02, 2017 at 07:57:10PM +0530, Anshuman Khandual wrote: >> On 03/02/2017 12:09 PM, Minchan Kim wrote: >>> SWAP_SUCCESS defined value 0 can be changed always so don't rely on >>> it. Instead, use explict macro. >> >> Right. But should not we mo

Re: [PATCH 4/4] tty/serial: sh-sci: remove uneeded IS_ERR_OR_NULL calls

2017-03-06 Thread Geert Uytterhoeven
Hi Uwe, On Mon, Mar 6, 2017 at 9:58 AM, Uwe Kleine-König wrote: > On Mon, Mar 06, 2017 at 09:49:39AM +0100, Geert Uytterhoeven wrote: >> > Given that mctrl-gpio can be useful on legacy platforms, a device could >> > silently run without cts-gpio even there. >> >> On platforms were CONFIG_GPIOLIB=

[PATCH 3.12 000/113] 3.12.71-stable review

2017-03-06 Thread Jiri Slaby
This is the start of the stable review cycle for the 3.12.71 release. There are 113 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Wed Mar 8 10:10:31 CET 2017. Anything recei

[PATCH 3.12 001/113] x86/Kconfig: Simplify X86_IO_APIC dependencies

2017-03-06 Thread Jiri Slaby
From: Jan Beulich 3.12-stable review patch. If anyone has any objections, please let me know. === commit b1da1e715d4faf01468b7f45f7098922bc85ea8e upstream. Since dependencies are transitive, we don't really need to repeat those of X86_UP_IOAPIC. Furthermore avoid the symbol getti

[PATCH 3.12 005/113] tile/ptrace: Preserve previous registers for short regset write

2017-03-06 Thread Jiri Slaby
From: Dave Martin 3.12-stable review patch. If anyone has any objections, please let me know. === commit fd7c99142d77dc4a851879a66715abf12a3193fb upstream. Ensure that if userspace supplies insufficient data to PTRACE_SETREGSET to fill all the registers, the thread's old registers

[PATCH 3.12 004/113] fbdev: color map copying bounds checking

2017-03-06 Thread Jiri Slaby
From: Kees Cook 3.12-stable review patch. If anyone has any objections, please let me know. === commit 2dc705a9930b4806250fbf5a76e55266e59389f2 upstream. Copying color maps to userspace doesn't check the value of to->start, which will cause kernel heap buffer OOB read due to signe

[PATCH 3.12 048/113] tun: Fix TUN_PKT_STRIP setting

2017-03-06 Thread Jiri Slaby
From: Herbert Xu 3.12-stable review patch. If anyone has any objections, please let me know. === commit 2eb783c43e7cf807a45899c10ed556b6dc116625 upstream. We set the flag TUN_PKT_STRIP if the user buffer provided is too small to contain the entire packet plus meta-data. However,

[PATCH 3.12 045/113] ALSA: seq: Don't handle loop timeout at snd_seq_pool_done()

2017-03-06 Thread Jiri Slaby
From: Takashi Iwai 3.12-stable review patch. If anyone has any objections, please let me know. === commit 37a7ea4a9b81f6a864c10a7cb0b96458df5310a3 upstream. snd_seq_pool_done() syncs with closing of all opened threads, but it aborts the wait loop with a timeout, and proceeds to th

[PATCH 3.12 047/113] sched/debug: Don't dump sched debug info in SysRq-W

2017-03-06 Thread Jiri Slaby
From: Rabin Vincent 3.12-stable review patch. If anyone has any objections, please let me know. === commit fb90a6e93c0684ab2629a42462400603aa829b9c upstream. sysrq_sched_debug_show() can dump a lot of information. Don't print out all that if we're just trying to get a list of blo

[PATCH 3.12 024/113] USB: serial: option: add more ZTE device ids

2017-03-06 Thread Jiri Slaby
From: lei liu 3.12-stable review patch. If anyone has any objections, please let me know. === commit f0d09463c59c2d764a6c6d492cbe6d2c77f27153 upstream. More ZTE device ids. Signed-off-by: lei liu [properly sort them - gregkh] Signed-off-by: Greg Kroah-Hartman Signed-off-by: Joh

[PATCH 3.12 027/113] crypto: api - Clear CRYPTO_ALG_DEAD bit before registering an alg

2017-03-06 Thread Jiri Slaby
From: Salvatore Benedetto 3.12-stable review patch. If anyone has any objections, please let me know. === commit d6040764adcb5cb6de1489422411d701c158bb69 upstream. Make sure CRYPTO_ALG_DEAD bit is cleared before proceeding with the algorithm registration. This fixes qat-dh registr

[PATCH 3.12 046/113] drm/i915: fix use-after-free in page_flip_completed()

2017-03-06 Thread Jiri Slaby
From: Andrey Ryabinin 3.12-stable review patch. If anyone has any objections, please let me know. === commit 5351fbb1bf1413f6024892093528280769ca852f upstream. page_flip_completed() dereferences 'work' variable after executing queue_work(). This is not safe as the 'work' item migh

[PATCH 3.12 028/113] ata: sata_mv:- Handle return value of devm_ioremap.

2017-03-06 Thread Jiri Slaby
From: Arvind Yadav 3.12-stable review patch. If anyone has any objections, please let me know. === commit 064c3db9c564cc5be514ac21fb4aa26cc33db746 upstream. Here, If devm_ioremap will fail. It will return NULL. Then hpriv->base = NULL - 0x2; Kernel can run into a NULL-pointer

[PATCH 3.12 100/113] cpufreq: preserve user_policy across suspend/resume

2017-03-06 Thread Jiri Slaby
From: Viresh Kumar 3.12-stable review patch. If anyone has any objections, please let me know. === commit 08fd8c1cf0a99abf34e09a8b99b74872e0d73a23 upstream. Prevent __cpufreq_add_dev() from overwriting the existing values of user_policy.{min|max|policy|governor} with defaults duri

[PATCH 3.12 089/113] af_packet: remove a stray tab in packet_set_ring()

2017-03-06 Thread Jiri Slaby
From: Dan Carpenter 3.12-stable review patch. If anyone has any objections, please let me know. === commit d7cf0c34af067555737193b6c1aa7abaa677f29c upstream. At first glance it looks like there is a missing curly brace but actually the code works the same either way. I have adjus

[PATCH 3.12 030/113] cifs: initialize file_info_lock

2017-03-06 Thread Jiri Slaby
From: Rabin Vincent 3.12-stable review patch. If anyone has any objections, please let me know. === commit 81ddd8c0c5e1cb41184d66567140cb48c53eb3d1 upstream. Reviewed-by: Jeff Layton file_info_lock is not initalized in initiate_cifs_search(), leading to the following splat after

[PATCH 3.12 093/113] 6lowpan: release device on error path

2017-03-06 Thread Jiri Slaby
From: Dan Carpenter 3.12-stable review patch. If anyone has any objections, please let me know. === commit 78032f9b3eae3a43da9468d8ce30caa6be84f89d upstream. We recently added a new error path and it needs a dev_put(). Fixes: 7adac1ec8198 ('6lowpan: Only make 6lowpan links to IEE

[PATCH 3.12 103/113] ipv6: simplify detection of first operational link-local address on interface

2017-03-06 Thread Jiri Slaby
From: Hannes Frederic Sowa 3.12-stable review patch. If anyone has any objections, please let me know. === commit 11752c6a5adc86f7dd397b2f75af8f917c51 upstream. In commit 1ec047eb4751e3 ("ipv6: introduce per-interface counter for dad-completed ipv6 addresses") I build the dete

[PATCH 3.12 098/113] cpufreq: remove sysfs files for CPUs which failed to come back after resume

2017-03-06 Thread Jiri Slaby
From: Viresh Kumar 3.12-stable review patch. If anyone has any objections, please let me know. === commit 42f921a6f10c6c2079b093a115eb7e3c3508357f upstream. There are cases where cpufreq_add_dev() may fail for some CPUs during system resume. With the current code we will still hav

[PATCH 3.12 102/113] net: 6lowpan: fix lowpan_header_create non-compression memcpy call

2017-03-06 Thread Jiri Slaby
From: Daniel Borkmann 3.12-stable review patch. If anyone has any objections, please let me know. === commit 965801e1eb624154fe5e9dc5d2ff0b7f1951a11c upstream. In function lowpan_header_create(), we invoke the following code construct: struct ipv6hdr *hdr; ... hdr = ipv6_hd

Re: [PATCH 1/3] futex: remove duplicated code

2017-03-06 Thread H. Peter Anvin
On 03/06/17 00:46, Jiri Slaby wrote: > > static int futex_atomic_op_inuser(int encoded_op, u32 __user *uaddr) > { > - int op = (encoded_op >> 28) & 7; > - int cmp = (encoded_op >> 24) & 15; > - int oparg = (encoded_op << 8) >> 20; > - int cmparg = (encoded_op << 20) >> 20

[PATCH 3.12 094/113] mfd: pm8921: Potential NULL dereference in pm8921_remove()

2017-03-06 Thread Jiri Slaby
From: Dan Carpenter 3.12-stable review patch. If anyone has any objections, please let me know. === commit d6daef95127e41233ac8e2d8472d8c0cd8687d38 upstream. We assume that "pmic" could be NULL and then dereference it two lines later. I fix this by moving the dereference inside t

[PATCH 3.12 106/113] PCI: mvebu: Use max_t() instead of max(resource_size_t,)

2017-03-06 Thread Jiri Slaby
From: Jingoo Han 3.12-stable review patch. If anyone has any objections, please let me know. === commit 06489002a175680e18b4c0dd0beb6aff2a6d3781 upstream. Use max_t() instead of max(resource_size_t,) in order to fix the following checkpatch warning. WARNING: max() should probab

  1   2   3   4   5   6   7   8   9   10   >