Re: [PATCH] staging: typec: Fix sparse warnings about incorrect types

2017-05-10 Thread Guru Das S
On 10 May 2017 at 08:23, Guenter Roeck wrote: > Please the patch into two parts, one per file; the required changes > for endianness support in tcpci.c are much more complex. I will send out a patch for the two simple fixes - the use of pd_header_cnt_le(). > Excellent catch, but the fix is wron

Re: [v3 0/9] parallelized "struct page" zeroing

2017-05-10 Thread Matthew Wilcox
On Wed, May 10, 2017 at 11:19:43AM -0400, David Miller wrote: > From: Michal Hocko > Date: Wed, 10 May 2017 16:57:26 +0200 > > > Have you measured that? I do not think it would be super hard to > > measure. I would be quite surprised if this added much if anything at > > all as the whole struct p

Re: [RFC GIT PULL, v2] RCU changes for v4.12

2017-05-10 Thread Linus Torvalds
On Tue, May 9, 2017 at 12:26 AM, Ingo Molnar wrote: > > The main changes are: So I've pulled it now (although it is showing signs of semantic conflicts, so I'll have to look at those), but I've got two requests, one for Ingo, one for Paul. Ingo: please don't bother sending me stupid crap. And b

[PATCH] net: ethernet: ti: netcp_core: return error while dma channel open issue

2017-05-10 Thread Ivan Khoronzhuk
Fix error path while dma open channel issue. Also, no need to check output on NULL if it's never returned. Signed-off-by: Ivan Khoronzhuk --- Based on net-next drivers/net/ethernet/ti/netcp_core.c | 6 -- drivers/soc/ti/knav_dma.c| 2 +- 2 files changed, 5 insertions(+), 3 delet

Re: [PATCH] workqueue: Ensure that cpumask set for pools created after boot

2017-05-10 Thread Tejun Heo
Hello, On Wed, May 10, 2017 at 11:48:17AM -0500, Michael Bringmann wrote: > > On NUMA systems with dynamic processors, the content of the cpumask > may change over time. As new processors are added via DLPAR operations, > workqueues are created for them. This patch ensures that the pools > crea

