Re: [PATCH 3/7] thermal/drivers/core: Add init section table for self-encapsulation

2019-04-22 Thread Zhang Rui
Hi, Daniel, thanks for clarifying. It is true that we need to make thermal framework ready as early as possible. And a static table works for me as long as vmlinux.lds.h is the proper place. Arnd, are you okay with this patch? if yes, I suppose I can take it through my tree, right? thanks, rui

[GIT PULL] extcon next for v5.2

2019-04-22 Thread Chanwoo Choi
Dear Greg, This is extcon-next pull request for v5.2. I add detailed description of this pull request on below. Please pull extcon with following updates. [Detailed description for this pull request] 1. Add new extcon-intel-mrfld.c extcon provider driver - On Intel Merrifield the Basin Cove PMIC

Re: [PATCH] riscv: Support non-coherency memory model

2019-04-22 Thread Christoph Hellwig
On Tue, Apr 23, 2019 at 08:13:48AM +0800, Guo Ren wrote: > > We should probably start a working group for this ASAP unless we can > > get another working group to help taking care of it. > Good news, I prefer to use instructions directly instead of SBI_CALL. > > Our instruction is "dcache.c/iva

Re: [PATCH AUTOSEL 4.14 35/43] tty: fix NULL pointer issue when tty_port ops is not set

2019-04-22 Thread Johan Hovold
Hi Sasha, On Mon, Apr 22, 2019 at 03:47:19PM -0400, Sasha Levin wrote: > From: Fabien Dessenne > > [ Upstream commit f4e68d58cf2b20a581759bbc7228052534652673 ] > > Unlike 'client_ops' which is initialized to 'default_client_ops', the > port operations 'ops' may be left to NULL. > Check the

Re: [PATCH v6 1/3] arm64: dts: fsl: librem5: Add a device tree for the Librem5 devkit

2019-04-22 Thread Marco Felsch
Hi Angus, looks good to me just a few last nitpicks. Feel free to add or drop it. Regards, Marco On 19-04-22 08:30, Angus Ainslie (Purism) wrote: > This is the development kit board for the Librem 5. The current level of > support yields a working console and is able to boot userspace from

Re: [PATCH v2 1/2] arm64: dts: imx8mm: Add SAI nodes

2019-04-22 Thread Marco Felsch
Hi Daniel, On 19-04-22 19:35, Daniel Baluta wrote: > i.MX8MM has 5 SAI instances with the following base > addresses according to RM. > > SAI1 base address: 3001_h > SAI2 base address: 3002_h > SAI3 base address: 3003_h > SAI5 base address: 3005_h > SAI6 base address: 3006_h

Re: [PATCH v2 2/2] arm64: dts: imx8mm-evk: Enable audio codec wm8524

2019-04-22 Thread Marco Felsch
Hi Daniel, On 19-04-22 19:36, Daniel Baluta wrote: > i.MX8MM has one wm8524 audio codec connected with > SAI3 digital audio interface. > > This patch uses simple-card machine driver in order > to enable wm8524 codec. > > We need to set: > * SAI3 pinctrl configuration > * clock

linux-next: build warning after merge of the staging tree

2019-04-22 Thread Stephen Rothwell
Hi Greg, After merging the staging tree, today's linux-next build (x86_64 allmodconfig) produced this warning: drivers/staging/kpc2000/kpc_spi/spi_driver.c:97:5: note: offset of packed bit-field 'wl' has changed in GCC 4.4 } bitfield; ^

Re: [PATCH v3 1/3] dmaengine: at_xdmac: remove BUG_ON macro in tasklet

2019-04-22 Thread Vinod Koul
On 03-04-19, 12:23, Nicolas Ferre wrote: > Even if this case shouldn't happen when controller is properly programmed, > it's still better to avoid dumping a kernel Oops for this. > As the sequence may happen only for debugging purposes, log the error and > just finish the tasklet call. Applied

[PATCH 1/2] x86/time: check usability of IRQ0 PIT timer

2019-04-22 Thread Daniel Drake
Modern Intel SoCs now include a special ITSSPRC register that can be used to "gate" the PIT such that IRQ0 interrupts do not fire. With Intel Apollo Lake we are starting to see consumer products that have a BIOS option to apply this (defaulting to gated). Some such products also lack the HPET

[PATCH 2/2] x86/ioapic: avoid timer manipulation when IRQ0 timer is unavailable

2019-04-22 Thread Daniel Drake
New products based on Intel Apollo Lake are appearing where the HPET is not present in ACPI, and the legacy 8254 PIT is "gated" by default in the BIOS setup menu. This leads an early boot "IO-APIC + timer doesn't work!" kernel panic on a black screen (before the framebuffer is initialized).

Re: [PATCH] pinctrl: intel: Clear interrupt status in unmask callback

2019-04-22 Thread Kai-Heng Feng
Hi, at 02:22, wrote: Hi. I've just applied this patch, and touchpad woorks smoothly, but suspend issue is still present. After suspend, i2c_hid module bursts i2c_hid i2c-ELAN1200:00: i2c_hid_get_input: incomplete report (16/65535) messages (more than 50 reports/sec). In dmesg I can see

[PATCH V3 2/2] PCI: dwc: Export APIs to support .remove() implementation

2019-04-22 Thread Vidya Sagar
Export all configuration space access APIs and also other APIs to support host controller drivers of DesignWare core based implementations while adding support for .remove() hook to build their respective drivers as modules Signed-off-by: Vidya Sagar Acked-by: Gustavo Pimentel --- v3: * Rebased

