Re: Linux 5.1.1

2019-05-10 Thread Bhaskar Chowdhury
Thanks, a bunch Greg! :) On 08:50 Sat 11 May , Greg KH wrote: I'm announcing the release of the 5.1.1 kernel. All users of the 5.1 kernel series must upgrade. The updated 5.1.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.1.y

Re: [PATCH V2 4/7] irqchip/irq-csky-mpintc: Add triger type and priority

2019-05-10 Thread Guo Ren
Thx Marc, On Fri, May 10, 2019 at 07:12:18PM +0100, Marc Zyngier wrote: > On Fri, 10 May 2019 09:25:10 +0100, > Guo Ren wrote: > > > > Thx Marc, > > > > Sorry for late reply: > > > > On Mon, Feb 18, 2019 at 02:38:23PM +, Marc Zyngier wrote: > > > On Mon, 18 Feb 2019 10:04:40 +0800 > > > gu

Linux 4.19.42

2019-05-10 Thread Greg KH
I'm announcing the release of the 4.19.42 kernel. All users of the 4.19 kernel series must upgrade. The updated 4.19.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.19.y and can be browsed at the normal kernel.org git web browser:

Linux 4.14.118

2019-05-10 Thread Greg KH
I'm announcing the release of the 4.14.118 kernel. All users of the 4.14 kernel series must upgrade. The updated 4.14.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.14.y and can be browsed at the normal kernel.org git web browser

Linux 5.0.15

2019-05-10 Thread Greg KH
I'm announcing the release of the 5.0.15 kernel. All users of the 5.0 kernel series must upgrade. The updated 5.0.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.0.y and can be browsed at the normal kernel.org git web browser:

Linux 5.1.1

2019-05-10 Thread Greg KH
I'm announcing the release of the 5.1.1 kernel. All users of the 5.1 kernel series must upgrade. The updated 5.1.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.1.y and can be browsed at the normal kernel.org git web browser:

Re: Linux 5.1.1

2019-05-10 Thread Greg KH
diff --git a/Makefile b/Makefile index 26c92f892d24..bf604f77e5e5 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 5 PATCHLEVEL = 1 -SUBLEVEL = 0 +SUBLEVEL = 1 EXTRAVERSION = NAME = Shy Crocodile diff --git a/arch/arm64/include/asm/futex.h b/a

Re: Linux 4.14.118

2019-05-10 Thread Greg KH
diff --git a/Makefile b/Makefile index efe716372985..a856457cab8f 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 4 PATCHLEVEL = 14 -SUBLEVEL = 117 +SUBLEVEL = 118 EXTRAVERSION = NAME = Petit Gorille diff --git a/arch/arm64/include/asm/futex.

Linux 4.9.175

2019-05-10 Thread Greg KH
I'm announcing the release of the 4.9.175 kernel. All users of the 4.9 kernel series must upgrade. The updated 4.9.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.9.y and can be browsed at the normal kernel.org git web browser:

Re: Linux 4.9.175

2019-05-10 Thread Greg KH
diff --git a/Makefile b/Makefile index f5836837df15..e52b0579e176 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 9 -SUBLEVEL = 174 +SUBLEVEL = 175 EXTRAVERSION = NAME = Roaring Lionus diff --git a/arch/arm/boot/compressed/efi-header.S b/arch/arm/boot/compressed

Re: kobject_init_and_add() confusion

2019-05-10 Thread Tobin C. Harding
On Fri, May 10, 2019, at 19:40, Petr Mladek wrote: > On Fri 2019-05-10 12:35:38, Tobin C. Harding wrote: > > On Wed, May 01, 2019 at 09:54:16AM +0200, Rafael J. Wysocki wrote: > > > On Wed, May 1, 2019 at 1:38 AM Tobin C. Harding wrote: > > > > TODO > > > > > > > > > > > > - Fix all the ca

Re: Linux v5.1.1

2019-05-10 Thread Bhaskar Chowdhury
"Dinner happened before I could get to them all :)" he he he he Greg! :) ROFL On 07:52 Sat 11 May , Greg Kroah-Hartman wrote: On Fri, May 10, 2019 at 09:47:14PM +0200, Sedat Dilek wrote: Hi Greg, I have seen that all other Linux-stable Git branches got a new release. What happened to Linux-s

Re: [PATCH] vt: Fix a missing-check bug in drivers/tty/vt/vt.c file of Linux 5.0.14

2019-05-10 Thread Greg KH
On Sat, May 11, 2019 at 09:21:39AM +0800, Gen Zhang wrote: > On Fri, May 10, 2019 at 11:12:50PM +0800, Greg KH < > gre...@linuxfoundation.org> wrote: > >Still impossible to apply :( > > > >Also, what about Dave's response to you? This really can never be hit, > >like other early-init tty allocatio

Re: [PATCH] Staging: kpc2000: kpc_dma: resolve checkpath errors and warnings

2019-05-10 Thread Greg KH
On Sat, May 11, 2019 at 01:08:33AM +0530, Vandana BN wrote: > This patch resolves coding style errors and warnings reported by chechpatch > > ERROR: "(foo*)" should be "(foo *)" > ERROR: trailing whitespace > ERROR: space required before the open brace '{' > ERROR: "foo * bar" should be "foo *bar"

Re: Linux v5.1.1

2019-05-10 Thread Greg Kroah-Hartman
On Fri, May 10, 2019 at 09:47:14PM +0200, Sedat Dilek wrote: > Hi Greg, > > I have seen that all other Linux-stable Git branches got a new release. > > What happened to Linux-stable-5.1.y and v5.1.1 release? Dinner happened before I could get to them all :) > Is there a show-stopper? Nope, not

