Re: [PATCH 1/1] xdp: Sample xdp program implementing ip forward

2017-10-03 Thread David Ahern
On 10/3/17 12:37 AM, cjacob wrote: > diff --git a/samples/bpf/xdp3_kern.c b/samples/bpf/xdp3_kern.c > new file mode 100644 > index 000..62d905d > --- /dev/null > +++ b/samples/bpf/xdp3_kern.c > @@ -0,0 +1,204 @@ > +/* Copyright (c) 2016 PLUMgrid 2016 PLUMgrid? > + * > + * This program is fre

Re: [lockdep] b09be676e0 BUG: unable to handle kernel NULL pointer dereference at 000001f2

2017-10-03 Thread Josh Poimboeuf
On Tue, Oct 03, 2017 at 10:05:38AM -0500, Josh Poimboeuf wrote: > I don't know the lockdep code, but one more comment from the peanut > gallery. This code looks suspect to me: > > > /* >* Stop saving stack_trace if save_trace() was >

Re: [PATCH] platform/x86: peaq-wmi: Blacklist Lenovo ideapad 700-15ISK

2017-10-03 Thread Andy Shevchenko
On Mon, Oct 2, 2017 at 6:56 AM, Kai-Heng Feng wrote: > peaq-wmi on Lenovo ideapad 700-15ISK keeps sending KEY_SOUND, > which makes user's repeated keys gets interrupted. > > The system does not have Dolby button, let's blacklist it. Pushed to my review queue, thanks! P.S. It's not going to stabl

Re: [PATCH v2] staging: ccree: Convert to platform_{get,set}_drvdata()

2017-10-03 Thread Greg KH
On Thu, Sep 21, 2017 at 05:47:42PM +0530, suni...@techveda.org wrote: > From: Suniel Mahesh > > Platform devices are expected to use wrapper functions, > platform_{get,set}_drvdata() with platform_device as argument, > for getting and setting the driver data. dev_{get,set}_drvdata() > are using &

Re: [PATCH 0/6] Replace container_of with list_entry

2017-10-03 Thread Srishti Sharma
On Tue, Oct 3, 2017 at 9:44 PM, Greg KH wrote: > On Sat, Sep 30, 2017 at 12:49:00PM +0530, Srishti Sharma wrote: >> Replaces instances of container_of with list_entry to >> access current list element. >> >> Srishti Sharma (6): >> Staging: rtl8188eu: core: Use list_entry instead of container_of

Re: [PATCH] staging: fbtft: diferenciate between buffer and data types to fix sparse warning

2017-10-03 Thread Greg KH
On Wed, Sep 27, 2017 at 06:16:18PM +0100, Alfonso Lima Astor wrote: > sparse was complaning about an incorrect type cast: > drivers/staging/fbtft/fbtft-bus.c:60:1: warning: incorrect type in assignment > (different base types) > drivers/staging/fbtft/fbtft-bus.c:60:1:expected unsigned short [u

Re: v4.14-rc2/arm64 kernel BUG at net/core/skbuff.c:2626

2017-10-03 Thread Eric Dumazet
On Tue, Oct 3, 2017 at 9:06 AM, Dmitry Vyukov wrote: > On Tue, Oct 3, 2017 at 5:38 PM, 'Eric Dumazet' via syzkaller > wrote: >> On Tue, Oct 3, 2017 at 8:19 AM, Dmitry Vyukov wrote: >>> On Mon, Oct 2, 2017 at 4:42 PM, 'Eric Dumazet' via syzkaller >>> wrote: On Mon, Oct 2, 2017 at 7:21 AM, M

Re: [RESEND PATCH] prctl: add PR_[GS]ET_PDEATHSIG_PROC

2017-10-03 Thread Eric W. Biederman
Linus Torvalds writes: > On Tue, Oct 3, 2017 at 7:46 AM, Eric W. Biederman > wrote: >> >> The process that requests the signal be sent is the process that is >> receiving the signal. I can see a theoretical need for a permission >> check in there somewhere (especially as this persists over for

Re: [GIT PULL 0/8] perf/core improvements and fixes

2017-10-03 Thread Ingo Molnar
10-02 13:58:12 -0300) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git > tags/perf-core-for-mingo-4.15-20171003 > > for you to fetch changes up to f6a9820d572bd8384d982357cba

RE: [Devel] [PATCH 15/18] acpi: use ARRAY_SIZE

2017-10-03 Thread Moore, Robert
> -Original Message- > From: Devel [mailto:devel-boun...@acpica.org] On Behalf Of Rafael J. > Wysocki > Sent: Tuesday, October 3, 2017 9:05 AM > To: Colin Ian King > Cc: Wysocki, Rafael J ; Rafael J. Wysocki > ; Linux Kernel Mailing List ker...@vger.kernel.org>; ACPI Devel Maling List

Re: [PATCH] vfs: hard-ban creating files with control characters in the name

2017-10-03 Thread Theodore Ts'o
On Tue, Oct 03, 2017 at 03:07:24AM +0100, Al Viro wrote: > That essay is full of shit, and you've even mentioned parts of that just > above... > NAK; you'd _still_ need proper quoting (or a shell with something resembling > an > actual syntax, rather than the "more or less what srb had ended up

Re: [RESEND PATCH] gpio: omap: Fix lost edge interrupts

2017-10-03 Thread Santosh Shilimkar
On 10/3/2017 9:17 AM, Grygorii Strashko wrote: Now acking of edge irqs happens the following way: - omap_gpio_irq_handler - "isr" = read irq status - omap_clear_gpio_irqbank(bank, isr_saved & ~level_mask); ^ clear edge status, so irq can be accepted - loop while "isr" g

Re: [PATCH] mm: remove unnecessary WARN_ONCE in page_vma_mapped_walk().

2017-10-03 Thread Kirill A. Shutemov
On Tue, Oct 03, 2017 at 10:26:06AM -0400, Zi Yan wrote: > From: Zi Yan > > A non present pmd entry can appear after pmd_lock is taken in > page_vma_mapped_walk(), even if THP migration is not enabled. > The WARN_ONCE is unnecessary. > > Fixes: 616b8371539a ("mm: thp: enable thp migration in gene

[PATCH] mm/mempolicy: fix NUMA_INTERLEAVE_HIT counter

2017-10-03 Thread Andrey Ryabinin
Commit 3a321d2a3dde separated NUMA counters from zone counters, but the NUMA_INTERLEAVE_HIT call site wasn't updated to use the new interface. So alloc_page_interleave() actually increments NR_ZONE_INACTIVE_FILE instead of NUMA_INTERLEAVE_HIT. Fix this by using __inc_numa_state() interface to incr

[tip:perf/core] perf test attr: Fix python error on empty result

2017-10-03 Thread tip-bot for Thomas Richter
Commit-ID: 3440fe2790aa3d13530260af6033533b18959aee Gitweb: https://git.kernel.org/tip/3440fe2790aa3d13530260af6033533b18959aee Author: Thomas Richter AuthorDate: Wed, 13 Sep 2017 10:12:08 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 2 Oct 2017 14:00:20 -0300 perf test at

[tip:perf/core] perf tests attr: Fix task term values

2017-10-03 Thread tip-bot for Jiri Olsa
Commit-ID: 10836d9f9ac63d40ccfa756f871ce4ed51ae3b52 Gitweb: https://git.kernel.org/tip/10836d9f9ac63d40ccfa756f871ce4ed51ae3b52 Author: Jiri Olsa AuthorDate: Mon, 3 Jul 2017 16:50:30 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 2 Oct 2017 13:59:18 -0300 perf tests attr: F

[tip:perf/core] perf test attr: Fix ignored test case result

2017-10-03 Thread tip-bot for Thomas Richter
Commit-ID: 22905582f6dd4bbd0c370fe5732c607452010c04 Gitweb: https://git.kernel.org/tip/22905582f6dd4bbd0c370fe5732c607452010c04 Author: Thomas Richter AuthorDate: Wed, 13 Sep 2017 10:12:09 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 2 Oct 2017 14:00:57 -0300 perf test at

[tip:perf/core] perf tests attr: Fix group stat tests

2017-10-03 Thread tip-bot for Jiri Olsa
Commit-ID: f6a9820d572bd8384d982357cbad214b3a6c04bb Gitweb: https://git.kernel.org/tip/f6a9820d572bd8384d982357cbad214b3a6c04bb Author: Jiri Olsa AuthorDate: Thu, 28 Sep 2017 18:06:33 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 3 Oct 2017 09:41:45 -0300 perf tests attr:

[tip:perf/core] perf tools: Lock to protect namespaces and comm list

2017-10-03 Thread tip-bot for Kan Liang
Commit-ID: b32ee9e522f7ba26339856a047cfe9efc0be0ff3 Gitweb: https://git.kernel.org/tip/b32ee9e522f7ba26339856a047cfe9efc0be0ff3 Author: Kan Liang AuthorDate: Fri, 29 Sep 2017 07:47:52 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 3 Oct 2017 09:27:27 -0300 perf tools: Lock

[tip:perf/core] perf tools: Lock to protect comm_str rb tree

2017-10-03 Thread tip-bot for Kan Liang
Commit-ID: f988e71bc6220d8b404dbd43c0e0962e30305795 Gitweb: https://git.kernel.org/tip/f988e71bc6220d8b404dbd43c0e0962e30305795 Author: Kan Liang AuthorDate: Fri, 29 Sep 2017 07:47:53 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 3 Oct 2017 09:27:36 -0300 perf tools: Lock

[tip:perf/core] perf top: Implement multithreading for perf_event__synthesize_threads

2017-10-03 Thread tip-bot for Kan Liang
Commit-ID: 340b47f510bbe55a76b7309107276f02ea11f117 Gitweb: https://git.kernel.org/tip/340b47f510bbe55a76b7309107276f02ea11f117 Author: Kan Liang AuthorDate: Fri, 29 Sep 2017 07:47:54 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 3 Oct 2017 09:27:46 -0300 perf top: Impleme

Re: [PATCH v3 4/8] platform/x86: wmi: create character devices when requested by drivers

2017-10-03 Thread Andy Lutomirski
On Tue, Oct 3, 2017 at 8:10 AM, Darren Hart wrote: > On Tue, Oct 03, 2017 at 11:23:23AM +0200, Greg KH wrote: >> On Wed, Sep 27, 2017 at 11:02:16PM -0500, Mario Limonciello wrote: >> > For WMI operations that are only Set or Query read or write sysfs >> > attributes created by WMI vendor drivers m

Re: OOPS: linux-4.9.33/fs/pnode.c:propagate_one()

2017-10-03 Thread Eric W. Biederman
ebied...@xmission.com (Eric W. Biederman) writes: > Philipp Hahn writes: > >> We will try 4.9.52 next and see, if we can still reproduce it. Can you still reproduce this on 4.9.52? I am not seeing anything obvious that would result in last_source becomming NULL there so knowing I am not looknin

Re: [PATCH v5 2/2] staging: ion: create one device entry per heap

2017-10-03 Thread Mark Brown
On Mon, Oct 02, 2017 at 11:07:48AM -0700, Laura Abbott wrote: > Thinking about this a bit more, I'm not 100% sure if this > will allow the security rules we want. Heap ids are assigned > dynamically and therefore so will the /dev/ionX designation. > From my understanding, security rules like selin

[tip:perf/core] perf top: Add option to set the number of thread for event synthesize

2017-10-03 Thread tip-bot for Kan Liang
Commit-ID: 0c6b499495e928777c41ca2de4fbb58788269690 Gitweb: https://git.kernel.org/tip/0c6b499495e928777c41ca2de4fbb58788269690 Author: Kan Liang AuthorDate: Fri, 29 Sep 2017 07:47:55 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 3 Oct 2017 09:27:54 -0300 perf top: Add opt

[PATCHv2 1/1] [tools]: android/ion: userspace test utility for ion buffer sharing

2017-10-03 Thread Pintu Agarwal
This is a test utility to verify ION buffer sharing in user space between 2 independent processes. It uses unix domain socket as IPC to transfer an FD to another process and install it. This utility demonstrates how ION buffer sharing can be implemented between two user space processes, using vari

Re: usb/sound/bcd2000: warning in bcd2000_init_device

2017-10-03 Thread Alan Stern
On Tue, 3 Oct 2017, Takashi Iwai wrote: > > It's a dev_WARN because it indicates a potentially serious error in the > > driver: The driver has submitted an interrupt URB to a bulk endpoint. > > That may not sound bad, but the same check gets triggered if a driver > > submits a bulk URB to an i

Re: [RESEND PATCH] gpio: omap: Fix lost edge interrupts

2017-10-03 Thread Grygorii Strashko
Hi Santosh, On 10/03/2017 11:41 AM, Santosh Shilimkar wrote: > > > On 10/3/2017 9:17 AM, Grygorii Strashko wrote: >> Now acking of edge irqs happens the following way: >> - omap_gpio_irq_handler >>    - "isr" = read irq status >>    - omap_clear_gpio_irqbank(bank, isr_saved & ~level_mask); >>   

Re: [lockdep] b09be676e0 BUG: unable to handle kernel NULL pointer dereference at 000001f2

2017-10-03 Thread Linus Torvalds
On Tue, Oct 3, 2017 at 7:06 AM, Fengguang Wu wrote: > > This patch triggers a NULL-dereference bug at update_stack_state(). > Although its parent commit also has a NULL-dereference bug, however > the call stack looks rather different. Both dmesg files are attached. > > It also triggers this warnin

Re: [PATCH 02/16] hyper-v: trace vmbus_on_message()

2017-10-03 Thread Stephen Hemminger
On Thu, 21 Sep 2017 10:17:18 +0200 Vitaly Kuznetsov wrote: > Steven Rostedt writes: > > > On Wed, 20 Sep 2017 19:21:53 +0200 > > Vitaly Kuznetsov wrote: > > > >> diff --git a/drivers/hv/hv_trace.h b/drivers/hv/hv_trace.h > >> index 9a29ef55477d..72911dfc9682 100644 > >> --- a/drivers/hv/hv_t

Re: [lockdep] b09be676e0 BUG: unable to handle kernel NULL pointer dereference at 000001f2

2017-10-03 Thread Linus Torvalds
On Tue, Oct 3, 2017 at 9:54 AM, Linus Torvalds wrote: > > Can we consider just reverting the crossrelease thing? > > The apparent stack corruption really worries me [...] Side note: I also think the thing is just broken. Any actual cross-releaser should be way more annotated than just "set cross

Re: [PATCH 1/2] security/apparmor: Replace homebrew use of write_can_lock with lockdep

2017-10-03 Thread Will Deacon
On Tue, Oct 03, 2017 at 05:07:09PM +0200, Peter Zijlstra wrote: > On Tue, Oct 03, 2017 at 03:32:45PM +0100, Will Deacon wrote: > > The lockdep subsystem provides a robust way to assert that a lock is > > held, so use that instead of write_can_lock, which can give incorrect > > results for qrwlocks.

[PATCH v3 0/2] Allwinner XR819 SDIO Wi-Fi DT binding and OPi Zero XR819 IRQ

2017-10-03 Thread Icenowy Zheng
The Allwinner XR819 SDIO Wi-Fi chip supports an out-of-band interrupt line, and the in-band interrupt is also supported. However the current out-of-tree driver uses the out-of-band interrupt by default. This patchset adds the device tree binding for the chip as well as the out-of-band interrupt,

[PATCH v3 1/2] dt-bindings: add device tree binding for Allwinner XR819 SDIO Wi-Fi

2017-10-03 Thread Icenowy Zheng
Allwinner XR819 is a SDIO Wi-Fi chip, which has the functionality to use an out-of-band interrupt pin instead of SDIO in-band interrupt. Add the device tree binding of this chip, in order to make it possible to add this interrupt pin to device trees. Signed-off-by: Icenowy Zheng Acked-by: Rob He

[PATCH v3 2/2] ARM: sun8i: h2+: specify wifi interrupts for Orange Pi Zero

2017-10-03 Thread Icenowy Zheng
From: Sergey Matyukevich The Orange Pi Zero board has Allwinner XR819 SDIO wifi chip. The board dts file provides a node enabling mmc1 controller, and a out-of-band interrupt line of the chip is also connected, although the chip also supports in-band interrupt. The current out-of-tree driver is

[PATCH] pinctrl: cherryview: fix issues caused by dynamic gpio irqs mapping

2017-10-03 Thread Grygorii Strashko
New GPIO IRQs are allocated and mapped dynamically by default when GPIO IRQ infrastructure is used by cherryview-pinctrl driver. This causes issues on some Intel platforms [1][2] with broken BIOS which hardcodes Linux IRQ numbers in their ACPI tables. On such platforms cherryview-pinctrl driver sh

Re: [RESEND PATCH] prctl: add PR_[GS]ET_PDEATHSIG_PROC

2017-10-03 Thread Jürg Billeter
On Tue, 2017-10-03 at 09:46 -0500, Eric W. Biederman wrote: > There is a general need to find out about the death of other processes, > if you are not the parent of the process. I would be inclined to call > it waitfd. Something that you give a pid. It performs a permission > check and the pid

Re: [RESEND PATCH] prctl: add PR_[GS]ET_PDEATHSIG_PROC

2017-10-03 Thread Linus Torvalds
On Tue, Oct 3, 2017 at 9:36 AM, Eric W. Biederman wrote: > > *Scratches head* > pdeath_signal is cleared during exec if bprm->cap_elevated. It's not cleared if we are *releasing* capabilities, which is exactly what might cause a "we can no longer send a signal" > is_setid is set if the uid != ei

Re: [PATCH 10/12] writeback: only allow one inflight and pending full flush

2017-10-03 Thread Matthew Wilcox
On Tue, Oct 03, 2017 at 10:11:20AM -0600, Jens Axboe wrote: > On 10/03/2017 10:06 AM, Matthew Wilcox wrote: > > test_and_test_and_set_bit()? It's an unusual name, so when either > > reading it or writing it, people are going to say "something unusual > > here", rather than "That Jens Axboe is such

Re: [PATCH v1 3/5] dt-bindings: Add DT bindings for NVIDIA Tegra AHB DMA controller

2017-10-03 Thread Dmitry Osipenko
On 03.10.2017 18:38, Stephen Warren wrote: > On 10/03/2017 04:32 AM, Jon Hunter wrote: >> >> >> On 03/10/17 00:02, Dmitry Osipenko wrote: >>> On 02.10.2017 20:05, Stephen Warren wrote: On 09/29/2017 09:11 PM, Dmitry Osipenko wrote: > On 29.09.2017 22:30, Stephen Warren wrote: >> On 09/

Re: [PATCH v2 1/4] KVM: LAPIC: Fix lapic timer mode transition

2017-10-03 Thread Radim Krčmář
2017-09-28 18:04-0700, Wanpeng Li: > From: Wanpeng Li > > SDM 10.5.4.1 TSC-Deadline Mode mentioned that "Transitioning between > TSC-Deadline > mode and other timer modes also disarms the timer". So the APIC Timer Initial > Count > Register for one-shot/periodic mode should be reset. This patch

Re: [PATCH v2 2/4] KVM: LAPIC: Keep timer running when switching between one-shot and periodic mode

2017-10-03 Thread Radim Krčmář
2017-09-28 18:04-0700, Wanpeng Li: > From: Wanpeng Li > > If we take TSC-deadline mode timer out of the picture, the Intel SDM > does not say that the timer is disable when the timer mode is change, > either from one-shot to periodic or vice versa. I think it does, please see comment under [v2 1

Re: [PATCH v2 16/16] hyper-v: trace vmbus_send_tl_connect_request()

2017-10-03 Thread Stephen Hemminger
I added an additional set of trace points for when channel gets notified or signals host. diff -urNp linux-msft/drivers/hv/channel.c msft-4.14-rc3/drivers/hv/channel.c --- linux-msft/drivers/hv/channel.c 2017-10-03 10:06:54.893209237 -0700 +++ msft-4.14-rc3/drivers/hv/channel.c 2017-10-03 10

Re: [BUGFIX PATCH] kprobes/x86: Remove IRQ disabling from jprobe handlers

2017-10-03 Thread Ingo Molnar
* Masami Hiramatsu wrote: > On Tue, 3 Oct 2017 11:33:44 +0200 > Ingo Molnar wrote: > > > > > * Masami Hiramatsu wrote: > > > > > Jprobe actually doesn't need to disable IRQs while calling > > > handlers, because Documentation/kprobes.txt says: > > > > > > - > > > Probe handlers are ru

Re: [RFC] yamldt v0.5, now a DTS compiler too

2017-10-03 Thread Rob Herring
On Tue, Oct 3, 2017 at 9:13 AM, Pantelis Antoniou wrote: > Hi Rob, > > On Tue, 2017-10-03 at 08:18 -0500, Rob Herring wrote: >> On Mon, Oct 2, 2017 at 2:46 PM, Pantelis Antoniou >> wrote: >> > Hi Rob, >> > >> > On Sun, 2017-10-01 at 17:00 -0500, Rob Herring wrote: >> >> On Thu, Sep 28, 2017 at 2:

[PATCH v2 2/2] bus: arm-cci: Fix use of smp_processor_id() in preemptible context

2017-10-03 Thread Marc Zyngier
The ARM CCI driver seem to be using smp_processor_id() in a preemptible context, which is likely to make a DEBUG_PREMPT kernel scream at boot time. Turn this into a get_cpu()/put_cpu() that extends over the CPU hotplug registration, making sure that we don't race against a CPU down operation. Sig

[PATCH v2 0/2] bus: CCN/CCI: Fix use of smp_processor_id()

2017-10-03 Thread Marc Zyngier
I've just noticed that both the CCI and CCN drivers have a small buglet in that they call smp_processor_id() from preemptible context, which is frown upon (having just booted a 4.13 kernel with DEBUG_PREEMPT on my Seattle, I was surprised to be greeted with a nice backtrace...). I've tested the CC

[PATCH v2 1/2] bus: arm-ccn: Fix use of smp_processor_id() in preemptible context

2017-10-03 Thread Marc Zyngier
Booting a DEBUG_PREEMPT enabled kernel on a CCN-based system results in the following splat: [...] arm-ccn e800.ccn: No access to interrupts, using timer. BUG: using smp_processor_id() in preemptible [] code: swapper/0/1 caller is debug_smp_processor_id+0x1c/0x28 CPU: 1 PID: 1 Comm: sw

Re: [lockdep] b09be676e0 BUG: unable to handle kernel NULL pointer dereference at 000001f2

2017-10-03 Thread Ingo Molnar
* Linus Torvalds wrote: > On Tue, Oct 3, 2017 at 7:06 AM, Fengguang Wu wrote: > > > > This patch triggers a NULL-dereference bug at update_stack_state(). > > Although its parent commit also has a NULL-dereference bug, however > > the call stack looks rather different. Both dmesg files are attac

Re: [PATCH v2 0/2] bus: CCN/CCI: Fix use of smp_processor_id()

2017-10-03 Thread Mark Rutland
On Tue, Oct 03, 2017 at 06:14:11PM +0100, Marc Zyngier wrote: > I've just noticed that both the CCI and CCN drivers have a small > buglet in that they call smp_processor_id() from preemptible context, > which is frown upon (having just booted a 4.13 kernel with > DEBUG_PREEMPT on my Seattle, I was

Re: [PATCH] net: dsa: lan9303: make functions lan9303_mdio_phy_{read|write} static

2017-10-03 Thread David Miller
From: Colin King Date: Tue, 3 Oct 2017 11:39:18 +0100 > From: Colin Ian King > > The functions lan9303_mdio_phy_write and lan9303_mdio_phy_read are local > to the source and do not need to be in global scope, so make them static. > > Cleans up sparse warnings: > symbol 'lan9303_mdio_phy_write

Re: [PATCH] net: dsa: mt7530: make functions mt7530_phy_write static

2017-10-03 Thread David Miller
From: Colin King Date: Tue, 3 Oct 2017 11:46:33 +0100 > From: Colin Ian King > > The function mt7530_phy_write is local to the source and does not need to > be in global scope, so make it static. > > Cleans up sparse warnings: > symbol 'mt7530_phy_write' was not declared. Should it be static?

Re: [RESEND PATCH] gpio: omap: Fix lost edge interrupts

2017-10-03 Thread Ladislav Michl
On Tue, Oct 03, 2017 at 11:52:01AM -0500, Grygorii Strashko wrote: > Hi Santosh, > > On 10/03/2017 11:41 AM, Santosh Shilimkar wrote: > > > > > > On 10/3/2017 9:17 AM, Grygorii Strashko wrote: > >> Now acking of edge irqs happens the following way: > >> - omap_gpio_irq_handler > >>    - "isr" =

Re: [GIT PULL] percpu fixes for v4.14-rc3

2017-10-03 Thread Linus Torvalds
On Tue, Oct 3, 2017 at 6:26 AM, Tejun Heo wrote: > > * Mark noticed that the generic implementations of percpu local atomic > reads aren't properly protected against irqs and there's a (slim) > chance for split reads on some 32bit systems. Grr. Do we really want to support 64-bit percpu oper

Re: [PATCH v2 3/4] KVM: LAPIC: Apply change to TDCR right away to the timer

2017-10-03 Thread Radim Krčmář
2017-09-28 18:04-0700, Wanpeng Li: > From: Wanpeng Li > > The description in the Intel SDM of how the divide configuration > register is used: "The APIC timer frequency will be the processor's bus > clock or core crystal clock frequency divided by the value specified in > the divide configuration

Re: [PATCH] vfs: hard-ban creating files with control characters in the name

2017-10-03 Thread Adam Borowski
On Tue, Oct 03, 2017 at 12:40:12PM -0400, Theodore Ts'o wrote: > On Tue, Oct 03, 2017 at 03:07:24AM +0100, Al Viro wrote: > > That essay is full of shit, and you've even mentioned parts of that just > > above... > > NAK; you'd _still_ need proper quoting (or a shell with something > > resembling

Re: [lockdep] b09be676e0 BUG: unable to handle kernel NULL pointer dereference at 000001f2

2017-10-03 Thread Josh Poimboeuf
On Tue, Oct 03, 2017 at 11:28:15AM -0500, Josh Poimboeuf wrote: > There are two bugs: > > 1) Somebody -- presumably lockdep -- is corrupting the stack. Need the >lockdep people to look at that. > > 2) The 32-bit FP unwinder isn't handling the corrupt stack very well, >It's blindly derefe

Re: [PATCH 6/8] perf top: Implement multithreading for perf_event__synthesize_threads

2017-10-03 Thread Ingo Molnar
* Arnaldo Carvalho de Melo wrote: > From: Kan Liang > > The proc files which is sorted with alphabetical order are evenly > assigned to several synthesize threads to be processed in parallel. > > For 'perf top', the threads number hard code to online CPU number. The > following patch will int

Re: [RFC PATCH v2 19/31] KVM: arm64: Describe AT instruction emulation design

2017-10-03 Thread James Morse
Hi Jintack, On 03/10/17 04:11, Jintack Lim wrote: > This design overview will help to digest the subsequent patches that > implement AT instruction emulation. > diff --git a/arch/arm64/kvm/sys_regs.c b/arch/arm64/kvm/sys_regs.c > index 8d04926..d8728cc 100644 > --- a/arch/arm64/kvm/sys_regs.c > +

Re: [RFC] yamldt v0.5, now a DTS compiler too

2017-10-03 Thread Pantelis Antoniou
Hi Rob, On Tue, 2017-10-03 at 12:13 -0500, Rob Herring wrote: > On Tue, Oct 3, 2017 at 9:13 AM, Pantelis Antoniou > wrote: > > Hi Rob, > > > > On Tue, 2017-10-03 at 08:18 -0500, Rob Herring wrote: > >> On Mon, Oct 2, 2017 at 2:46 PM, Pantelis Antoniou > >> wrote: > >> > Hi Rob, > >> > > >> > On

Re: + pid-delete-struct-pidmap-nr_free.patch added to -mm tree

2017-10-03 Thread Gargi Sharma
On Tue, Oct 3, 2017 at 9:45 PM, Oleg Nesterov wrote: > On 10/02, Andrew Morton wrote: >> >> From: Alexey Dobriyan >> Subject: pid: delete struct pidmap::nr_free >> >> There is a check in pid allocation code to skip a full page: >> >> if (likely(atomic_read(&map->nr_free))) { >>

Re: [RESEND PATCH] prctl: add PR_[GS]ET_PDEATHSIG_PROC

2017-10-03 Thread Eric W. Biederman
Jürg Billeter writes: > On Tue, 2017-10-03 at 09:46 -0500, Eric W. Biederman wrote: >> There is a general need to find out about the death of other processes, >> if you are not the parent of the process. I would be inclined to call >> it waitfd. Something that you give a pid. It performs a pe

Re: usb/sound/bcd2000: warning in bcd2000_init_device

2017-10-03 Thread Greg Kroah-Hartman
On Tue, Oct 03, 2017 at 12:50:08PM -0400, Alan Stern wrote: > On Tue, 3 Oct 2017, Takashi Iwai wrote: > > > > It's a dev_WARN because it indicates a potentially serious error in the > > > driver: The driver has submitted an interrupt URB to a bulk endpoint. > > > That may not sound bad, but the

[tip:x86/urgent] kprobes/x86: Set up frame pointer in kprobe trampoline

2017-10-03 Thread tip-bot for Josh Poimboeuf
Commit-ID: ee213fc72fd67d0988525af501534f4cb924d1e9 Gitweb: https://git.kernel.org/tip/ee213fc72fd67d0988525af501534f4cb924d1e9 Author: Josh Poimboeuf AuthorDate: Tue, 3 Oct 2017 08:51:43 -0500 Committer: Ingo Molnar CommitDate: Tue, 3 Oct 2017 19:11:27 +0200 kprobes/x86: Set up frame

[tip:x86/urgent] kprobes/x86: Remove IRQ disabling from jprobe handlers

2017-10-03 Thread tip-bot for Masami Hiramatsu
Commit-ID: b664d57f39d01e775204d4f1a7e2f8bda77bc549 Gitweb: https://git.kernel.org/tip/b664d57f39d01e775204d4f1a7e2f8bda77bc549 Author: Masami Hiramatsu AuthorDate: Tue, 3 Oct 2017 16:18:02 +0900 Committer: Ingo Molnar CommitDate: Tue, 3 Oct 2017 19:11:48 +0200 kprobes/x86: Remove IRQ

Re: [PATCH v3 4/8] platform/x86: wmi: create character devices when requested by drivers

2017-10-03 Thread Greg KH
On Tue, Oct 03, 2017 at 09:48:05AM -0700, Andy Lutomirski wrote: > On Tue, Oct 3, 2017 at 8:10 AM, Darren Hart wrote: > > On Tue, Oct 03, 2017 at 11:23:23AM +0200, Greg KH wrote: > >> On Wed, Sep 27, 2017 at 11:02:16PM -0500, Mario Limonciello wrote: > >> > For WMI operations that are only Set or

Re: [RESEND PATCH] prctl: add PR_[GS]ET_PDEATHSIG_PROC

2017-10-03 Thread Jürg Billeter
On Tue, 2017-10-03 at 12:40 -0500, Eric W. Biederman wrote: > Jürg Billeter writes: > > What's actually the reason that CLONE_NEWPID requires CAP_SYS_ADMIN? > > Does CLONE_NEWPID pose any risks that don't exist for > > CLONE_NEWUSER|CLONE_NEWPID? Assuming we can't simply drop the > > CAP_SYS_ADM

Re: [PATCH v2] ide: add missing hwif->portdev freeing on hwif_init() failure

2017-10-03 Thread Bjorn Helgaas
[+cc linux-pci] My plan is to take these two additional fixes via the PCI tree, along with Lorenzo's patch to add a pci_assign_irq() call in ide_scan_pcidev(), since they're all related. On Tue, Oct 03, 2017 at 01:18:47PM +0200, Bartlomiej Zolnierkiewicz wrote: > Recent pci_assign_irq() changes u

Re: [PATCH v2 4/4] KVM: LAPIC: Don't silently accept bad vectors

2017-10-03 Thread Radim Krčmář
2017-09-28 18:04-0700, Wanpeng Li: > From: Wanpeng Li > > Vectors 0-15 are reserved, and a physical LAPIC - upon sending or > receiving one - would generate an APIC error instead of doing the > requested action. Make our emulation behave similarly. > > Cc: Paolo Bonzini > Cc: Radim Krčmář > Si

Re: [PATCH] pinctrl: cherryview: fix issues caused by dynamic gpio irqs mapping

2017-10-03 Thread Andy Shevchenko
On Tue, Oct 3, 2017 at 8:00 PM, Grygorii Strashko wrote: > New GPIO IRQs are allocated and mapped dynamically by default when > GPIO IRQ infrastructure is used by cherryview-pinctrl driver. > This causes issues on some Intel platforms [1][2] with broken BIOS which > hardcodes Linux IRQ numbers in

Re: Problems compiling with KCFLAGS="-frecord-gcc-switches"

2017-10-03 Thread Guenter Roeck
Hi Josh, On Fri, Sep 29, 2017 at 03:46:09PM -0500, Josh Poimboeuf wrote: > On Fri, Sep 29, 2017 at 01:00:56PM -0700, Guenter Roeck wrote: > > Hi Josh, > > > > when trying to compile an image with KCFLAGS="-frecord-gcc-switches", > > I get the folllowing build warning/error. > > > > make allmodco

Re: [PATCH v2] ide: add missing hwif->portdev freeing on hwif_init() failure

2017-10-03 Thread Bjorn Helgaas
[+cc linux-pci for real] My plan is to take these two additional fixes via the PCI tree, along with Lorenzo's patch to add a pci_assign_irq() call in ide_scan_pcidev(), since they're all related. On Tue, Oct 03, 2017 at 01:18:47PM +0200, Bartlomiej Zolnierkiewicz wrote: > Recent pci_assign_irq()

Re: Problems compiling with KCFLAGS="-frecord-gcc-switches"

2017-10-03 Thread Josh Poimboeuf
On Tue, Oct 03, 2017 at 10:54:57AM -0700, Guenter Roeck wrote: > Hi Josh, > > On Fri, Sep 29, 2017 at 03:46:09PM -0500, Josh Poimboeuf wrote: > > On Fri, Sep 29, 2017 at 01:00:56PM -0700, Guenter Roeck wrote: > > > Hi Josh, > > > > > > when trying to compile an image with KCFLAGS="-frecord-gcc-sw

Re: [PATCH] iommu/vt-d: Fix scatterlist offset handling

2017-10-03 Thread Robin Murphy
On 03/10/17 13:55, David Woodhouse wrote: > On Thu, 2017-09-28 at 15:14 +0100, Robin Murphy wrote: >> The intel-iommu DMA ops fail to correctly handle scatterlists where >> sg->offset is greater than PAGE_SIZE - the IOVA allocation is computed >> appropriately based on the page-aligned portion of t

Re: [PATCH] mm/mempolicy: fix NUMA_INTERLEAVE_HIT counter

2017-10-03 Thread Mel Gorman
On Tue, Oct 03, 2017 at 07:47:20PM +0300, Andrey Ryabinin wrote: > Commit 3a321d2a3dde separated NUMA counters from zone counters, but > the NUMA_INTERLEAVE_HIT call site wasn't updated to use the new interface. > So alloc_page_interleave() actually increments NR_ZONE_INACTIVE_FILE > instead of NUM

[PATCH 2/3] mm: slabinfo: dump CONFIG_SLABINFO

2017-10-03 Thread Yang Shi
According to the discussion with Christoph [1], it sounds it is pointless to keep CONFIG_SLABINFO around. This patch just remove CONFIG_SLABINFO config option, but /proc/slabinfo is still available. [1] https://marc.info/?l=linux-kernel&m=150695909709711&w=2 Signed-off-by: Yang Shi --- init/Kc

[PATCH 3/3] mm: oom: show unreclaimable slab info when unreclaimable slabs > user memory

2017-10-03 Thread Yang Shi
Kernel may panic when oom happens without killable process sometimes it is caused by huge unreclaimable slabs used by kernel. Although kdump could help debug such problem, however, kdump is not available on all architectures and it might be malfunction sometime. And, since kernel already panic it

[PATCH 0/3 v8] oom: capture unreclaimable slab info in oom message

2017-10-03 Thread Yang Shi
Recently we ran into a oom issue, kernel panic due to no killable process. The dmesg shows huge unreclaimable slabs used almost 100% memory, but kdump doesn't capture vmcore due to some reason. So, it may sound better to capture unreclaimable slab info in oom message when kernel panic to aid tr

[PATCH 1/3] tools: slabinfo: add "-U" option to show unreclaimable slabs only

2017-10-03 Thread Yang Shi
Add "-U" option to show unreclaimable slabs only. "-U" and "-S" together can tell us what unreclaimable slabs use the most memory to help debug huge unreclaimable slabs issue. Signed-off-by: Yang Shi Acked-by: Christoph Lameter Acked-by: David Rientjes --- tools/vm/slabinfo.c | 11 ++-

Re: [PATCH 0/3 v8] oom: capture unreclaimable slab info in oom message

2017-10-03 Thread Yang Shi
This round should be v9. Sorry for the typo. Yang On 10/3/17 11:06 AM, Yang Shi wrote: Recently we ran into a oom issue, kernel panic due to no killable process. The dmesg shows huge unreclaimable slabs used almost 100% memory, but kdump doesn't capture vmcore due to some reason. So, it may

Re: [PATCH] string.h: work around for increased stack usage

2017-10-03 Thread kbuild test robot
-increased-stack-usage/20171003-210611 config: x86_64-randconfig-ws0-10040032 (attached as .config) compiler: gcc-4.8 (Debian 4.8.4-1) 4.8.4 reproduce: # save the attached .config to linux build tree make ARCH=x86_64 All error/warnings (new ones prefixed by >>): In file include

Re: [PATCH] ARM: head-common.S: Clear lr before jumping to start_kernel()

2017-10-03 Thread Geert Uytterhoeven
On Tue, Oct 3, 2017 at 5:37 PM, Nicolas Pitre wrote: > On Tue, 3 Oct 2017, Geert Uytterhoeven wrote: > >> If CONFIG_DEBUG_LOCK_ALLOC=y, the kernel log is spammed with a few >> hundred identical messages: >> >> unwind: Unknown symbol address c0800300 >> unwind: Index not found c0800300 >> >

Re: [f2fs-dev] [PATCH v4] f2fs: introduce discard_granularity sysfs entry

2017-10-03 Thread Ju Hyung Park
Hi Chao. Yep, that patch seems to have fixed it. Doing "while true; do fstrim -v /; done" while "rm -rf"ing a 2GB kbuild directory (with lots of small .o files and stuff) ended flawlessly. I hope to see this patch merged with next 4.14 merge cycle. Thanks :) On Tue, Oct 3, 2017 at 12:59 AM, Cha

Re: [RESEND PATCH] gpio: omap: Fix lost edge interrupts

2017-10-03 Thread Santosh Shilimkar
On 10/3/2017 9:52 AM, Grygorii Strashko wrote: Hi Santosh, On 10/03/2017 11:41 AM, Santosh Shilimkar wrote: [...] This was one of the concern I was thinking when GPIO IRQ conversion was done. Grygorii since you did that conversion, can you please check since I see now that the irq code is

Re: [PATCH] ARM: head-common.S: Clear lr before jumping to start_kernel()

2017-10-03 Thread Geert Uytterhoeven
On Tue, Oct 3, 2017 at 8:11 PM, Geert Uytterhoeven wrote: > On Tue, Oct 3, 2017 at 5:37 PM, Nicolas Pitre > wrote: >> On Tue, 3 Oct 2017, Geert Uytterhoeven wrote: >> Please send it to RMK's patch system. > > Done (I hope so ;-) Failed. Retrying. Gr{oetje,eeting}s, Gee

Re: [PATCH] ARM: head-common.S: Clear lr before jumping to start_kernel()

2017-10-03 Thread Geert Uytterhoeven
On Tue, Oct 3, 2017 at 8:15 PM, Geert Uytterhoeven wrote: > On Tue, Oct 3, 2017 at 8:11 PM, Geert Uytterhoeven > wrote: >> On Tue, Oct 3, 2017 at 5:37 PM, Nicolas Pitre >> wrote: >>> On Tue, 3 Oct 2017, Geert Uytterhoeven wrote: >>> Please send it to RMK's patch system. >> >> Done (I hope so ;

[Regulator] Request for clarification - GPIO controlled regulator, USB VBUS,

2017-10-03 Thread Łukasz Majewski
Dear All, Maybe somebody could shed some light to following issue: On my setup I do have USB connected touchscreen powered from VBUS. The VBUS power is controlled by a GPIO pin, which in turn is governed by regulator API: reg_usbh1_vbus: usb-h1-vbus { compatible = "re

[PATCH v3] HID: i2c-hid: Allow ACPI systems to specify "post-power-on-delay-ms"

2017-10-03 Thread Rajat Jain
The property "post-power-on-delay-ms" allows a platform to specify the delay needed after power-on, but only via device trees currently. Use device_property_* instead of of_* reads to allow ACPI systems to also provide the same information. This is useful for Wacom hardware on ACPI systems. Signed

Re: [PATCH] pinctrl: cherryview: fix issues caused by dynamic gpio irqs mapping

2017-10-03 Thread Grygorii Strashko
On 10/03/2017 12:54 PM, Andy Shevchenko wrote: > On Tue, Oct 3, 2017 at 8:00 PM, Grygorii Strashko > wrote: >> New GPIO IRQs are allocated and mapped dynamically by default when >> GPIO IRQ infrastructure is used by cherryview-pinctrl driver. >> This causes issues on some Intel platforms [1][2]

Re: [PATCH v2] Use RX_BUF_SIZE to set size of RX buffer

2017-10-03 Thread Greg Kroah-Hartman
On Thu, Sep 28, 2017 at 11:07:40AM +0100, Martyn Welch wrote: > The imx serial driver uses PAGE_SIZE when allocating rx_buf, but then > uses RX_BUF_SIZE (which is currently defined as PAGE_SIZE) to describe > the length of the buffer when initialising the scatter gather list. > > In order to ensur

Re: [PATCH] HID: i2c-hid: Allow ACPI systems to specify "post-power-on-delay-ms"

2017-10-03 Thread Rajat Jain
On Tue, Oct 3, 2017 at 2:28 AM, Andy Shevchenko wrote: > + Cc: Jarkko, he spent a lot of nice hours to debug i2c HID touchscreen > devices on x86 ACPI enabled platforms, so, he might have a better idea > or some comments. Thanks Andy, I'll look out for any suggestions on inputs from Jarkko. > >

[PATCH v2 3/4] locking: Remove dummy arch_{read,spin,write}_relax implementations

2017-10-03 Thread Will Deacon
arch_{read,spin,write}_relax are defined as cpu_relax() by the core code, so architectures that can't do better (i.e. most of them) don't need to bother with the dummy definitions. Cc: Peter Zijlstra Signed-off-by: Will Deacon --- arch/arc/include/asm/spinlock.h | 4 arch/arm/incl

[PATCH v2 2/4] locking: Remove {read,spin,write}_can_lock

2017-10-03 Thread Will Deacon
Outside of the locking code itself, {read,spin,write}_can_lock have no users in tree. Apparmor (the last remaining user of write_can_lock) is moved over to lockdep by the previous patch. This patch removes the use of {read,spin,write}_can_lock from the BUILD_LOCK_OPS macro, deferring to the tryloc

[PATCH v2 1/4] security/apparmor: Replace homebrew use of write_can_lock with lockdep

2017-10-03 Thread Will Deacon
The lockdep subsystem provides a robust way to assert that a lock is held, so use that instead of write_can_lock, which can give incorrect results for qrwlocks. Cc: Peter Zijlstra Acked-by: John Johansen Signed-off-by: Will Deacon --- security/apparmor/include/lib.h | 11 --- security/

[PATCH v2 4/4] locking: Remove dummy arch_{read,spin,write}_lock_flags implementations

2017-10-03 Thread Will Deacon
The arch_{read,spin,write}_lock_flags macros are simply mapped to the non-flags versions by the majority of architectures, so do this in core code and remove the dummy implementations. Also remove the implementation in spinlock_up.h, since all callers of do_raw_spin_lock_flags call local_irq_save(f

Re: [PATCH v2 00/16] gpio: Tight IRQ chip integration and banked infrastructure

2017-10-03 Thread Grygorii Strashko
On 10/02/2017 02:55 AM, Linus Walleij wrote: > On Thu, Sep 28, 2017 at 4:22 PM, Grygorii Strashko > wrote: > >> Sry, but I do not agree with this series. >> - no prof that it can be re-used by other drivers than tegra >> (at least I do not see reasons to re-use it for any TI drivers) > > Thi

Re: [PATCH] serial: imx: Correct comment imx_flush_buffer()

2017-10-03 Thread Greg Kroah-Hartman
On Fri, Sep 29, 2017 at 10:22:19AM +0100, Martyn Welch wrote: > The comment in imx_flush_buffer() states that the state of 4 registers > are to be saved/restored, then only saves and restores 3 registers. The > missing register (UBRC) is read only and thus can't be restored. > > Update the comment

Re: [PATCH V8 0/8] block/scsi: safe SCSI quiescing

2017-10-03 Thread Oleksandr Natalenko
Also Tested-by: Oleksandr Natalenko for whole v8. On úterý 3. října 2017 16:03:58 CEST Ming Lei wrote: > Hi Jens, > > Please consider this patchset for V4.15, and it fixes one > kind of long-term I/O hang issue in either block legacy path > or blk-mq. > > The current SCSI quiesce isn't safe a

[PATCH 1/2] scripts/dtc: add fdt_overlay.c and fdt_addresses.c to sync script

2017-10-03 Thread Rob Herring
libfdt has gained some new files. We need to include them in the kernel's copy. Reported-by: Kyle Yan Signed-off-by: Rob Herring --- scripts/dtc/update-dtc-source.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/dtc/update-dtc-source.sh b/scripts/dtc/update-dtc-

[PATCH 2/2] scripts/dtc: Update to upstream version v1.4.5-3-gb1a60033c110

2017-10-03 Thread Rob Herring
This adds the following commits from upstream: b1a60033c110 tests: Add a test for overlays syntactic sugar 737b2df39cc8 overlay: Add syntactic sugar version of overlays 497432fd2131 checks: Use proper format modifier for size_t 22a65c5331c2 dtc: Bump version to v1.4.5 c575d8059fff Add fdtoverlay t

<    4   5   6   7   8   9   10   11   >