[PATCH V3 1/2] PCI: dwc: Add API support to de-initialize host

2019-04-22 Thread Vidya Sagar
Add an API to group all the tasks to be done to de-initialize host which can then be called by any DesignWare core based driver implementations while adding .remove() support in their respective drivers. Signed-off-by: Vidya Sagar Acked-by: Gustavo Pimentel --- v3: * Rebased on top of

Re: [PATCH 3/3] ARM: omap2: move platform-specific asm-offset.h to arch/arm/mach-omap2

2019-04-22 Thread Masahiro Yamada
On Tue, Apr 9, 2019 at 11:20 PM Tony Lindgren wrote: > > * Masahiro Yamada [190409 07:06]: > > On Tue, Apr 9, 2019 at 2:17 PM Keerthy wrote: > > > > > > > > > > > > On 09/04/19 10:37 AM, Masahiro Yamada wrote: > > > > On Tue, Apr 9, 2019 at 2:00 PM Keerthy wrote: > > > >> > > > >> > > > >> > >

Re: [PATCH 2/3] ARM: at91: move platform-specific asm-offset.h to arch/arm/mach-at91

2019-04-22 Thread Masahiro Yamada
On Sat, Apr 20, 2019 at 8:10 AM Masahiro Yamada wrote: > > On Sat, Apr 20, 2019 at 4:03 AM Ludovic Desroches > wrote: > > > > On Mon, Apr 15, 2019 at 05:14:50PM +0200, Alexandre Belloni wrote: > > > External E-Mail > > > > > > > > > On 08/04/2019 16:54:26+0900, Masahiro Yamada wrote: > > > > is

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

2019-04-22 Thread Masahiro Yamada
On Tue, Apr 23, 2019 at 10:33 AM Stephen Rothwell wrote: > > Hi all, > > After merging the at91 tree, today's linux-next build (arm > multi_v7_defconfig) failed like this: > > arch/arm/mach-at91/pm_suspend.S:17:10: fatal error: pm_data-offsets.h: No > such file or directory > #include

Re: kernel BUG at kernel/cred.c:434!

2019-04-22 Thread Yang Yingliang
On 2019/4/23 3:48, Paul Moore wrote: On Sat, Apr 20, 2019 at 3:39 AM Yang Yingliang wrote: I'm not sure you got my point. I went back and looked at your previous emails again to try and understand what you are talking about, and I'm a little confused by some of the output ... ---

Re: linux-next: Fixes tag needs some work in the crypto tree

2019-04-22 Thread Herbert Xu
On Tue, Apr 23, 2019 at 07:30:36AM +1000, Stephen Rothwell wrote: > > In commit > > f5a2aeb8b254 ("crypto: ccp - Do not free psp_master when PLATFORM_INIT > fails") > > Fixes tag > > Fixes: 200664d5237f ("crypto: ccp: Add SEV support") > > has these problem(s): > > - Subject does not

[Question] Should direct reclaim time be bounded?

2019-04-22 Thread Mike Kravetz
I was looking into an issue on our distro kernel where allocation of huge pages via "echo X > /proc/sys/vm/nr_hugepages" was taking a LONG time. In this particular case, we were actually allocating huge pages VERY slowly at the rate of about one every 30 seconds. I don't want to talk about the

Re: [PATCH] KVM: fix KVM_CLEAR_DIRTY_LOG for memory slots of unaligned size

2019-04-22 Thread Peter Xu
On Wed, Apr 17, 2019 at 03:42:41PM +0200, Paolo Bonzini wrote: > If a memory slot's size is not a multiple of 64 pages (256K), then > the KVM_CLEAR_DIRTY_LOG API is unusable: clearing the final 64 pages > either requires the requested page range to go beyond memslot->npages, > or requires

Re: [PATCH v2] Input: uinput: Avoid Object-Already-Free with a global lock

2019-04-22 Thread dmitry.torok...@gmail.com
On Fri, Apr 19, 2019 at 02:13:48PM +0530, Mukesh Ojha wrote: > > On 4/19/2019 12:41 PM, dmitry.torok...@gmail.com wrote: > > Hi Mukesh, > > > > On Fri, Apr 19, 2019 at 12:17:44PM +0530, Mukesh Ojha wrote: > > > For some reason my last mail did not get delivered,  sending it again. > > > > > >

Re: [PATCH 2/4] ARM: ep93xx: keypad: stop using mach/platform.h

2019-04-22 Thread Dmitry Torokhov
On Mon, Apr 15, 2019 at 09:25:24PM +0200, Arnd Bergmann wrote: > We can communicate the clock rate using platform data rather than setting > a flag to use a particular value in the driver, which is cleaner and > avoids the dependency. > > No platform in the kernel currently defines the ep93xx

Re: [PATCH v3] proc/sysctl: add shared variables for range check

2019-04-22 Thread Matteo Croce
On April 19, 2019 10:07:14 AM GMT+09:00, Matthew Wilcox wrote: > On Fri, Apr 19, 2019 at 09:17:17AM +0900, Matteo Croce wrote: > > > extern const int sysctl_zero; > > > /* comment goes here */ > > > #define SYSCTL_ZERO ((void *)_zero) > > > > > > and then use SYSCTL_ZERO everywhere. That

RE: [PATCH] drivers: hid: Add a module description line