Re: [PATCH 5.1 00/30] 5.1.1-stable review

2019-05-10 Thread Greg Kroah-Hartman
On Fri, May 10, 2019 at 10:53:34PM +0530, Vandana BN wrote: > > On 10/05/19 12:12 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.1.1 release. > > There are 30 patches in this series, all will be posted as a response > > to this one. If anyone has any issu

Re: [PATCH 5.1 00/30] 5.1.1-stable review

2019-05-10 Thread Greg Kroah-Hartman
On Fri, May 10, 2019 at 03:14:08PM -0600, shuah wrote: > On 5/9/19 12:42 PM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.1.1 release. > > There are 30 patches in this series, all will be posted as a response > > to this one. If anyone has any issues with th

Re: [PATCH 5.1 00/30] 5.1.1-stable review

2019-05-10 Thread Greg Kroah-Hartman
On Fri, May 10, 2019 at 11:27:43AM -0500, Dan Rue wrote: > On Thu, May 09, 2019 at 08:42:32PM +0200, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.1.1 release. > > There are 30 patches in this series, all will be posted as a response > > to this one. If anyon

Re: [PATCH 5.1 00/30] 5.1.1-stable review

2019-05-10 Thread Greg Kroah-Hartman
On Fri, May 10, 2019 at 09:46:23AM -0700, Guenter Roeck wrote: > On Thu, May 09, 2019 at 08:42:32PM +0200, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.1.1 release. > > There are 30 patches in this series, all will be posted as a response > > to this one. If

Re: [PATCH] mm: Remove duplicate headers

2019-05-10 Thread Souptick Joarder
On Sat, May 11, 2019 at 9:04 AM Sabyasachi Gupta wrote: > > Remove asm/sections.h and asm/fixmap.h which are included more than once > > Signed-off-by: Sabyasachi Gupta Acked-by: Souptick Joarder > --- > arch/arm/mm/mmu.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/arch/arm/mm/m

The UAPI references Kconfig's CONFIG_* macros (variables)

2019-05-10 Thread Michael Witten
The UAPI headers contain references to Kconfig's `CONFIG_' macros. Either this is a bug, or there needs to be some standard way for users to provide definitions for these macros, in order to complete Linux's user-space API. Consider: #!/bin/sh cd "${linux_repo}" # Careful! #git

Re: [PATCH] mm: vmscan: correct nr_reclaimed for THP

2019-05-10 Thread Yafang Shao
On Sat, May 11, 2019 at 12:36 AM Matthew Wilcox wrote: > > On Fri, May 10, 2019 at 10:12:40AM +0800, Huang, Ying wrote: > > > + nr_reclaimed += (1 << compound_order(page)); > > > > How about to change this to > > > > > > nr_reclaimed += hpage_nr_pages(page); > > Please don't. Th

RE: [EXT] Re: [PATCH v6] arm64: dts: ls1088a: add one more thermal zone node

2019-05-10 Thread Andy Tang
Thanks Viresh for your explanation. BR, Andy > -Original Message- > From: Viresh Kumar > Sent: 2019年5月10日 18:12 > To: Andy Tang > Cc: Daniel Lezcano ; Shawn Guo > ; Leo Li ; robh...@kernel.org; > mark.rutl...@arm.com; linux-arm-ker...@lists.infradead.org; > devicet...@vger.kernel.org; li

[PATCH] mm: Remove duplicate headers

2019-05-10 Thread Sabyasachi Gupta
Remove asm/sections.h and asm/fixmap.h which are included more than once Signed-off-by: Sabyasachi Gupta --- arch/arm/mm/mmu.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c index fcded2c..29035f4 100644 --- a/arch/arm/mm/mmu.c +++ b/arch/arm/mm/mmu.c

[PATCH] .gitignore: exclude .get_maintainer.ignore and .gitattributes

2019-05-10 Thread Masahiro Yamada
Also, sort the patterns alphabetically. Update the comment since we have non-git files here. Signed-off-by: Masahiro Yamada --- .gitignore | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index d263ca9..7587ef56 100644 --- a/.gitignore +++ b/.g

Re: [RFC] x86: Speculative execution warnings

2019-05-10 Thread Randy Dunlap
On 5/10/19 12:25 PM, Nadav Amit wrote: > It may be useful to check in runtime whether certain assertions are > violated even during speculative execution. This can allow to avoid > adding unnecessary memory fences and at the same time check that no data > leak channels exist. > > For example, addi

Re: [PATCH 2/2] powerpc/perf: Fix mmcra corruption by bhrb_filter

2019-05-10 Thread Ravi Bangoria
On 5/11/19 8:12 AM, Ravi Bangoria wrote: > Consider a scenario where user creates two events: > > 1st event: > attr.sample_type |= PERF_SAMPLE_BRANCH_STACK; > attr.branch_sample_type = PERF_SAMPLE_BRANCH_ANY; > fd = perf_event_open(attr, 0, 1, -1, 0); > > This sets cpuhw->bhrb_

[RFC] x86: Speculative execution warnings

2019-05-10 Thread Nadav Amit
It may be useful to check in runtime whether certain assertions are violated even during speculative execution. This can allow to avoid adding unnecessary memory fences and at the same time check that no data leak channels exist. For example, adding such checks can show that allocating zeroed page

[PATCH 2/2] powerpc/perf: Fix mmcra corruption by bhrb_filter