[PATCH v3 for-4.12-fixes 2/2] sched/fair: Fix O(# total cgroups) in load balance path

2017-05-10 Thread Tejun Heo
Currently, rq->leaf_cfs_rq_list is a traversal ordered list of all live cfs_rqs which have ever been active on the CPU; unfortunately, this makes update_blocked_averages() O(# total cgroups) which isn't scalable at all. This shows up as a small CPU consumption and scheduling latency increase in th

Re: [PATCH] wcn36xx: Close SMD channel on device removal

2017-05-10 Thread Bjorn Andersson
On Wed 10 May 00:27 PDT 2017, Arend van Spriel wrote: > On 5/10/2017 1:03 AM, Bjorn Andersson wrote: > > On Mon 08 May 23:17 PDT 2017, Kalle Valo wrote: > > > > > Bjorn Andersson writes: > > > > > > > The SMD channel is not the primary WCNSS channel and must explicitly be > > > > closed as the

Re: [linux-next][bock] [bisected c20cfc27a] WARNING: CPU: 22 PID: 0 at block/blk-core.c:2655 .blk_update_request+0x4f8/0x500

2017-05-10 Thread Christoph Hellwig
Hi Abdul, can you test the patch below? I'll try to create a way to inject short WRITE SAME commands using qemu next, but I thought I'd give you a chance to try it as well. --- diff --git a/block/blk-core.c b/block/blk-core.c index c580b0138a7f..c7068520794b 100644 --- a/block/blk-core.c +++ b/b

Re: [PATCH v2 7/8] drm: Use mode_valid() in atomic modeset

2017-05-10 Thread Daniel Vetter
On Wed, May 10, 2017 at 09:38:00PM +0530, Archit Taneja wrote: > > > On 5/9/2017 10:30 PM, Jose Abreu wrote: > > This patches makes use of the new mode_valid() callbacks introduced > > previously to validate the full video pipeline when modesetting. > > > > This calls the connector->mode_valid()

Re: [PATCH 2/3] livepatch/rcu: Warn when system consistency is broken in RCU code

2017-05-10 Thread Josh Poimboeuf
On Wed, May 10, 2017 at 06:04:23PM +0200, Petr Mladek wrote: > On Tue 2017-05-09 11:18:35, Josh Poimboeuf wrote: > > if (in_nmi()) > > rcu_nmi_enter(); /* in case we're called before nmi_enter() */ > > This does not work as expected. in_nmi() is implemented as > > (preempt_c

Re: [PATCH] irq_bcm2836: Send event when onlining sleeping cores

2017-05-10 Thread Florian Fainelli
On 05/10/2017 10:15 AM, Marc Zyngier wrote: > On 10/05/17 17:21, Florian Fainelli wrote: >> On 05/10/2017 03:31 AM, Phil Elwell wrote: >>> On 10/05/2017 11:09, Marc Zyngier wrote: On 10/05/17 10:05, Phil Elwell wrote: > On 10/05/2017 09:55, Marc Zyngier wrote: >> On Wed, May 10 2017 at

[PATCH 0/3] S390-DASD: Fine-tuning for some function implementations

2017-05-10 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 10 May 2017 19:43:21 +0200 A few update suggestions were taken into account from static source code analysis. Markus Elfring (3): Adjust buffer output in dasd_hosts_print() Fix typos in two comment lines Adjust six checks for null pointers drivers/s390/blo

Re: [v3 0/9] parallelized "struct page" zeroing

2017-05-10 Thread David Miller
From: Matthew Wilcox Date: Wed, 10 May 2017 10:17:03 -0700 > On Wed, May 10, 2017 at 11:19:43AM -0400, David Miller wrote: >> From: Michal Hocko >> Date: Wed, 10 May 2017 16:57:26 +0200 >> >> > Have you measured that? I do not think it would be super hard to >> > measure. I would be quite surpr

[PATCH 1/3] s390/dasd: Adjust buffer output in dasd_hosts_print()

2017-05-10 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 10 May 2017 18:52:28 +0200 * Use a special format string specification for the desired output of the array "pgid" into a sequence. This issue was detected by using the Coccinelle software. * Delete the local variable "j" and a call of the function "seq_puts"

cleanup UUID types

2017-05-10 Thread Christoph Hellwig
Hi all, this series, which is a combined effort from Amir, Andy and me introduces new uuid_t and guid_t type names that are less confusing than the existing types, adds new helpers for them and starts switching the fs code over to it. Andy has additional patches on top to convert many of the user

[PATCH 03/16] uuid: rename uuid types

2017-05-10 Thread Christoph Hellwig
Our "little endian" UUID really is a Wintel GUID, so rename it and its helpers such (guid_t). The big endian UUID is the only true one, so give it the name uuid_t. The uuid_le and uuid_be names are retained for, but will hopefully go away soon. Also remove the existing typedef in XFS that's now

[PATCH 2/3] s390/dasd: Fix typos in two comment lines

2017-05-10 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 10 May 2017 19:19:19 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The script “checkpatch.pl” pointed information out like the following. CHECK: '…' may be misspelled - perhaps '…'? Thus fix two descriptions. Sig

[PATCH 09/16] md: namespace private helper names

2017-05-10 Thread Christoph Hellwig
From: Amir Goldstein The md private helper uuid_equal() collides with a generic helper of the same name. Rename the md private helper to md_uuid_equal() and do the same for md_sb_equal(). Cc: Shaohua Li Signed-off-by: Amir Goldstein Signed-off-by: Christoph Hellwig --- drivers/md/md.c | 8 +

[PATCH 07/16] uuid: remove struct uuid_v1

2017-05-10 Thread Christoph Hellwig
Unused now. Signed-off-by: Christoph Hellwig --- include/linux/uuid.h | 24 1 file changed, 24 deletions(-) diff --git a/include/linux/uuid.h b/include/linux/uuid.h index af669f317780..28a5a894b926 100644 --- a/include/linux/uuid.h +++ b/include/linux/uuid.h @@ -19,30 +

Re: [PATCH] irq_bcm2836: Send event when onlining sleeping cores

2017-05-10 Thread Eric Anholt
Florian Fainelli writes: > On 05/10/2017 03:31 AM, Phil Elwell wrote: >> On 10/05/2017 11:09, Marc Zyngier wrote: >>> On 10/05/17 10:05, Phil Elwell wrote: On 10/05/2017 09:55, Marc Zyngier wrote: > On Wed, May 10 2017 at 9:27:10 am BST, Phil Elwell > wrote: >> On 10/05/2017 0

[PATCH 11/16] uuid: hoist uuid_is_null() helper from libnvdimm

2017-05-10 Thread Christoph Hellwig
From: Amir Goldstein Hoist the libnvdimm helper as an inline helper to linux/uuid.h using an auxiliary const variable uuid_null in lib/uuid.c. [hch: also add the guid variant. Both do the same but I'd like to keep casts to a minimum] The common helper uses the new abstract type uuid_t * instea

[PATCH 15/16] ima/policy: switch to use uuid_t

2017-05-10 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- security/integrity/ima/ima_policy.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/security/integrity/ima/ima_policy.c b/security/integrity/ima/ima_policy.c index 49fbc3e8f012..da3e7d50e0d7 100644 --- a/security/integrity/ima/

[PATCH 16/16] fs: switch ->s_uuid to uuid_t

2017-05-10 Thread Christoph Hellwig
For some file systems we still memcpy into it, but in various places this already allows us to use the proper uuid helpers. More to come.. Signed-off-by: Christoph Hellwig --- drivers/xen/tmem.c | 6 +++--- fs/ext4/super.c | 2 +- fs/f2fs/super.c

[PATCH 3/3] s390/dasd: Adjust six checks for null pointers

2017-05-10 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 10 May 2017 19:29:17 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The script “checkpatch.pl” pointed information out like the following. Comparison to NULL could be written … Thus fix the affected source code pla

[PATCH 14/16] block: remove blk_part_pack_uuid

2017-05-10 Thread Christoph Hellwig
This helper was only used by IMA of all things, which would get spurious errors if CONFIG_BLOCK is disabled. Just opencode the call there. Signed-off-by: Christoph Hellwig [andy: correctly handle error returns from uuid_to_bin] Signed-off-by: Andy Shevchenko --- security/integrity/ima/ima_poli

[PATCH 12/16] xfs: use the common helper uuid_is_null()

2017-05-10 Thread Christoph Hellwig
From: Amir Goldstein Use the common helper uuid_is_null() and remove the xfs specific helper uuid_is_nil(). The common helper does not check for the NULL pointer value as xfs helper did, but xfs code never calls the helper with a pointer that can be NULL. Conform comments and warning strings to

[PATCH 10/16] uuid: hoist helpers uuid_equal() and uuid_copy() from xfs

2017-05-10 Thread Christoph Hellwig
From: Amir Goldstein These helper are used to compare and copy two uuid_t type objects. Signed-off-by: Amir Goldstein [hch: also provide the respective guid_ versions] Signed-off-by: Christoph Hellwig --- fs/xfs/uuid.c| 6 -- fs/xfs/uuid.h| 7 --- include/linux/uuid.

[PATCH 13/16] block: remove blk_part_pack_uuid

2017-05-10 Thread Christoph Hellwig
This helper was only used by IMA of all things, which would get spurious errors if CONFIG_BLOCK is disabled. Just opencode the call there. Signed-off-by: Christoph Hellwig --- include/linux/genhd.h | 11 --- security/integrity/ima/ima_policy.c | 6 ++ 2 files changed,

[PATCH 04/16] uuid: don't export guid_index and uuid_index

2017-05-10 Thread Christoph Hellwig
These are only used in uuid.c and vsprintf.c and aren't something modules should use directly. Signed-off-by: Christoph Hellwig --- lib/uuid.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/uuid.c b/lib/uuid.c index f80dc63f6ca8..003bf6823003 100644 --- a/lib/uuid.c +++ b/lib/uuid.c @@

[PATCH 06/16] afs: switch to use uuid_t and uuid_gen

2017-05-10 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- fs/afs/cmservice.c | 46 +++--- fs/afs/internal.h | 2 +- fs/afs/main.c | 4 ++-- 3 files changed, 26 insertions(+), 26 deletions(-) diff --git a/fs/afs/cmservice.c b/fs/afs/cmservice.c index 3062cceb5c2a..d4e77

[PATCH 08/16] xfs: remove uuid_getnodeuniq and xfs_uu_t

2017-05-10 Thread Christoph Hellwig
Directly use the v1 intepretation of uuid_t instead. Signed-off-by: Christoph Hellwig --- fs/xfs/uuid.c | 25 - fs/xfs/uuid.h | 1 - fs/xfs/xfs_mount.c | 6 +- 3 files changed, 5 insertions(+), 27 deletions(-) diff --git a/fs/xfs/uuid.c b/fs/xfs/uuid.c in

[PATCH 05/16] uuid: add the v1 layout to uuid_t

2017-05-10 Thread Christoph Hellwig
Turn the content of uuid_t into a union and add the fields for the v1 interpretation to it. Signed-off-by: Christoph Hellwig --- include/uapi/linux/uuid.h | 29 - 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/include/uapi/linux/uuid.h b/include/uapi/li

[PATCH 01/16] xfs: use uuid_copy() helper to abstract uuid_t

2017-05-10 Thread Christoph Hellwig
From: Amir Goldstein uuid_t definition is about to change. Signed-off-by: Amir Goldstein Signed-off-by: Christoph Hellwig --- fs/xfs/xfs_inode_item.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/fs/xfs/xfs_inode_item.c b/fs/xfs/xfs_inode_item.c index 08cb7d1a4a3

[PATCH 02/16] xfs: use uuid_be to implement the uuid_t type

2017-05-10 Thread Christoph Hellwig
Use the generic Linux definition to implement our UUID type, this will allow using more generic infrastructure in the future. Signed-off-by: Christoph Hellwig --- fs/xfs/uuid.h | 4 fs/xfs/xfs_linux.h | 3 +++ 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/fs/xfs/uuid.h

Re: [PATCH 14/16] block: remove blk_part_pack_uuid

2017-05-10 Thread Christoph Hellwig
On Wed, May 10, 2017 at 08:02:12PM +0200, Christoph Hellwig wrote: > This helper was only used by IMA of all things, which would get spurious > errors if CONFIG_BLOCK is disabled. Just opencode the call there. > > Signed-off-by: Christoph Hellwig > [andy: correctly handle error returns from uuid

Re: [PATCHv3 0/2] arm64: fix hotplug rwsem boot fallout

2017-05-10 Thread Mark Rutland
d the arm64 part, and is happy for this to go via tip [1]. > > I've tested this atop of the tip smp/hotplug branch, and with the arm64 > for-next/core branch merged in, which git handles automatically. In both > cases, > it builds cleanly and boots fine on Juno R1. As a heads

Re: [PATCH 7/7] DWARF: add the config option

2017-05-10 Thread Linus Torvalds
On Wed, May 10, 2017 at 12:39 AM, Jiri Slaby wrote: > > Every SUSE user has been using this for almost a decade and we are not > about to switch to FP for performance reasons as noted by Jiri Kosina. The whole "not about to switch on frame pointers" argument is bogus. Lots of people don't have f

Re: [PATCH] drm/vc4: Fix resource leak in 'vc4_get_hang_state_ioctl()' in error handling path

2017-05-10 Thread Eric Anholt
Christophe JAILLET writes: > If one 'drm_gem_handle_create()' fails, we leak somes handles and some > memory. > > In order to fix it: > - move the 'free(bo_state)' at the end of the function in the error > handling path. This has the side effect to also try to free it if the > first 'kc

Re: [PATCH v6 19/23] drivers/fsi: Add GPIO based FSI master

2017-05-10 Thread Christopher Bostic
On 5/10/17 2:30 AM, Joel Stanley wrote: Hi Chris, On Tue, Apr 11, 2017 at 5:17 AM, Christopher Bostic wrote: From: Chris Bostic Implement a FSI master using GPIO. Will generate FSI protocol for read and write commands to particular addresses. Sends master command and waits for and decod

Re: [PATCH] mark most percpu globals as __ro_after_init

2017-05-10 Thread Kees Cook
On Wed, May 10, 2017 at 10:36 AM, Daniel Micay wrote: > Moving pcpu_base_addr to this section comes from PaX where it's part of > KERNEXEC. This extends it to the rest of the globals only written by the > init code. > > Signed-off-by: Daniel Micay Excellent, thanks! Acked-by: Kees Cook -Kees

Re: [PATCH 03/16] uuid: rename uuid types

2017-05-10 Thread David Howells
Christoph Hellwig wrote: > -#define NULL_UUID_LE \ > - UUID_LE(0x, 0x, 0x, 0x00, 0x00, 0x00, 0x00, \ > - 0x00, 0x00, 0x00, 0x00) > +#define NULL_GUID\ > + GU

Re: [PATCH] mark protection_map as __ro_after_init

2017-05-10 Thread Kees Cook
On Wed, May 10, 2017 at 10:44 AM, Daniel Micay wrote: > The protection map is only modified by per-arch init code so it can be > protected from writes after the init code runs. > > This change was extracted from PaX where it's part of KERNEXEC. > > Signed-off-by: Daniel Micay Thanks! Acked-by:

Re: [PATCH v6 18/23] drivers/fsi: Document FSI master sysfs files in ABI

2017-05-10 Thread Christopher Bostic
On 5/10/17 2:30 AM, Joel Stanley wrote: On Tue, Apr 11, 2017 at 5:17 AM, Christopher Bostic wrote: From: Chris Bostic Add info for sysfs scan file in Documentaiton ABI/testing You are missing documentation for the 'raw', 'term' and 'break' files. Hi Joel, Yes, I've made your suggested c

[PATCH v5 0/4] Certificate insertion support for x86 bzImages

2017-05-10 Thread Mehmet Kayaalp
These patches add support for modifying the reserved space for extra certificates in a compressed bzImage in x86. This allows separating the system keyring certificate from the kernel build process. After the kernel image is distributed, the insert-sys-cert script can be used to insert the certific

[PATCH v5 1/4] KEYS: Insert incompressible bytes to reserve space in bzImage

2017-05-10 Thread Mehmet Kayaalp
Include a random filled binary in vmlinux at the space reserved with CONFIG_SYSTEM_EXTRA_CERTIFICATE. This results in an uncompressed reserved area inside the bzImage as well, so that it can be replaced with an actual certificate later (after the bzImage is distributed). The bzImage contains a str

Re: [PATCH 05/16] uuid: add the v1 layout to uuid_t

2017-05-10 Thread David Howells
Christoph Hellwig wrote: > Turn the content of uuid_t into a union and add the fields for the v1 > interpretation to it. > > Signed-off-by: Christoph Hellwig Reviewed-by: David Howells

Re: [GIT PULL] TEE driver infrastructure and OP-TEE drivers

2017-05-10 Thread Linus Torvalds
On Tue, May 9, 2017 at 12:05 PM, Arnd Bergmann wrote: > > For a detailed history of the patch series, see > https://lkml.org/lkml/2017/3/10/1277 Oh well, that wasn't very useful right now.. Linus

[PATCH v5 4/4] KEYS: Print insert-sys-cert information to stdout instead of stderr

2017-05-10 Thread Mehmet Kayaalp
Detailed INFO output should go to stdout instead of stderr. Signed-off-by: Mehmet Kayaalp --- scripts/insert-sys-cert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/insert-sys-cert.c b/scripts/insert-sys-cert.c index b9793aa..990907d 100644 --- a/scripts/insert-sys

[PATCH v5 2/4] KEYS: Add ELF class-independent certificate insertion support

2017-05-10 Thread Mehmet Kayaalp
Use ELF class-independent GElf API for processing the kernel binary. This patch adds support for compiling the script for 64-bit and the kernel for 32-bit (e.g. make ARCH=i386 on x86-64). Signed-off-by: Mehmet Kayaalp --- scripts/Makefile | 1 + scripts/insert-sys-cert.c | 215 +++

[PATCH v5 3/4] KEYS: Support for inserting a certificate into x86 bzImage

2017-05-10 Thread Mehmet Kayaalp
The config option SYSTEM_EXTRA_CERTIFICATE (introduced in c4c361059585) reserves space in vmlinux file, which is compressed to create the self-extracting bzImage. This patch adds the capability of extracting the vmlinux, inserting the certificate, and repackaging the result into a bzImage. It only

Re: [PATCH 06/16] afs: switch to use uuid_t and uuid_gen

2017-05-10 Thread David Howells
Christoph Hellwig wrote: > Signed-off-by: Christoph Hellwig Reviewed-by: David Howells

Re: [PATCH] irq_bcm2836: Send event when onlining sleeping cores

2017-05-10 Thread Marc Zyngier
On Wed, May 10 2017 at 7:02:44 pm BST, Eric Anholt wrote: > Florian Fainelli writes: > >> On 05/10/2017 03:31 AM, Phil Elwell wrote: >>> On 10/05/2017 11:09, Marc Zyngier wrote: On 10/05/17 10:05, Phil Elwell wrote: > On 10/05/2017 09:55, Marc Zyngier wrote: >> On Wed, May 10 2017 a

Re: [PATCH v6 09/23] drivers/fsi: scan slaves & register devices

2017-05-10 Thread Christopher Bostic
On 5/10/17 2:30 AM, Joel Stanley wrote: On Tue, Apr 11, 2017 at 5:16 AM, Christopher Bostic wrote: From: Jeremy Kerr Now that we have fsi_slave devices, scan each for endpoints, and register them on the fsi bus. Includes contributions from Chris Bostic Signed-off-by: Jeremy Kerr Signed-

[PATCH 2/2] iommu/vt-d: Helper function to query if a pasid has any active users

2017-05-10 Thread Ashok Raj
From: CQ Tang A driver would need to know if there are any active references to a a PASID before cleaning up its resources. This function helps check if there are any active users of a PASID before it can perform any recovery on that device. To: Joerg Roedel To: linux-kernel@vger.kernel.org To:

Re: [PATCH v2 3/3] tpm: vtpm_proxy: Add ioctl to request locality prepended to command

2017-05-10 Thread Jarkko Sakkinen
On Wed, May 10, 2017 at 09:20:14AM -0400, Stefan Berger wrote: > On 05/10/2017 08:47 AM, Jarkko Sakkinen wrote: > > On Tue, May 09, 2017 at 11:49:05AM -0400, Stefan Berger wrote: > > > On 05/08/2017 07:43 PM, Jarkko Sakkinen wrote: > > > > On Thu, May 04, 2017 at 04:03:18PM -0400, Stefan Berger wro

Re: [PATCH v6 11/23] drivers/fsi: Add master unscan

2017-05-10 Thread Christopher Bostic
On 5/10/17 2:31 AM, Joel Stanley wrote: On Tue, Apr 11, 2017 at 5:16 AM, Christopher Bostic wrote: From: Chris Bostic Allow a master to undo a previous scan. Should a master scan a bus twice it will need to ensure it doesn't double register any previously detected device. Signed-off-by: C

Re: [PATCH v6 10/23] drivers/fsi: Add device read/write/peek API

2017-05-10 Thread Christopher Bostic
On 5/10/17 3:13 AM, Joel Stanley wrote: On Tue, Apr 11, 2017 at 5:16 AM, Christopher Bostic wrote: From: Jeremy Kerr This change introduces the fsi device API: simple read, write and peek accessors for the devices' address spaces. Includes contributions from Chris Bostic and Edward A. Jam

Re: [PATCH] efi/libstub: Indicate clang the relocation mode for arm64

2017-05-10 Thread Matthias Kaehlcke
Hoi Ard, El Wed, May 10, 2017 at 08:51:44AM +0100 Ard Biesheuvel ha dit: > On 9 May 2017 at 22:49, Matthias Kaehlcke wrote: > > El Tue, May 09, 2017 at 01:50:36PM -0700 Greg Hackmann ha dit: > > > >> On 05/09/2017 12:36 PM, Matthias Kaehlcke wrote: > >> >From: Greg Hackmann > >> > > >> >Without

[PATCH 2/2] iommu/vt-d: Helper function to query if a pasid has any active users

2017-05-10 Thread Ashok Raj
From: CQ Tang A driver would need to know if there are any active references to a a PASID before cleaning up its resources. This function helps check if there are any active users of a PASID before it can perform any recovery on that device. To: Joerg Roedel To: linux-kernel@vger.kernel.org To:

Re: [GIT PULL] TEE driver infrastructure and OP-TEE drivers

2017-05-10 Thread Linus Torvalds
On Tue, May 9, 2017 at 12:05 PM, Arnd Bergmann wrote: > > TEE driver infrastructure and OP-TEE drivers Another note: right now this adds a config question for TEE support, but the only actual TEE driver has a depends on HAVE_ARM_SMCCC on it. Until we get more TEE drivers, might I sugge

Re: [PATCH v4 3/5] soc: qcom: Introduce APCS IPC driver

2017-05-10 Thread Bjorn Andersson
On Tue 09 May 19:33 PDT 2017, Jassi Brar wrote: > On Wed, May 10, 2017 at 12:41 AM, Bjorn Andersson > wrote: > > On Tue 09 May 09:41 PDT 2017, Jassi Brar wrote: [..] > > The part where this piece of hardware differs from the other mailboxes > > is that TX is done as send_data() returns and in the

Re: [PATCH] efi/libstub: Indicate clang the relocation mode for arm64

2017-05-10 Thread Ard Biesheuvel
> On 10 May 2017, at 20:38, Matthias Kaehlcke wrote: > > Hoi Ard, > > El Wed, May 10, 2017 at 08:51:44AM +0100 Ard Biesheuvel ha dit: > >> On 9 May 2017 at 22:49, Matthias Kaehlcke wrote: >>> El Tue, May 09, 2017 at 01:50:36PM -0700 Greg Hackmann ha dit: >>> On 05/09/2017 12:36 PM, Mat

Re: [PATCH] libertas: Avoid reading past end of buffer

2017-05-10 Thread Kees Cook
On Tue, May 9, 2017 at 9:33 PM, Joe Perches wrote: > On Tue, 2017-05-09 at 16:23 -0700, Kees Cook wrote: >> Using memcpy() from a string that is shorter than the length copied means >> the destination buffer is being filled with arbitrary data from the kernel >> rodata segment. Instead, use strncp

Re: [PATCH 16/16] fs: switch ->s_uuid to uuid_t

2017-05-10 Thread Amir Goldstein
On Wed, May 10, 2017 at 9:02 PM, Christoph Hellwig wrote: > For some file systems we still memcpy into it, but in various places this > already allows us to use the proper uuid helpers. More to come.. > Signed-off-by: Christoph Hellwig > --- Series looks good! My main concern is that filesyste

[GIT PULL] nfsd changes for 4.12

2017-05-10 Thread J. Bruce Fields
Please pull git://linux-nfs.org/~bfields/linux.git tags/nfsd-4.12 Another RDMA update from Chuck Lever, and a bunch of miscellaneous bugfixes. --b. Ari Kauppi (1): nfsd: fix undefined behavior in nfsd4_layout_verify Chuck

Re: [GIT PULL] TEE driver infrastructure and OP-TEE drivers

2017-05-10 Thread Arnd Bergmann
On Wed, May 10, 2017 at 8:55 PM, Linus Torvalds wrote: > On Tue, May 9, 2017 at 12:05 PM, Arnd Bergmann wrote: > > https://lkml.org/lkml/2017/3/10/1277 > > Oh well, that wasn't very useful right now.. Hopefully it comes back eventually. For now, the same contents are also at https://lwn.net/Art

Re: [PATCH 03/16] uuid: rename uuid types

2017-05-10 Thread Amir Goldstein
On Wed, May 10, 2017 at 9:02 PM, Christoph Hellwig wrote: > Our "little endian" UUID really is a Wintel GUID, so rename it and its > helpers such (guid_t). The big endian UUID is the only true one, so > give it the name uuid_t. The uuid_le and uuid_be names are retained for, > but will hopefully

[PATCH v2 2/3] ARM: at91: pm: allow selecting standby and suspend modes

2017-05-10 Thread Alexandre Belloni
While we can only select between "standby" and "mem" states for power management, the atmel platforms can actually support more modes. For both standby and mem, allow selecting which mode will be used using the atmel.pm_modes kernel parameter. By default, keep the current modes. Signed-off-by: Al

[PATCH v2 3/3] ARM: at91: pm: fallback to slowclock when backup mode fails

2017-05-10 Thread Alexandre Belloni
If the backup sram allocation fails, ensure we can suspend by falling back to the usual slow clock mode. Signed-off-by: Alexandre Belloni Acked-by: Wenyou Yang --- arch/arm/mach-at91/pm.c | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/mach-at91/pm.c b/arch/arm/mach-at91/pm.c

Re: [PATCH] hwmon: (coretemp) Handle frozen hotplug state correctly

2017-05-10 Thread Tommi Rantala
2017-05-10 17:30 GMT+03:00 Thomas Gleixner : > The recent conversion to the hotplug state machine missed that the original > hotplug notifiers did not execute in the frozen state, which is used on > suspend on resume. > > This does not matter on single socket machines, but on multi socket systems >

[PATCH v2 1/3] ARM: at91: pm: Add sama5d2 backup mode

2017-05-10 Thread Alexandre Belloni
The sama5d2 has a mode were it is possible to cut power to the SoC while keeping the RAM in self refresh. Resuming from that mode needs support in the firmware/bootloader. Signed-off-by: Alexandre Belloni Acked-by: Wenyou Yang --- Changes in v2: - allow compilation on armv5 - factorize setup

Re: [PATCH] staging: typec: Fix sparse warnings about incorrect types

2017-05-10 Thread Guenter Roeck
On Wed, May 10, 2017 at 10:15 AM, Guru Das S wrote: > On 10 May 2017 at 08:23, Guenter Roeck wrote: > >> Please the patch into two parts, one per file; the required changes >> for endianness support in tcpci.c are much more complex. > > I will send out a patch for the two simple fixes - the use o

Re: [linux-sunxi] [PATCH v2 20/20] ARM: sun5i: a10s-olinuxino: Enable HDMI

2017-05-10 Thread Maxime Ripard
Hi, On Thu, May 04, 2017 at 04:05:18PM +0800, Chen-Yu Tsai wrote: > On Wed, May 3, 2017 at 7:59 PM, Maxime Ripard > wrote: > > The A10s Olinuxino has an HDMI connector. Make sure we can use it. > > > > Acked-by: Chen-Yu Tsai > > Signed-off-by: Maxime Ripard > > --- > > arch/arm/boot/dts/sun5i-

[PATCH] libertas: Avoid reading past end of buffer

2017-05-10 Thread Kees Cook
Using memcpy() from a string that is shorter than the length copied means the destination buffer is being filled with arbitrary data from the kernel rodata segment. Instead, redefine the stat strings to be ETH_GSTRING_LEN sizes, like other drivers. This lets us use a single memcpy that does not lea

Re: [PATCH] tinydrm: mipi-dbi: Adjust buffer output in mipi_dbi_debugfs_command_show()

2017-05-10 Thread Dan Carpenter
On Wed, May 10, 2017 at 05:15:33PM +0200, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 10 May 2017 17:03:20 +0200 > > * Use a special format string specification for the desired output of the > array "val" into a sequence. > > * Adjust two local variables accordingly. > > This

Re: [PATCH 1/3] s390/dasd: Adjust buffer output in dasd_hosts_print()

2017-05-10 Thread Dan Carpenter
On Wed, May 10, 2017 at 08:01:17PM +0200, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 10 May 2017 18:52:28 +0200 > > * Use a special format string specification for the desired output of the > array "pgid" into a sequence. > > This issue was detected by using the Coccinelle

[PATCH] net-procfs: Adjust buffer output in dev_mc_seq_show()

2017-05-10 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 10 May 2017 21:17:43 +0200 * Use a special format string specification for the desired output of the array "addr" into a sequence. This issue was detected by using the Coccinelle software. * Delete the local variable "i" and a call of the function "seq_putc"

pinctrl-sx150x.c broken in 4.11

2017-05-10 Thread Nikita Yushchenko
Hi Looks like recent pinctrl changes - possibly commit 99e4f67508e1 ("pinctrl: core: Use delayed work for hogs") - breaks pinctrl-sx150x driver in all setups where it has any pinctrl settings in device tree. AFAIU, pinctrl-sx150x is not a real pinctrl/pinmux driver, but it uses pinctrl subsystem

Re: Updating kernel.org cross compilers?

2017-05-10 Thread Arnd Bergmann
On Wed, May 10, 2017 at 3:40 PM, Segher Boessenkool wrote: > Hi Arnd, long time no see, > > On Wed, May 10, 2017 at 09:58:13AM +0200, Arnd Bergmann wrote: >> >> So in addition to GCC 7.1 I'd like to have at least GCC 6.3 around, >> >> which builds kernels without warnings today. >> > >> > If you d

(radeon?) WARNING: drivers/gpu/drm/drm_irq.c:1195 drm_vblank_put (v4.11-12441-g56868a4)

2017-05-10 Thread Tommi Rantala
Hi, I just tested v4.11-12441-g56868a4 on HP xw6600 with radeon graphics, and I'm seeing the following WARNING triggered constantly. I have not seen this earlier e.g. with the distro kernel 4.10.13-200.fc25.x86_64 $ lspci|grep -i amd 60:00.0 VGA compatible controller: Advanced Micro Devices, Inc

[GIT PULL] clk changes for v4.12

2017-05-10 Thread Stephen Boyd
The following changes since commit e7590308d17e578e47f298cc3fec359108341cb6: Merge tag 'sunxi-clk-fixes-for-4.11-2-bis' of https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux into clk-fixes (2017-04-17 11:04:12 -0700) are available in the git repository at: git://git.kernel.org/pub

Re: [patch 1/1] staging: speakup: flush tty buffers and ensure hardware flow control

2017-05-10 Thread Alan Cox
> + if (!(tmp_termios.c_cflag & CRTSCTS)) { > + tmp_termios.c_cflag |= CRTSCTS; > + ret = tty_set_termios(tty, &tmp_termios); > + if (ret) > + pr_warn("speakup: Failed to set hardware flow > control\n"); You should check the tty c_cflag

Re: [PATCH] efi/libstub: Indicate clang the relocation mode for arm64

2017-05-10 Thread Matthias Kaehlcke
El Wed, May 10, 2017 at 09:05:28PM +0200 Ard Biesheuvel ha dit: > > > > On 10 May 2017, at 20:38, Matthias Kaehlcke wrote: > > > > Hoi Ard, > > > > El Wed, May 10, 2017 at 08:51:44AM +0100 Ard Biesheuvel ha dit: > > > >> On 9 May 2017 at 22:49, Matthias Kaehlcke wrote: > >>> El Tue, May 09,

Re: [PATCH v2] scsi: sg: don't return bogus Sg_requests

2017-05-10 Thread Douglas Gilbert
On 2017-05-10 03:53 AM, Johannes Thumshirn wrote: If the list search in sg_get_rq_mark() fails to find a valid request, we return a bogus element. This then can later lead to a GPF in sg_remove_scat(). So don't return bogus Sg_requests in sg_get_rq_mark() but NULL in case the list search doesn't

Re: [PATCH] kexec_file: Adjust type of kexec_purgatory

2017-05-10 Thread Kees Cook
On Tue, May 9, 2017 at 5:15 PM, Eric W. Biederman wrote: > Kees Cook writes: >> kernel/kexec_file.c:33:13: warning: array ‘kexec_purgatory’ assumed to >> have one element >> char __weak kexec_purgatory[]; >> ^~~ > > Nor does "void *kexec_purgatory" as that says at the ad

Re: [RFC GIT PULL, v2] RCU changes for v4.12

2017-05-10 Thread Ingo Molnar
* Linus Torvalds wrote: > On Tue, May 9, 2017 at 12:26 AM, Ingo Molnar wrote: > > > > The main changes are: > > So I've pulled it now (although it is showing signs of semantic > conflicts, so I'll have to look at those), but I've got two requests, > one for Ingo, one for Paul. > > Ingo: pleas

Re: [RFC GIT PULL, v2] RCU changes for v4.12

2017-05-10 Thread Paul E. McKenney
On Wed, May 10, 2017 at 10:27:24AM -0700, Linus Torvalds wrote: [ . . . ] > parts, namely how the RCU changes apparently mess with the DRM > selftest changes. I am testing a merge with current linus/master, and I looked through the commits in -next selected by: gitk v4.11.. --no-merges

Re: [RFC GIT PULL, v2] RCU changes for v4.12

2017-05-10 Thread Linus Torvalds
On Wed, May 10, 2017 at 12:54 PM, Ingo Molnar wrote: > > Yeah, you are right and sorry about that - I have removed the patch > generation from my pull request scripts, so it shouldn't happen in > the future. I do have to say, that during the later -rc series in particular when people send me smal

[PATCH v2] kexec_file: Adjust declaration of kexec_purgatory

2017-05-10 Thread Kees Cook
Defining kexec_purgatory as a zero-length char array upsets compile time size checking. Since this is built on a per-arch basis, define it as an unsized char array (like is done for other similar things, e.g. linker sections). This silences the warning generated by the future CONFIG_FORTIFY_SOURCE,

Re: [GIT PULL] Please pull NFS client fixes for 4.12

2017-05-10 Thread Linus Torvalds
On Wed, May 10, 2017 at 9:47 AM, Trond Myklebust wrote: > > Features: > - Removal of the unmaintained and unused OSD pNFS layout > - Cleanup and removal of lots of unnecessary dprintk()s > - Cleanup and removal of some memory failure paths now that > .. > 56 files changed, 949 insertions(+), 2960

Re: [PATCHv3 0/2] arm64: fix hotplug rwsem boot fallout

2017-05-10 Thread Thomas Gleixner
On Wed, 10 May 2017, Mark Rutland wrote: > As a heads-up, with next-20170510 I'm seeing a warning here that I don't > recall seeing when I tested the above, and I'm not sure how to fix it: > > [0.180998] CPU features: enabling workaround for ARM err

Re: [PATCH] hwmon: (coretemp) Handle frozen hotplug state correctly

2017-05-10 Thread Guenter Roeck
On Wed, May 10, 2017 at 04:30:12PM +0200, Thomas Gleixner wrote: > The recent conversion to the hotplug state machine missed that the original > hotplug notifiers did not execute in the frozen state, which is used on > suspend on resume. > > This does not matter on single socket machines, but on m

Re: [PATCH] hwmon: (coretemp) Handle frozen hotplug state correctly

2017-05-10 Thread Guenter Roeck
On Wed, May 10, 2017 at 10:16:33PM +0300, Tommi Rantala wrote: > 2017-05-10 17:30 GMT+03:00 Thomas Gleixner : > > The recent conversion to the hotplug state machine missed that the original > > hotplug notifiers did not execute in the frozen state, which is used on > > suspend on resume. > > > > Th

[PATCH v2] sched/fair: WARN and refuse to set buddy when !se->on_rq

2017-05-10 Thread Daniel Axtens
If we set a next or last buddy for a se that is not on_rq, we will end up taking a NULL pointer dereference in wakeup_preempt_entity via pick_next_task_fair. Detect when we would be about to do that, throw a warning and then refuse to actually set it. This has been suggested at least twice[0][1]:

Re: [PATCH v2] kexec_file: Adjust declaration of kexec_purgatory

2017-05-10 Thread Eric W. Biederman
Kees Cook writes: > Defining kexec_purgatory as a zero-length char array upsets compile > time size checking. Since this is built on a per-arch basis, define > it as an unsized char array (like is done for other similar things, > e.g. linker sections). This silences the warning generated by the f

Re: [RFC GIT PULL, v2] RCU changes for v4.12

2017-05-10 Thread Linus Torvalds
On Wed, May 10, 2017 at 12:54 PM, Paul E. McKenney wrote: > > I am testing a merge with current linus/master, and I looked through > the commits in -next selected by: > > gitk v4.11.. --no-merges --all-match --grep=drm --grep=selftest > > I didn't find anything obvious. If the tests compl

Re: [PATCH v6 0/2] security: tty: make TIOCSTI ioctl require CAP_SYS_ADMIN

2017-05-10 Thread Alan Cox
On Fri, 5 May 2017 19:20:16 -0400 Matt Brown wrote: > This patchset introduces the tiocsti_restrict sysctl, whose default is > controlled via CONFIG_SECURITY_TIOCSTI_RESTRICT. When activated, this > control restricts all TIOCSTI ioctl calls from non CAP_SYS_ADMIN users. > > This patch was inspi

[PATCH] of/unittest: Delete an error message for a failed memory allocation in three functions

2017-05-10 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 10 May 2017 22:20:52 +0200 Omit an extra message for a memory allocation failure in these functions. This issue was detected by using the Coccinelle software. Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf Si

Re: [PATCH 4/6] tty: serial: lpuart: add imx7ulp support

2017-05-10 Thread Stefan Agner
On 2017-05-09 23:14, Dong Aisheng wrote: > Hi Stefan, > > On Wed, May 10, 2017 at 12:10 PM, Stefan Agner wrote: >> On 2017-05-09 00:50, Dong Aisheng wrote: >>> The lpuart of imx7ulp is basically the same as ls1021a. It's also >>> 32 bit width register, but unlike ls1021a, it's little endian. >>>

[PATCH v3] LSM: Enable multiple calls to security_add_hooks() for the same LSM

2017-05-10 Thread Mickaël Salaün
The commit d69dece5f5b6 ("LSM: Add /sys/kernel/security/lsm") extend security_add_hooks() with a new parameter to register the LSM name, which may be useful to make the list of currently loaded LSM available to userspace. However, there is no clean way for an LSM to split its hook declarations into

<    1   2   3   4   5   6   7   >