Re: [GIT PULL] apparmor regression fix for v5.1-rc5

2019-04-10 Thread pr-tracker-bot
The pull request you sent on Wed, 10 Apr 2019 04:32:14 -0700: > git://git.kernel.org/pub/scm/linux/kernel/git/jj/linux-apparmor > 5.1-regression-fix has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/ed79cc87302bf7fbc87f05d655b998f866b4fed8 Thank you! --

Re: [PATCH v3 3/7] clk: Add of_clk_hw_register() API for early clk drivers

2019-04-10 Thread Stephen Boyd
Quoting Jeffrey Hugo (2019-04-08 14:46:11) > On 4/4/2019 3:53 PM, Stephen Boyd wrote: > > In some circumstances drivers register clks early and don't have access > > to a struct device because the device model isn't initialized yet. Add > > an API to let drivers register clks associated with a

Re: [PATCH v3 1/7] clkdev: Hold clocks_mutex while iterating clocks list

2019-04-10 Thread Stephen Boyd
Quoting Russell King - ARM Linux admin (2019-04-09 01:57:17) > On Tue, Apr 09, 2019 at 05:31:48AM +, Vaittinen, Matti wrote: > > On Mon, 2019-04-08 at 23:21 +0100, Russell King - ARM Linux admin > > wrote: > > > On Mon, Apr 08, 2019 at 10:00:02AM -0700, Stephen Boyd wrote: > > > > > > > > >

Re: [PATCH RESEND 2/5] x86/MCE: Handle MCA controls in a per_cpu way

2019-04-10 Thread Borislav Petkov
On Wed, Apr 10, 2019 at 04:36:30PM +, Ghannam, Yazen wrote: > We have this case on AMD Family 17h with Bank 4. The hardware enforces > this bank to be Read-as-Zero/Writes-Ignored. > > This behavior is enforced whether the bank is in the middle or at the > end. Does num_banks contain the

RE: [PATCH RESEND 2/5] x86/MCE: Handle MCA controls in a per_cpu way

2019-04-10 Thread Ghannam, Yazen
> -Original Message- > From: Borislav Petkov > Sent: Tuesday, April 9, 2019 3:34 PM > To: Ghannam, Yazen > Cc: linux-e...@vger.kernel.org; linux-kernel@vger.kernel.org; > tony.l...@intel.com; x...@kernel.org > Subject: Re: [PATCH RESEND 2/5] x86/MCE: Handle MCA controls in a per_cpu way

Re: [PATCH 12/27] x86/pkru: Provide .*_pkru_ins() functions

2019-04-10 Thread Borislav Petkov
On Wed, Apr 03, 2019 at 06:41:41PM +0200, Sebastian Andrzej Siewior wrote: > Dave Hansen has asked for __read_pkru() and __write_pkru() to be symmetrical. > As part of the series __write_pkru() will read back the value and only write > it > if it is different. > In order to make both functions

Re: [PATCH -next] PCI: mvebu: Make mvebu_pci_bridge_emul_ops static

2019-04-10 Thread Thomas Petazzoni
On Wed, 10 Apr 2019 22:09:49 +0800 Yue Haibing wrote: > From: YueHaibing > > Fix sparse warning: > > drivers/pci/controller/pci-mvebu.c:557:28: warning: > symbol 'mvebu_pci_bridge_emul_ops' was not declared. Should it be static? > > Reported-by: Hulk Robot > Signed-off-by: YueHaibing

Re: [PATCH 12/12] [PROBABLY WRONG] s390: void '0' constraint in inline assembly

2019-04-10 Thread Nick Desaulniers
On Wed, Apr 10, 2019 at 6:55 AM Martin Schwidefsky wrote: > > On Mon, 8 Apr 2019 23:26:25 +0200 > Arnd Bergmann wrote: > > > clang does not understand the contraint "0" in the CALL_ON_STACK() > > macro: > > > > ../arch/s390/mm/maccess.c:117:10: error: invalid input constraint '0' in asm > >

Re: [PATCH v5 1/3] Provide in-kernel headers to make extending kernel easier

2019-04-10 Thread Olof Johansson
On Wed, Apr 10, 2019 at 8:51 AM Joel Fernandes wrote: > > On Wed, Apr 10, 2019 at 11:07 AM Olof Johansson wrote: > [snip] > > > > Wouldn't it be more convenient to provide it in a standardized format > > > > such that you won't have to take an additional step, and always have > > > > This is

Re: [PATCH] regulator: vexpress: Constify regulator_ops

2019-04-10 Thread Sudeep Holla
On Thu, Apr 11, 2019 at 12:19:37AM +0800, Axel Lin wrote: > vexpress_regulator_ops_ro and vexpress_regulator_ops are never changed, > make them const. > Assuming Mark will pick up this as usual, Acked-by: Sudeep Holla -- Regards, Sudeep

Re: [PATCH] firmware: arm_scmi: check return value of idr_find

2019-04-10 Thread Sudeep Holla
On Mon, Mar 25, 2019 at 03:48:22PM -0500, Kangjie Lu wrote: You should mark this v2 id you changed any code or commit message or added any tags. Just FYI for future. > Thanks for Steven Price's review of this patch. In the current code, > idr_find won't return NULL because the SCMI_PROTOCOL_BASE