2019-05-10 Thread Ravi Bangoria
Consider a scenario where user creates two events: 1st event: attr.sample_type |= PERF_SAMPLE_BRANCH_STACK; attr.branch_sample_type = PERF_SAMPLE_BRANCH_ANY; fd = perf_event_open(attr, 0, 1, -1, 0); This sets cpuhw->bhrb_filter to 0 and returns valid fd. 2nd event: attr.sam

[PATCH 1/2] perf ioctl: Add check for the sample_period value

2019-05-10 Thread Ravi Bangoria
Add a check for sample_period value sent from userspace. Negative value does not make sense. And in powerpc arch code this could cause a recursive PMI leading to a hang (reported when running perf-fuzzer). Signed-off-by: Ravi Bangoria --- kernel/events/core.c | 3 +++ 1 file changed, 3 insertion

Re: [PATCH 7/8] thermal: mediatek: add another get_temp ops for thermal sensors

2019-05-10 Thread Nicolas Boichat
On Thu, May 2, 2019 at 7:45 PM michael.kao wrote: > > From: Michael Kao > > Provide thermal zone to read thermal sensor > in the SoC. We can read all the thermal sensors > value in the SoC by the node /sys/class/thermal/ > > Signed-off-by: Michael Kao > --- > drivers/thermal/mtk_thermal.c | 68

Re: [PATCH] kbuild: add script check for cross compilation utilities

2019-05-10 Thread Nathan Chancellor
Few comments below but nothing major, this seems to work fine as is. On Thu, May 09, 2019 at 01:19:21PM -0700, 'Nick Desaulniers' via Clang Built Linux wrote: > When cross compiling via setting CROSS_COMPILE, if the prefixed tools > are not found, then the host utilities are often instead invoked

Re: [PATCH 3/3] i2c: i801: avoid panic if ioreamp fails

2019-05-10 Thread Kefeng Wang
On 2019/5/10 20:18, Jean Delvare wrote: > On Fri, 10 May 2019 17:35:46 +0800, Kefeng Wang wrote: >> On 2019/5/10 16:09, Jean Delvare wrote: >>> We don't need this anyway. The comment says it can't fail, so why >>> bother checking for a condition which will never happen? >> The ioremap could fai

Re: [PATCH] nvme/pci: Use host managed power state for suspend

2019-05-10 Thread Edmund Nadolski
On 5/10/19 2:29 PM, Keith Busch wrote: The nvme pci driver prepares its devices for power loss during suspend by shutting down the controllers, and the power setting is deferred to pci driver's power management before the platform removes power. The suspend-to-idle mode, however, does not remove

Re: [Qemu-devel] [PATCH v7 2/6] virtio-pmem: Add virtio pmem driver

2019-05-10 Thread Pankaj Gupta
> > > > Hi Dan, > > > > Thank you for the review. Please see my reply inline. > > > > > > > > Hi Pankaj, > > > > > > Some minor file placement comments below. > > > > Sure. > > > > > > > > On Thu, Apr 25, 2019 at 10:02 PM Pankaj Gupta wrote: > > > > > > > > This patch adds virtio-pmem driver for

[PATCH] mfd: stmfx: Fix macro definition spelling

2019-05-10 Thread Nathan Chancellor
Clang warns: In file included from drivers/mfd/stmfx.c:13: include/linux/mfd/stmfx.h:7:9: warning: 'MFD_STMFX_H' is used as a header guard here, followed by #define of a different macro [-Wheader-guard] Fixes: 06252ade9156 ("mfd: Add ST Multi-Function eXpander (STMFX) core driver") Link: https://

Re: [Qemu-devel] [PATCH v8 3/6] libnvdimm: add dax_dev sync flag

2019-05-10 Thread Pankaj Gupta
> > > > > > > > This patch adds 'DAXDEV_SYNC' flag which is set > > > > for nd_region doing synchronous flush. This later > > > > is used to disable MAP_SYNC functionality for > > > > ext4 & xfs filesystem for devices don't support > > > > synchronous flush. > > > > > > > > Signed-off-by: Pankaj

RE: [PATCH v20 00/28] Intel SGX1 support

2019-05-10 Thread Xing, Cedric
Hi Andy and Jethro, > > > You have probably misread my email. By mmap(), I meant the enclave > file would be mapped via *multiple* mmap() calls, in the same way as > what dlopen() would do in loading regular shared object. The intention > here is to make the enclave file subject to the same checks

Re: [PATCH v8 3/6] libnvdimm: add dax_dev sync flag

2019-05-10 Thread Dan Williams
On Fri, May 10, 2019 at 5:45 PM Pankaj Gupta wrote: > > > > > > > > > This patch adds 'DAXDEV_SYNC' flag which is set > > > for nd_region doing synchronous flush. This later > > > is used to disable MAP_SYNC functionality for > > > ext4 & xfs filesystem for devices don't support > > > synchronous

Re: [PATCH 2/4] x86/kprobes: Fix frame pointer annotations

2019-05-10 Thread Masami Hiramatsu
On Fri, 10 May 2019 14:40:54 +0200 Peter Zijlstra wrote: > On Fri, May 10, 2019 at 01:58:31PM +0900, Masami Hiramatsu wrote: > > On Thu, 9 May 2019 19:14:16 +0200 > > Peter Zijlstra wrote: > > > > > --- a/arch/x86/kernel/kprobes/core.c > > > > > +++ b/arch/x86/kernel/kprobes/core.c > > > > > @@

