[PATCH v4] of: overlay: user space synchronization

2018-11-02 Thread frowand . list
From: Frank Rowand When an overlay is applied or removed, the live devicetree visible in /proc/device-tree/, aka /sys/firmware/devicetree/base/, reflects the changes. There is no method for user space to determine whether the live devicetree was modified by overlay actions. Provide a sysfs

[PATCH v4] of: overlay: user space synchronization

2018-11-02 Thread frowand . list
From: Frank Rowand When an overlay is applied or removed, the live devicetree visible in /proc/device-tree/, aka /sys/firmware/devicetree/base/, reflects the changes. There is no method for user space to determine whether the live devicetree was modified by overlay actions. Provide a sysfs

[PATCH] sched/rt: Remove unnecessary check for next_task in push_rt_task()

2018-11-02 Thread Muchun Song
In push_rt_task(), we call pick_next_pushable_task() to pick next_task before the check. If next_task and rq->curr are equal, which will trigger BUG_ON() in pick_next_pushable_task(). See the following code in pick_next_pushable_task(). static struct task_struct *pick_next_pushable_task(struct

[PATCH] sched/rt: Remove unnecessary check for next_task in push_rt_task()

2018-11-02 Thread Muchun Song
In push_rt_task(), we call pick_next_pushable_task() to pick next_task before the check. If next_task and rq->curr are equal, which will trigger BUG_ON() in pick_next_pushable_task(). See the following code in pick_next_pushable_task(). static struct task_struct *pick_next_pushable_task(struct

Re: linux-next: Signed-off-by missing for commit in the arm-soc tree

2018-11-02 Thread Olof Johansson
Looks like I accidentally rebased the fixes branch locally after merging that patch in. Will fixup, thanks for reporting. -Olof On Fri, Nov 2, 2018 at 8:58 PM Stephen Rothwell wrote: > > Hi all, > > Commit > > cda58c80fe27 ("ARM: OMAP1: ams-delta: Fix impossible .irq < 0") > > is missing a

Re: linux-next: Signed-off-by missing for commit in the arm-soc tree

2018-11-02 Thread Olof Johansson
Looks like I accidentally rebased the fixes branch locally after merging that patch in. Will fixup, thanks for reporting. -Olof On Fri, Nov 2, 2018 at 8:58 PM Stephen Rothwell wrote: > > Hi all, > > Commit > > cda58c80fe27 ("ARM: OMAP1: ams-delta: Fix impossible .irq < 0") > > is missing a

Re: [PATCH] arm64: dts: msm8916: remove bogus argument to the cpu clock

2018-11-02 Thread Bjorn Andersson
On Fri 02 Nov 17:57 PDT 2018, Niklas Cassel wrote: > The apcs node has #clock-cells = <0>, which means that those who > references it should specify 0 arguments. > > The apcs reference in the cpu node incorrectly specifies an argument, > remove this bogus argument. > > Fixes: 65afdf458360

Re: [PATCH] arm64: dts: msm8916: remove bogus argument to the cpu clock

2018-11-02 Thread Bjorn Andersson
On Fri 02 Nov 17:57 PDT 2018, Niklas Cassel wrote: > The apcs node has #clock-cells = <0>, which means that those who > references it should specify 0 arguments. > > The apcs reference in the cpu node incorrectly specifies an argument, > remove this bogus argument. > > Fixes: 65afdf458360

[PATCH] arch/sparc: Use kzalloc_node

2018-11-02 Thread Sabyasachi Gupta
Replaced kmalloc_node + memset with kzalloc_node Signed-off-by: Sabyasachi Gupta --- arch/sparc/kernel/iommu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/sparc/kernel/iommu.c b/arch/sparc/kernel/iommu.c index 40d008b..05eb016 100644 ---

[PATCH] arch/sparc: Use kzalloc_node

2018-11-02 Thread Sabyasachi Gupta
Replaced kmalloc_node + memset with kzalloc_node Signed-off-by: Sabyasachi Gupta --- arch/sparc/kernel/iommu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/sparc/kernel/iommu.c b/arch/sparc/kernel/iommu.c index 40d008b..05eb016 100644 ---

Re: [RFC] doc: rcu: remove note on smp_mb during synchronize_rcu

2018-11-02 Thread Joel Fernandes
On Thu, Nov 01, 2018 at 09:13:07AM -0700, Paul E. McKenney wrote: > On Wed, Oct 31, 2018 at 10:00:19PM -0700, Joel Fernandes wrote: > > On Wed, Oct 31, 2018 at 11:17:48AM -0700, Paul E. McKenney wrote: > > > On Tue, Oct 30, 2018 at 06:11:19PM -0700, Joel Fernandes wrote: > > > > Hi Paul, > > > >

Re: [RFC] doc: rcu: remove note on smp_mb during synchronize_rcu

2018-11-02 Thread Joel Fernandes
On Thu, Nov 01, 2018 at 09:13:07AM -0700, Paul E. McKenney wrote: > On Wed, Oct 31, 2018 at 10:00:19PM -0700, Joel Fernandes wrote: > > On Wed, Oct 31, 2018 at 11:17:48AM -0700, Paul E. McKenney wrote: > > > On Tue, Oct 30, 2018 at 06:11:19PM -0700, Joel Fernandes wrote: > > > > Hi Paul, > > > >

Re: [PATCH] mm: Create the new vm_fault_t type

2018-11-02 Thread Souptick Joarder
On Sat, Nov 3, 2018 at 10:31 AM Souptick Joarder wrote: > > Page fault handlers are supposed to return VM_FAULT codes, > but some drivers/file systems mistakenly return error > numbers. Now that all drivers/file systems have been converted > to use the vm_fault_t return type, change the type

Re: [PATCH] mm: Create the new vm_fault_t type

2018-11-02 Thread Souptick Joarder
On Sat, Nov 3, 2018 at 10:31 AM Souptick Joarder wrote: > > Page fault handlers are supposed to return VM_FAULT codes, > but some drivers/file systems mistakenly return error > numbers. Now that all drivers/file systems have been converted > to use the vm_fault_t return type, change the type

[PATCH] mm: Create the new vm_fault_t type

2018-11-02 Thread Souptick Joarder
Page fault handlers are supposed to return VM_FAULT codes, but some drivers/file systems mistakenly return error numbers. Now that all drivers/file systems have been converted to use the vm_fault_t return type, change the type definition to no longer be compatible with 'int'. By making it an

[PATCH] mm: Create the new vm_fault_t type

2018-11-02 Thread Souptick Joarder
Page fault handlers are supposed to return VM_FAULT codes, but some drivers/file systems mistakenly return error numbers. Now that all drivers/file systems have been converted to use the vm_fault_t return type, change the type definition to no longer be compatible with 'int'. By making it an

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

2018-11-02 Thread Frank Rowand
Hi Rob, First, the point of this patch was to provide a way for userspace (program, command line interface, whatever -- that is orthogonal) to ensure that its view of the devicetree via /proc/device-tree/ is consistent since an overlay apply or remove can alter the devicetree. For in-kernel use,

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

2018-11-02 Thread Frank Rowand
Hi Rob, First, the point of this patch was to provide a way for userspace (program, command line interface, whatever -- that is orthogonal) to ensure that its view of the devicetree via /proc/device-tree/ is consistent since an overlay apply or remove can alter the devicetree. For in-kernel use,

[PATCH 4/6] tpm: move tpm_validate_commmand() to tpm2-space.c

2018-11-02 Thread Jarkko Sakkinen
Move tpm_validate_command() to tpm2-space.c and make it part of the tpm2_prepare_space() flow. Make cc resolution as part of the TPM space functionality in order to detach it from rest of the tpm_transmit() flow. Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm-interface.c | 72

[PATCH 3/6] tpm: access command header through struct in tpm_try_transmit()

2018-11-02 Thread Jarkko Sakkinen
Instead of accessing fields of the command header through offsets to the raw buffer, it is a better idea to use the header struct pointer that is already used elsewhere in the function. Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm-interface.c | 4 ++-- 1 file changed, 2

[PATCH 5/6] tpm: encapsulate tpm_dev_transmit()

2018-11-02 Thread Jarkko Sakkinen
Encapsulate tpm_transmit() call pattern to tpm_dev_transmit() because it is identically used from two places. Use unlocked version of tpm_transmit() so that we are able to move the calls to tpm2_prepare_space() and tpm2_commit_space() later on to this new function. Signed-off-by: Jarkko Sakkinen

[PATCH 4/6] tpm: move tpm_validate_commmand() to tpm2-space.c

2018-11-02 Thread Jarkko Sakkinen
Move tpm_validate_command() to tpm2-space.c and make it part of the tpm2_prepare_space() flow. Make cc resolution as part of the TPM space functionality in order to detach it from rest of the tpm_transmit() flow. Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm-interface.c | 72

[PATCH 3/6] tpm: access command header through struct in tpm_try_transmit()

2018-11-02 Thread Jarkko Sakkinen
Instead of accessing fields of the command header through offsets to the raw buffer, it is a better idea to use the header struct pointer that is already used elsewhere in the function. Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm-interface.c | 4 ++-- 1 file changed, 2

[PATCH 5/6] tpm: encapsulate tpm_dev_transmit()

2018-11-02 Thread Jarkko Sakkinen
Encapsulate tpm_transmit() call pattern to tpm_dev_transmit() because it is identically used from two places. Use unlocked version of tpm_transmit() so that we are able to move the calls to tpm2_prepare_space() and tpm2_commit_space() later on to this new function. Signed-off-by: Jarkko Sakkinen

[PATCH 6/6] tpm: move TPM space code out of tpm_transmit()

2018-11-02 Thread Jarkko Sakkinen
Prepare and commit TPM space before and after calling tpm_transmit() instead of doing that inside tpm_transmit(). After this change we can remove TPM_TRANSMIT_NESTED flag. Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm-dev-common.c | 31 ---

[PATCH 6/6] tpm: move TPM space code out of tpm_transmit()

2018-11-02 Thread Jarkko Sakkinen
Prepare and commit TPM space before and after calling tpm_transmit() instead of doing that inside tpm_transmit(). After this change we can remove TPM_TRANSMIT_NESTED flag. Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm-dev-common.c | 31 ---

[PATCH 1/6] tpm: use tpm_buf in tpm_transmit_cmd() as the IO parameter

2018-11-02 Thread Jarkko Sakkinen
Since we pass an initialized struct tpm_buf instance in every call site now, it is cleaner to pass that directly to the tpm_transmit_cmd() as the TPM command/response buffer. Fine-tune a little bit tpm_transmit() and tpm_transmit_cmd() comments while doing this. Signed-off-by: Jarkko Sakkinen

[PATCH 0/6] Detach TPM space code from tpm_transmit() flow

2018-11-02 Thread Jarkko Sakkinen
Make the changes that are needed to detach TPM space code from tpm_transmit() flow so that we do no longer need nested tpm_transmit() calls. Jarkko Sakkinen (6): tpm: use tpm_buf in tpm_transmit_cmd() as the IO parameter tpm: clean up tpm_try_transmit() error handling flow tpm: access

[PATCH 2/6] tpm: clean up tpm_try_transmit() error handling flow

2018-11-02 Thread Jarkko Sakkinen
Move locking, locality handling and power management to tpm_transmit() in order to simplify the flow and fix the error message formatting in tpm_try_transmit() to output correct function name by using the '__func__' macro. Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm-interface.c |

[PATCH 1/6] tpm: use tpm_buf in tpm_transmit_cmd() as the IO parameter

2018-11-02 Thread Jarkko Sakkinen
Since we pass an initialized struct tpm_buf instance in every call site now, it is cleaner to pass that directly to the tpm_transmit_cmd() as the TPM command/response buffer. Fine-tune a little bit tpm_transmit() and tpm_transmit_cmd() comments while doing this. Signed-off-by: Jarkko Sakkinen

[PATCH 0/6] Detach TPM space code from tpm_transmit() flow

2018-11-02 Thread Jarkko Sakkinen
Make the changes that are needed to detach TPM space code from tpm_transmit() flow so that we do no longer need nested tpm_transmit() calls. Jarkko Sakkinen (6): tpm: use tpm_buf in tpm_transmit_cmd() as the IO parameter tpm: clean up tpm_try_transmit() error handling flow tpm: access

[PATCH 2/6] tpm: clean up tpm_try_transmit() error handling flow

2018-11-02 Thread Jarkko Sakkinen
Move locking, locality handling and power management to tpm_transmit() in order to simplify the flow and fix the error message formatting in tpm_try_transmit() to output correct function name by using the '__func__' macro. Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm-interface.c |

linux-next: Signed-off-by missing for commit in the arm-soc tree

2018-11-02 Thread Stephen Rothwell
Hi all, Commit cda58c80fe27 ("ARM: OMAP1: ams-delta: Fix impossible .irq < 0") is missing a Signed-off-by from its committer. -- Cheers, Stephen Rothwell pgpe0FrniLfHl.pgp Description: OpenPGP digital signature

linux-next: Signed-off-by missing for commit in the arm-soc tree

2018-11-02 Thread Stephen Rothwell
Hi all, Commit cda58c80fe27 ("ARM: OMAP1: ams-delta: Fix impossible .irq < 0") is missing a Signed-off-by from its committer. -- Cheers, Stephen Rothwell pgpe0FrniLfHl.pgp Description: OpenPGP digital signature

Re: [LKP] [net/ipv6] 4ed591c8ab: kernel_selftests.net.fib-onlink-tests.sh.fail

2018-11-02 Thread David Ahern
On 11/1/18 8:11 PM, kernel test robot wrote: > FYI, we noticed the following commit (built with gcc-7): > > commit: 4ed591c8ab44e711e56b8e021ffaf4f407c045f5 ("net/ipv6: Allow onlink > routes to have a device mismatch if it is the default route") >

Re: [LKP] [net/ipv6] 4ed591c8ab: kernel_selftests.net.fib-onlink-tests.sh.fail

2018-11-02 Thread David Ahern
On 11/1/18 8:11 PM, kernel test robot wrote: > FYI, we noticed the following commit (built with gcc-7): > > commit: 4ed591c8ab44e711e56b8e021ffaf4f407c045f5 ("net/ipv6: Allow onlink > routes to have a device mismatch if it is the default route") >

Update

2018-11-02 Thread Bruce Blake
Hello Dear how are you doing today? my name is Bruce Blake, the manager foreign affairs in City Finance Bank, we have a customer here in bank that has not accessed his account for the past 18 years, after some research made about him we found out he was a victim of the crashed mining company

Update

2018-11-02 Thread Bruce Blake
Hello Dear how are you doing today? my name is Bruce Blake, the manager foreign affairs in City Finance Bank, we have a customer here in bank that has not accessed his account for the past 18 years, after some research made about him we found out he was a victim of the crashed mining company

Re: [PATCH v8] clk: qcom: Add lpass clock controller driver for SDM845

2018-11-02 Thread Taniya Das
Hello Stephen, On 11/2/2018 10:08 PM, Stephen Boyd wrote: Quoting Taniya Das (2018-10-28 00:35:40) Add support for the lpass clock controller found on SDM845 based devices. This would allow lpass peripheral loader drivers to control the clocks to bring the subsystem out of reset. LPASS clocks

Re: [PATCH v8] clk: qcom: Add lpass clock controller driver for SDM845

2018-11-02 Thread Taniya Das
Hello Stephen, On 11/2/2018 10:08 PM, Stephen Boyd wrote: Quoting Taniya Das (2018-10-28 00:35:40) Add support for the lpass clock controller found on SDM845 based devices. This would allow lpass peripheral loader drivers to control the clocks to bring the subsystem out of reset. LPASS clocks

Re: [PATCH 2/2] cpufreq: qcom-hw: Add support for QCOM cpufreq HW driver

2018-11-02 Thread Taniya Das
Hello Stephen, On 10/18/2018 5:02 AM, Stephen Boyd wrote: Quoting Taniya Das (2018-10-11 04:36:01) --- a/drivers/cpufreq/Kconfig.arm +++ b/drivers/cpufreq/Kconfig.arm @@ -121,6 +121,17 @@ config ARM_QCOM_CPUFREQ_KRYO If in doubt, say N. +config ARM_QCOM_CPUFREQ_HW + bool

Re: [PATCH 2/2] cpufreq: qcom-hw: Add support for QCOM cpufreq HW driver

2018-11-02 Thread Taniya Das
Hello Stephen, On 10/18/2018 5:02 AM, Stephen Boyd wrote: Quoting Taniya Das (2018-10-11 04:36:01) --- a/drivers/cpufreq/Kconfig.arm +++ b/drivers/cpufreq/Kconfig.arm @@ -121,6 +121,17 @@ config ARM_QCOM_CPUFREQ_KRYO If in doubt, say N. +config ARM_QCOM_CPUFREQ_HW + bool

[PATCH] trace: fix memory leak in create_filter()

2018-11-02 Thread Takeshi Misawa
In create_filter(), pe variable is leaked. Since commit 80765597bc58 ("tracing: Rewrite filter logic to be simpler and faster"), create_filter_finish() is missing. kmemleak: unreferenced object 0x90148ba9c790 (size 8): comm "bash", pid 1378, jiffies 4294731025 (age 15.258s) hex dump

[PATCH] trace: fix memory leak in create_filter()

2018-11-02 Thread Takeshi Misawa
In create_filter(), pe variable is leaked. Since commit 80765597bc58 ("tracing: Rewrite filter logic to be simpler and faster"), create_filter_finish() is missing. kmemleak: unreferenced object 0x90148ba9c790 (size 8): comm "bash", pid 1378, jiffies 4294731025 (age 15.258s) hex dump

Re: [PATCH 4.14 106/143] sch_netem: restore skb->dev after dequeuing from the rbtree

2018-11-02 Thread Sasha Levin
On Fri, Nov 02, 2018 at 04:28:04PM -0700, Josh Hunt wrote: On Fri, Nov 2, 2018 at 12:00 PM Greg Kroah-Hartman wrote: 4.14-stable review patch. If anyone has any objections, please let me know. -- Upstream commit bffa72cf7f9d ("net: sk_buff rbnode reorg") got backported as

Re: [PATCH 4.14 106/143] sch_netem: restore skb->dev after dequeuing from the rbtree

2018-11-02 Thread Sasha Levin
On Fri, Nov 02, 2018 at 04:28:04PM -0700, Josh Hunt wrote: On Fri, Nov 2, 2018 at 12:00 PM Greg Kroah-Hartman wrote: 4.14-stable review patch. If anyone has any objections, please let me know. -- Upstream commit bffa72cf7f9d ("net: sk_buff rbnode reorg") got backported as

Re: [PATCH 4.14 069/143] ARM: tegra: Fix ULPI regression on Tegra20

2018-11-02 Thread Sasha Levin
On Fri, Nov 02, 2018 at 07:56:57PM +, Sudip Mukherjee wrote: Hi Greg, On Fri, Nov 2, 2018 at 6:53 PM Greg Kroah-Hartman wrote: 4.14-stable review patch. If anyone has any objections, please let me know. It seems this has already been reverted upstream: 9bf4e370048d ("ARM: dts:

Re: [PATCH 4.14 069/143] ARM: tegra: Fix ULPI regression on Tegra20

2018-11-02 Thread Sasha Levin
On Fri, Nov 02, 2018 at 07:56:57PM +, Sudip Mukherjee wrote: Hi Greg, On Fri, Nov 2, 2018 at 6:53 PM Greg Kroah-Hartman wrote: 4.14-stable review patch. If anyone has any objections, please let me know. It seems this has already been reverted upstream: 9bf4e370048d ("ARM: dts:

Re: [PATCH 4.14 060/143] net/mlx5: Fix mlx5_get_vector_affinity function

2018-11-02 Thread Sasha Levin
On Fri, Nov 02, 2018 at 07:59:39PM +, Sudip Mukherjee wrote: Hi Greg, On Fri, Nov 2, 2018 at 6:52 PM Greg Kroah-Hartman wrote: 4.14-stable review patch. If anyone has any objections, please let me know. There is another upstream patch which fixes this one. e3ca34880652 ("net/mlx5: Fix

Re: [PATCH 3/3] lockdep: Use line-buffered printk() for lockdep messages.

2018-11-02 Thread Tetsuo Handa
On 2018/11/02 22:36, Peter Zijlstra wrote: > On Fri, Nov 02, 2018 at 10:31:57PM +0900, Tetsuo Handa wrote: >> syzbot is sometimes getting mixed output like below due to concurrent >> printk(). Mitigate such output by using line-buffered printk() API. >> >> RCU used illegally from idle CPU! >>

Re: [PATCH 4.14 060/143] net/mlx5: Fix mlx5_get_vector_affinity function

2018-11-02 Thread Sasha Levin
On Fri, Nov 02, 2018 at 07:59:39PM +, Sudip Mukherjee wrote: Hi Greg, On Fri, Nov 2, 2018 at 6:52 PM Greg Kroah-Hartman wrote: 4.14-stable review patch. If anyone has any objections, please let me know. There is another upstream patch which fixes this one. e3ca34880652 ("net/mlx5: Fix

Re: [PATCH 3/3] lockdep: Use line-buffered printk() for lockdep messages.

2018-11-02 Thread Tetsuo Handa
On 2018/11/02 22:36, Peter Zijlstra wrote: > On Fri, Nov 02, 2018 at 10:31:57PM +0900, Tetsuo Handa wrote: >> syzbot is sometimes getting mixed output like below due to concurrent >> printk(). Mitigate such output by using line-buffered printk() API. >> >> RCU used illegally from idle CPU! >>

[PATCH v2] KEYS: always initialize keyring_index_key::desc_len

2018-11-02 Thread Eric Biggers
From: Eric Biggers syzbot hit the 'BUG_ON(index_key->desc_len == 0);' in __key_link_begin() called from construct_alloc_key() during sys_request_key(), because the length of the key description was never calculated. The problem is that we rely on ->desc_len being initialized by

[PATCH v2] KEYS: always initialize keyring_index_key::desc_len

2018-11-02 Thread Eric Biggers
From: Eric Biggers syzbot hit the 'BUG_ON(index_key->desc_len == 0);' in __key_link_begin() called from construct_alloc_key() during sys_request_key(), because the length of the key description was never calculated. The problem is that we rely on ->desc_len being initialized by

Re: [PATCH] KEYS: always initialize keyring_index_key::desc_len

2018-11-02 Thread Eric Biggers
On Fri, Nov 02, 2018 at 04:15:10PM -0700, Eric Biggers wrote: > From: Eric Biggers > > syzbot hit the 'BUG_ON(index_key->desc_len == 0);' in __key_link_begin() > called from construct_alloc_key() during sys_request_key(), because the > length of the key description was never calculated. > > The

Re: [PATCH] KEYS: always initialize keyring_index_key::desc_len

2018-11-02 Thread Eric Biggers
On Fri, Nov 02, 2018 at 04:15:10PM -0700, Eric Biggers wrote: > From: Eric Biggers > > syzbot hit the 'BUG_ON(index_key->desc_len == 0);' in __key_link_begin() > called from construct_alloc_key() during sys_request_key(), because the > length of the key description was never calculated. > > The

Re: [PATCH v6 1/3] printk: Add line-buffered printk() API.

2018-11-02 Thread Tetsuo Handa
On 2018/11/02 23:40, Matthew Wilcox wrote: > On Fri, Nov 02, 2018 at 10:31:55PM +0900, Tetsuo Handa wrote: >> get_printk_buffer() tries to assign a "struct printk_buffer" from >> statically preallocated array. get_printk_buffer() returns NULL if >> all "struct printk_buffer" are in use, but

Re: [PATCH v6 1/3] printk: Add line-buffered printk() API.

2018-11-02 Thread Tetsuo Handa
On 2018/11/02 23:40, Matthew Wilcox wrote: > On Fri, Nov 02, 2018 at 10:31:55PM +0900, Tetsuo Handa wrote: >> get_printk_buffer() tries to assign a "struct printk_buffer" from >> statically preallocated array. get_printk_buffer() returns NULL if >> all "struct printk_buffer" are in use, but

[PATCH] tpm: move tpm_validate_commmand() to tpm2-space.c

2018-11-02 Thread Jarkko Sakkinen
Move tpm_validate_command() to tpm2-space.c and make it part of the tpm2_prepare_space() flow. Make cc resolution as part of the TPM space functionality in order to detach it from rest of the tpm_transmit() flow. Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm-interface.c | 72

[PATCH] tpm: move tpm_validate_commmand() to tpm2-space.c

2018-11-02 Thread Jarkko Sakkinen
Move tpm_validate_command() to tpm2-space.c and make it part of the tpm2_prepare_space() flow. Make cc resolution as part of the TPM space functionality in order to detach it from rest of the tpm_transmit() flow. Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm-interface.c | 72

Re: [PATCH v15 16/23] x86/sgx: Enumerate and track EPC sections

2018-11-02 Thread Jethro Beekman
On 2018-11-02 16:11, Jarkko Sakkinen wrote: diff --git a/arch/x86/kernel/cpu/intel_sgx.c b/arch/x86/kernel/cpu/intel_sgx.c new file mode 100644 index ..b86aa4111592 --- /dev/null +++ b/arch/x86/kernel/cpu/intel_sgx.c ... +static __init int sgx_page_cache_init(void) +{ + u32

Re: [PATCH v15 16/23] x86/sgx: Enumerate and track EPC sections

2018-11-02 Thread Jethro Beekman
On 2018-11-02 16:11, Jarkko Sakkinen wrote: diff --git a/arch/x86/kernel/cpu/intel_sgx.c b/arch/x86/kernel/cpu/intel_sgx.c new file mode 100644 index ..b86aa4111592 --- /dev/null +++ b/arch/x86/kernel/cpu/intel_sgx.c ... +static __init int sgx_page_cache_init(void) +{ + u32

[PATCH] arm64: dts: msm8916: remove bogus argument to the cpu clock

2018-11-02 Thread Niklas Cassel
The apcs node has #clock-cells = <0>, which means that those who references it should specify 0 arguments. The apcs reference in the cpu node incorrectly specifies an argument, remove this bogus argument. Fixes: 65afdf458360 ("arm64: dts: qcom: msm8916: Add CPU frequency scaling support")

[PATCH] arm64: dts: msm8916: remove bogus argument to the cpu clock

2018-11-02 Thread Niklas Cassel
The apcs node has #clock-cells = <0>, which means that those who references it should specify 0 arguments. The apcs reference in the cpu node incorrectly specifies an argument, remove this bogus argument. Fixes: 65afdf458360 ("arm64: dts: qcom: msm8916: Add CPU frequency scaling support")

[PATCH] tpm: access command header through struct in tpm_try_transmit()

2018-11-02 Thread Jarkko Sakkinen
Instead of accessing fields of the command header through offsets to the raw buffer, it is a better idea to use the header struct pointer that is already used elsewhere in the function. Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm-interface.c | 4 ++-- 1 file changed, 2

[PATCH] tpm: access command header through struct in tpm_try_transmit()

2018-11-02 Thread Jarkko Sakkinen
Instead of accessing fields of the command header through offsets to the raw buffer, it is a better idea to use the header struct pointer that is already used elsewhere in the function. Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm-interface.c | 4 ++-- 1 file changed, 2

[PATCH v3 2/4] arm64: hyperv: Add support for Hyper-V as a hypervisor

2018-11-02 Thread Michael Kelley
Add ARM64-specific code to enable Hyper-V. This code includes: * Detecting Hyper-V and initializing the guest/Hyper-V interface * Setting up Hyper-V's synthetic clocks * Making hypercalls using the HVC instruction * Setting up VMbus and stimer0 interrupts * Setting up kexec and crash handlers This

[PATCH v3 1/4] arm64: hyperv: Add core Hyper-V include files

2018-11-02 Thread Michael Kelley
hyperv-tlfs.h defines Hyper-V interfaces from the Hyper-V Top Level Functional Spec (TLFS). The TLFS is distinctly oriented to x86/x64, and Hyper-V has not separated out the architecture-dependent parts into x86/x64 vs. ARM64. So hyperv-tlfs.h includes information for ARM64 that is not yet

[PATCH v3 2/4] arm64: hyperv: Add support for Hyper-V as a hypervisor

2018-11-02 Thread Michael Kelley
Add ARM64-specific code to enable Hyper-V. This code includes: * Detecting Hyper-V and initializing the guest/Hyper-V interface * Setting up Hyper-V's synthetic clocks * Making hypercalls using the HVC instruction * Setting up VMbus and stimer0 interrupts * Setting up kexec and crash handlers This

[PATCH v3 1/4] arm64: hyperv: Add core Hyper-V include files

2018-11-02 Thread Michael Kelley
hyperv-tlfs.h defines Hyper-V interfaces from the Hyper-V Top Level Functional Spec (TLFS). The TLFS is distinctly oriented to x86/x64, and Hyper-V has not separated out the architecture-dependent parts into x86/x64 vs. ARM64. So hyperv-tlfs.h includes information for ARM64 that is not yet

[PATCH v3 3/4] Drivers: hv: vmbus: Add hooks for per-CPU IRQ

2018-11-02 Thread Michael Kelley
Add hooks to enable/disable a per-CPU IRQ for VMbus. These hooks are in the architecture independent setup and shutdown paths for Hyper-V, and are needed by Linux guests on Hyper-V on ARM64. The x86/x64 implementation is null because VMbus interrupts on x86/x64 don't use an IRQ. Signed-off-by:

[PATCH v3 3/4] Drivers: hv: vmbus: Add hooks for per-CPU IRQ

2018-11-02 Thread Michael Kelley
Add hooks to enable/disable a per-CPU IRQ for VMbus. These hooks are in the architecture independent setup and shutdown paths for Hyper-V, and are needed by Linux guests on Hyper-V on ARM64. The x86/x64 implementation is null because VMbus interrupts on x86/x64 don't use an IRQ. Signed-off-by:

[PATCH v3 4/4] Drivers: hv: Enable CONFIG_HYPERV on ARM64

2018-11-02 Thread Michael Kelley
Update drivers/hv/Kconfig so CONFIG_HYPERV can be selected on ARM64, causing the Hyper-V specific code to be built. Signed-off-by: Michael Kelley --- drivers/hv/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/hv/Kconfig b/drivers/hv/Kconfig index

[PATCH v3 0/4] Subject: Enable Linux guests on Hyper-V on ARM64

2018-11-02 Thread Michael Kelley
This series enables Linux guests running on Hyper-V on ARM64 hardware. New ARM64-specific code in arch/arm64/hyperv initializes Hyper-V, including its synthetic clocks and hypercall mechanism. Existing architecture independent drivers for Hyper-V's VMbus and synthetic devices just work when built

[PATCH v3 4/4] Drivers: hv: Enable CONFIG_HYPERV on ARM64

2018-11-02 Thread Michael Kelley
Update drivers/hv/Kconfig so CONFIG_HYPERV can be selected on ARM64, causing the Hyper-V specific code to be built. Signed-off-by: Michael Kelley --- drivers/hv/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/hv/Kconfig b/drivers/hv/Kconfig index

[PATCH v3 0/4] Subject: Enable Linux guests on Hyper-V on ARM64

2018-11-02 Thread Michael Kelley
This series enables Linux guests running on Hyper-V on ARM64 hardware. New ARM64-specific code in arch/arm64/hyperv initializes Hyper-V, including its synthetic clocks and hypercall mechanism. Existing architecture independent drivers for Hyper-V's VMbus and synthetic devices just work when built

[git pull] followup fix to work.afs

2018-11-02 Thread Al Viro
Regression fix for net/9p handling of iov_iter; broken by braino when switching to iov_iter_is_kvec() et.al., spotted and fixed by Marc. The following changes since commit 0e9b4a82710220c04100892fb7277b78fd33a747: missing bits of "iov_iter: Separate type from direction and use accessor

[git pull] followup fix to work.afs

2018-11-02 Thread Al Viro
Regression fix for net/9p handling of iov_iter; broken by braino when switching to iov_iter_is_kvec() et.al., spotted and fixed by Marc. The following changes since commit 0e9b4a82710220c04100892fb7277b78fd33a747: missing bits of "iov_iter: Separate type from direction and use accessor

Re: [PATCH] copy_{to,from}_user(): fix compile-time sanity checks with gcc -Og

2018-11-02 Thread Changbin Du
On Fri, Nov 02, 2018 at 04:56:58PM +0100, Arnd Bergmann wrote: > When CONFIG_CC_OPTIMIZE_FOR_DEBUGGING is set, we get countless warnings > like > > In function 'check_copy_size', > inlined from 'copy_from_user' at include/linux/uaccess.h:146:6, > inlined from '__copy_siginfo_from_user' at

Re: [PATCH] copy_{to,from}_user(): fix compile-time sanity checks with gcc -Og

2018-11-02 Thread Changbin Du
On Fri, Nov 02, 2018 at 04:56:58PM +0100, Arnd Bergmann wrote: > When CONFIG_CC_OPTIMIZE_FOR_DEBUGGING is set, we get countless warnings > like > > In function 'check_copy_size', > inlined from 'copy_from_user' at include/linux/uaccess.h:146:6, > inlined from '__copy_siginfo_from_user' at

Re: linux-next: Tree for Oct 31 (vboxguest)

2018-11-02 Thread Changbin Du
On Fri, Nov 02, 2018 at 04:54:25PM +0100, Arnd Bergmann wrote: > On 11/2/18, Masahiro Yamada wrote: > > On Thu, Nov 1, 2018 at 11:32 PM Changbin Du wrote: > >> On Thu, Nov 01, 2018 at 12:32:48PM +0900, Masahiro Yamada wrote: > > > > How about clang? > > > > For clang, -Og might be equivalent to

Re: linux-next: Tree for Oct 31 (vboxguest)

2018-11-02 Thread Changbin Du
Hi Yamada, >On Fri, Nov 02, 2018 at 05:25:00PM +0900, Masahiro Yamada wrote: >[...] > > > > > > > > diff --git a/drivers/virt/vboxguest/vboxguest_core.c > > > > b/drivers/virt/vboxguest/vboxguest_core.c > > > > index 3093655c7b92..1475ed5ffcde 100644 > > > > ---

Re: linux-next: Tree for Oct 31 (vboxguest)

2018-11-02 Thread Changbin Du
On Fri, Nov 02, 2018 at 04:54:25PM +0100, Arnd Bergmann wrote: > On 11/2/18, Masahiro Yamada wrote: > > On Thu, Nov 1, 2018 at 11:32 PM Changbin Du wrote: > >> On Thu, Nov 01, 2018 at 12:32:48PM +0900, Masahiro Yamada wrote: > > > > How about clang? > > > > For clang, -Og might be equivalent to

Re: linux-next: Tree for Oct 31 (vboxguest)

2018-11-02 Thread Changbin Du
Hi Yamada, >On Fri, Nov 02, 2018 at 05:25:00PM +0900, Masahiro Yamada wrote: >[...] > > > > > > > > diff --git a/drivers/virt/vboxguest/vboxguest_core.c > > > > b/drivers/virt/vboxguest/vboxguest_core.c > > > > index 3093655c7b92..1475ed5ffcde 100644 > > > > ---

Re: [PATCH v15 02/23] x86/cpufeatures: Add Intel-defined SGX feature bit

2018-11-02 Thread Jarkko Sakkinen
On Sat, Nov 03, 2018 at 12:33:01AM +0100, Borislav Petkov wrote: > On Sat, Nov 03, 2018 at 01:11:01AM +0200, Jarkko Sakkinen wrote: > > From: Kai Huang > > > > X86_FEATURE_SGX reflects whether or not the CPU supports Intel's > > Software Guard eXtensions (SGX). > > > > Signed-off-by: Kai Huang

Re: [PATCH v15 02/23] x86/cpufeatures: Add Intel-defined SGX feature bit

2018-11-02 Thread Jarkko Sakkinen
On Sat, Nov 03, 2018 at 12:33:01AM +0100, Borislav Petkov wrote: > On Sat, Nov 03, 2018 at 01:11:01AM +0200, Jarkko Sakkinen wrote: > > From: Kai Huang > > > > X86_FEATURE_SGX reflects whether or not the CPU supports Intel's > > Software Guard eXtensions (SGX). > > > > Signed-off-by: Kai Huang

Re: [PATCH] EDAC: skx_edac: add ACPI dependency

2018-11-02 Thread Borislav Petkov
On Fri, Nov 02, 2018 at 10:39:59AM -0700, Luck, Tony wrote: > On Fri, Nov 02, 2018 at 05:10:13PM +0100, Borislav Petkov wrote: > > On Fri, Nov 02, 2018 at 04:32:06PM +0100, Arnd Bergmann wrote: > > > We cannot currently select ACPI_ADXL without also enabling the top-level > > > ACPI option: > > >

Re: [PATCH] EDAC: skx_edac: add ACPI dependency

2018-11-02 Thread Borislav Petkov
On Fri, Nov 02, 2018 at 10:39:59AM -0700, Luck, Tony wrote: > On Fri, Nov 02, 2018 at 05:10:13PM +0100, Borislav Petkov wrote: > > On Fri, Nov 02, 2018 at 04:32:06PM +0100, Arnd Bergmann wrote: > > > We cannot currently select ACPI_ADXL without also enabling the top-level > > > ACPI option: > > >

Re: [PATCH 00/10] steal tasks to improve CPU utilization

2018-11-02 Thread Subhra Mazumdar
On 10/22/18 7:59 AM, Steve Sistare wrote: When a CPU has no more CFS tasks to run, and idle_balance() fails to find a task, then attempt to steal a task from an overloaded CPU in the same LLC. Maintain and use a bitmap of overloaded CPUs to efficiently identify candidates. To minimize search

Re: [PATCH 00/10] steal tasks to improve CPU utilization

2018-11-02 Thread Subhra Mazumdar
On 10/22/18 7:59 AM, Steve Sistare wrote: When a CPU has no more CFS tasks to run, and idle_balance() fails to find a task, then attempt to steal a task from an overloaded CPU in the same LLC. Maintain and use a bitmap of overloaded CPUs to efficiently identify candidates. To minimize search

Re: RFC: userspace exception fixups

2018-11-02 Thread Jann Horn
On Sat, Nov 3, 2018 at 12:32 AM Andy Lutomirski wrote: > On Fri, Nov 2, 2018 at 4:28 PM Jann Horn wrote: > > On Fri, Nov 2, 2018 at 11:04 PM Sean Christopherson > > wrote: > > > On Fri, Nov 02, 2018 at 08:02:23PM +0100, Jann Horn wrote: > > > > On Fri, Nov 2, 2018 at 7:27 PM Sean Christopherson

Re: RFC: userspace exception fixups

2018-11-02 Thread Jann Horn
On Sat, Nov 3, 2018 at 12:32 AM Andy Lutomirski wrote: > On Fri, Nov 2, 2018 at 4:28 PM Jann Horn wrote: > > On Fri, Nov 2, 2018 at 11:04 PM Sean Christopherson > > wrote: > > > On Fri, Nov 02, 2018 at 08:02:23PM +0100, Jann Horn wrote: > > > > On Fri, Nov 2, 2018 at 7:27 PM Sean Christopherson

Re: [GIT PULL] vfs: fix many problems in vfs clone/dedupe implementation

2018-11-02 Thread Dave Chinner
On Fri, Nov 02, 2018 at 09:35:23AM -0700, Linus Torvalds wrote: > On Thu, Nov 1, 2018 at 10:15 PM Dave Chinner wrote: > > > > Can you please pull update containing a rework of the VFS clone and > > dedupe file range infrastructure from the tag listed below? > > I don't love the timing of this at

Re: [GIT PULL] vfs: fix many problems in vfs clone/dedupe implementation

2018-11-02 Thread Dave Chinner
On Fri, Nov 02, 2018 at 09:35:23AM -0700, Linus Torvalds wrote: > On Thu, Nov 1, 2018 at 10:15 PM Dave Chinner wrote: > > > > Can you please pull update containing a rework of the VFS clone and > > dedupe file range infrastructure from the tag listed below? > > I don't love the timing of this at

Re: [PATCH v15 02/23] x86/cpufeatures: Add Intel-defined SGX feature bit

2018-11-02 Thread Borislav Petkov
On Sat, Nov 03, 2018 at 01:11:01AM +0200, Jarkko Sakkinen wrote: > From: Kai Huang > > X86_FEATURE_SGX reflects whether or not the CPU supports Intel's > Software Guard eXtensions (SGX). > > Signed-off-by: Kai Huang This and all the other patches of which you're not the author, need to have

Re: [PATCH v15 02/23] x86/cpufeatures: Add Intel-defined SGX feature bit

2018-11-02 Thread Borislav Petkov
On Sat, Nov 03, 2018 at 01:11:01AM +0200, Jarkko Sakkinen wrote: > From: Kai Huang > > X86_FEATURE_SGX reflects whether or not the CPU supports Intel's > Software Guard eXtensions (SGX). > > Signed-off-by: Kai Huang This and all the other patches of which you're not the author, need to have

Re: RFC: userspace exception fixups

2018-11-02 Thread Andy Lutomirski
On Fri, Nov 2, 2018 at 4:28 PM Jann Horn wrote: > > On Fri, Nov 2, 2018 at 11:04 PM Sean Christopherson > wrote: > > On Fri, Nov 02, 2018 at 08:02:23PM +0100, Jann Horn wrote: > > > On Fri, Nov 2, 2018 at 7:27 PM Sean Christopherson > > > wrote: > > > > On Fri, Nov 02, 2018 at 10:48:38AM -0700,

Re: RFC: userspace exception fixups

2018-11-02 Thread Andy Lutomirski
On Fri, Nov 2, 2018 at 4:28 PM Jann Horn wrote: > > On Fri, Nov 2, 2018 at 11:04 PM Sean Christopherson > wrote: > > On Fri, Nov 02, 2018 at 08:02:23PM +0100, Jann Horn wrote: > > > On Fri, Nov 2, 2018 at 7:27 PM Sean Christopherson > > > wrote: > > > > On Fri, Nov 02, 2018 at 10:48:38AM -0700,

[PATCH v3 0/7] x86/alternatives: text_poke() fixes

2018-11-02 Thread Nadav Amit
This patch-set addresses some issues that were raised in a recent correspondence and might affect the security and the correctness of code patching. (Note that patching performance is not addressed by this patch-set). The main issue that the patches deal with is the fact that the fixmap PTEs that

[PATCH v3 5/7] x86/alternatives: initializing temporary mm for patching

2018-11-02 Thread Nadav Amit
To prevent improper use of the PTEs that are used for text patching, we want to use a temporary mm struct. We initailize it by copying the init mm. The address that will be used for patching is taken from the lower area that is usually used for the task memory. Doing so prevents the need to

  1   2   3   4   5   6   7   8   9   10   >