[PATCH 11/22] watchdog: sbsa_gwdt: Convert to use device managed functions and other improvements

2019-04-10 Thread Guenter Roeck
Use device managed functions to simplify error handling, reduce source code size, improve readability, and reduce the likelyhood of bugs. Other improvements as listed below. The conversion was done automatically with coccinelle using the following semantic patches. The semantic patches and the

[PATCH 09/22] watchdog: xen_wdt: Use 'dev' instead of dereferencing it repeatedly

2019-04-10 Thread Guenter Roeck
Introduce local variable 'struct device *dev' and use it instead of dereferencing it repeatedly. The conversion was done automatically with coccinelle using the following semantic patches. The semantic patches and the scripts used to generate this commit log are available at

[PATCH 05/22] watchdog: twl4030_wdt: Convert to use device managed functions and other improvements

2019-04-10 Thread Guenter Roeck
Use device managed functions to simplify error handling, reduce source code size, improve readability, and reduce the likelyhood of bugs. Other improvements as listed below. The conversion was done automatically with coccinelle using the following semantic patches. The semantic patches and the

[PATCH 02/22] watchdog: tqmx86_wdt: Use 'dev' instead of dereferencing it repeatedly

2019-04-10 Thread Guenter Roeck
Introduce local variable 'struct device *dev' and use it instead of dereferencing it repeatedly. The conversion was done automatically with coccinelle using the following semantic patches. The semantic patches and the scripts used to generate this commit log are available at

[PATCH 06/22] watchdog: uniphier_wdt: drop platform_set_drvdata

2019-04-10 Thread Guenter Roeck
There is no call to dev_get_drvdata() or platform_get_drvdata() in the driver. Drop the unnecessary call to platform_set_drvdata(). The conversion was done automatically with coccinelle using the following semantic patches. The semantic patches and the scripts used to generate this commit log are

[PATCH 08/22] watchdog: wm831x_wdt: Use 'dev' instead of dereferencing it repeatedly

2019-04-10 Thread Guenter Roeck
Introduce local variable 'struct device *dev' and use it instead of dereferencing it repeatedly. The conversion was done automatically with coccinelle using the following semantic patches. The semantic patches and the scripts used to generate this commit log are available at

[PATCH 19/22] watchdog: rt2880_wdt: Convert to use device managed functions and other improvements

2019-04-10 Thread Guenter Roeck
Use device managed functions to simplify error handling, reduce source code size, improve readability, and reduce the likelyhood of bugs. Other improvements as listed below. The conversion was done automatically with coccinelle using the following semantic patches. The semantic patches and the

[PATCH 10/22] watchdog: imx_sc_wdt: Use 'dev' instead of dereferencing it repeatedly

2019-04-10 Thread Guenter Roeck
Introduce local variable 'struct device *dev' and use it instead of dereferencing it repeatedly. The conversion was done automatically with coccinelle using the following semantic patches. The semantic patches and the scripts used to generate this commit log are available at

[PATCH 12/22] watchdog: zx2967_wdt: Convert to use device managed functions and other improvements

2019-04-10 Thread Guenter Roeck
Use device managed functions to simplify error handling, reduce source code size, improve readability, and reduce the likelyhood of bugs. Other improvements as listed below. The conversion was done automatically with coccinelle using the following semantic patches. The semantic patches and the

[PATCH 07/22] watchdog: wdat_wdt: Use 'dev' instead of dereferencing it repeatedly

2019-04-10 Thread Guenter Roeck
Introduce local variable 'struct device *dev' and use it instead of dereferencing it repeatedly. The conversion was done automatically with coccinelle using the following semantic patches. The semantic patches and the scripts used to generate this commit log are available at

[PATCH 01/22] watchdog: tegra_wdt: Use watchdog_stop_on_unregister and other improvements

2019-04-10 Thread Guenter Roeck
Use watchdog_stop_on_unregister() in probe instead of calling tegra_wdt_stop() in the remove function. Also introduce local variable 'struct device *dev' and use it instead of dereferencing it repeatedly. Finally, drop the now empty remove function. The conversion was done automatically with

[PATCH 14/22] watchdog: ux500_wdt: Convert to use device managed functions and other improvements

2019-04-10 Thread Guenter Roeck
Use device managed functions to simplify error handling, reduce source code size, improve readability, and reduce the likelyhood of bugs. Other improvements as listed below. The conversion was done automatically with coccinelle using the following semantic patches. The semantic patches and the

[PATCH 04/22] watchdog: ts72xx_wdt: Use 'dev' instead of dereferencing it repeatedly

2019-04-10 Thread Guenter Roeck
Introduce local variable 'struct device *dev' and use it instead of dereferencing it repeatedly. The conversion was done automatically with coccinelle using the following semantic patches. The semantic patches and the scripts used to generate this commit log are available at

[PATCH 18/22] watchdog: mt7621_wdt: Use 'dev' instead of dereferencing it repeatedly

2019-04-10 Thread Guenter Roeck
Introduce local variable 'struct device *dev' and use it instead of dereferencing it repeatedly. The conversion was done automatically with coccinelle using the following semantic patches. The semantic patches and the scripts used to generate this commit log are available at