Re: [PATCH 2/4] x86/kprobes: Fix frame pointer annotations

2019-05-10 Thread Masami Hiramatsu
On Fri, 10 May 2019 14:31:31 +0200 Peter Zijlstra wrote: > On Fri, May 10, 2019 at 01:58:31PM +0900, Masami Hiramatsu wrote: > > On Thu, 9 May 2019 19:14:16 +0200 > > Peter Zijlstra wrote: > > > > Ideally also the optimized kprobe trampoline, but I've not managed to > > > fully comprehend that

RE: [PATCH] nvme/pci: Use host managed power state for suspend

2019-05-10 Thread Mario.Limonciello
> > Cc: Mario Limonciello > Cc: Kai Heng Feng > Signed-off-by: Keith Busch > --- > Disclaimer: I've tested only on emulation faking support for the feature. Thanks for sharing. I'll arrange some testing with this with storage partners early next week. > > General question: different devic

Re: [PATCH, RFC] byteorder: sanity check toolchain vs kernel endianess

2019-05-10 Thread Arnd Bergmann
On Fri, May 10, 2019 at 6:53 AM Dmitry Vyukov wrote: > > > > I think it's good to have a sanity check in-place for consistency. > > > Hi, > > This broke our cross-builds from x86. I am using: > > $ powerpc64le-linux-gnu-gcc --version > powerpc64le-linux-gnu-gcc (Debian 7.2.0-7) 7.2.0 > > and it sa

Re: [PATCH v8 3/6] libnvdimm: add dax_dev sync flag

2019-05-10 Thread Pankaj Gupta
> > > > This patch adds 'DAXDEV_SYNC' flag which is set > > for nd_region doing synchronous flush. This later > > is used to disable MAP_SYNC functionality for > > ext4 & xfs filesystem for devices don't support > > synchronous flush. > > > > Signed-off-by: Pankaj Gupta > > --- > > drivers/dax

Re: [PATCH] usercopy: Remove HARDENED_USERCOPY_PAGESPAN

2019-05-10 Thread Laura Abbott
On 5/10/19 3:43 PM, Kees Cook wrote: This feature continues to cause more problems than it solves[1]. Its intention was to check the bounds of page-allocator allocations by using __GFP_COMP, for which we would need to find all missing __GFP_COMP markings. This work has been on hold and there is a

[PATCH v2] media: v4l2-subdev: Verify arguments of v4l2_subdev_call()

2019-05-10 Thread Janusz Krzysztofik
Correctness of format type (try or active) and pad number parameters passed to subdevice operation callbacks is now verified only for IOCTL calls. However, those callbacks are also used by drivers, e.g., V4L2 host interfaces. Since both subdev_do_ioctl() and drivers are using v4l2_subdev_call() m

Re: [PATCH v3 5/7] mm: rework non-root kmem_cache lifecycle management

2019-05-10 Thread Shakeel Butt
From: Roman Gushchin Date: Wed, May 8, 2019 at 1:41 PM To: Andrew Morton, Shakeel Butt Cc: , , , Johannes Weiner, Michal Hocko, Rik van Riel, Christoph Lameter, Vladimir Davydov, , Roman Gushchin > This commit makes several important changes in the lifecycle > of a non-root kmem_cache, which also

Re: [PATCH v3 6/7] mm: reparent slab memory on cgroup removal

2019-05-10 Thread Shakeel Butt
From: Roman Gushchin Date: Wed, May 8, 2019 at 1:41 PM To: Andrew Morton, Shakeel Butt Cc: , , , Johannes Weiner, Michal Hocko, Rik van Riel, Christoph Lameter, Vladimir Davydov, , Roman Gushchin > Let's reparent memcg slab memory on memcg offlining. This allows us > to release the memory cgroup

Re: [PATCH v3 7/7] mm: fix /proc/kpagecgroup interface for slab pages

2019-05-10 Thread Shakeel Butt
From: Roman Gushchin Date: Wed, May 8, 2019 at 1:40 PM To: Andrew Morton, Shakeel Butt Cc: , , , Johannes Weiner, Michal Hocko, Rik van Riel, Christoph Lameter, Vladimir Davydov, , Roman Gushchin > Switching to an indirect scheme of getting mem_cgroup pointer for > !root slab pages broke /proc/kp

Re: [PATCH v3 3/7] mm: introduce __memcg_kmem_uncharge_memcg()

2019-05-10 Thread Shakeel Butt
From: Roman Gushchin Date: Wed, May 8, 2019 at 1:30 PM To: Andrew Morton, Shakeel Butt Cc: , , , Johannes Weiner, Michal Hocko, Rik van Riel, Christoph Lameter, Vladimir Davydov, , Roman Gushchin > Let's separate the page counter modification code out of > __memcg_kmem_uncharge() in a way similar

Re: [PATCH v3 4/7] mm: unify SLAB and SLUB page accounting

2019-05-10 Thread Shakeel Butt
From: Roman Gushchin Date: Wed, May 8, 2019 at 1:40 PM To: Andrew Morton, Shakeel Butt Cc: , , , Johannes Weiner, Michal Hocko, Rik van Riel, Christoph Lameter, Vladimir Davydov, , Roman Gushchin > Currently the page accounting code is duplicated in SLAB and SLUB > internals. Let's move it into n

Re: [PATCH v3 2/7] mm: generalize postponed non-root kmem_cache deactivation

