[RFC PATCH 2/2] memcg: do not report racy no-eligible OOM tasks

2018-10-22 Thread Michal Hocko
From: Michal Hocko Tetsuo has reported [1] that a single process group memcg might easily swamp the log with no-eligible oom victim reports due to race between the memcg charge and oom_reaper Thread 1Thread2 oom_reaper try_charge try_charge

[RFC PATCH 0/2] oom, memcg: do not report racy no-eligible OOM

2018-10-22 Thread Michal Hocko
Hi, this is a follow up for [1] which has been nacked mostly because Tetsuo was able to find a simple workload which can trigger a race where no-eligible task is reported without a good reason. I believe the patch2 addresses that issue and we do not have to play dirty games with throttling just bec

[RFC PATCH 1/2] mm, oom: marks all killed tasks as oom victims

2018-10-22 Thread Michal Hocko
From: Michal Hocko Historically we have called mark_oom_victim only to the main task selected as the oom victim because oom victims have access to memory reserves and granting the access to all killed tasks could deplete memory reserves very quickly and cause even larger problems. Since only a p

Re: [PATCH 0/7] Add some fixes and new feature for SPRD DMA

2018-10-22 Thread Baolin Wang
On 21 October 2018 at 00:30, Vinod wrote: > On 18-10-18, 17:29, Baolin Wang wrote: >> Hi Vinod, >> >> On 29 September 2018 at 13:48, Baolin Wang wrote: >> > This patchset removes the direction usage from struct dma_slave_config, >> > and add one new field to save the direction. It also fixes some

Re: [PATCH V2 1/5] mm/hugetlb: Enable PUD level huge page migration

2018-10-22 Thread Michal Hocko
On Mon 22-10-18 08:31:05, Anshuman Khandual wrote: > On 10/19/2018 01:39 PM, Michal Hocko wrote: > > I would probably fold it into the one which defines arch specific hook. > > Hmm but that may be like doing two functionality changes together. Adding one > more conditional check and at the same ti

Re: [PATCH v3] of: overlay: user space synchronization

2018-10-22 Thread Frank Rowand
On 10/19/18 9:06 AM, Rob Herring wrote: > On Thu, Oct 18, 2018 at 7:06 PM Frank Rowand wrote: >> >> On 10/18/18 12:32, Rob Herring wrote: >>> On Tue, Oct 16, 2018 at 05:34:26PM -0700, frowand.l...@gmail.com wrote: From: Frank Rowand When an overlay is applied or removed, the live d

Linux 4.19

2018-10-22 Thread Greg KH
Hi everyone! It's been a long strange journey for this kernel release... While it was not the largest kernel release every by number of commits, it was larger than the last 3 releases, which is a non-trivial thing to do. After the original -rc1 bumps, things settled down on the code side and it

Re: [PATCH v1 2/2] x86/hyperv: make HvNotifyLongSpinWait hypercall

2018-10-22 Thread Juergen Gross
On 22/10/2018 03:53, Yi Sun wrote: > On 18-10-19 16:20:52, Juergen Gross wrote: >> On 19/10/2018 15:13, Yi Sun wrote: > > [...] > >>> diff --git a/kernel/locking/qspinlock_paravirt.h >>> b/kernel/locking/qspinlock_paravirt.h >>> index 0130e48..9e88c7e 100644 >>> --- a/kernel/locking/qspinlock_pa

Re: [PATCH v3 1/2] mtd: spi-nor: add support to non-uniform SFDP SPI NOR flash memories

2018-10-22 Thread Boris Brezillon
On Mon, 22 Oct 2018 06:04:13 + Yogesh Narayan Gaur wrote: > Hi Boris, Tudor, > > > -Original Message- > > From: Boris Brezillon [mailto:boris.brezil...@bootlin.com] > > Sent: Wednesday, October 17, 2018 3:23 PM > > To: Yogesh Narayan Gaur > > Cc: Cyrille Pitchen ; Tudor Ambarus > >

Re: Linux 4.19

2018-10-22 Thread Joe Perches
On Mon, 2018-10-22 at 08:32 +0100, Greg KH wrote: > Greg Kroah-Hartman (7): > Code of Conduct Interpretation: Add document explaining how the Code of > Conduct is to be interpreted > Code of Conduct Interpretation: Properly reference the TAB correctly > Code of Conduct: Provide

[PATCH v6 5/6] dt-bindings: power: Add Spreadtrum SC27XX fuel gauge unit documentation

2018-10-22 Thread Baolin Wang
This patch adds the binding documentation for Spreadtrum SC27XX series PMICs fuel gauge unit device, which is used to calculate the battery capacity. Signed-off-by: Baolin Wang Reviewed-by: Linus Walleij Reviewed-by: Rob Herring --- Changes from v5: - None. Changes from v4: - None. Changes

[PATCH v6 2/6] power: supply: core: Add one field to present the battery internal resistance

2018-10-22 Thread Baolin Wang
Add one field for 'struct power_supply_battery_info' to present the battery factory internal resistance. Signed-off-by: Baolin Wang Reviewed-by: Linus Walleij --- Changes from v5: - None. Changes from v4: - None. Changes from v3: - New patch in v3, which splits code into one separate patch.

[PATCH v6 6/6] power: supply: Add Spreadtrum SC27XX fuel gauge unit driver

2018-10-22 Thread Baolin Wang
This patch adds the Spreadtrum SC27XX serial PMICs fuel gauge support, which is used to calculate the battery capacity. Original-by: Yuanjiang Yu Signed-off-by: Baolin Wang Acked-by: Linus Walleij --- Changes from v5: - Save the OCV values in micro volts for OCV capacity table. - Use devm_kme

[PATCH v6 4/6] power: supply: core: Add some helpers to use the battery OCV capacity table