[PATCH 15/22] watchdog: pic32-dmt: Convert to use device managed functions and other improvements

2019-04-10 Thread Guenter Roeck
Use device managed functions to simplify error handling, reduce source code size, improve readability, and reduce the likelyhood of bugs. Other improvements as listed below. The conversion was done automatically with coccinelle using the following semantic patches. The semantic patches and the

[PATCH 16/22] watchdog: pic32-wdt: Convert to use device managed functions and other improvements

2019-04-10 Thread Guenter Roeck
Use device managed functions to simplify error handling, reduce source code size, improve readability, and reduce the likelyhood of bugs. Other improvements as listed below. The conversion was done automatically with coccinelle using the following semantic patches. The semantic patches and the

[PATCH 22/22] watchdog: pnx4008_wdt: Convert to use device managed functions and other improvements

2019-04-10 Thread Guenter Roeck
Use device managed functions to simplify error handling, reduce source code size, improve readability, and reduce the likelyhood of bugs. Other improvements as listed below. The conversion was done automatically with coccinelle using the following semantic patches. The semantic patches and the

[PATCH 17/22] watchdog: loongson1_wdt: Convert to use device managed functions and other improvements

2019-04-10 Thread Guenter Roeck
Use device managed functions to simplify error handling, reduce source code size, improve readability, and reduce the likelyhood of bugs. Other improvements as listed below. The conversion was done automatically with coccinelle using the following semantic patches. The semantic patches and the

[PATCH 20/22] watchdog: jz4740_wdt: Use 'dev' instead of dereferencing it repeatedly

2019-04-10 Thread Guenter Roeck
Introduce local variable 'struct device *dev' and use it instead of dereferencing it repeatedly. Also, there is no call to dev_get_drvdata() or platform_get_drvdata() in the driver, so drop the unnecessary call to platform_set_drvdata(). The conversion was done automatically with coccinelle using

[PATCH 21/22] watchdog: mpc8xxx_wdt: Convert to use device managed functions and other improvements

2019-04-10 Thread Guenter Roeck
Use device managed functions to simplify error handling, reduce source code size, improve readability, and reduce the likelyhood of bugs. Other improvements as listed below. The conversion was done automatically with coccinelle using the following semantic patches. The semantic patches and the

[PATCH 13/22] watchdog: stm32_iwdg: Convert to use device managed functions and other improvements

2019-04-10 Thread Guenter Roeck
Use device managed functions to simplify error handling, reduce source code size, improve readability, and reduce the likelyhood of bugs. Other improvements as listed below. The conversion was done automatically with coccinelle using the following semantic patches. The semantic patches and the

[PATCH 03/22] watchdog: ts4800_wdt: Convert to use device managed functions and other improvements

2019-04-10 Thread Guenter Roeck
Use device managed functions to simplify error handling, reduce source code size, improve readability, and reduce the likelyhood of bugs. Other improvements as listed below. The conversion was done automatically with coccinelle using the following semantic patches. The semantic patches and the

[PATCH 00/22] watchdog: Expand use of device managed functions (series 3 of 3)

2019-04-10 Thread Guenter Roeck
Use device managed functions and other changes to simplify error handling, reduce source code size, improve readability, and reduce the likelyhood of bugs. The changes made in this series can be summarized to - Use devm_add_action_or_reset() for calls to clk_disable_unprepare - Use

Re: [PATCH 1/2] module: Prepare for addition of new ro_after_init sections

2019-04-10 Thread Kees Cook
On Tue, Apr 9, 2019 at 6:14 PM Joel Fernandes (Google) wrote: > > For the purposes of hardening modules by adding sections to > ro_after_init sections, prepare for addition of new ro_after_init > entries which we do in future patches. Create a table to which new > entries could be added later.

Re: [PATCH 02/12] s390: don't build vdso32 with clang

2019-04-10 Thread Nick Desaulniers
On Mon, Apr 8, 2019 at 2:27 PM Arnd Bergmann wrote: > > clang does not support 31 bit object files on s390, so skip > the 32-bit vdso here, and only build it when using gcc to compile > the kernel. What's the build failure? Would you mind filing a bug against LLVM's issue tracker for it,

Re: [PATCH] firmware: arm_scmi: check return value of idr_find

2019-04-10 Thread Sudeep Holla
On Fri, Mar 08, 2019 at 10:02:39PM -0600, Kangjie Lu wrote: > idr_find may return NULL, so check its return value and return an > error code. > I can't imagine a scenario leading to this. Steven has already explained why, so I won't repeat the same here. Did you hit this issue ? If so I would

Re: [PATCH 1/1] x86/entry/64: randomize kernel stack offset upon syscall