2019-04-22 Thread Joseph Salisbury
Thanks for the feedback. I'll probably update each patch subject with the module names as well. I'll send a v2 for all three. Thanks, Joe -Original Message- From: Michael Kelley Sent: Monday, April 22, 2019 11:16 PM To: Joseph Salisbury ; KY Srinivasan ; Haiyang Zhang ; Stephen

Re: [PATCH] KVM: x86: Add Intel CPUID.1F cpuid emulation support

2019-04-22 Thread Like Xu
On 2019/4/23 2:35, Sean Christopherson wrote: On Mon, Apr 22, 2019 at 02:40:34PM +0800, Like Xu wrote: Expose Intel V2 Extended Topology Enumeration Leaf to guest only when host system has multiple software-visible die within each package. Signed-off-by: Like Xu --- arch/x86/kvm/cpuid.c |

RE: [PATCH] drivers: hid: Add a module description line

2019-04-22 Thread Michael Kelley
From: Joseph Salisbury Sent: Monday, April 22, 2019 2:31 PM > > Signed-off-by: Joseph Salisbury > --- > drivers/hid/hid-hyperv.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/hid/hid-hyperv.c b/drivers/hid/hid-hyperv.c > index 704049e62d58..d3311d714d35 100644 > ---

Re: [PATCH 2/2] x86/tsc: set LAPIC timer frequency to crystal clock frequency

2019-04-22 Thread Daniel Drake
On Mon, Apr 22, 2019 at 8:04 PM Ingo Molnar wrote: > Minor style nit: the parentheses are unnecessary, integer expressions > like this are evaluated left to right and multiplication and division has > the same precedence. Fair point, although the same could be said for cpu_khz_from_msr(). > But

Re: [PATCH v3 14/28] userfaultfd: wp: handle COW properly for uffd-wp