2018-10-22 Thread Baolin Wang
We have introduced some battery properties to present the OCV table temperatures and OCV capacity table values. Thus this patch add OCV temperature and OCV table for battery information, as well as providing some helper functions to use the OCV capacity table for users. Signed-off-by: Baolin Wang

[PATCH v6 3/6] dt-bindings: power: Introduce properties to present the battery OCV capacity table

2018-10-22 Thread Baolin Wang
Some battery driver will use the open circuit voltage (OCV) value to look up the corresponding battery capacity percent in one certain degree Celsius. Thus this patch provides some battery properties to present the OCV table temperatures and OCV capacity table values. Suggested-by: Sebastian Reich

[PATCH v6 1/6] dt-bindings: power: Introduce one property to present the battery internal resistance

2018-10-22 Thread Baolin Wang
The internal resistance of a battery is not a constant in its life cycle, this varies over the age of the battery or temperature and so on. But we just want use one constant battery internal resistance to estimate the battery capacity. Thus this patch introduces one property to present the battery

Re: 32-bit PTI with THP = userspace corruption

2018-10-22 Thread Joerg Roedel
On Sun, Oct 21, 2018 at 02:37:45PM +0200, Pavel Machek wrote: > On Tue 2018-09-18 14:00:30, Alan Cox wrote: > > There are pretty much no machines that don't support PAE and are still > > even vaguely able to boot a modern Linux kernel. The oddity is the > > Pentium-M but most distros shipped a hack

Re: [PATCH] thunderbolt: Fix a missing-check bug

2018-10-22 Thread Mika Westerberg
On Fri, Oct 19, 2018 at 04:25:01PM -0500, Wenwen Wang wrote: > Hi Mika, Hi, > Thanks for your response. The current version of the code assumes that > the Thunderbolt controller behaves as expected, e.g., the host > controller should not touch the data after it is marked ready. > However, it is n

Re: [RFC PATCH 1/2] mm, oom: marks all killed tasks as oom victims