2019-04-10 Thread Kees Cook
On Wed, Apr 10, 2019 at 7:49 AM Andy Lutomirski wrote: > And build it like this, it fails: > > $ gcc -o ingo -g ingo.c -pie > /usr/bin/ld: /tmp/ccofYU9N.o: relocation R_X86_64_32 against `.rodata' > can not be used when making a PIE object; recompile with -fPIC > /usr/bin/ld: final link failed:

[PATCH] regulator: vexpress: Constify regulator_ops

2019-04-10 Thread Axel Lin
vexpress_regulator_ops_ro and vexpress_regulator_ops are never changed, make them const. Signed-off-by: Axel Lin --- drivers/regulator/vexpress-regulator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/regulator/vexpress-regulator.c

Re: [PATCH] mtd: nand: Fix build error while CONFIG_MTD_NAND_ECC_SW_BCH is set to module

2019-04-10 Thread Miquel Raynal
Hi YueHaibing, YueHaibing wrote on Wed, 10 Apr 2019 23:03:24 +0800: > On 2019/4/10 22:29, Boris Brezillon wrote: > > On Wed, 10 Apr 2019 22:22:16 +0800 > > YueHaibing wrote: > > > >> On 2019/4/10 21:58, Boris Brezillon wrote: > >>> On Wed, 10 Apr 2019 15:39:28 +0200 > >>> Boris Brezillon

[PATCH 0/3] Kconfig: Refactor memory initialization hardening

2019-04-10 Thread Kees Cook
This is a proposed alternative for the memory initialization series, which refactoring the existing gcc plugins into a separate Kconfig file and collects all the related options together with some more language to describe their differences. The last patch adds the Clang auto init option, as done

[PATCH 3/3] kbuild: Implement Clang's stack initialization

2019-04-10 Thread Kees Cook
CONFIG_INIT_STACK_ALL turns on stack initialization based on -ftrivial-auto-var-init in Clang builds and on -fplugin-arg-structleak_plugin-byref-all in GCC builds. -ftrivial-auto-var-init is a Clang flag that provides trivial initializers for uninitialized local variables, variable fields and

[PATCH 2/3] kbuild: Move stackleak config to Kconfig.hardening

2019-04-10 Thread Kees Cook
This moves the stackleak plugin options to Kconfig.hardening's memory initialization menu. Signed-off-by: Kees Cook --- scripts/gcc-plugins/Kconfig | 51 - security/Kconfig.hardening | 57 + 2 files changed, 57 insertions(+),

[PATCH 1/3] Kconfig: Create "kernel hardening" config area

2019-04-10 Thread Kees Cook
Right now kernel hardening options are scattered around various Kconfig files. This can be a central place to collect these kinds of options going forward. Signed-off-by: Kees Cook --- scripts/gcc-plugins/Kconfig | 70 ++- security/Kconfig| 2 +

[PATCH] regulator: hi6421: Convert to use simplified DT parsing

2019-04-10 Thread Axel Lin
Use regulator core's simplified DT parsing code to simply the driver implementation. Signed-off-by: Axel Lin --- drivers/regulator/hi6421-regulator.c | 208 ++- 1 file changed, 78 insertions(+), 130 deletions(-) diff --git a/drivers/regulator/hi6421-regulator.c

Re: [PATCH 10/12] s390: avoid __builtin_return_address(n) on clang

2019-04-10 Thread Steven Rostedt
On Wed, 10 Apr 2019 18:03:57 +0200 Martin Schwidefsky wrote: > > --- a/arch/s390/include/asm/ftrace.h > > +++ b/arch/s390/include/asm/ftrace.h > > @@ -13,7 +13,12 @@ > > > > #ifndef __ASSEMBLY__ > > > > +#ifdef CONFIG_CC_IS_CLANG > > +/* https://bugs.llvm.org/show_bug.cgi?id=41424 */ > >

Re: [PATCH v2] cpuset: restore sanity to cpuset_cpus_allowed_fallback()

2019-04-10 Thread Waiman Long
On 04/09/2019 04:40 PM, Joel Savitz wrote: > If a process is limited by taskset (i.e. cpuset) to only be allowed to > run on cpu N, and then cpu N is offlined via hotplug, the process will > be assigned the current value of its cpuset cgroup's effective_cpus field > in a call to

Re: [PATCH v2] firmware: arm_scmi: Fix to replace of_match_device

2019-04-10 Thread Sudeep Holla
On Fri, Mar 22, 2019 at 04:55:03PM -0500, Aditya Pakki wrote: > of_match_device can return NULL if no matching device is found. > This patch replaces the function with of_device_get_match_data. > and returns -EINVAL in such a scenario. > > Signed-off-by: Aditya Pakki > > --- > v1: Replace

Re: [PATCH 2/2] ftpm: firmware TPM running in TEE

2019-04-10 Thread Sasha Levin
On Wed, Apr 10, 2019 at 02:29:27PM +0300, Jarkko Sakkinen wrote: On Sat, Apr 06, 2019 at 11:30:47AM -0400, Sasha Levin wrote: On Wed, Apr 03, 2019 at 09:27:28PM +0300, Jarkko Sakkinen wrote: > On Wed, Apr 03, 2019 at 09:18:27PM +0300, Jarkko Sakkinen wrote: > > On Tue, Apr 02, 2019 at

Re: rseq/s390: choosing code signature

2019-04-10 Thread Martin Schwidefsky
On Wed, 10 Apr 2019 11:57:36 -0400 (EDT) Mathieu Desnoyers wrote: > - On Apr 10, 2019, at 11:52 AM, schwidefsky schwidef...@de.ibm.com wrote: > > > On Wed, 10 Apr 2019 11:50:39 -0400 (EDT) > > Mathieu Desnoyers wrote: > > > >> - On Apr 10, 2019, at 6:32 AM, schwidefsky

Re: [PATCH 10/12] s390: avoid __builtin_return_address(n) on clang

2019-04-10 Thread Martin Schwidefsky
On Mon, 8 Apr 2019 23:26:23 +0200 Arnd Bergmann wrote: > llvm on s390 has problems with __builtin_return_address(n), with n>0, > this results in a somewhat cryptic error message: > > fatal error: error in backend: Unsupported stack frame traversal count > > To work around it, use the direct

RE: [PATCH RESEND 1/1] PCI: Add ATS-disable quirk for AMD Radeon R7 GPUs

2019-04-10 Thread Deucher, Alexander
> -Original Message- > From: Deucher, Alexander > Sent: Wednesday, April 10, 2019 10:47 AM > To: Bjorn Helgaas ; Nikolai Kostrigin > ; Suthikulpanit, Suravee > (suravee.suthikulpa...@amd.com) ; > Lendacky, Thomas ; Kuehling, Felix > (felix.kuehl...@amd.com) ; Koenig, Christian >

Re: [PATCH 11/12] s390: make chkbss work with clang

2019-04-10 Thread Martin Schwidefsky
On Mon, 8 Apr 2019 23:26:24 +0200 Arnd Bergmann wrote: > llvm skips an empty .bss section entirely, which makes > the check fail with an unexpected error: > > /tmp/binutils-multi-test/bin/s390x-linux-gnu-objdump: section '.bss' > mentioned in a -j option, but not found in any input file >

Re: [PATCH 08/12] s390: syscall_wrapper: avoid clang warning

2019-04-10 Thread Martin Schwidefsky
On Mon, 8 Apr 2019 23:26:21 +0200 Arnd Bergmann wrote: > Building system calls with clang results in a warning > about an alias from a global function to a static one: > > ../fs/namei.c:3847:1: warning: unused function '__se_sys_mkdirat' > [-Wunused-function] > SYSCALL_DEFINE3(mkdirat, int,

Re: [PATCH 09/12] s390: make __load_psw_mask work with clang

2019-04-10 Thread Martin Schwidefsky
On Mon, 8 Apr 2019 23:26:22 +0200 Arnd Bergmann wrote: > clang fails to use the %O and %R inline assembly modifiers > the same way as gcc, leading to build failures with every use > of __load_psw_mask(): > > /tmp/nmi-4a9f80.s: Assembler messages: > /tmp/nmi-4a9f80.s:571: Error: junk at end of

Re: [PATCH 06/12] s390: ctcm: fix ctcm_new_device error return code

2019-04-10 Thread Martin Schwidefsky
On Mon, 8 Apr 2019 23:26:19 +0200 Arnd Bergmann wrote: > clang points out that the return code from this function is > undefined for one of the error paths: > > ../drivers/s390/net/ctcm_main.c:1595:7: warning: variable 'result' is used > uninitialized whenever 'if' condition is true >

Re: [PATCH 05/12] s390: zcrypt: initialize variables before_use

2019-04-10 Thread Martin Schwidefsky
On Tue, 9 Apr 2019 11:54:30 +0200 Harald Freudenberger wrote: > On 08.04.19 23:26, Arnd Bergmann wrote: > > The 'func_code' variable gets printed in debug statements without > > a prior initialization in multiple functions, as reported when building > > with clang: > > > >

Re: [PATCH 04/12] s390: qeth: address type mismatch warning

2019-04-10 Thread Martin Schwidefsky
On Mon, 8 Apr 2019 23:26:17 +0200 Arnd Bergmann wrote: > clang produces a harmless warning for each use for the qeth_adp_supported > macro: > > drivers/s390/net/qeth_l2_main.c:559:31: warning: implicit conversion from > enumeration type 'enum qeth_ipa_setadp_cmd' to > different

Re: [PATCH 02/12] s390: don't build vdso32 with clang

2019-04-10 Thread Martin Schwidefsky
On Mon, 8 Apr 2019 23:26:15 +0200 Arnd Bergmann wrote: > clang does not support 31 bit object files on s390, so skip > the 32-bit vdso here, and only build it when using gcc to compile > the kernel. > > Signed-off-by: Arnd Bergmann Added to s390/linux:features for the next merge window.

Re: [PATCH 01/12] s390: remove -fno-strength-reduce flag

2019-04-10 Thread Martin Schwidefsky
On Mon, 8 Apr 2019 23:26:14 +0200 Arnd Bergmann wrote: > This was added as a workaround for really old compilers, and it prevents > building with clang now. I can see no reason for keeping it, as it has > already been removed for most architectures in the pre-git era, so > let's remove it

Re: rseq/s390: choosing code signature

2019-04-10 Thread Mathieu Desnoyers
- On Apr 10, 2019, at 11:52 AM, schwidefsky schwidef...@de.ibm.com wrote: > On Wed, 10 Apr 2019 11:50:39 -0400 (EDT) > Mathieu Desnoyers wrote: > >> - On Apr 10, 2019, at 6:32 AM, schwidefsky schwidef...@de.ibm.com wrote: >> >> > On Tue, 9 Apr 2019 15:32:22 -0400 (EDT) >> > Mathieu

Re: rseq/s390: choosing code signature

2019-04-10 Thread Martin Schwidefsky
On Wed, 10 Apr 2019 11:50:39 -0400 (EDT) Mathieu Desnoyers wrote: > - On Apr 10, 2019, at 6:32 AM, schwidefsky schwidef...@de.ibm.com wrote: > > > On Tue, 9 Apr 2019 15:32:22 -0400 (EDT) > > Mathieu Desnoyers wrote: > > > >> Hi, > >> > >> We are about to include the code signature

[PATCH v3 2/9] kbuild: Support for Symbols.list creation

2019-04-10 Thread Joe Lawrence
From: Joao Moreira For automatic resolution of livepatch relocations, a file called Symbols.list is used. This file maps symbols within every compiled kernel object allowing the identification of symbols whose name is unique, thus relocation can be automatically inferred, or providing

[PATCH v3 1/9] livepatch: Create and include UAPI headers

2019-04-10 Thread Joe Lawrence
From: Josh Poimboeuf Define klp prefixes in include/uapi/linux/livepatch.h, and use them for replacing hard-coded values in kernel/livepatch/core.c. Update MAINTAINERS. Note: Add defines to uapi as these are also to be used by a newly introduced klp-convert script. Signed-off-by: Josh

[PATCH v3 4/9] livepatch: Add klp-convert annotation helpers

2019-04-10 Thread Joe Lawrence
From: Josh Poimboeuf Define macros KLP_MODULE_RELOC and KLP_SYMPOS in include/linux/livepatch.h to improve user-friendliness of the livepatch annotation process. Signed-off-by: Josh Poimboeuf Signed-off-by: Joao Moreira Signed-off-by: Joe Lawrence --- include/linux/livepatch.h | 12

[PATCH v3 3/9] livepatch: Add klp-convert tool

2019-04-10 Thread Joe Lawrence
From: Josh Poimboeuf Livepatches may use symbols which are not contained in its own scope, and, because of that, may end up compiled with relocations that will only be resolved during module load. Yet, when the referenced symbols are not exported, solving this relocation requires information on

[PATCH v3 5/9] modpost: Integrate klp-convert

2019-04-10 Thread Joe Lawrence
From: Josh Poimboeuf Create cmd_klp_convert and hook it into scripts/Makefile.modpost. cmd_klp_convert invokes klp-convert with the right arguments for the conversion of unresolved symbols inside a livepatch. Signed-off-by: Josh Poimboeuf Signed-off-by: Konstantin Khlebnikov Signed-off-by:

[PATCH v3 6/9] modpost: Add modinfo flag to livepatch modules

2019-04-10 Thread Joe Lawrence
From: Miroslav Benes Currently, livepatch infrastructure in the kernel relies on MODULE_INFO(livepatch, "Y") statement in a livepatch module. Then the kernel module loader knows a module is indeed livepatch module and can behave accordingly. klp-convert, on the other hand relies on LIVEPATCH_*

[PATCH v3 7/9] livepatch: Add sample livepatch module

2019-04-10 Thread Joe Lawrence
From: Josh Poimboeuf Add a new livepatch sample in samples/livepatch/ to make use of symbols that must be post-processed to enable load-time relocation resolution. As the new sample is to be used as an example, it is annotated with KLP_MODULE_RELOC and with KLP_SYMPOS macros. The livepatch

[PATCH v3 9/9] livepatch/selftests: add klp-convert

2019-04-10 Thread Joe Lawrence
Add a simple klp-convert livepatch selftest that exercises various symbol homonym sympos scenarios. Signed-off-by: Joe Lawrence --- lib/livepatch/Makefile| 10 ++ lib/livepatch/test_klp_convert1.c | 106 ++ lib/livepatch/test_klp_convert2.c

[PATCH v3 8/9] documentation: Update on livepatch elf format

2019-04-10 Thread Joe Lawrence
From: Joao Moreira Add a section to Documentation/livepatch/module-elf-format.txt describing how klp-convert works for fixing relocations. Signed-off-by: Joao Moreira Signed-off-by: Joe Lawrence --- Documentation/livepatch/livepatch.txt | 3 ++

[PATCH v3 0/9] klp-convert livepatch build tooling

2019-04-10 Thread Joe Lawrence
Hi folks, This is the third installment of the klp-convert tool for generating and processing livepatch symbols for livepatch module builds. For those following along at home, archive links to previous versions: RFC: https://lore.kernel.org/lkml/cover.1477578530.git.jpoim...@redhat.com/ v2:

Re: rseq/s390: choosing code signature

2019-04-10 Thread Mathieu Desnoyers
- On Apr 10, 2019, at 6:32 AM, schwidefsky schwidef...@de.ibm.com wrote: > On Tue, 9 Apr 2019 15:32:22 -0400 (EDT) > Mathieu Desnoyers wrote: > >> Hi, >> >> We are about to include the code signature required prior to restartable >> sequences abort handlers into glibc, which will make this

Re: [External] Re: Basics : Memory Configuration

2019-04-10 Thread Christopher Lameter
Please respond to my comments in the way that everyone else communicates here. I cannot distinguish what you said from what I said before.

Re: [PATCH] firmware: arm_scmi: Fix leak in scmi_mailbox_check

2019-04-10 Thread Sudeep Holla
On Mon, Mar 25, 2019 at 05:37:22PM +, Steven Price wrote: > of_parse_phandle_with_args() requires the caller to call of_node_put() on > the returned args->np pointer. Otherwise the reference count will remain > incremented. > Good find and thanks for the fix. > However, in this case, since

Applied "ASoC: rt5645: fix a NULL pointer dereference" to the asoc tree

2019-04-10 Thread Mark Brown
The patch ASoC: rt5645: fix a NULL pointer dereference has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.2 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and

Re: rseq/x86: choosing rseq code signature

2019-04-10 Thread Mathieu Desnoyers
- On Apr 10, 2019, at 2:54 AM, Peter Zijlstra pet...@infradead.org wrote: > On Tue, Apr 09, 2019 at 04:43:42PM -0400, Mathieu Desnoyers wrote: >> +/* >> + * RSEQ_SIG is used with the following privileged instructions, which trap >> in >> user-space: >> + * x86-32:0f 01 3d 53 30 05 53

Re: [PATCH] clk: rockchip: Fix video codec clocks on rk3288

2019-04-10 Thread Doug Anderson
Hi, On Fri, Mar 29, 2019 at 2:55 PM Douglas Anderson wrote: > > It appears that there is a typo in the rk3288 TRM. For > GRF_SOC_CON0[7] it says that 0 means "vepu" and 1 means "vdpu". It's > the other way around. > > How do I know? Here's my evidence: > > 1. Prior to commit 4d3e84f99628

[PATCH v3 1/1] RDMA/odp: convert to use HMM for ODP v3

2019-04-10 Thread jglisse
From: Jérôme Glisse Convert ODP to use HMM so that we can build on common infrastructure for different class of devices that want to mirror a process address space into a device. There is no functional changes. Changes since v2: - rebase on top of newer HMM patchset and mmu notifier

[PATCH v3 0/1] Use HMM for ODP v3

2019-04-10 Thread jglisse
From: Jérôme Glisse Changes since v1/v2 are about rebase and better comments in the code. Previous cover letter slightly updated. This patchset convert RDMA ODP to use HMM underneath this is motivated by stronger code sharing for same feature (share virtual memory SVM or Share Virtual Address

[PATCH v2] mtd: nand: Fix build error while CONFIG_MTD_NAND_ECC_SW_BCH is set to module

2019-04-10 Thread Yue Haibing
From: YueHaibing Fix gcc build error while CONFIG_MTD_NAND_ECC_SW_BCH is set to module: drivers/mtd/nand/raw/nand_base.o: In function `nand_cleanup': (.text+0xef6): undefined reference to `nand_bch_free' drivers/mtd/nand/raw/nand_base.o: In function `nand_scan_tail': nand_base.c:(.text+0xa101):

Re: [PATCH REBASED] mm: Throttle allocators when failing reclaim over memory.high

2019-04-10 Thread Chris Down
Hey Michal, Just to come back to your last e-mail about how this interacts with OOM. Michal Hocko writes: I am not really opposed to the throttling in the absence of a reclaimable memory. We do that for the regular allocation paths already (should_reclaim_retry). A swapless system with anon

Re: [PATCH 1/3] Revert "clk: rockchip: mark noc and some special clk as critical on rk3288"

2019-04-10 Thread Doug Anderson
Hi, On Tue, Apr 9, 2019 at 11:23 PM elaine.zhang wrote: > > hi, > > 在 2019/4/10 上午4:47, Douglas Anderson 写道: > > This reverts commit 55bb6a633c33caf68ab470907ecf945289cb733d. > > > > The clocks that were enabled by that patch are pretty questionable. > > Specifically looking at what has been

[PATCH v2] panic: add an option to replay all the printk message in buffer

2019-04-10 Thread Feng Tang
Currently on panic, kernel will lower the loglevel and print out new printk msg only with console_flush_on_panic(). Add an option for users to configure the "panic_print" to see all dmesg in buffer, some of which they may have never seen due to the loglevel setting, which will help debugging too.

[PATCH -next] PCI: mvebu: Make mvebu_pci_bridge_emul_ops static

2019-04-10 Thread Yue Haibing
From: YueHaibing Fix sparse warning: drivers/pci/controller/pci-mvebu.c:557:28: warning: symbol 'mvebu_pci_bridge_emul_ops' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/pci/controller/pci-mvebu.c | 2 +- 1 file changed, 1

[PATCH REBASED] mm: Throttle allocators when failing reclaim over memory.high

2019-04-10 Thread Chris Down
We're trying to use memory.high to limit workloads, but have found that containment can frequently fail completely and cause OOM situations outside of the cgroup. This happens especially with swap space -- either when none is configured, or swap is full. These failures often also don't have enough

Re: [PATCH v3] platform: chrome: Add ChromeOS EC ISHTP driver

2019-04-10 Thread Jett Rink
Reviewed-by: Jett Rink Tested-by: Jett Rink On Sun, Apr 7, 2019 at 6:10 AM Rushikesh S Kadam wrote: > > This driver implements a slim layer to enable the ChromeOS > EC kernel stack (cros_ec) to communicate with ChromeOS EC > firmware running on the Intel Integrated Sensor Hub (ISH). > > The

Applied "spi: spi-mem: Make spi_mem_default_supports_op() static inline" to the spi tree

2019-04-10 Thread Mark Brown
The patch spi: spi-mem: Make spi_mem_default_supports_op() static inline has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24

Re: [PATCH-tip v2 02/12] locking/rwsem: Implement lock handoff to prevent lock starvation

2019-04-10 Thread Waiman Long
On 04/10/2019 11:10 AM, Peter Zijlstra wrote: > On Fri, Apr 05, 2019 at 03:21:05PM -0400, Waiman Long wrote: >> +#define RWSEM_WAIT_TIMEOUT ((HZ - 1)/200 + 1) > Given the choices in HZ, the above seems fairly 'optimistic'. I can tighten it up and make it less "optimistic" :-) Cheers, Longman

Re: [PATCH] PM / core: Propagate dev->power.wakeup_path when no callbacks

2019-04-10 Thread Alexandre Torgue
Hi Ulf On 4/10/19 11:55 AM, Ulf Hansson wrote: The dev->power.direct_complete flag may become set in device_prepare() in case the device don't have any PM callbacks (dev->power.no_pm_callbacks is set). This leads to a broken behaviour, when there is child having wakeup enabled and relies on its

Re: [PATCH-tip v2 02/12] locking/rwsem: Implement lock handoff to prevent lock starvation

2019-04-10 Thread Waiman Long
On 04/10/2019 11:07 AM, Peter Zijlstra wrote: > On Fri, Apr 05, 2019 at 03:21:05PM -0400, Waiman Long wrote: >> Because of writer lock stealing, it is possible that a constant >> stream of incoming writers will cause a waiting writer or reader to >> wait indefinitely leading to lock starvation. >>

Re: [PATCH 2/2] spi: pxa2xx: use a module softdep for dw_dmac

2019-04-10 Thread Mark Brown
On Wed, Apr 10, 2019 at 02:05:38PM +, Flavio Suligoi wrote: > Hi Mark, > > While this isn't going to hurt anything and might actually help so it's > > fine doesn't this also suggest that there's an issue with deferred probe > > going on as well? > I think that the problem could be related to

[PATCH v2 03/12] software node: Add support for references

2019-04-10 Thread Heikki Krogerus
Introducing functions that can be used for adding and removing references to other software nodes. The goal is to support fwnode_property_get_reference_args() also with software nodes, however, get_reference_args fwnode operation callback is not yet implemented in this commit for the software

Re: [PATCH 21/21] docs: hwmon: Add an index file and rename docs to *.rst

2019-04-10 Thread Jonathan Neuschäfer
Hello, On Wed, Apr 10, 2019 at 08:12:11AM -0300, Mauro Carvalho Chehab wrote: > Now that all files were converted to ReST format, rename them > and add an index. > > Signed-off-by: Mauro Carvalho Chehab > --- [...] > diff --git a/Documentation/hwmon/submitting-patches >

[PATCH v2 09/12] platform/x86: intel_cht_int33fe: Provide software nodes for the devices

2019-04-10 Thread Heikki Krogerus
Software nodes provide two features that we will need later. 1) Software nodes can have references to other software nodes. 2) Software nodes can exist before a device entry is created. Signed-off-by: Heikki Krogerus --- drivers/platform/x86/intel_cht_int33fe.c | 124 +-- 1

Re: [PATCH 2/3] clk: rockchip: Make rkpwm a critical clock on rk3288

2019-04-10 Thread Doug Anderson
Hi, On Tue, Apr 9, 2019 at 11:42 PM elaine.zhang wrote: > > hi, > > 在 2019/4/10 上午4:47, Douglas Anderson 写道: > > Most rk3288-based boards are derived from the EVB and thus use a PWM > > regulator for the logic rail. However, most rk3288-based boards don't > > specify the PWM regulator in their

[PATCH v2 11/12] platform/x86: intel_cht_int33fe: Link with external dependencies using fwnodes

2019-04-10 Thread Heikki Krogerus
Supplying also external devices - the DisplayPort connector and the USB role switch - software fwnodes. After this the driver has access to all the components tied to the USB Type-C connector and can start creating software node references to actually associate them with the USB Type-C connector

[PATCH v2 12/12] platform/x86: intel_cht_int33fe: Replacing the old connections with references

2019-04-10 Thread Heikki Krogerus
Now that the software nodes support references, and the device connection API support parsing fwnode references, replacing the old connection descriptions with software node references. Relying on device names when matching the connection would not have been possible to link the USB Type-C

[PATCH v2 10/12] platform/x86: intel_cht_int33fe: Provide fwnode for the USB connector

2019-04-10 Thread Heikki Krogerus
In ACPI, and now also in DT, the USB connectors usually have their own device nodes. In case of USB Type-C, those connector (port) nodes are child nodes of the controller or PHY device, in our case the fusb302. The software fwnodes allow us to create a similar child node for fusb302 that

[PATCH v2 05/12] driver core: Add helper device_find_child_by_name()

2019-04-10 Thread Heikki Krogerus
It looks like the child device is often matched with a name. This introduces a helper that does it automatically. Signed-off-by: Heikki Krogerus --- drivers/base/core.c| 31 +++ include/linux/device.h | 2 ++ 2 files changed, 33 insertions(+) diff --git

<    1   2   3   4   5   6   7   8   9   >