2019-04-22 Thread Peter Xu
On Mon, Apr 22, 2019 at 10:54:02AM -0400, Jerome Glisse wrote: > On Mon, Apr 22, 2019 at 08:20:10PM +0800, Peter Xu wrote: > > On Fri, Apr 19, 2019 at 11:02:53AM -0400, Jerome Glisse wrote: > > > > [...] > > > > > > > > + if (uffd_wp_resolve) { > > > > > > +

Re: [PATCH] fs/proc/proc_sysctl.c: Fix a NULL pointer dereference

2019-04-22 Thread YueHaibing
Friendly ping... On 2019/4/9 23:36, Yue Haibing wrote: > From: YueHaibing > > Syzkaller report this: > > sysctl could not get directory: /net//bridge -12 > kasan: CONFIG_KASAN_INLINE enabled > kasan: GPF could be caused by NULL-ptr deref or user memory access > general protection fault:

[PATCH] staging: vchiq_arm: Fix misuse of %x

2019-04-22 Thread Fuqian Huang
Pointers should be printed with %p or %px rather than cast to unsigned long type and printed with %lx. Change %lx to %pK to print the pointers. Signed-off-by: Fuqian Huang --- drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c | 8 1 file changed, 4 insertions(+), 4

[PATCH] staging: vchiq_arm: Fix misuse of %x

2019-04-22 Thread Fuqian Huang
Pointers should be printed with %p or %px rather than cast to unsigned long type and printed with %lx. Change %lx to %pK to print the pointers. Signed-off-by: Fuqian Huang --- drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c | 8 1 file changed, 4 insertions(+), 4

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

2019-04-22 Thread Yuantian Tang
Ls1088a has 2 thermal sensors, core cluster and SoC platform. Core cluster sensor is used to monitor the temperature of core and SoC platform is for platform. The current dts only support the first sensor. This patch adds the second sensor node to dts to enable it. Signed-off-by: Yuantian Tang

Re: scripts/selinux build error in 4.14 after glibc update

2019-04-22 Thread Nathan Chancellor
On Mon, Apr 22, 2019 at 09:59:47PM -0400, Paul Moore wrote: > On Mon, Apr 22, 2019 at 5:00 PM Nathan Chancellor > wrote: > > Hi all, > > > > After a glibc update to 2.29, my 4.14 builds started failing like so: > > ... > > > HOSTCC scripts/selinux/genheaders/genheaders > > In file included

[PATCH v2 2/2] ASoC: sprd: Add Spreadtrum multi-channel data transfer support

2019-04-22 Thread Baolin Wang
On Spreadtrum platform, the audio subsystem will use the multi-channel data transfer controller to transfer sound stream between audio subsystem and other AP/CP subsystem. It can support 10 DAC channel and 10 ADC channel, and each channel has 512 bytes depth data fifo. Moreover each channel can

[PATCH v2 1/2] dt-bindings: ASoC: Add Spreadtrum multi-channel data transfer support

2019-04-22 Thread Baolin Wang
On Spreadtrum platform, the audio subsystem will use the multi-channel data transfer controller to transfer sound stream between audio subsystem and other AP/CP subsystem. It can support 10 DAC channel and 10 ADC channel, and each channel has 512 bytes depth data fifo. Moreover each channel can

[PATCH] staging: most: protect potential string overflow

2019-04-22 Thread Bo YU
There maybe cause potential string overflow issue due to use strcpy without checking the length Detected By CoversityScan CID# 1444760 Fixes: 131ac62253dba:(staging: most: core: use device description as name) Signed-off-by: Bo YU --- drivers/staging/most/core.c | 2 +- 1 file changed, 1

Re: [RFC PATCH 0/5] NUMA Balancer Suite

2019-04-22 Thread 王贇
On 2019/4/22 下午10:34, 禹舟键 wrote: > Hi, Michael > I really want to know how could you fix the conflict between numa balancer > and load balancer. Maybe you gained numa bonus by migrating some tasks to the > node with most of the cache there, but, cpu load balance was break, so how to > do it ?

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

2019-04-22 Thread Shawn Guo
Hi Stephen, On Tue, Apr 23, 2019 at 08:45:01AM +1000, Stephen Rothwell wrote: > Hi all, > > After merging the imx-mxs tree, today's linux-next build (arm > multi_v7_defconfig) failed like this: > > arch/arm/boot/dts/imx7d-zii-rpu2.dts:46.12-50.4: Warning > (io_channels_property): /iio-hwmon:

Re: scripts/selinux build error in 4.14 after glibc update

2019-04-22 Thread Paul Moore
On Mon, Apr 22, 2019 at 5:00 PM Nathan Chancellor wrote: > Hi all, > > After a glibc update to 2.29, my 4.14 builds started failing like so: ... > HOSTCC scripts/selinux/genheaders/genheaders > In file included from scripts/selinux/genheaders/genheaders.c:19: >

Re: [PATCH v3 1/4] dt-bindings: iio: imx7d-adc: Add #io-channel-cells to required

2019-04-22 Thread Shawn Guo
On Sun, Apr 14, 2019 at 11:34:00AM -0700, Andrey Smirnov wrote: > Add #io-channel-cells to list of required properties. Needed to be > able to reference that node by phandle. > > Signed-off-by: Andrey Smirnov > Cc: Shawn Guo > Cc: Chris Healy > Cc: Andrew Lunn > Cc: Fabio Estevam > Cc: Rob

Re: [PATCH v3 2/4] ARM: dts: imx7s: Specify #io-channel-cells in ADC nodes

2019-04-22 Thread Shawn Guo
On Sun, Apr 14, 2019 at 11:34:01AM -0700, Andrey Smirnov wrote: > Specify #io-channel-cells in ADC nodes. Needed to be able to reference > them by phandle. > > Signed-off-by: Andrey Smirnov > Cc: Shawn Guo > Cc: Chris Healy > Cc: Andrew Lunn > Cc: Fabio Estevam > Cc: Rob Herring > Cc:

Re: [RFC PATCH v1 3/3] selftests/x86: Augment SGX selftest to test new __vdso_sgx_enter_enclave() and its callback interface

2019-04-22 Thread Sean Christopherson
On Mon, Apr 22, 2019 at 06:29:06PM -0700, Andy Lutomirski wrote: > On Mon, Apr 22, 2019 at 5:37 PM Cedric Xing wrote: > > > > Given the changes to __vdso_sgx_enter_enclave(), the selftest is augmented > > to > > test the newly added callback interface. This addtional test marks the whole > >

[PATCH] rcu/srcutree: make __call_srcu static

2019-04-22 Thread Jiang Biao
__call_srcu() is only used in current file, just make it static. Signed-off-by: Jiang Biao --- kernel/rcu/srcutree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/rcu/srcutree.c b/kernel/rcu/srcutree.c index a60b8ba9e1ac..a2ade0c6cd87 100644 ---

Re: [RFC PATCH v1 3/3] selftests/x86: Augment SGX selftest to test new __vdso_sgx_enter_enclave() and its callback interface

2019-04-22 Thread Andy Lutomirski
On Mon, Apr 22, 2019 at 5:37 PM Cedric Xing wrote: > > Given the changes to __vdso_sgx_enter_enclave(), the selftest is augmented to > test the newly added callback interface. This addtional test marks the whole > enclave range as PROT_READ, and calls mprotect() upon #PFs to add necessary > PTE

Re: [RFC PATCH v1 2/3] x86/vdso: Modify __vdso_sgx_enter_enclave() to allow parameter passing on untrusted stack

2019-04-22 Thread Andy Lutomirski
On Mon, Apr 22, 2019 at 5:37 PM Cedric Xing wrote: > > The previous __vdso_sgx_enter_enclave() requires enclaves to preserve %rsp, > which prohibits enclaves from allocating and passing parameters for > untrusted function calls (aka. o-calls). > > This patch addresses the problem above by

Re: [PATCH v2] binfmt_elf: Move brk out of mmap when doing direct loader exec

2019-04-22 Thread Guenter Roeck
On 4/22/19 3:57 PM, Kees Cook wrote: Commit eab09532d400 ("binfmt_elf: use ELF_ET_DYN_BASE only for PIE"), made changes in the rare case when the ELF loader was directly invoked (e.g to set a non-inheritable LD_LIBRARY_PATH, testing new versions of the loader), by moving into the mmap region to

[PATCH] rcu/tree_exp: cleanup initialized but not used rdp

2019-04-22 Thread Jiang Biao
rdp is initialized but never used in synchronize_rcu_expedited(), just remove it. Signed-off-by: Jiang Biao --- kernel/rcu/tree_exp.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/kernel/rcu/tree_exp.h b/kernel/rcu/tree_exp.h index 4c2a0189e748..5772612379e4 100644 ---

Re: [PATCH v2] clk: rockchip: undo several noc and special clocks as critical on rk3288

2019-04-22 Thread elaine.zhang
hi, 在 2019/4/22 下午11:23, Doug Anderson 写道: Elaine, On Fri, Apr 12, 2019 at 9:18 AM Douglas Anderson wrote: This is mostly a revert of commit 55bb6a633c33 ("clk: rockchip: mark noc and some special clk as critical on rk3288") except that we're keeping "pmu_hclk_otg0" as critical still. NOTE:

Re: [PATCH v3] signal: trace_signal_deliver when signal_group_exit

2019-04-22 Thread kbuild test robot
Hi Zhenliang, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v5.1-rc6 next-20190418] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: clk/clk-next boot bisection: v5.1-rc1-142-ga55b079c961b on panda

