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,

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

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

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

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.

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

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.

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;

[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 +++

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,

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

[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

[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:

[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

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

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

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

[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:

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

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

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

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 > > --- > >

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

[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()

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

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

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

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

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

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

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

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

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:

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

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.

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

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

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

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

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

[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

[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.

[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

[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)

[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 (Pierre-Louis

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

[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)

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

[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

[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 ---

[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

[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 ---

[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.

[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

[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 @@

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

[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

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

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

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

[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 ---

[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

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

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

[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

[PATCH v5 4/9] media: staging/imx: Move add_video_device into capture_device_register

2019-05-10 Thread Steve Longerbeam
Move imx_media_add_video_device() into imx_media_capture_device_register(). Also the former has no error conditions to convert to void. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-ic-prpencvf.c | 5 - drivers/staging/media/imx/imx-media-capture.c | 3 +++

[PATCH v5 9/9] media: staging/imx: Don't set driver data for v4l2_dev

2019-05-10 Thread Steve Longerbeam
The media device is already available via multiple methods, there is no need to set driver data for v4l2_dev to the media device. In imx_media_link_notify(), get media device from link->graph_obj.mdev. In imx_media_capture_device_register(), get media device from v4l2_dev->mdev. Signed-off-by:

[PATCH v5 2/9] media: staging/imx: Switch to sync registration for IPU subdevs

2019-05-10 Thread Steve Longerbeam
Because the IPU sub-devices VDIC and IC are not present in the device-tree, platform devices were created for them instead. This allowed these sub-devices to be added to the media device's async notifier and registered asynchronously along with the other sub-devices that do have a device-tree

[GIT PULL] VFIO updates for v5.2-rc1

2019-05-10 Thread Alex Williamson
Hi Linus, The following changes since commit 085b7755808aa11f78ab9377257e1dad2e6fa4bb: Linux 5.1-rc6 (2019-04-21 10:45:57 -0700) are available in the Git repository at: git://github.com/awilliam/linux-vfio.git tags/vfio-v5.2-rc1 for you to fetch changes up to

[PATCH v5 8/9] media: staging/imx: Improve pipeline searching

2019-05-10 Thread Steve Longerbeam
Export find_pipeline_pad(), renaming to imx_media_pipeline_pad(), and extend its functionality to allow searching for video devices in the enabled pipeline in addition to sub-devices. As part of this: - Rename imx_media_find_mipi_csi2_channel() to imx_media_pipeline_csi2_channel(). - Remove

[PATCH v5 3/9] media: staging/imx: Pass device to alloc/free_dma_buf

2019-05-10 Thread Steve Longerbeam
Allocate and free a DMA coherent buffer in imx_media_alloc/free_dma_buf() from the given device. This allows DMA alloc and free using a device that is backed by real hardware, which for the imx5/6/7 CSI is the CSI unit, and for the internal IPU sub-devices, is the parent IPU. Signed-off-by: Steve

[PATCH v5 6/9] media: staging/imx: Remove capture_device_set_format

2019-05-10 Thread Steve Longerbeam
Don't propagate the source pad format to the connected capture device. It's now the responsibility of userspace to call VIDIOC_S_FMT on the capture device to ensure the capture format and compose rectangle are compatible with the connected source. To check this, validate the capture format with

[PATCH v5 7/9] media: staging/imx: Re-organize modules

2019-05-10 Thread Steve Longerbeam
Re-organize modules, and which objects are linked into those modules, so that: - imx6-media (renamed from imx-media) is the media driver module for imx5/6 only, and has no symbol exports. - imx6-media-csi (renamed from imx-media-csi) is the subdev driver module for imx5/6 CSI. It is now

Re: [PATCH v3 4/4] clk: at91: sckc: add support for SAM9X60

2019-05-10 Thread Alexandre Belloni
On 10/05/2019 11:23:40+, claudiu.bez...@microchip.com wrote: > From: Claudiu Beznea > > Add support for SAM9X60's slow clock. > > Signed-off-by: Claudiu Beznea Acked-by: Alexandre Belloni > --- > drivers/clk/at91/sckc.c | 74 > + > 1 file

Re: [PATCH] arm64: arch_k3: Fix kconfig dependency warning

2019-05-10 Thread Tony Lindgren
* Marc Zyngier [190510 18:30]: > On Fri, 10 May 2019 06:16:38 +0100, > Lokesh Vutla wrote: > > > > > > > > On 10/05/19 9:22 AM, YueHaibing wrote: > > > Fix Kbuild warning when SOC_TI is not set > > > > > > WARNING: unmet direct dependencies detected for TI_SCI_INTA_IRQCHIP > > > Depends on

Re: [PATCH 1/2] arm64: dts: meson: sei510: consistently order nodes

2019-05-10 Thread Kevin Hilman
Jerome Brunet writes: > Like order boards, order nodes by address then node names then aliases. > > Signed-off-by: Jerome Brunet > --- > .../boot/dts/amlogic/meson-g12a-sei510.dts| 92 +-- > 1 file changed, 46 insertions(+), 46 deletions(-) > > diff --git

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

2019-05-10 Thread Keith Busch
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 power. NVMe devices that implement host

Re: [PATCH v2 3/3] initramfs: introduce do_readxattrs()

2019-05-10 Thread Jann Horn
On Thu, May 09, 2019 at 01:24:20PM +0200, Roberto Sassu wrote: > This patch adds support for an alternative method to add xattrs to files in > the rootfs filesystem. Instead of extracting them directly from the ram > disk image, they are extracted from a regular file called .xattr-list, that > can

Re: [PATCH v3 3/4] dt-bindings: clk: at91: add bindings for SAM9X60's slow clock controller

2019-05-10 Thread Alexandre Belloni
On 10/05/2019 11:23:35+, claudiu.bez...@microchip.com wrote: > From: Claudiu Beznea > > Add bindings for SAM9X60's slow clock controller. > > Signed-off-by: Claudiu Beznea Reviewed-by: Alexandre Belloni > --- > > Hi Rob, > > I didn't added your Reviewed-by tag to this version since I

  1   2   3   4   5   6   >