2019-05-10 Thread Shakeel Butt
From: Roman Gushchin Date: Wed, May 8, 2019 at 1:30 PM To: Andrew Morton, Shakeel Butt Cc: , , , Johannes Weiner, Michal Hocko, Rik van Riel, Christoph Lameter, Vladimir Davydov, , Roman Gushchin > Currently SLUB uses a work scheduled after an RCU grace period > to deactivate a non-root kmem_cach

Re: [PATCH 4/4] Revert "platform/chrome: cros_ec_spi: Transfer messages at high priority"

2019-05-10 Thread Guenter Roeck
From: Douglas Anderson Date: Fri, May 10, 2019 at 3:35 PM To: Mark Brown, Benson Leung, Enric Balletbo i Serra Cc: , , Guenter Roeck, , , Douglas Anderson, > This reverts commit 37a186225a0c020516bafad2727fdcdfc039a1e4. > > We have a better solution in the patch ("platform/chrome: cros_ec_spi: >

Re: [PATCH 2/4] spi: Allow SPI devices to specify that they are timing sensitive

2019-05-10 Thread Guenter Roeck
From: Douglas Anderson Date: Fri, May 10, 2019 at 3:35 PM To: Mark Brown, Benson Leung, Enric Balletbo i Serra Cc: , , Guenter Roeck, , , Douglas Anderson, , > If a device on the SPI bus is very sensitive to timing then it may be > necessary (for correctness) not to get interrupted during a tran

Re: [PATCH 3/4] platform/chrome: cros_ec_spi: Set ourselves as timing sensitive

2019-05-10 Thread Guenter Roeck
From: Douglas Anderson Date: Fri, May 10, 2019 at 3:35 PM To: Mark Brown, Benson Leung, Enric Balletbo i Serra Cc: , , Guenter Roeck, , , Douglas Anderson, > All currently known ECs in the wild are very sensitive to timing. > Specifically the ECs are known to drop a transfer if more than 8 ms >

Re: [PATCH v3 1/7] mm: postpone kmem_cache memcg pointer initialization to memcg_link_cache()

2019-05-10 Thread Shakeel Butt
From: Roman Gushchin Date: Wed, May 8, 2019 at 1:30 PM To: Andrew Morton, Shakeel Butt Cc: , , , Johannes Weiner, Michal Hocko, Rik van Riel, Christoph Lameter, Vladimir Davydov, , Roman Gushchin > Initialize kmem_cache->memcg_params.memcg pointer in > memcg_link_cache() rather than in init_memcg

Re: [PATCH v3 0/7] mm: reparent slab memory on cgroup removal

2019-05-10 Thread Shakeel Butt
From: Roman Gushchin Date: Wed, May 8, 2019 at 1:30 PM To: Andrew Morton, Shakeel Butt Cc: , , , Johannes Weiner, Michal Hocko, Rik van Riel, Christoph Lameter, Vladimir Davydov, , Roman Gushchin > # Why do we need this? > > We've noticed that the number of dying cgroups is steadily growing on mo

Re: [PATCH 1/4] spi: For controllers that need realtime always use the pump thread

2019-05-10 Thread Guenter Roeck
From: Douglas Anderson Date: Fri, May 10, 2019 at 3:35 PM To: Mark Brown, Benson Leung, Enric Balletbo i Serra Cc: , , Guenter Roeck, , , Douglas Anderson, , > If a controller specifies that it needs high priority for sending > messages we should always schedule our transfers on the thread. If

Re: [PATCH] mm/gup.c: Make follow_page_mask static

2019-05-10 Thread Ira Weiny
On Sat, May 11, 2019 at 12:38:32AM +0530, Bharath Vedartham wrote: > follow_page_mask is only used in gup.c, make it static. > > Tested by compiling and booting. Grepped the source for > "follow_page_mask" to be sure it is not used else where. > > Signed-off-by: Bharath Vedartham Reviewed-by: I

Re: [PATCH v6 5/6] binfmt_*: scope path resolution of interpreters

2019-05-10 Thread Christian Brauner
On Sat, May 11, 2019 at 12:55 AM Jann Horn wrote: > > On Fri, May 10, 2019 at 02:20:23PM -0700, Andy Lutomirski wrote: > > On Fri, May 10, 2019 at 1:41 PM Jann Horn wrote: > > > > > > On Tue, May 07, 2019 at 05:17:35AM +1000, Aleksa Sarai wrote: > > > > On 2019-05-06, Jann Horn wrote: > > > > >

Re: [Qemu-devel] [PATCH v7 2/6] virtio-pmem: Add virtio pmem driver

2019-05-10 Thread Dan Williams
On Wed, May 8, 2019 at 4:19 AM Pankaj Gupta wrote: > > > Hi Dan, > > Thank you for the review. Please see my reply inline. > > > > > Hi Pankaj, > > > > Some minor file placement comments below. > > Sure. > > > > > On Thu, Apr 25, 2019 at 10:02 PM Pankaj Gupta wrote: > > > > > > This patch adds vi

Re: [PATCH v8 0/6] virtio pmem driver

2019-05-10 Thread Pankaj Gupta
> > > > Hi Michael & Dan, > > > > Please review/ack the patch series from LIBNVDIMM & VIRTIO side. > > We have ack on ext4, xfs patches(4, 5 & 6) patch 2. Still need > > your ack on nvdimm patches(1 & 3) & virtio patch 2. > > I was planning to merge these via the nvdimm tree, not ack them. D

Re: Question about sched_setaffinity()

2019-05-10 Thread Paul E. McKenney
On Fri, May 10, 2019 at 02:08:19PM +0200, Peter Zijlstra wrote: > On Thu, May 09, 2019 at 12:36:25PM -0700, Paul E. McKenney wrote: > > I forward-ported the relevant patches from -rcu and placed them on -rcu > > branch peterz.2019.05.09a, and this is what produced the output above. > > > > Any oth

Re: [PATCH] mm: vmscan: correct nr_reclaimed for THP

2019-05-10 Thread Matthew Wilcox
On Fri, May 10, 2019 at 03:54:56PM -0700, Ira Weiny wrote: > On Fri, May 10, 2019 at 09:36:12AM -0700, Matthew Wilcox wrote: > > On Fri, May 10, 2019 at 10:12:40AM +0800, Huang, Ying wrote: > > > > + nr_reclaimed += (1 << compound_order(page)); > > > > > > How about to change this to

Re: [PATCH v6 5/6] binfmt_*: scope path resolution of interpreters

2019-05-10 Thread Jann Horn
On Fri, May 10, 2019 at 02:20:23PM -0700, Andy Lutomirski wrote: > On Fri, May 10, 2019 at 1:41 PM Jann Horn wrote: > > > > On Tue, May 07, 2019 at 05:17:35AM +1000, Aleksa Sarai wrote: > > > On 2019-05-06, Jann Horn wrote: > > > > In my opinion, CVE-2019-5736 points out two different problems: >

Re: [PATCH, RFC 2/2] Implement sharing/unsharing of PMDs for FS/DAX

2019-05-10 Thread Mike Kravetz
On 5/10/19 9:16 AM, Larry Bassel wrote: > On 09 May 19 09:49, Matthew Wilcox wrote: >> On Thu, May 09, 2019 at 09:05:33AM -0700, Larry Bassel wrote: >>> This is based on (but somewhat different from) what hugetlbfs >>> does to share/unshare page tables. >> >> Wow, that worked out far more cleanly t

Re: [PATCH] mm: vmscan: correct nr_reclaimed for THP

2019-05-10 Thread Ira Weiny
On Fri, May 10, 2019 at 09:36:12AM -0700, Matthew Wilcox wrote: > On Fri, May 10, 2019 at 10:12:40AM +0800, Huang, Ying wrote: > > > + nr_reclaimed += (1 << compound_order(page)); > > > > How about to change this to > > > > > > nr_reclaimed += hpage_nr_pages(page); > > Please do

Re: [PATCH v5 04/11] of: irq: document properties for wakeup interrupt parent

2019-05-10 Thread Rob Herring
On Tue, May 7, 2019 at 3:41 PM Lina Iyer wrote: > > Some interrupt controllers in a SoC, are always powered on and have a > select interrupts routed to them, so that they can wakeup the SoC from > suspend. Add wakeup-parent DT property to refer to these interrupt > controllers. > > If the interrup

[PATCH 0/3 v5] Kexec cmdline bufffer measure

2019-05-10 Thread Prakhar Srivastava
From: Prakhar Srivastava The motive behind the patch series is to measure the cmdline args used for soft reboot/kexec case. For secure boot attestation, it is necessary to measure the kernel command line and the kernel version. For cold boot, the boot loader can be enhanced to measure these para

[PATCH 2/3 v5] add a new template field buf to contain the buffer

2019-05-10 Thread Prakhar Srivastava
From: Prakhar Srivastava The buffer(cmdline args) added to the ima log cannot be attested without having the actual buffer. Thus to make the measured buffer available to stroe/read a new ima temaplate (buf) is added. The cmdline args used for soft reboot can then be read and attested later. Th

[PATCH 3/3 v5] call ima_kexec_cmdline from kexec_file_load path

2019-05-10 Thread Prakhar Srivastava
From: Prakhar Srivastava To measure the cmldine args used in case of soft reboot. Call the ima hook defined in [PATCH 1/3 v5]:"add a new ima hook and policy to measure the cmdline" Signed-off-by: Prakhar Srivastava --- kernel/kexec_file.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a

[PATCH v3 2/2] ASoC: Intel: Skylake: Add Cometlake PCI IDs

2019-05-10 Thread Evan Green
Add PCI IDs for Intel CometLake platforms, which from a software point of view are extremely similar to Cannonlake platforms. Signed-off-by: Evan Green --- Changes in v3: - Don't select CML_* in SND_SOC_INTEL_SKYLAKE (Pierre-Louis) Changes in v2: - Add 0x06c8 for CML-H (Pierre-Louis) sound/so

[PATCH v3 0/2] ASoC: Intel: Add Cometlake PCI IDs

2019-05-10 Thread Evan Green
This small series adds PCI IDs for Cometlake platforms, for a dazzling audio experience. This is based on linux-next's next-20190510. Changes in v3: - Copy cnl_desc to new cml_desc, and avoid selecting cannonlake (Pierre-Louis) - Don't select CML_* in SND_SOC_INTEL_SKYLAKE (Pi

Re: [PATCH 5/5] arm64: dts: meson: sei510: add network support

2019-05-10 Thread Kevin Hilman
Jerome Brunet writes: > Enable the network interface of the SEI510 which use the internal PHY. > > Signed-off-by: Jerome Brunet I tried testing this series on SEI510, but I must still be missing some defconfig options, as the default defconfig doesn't lead to a working interface. I tried addi

[PATCH 1/3 v5] add a new ima hook and policy to measure the cmdline

2019-05-10 Thread Prakhar Srivastava
From: Prakhar Srivastava For secure boot attestation, it is necessary to measure the kernel command line and the kernel version. For cold boot, the boot loader can be enhanced to measure these parameters. However, for attestation across soft reboot boundary, these values also need to be measured

[PATCH v3 1/2] ASoC: SOF: Add Comet Lake PCI IDs

2019-05-10 Thread Evan Green
Add support for Intel Comet Lake platforms by adding a new Kconfig for CometLake and the appropriate PCI IDs. Signed-off-by: Evan Green --- Changes in v3: - Copy cnl_desc to new cml_desc, and avoid selecting cannonlake (Pierre-Louis) Changes in v2: - Add CML-H ID 0x06c8 (Pierre-Louis) sound/s

Re: [PATCH v2 0/3] initramfs: add support for xattrs in the initial ram disk

2019-05-10 Thread Mimi Zohar
On Fri, 2019-05-10 at 15:46 -0500, Rob Landley wrote: > On 5/10/19 6:49 AM, Mimi Zohar wrote: > > On Fri, 2019-05-10 at 08:56 +0200, Roberto Sassu wrote: > >> On 5/9/2019 8:34 PM, Rob Landley wrote: > >>> On 5/9/19 6:24 AM, Roberto Sassu wrote: > > > The difference with another proposal > >>>

[PATCH 3/4] platform/chrome: cros_ec_spi: Set ourselves as timing sensitive

2019-05-10 Thread Douglas Anderson
All currently known ECs in the wild are very sensitive to timing. Specifically the ECs are known to drop a transfer if more than 8 ms passes from the assertion of the chip select until the transfer finishes. Let's use the new feature introduced in the patch ("spi: Allow SPI devices to specify that

[PATCH 0/4] spi: A better solution for cros_ec_spi reliability

2019-05-10 Thread Douglas Anderson
This series is a much better solution for getting the Chrome OS EC to talk reliably and replaces commit 37a186225a0c ("platform/chrome: cros_ec_spi: Transfer messages at high priority"). Note that the cros_ec bits can't land until the SPI bits are somewhere. If the SPI bits look OK to land it mig

[PATCH 4/4] Revert "platform/chrome: cros_ec_spi: Transfer messages at high priority"

2019-05-10 Thread Douglas Anderson
This reverts commit 37a186225a0c020516bafad2727fdcdfc039a1e4. We have a better solution in the patch ("platform/chrome: cros_ec_spi: Set ourselves as timing sensitive"). Let's revert the uglier and less reliable solution. Signed-off-by: Douglas Anderson --- drivers/platform/chrome/cros_ec_spi

[PATCH 1/4] spi: For controllers that need realtime always use the pump thread

2019-05-10 Thread Douglas Anderson
If a controller specifies that it needs high priority for sending messages we should always schedule our transfers on the thread. If we don't do this we'll do the transfer in the caller's context which might not be very high priority. Signed-off-by: Douglas Anderson --- drivers/spi/spi.c | 7 +

[PATCH 2/4] spi: Allow SPI devices to specify that they are timing sensitive

2019-05-10 Thread Douglas Anderson
If a device on the SPI bus is very sensitive to timing then it may be necessary (for correctness) not to get interrupted during a transfer. One example is the EC (Embedded Controller) on Chromebooks. The Chrome OS EC will drop a transfer if more than ~8ms passes between the chip select being asser

[PATCH 1/3 v5] add a new ima hook and policy to measure the cmdline

2019-05-10 Thread Prakhar Srivastava
From: Prakhar Srivastava For this reason, this patch adds support for measuring these parameters during kexec. To achive this, a new ima policy and hook id, defined KEXEC_CMDLINE and ima_kexec_cmdline respectively, are added. Signed-off-by: Prakhar Srivastava --- Documentation/ABI/testing/ima_

[PATCH 2/3 v5] add a new template field buf to contain the buffer

2019-05-10 Thread Prakhar Srivastava
From: Prakhar Srivastava The buffer(cmdline args) added to the ima log cannot be attested without having the actual buffer. Thus to make the measured buffer available to stroe/read a new ima temaplate (buf) is added. The cmdline args used for soft reboot can then be read and attested later. Th

[PATCH 0/3 v5] Kexec cmdline bufffer measure

2019-05-10 Thread Prakhar Srivastava
From: Prakhar Srivastava For secure boot attestation, it is necessary to measure the kernel command line and the kernel version. For cold boot, the boot loader can be enhanced to measure these parameters. (https://mjg59.dreamwidth.org/48897.html) However, for attestation across soft reboot bounda

[PATCH 3/3 v5] call ima_kexec_cmdline from kexec_file_load path

2019-05-10 Thread Prakhar Srivastava
From: Prakhar Srivastava Signed-off-by: Prakhar Srivastava --- kernel/kexec_file.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/kexec_file.c b/kernel/kexec_file.c index f1d0e00a3971..e779bcf674a0 100644 --- a/kernel/kexec_file.c +++ b/kernel/kexec_file.c @@ -241,6 +241,8 @@ kima

Re: [PATCH] gcc-plugins: arm_ssp_per_task_plugin: Fix for older GCC < 6

2019-05-10 Thread Doug Anderson
Hi, > Use gen_rtx_set instead of gen_rtx_SET. The former is a wrapper macro > that handles the difference between GCC versions implementing > the latter. > > This fixes the following error on my system with g++ 5.4.0 as the host > compiler > >HOSTCXX -fPIC scripts/gcc-plugins/arm_ssp_per_task_

[GIT PULL] security subsystem: Tomoyo updates for v5.2

2019-05-10 Thread James Morris
Please pull. These patches include fixes to enable fuzz testing, and a fix for calculating whether a filesystem is user-modifiable. The following changes since commit 1fb3b526df3bd7647e7854915ae6b22299408baf: Merge tag 'docs-5.2a' of git://git.lwn.net/linux (2019-05-10 13:24:53 -0400) are av

Re: [RFC][PATCH 3/2] livepatch: remove klp_check_compiler_support()

2019-05-10 Thread Josh Poimboeuf
On Fri, May 10, 2019 at 11:47:50PM +0200, Jiri Kosina wrote: > From: Jiri Kosina > > The only purpose of klp_check_compiler_support() is to make sure that we > are not using ftrace on x86 via mcount (because that's executed only after > prologue has already happened, and that's too late for liv

Re: [PATCH v2 00/17] kunit: introduce KUnit, the Linux kernel unit testing framework

2019-05-10 Thread Frank Rowand
On 5/9/19 3:20 PM, Logan Gunthorpe wrote: > > > On 2019-05-09 3:42 p.m., Theodore Ts'o wrote: >> On Thu, May 09, 2019 at 11:12:12AM -0700, Frank Rowand wrote: >>> >>>     "My understanding is that the intent of KUnit is to avoid booting a >>> kernel on >>>     real hardware or in a virtual machi

Re: [PATCH] platform/chrome: cros_ec_spi: Always add of_match_table

2019-05-10 Thread Benson Leung
Hi Evan, On Thu, May 09, 2019 at 11:17:50AM -0700, Evan Green wrote: > The Chrome OS EC driver attaches to devices using the of_match_table > even when ACPI is the underlying firmware. It does this using the > magic PRP0001 ACPI HID, which tells ACPI to go find an OF compatible > string under the

[PATCH v5 1/9] Revert "media: staging/imx: add media device to capture register"

2019-05-10 Thread Steve Longerbeam
The imx6-specific subdevs that register a capture device will no longer hold a reference to the media device, so this commit must be reverted. This reverts commit 16204b8a1c1af77725533b77936e6c73953486ae. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-ic-prpencvf.c | 2 +-

Re: [RFC][PATCH 3/2] livepatch: remove klp_check_compiler_support()

2019-05-10 Thread Steven Rostedt
On Fri, 10 May 2019 23:47:50 +0200 (CEST) Jiri Kosina wrote: > From: Jiri Kosina > > The only purpose of klp_check_compiler_support() is to make sure that we > are not using ftrace on x86 via mcount (because that's executed only after > prologue has already happened, and that's too late for l

[PATCH 5/5] net: phy: dp83867: Use unsigned variables to store unsigned properties

2019-05-10 Thread Trent Piepho
The variables used to store u32 DT properties were signed ints. This doesn't work properly if the value of the property were to overflow. Use unsigned variables so this doesn't happen. Cc: Andrew Lunn Cc: Florian Fainelli Cc: Heiner Kallweit Signed-off-by: Trent Piepho --- drivers/net/phy/dp

[PATCH 3/5] net: phy: dp83867: Add ability to disable output clock

2019-05-10 Thread Trent Piepho
Generally, the output clock pin is only used for testing and only serves as a source of RF noise after this. It could be used to daisy-chain PHYs, but this is uncommon. Since the PHY can disable the output, make doing so an option. I do this by adding another enumeration to the allowed values of

Re: [PATCH 0/2] arm64: dts: meson: g12a board node order

2019-05-10 Thread Kevin Hilman
Jerome Brunet writes: > The order of the nodes in the u200 and sei510 is bit fancy. > Order nodes by address, then node name, then aliases. > > This makes rebasing is little less painful Fully agree. Thanks for the cleanup. Queued for v5.3 (branch: v5.3/dt64) Kevin

[PATCH 4/5] net: phy: dp83867: Disable tx/rx delay when not configured

2019-05-10 Thread Trent Piepho
The code was assuming the reset default of the delay control register was to have delay disabled. This is what the datasheet shows as the register's initial value. However, that's not actually true: the default is controlled by the PHY's pin strapping. If the interface mode is selected as RX or

[RFC][PATCH 3/2] livepatch: remove klp_check_compiler_support()

2019-05-10 Thread Jiri Kosina
From: Jiri Kosina The only purpose of klp_check_compiler_support() is to make sure that we are not using ftrace on x86 via mcount (because that's executed only after prologue has already happened, and that's too late for livepatching purposes). Now that mcount is not supported by ftrace any m

Re: [PATCH 2/4] powerpc/stackprotector: work around stack-guard init from atomic

2019-05-10 Thread Steven Rostedt
On Wed, 27 Mar 2019 19:33:08 +0100 Sebastian Andrzej Siewior wrote: > This is invoked from the secondary CPU in atomic context. On x86 we use > tsc instead. On Power we XOR it against mftb() so lets use stack address > as the initial value. > > Signed-off-by: Sebastian Andrzej Siewior Hi Sebas

[PATCH v5 5/9] Revert "media: imx: Set capture compose rectangle in capture_device_set_format"

2019-05-10 Thread Steve Longerbeam
Rvert this commit, as imx_media_capture_device_set_format() will be removed. The arguments to mx_media_mbus_fmt_to_pix_fmt() and imx_media_capture_device_set_format() in imx7_csi_set_fmt() are also reverted. This reverts commit 5964cbd8692252615370b77eb96764dd70c2f837. Signed-off-by: Steve Longer

  1   2   3   4   5   6   >