2019-04-22 Thread Stephen Boyd
Quoting kernelci.org bot (2019-04-22 17:16:44) > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > * This automated bisection report was sent to you on the basis * > * that you may be involved with the breaking commit it has * > * found. No manual investigation has been

Re: [PATCH] x86_64: uninline TASK_SIZE

2019-04-22 Thread Andy Lutomirski
On Mon, Apr 22, 2019 at 3:09 PM Alexey Dobriyan wrote: > > On Mon, Apr 22, 2019 at 07:30:40AM -0700, Andy Lutomirski wrote: > > > > > > > On Apr 22, 2019, at 3:34 AM, Ingo Molnar wrote: > > > > > > > > > * Alexey Dobriyan wrote: > > > > > > +++ b/arch/x86/kernel/task_size_64.c > > > @@

Re: [PATCH v1] clk: Probe defer clk_get() on orphans

2019-04-22 Thread Stephen Boyd
Quoting Jeffrey Hugo (2019-02-11 10:57:47) > If a parent to a clock comes from outside that clock's provider, the parent > may not be present at the time the clock is registered (ie the parent comes > from another driver that has not yet probed). The clock can still be > registered, and a

linux-next: manual merge of the v4l-dvb-next tree with the v4l-dvb tree

2019-04-22 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the v4l-dvb-next tree got a conflict in: drivers/media/platform/Kconfig between commit: 63604a143fe1 ("media: seco-cec: fix building with RC_CORE=m") from the v4l-dvb tree and commit: 81527254e151 ("media: seco: depend on CONFIG_RC_CORE=y when not a

[RFC PATCH v1 1/3] selftests/x86: Fixed Makefile for SGX selftest

2019-04-22 Thread Cedric Xing
The original x86/sgx/Makefile doesn't work when 'x86/sgx' is specified as the test target. This patch fixes that problem, along with minor changes to the dependencies between 'x86' and 'x86/sgx' in selftests/x86/Makefile. Signed-off-by: Cedric Xing --- tools/testing/selftests/x86/Makefile |

[RFC PATCH v1 0/3] An alternative __vdso_sgx_enter_enclave() to allow enclave/host parameter passing using untrusted stack

2019-04-22 Thread Cedric Xing
The current proposed __vdso_sgx_enter_enclave() requires enclaves to preserve %rsp, which prohibits enclaves from allocating space on the untrusted stack. However, there are existing enclaves (e.g. those built with current Intel SGX SDK libraries) relying on the untrusted stack for passing

[RFC PATCH v1 3/3] selftests/x86: Augment SGX selftest to test new __vdso_sgx_enter_enclave() and its callback interface

2019-04-22 Thread Cedric Xing
Given the changes to __vdso_sgx_enter_enclave(), the selftest is augmented to test the newly added callback interface. This addtional test marks the whole enclave range as PROT_READ, and calls mprotect() upon #PFs to add necessary PTE permissions per PFEC (#PF Error Code) until the enclave

[RFC PATCH v1 2/3] x86/vdso: Modify __vdso_sgx_enter_enclave() to allow parameter passing on untrusted stack

2019-04-22 Thread Cedric Xing
The previous __vdso_sgx_enter_enclave() requires enclaves to preserve %rsp, which prohibits enclaves from allocating and passing parameters for untrusted function calls (aka. o-calls). This patch addresses the problem above by introducing a new ABI that preserves %rbp instead of %rsp. Then

Re: [PATCH] PCI/LINK: Account for BW notification in vector calculation

2019-04-22 Thread Alex Williamson
On Mon, 22 Apr 2019 19:05:57 -0500 Alex G wrote: > On 4/22/19 5:43 PM, Alex Williamson wrote: > > [ 329.725607] vfio-pci :07:00.0: 32.000 Gb/s available PCIe bandwidth, > > limited by 2.5 GT/s x16 link at :00:02.0 (capable of 64.000 Gb/s with 5 > > GT/s x16 link) > > [ 708.151488]

Re: [PATCH] riscv: Support non-coherency memory model

2019-04-22 Thread kbuild test robot
Hi, I love your patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v5.1-rc6 next-20190418] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [PATCH] kexec_buffer measure