2018-10-22 Thread Tetsuo Handa
Michal Hocko wrote: > --- a/mm/oom_kill.c > +++ b/mm/oom_kill.c > @@ -898,6 +898,7 @@ static void __oom_kill_process(struct task_struct *victim) > if (unlikely(p->flags & PF_KTHREAD)) > continue; > do_send_sig_info(SIGKILL, SEND_SIG_FORCED, p, PIDTY

Re: [PATCH v3 1/2] mtd: spi-nor: add support to non-uniform SFDP SPI NOR flash memories

2018-10-22 Thread Boris Brezillon
On Mon, 22 Oct 2018 06:04:13 + Yogesh Narayan Gaur wrote: > -static const u32 *spi_nor_get_map_in_use(struct spi_nor *nor, const u32 > *smpt) > +static const u32 *spi_nor_get_map_in_use(struct spi_nor *nor, const u32 > *smpt, u32 smpt_len) > { > const u32 *ret = NULL; > - u32

Re: [PATCH] thunderbolt: Fix a missing-check bug

2018-10-22 Thread Mika Westerberg
Hi, On Sat, Oct 20, 2018 at 12:55:51PM -0500, Wenwen Wang wrote: > In tb_ctl_rx_callback(), the checksum of the received control packet is > calculated on 'pkg->buffer' through tb_crc() and saved to 'crc32', Then, > 'crc32' is compared with the received checksum to confirm the integrity of > the r

Re: [PATCH] thunderbolt: fix a missing-check bug

2018-10-22 Thread Mika Westerberg
Hi, On Sat, Oct 20, 2018 at 01:38:18PM -0500, Wenwen Wang wrote: > In icm_copy(), the packet id 'hdr->packet_id' is firstly compared against > 'req->npackets'. If it is less than 'req->npackets', the received packet. > i.e., 'pkg->buffer', is then copied to 'req->response + offset' through > memcp

Re: [PATCH] thunderbolt: fix a missing-check bug

2018-10-22 Thread Mika Westerberg
On Sat, Oct 20, 2018 at 02:47:49PM -0500, Wenwen Wang wrote: > In ring_work(), the first while loop is used to collect all completed > frames from the ring buffer. In each iteration of this loop, the flag of > the frame, i.e., 'ring->descriptors[ring->tail].flags' is firstly check to > see whether

Re: [PATCH] thunderbolt: fix a missing-check bug

2018-10-22 Thread Mika Westerberg
On Sat, Oct 20, 2018 at 03:15:56PM -0500, Wenwen Wang wrote: > In tb_ring_poll(), the flag of the frame, i.e., > 'ring->descriptors[ring->tail].flags', is checked to see whether the frame > is completed. If yes, the frame including the flag will be read from the > ring and returned to the caller. T

Re: [RFC PATCH 29/30] softirq: Make softirq processing softinterruptible

2018-10-22 Thread Pavan Kondeti
Hi Frederic, On Wed, Oct 17, 2018 at 02:26:02AM +0200, Frederic Weisbecker wrote: > Hi Pavan, > > On Tue, Oct 16, 2018 at 09:45:52AM +0530, Pavan Kondeti wrote: > > Hi Frederic, > > > > On Thu, Oct 11, 2018 at 01:12:16AM +0200, Frederic Weisbecker wrote: > > > From: Frederic Weisbecker > > > >

Re: [PATCH] fs: ufs: Remove switch statement from ufs_set_de_type function

2018-10-22 Thread Phillip Potter
On Sun, Oct 21, 2018 at 02:02:57PM +0300, Amir Goldstein wrote: > Yes. If you are looking for a cleanup task, you can > apply relevant patches from my series, starting with: > https://patchwork.kernel.org/patch/9481237/ > (Leave the xfs patch [11/11] out) > > But besides verifying that patches sti

Re: [PATCH v3 1/2] mtd: spi-nor: add support to non-uniform SFDP SPI NOR flash memories

2018-10-22 Thread Tudor Ambarus
Hi, Please amend this as well. Thanks! --- drivers/mtd/spi-nor/spi-nor.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c index 3a9b69e9ba6d..3019708696cd 100644 --- a/drivers/mtd/spi-nor/spi-nor.c +++

Re: Memory management issue in 4.18.15

2018-10-22 Thread Michal Hocko
Cc som more people. I am wondering why 172b06c32b94 ("mm: slowly shrink slabs with a relatively small number of objects") has been backported to the stable tree when not marked that way. Put that aside it seems likely that the upstream kernel will have the same issue I suspect. Roman, could you ha

RE: [PATCH v3 1/2] mtd: spi-nor: add support to non-uniform SFDP SPI NOR flash memories

2018-10-22 Thread Yogesh Narayan Gaur
HI, > -Original Message- > From: Boris Brezillon [mailto:boris.brezil...@bootlin.com] > Sent: Monday, October 22, 2018 1:32 PM > To: Yogesh Narayan Gaur > Cc: Cyrille Pitchen ; Tudor Ambarus > ; marek.va...@gmail.com; > dw...@infradead.org; computersforpe...@gmail.com; rich...@nod.at; >

Re: [RFC PATCH 1/2] mm, oom: marks all killed tasks as oom victims

2018-10-22 Thread Michal Hocko
On Mon 22-10-18 16:58:50, Tetsuo Handa wrote: > Michal Hocko wrote: > > --- a/mm/oom_kill.c > > +++ b/mm/oom_kill.c > > @@ -898,6 +898,7 @@ static void __oom_kill_process(struct task_struct > > *victim) > > if (unlikely(p->flags & PF_KTHREAD)) > > continue; > >

Re: [PATCH 00/10] tools: Various build flags fixes

2018-10-22 Thread Jiri Olsa
On Wed, Oct 17, 2018 at 09:28:16AM -0600, Shuah Khan wrote: > On 10/17/2018 07:23 AM, Thomas Renninger wrote: > > On Tuesday, October 16, 2018 5:06:05 PM CEST Jiri Olsa wrote: > >> hi, > >> while hardening some of the tools rpm, we noticed we > >> can't pass build flags to some of them. > >> > >> S

Re: [RFC/RFT/[PATCH] cpuidle: New timer events oriented governor for tickless systems

2018-10-22 Thread Giovanni Gherdovich
Hello Rafael, I ran some benchmarks and will send you a detailed report later; for now I have some questions to make sure I understand the code. First off, I like your algorithm and you make an excellent job at documenting it with comments. Since it's a heuristic, it's not "obvious" code and comm

Re: [PATCH 09/10] tools iio: Override CFLAGS assignments

2018-10-22 Thread Jiri Olsa
On Sun, Oct 21, 2018 at 01:26:34PM +0100, Jonathan Cameron wrote: > On Tue, 16 Oct 2018 17:06:14 +0200 > Jiri Olsa wrote: > > > So user could specify outside CFLAGS values. > Applied to the togreg branch of iio.git and pushed out as testing > for the autobuilders to poke at them. thanks, jirka

Re: [PATCH v2 3/3] pinctrl: upboard: Add UP2 pinctrl and gpio driver

2018-10-22 Thread Linus Walleij
On Fri, Oct 19, 2018 at 7:16 PM Dan O'Donovan wrote: > From: Javier Arteaga > > The UP2 board features a Raspberry Pi compatible pin header (HAT) and a > board-specific expansion connector (EXHAT). Which makes me want to have Eric Anholt's review on this patch so as to secure basic interoperabi

Re: Call to Action Re: [PATCH 0/7] Code of Conduct: Fix some wording, and add an interpretation document

2018-10-22 Thread Rainer Fiebig
Am Montag, 22. Oktober 2018, 08:20:11 schrieb NeilBrown: > On Sat, Oct 20 2018, Greg Kroah-Hartman wrote: > > Hi all, > > > > As everyone knows by now, we added a new Code of Conduct to the kernel > > tree a few weeks ago. > > I wanted to stay detached from all this, but as remaining (publicly)

Re: [PATCH v3 1/2] mtd: spi-nor: add support to non-uniform SFDP SPI NOR flash memories

2018-10-22 Thread Boris Brezillon
On Mon, 22 Oct 2018 08:32:21 + Yogesh Narayan Gaur wrote: > HI, > > > > -Original Message- > > From: Boris Brezillon [mailto:boris.brezil...@bootlin.com] > > Sent: Monday, October 22, 2018 1:32 PM > > To: Yogesh Narayan Gaur > > Cc: Cyrille Pitchen ; Tudor Ambarus > > ; marek.va...

Re: [RFC] Merging ftrace_stack, perf_callchain, oprofile->backtrace and stack_trace

2018-10-22 Thread Peter Zijlstra
On Sun, Oct 21, 2018 at 08:31:06PM +1100, Aleksa Sarai wrote: > Hi all, > > I'm currently working on a patchset to make kretprobes produce > reasonable stack traces[1], and it appears this is a generic problem > across the entire kernel -- you can see the same kretprobe_trampoline() > issue when u

Re: [PATCH v3 1/2] mtd: spi-nor: add support to non-uniform SFDP SPI NOR flash memories

2018-10-22 Thread Boris Brezillon
On Mon, 22 Oct 2018 06:04:13 + Yogesh Narayan Gaur wrote: > - /* Find the matching configuration map */ > - while (SMPT_MAP_ID(smpt[i]) != map_id) { > - if (smpt[i] & SMPT_DESC_END) > - goto out; > + if (map_id_is_valid) > +

[PATCH v1] ARM: dts: imx6ul: ccimx6ulsom: Add support for wireless SOM variant

2018-10-22 Thread Alex Gonzalez
The wireless variants of the ConnecCore 6UL SOM include a Qualcomm QCA6564 wireless chip with dual WiFi and Bluetooth. Both the ConnectCore 6UL SBC Express and Pro boards fit a wireless SOM. The Wifi is connected through the SDIO interface on usdhc1 and the Bluetooth is connected via uart1. Sign

Re: [PATCH RFC 1/1] drivers: pinctrl: qcom: add wakeup capability to GPIO

2018-10-22 Thread Marc Zyngier
On Fri, 19 Oct 2018 20:47:12 +0100, Lina Iyer wrote: > > On Fri, Oct 19 2018 at 09:53 -0600, Marc Zyngier wrote: > > Hi Lina, > > > > On 19/10/18 16:32, Lina Iyer wrote: > >> Hi folks, > >> > >> On Wed, Oct 10 2018 at 18:30 -0600, Lina Iyer wrote: > > [...] > > >>> +static irqreturn_t wake_ir

[PATCH v1] ARM: dts: imx6ul: ccimx6ulsom: Add support for wireless SOM variant

2018-10-22 Thread Alex Gonzalez
The wireless variants of the ConnecCore 6UL SOM include a Qualcomm QCA6564 wireless chip with dual WiFi and Bluetooth. The QCA6564 uses the out-of-tree driver at: https://source.codeaurora.org/quic/la/platform/vendor/qcom-opensource/wlan/qcacld-2.0/ Blueooth uses the HCI H4 UART driver. Changes

[PATCH] perf stat: Poll for monitored tasks being alive

2018-10-22 Thread Jiri Olsa
Adding the check for tasks we monitor via -p/-t options, and finish stat if there's no longer task to monitor. Cc: Jin Yao Requested-by: Stephane Eranian Link: http://lkml.kernel.org/n/tip-dfqvnvz0oqu5zg149aquz...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 24 +

[PATCH] ARM: kprobes: Fix false positive with FORTIFY_SOURCE

2018-10-22 Thread Kees Cook
The arm compiler internally interprets an inline assembly label as an unsigned long value, not a pointer. As a result, under CONFIG_FORTIFY_SOURCE, the size of the array pointed to by an address of a label is 4 bytes, which was tripping the runtime checks. Instead, we can just cast the label (as do

Re: 4.14 backport request for dbdda842fe96f: "printk: Add console owner and waiter logic to load balance console writes"

2018-10-22 Thread Petr Mladek
On Sun 2018-10-21 11:09:22, Daniel Wang wrote: > Just got back from vacation. Thanks for the continued discussion. Just so > I understand the current state. Looks like we've got a pretty good explanation > of what's going on (though not completely sure), and backporting Steven's > patches is still

Re: [RFC v4 0/2] WhiteEgret LSM module

2018-10-22 Thread Tetsuo Handa
Steve Kemp wrote: > This is an interesting idea, and an evolution since the initial > approach which was submitted based upon xattr attributes. I still > find the idea of using attributes simpler to manage though, since > they're easy to add, and audit for. > > I suspect the biggest objection to

Re: [RFC v4 PATCH 3/5] mm/rmqueue_bulk: alloc without touching individual page structure

2018-10-22 Thread Vlastimil Babka
On 10/17/18 8:33 AM, Aaron Lu wrote: > Profile on Intel Skylake server shows the most time consuming part > under zone->lock on allocation path is accessing those to-be-returned > page's "struct page" on the free_list inside zone->lock. One explanation > is, different CPUs are releasing pages to th

Re: [PATCH 1/2] perf script: allow extended console debug output

2018-10-22 Thread Jiri Olsa
On Sun, Oct 21, 2018 at 09:14:23PM +0200, Milian Wolff wrote: > The script tool isn't using a browser, yet use_browser > wasn't set explicitly to zero. This in turn lead to confusing > output such as: > > ``` > $ perf script -vvv ... > ... > overlapping maps in /home/milian/foobar (disable tui for

Re: [PATCH v7 1/6] seccomp: add a return code to trap to userspace

2018-10-22 Thread Christian Brauner
On Sun, Oct 21, 2018 at 05:04:37PM +0100, Tycho Andersen wrote: > On Wed, Oct 17, 2018 at 03:21:02PM -0700, Kees Cook wrote: > > On Wed, Oct 17, 2018 at 1:29 PM, Tycho Andersen wrote: > > > On Thu, Sep 27, 2018 at 02:31:24PM -0700, Kees Cook wrote: > > >> On Thu, Sep 27, 2018 at 8:11 AM, Tycho And

Re: [RFC PATCH 1/2] mm, oom: marks all killed tasks as oom victims

2018-10-22 Thread Tetsuo Handa
On 2018/10/22 17:48, Michal Hocko wrote: > On Mon 22-10-18 16:58:50, Tetsuo Handa wrote: >> Michal Hocko wrote: >>> --- a/mm/oom_kill.c >>> +++ b/mm/oom_kill.c >>> @@ -898,6 +898,7 @@ static void __oom_kill_process(struct task_struct >>> *victim) >>> if (unlikely(p->flags & PF_KTHREAD)

Re: [PATCH 2/2] perf script: flush output stream after events in verbose mode

2018-10-22 Thread Jiri Olsa
On Sun, Oct 21, 2018 at 09:14:24PM +0200, Milian Wolff wrote: > When the perf script output is written to a terminal stream, > the normal output of `perf script` would get buffered, but its > debug output would be written directly. This made it quite hard > to figure out where a given debug output

Re: [PATCH RFC] panic: Avoid extra noisy messages due to stopped cpus

2018-10-22 Thread Feng Tang
Hi maintainers, On Thu, Oct 11, 2018 at 05:59:41PM +0800, Feng Tang wrote: > Hi Peter, > > On Thu, Oct 11, 2018 at 11:35:00AM +0200, Peter Zijlstra wrote: > > On Thu, Oct 11, 2018 at 03:17:48PM +0800, Feng Tang wrote: > > > Sometimes when debugging kernel panic, we saw many extra noisy error > >

RE: [PATCH 3/3] fpga manager: Adding FPGA Manager support for Xilinx zynqmp

2018-10-22 Thread Nava kishore Manne
Hi Moritz, Thanks for the quick response... Please find my response inline... > -Original Message- > From: Moritz Fischer [mailto:moritz.fischer.priv...@gmail.com] > Sent: Saturday, October 20, 2018 2:54 AM > To: Nava kishore Manne > Cc: Alan Tull ; Rob Herring ; Mark > Rutland ;

Re: [PATCH 2/2] Compiler Attributes: auxdisplay: panel: use __fallthrough

2018-10-22 Thread Miguel Ojeda
On Sun, Oct 21, 2018 at 8:11 PM Joe Perches wrote: > > On Sun, 2018-10-21 at 19:14 +0200, Miguel Ojeda wrote: > > Let gcc know these cases are meant to fall through to the next label > > by annotating them with the new __fallthrough statement attribute; > > and remove the comment since it conveys

Re: [PATCH] mfd: tps6586x: Handle interrupts on suspend

2018-10-22 Thread Thierry Reding
On Fri, Oct 19, 2018 at 02:22:53PM +0100, Jon Hunter wrote: > From: Jonathan Hunter > > The tps6586x driver creates an irqchip that is used by its various child > devices for managing interrupts. The tps6586x-rtc device is one of its > children that uses the tps6586x irqchip. When using the tps65

[PATCH] parisc: remove the dead ccio-rm-dma driver

2018-10-22 Thread Christoph Hellwig
This driver has never been wired up due to the life of the Linux git tree, and has severely bitrotted. Signed-off-by: Christoph Hellwig --- drivers/parisc/Makefile | 3 - drivers/parisc/ccio-rm-dma.c | 202 --- 2 files changed, 205 deletions(-) delete mode

Re: KASAN: use-after-free Read in task_is_descendant

2018-10-22 Thread Oleg Nesterov
On 10/21, Tetsuo Handa wrote: > > On 2018/10/21 16:10, syzbot wrote: > > BUG: KASAN: use-after-free in __read_once_size include/linux/compiler.h:188 > > [inline] > > BUG: KASAN: use-after-free in task_is_descendant.part.2+0x610/0x670 > > security/yama/yama_lsm.c:295 > > Read of size 8 at addr fff

RE: [PATCH 3/3] fpga manager: Adding FPGA Manager support for Xilinx zynqmp

2018-10-22 Thread Nava kishore Manne
Hi Mortiz, Thanks for the quick response Please find my response inline. > -Original Message- > From: Moritz Fischer [mailto:moritz.fisc...@ettus.com] > Sent: Saturday, October 20, 2018 7:02 AM > To: Moritz Fischer > Cc: Nava kishore Manne ; Alan Tull ; > Rob Herring ; Mark Rutland ;

RE: [PATCH v3 1/2] mtd: spi-nor: add support to non-uniform SFDP SPI NOR flash memories

2018-10-22 Thread Yogesh Narayan Gaur
Hi, > -Original Message- > From: Boris Brezillon [mailto:boris.brezil...@bootlin.com] > Sent: Monday, October 22, 2018 2:46 PM > To: Yogesh Narayan Gaur > Cc: Tudor Ambarus ; rich...@nod.at; Mark > Brown ; linux-kernel@vger.kernel.org; > nicolas.fe...@microchip.com; marek.va...@gmail.com

Re: [PATCH] parisc: remove the dead ccio-rm-dma driver

2018-10-22 Thread Helge Deller
On 22.10.2018 11:52, Christoph Hellwig wrote: > This driver has never been wired up due to the life of the Linux > git tree, and has severely bitrotted. > > Signed-off-by: Christoph Hellwig Thanks Christoph! I've already queued it up in the parisc for-next git tree: https://git.kernel.org/pub/s

Re: KASAN: use-after-free Read in task_is_descendant

2018-10-22 Thread Tetsuo Handa
On 2018/10/22 18:54, Oleg Nesterov wrote: > On 10/21, Tetsuo Handa wrote: >> >> On 2018/10/21 16:10, syzbot wrote: >>> BUG: KASAN: use-after-free in __read_once_size include/linux/compiler.h:188 >>> [inline] >>> BUG: KASAN: use-after-free in task_is_descendant.part.2+0x610/0x670 >>> security/yama

Re: [PATCH 2/2] perf script: flush output stream after events in verbose mode

2018-10-22 Thread Milian Wolff
On Montag, 22. Oktober 2018 11:43:17 CEST Jiri Olsa wrote: > On Sun, Oct 21, 2018 at 09:14:24PM +0200, Milian Wolff wrote: > > When the perf script output is written to a terminal stream, > > the normal output of `perf script` would get buffered, but its > > debug output would be written directly.

Re: 4.14 backport request for dbdda842fe96f: "printk: Add console owner and waiter logic to load balance console writes"

2018-10-22 Thread Sergey Senozhatsky
On (10/21/18 11:09), Daniel Wang wrote: > > Just got back from vacation. Thanks for the continued discussion. Just so > I understand the current state. Looks like we've got a pretty good explanation > of what's going on (though not completely sure), and backporting Steven's > patches is still the

Re: [PATCH v3 1/2] mtd: spi-nor: add support to non-uniform SFDP SPI NOR flash memories

2018-10-22 Thread Boris Brezillon
On Mon, 22 Oct 2018 10:03:55 + Yogesh Narayan Gaur wrote: > Hi, > > > > -Original Message- > > From: Boris Brezillon [mailto:boris.brezil...@bootlin.com] > > Sent: Monday, October 22, 2018 2:46 PM > > To: Yogesh Narayan Gaur > > Cc: Tudor Ambarus ; rich...@nod.at; Mark > > Brown ;

Re: [tip:locking/core 6/10] arch/x86/include/asm/rmwcc.h:23:17: error: jump into statement expression

2018-10-22 Thread Peter Zijlstra
On Sat, Oct 20, 2018 at 11:05:11AM +0800, kbuild test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > locking/core > head: 01a14bda11add9dcd4a59200f13834d634559935 > commit: 7aa54be2976550f17c11a1c3e3630002dea39303 [6/10] locking/qspinlock, > x86: Provide li

Re: [PATCH 2/2] perf script: flush output stream after events in verbose mode

2018-10-22 Thread Jiri Olsa
On Mon, Oct 22, 2018 at 12:09:22PM +0200, Milian Wolff wrote: > On Montag, 22. Oktober 2018 11:43:17 CEST Jiri Olsa wrote: > > On Sun, Oct 21, 2018 at 09:14:24PM +0200, Milian Wolff wrote: > > > When the perf script output is written to a terminal stream, > > > the normal output of `perf script` wo

[PATCH] i2c: at91: switched to resume/suspend callbacks.

2018-10-22 Thread Andrei.Stefanescu
In the previous version of the driver resume/suspend_noirq callbacks were used. Because of this, when resuming from suspend-to-ram, an I2C (belonging to a FLEXCOM) would resume before FLEXCOM. The first read on the I2C bus would then result in a timeout. This patch switches to resume/suspend callb

RE: [PATCH v3 1/2] mtd: spi-nor: add support to non-uniform SFDP SPI NOR flash memories

2018-10-22 Thread Yogesh Narayan Gaur
Hi, > -Original Message- > From: Boris Brezillon [mailto:boris.brezil...@bootlin.com] > Sent: Monday, October 22, 2018 3:41 PM > To: Yogesh Narayan Gaur > Cc: Tudor Ambarus ; rich...@nod.at; Mark > Brown ; linux-kernel@vger.kernel.org; > nicolas.fe...@microchip.com; marek.va...@gmail.com;

Reiser4 Linux 4.17.19-1 hangs in Google cloud VM, too.

2018-10-22 Thread Metztli Information Technology
I installed reiser4 -enhanced Linux kernel 4.17.19-1 --thus replacing the prior hung reiser4 -patched kernel 4.18.15-1 in the Google Compute Engine (GCE) cloud instance. After less than 24 hours the 4.17.19-1 hung in similar way to the 4.18.15-1. Please note that I had been running my custom Me

[PATCH AUTOSEL 4.18 01/27] ARM: dts: imx53-qsb: disable 1.2GHz OPP

2018-10-22 Thread Sasha Levin
From: Sascha Hauer [ Upstream commit eea96566c189c77e5272585984eb2729881a2f1d ] The maximum CPU frequency for the i.MX53 QSB is 1GHz, so disable the 1.2GHz OPP. This makes the board work again with configs that have cpufreq enabled like imx_v6_v7_defconfig on which the board stopped working with

[PATCH AUTOSEL 4.18 09/27] Input: uinput - add a schedule point in uinput_inject_events()

2018-10-22 Thread Sasha Levin
From: Dmitry Torokhov [ Upstream commit cecf10704899467a787975e3d94a1f0129b9688e ] Large writes to uinput interface may cause rcu stalls. Let's add cond_resched() to the loop to avoid this. Reviewed-by: Paul E. McKenney Signed-off-by: Dmitry Torokhov Signed-off-by: Sasha Levin --- drivers/i

[PATCH AUTOSEL 4.18 12/27] rxrpc: Only take the rwind and mtu values from latest ACK

2018-10-22 Thread Sasha Levin
From: David Howells [ Upstream commit 298bc15b2079c324e82d0a6fda39c3d762af7282 ] Move the out-of-order and duplicate ACK packet check to before the call to rxrpc_input_ackinfo() so that the receive window size and MTU size are only checked in the latest ACK packet and don't regress. Fixes: 248f

[PATCH AUTOSEL 4.18 10/27] rxrpc: Don't check RXRPC_CALL_TX_LAST after calling rxrpc_rotate_tx_window()

2018-10-22 Thread Sasha Levin
From: David Howells [ Upstream commit c479d5f2c2e1ce609da08c075054440d97ddff52 ] We should only call the function to end a call's Tx phase if we rotated the marked-last packet out of the transmission buffer. Make rxrpc_rotate_tx_window() return an indication of whether it just rotated the packe

[PATCH AUTOSEL 4.18 03/27] perf report: Don't try to map ip to invalid map

2018-10-22 Thread Sasha Levin
From: Milian Wolff [ Upstream commit ff4ce2885af8f9e8e99864d78dbeb4673f089c76 ] Fixes a crash when the report encounters an address that could not be associated with an mmaped region: #0 0x557bdc4a in callchain_srcline (ip=, sym=0x0, map=0x0) at util/machine.c:2329 #1 unwind_entry

[PATCH AUTOSEL 4.18 04/27] Input: i8042 - enable keyboard wakeups by default when s2idle is used

2018-10-22 Thread Sasha Levin
From: Daniel Drake [ Upstream commit 684bec1092b6991ff2a7751e8a763898576eb5c2 ] Previously, on typical consumer laptops, pressing a key on the keyboard when the system is in suspend would cause it to wake up (default or unconditional behaviour). This happens because the EC generates a SCI interr

[PATCH AUTOSEL 4.18 21/27] rds: RDS (tcp) hangs on sendto() to unresponding address

2018-10-22 Thread Sasha Levin
From: Ka-Cheong Poon [ Upstream commit 9a4890bd6d6325a1c88564a20ab310b2d56f6094 ] In rds_send_mprds_hash(), if the calculated hash value is non-zero and the MPRDS connections are not yet up, it will wait. But it should not wait if the send is non-blocking. In this case, it should just use the

[PATCH AUTOSEL 4.18 27/27] fs/fat/fatent.c: add cond_resched() to fat_count_free_clusters()

2018-10-22 Thread Sasha Levin
From: Khazhismel Kumykov [ Upstream commit ac081c3be3fae6d0cc3e1862507fca3862d30b67 ] On non-preempt kernels this loop can take a long time (more than 50 ticks) processing through entries. Link: http://lkml.kernel.org/r/20181010172623.57033-1-kha...@google.com Signed-off-by: Khazhismel Kumykov

[PATCH AUTOSEL 4.18 14/27] KVM: x86: support CONFIG_KVM_AMD=y with CONFIG_CRYPTO_DEV_CCP_DD=m

2018-10-22 Thread Sasha Levin
From: Paolo Bonzini [ Upstream commit 853c110982eaff0d99dace3f66f1ba58b5bfd9d5 ] SEV requires access to the AMD cryptographic device APIs, and this does not work when KVM is builtin and the crypto driver is a module. Actually the Kconfig conditions for CONFIG_KVM_AMD_SEV try to disable SEV in th

[PATCH AUTOSEL 4.18 26/27] afs: Fix cell proc list

2018-10-22 Thread Sasha Levin
From: David Howells [ Upstream commit 6b3944e42e2e554aa5a4be681ecd70dccd459114 ] Access to the list of cells by /proc/net/afs/cells has a couple of problems: (1) It should be checking against SEQ_START_TOKEN for the keying the header line. (2) It's only holding the RCU read lock, so it

[PATCH AUTOSEL 4.18 20/27] IB/mlx5: Unmap DMA addr from HCA before IOMMU

2018-10-22 Thread Sasha Levin
From: Valentine Fatiev [ Upstream commit dd9a403495704fc80fb9f399003013ef2be2ee23 ] The function that puts back the MR in cache also removes the DMA address from the HCA. Therefore we need to call this function before we remove the DMA mapping from MMU. Otherwise the HCA may access a memory that

[PATCH AUTOSEL 4.18 18/27] libertas: call into generic suspend code before turning off power

2018-10-22 Thread Sasha Levin
From: Daniel Mack [ Upstream commit 4f75cdff0b986195413215eb062b7da6586f ] When powering down a SDIO connected card during suspend, make sure to call into the generic lbs_suspend() function before pulling the plug. This will make sure the card is successfully deregistered from the system to

[PATCH AUTOSEL 4.18 19/27] gpio: Assign gpio_irq_chip::parents to non-stack pointer

2018-10-22 Thread Sasha Levin
From: Stephen Boyd [ Upstream commit 3e779a2e7f909015f21428b66834127496110b6d ] gpiochip_set_cascaded_irqchip() is passed 'parent_irq' as an argument and then the address of that argument is assigned to the gpio chips gpio_irq_chip 'parents' pointer shortly thereafter. This can't ever work, beca

[PATCH AUTOSEL 4.18 25/27] vmlinux.lds.h: Fix linker warnings about orphan .LPBX sections

2018-10-22 Thread Sasha Levin
From: Peter Oberparleiter [ Upstream commit 52c8ee5bad8f33d02c567f6609f43d69303fc48d ] Enabling both CONFIG_LD_DEAD_CODE_DATA_ELIMINATION=y and CONFIG_GCOV_PROFILE_ALL=y results in linker warnings: warning: orphan section `.data..LPBX1' being placed in section `.data..LPBX1'. LD_DEAD_CODE_

[PATCH AUTOSEL 4.18 16/27] net: ena: fix rare bug when failed restart/resume is followed by driver removal

2018-10-22 Thread Sasha Levin
From: Arthur Kiyanovski [ Upstream commit d7703ddbd7c9cb1ab7c08e1b85b314ff8cea38e9 ] In a rare scenario when ena_device_restore() fails, followed by device remove, an FLR will not be issued. In this case, the device will keep sending asynchronous AENQ keep-alive events, even after driver removal

[PATCH AUTOSEL 4.14 03/15] Input: i8042 - enable keyboard wakeups by default when s2idle is used

2018-10-22 Thread Sasha Levin
From: Daniel Drake [ Upstream commit 684bec1092b6991ff2a7751e8a763898576eb5c2 ] Previously, on typical consumer laptops, pressing a key on the keyboard when the system is in suspend would cause it to wake up (default or unconditional behaviour). This happens because the EC generates a SCI interr

[PATCH AUTOSEL 4.14 07/15] Input: uinput - add a schedule point in uinput_inject_events()

2018-10-22 Thread Sasha Levin
From: Dmitry Torokhov [ Upstream commit cecf10704899467a787975e3d94a1f0129b9688e ] Large writes to uinput interface may cause rcu stalls. Let's add cond_resched() to the loop to avoid this. Reviewed-by: Paul E. McKenney Signed-off-by: Dmitry Torokhov Signed-off-by: Sasha Levin --- drivers/i

[PATCH AUTOSEL 4.14 05/15] perf python: Use -Wno-redundant-decls to build with PYTHON=python3

2018-10-22 Thread Sasha Levin
From: Arnaldo Carvalho de Melo [ Upstream commit 05a2f54679861deb188750ba2a70187000b2c71f ] When building in ClearLinux using 'make PYTHON=python3' with gcc 8.2.1 it fails with: GEN /tmp/build/perf/python/perf.so In file included from /usr/include/python3.7m/Python.h:126,

[PATCH AUTOSEL 4.18 24/27] vmlinux.lds.h: Fix incomplete .text.exit discards

2018-10-22 Thread Sasha Levin
From: Peter Oberparleiter [ Upstream commit 8dcf86caa1e3daf4a6ccf38e97f4f752b411f829 ] Enabling CONFIG_GCOV_PROFILE_ALL=y causes linker errors on ARM: `.text.exit' referenced in section `.ARM.exidx.text.exit': defined in discarded section `.text.exit' `.text.exit' referenced in section `

[PATCH AUTOSEL 4.14 02/15] s390/hibernate: fix error handling when suspend cpu != resume cpu

2018-10-22 Thread Sasha Levin
From: Gerald Schaefer [ Upstream commit 55a5542a546238354d1f209f794414168cf8c71d ] The resume code checks if the resume cpu is the same as the suspend cpu. If not, and if it is also not possible to switch to the suspend cpu, an error message should be printed and the resume process should be sto

[PATCH AUTOSEL 4.14 09/15] rxrpc: Only take the rwind and mtu values from latest ACK

2018-10-22 Thread Sasha Levin
From: David Howells [ Upstream commit 298bc15b2079c324e82d0a6fda39c3d762af7282 ] Move the out-of-order and duplicate ACK packet check to before the call to rxrpc_input_ackinfo() so that the receive window size and MTU size are only checked in the latest ACK packet and don't regress. Fixes: 248f

[PATCH AUTOSEL 4.14 15/15] fs/fat/fatent.c: add cond_resched() to fat_count_free_clusters()

2018-10-22 Thread Sasha Levin
From: Khazhismel Kumykov [ Upstream commit ac081c3be3fae6d0cc3e1862507fca3862d30b67 ] On non-preempt kernels this loop can take a long time (more than 50 ticks) processing through entries. Link: http://lkml.kernel.org/r/20181010172623.57033-1-kha...@google.com Signed-off-by: Khazhismel Kumykov

[PATCH AUTOSEL 4.14 14/15] selftests: rtnetlink.sh explicitly requires bash.

2018-10-22 Thread Sasha Levin
From: Paolo Abeni [ Upstream commit 3c718e677c2b35b449992adc36ecce883c467e98 ] the script rtnetlink.sh requires a bash-only features (sleep with sub-second precision). This may cause random test failure if the default shell is not bash. Address the above explicitly requiring bash as the script i

[PATCH AUTOSEL 4.14 13/15] libertas: call into generic suspend code before turning off power

2018-10-22 Thread Sasha Levin
From: Daniel Mack [ Upstream commit 4f75cdff0b986195413215eb062b7da6586f ] When powering down a SDIO connected card during suspend, make sure to call into the generic lbs_suspend() function before pulling the plug. This will make sure the card is successfully deregistered from the system to

[PATCH AUTOSEL 4.14 12/15] net: ena: fix NULL dereference due to untimely napi initialization

2018-10-22 Thread Sasha Levin
From: Arthur Kiyanovski [ Upstream commit 78a55d05def95144ca5fa9a64c49b2a0636a9866 ] napi poll functions should be initialized before running request_irq(), to handle a rare condition where there is a pending interrupt, causing the ISR to fire immediately while the poll function wasn't set yet,

Re: [PATCH v3 1/2] mtd: spi-nor: add support to non-uniform SFDP SPI NOR flash memories

2018-10-22 Thread Boris Brezillon
On Mon, 22 Oct 2018 10:03:55 + Yogesh Narayan Gaur wrote: > [1.624684] m25p80 spi0.0: found s25fl512s, expected m25p80 > [1.630377] Start [addr_width:, read_dumy:08, read_opcode:] > [1.637335] spi_nor_get_map_in_use:2882 smpt[0]=08ff65fc > [1.642641] spi_nor_ge

[PATCH AUTOSEL 4.9 3/9] Input: evdev - add a schedule point in evdev_write()

2018-10-22 Thread Sasha Levin
From: Dmitry Torokhov [ Upstream commit 36d2582ff235b4e01ad64a734c877a52dc762d9c ] Large writes to evdev interface may cause rcu stalls. Let's add cond_resched() to the loop to avoid this. Reviewed-by: Paul E. McKenney Signed-off-by: Dmitry Torokhov Signed-off-by: Sasha Levin --- drivers/in

Re: [PATCH 4/5] nds32: Fix perf multiple events map to same counter.

2018-10-22 Thread Nick Hu
Hi Mark, On Thu, Oct 18, 2018 at 10:29:05PM +0800, Mark Rutland wrote: > On Thu, Oct 18, 2018 at 04:43:16PM +0800, Nickhu wrote: > > When there are multiple events map to the same counter, the counter > > counts inaccurately. This is because each counter only counts one event > > in the same time.

[PATCH AUTOSEL 4.9 6/9] rxrpc: Only take the rwind and mtu values from latest ACK

2018-10-22 Thread Sasha Levin
From: David Howells [ Upstream commit 298bc15b2079c324e82d0a6fda39c3d762af7282 ] Move the out-of-order and duplicate ACK packet check to before the call to rxrpc_input_ackinfo() so that the receive window size and MTU size are only checked in the latest ACK packet and don't regress. Fixes: 248f

[PATCH AUTOSEL 4.9 1/9] ARM: dts: imx53-qsb: disable 1.2GHz OPP

2018-10-22 Thread Sasha Levin
From: Sascha Hauer [ Upstream commit eea96566c189c77e5272585984eb2729881a2f1d ] The maximum CPU frequency for the i.MX53 QSB is 1GHz, so disable the 1.2GHz OPP. This makes the board work again with configs that have cpufreq enabled like imx_v6_v7_defconfig on which the board stopped working with

[PATCH AUTOSEL 4.14 11/15] net: ena: fix warning in rmmod caused by double iounmap

2018-10-22 Thread Sasha Levin
From: Arthur Kiyanovski [ Upstream commit d79c3888bde6581da7ff9f9d6f581900ecb5e632 ] Memory mapped with devm_ioremap is automatically freed when the driver is disconnected from the device. Therefore there is no need to explicitly call devm_iounmap. Fixes: 0857d92f71b6 ("net: ena: add missing un

Re: [PATCH 1/5] nds32: Perf porting

2018-10-22 Thread Nick Hu
Hi Mark, On Thu, Oct 18, 2018 at 03:23:59PM +0100, Mark Rutland wrote: > HI, > > On Thu, Oct 18, 2018 at 04:43:13PM +0800, Nickhu wrote: > > +#define PFM_CTL_OVF(idx) PFM_CTL_mskOVF ## idx > > +#define PFM_CTL_EN(idx) PFM_CTL_mskEN ## idx > > +#define PFM_CTL_OFFS

  1   2   3   4   5   >