2019-04-22 Thread Mimi Zohar
[Cc'ing LSM mailing list] On Fri, 2019-04-19 at 17:30 -0700, prakhar srivastava wrote: > 2) Adding a LSM hook > We are doing both the command line and kernel version measurement in IMA. > Can you please elaborate on how this can be used outside of the scenario? > That will help me come back with

Testing the recent RISC-V DT patchsets

2019-04-22 Thread Paul Walmsley
I've heard from two separate people who have had trouble getting started with BBL & open-source FSBL test flows with arbitrary DT files on the Freedom Unleashed board. The following instructions should help get people started. The core issue, aside from general unfamiliarity, is that

clk/clk-next boot bisection: v5.1-rc1-142-ga55b079c961b on panda

2019-04-22 Thread kernelci.org bot
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This automated bisection report was sent to you on the basis * * that you may be involved with the breaking commit it has * * found. No manual investigation has been done to verify it, * * and the root cause of the

[PATCH] driver core: platform: Fix the usage of platform device name(pdev->name)

2019-04-22 Thread Venkata Narendra Kumar Gutta
Platform core is using pdev->name as the platform device name to do the binding of the devices with the drivers. But, when the platform driver overrides the platform device name with dev_set_name(), the pdev->name is pointing to a location which is freed and becomes an invalid parameter to do the

Re: [PATCH] riscv: Support non-coherency memory model

2019-04-22 Thread Guo Ren
Thx Christoph, On Mon, Apr 22, 2019 at 06:18:14PM +0200, Christoph Hellwig wrote: > On Mon, Apr 22, 2019 at 11:44:30PM +0800, guo...@kernel.org wrote: > > - Add _PAGE_COHERENCY bit in current page table entry attributes. The bit > >designates a coherence for this page mapping. Software set

Re: [PATCH] PCI/LINK: Account for BW notification in vector calculation

2019-04-22 Thread Alex G
On 4/22/19 5:43 PM, Alex Williamson wrote: [ 329.725607] vfio-pci :07:00.0: 32.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s x16 link at :00:02.0 (capable of 64.000 Gb/s with 5 GT/s x16 link) [ 708.151488] vfio-pci :07:00.0: 32.000 Gb/s available PCIe bandwidth, limited by

[PATCH v2 1/2] PCI: Prevent 64-bit resources from being counted in 32-bit bridge region

2019-04-22 Thread Logan Gunthorpe
In some situations (described below), hierarchies of 32-bit resources can fail to be assigned when the kernel has to attempt to assign a large 64-bit resource. When this happens, lspci will report some PCI BAR resources as 'ignored' and some PCI Bridge windows being left unset. Sample lspci lines

[PATCH v2 0/2] Fix a pair of setup bus bugs.

2019-04-22 Thread Logan Gunthorpe
Hey, This is largely a resend to get some more attention. I've attempted to clean up and expand on the commit message of the first commit because the bug is a bit of a nightmare to explain and follow. There's a lot more information on the first commit in the original thread here[1] including

[PATCH v2 2/2] PCI: Fix disabling of bridge BARs when assigning bus resources

2019-04-22 Thread Logan Gunthorpe
One odd quirk of PLX switches is that their upstream bridge port has 256K of space allocated behind its BAR0 (most other bridge implementations do not report any BAR space). The lspci for such device looks like: 04:00.0 PCI bridge: PLX Technology, Inc. PEX 8724 24-Lane, 6-Port PCI

Re: [PATCH v1 1/3] PCI / ACPI: Do not export pci_get_hp_params()

2019-04-22 Thread Alex G
On 4/22/19 3:58 PM, Bjorn Helgaas wrote: On Fri, Feb 08, 2019 at 10:24:11AM -0600, Alexandru Gagniuc wrote: This is only used within drivers/pci, and there is no reason to make it available outside of the PCI core. Signed-off-by: Alexandru Gagniuc Applied the whole series to pci/hotplug for

Re: [PATCH v2] binfmt_elf: Move brk out of mmap when doing direct loader exec

2019-04-22 Thread Andrew Morton
On Mon, 22 Apr 2019 15:57:27 -0700 Kees Cook wrote: > Commit eab09532d400 ("binfmt_elf: use ELF_ET_DYN_BASE only for PIE"), > made changes in the rare case when the ELF loader was directly invoked > (e.g to set a non-inheritable LD_LIBRARY_PATH, testing new versions of > the loader), by moving

Re: [PATCH 0/7] introduce cpu.headroom knob to cpu controller

2019-04-22 Thread Song Liu
Hi Vincent, > On Apr 17, 2019, at 5:56 AM, Vincent Guittot > wrote: > > On Wed, 10 Apr 2019 at 21:43, Song Liu wrote: >> >> Hi Morten, >> >>> On Apr 10, 2019, at 4:59 AM, Morten Rasmussen >>> wrote: >>> > >>> >>> The bit that isn't clear to me, is _why_ adding idle cycles helps your

Re: [RFC PATCH 60/62] orangefs: make use of ->free_inode()

2019-04-22 Thread Mike Marshall
Hi Linus and Al... I just wanted Al to know I tested his patch and acked it and that it there would be a conflict if our pagecache code got pulled... I wasn't suggesting that I should get that one part of Al's patch pulled... >> I can easily handle any trivial conflicts this causes... Thanks

Re: [RFC PATCH 60/62] orangefs: make use of ->free_inode()

2019-04-22 Thread Al Viro
On Mon, Apr 22, 2019 at 02:56:57PM -0700, Linus Torvalds wrote: > On Mon, Apr 22, 2019 at 2:14 PM Mike Marshall wrote: > > > > I applied your "new inode method: ->free_inode()" and > > "orangefs: make use of ->free_inode()" to our pagecache > > branch (I hope to get it pulled in the next merge

Re: [PATCH v3] signal: trace_signal_deliver when signal_group_exit

2019-04-22 Thread kbuild test robot
Hi Zhenliang, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v5.1-rc6 next-20190418] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [PATCH v4 07/10] drivers: pinctrl: msm: setup GPIO irqchip hierarchy

2019-04-22 Thread Lina Iyer
On Wed, Apr 17 2019 at 07:59 -0600, Linus Walleij wrote: On Thu, Mar 21, 2019 at 10:54 PM Stephen Boyd wrote: Quoting Marc Zyngier (2019-03-16 04:39:48)> > On Fri, 15 Mar 2019 09:28:31 -0700 > Stephen Boyd wrote: > > > Quoting Lina Iyer (2019-03-13 14:18:41) > > > @@ -994,6 +1092,22 @@ static

[PATCH v2] binfmt_elf: Move brk out of mmap when doing direct loader exec

2019-04-22 Thread Kees Cook
Commit eab09532d400 ("binfmt_elf: use ELF_ET_DYN_BASE only for PIE"), made changes in the rare case when the ELF loader was directly invoked (e.g to set a non-inheritable LD_LIBRARY_PATH, testing new versions of the loader), by moving into the mmap region to avoid both ET_EXEC and PIE binaries.

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

2019-04-22 Thread Fabio Estevam
On Mon, Apr 22, 2019 at 7:45 PM Stephen Rothwell wrote: > > Hi all, > > After merging the imx-mxs tree, today's linux-next build (arm > multi_v7_defconfig) failed like this: > > arch/arm/boot/dts/imx7d-zii-rpu2.dts:46.12-50.4: Warning > (io_channels_property): /iio-hwmon: Missing property

[PATCH] PCI/LINK: Account for BW notification in vector calculation

2019-04-22 Thread Alex Williamson
On systems that don't support any PCIe services other than bandwidth notification, pcie_message_numbers() can return zero vectors, causing the vector reallocation in pcie_port_enable_irq_vec() to retry with zero, which fails, resulting in fallback to INTx (which might be broken) for the bandwidth

Re: [PATCH] binfmt_elf: Move brk out of mmap when doing direct loader exec

2019-04-22 Thread Kees Cook
On Thu, Apr 18, 2019 at 7:57 AM Guenter Roeck wrote: > > On Mon, Apr 15, 2019 at 09:23:20PM -0700, Kees Cook wrote: > > Commit eab09532d400 ("binfmt_elf: use ELF_ET_DYN_BASE only for PIE"), > > made changes in the rare case when the ELF loader was directly invoked > > (e.g to set a

Re: [PATCH net] net/ncsi: handle overflow when incrementing mac address

2019-04-22 Thread Tao Ren
On 4/22/19 2:54 PM, Jakub Kicinski wrote: > On Mon, 22 Apr 2019 10:27:54 -0700, Tao Ren wrote: >> Previously BMC's MAC address is calculated by simply adding 1 to the >> last byte of network controller's MAC address, and it produces incorrect >> result when network controller's MAC address ends

linux-next: build failure after merge of the imx-mxs tree

2019-04-22 Thread Stephen Rothwell
Hi all, After merging the imx-mxs tree, today's linux-next build (arm multi_v7_defconfig) failed like this: arch/arm/boot/dts/imx7d-zii-rpu2.dts:46.12-50.4: Warning (io_channels_property): /iio-hwmon: Missing property '#io-channel-cells' in node /soc/aips-bus@3040/adc@3061 or bad

Re: [PATCH] x86_64: uninline TASK_SIZE

2019-04-22 Thread Linus Torvalds
On Sun, Apr 21, 2019 at 9:06 AM Alexey Dobriyan wrote: > > TASK_SIZE macro is quite deceptive: it looks like a constant but in fact > compiles to 50+ bytes. Honestly, if you are interested in improving TASK_SIZE, I'd really like to see you try to go even further than this. TASK_SIZE _used_ to

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

2019-04-22 Thread Stephen Rothwell
Hi all, After merging the at91 tree, today's linux-next build (arm multi_v7_defconfig) failed like this: arch/arm/mach-at91/pm_suspend.S:17:10: fatal error: pm_data-offsets.h: No such file or directory #include "pm_data-offsets.h" ^~~ Caused by commit ab690fa1eb4b

[PATCH] mm: thp: fix false negative of shmem vma's THP eligibility

2019-04-22 Thread Yang Shi
The commit 7635d9cbe832 ("mm, thp, proc: report THP eligibility for each vma") introduced THPeligible bit for processes' smaps. But, when checking the eligibility for shmem vma, __transparent_hugepage_enabled() is called to override the result from shmem_huge_enabled(). It may result in the

Re: [PATCH v10 4/9] cgroup: cgroup v2 freezer

2019-04-22 Thread Roman Gushchin
On Sat, Apr 20, 2019 at 12:58:38PM +0200, Oleg Nesterov wrote: > On 04/19, Roman Gushchin wrote: > > > > > > > > > > > > wake_up_interruptible() ? > > > > > > > > Wait_up_interruptible() is supposed to work with a workqueue, > > > > but here there is nothing like this. Probably, I didn't

Re: [PATCH] x86_64: uninline TASK_SIZE

2019-04-22 Thread Alexey Dobriyan
On Mon, Apr 22, 2019 at 07:30:40AM -0700, Andy Lutomirski wrote: > > > > On Apr 22, 2019, at 3:34 AM, Ingo Molnar wrote: > > > > > > * Alexey Dobriyan wrote: > > > > +++ b/arch/x86/kernel/task_size_64.c > > @@ -0,0 +1,9 @@ > > +#include > > +#include > > +#include >

Re: [PATCH] x86_64: uninline TASK_SIZE

2019-04-22 Thread Alexey Dobriyan
On Mon, Apr 22, 2019 at 12:34:49PM +0200, Ingo Molnar wrote: > When set_personality_ia32() is called then TIF_ADDR32 is set > unconditionally, without any Kconfig variations. Indeed. personality(PER_LINUX32) = 0 (PER_LINUX) I only wasted about half an evening ifdefing TIF_ flags.

Re: [RFC PATCH 60/62] orangefs: make use of ->free_inode()

2019-04-22 Thread Linus Torvalds
On Mon, Apr 22, 2019 at 2:14 PM Mike Marshall wrote: > > I applied your "new inode method: ->free_inode()" and > "orangefs: make use of ->free_inode()" to our pagecache > branch (I hope to get it pulled in the next merge window). Actually, please don't. Exactly because this needs that common

Re: [PATCH v20 15/28] x86/sgx: Add the Linux SGX Enclave Driver

2019-04-22 Thread Sean Christopherson
+Cc Jethro On Wed, Apr 17, 2019 at 01:39:25PM +0300, Jarkko Sakkinen wrote: > Intel Software Guard eXtensions (SGX) is a set of CPU instructions that > can be used by applications to set aside private regions of code and > data. The code outside the enclave is disallowed to access the memory >

Re: [PATCH 3/6] y2038: linux: Provide __clock_settime64 implementation

2019-04-22 Thread Arnd Bergmann
On Mon, Apr 22, 2019 at 11:07 AM Stepan Golosunov wrote: > 20.04.2019 в 13:21:12 +0200 Lukasz Majewski написал: > Is it? The kernel (5.1-rc6) code looks to me like > > /* Zero out the padding for 32 bit systems or in compat mode */ > if (false && false) >

[PATCH] drivers: hv: Add a module description line

2019-04-22 Thread Joseph Salisbury
Signed-off-by: Joseph Salisbury --- drivers/hv/vmbus_drv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c index aa25f3bcbdea..1cb9408b0d40 100644 --- a/drivers/hv/vmbus_drv.c +++ b/drivers/hv/vmbus_drv.c @@ -2174,6 +2174,7 @@ static void

[PATCH] drivers: input: serio: Add a module desription

2019-04-22 Thread Joseph Salisbury
Signed-off-by: Joseph Salisbury --- drivers/input/serio/hyperv-keyboard.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/input/serio/hyperv-keyboard.c b/drivers/input/serio/hyperv-keyboard.c index a8b9be3e28db..7935e52b5435 100644 --- a/drivers/input/serio/hyperv-keyboard.c +++

Re: [PATCH v20 09/28] x86/sgx: Add ENCLS architectural error codes

2019-04-22 Thread Sean Christopherson
On Wed, Apr 17, 2019 at 01:39:19PM +0300, Jarkko Sakkinen wrote: > The SGX architecture defines an extensive set of error codes that are > used by ENCL{S,U,V} instructions to provide software with (somewhat) > precise error information. Though they are architectural, define the > known error

linux-next: Fixes tag needs some work in the device-mapper tree

2019-04-22 Thread Stephen Rothwell
Hi all, In commit e28adc3bf34e ("dm cache metadata: Fix loading discard bitset") Fixes tag Fixes: ae4a46a1f6 ("dm cache metadata: use bitset cursor api to load discard bitset") has these problem(s): - SHA1 should be at least 12 digits long Can be fixed by setting core.abbrev to 12

[PATCH] drivers: hid: Add a module description line

2019-04-22 Thread Joseph Salisbury
Signed-off-by: Joseph Salisbury --- drivers/hid/hid-hyperv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/hid/hid-hyperv.c b/drivers/hid/hid-hyperv.c index 704049e62d58..d3311d714d35 100644 --- a/drivers/hid/hid-hyperv.c +++ b/drivers/hid/hid-hyperv.c @@ -614,5 +614,7 @@ static

linux-next: Fixes tag needs some work in the crypto tree

2019-04-22 Thread Stephen Rothwell
Hi all, In commit f5a2aeb8b254 ("crypto: ccp - Do not free psp_master when PLATFORM_INIT fails") Fixes tag Fixes: 200664d5237f ("crypto: ccp: Add SEV support") has these problem(s): - Subject does not match target commit subject Just use git log -1 --format='Fixes: %h

linux-next: Fixes tag needs some work in the v4l-dvb tree

2019-04-22 Thread Stephen Rothwell
Hi Mauro, In commit dad7e270ba71 ("media: vivid: use vfree() instead of kfree() for dev->bitmap_cap") Fixes tag Fixes: ef834f7836ec0 ("[media] vivid: add the video capture and output has these problem(s): - Subject has leading but no trailing parentheses - Subject has leading but no

Re: [RFC PATCH 60/62] orangefs: make use of ->free_inode()

2019-04-22 Thread Mike Marshall
Hi Al... I applied your "new inode method: ->free_inode()" and "orangefs: make use of ->free_inode()" to our pagecache branch (I hope to get it pulled in the next merge window). I had to modify your "orangefs: make use of ->free_inode()" a little, since Martin Brandenburg had already modified

Re: [PATCH v2] PCI/LINK: bw_notification: Do not leave interrupt handler NULL

2019-04-22 Thread Alex Williamson
On Fri, 19 Apr 2019 15:08:27 -0600 Alex Williamson wrote: > On Mon, 25 Mar 2019 17:25:02 -0500 > Bjorn Helgaas wrote: > > > On Fri, Mar 22, 2019 at 07:36:51PM -0500, Alexandru Gagniuc wrote: > > > A threaded IRQ with a NULL handler does not work with level-triggered > > > interrupts.

  1   2   3   4   5   6   >