[PATCH 21/44] powerpc: implement ->mapping_error

2017-06-08 Thread Christoph Hellwig
DMA_ERROR_CODE is going to go away, so don't rely on it. Instead define a ->mapping_error method for all IOMMU based dma operation instances. The direct ops don't ever return an error and don't need a ->mapping_error method. Signed-off-by: Christoph Hellwig --- arch/powerpc/include/asm/dma-map

[PATCH 23/44] x86/calgary: implement ->mapping_error

2017-06-08 Thread Christoph Hellwig
DMA_ERROR_CODE is going to go away, so don't rely on it. Signed-off-by: Christoph Hellwig --- arch/x86/kernel/pci-calgary_64.c | 24 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/arch/x86/kernel/pci-calgary_64.c b/arch/x86/kernel/pci-calgary_64.c index f

[PATCH 19/44] s390: implement ->mapping_error

2017-06-08 Thread Christoph Hellwig
s390 can also use noop_dma_ops, and while that currently does not return errors it will so in the future. Implementing the mapping_error method is the proper way to have per-ops error conditions. Signed-off-by: Christoph Hellwig --- arch/s390/include/asm/dma-mapping.h | 2 -- arch/s390/pci/pci

[PATCH 20/44] sparc: implement ->mapping_error

2017-06-08 Thread Christoph Hellwig
DMA_ERROR_CODE is going to go away, so don't rely on it. Signed-off-by: Christoph Hellwig --- arch/sparc/include/asm/dma-mapping.h | 2 -- arch/sparc/kernel/iommu.c| 12 +--- arch/sparc/kernel/iommu_common.h | 2 ++ arch/sparc/kernel/pci_sun4v.c| 14 ++--

Re: [PATCH v2 1/2] KVM: cpuid: Fix read/write out-of-bounds vulnerability in cpuid emulation

2017-06-08 Thread Paolo Bonzini
On 08/06/2017 10:22, Wanpeng Li wrote: > From: Wanpeng Li > > If "i" is the last element in the vcpu->arch.cpuid_entries[] array, it > potentially can be exploited the vulnerability. this will out-of-bounds > read and write the unused memory in host OS. > > As Paolo pointed: > >>> /* when

Re: [PATCH] mfd: Add driver for RAVE Supervisory Processor

2017-06-08 Thread kbuild test robot
Hi Andrey, [auto build test WARNING on ljones-mfd/for-mfd-next] [also build test WARNING on v4.12-rc4 next-20170608] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Andrey-Smirnov/mfd-Add-driver

Re: [PATCH 11/16] powerpc: vio_cmo: use dev_groups and not dev_attrs for bus_type

2017-06-08 Thread Greg Kroah-Hartman
On Thu, Jun 08, 2017 at 11:12:10PM +1000, Michael Ellerman wrote: > Greg Kroah-Hartman writes: > > > The dev_attrs field has long been "depreciated" and is finally being > > removed, so move the driver to use the "correct" dev_groups field > > instead for struct bus_type. > > > > Cc: Benjamin Her

[PATCH 16/44] arm64: remove DMA_ERROR_CODE

2017-06-08 Thread Christoph Hellwig
The dma alloc interface returns an error by return NULL, and the mapping interfaces rely on the mapping_error method, which the dummy ops already implement correctly. Thus remove the DMA_ERROR_CODE define. Signed-off-by: Christoph Hellwig --- arch/arm64/include/asm/dma-mapping.h | 1 - arch/arm

[PATCH 15/44] xtensa: remove DMA_ERROR_CODE

2017-06-08 Thread Christoph Hellwig
xtensa already implements the mapping_error method for its only dma_map_ops instance. Signed-off-by: Christoph Hellwig --- arch/xtensa/include/asm/dma-mapping.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/xtensa/include/asm/dma-mapping.h b/arch/xtensa/include/asm/dma-mapping.h ind

[PATCH 10/44] ia64: remove DMA_ERROR_CODE

2017-06-08 Thread Christoph Hellwig
All ia64 dma_mapping_ops instances already have a mapping_error member. Signed-off-by: Christoph Hellwig --- arch/ia64/include/asm/dma-mapping.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/ia64/include/asm/dma-mapping.h b/arch/ia64/include/asm/dma-mapping.h index 73ec3c6f4cfe..3ce

[PATCH 14/44] sh: remove DMA_ERROR_CODE

2017-06-08 Thread Christoph Hellwig
sh does not return errors for dma_map_page. Signed-off-by: Christoph Hellwig --- arch/sh/include/asm/dma-mapping.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/sh/include/asm/dma-mapping.h b/arch/sh/include/asm/dma-mapping.h index d99008af5f73..9b06be07db4d 100644 --- a/arch/sh/inc

[PATCH 11/44] m32r: remove DMA_ERROR_CODE

2017-06-08 Thread Christoph Hellwig
dma-noop is the only dma_mapping_ops instance for m32r and does not return errors. Signed-off-by: Christoph Hellwig --- arch/m32r/include/asm/dma-mapping.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/m32r/include/asm/dma-mapping.h b/arch/m32r/include/asm/dma-mapping.h index c01d9f

[PATCH 12/44] microblaze: remove DMA_ERROR_CODE

2017-06-08 Thread Christoph Hellwig
microblaze does not return errors for dma_map_page. Signed-off-by: Christoph Hellwig --- arch/microblaze/include/asm/dma-mapping.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/microblaze/include/asm/dma-mapping.h b/arch/microblaze/include/asm/dma-mapping.h index 3fad5e722a66..e15cd

[PATCH 13/44] openrisc: remove DMA_ERROR_CODE

2017-06-08 Thread Christoph Hellwig
openrisc does not return errors for dma_map_page. Signed-off-by: Christoph Hellwig --- arch/openrisc/include/asm/dma-mapping.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/openrisc/include/asm/dma-mapping.h b/arch/openrisc/include/asm/dma-mapping.h index 0c0075f17145..a4ea139c2ef9

[PATCH 08/44] xen-swiotlb: implement ->mapping_error

2017-06-08 Thread Christoph Hellwig
DMA_ERROR_CODE is going to go away, so don't rely on it. Signed-off-by: Christoph Hellwig --- drivers/xen/swiotlb-xen.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/xen/swiotlb-xen.c b/drivers/xen/swiotlb-xen.c index a0f006daab48..c3a04b2d7532 100644

[ANNOUNCE] 3.12.74-rt99

2017-06-08 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 3.12.74-rt99 stable release. This release is just an update to the new stable 3.12.74 version and no RT specific changes have been made. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt

Re: [PATCH RFC 1/2] thermal/cpu idle cooling: Introduce cpu idle cooling driver

2017-06-08 Thread Vincent Guittot
On 8 June 2017 at 14:59, Jean Wangtao wrote: > > Hi Vincent, > > 2017年6月8日 下午3:19,"Vincent Guittot" 写道: > > Hi Kevin, > > On 5 June 2017 at 11:07, Tao Wang wrote: >> cpu idle cooling driver performs synchronized idle injection across >> all cpu in same cluster, offers a new method to cooling down

[ANNOUNCE] 3.18.55-rt61

2017-06-08 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 3.18.55-rt61 stable release. This release is just an update to the new stable 3.18.55 version and no RT specific changes have been made. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt

[PATCH 09/44] c6x: remove DMA_ERROR_CODE

2017-06-08 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- arch/c6x/include/asm/dma-mapping.h | 5 - 1 file changed, 5 deletions(-) diff --git a/arch/c6x/include/asm/dma-mapping.h b/arch/c6x/include/asm/dma-mapping.h index aca9f755e4f8..05daf1038111 100644 --- a/arch/c6x/include/asm/dma-mapping.h +++ b/arch/c6x/

[ANNOUNCE] 4.4.70-rt83

2017-06-08 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 4.4.70-rt83 stable release. This release is just an update to the new stable 4.4.70 version and no RT specific changes have been made. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.g

Re: [PATCH 3/3] bitmap: Use memcmp optimisation in more situations

2017-06-08 Thread Rasmus Villemoes
On 8 June 2017 at 14:31, Andy Shevchenko wrote: > On Thu, Jun 8, 2017 at 5:55 AM, Matthew Wilcox wrote: >> We only need to know if the bottom 3 bits are 0 to apply this optimisation. >> For example, if we have a user which does this: >> >> nbits = 8; >> if (argle) >>

Re: [rfc PATCH -next 0/5] rbtree: Cache leftmost node internally

2017-06-08 Thread Peter Zijlstra
On Mon, May 29, 2017 at 07:09:35PM -0700, Davidlohr Bueso wrote: > Davidlohr Bueso (5): > rbtree: Cache leftmost node internally > sched/fair: Replace cfs_rq->rb_leftmost > locking/rtmutex: Replace top-waiter and pi_waiters leftmost caching > sched/deadline: Replace earliest deadline and ru

Re: [PATCH v6 10/34] x86, x86/mm, x86/xen, olpc: Use __va() against just the physical address in cr3

2017-06-08 Thread Tom Lendacky
On 6/7/2017 5:06 PM, Boris Ostrovsky wrote: On 06/07/2017 03:14 PM, Tom Lendacky wrote: The cr3 register entry can contain the SME encryption bit that indicates the PGD is encrypted. The encryption bit should not be used when creating a virtual address for the PGD table. Create a new function,

[PATCH 06/44] iommu/dma: don't rely on DMA_ERROR_CODE

2017-06-08 Thread Christoph Hellwig
DMA_ERROR_CODE is not a public API and will go away soon. dma dma-iommu driver already implements a proper ->mapping_error method, so it's only using the value internally. Add a new local define using the value that arm64 which is the only current user of dma-iommu. Signed-off-by: Christoph Hell

[PATCH 05/44] drm/armada: don't abuse DMA_ERROR_CODE

2017-06-08 Thread Christoph Hellwig
dev_addr isn't even a dma_addr_t, and DMA_ERROR_CODE has never been a valid driver API. Add a bool mapped flag instead. Signed-off-by: Christoph Hellwig --- drivers/gpu/drm/armada/armada_fb.c | 2 +- drivers/gpu/drm/armada/armada_gem.c | 5 ++--- drivers/gpu/drm/armada/armada_gem.h | 1 + 3 fi

Re: [PATCH] arm: aspeed: Add clock-names property to timer node

2017-06-08 Thread Daniel Lezcano
On Wed, Jun 07, 2017 at 04:29:50PM +0200, Arnd Bergmann wrote: > On Wed, Jun 7, 2017 at 2:52 PM, Daniel Lezcano > wrote: > > On Tue, Jun 06, 2017 at 11:41:11AM +0200, Arnd Bergmann wrote: > >> On Mon, Jun 5, 2017 at 10:59 AM, Joel Stanley wrote: > >> > On Mon, Jun 5, 2017 at 5:18 PM, Andrew Jeffe

Re: [PATCH] irqchip/mips-gic: mark count and compare accessors notrace

2017-06-08 Thread Marc Zyngier
On Thu, Jun 08 2017 at 3:06:23 pm BST, Marcin Nowakowski wrote: > gic_read_count(), gic_write_compare() and gic_write_cpu_compare() are > often used in a sequence to update the compare register with a count > value increased by a small offset. > With small delta values used to update the compare

Re: kernel BUG at kernel/locking/rtmutex.c:1027

2017-06-08 Thread Steven Rostedt
On Thu, 8 Jun 2017 07:01:08 + Feng Feng24 Liu wrote: > Hi, T Makphaibulchoke & Steve > I found that you discuss about " kernel BUG at > kernel/locking/rtmutex.c:997 " at > https://groups.google.com/forum/#!topic/fa.linux.kernel/aV2peeXs71E > > Could you help to giv

[PATCH 03/44] dmaengine: ioat: don't use DMA_ERROR_CODE

2017-06-08 Thread Christoph Hellwig
DMA_ERROR_CODE is not a public API and will go away. Instead properly unwind based on the loop counter. Signed-off-by: Christoph Hellwig --- drivers/dma/ioat/init.c | 24 +++- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/drivers/dma/ioat/init.c b/drivers/dm

clean up and modularize arch dma_mapping interface

2017-06-08 Thread Christoph Hellwig
Hi all, for a while we have a generic implementation of the dma mapping routines that call into per-arch or per-device operations. But right now there still are various bits in the interfaces where don't clearly operate on these ops. This series tries to clean up a lot of those (but not all yet,

[PATCH 01/44] firmware/ivc: use dma_mapping_error

2017-06-08 Thread Christoph Hellwig
DMA_ERROR_CODE is not supposed to be used by drivers. Signed-off-by: Christoph Hellwig --- drivers/firmware/tegra/ivc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/firmware/tegra/ivc.c b/drivers/firmware/tegra/ivc.c index 29ecfd815320..a01461d63f68 100644 ---

[PATCH 01/23] security/keys: add CONFIG_KEYS_COMPAT to Kconfig

2017-06-08 Thread David Howells
From: Bilal Amarni CONFIG_KEYS_COMPAT is defined in arch-specific Kconfigs and is missing for several 64-bit architectures : mips, parisc, tile. At the moment and for those architectures, calling in 32-bit userspace the keyctl syscall would return an ENOSYS error. This patch moves the CONFIG_KE

[PATCH 03/23] KEYS: fix refcount_inc() on zero

2017-06-08 Thread David Howells
From: Mark Rutland If a key's refcount is dropped to zero between key_lookup() peeking at the refcount and subsequently attempting to increment it, refcount_inc() will see a zero refcount. Here, refcount_inc() will WARN_ONCE(), and will *not* increment the refcount, which will remain zero. Once

[PATCH 06/23] KEYS: put keyring if install_session_keyring_to_cred() fails

2017-06-08 Thread David Howells
From: Eric Biggers In join_session_keyring(), if install_session_keyring_to_cred() were to fail, we would leak the keyring reference, just like in the bug fixed by commit 23567fd052a9 ("KEYS: Fix keyring ref leak in join_session_keyring()"). Fortunately this cannot happen currently, but we reall

[PATCH 00/23] KEYS: Fixes

2017-06-08 Thread David Howells
Tagged thusly: git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git keys-fixes-20170608 David --- Bilal Amarni (1): security/keys: add CONFIG_KEYS_COMPAT to Kconfig Dan Carpenter (1): X.509: Fix error code in x509_cert_parse() Davidlohr Bueso (1): security:

[PATCH 04/23] X.509: Fix error code in x509_cert_parse()

2017-06-08 Thread David Howells
From: Dan Carpenter We forgot to set the error code on this path so it could result in returning NULL which leads to a NULL dereference. Fixes: db6c43bd2132 ("crypto: KEYS: convert public key and digsig asym to the akcipher api") Signed-off-by: Dan Carpenter Signed-off-by: David Howells ---

Re: [PATCH 01/10] sched/deadline: track the active utilization

2017-06-08 Thread Juri Lelli
On 08/06/17 09:36, Steven Rostedt wrote: > On Thu, 8 Jun 2017 10:05:55 +0100 > Juri Lelli wrote: > > > On 08/06/17 10:43, Luca Abeni wrote: > > > On Thu, 8 Jun 2017 10:31:25 +0200 > > > Ingo Molnar wrote: > > > > > > > * luca abeni wrote: > > > > > > > > > From: Luca Abeni > > > > > > >

[PATCH 05/23] KEYS: Delete an error message for a failed memory allocation in get_derived_key()

2017-06-08 Thread David Howells
From: Markus Elfring Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf Signed-off-by: Markus Elfring Signed-off-

Re: [RFC][PATCH 5/5] powerpc: Remove SYNC from _switch

2017-06-08 Thread Peter Zijlstra
On Thu, Jun 08, 2017 at 11:18:13PM +1000, Nicholas Piggin wrote: > I guess I see your point... okay, will constrain the comment to powerpc > context switch and primitives code. Any fundamental change to such > scheduler barriers I guess would require at least a glance over arch > switch code :) Ju

Re: mm, something wring in page_lock_anon_vma_read()?

2017-06-08 Thread Xishi Qiu
On 2017/5/23 17:33, Vlastimil Babka wrote: > On 05/23/2017 11:21 AM, zhong jiang wrote: >> On 2017/5/23 0:51, Vlastimil Babka wrote: >>> On 05/20/2017 05:01 AM, zhong jiang wrote: On 2017/5/20 10:40, Hugh Dickins wrote: > On Sat, 20 May 2017, Xishi Qiu wrote: >> Here is a bug report f

[PATCH 10/23] KEYS: encrypted: use constant-time HMAC comparison

2017-06-08 Thread David Howells
From: Eric Biggers MACs should, in general, be compared using crypto_memneq() to prevent timing attacks. Cc: Mimi Zohar Cc: Herbert Xu Signed-off-by: Eric Biggers Signed-off-by: David Howells --- security/keys/encrypted-keys/encrypted.c |5 +++-- 1 file changed, 3 insertions(+), 2 dele

[PATCH v1 21/25] rtc: tegra: Switch to use %pt

2017-06-08 Thread Andy Shevchenko
Use %pt instead of open coded variant to print content of struct rtc_time in human readable format. Cc: Thierry Reding Cc: Jonathan Hunter Signed-off-by: Andy Shevchenko --- drivers/rtc/rtc-tegra.c | 30 +++--- 1 file changed, 3 insertions(+), 27 deletions(-) diff --gi

[PATCH v1 02/25] lib/vsprintf: Make decspec global

2017-06-08 Thread Andy Shevchenko
There are places where default specification to print decimal numbers is in use. Make it global and convert existing users. Signed-off-by: Andy Shevchenko --- lib/vsprintf.c | 21 + 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/lib/vsprintf.c b/lib/vsprintf.

[PATCH 15/23] KEYS: encrypted: sanitize all key material

2017-06-08 Thread David Howells
From: Eric Biggers For keys of type "encrypted", consistently zero sensitive key material before freeing it. This was already being done for the decrypted payloads of encrypted keys, but not for the master key and the keys derived from the master key. Out of an abundance of caution and because

[PATCH v1 17/25] rtc: rx6110: Switch to use %pt

2017-06-08 Thread Andy Shevchenko
Use %pt instead of open coded variant to print content of struct rtc_time in human readable format. Signed-off-by: Andy Shevchenko --- drivers/rtc/rtc-rx6110.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/rtc/rtc-rx6110.c b/drivers/rtc/rtc-rx6110.c ind

[PATCH v1 16/25] rtc: rk808: Switch to use %pt

2017-06-08 Thread Andy Shevchenko
Use %pt instead of open coded variant to print content of struct rtc_time in human readable format. Signed-off-by: Andy Shevchenko --- drivers/rtc/rtc-rk808.c | 20 ++-- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/drivers/rtc/rtc-rk808.c b/drivers/rtc/rtc-rk808

[PATCH 18/23] KEYS: DH: forbid using digest_null as the KDF hash

2017-06-08 Thread David Howells
From: Eric Biggers Requesting "digest_null" in the keyctl_kdf_params caused an infinite loop in kdf_ctr() because the "null" hash has a digest size of 0. Fix it by rejecting hash algorithms with a digest size of 0. Signed-off-by: Eric Biggers Signed-off-by: David Howells Acked-by: Stephan Mue

[PATCH v1 12/25] rtc: pcf50633: Switch to use %pt

2017-06-08 Thread Andy Shevchenko
Use %pt instead of open coded variant to print content of struct rtc_time in human readable format. Signed-off-by: Andy Shevchenko --- drivers/rtc/rtc-pcf50633.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/rtc/rtc-pcf50633.c b/drivers/rtc/rtc-pcf50633.c in

[PATCH 23/23] KEYS: Convert KEYCTL_DH_COMPUTE to use the crypto KPP API

2017-06-08 Thread David Howells
From: Mat Martineau The initial Diffie-Hellman computation made direct use of the MPI library because the crypto module did not support DH at the time. Now that KPP is implemented, KEYCTL_DH_COMPUTE should use it to get rid of duplicate code and leverage possible hardware acceleration. This fixe

[PATCH 21/23] KEYS: DH: add __user annotations to keyctl_kdf_params

2017-06-08 Thread David Howells
From: Eric Biggers Signed-off-by: Eric Biggers Signed-off-by: David Howells Acked-by: Stephan Mueller --- include/uapi/linux/keyctl.h |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/uapi/linux/keyctl.h b/include/uapi/linux/keyctl.h index 201c6644b237..ef16d

[PATCH 20/23] KEYS: DH: ensure the KDF counter is properly aligned

2017-06-08 Thread David Howells
From: Eric Biggers Accessing a 'u8[4]' through a '__be32 *' violates alignment rules. Just make the counter a __be32 instead. Signed-off-by: Eric Biggers Signed-off-by: David Howells Acked-by: Stephan Mueller --- security/keys/dh.c | 16 +++- 1 file changed, 3 insertions(+),

[PATCH 22/23] crypto : asymmetric_keys : verify_pefile:zero memory content before freeing

2017-06-08 Thread David Howells
From: Loganaden Velvindron Signed-off-by: Loganaden Velvindron Signed-off-by: Yasir Auleear Signed-off-by: David Howells --- crypto/asymmetric_keys/verify_pefile.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/asymmetric_keys/verify_pefile.c b/crypto/asym

[PATCH 19/23] KEYS: DH: don't feed uninitialized "otherinfo" into KDF

2017-06-08 Thread David Howells
From: Eric Biggers If userspace called KEYCTL_DH_COMPUTE with kdf_params containing NULL otherinfo but nonzero otherinfolen, the kernel would allocate a buffer for the otherinfo, then feed it into the KDF without initializing it. Fix this by always doing the copy from userspace (which will fail w

Re: [PATCH v2] kbuild: switch to thin archives

2017-06-08 Thread kbuild test robot
Hi Nicholas, [auto build test ERROR on linus/master] [also build test ERROR on v4.12-rc4 next-20170608] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Nicholas-Piggin/kbuild-switch-to-thin

Re: [PATCH] pinctrl: meson-gxl: add tsin_a pins

2017-06-08 Thread Andreas Färber
Am 08.06.2017 um 15:09 schrieb Jerome Brunet: > Add Tsin A pins to bank DV and X. > We don't have a driver for the tsin yet but since the tsin A pinmux is > enabled by default at boot time, declaring this pinmux is required to > properly operate on GPIOX. > > Without this change, GPIOX 8, 9, 10 an

[PATCH 17/23] KEYS: sanitize key structs before freeing

2017-06-08 Thread David Howells
From: Eric Biggers While a 'struct key' itself normally does not contain sensitive information, Documentation/security/keys.txt actually encourages this: "Having a payload is not required; and the payload can, in fact, just be a value stored in the struct key itself." In case someone

[PATCH v1 25/25] PM: Switch to use %pt

2017-06-08 Thread Andy Shevchenko
Use %pt instead of open coded variant to print content of struct rtc_time in human readable format. Cc: "Rafael J. Wysocki" Cc: linux...@vger.kernel.org Signed-off-by: Andy Shevchenko --- drivers/base/power/trace.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/b

[PATCH 16/23] KEYS: trusted: sanitize all key material

2017-06-08 Thread David Howells
From: Eric Biggers As the previous patch did for encrypted-keys, zero sensitive any potentially sensitive data related to the "trusted" key type before it is freed. Notably, we were not zeroing the tpm_buf structures in which the actual key is stored for TPM seal and unseal, nor were we zeroing

[PATCH v1 20/25] rtc: s5m: Switch to use %pt

2017-06-08 Thread Andy Shevchenko
Use %pt instead of open coded variant to print content of struct rtc_time in human readable format. Cc: Krzysztof Kozlowski Cc: Bartlomiej Zolnierkiewicz Signed-off-by: Andy Shevchenko --- drivers/rtc/rtc-s5m.c | 27 ++- 1 file changed, 6 insertions(+), 21 deletions(-)

Re: [PATCH] cpsw: cpts: enable HWTSTAMP_FILTER_PTP_V1_L4_EVENT filter

2017-06-08 Thread David Miller
These two patches do not apply cleanly to my net GIT tree, please respin.

Re: [PATCH v3 2/3] arm64: dts: mt7622: add basic nodes to the mt7622.dtsi file

2017-06-08 Thread Matthias Brugger
On 31/05/17 19:29, sean.w...@mediatek.com wrote: From: Sean Wang add basic nodes into the mt7622.dtsi for the system bring-up which includes ARM CPU, GIC, timer, MediaTek UART, SYSIRQ and one reserved memory region for ATF. Signed-off-by: Sean Wang --- arch/arm64/boot/dts/mediatek/mt7622.

[PATCH 14/23] KEYS: user_defined: sanitize key payloads

2017-06-08 Thread David Howells
From: Eric Biggers Zero the payloads of user and logon keys before freeing them. This prevents sensitive key material from being kept around in the slab caches after a key is released. Signed-off-by: Eric Biggers Signed-off-by: David Howells --- security/keys/user_defined.c | 16 +

[PATCH v1 05/25] ds1302: Switch to use %pt

2017-06-08 Thread Andy Shevchenko
Use %pt instead of open coded variant to print content of struct rtc_time in human readable format. Cc: Arnd Bergmann Signed-off-by: Andy Shevchenko --- drivers/char/ds1302.c | 38 ++ 1 file changed, 10 insertions(+), 28 deletions(-) diff --git a/drivers/cha

Re: [PATCH] pinctrl: meson-gxl: add tsin_a pins

2017-06-08 Thread Jerome Brunet
On Thu, 2017-06-08 at 15:49 +0200, Andreas Färber wrote: > Am 08.06.2017 um 15:09 schrieb Jerome Brunet: > > Add Tsin A pins to bank DV and X. > > We don't have a driver for the tsin yet but since the tsin A pinmux is > > enabled by default at boot time, declaring this pinmux is required to > > pro

[PATCH 12/23] KEYS: fix freeing uninitialized memory in key_update()

2017-06-08 Thread David Howells
From: Eric Biggers key_update() freed the key_preparsed_payload even if it was not initialized first. This would cause a crash if userspace called keyctl_update() on a key with type like "asymmetric" that has a ->preparse() method but not an ->update() method. Possibly it could even be triggere

[PATCH v1 18/25] rtc: rx8025: Switch to use %pt

2017-06-08 Thread Andy Shevchenko
Use %pt instead of open coded variant to print content of struct rtc_time in human readable format. Signed-off-by: Andy Shevchenko --- drivers/rtc/rtc-rx8025.c | 19 --- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/drivers/rtc/rtc-rx8025.c b/drivers/rtc/rtc-rx80

[PATCH 11/23] KEYS: fix dereferencing NULL payload with nonzero length

2017-06-08 Thread David Howells
From: Eric Biggers sys_add_key() and the KEYCTL_UPDATE operation of sys_keyctl() allowed a NULL payload with nonzero length to be passed to the key type's ->preparse(), ->instantiate(), and/or ->update() methods. Various key types including asymmetric, cifs.idmap, cifs.spnego, and pkcs7_test did

[PATCH v1 24/25] kdb: Switch to use %pt

2017-06-08 Thread Andy Shevchenko
Use %pt instead of open coded variant to print content of struct rtc_time in human readable format. Cc: Jason Wessel Cc: Ingo Molnar Signed-off-by: Andy Shevchenko --- kernel/debug/kdb/kdb_main.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/kernel/debug/kdb/kdb_mai

[PATCH v1 04/25] lib/vsprintf: Print time and date in human readable format via %pt

2017-06-08 Thread Andy Shevchenko
There are users which print time and date represented by content of struct rtc_time in human readable format. Instead of open coding that each time introduce %pt[dt][rv] specifier. Cc: Arnd Bergmann Cc: Bartlomiej Zolnierkiewicz Cc: Dmitry Torokhov Cc: Geert Uytterhoeven Cc: Guan Xuetao Cc:

[PATCH 13/23] KEYS: sanitize add_key() and keyctl() key payloads

2017-06-08 Thread David Howells
From: Eric Biggers Before returning from add_key() or one of the keyctl() commands that takes in a key payload, zero the temporary buffer that was allocated to hold the key payload copied from userspace. This may contain sensitive key material that should not be kept around in the slab caches.

[PATCH v1 23/25] Input: hp_sdc_rtc - Switch to use %pt

2017-06-08 Thread Andy Shevchenko
Use %pt instead of open coded variant to print content of struct rtc_time in human readable format. Cc: Dmitry Torokhov Signed-off-by: Andy Shevchenko --- drivers/input/misc/hp_sdc_rtc.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/input/misc/hp_sdc_rtc.c

[PATCH 09/23] KEYS: encrypted: fix race causing incorrect HMAC calculations

2017-06-08 Thread David Howells
From: Eric Biggers The encrypted-keys module was using a single global HMAC transform, which could be rekeyed by multiple threads concurrently operating on different keys, causing incorrect HMAC values to be calculated. Fix this by allocating a new HMAC transform whenever we need to calculate a

[PATCH v1 07/25] rtc: at91rm9200: Switch to use %pt

2017-06-08 Thread Andy Shevchenko
Use %pt instead of open coded variant to print content of struct rtc_time in human readable format. Signed-off-by: Andy Shevchenko --- drivers/rtc/rtc-at91rm9200.c | 16 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/drivers/rtc/rtc-at91rm9200.c b/drivers/rtc/rtc

[PATCH v1 14/25] rtc: pm8xxx: Switch to use %pt

2017-06-08 Thread Andy Shevchenko
Use %pt instead of open coded variant to print content of struct rtc_time in human readable format. Signed-off-by: Andy Shevchenko --- drivers/rtc/rtc-pm8xxx.c | 16 +--- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/drivers/rtc/rtc-pm8xxx.c b/drivers/rtc/rtc-pm8xxx.

[PATCH] clk: meson: gxbb: add all clk81 parents

2017-06-08 Thread Jerome Brunet
Remove the FIXME on clk81 mux and add all the documented parents Signed-off-by: Jerome Brunet --- drivers/clk/meson/gxbb.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/clk/meson/gxbb.c b/drivers/clk/meson/gxbb.c index 36c0e455437e..a897ea45327c 100644

[PATCH v1 22/25] mk68/mac: Switch to use %pt

2017-06-08 Thread Andy Shevchenko
Use %pt instead of open coded variant to print content of struct rtc_time in human readable format. Cc: Geert Uytterhoeven Signed-off-by: Andy Shevchenko --- arch/m68k/mac/misc.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/arch/m68k/mac/misc.c b/arch/m68k/mac/mis

[PATCH v1 19/25] rtc: s3c: Switch to use %pt

2017-06-08 Thread Andy Shevchenko
Use %pt instead of open coded variant to print content of struct rtc_time in human readable format. Signed-off-by: Andy Shevchenko --- drivers/rtc/rtc-s3c.c | 21 + 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/drivers/rtc/rtc-s3c.c b/drivers/rtc/rtc-s3c.c in

[PATCH v1 03/25] lib/vsprintf: Make strspec global

2017-06-08 Thread Andy Shevchenko
There is at least one new user is coming where default specification to print strings is in use. Make it global. Signed-off-by: Andy Shevchenko --- lib/vsprintf.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/vsprintf.c b/lib/vsprintf.c index d43dbf6b862e..

[PATCH v1 13/25] rtc: pic32: Switch to use %pt

2017-06-08 Thread Andy Shevchenko
Use %pt instead of open coded variant to print content of struct rtc_time in human readable format. Signed-off-by: Andy Shevchenko --- drivers/rtc/rtc-pic32.c | 18 -- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/drivers/rtc/rtc-pic32.c b/drivers/rtc/rtc-pic32.c

Re: [PATCH 6/7] [media] soc_camera: rcar_vin: use proper name for the R-Car SoC

2017-06-08 Thread Wolfram Sang
> Btw, I'm seeing only patches 6 and 7 here at media ML (and patchwork). > As those are trivial changes, I'll just apply what I have. Perfect, thanks! signature.asc Description: PGP signature

Re: [PATCH] pinctrl: meson-gxl: add tsin_a pins

2017-06-08 Thread Andreas Färber
Am 08.06.2017 um 15:53 schrieb Jerome Brunet: > On Thu, 2017-06-08 at 15:49 +0200, Andreas Färber wrote: >> Am 08.06.2017 um 15:09 schrieb Jerome Brunet: >>> Add Tsin A pins to bank DV and X. >>> We don't have a driver for the tsin yet but since the tsin A pinmux is >>> enabled by default at boot t

[PATCH 07/23] KEYS: encrypted: avoid encrypting/decrypting stack buffers

2017-06-08 Thread David Howells
From: Eric Biggers Since v4.9, the crypto API cannot (normally) be used to encrypt/decrypt stack buffers because the stack may be virtually mapped. Fix this for the padding buffers in encrypted-keys by using ZERO_PAGE for the encryption padding and by allocating a temporary heap buffer for the d

[PATCH v1 11/25] rtc: mcp795: Switch to use %pt

2017-06-08 Thread Andy Shevchenko
Use %pt instead of open coded variant to print content of struct rtc_time in human readable format. Signed-off-by: Andy Shevchenko --- drivers/rtc/rtc-mcp795.c | 18 ++ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/drivers/rtc/rtc-mcp795.c b/drivers/rtc/rtc-mcp79

[PATCH v1 01/25] lib/vsprintf: Remove useless NULL checks

2017-06-08 Thread Andy Shevchenko
The pointer can't be NULL since it's first what has been done in the pointer(). Remove useless checks. Note when we print clock name or rate it is safe in case !CONFIG_HAVE_CLK. Signed-off-by: Andy Shevchenko --- lib/vsprintf.c | 11 --- 1 file changed, 11 deletions(-) diff --git a/li

[PATCH v1 15/25] rtc: puv3: Switch to use %pt

2017-06-08 Thread Andy Shevchenko
Use %pt instead of open coded variant to print content of struct rtc_time in human readable format. Guan Xuetao Signed-off-by: Andy Shevchenko --- drivers/rtc/rtc-puv3.c | 18 -- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/drivers/rtc/rtc-puv3.c b/drivers/rtc/

Re: [GIT PULL 0/7] perf/urgent callchain fixes

2017-06-08 Thread Arnaldo Carvalho de Melo
Em Thu, Jun 08, 2017 at 03:15:32PM +0200, Milian Wolff escreveu: > On Wednesday, May 24, 2017 8:21:22 AM CEST Namhyung Kim wrote: > > Hi Ingo, > > > > Please consider pulling the perf tooling changes below. Build tested > > on Ubuntu, Fedora and Archlinux. I found a problem during `perf test` >

Re: mm, something wring in page_lock_anon_vma_read()?

2017-06-08 Thread Vlastimil Babka
On 06/08/2017 03:44 PM, Xishi Qiu wrote: > On 2017/5/23 17:33, Vlastimil Babka wrote: > >> On 05/23/2017 11:21 AM, zhong jiang wrote: >>> On 2017/5/23 0:51, Vlastimil Babka wrote: On 05/20/2017 05:01 AM, zhong jiang wrote: > On 2017/5/20 10:40, Hugh Dickins wrote: >> On Sat, 20 May 20

Re: [PATCH 06/44] iommu/dma: don't rely on DMA_ERROR_CODE

2017-06-08 Thread Robin Murphy
Hi Christoph, On 08/06/17 14:25, Christoph Hellwig wrote: > DMA_ERROR_CODE is not a public API and will go away soon. dma dma-iommu > driver already implements a proper ->mapping_error method, so it's only > using the value internally. Add a new local define using the value > that arm64 which is

[PATCH v1 06/25] rtc: Switch to use %pt

2017-06-08 Thread Andy Shevchenko
Use %pt instead of open coded variant to print content of struct rtc_time in human readable format. Arnd Bergmann Signed-off-by: Andy Shevchenko --- drivers/char/rtc.c | 7 +++ drivers/rtc/hctosys.c | 8 ++-- drivers/rtc/interface.c | 8 ++-- drivers/rtc/rtc-proc.c | 36 +

Re: [PATCHv7 03/14] x86/boot/efi: Cleanup initialization of GDT entries

2017-06-08 Thread Matt Fleming
On Tue, 06 Jun, at 02:31:22PM, Kirill A. Shutemov wrote: > This is preparation for following patches without changing semantics of the > code. > > Signed-off-by: Kirill A. Shutemov > Cc: Matt Fleming > --- > arch/x86/boot/compressed/eboot.c | 39 +-- > 1 file

Re: [PATCH] xen: avoid deadlock in xenbus driver

2017-06-08 Thread Juergen Gross
On 07/06/17 18:24, Juergen Gross wrote: > There has been a report about a deadlock in the xenbus driver: > > [ 247.979498] == > [ 247.985688] WARNING: possible circular locking dependency detected > [ 247.991882] 4.12.0-rc4-00022-gc4b25c0 #575

Re: [PATCH v1 06/25] rtc: Switch to use %pt

2017-06-08 Thread Greg Kroah-Hartman
On Thu, Jun 08, 2017 at 04:47:52PM +0300, Andy Shevchenko wrote: > Use %pt instead of open coded variant to print content of > struct rtc_time in human readable format. > > Arnd Bergmann Cc: ? > Signed-off-by: Andy Shevchenko Acked-by: Greg Kroah-Hartman

Re: [PATCH v1 05/25] ds1302: Switch to use %pt

2017-06-08 Thread Greg Kroah-Hartman
On Thu, Jun 08, 2017 at 04:47:51PM +0300, Andy Shevchenko wrote: > Use %pt instead of open coded variant to print content of > struct rtc_time in human readable format. > > Cc: Arnd Bergmann > Signed-off-by: Andy Shevchenko Acked-by: Greg Kroah-Hartman

[PATCH v1 09/25] rtc: m41t80: Switch to use %pt

2017-06-08 Thread Andy Shevchenko
Use %pt instead of open coded variant to print content of struct rtc_time in human readable format. Signed-off-by: Andy Shevchenko --- drivers/rtc/rtc-m41t80.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/rtc/rtc-m41t80.c b/drivers/rtc/rtc-m41t80.c index 8940e

[PATCH v1 08/25] rtc: at91sam9: Switch to use %pt

2017-06-08 Thread Andy Shevchenko
Use %pt instead of open coded variant to print content of struct rtc_time in human readable format. Signed-off-by: Andy Shevchenko --- drivers/rtc/rtc-at91sam9.c | 16 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/drivers/rtc/rtc-at91sam9.c b/drivers/rtc/rtc-at9

[PATCH 08/23] KEYS: encrypted: fix buffer overread in valid_master_desc()

2017-06-08 Thread David Howells
From: Eric Biggers With the 'encrypted' key type it was possible for userspace to provide a data blob ending with a master key description shorter than expected, e.g. 'keyctl add encrypted desc "new x" @s'. When validating such a master key description, validate_master_desc() could read beyond t

[PATCH v1 10/25] rtc: m48t59: Switch to use %pt

2017-06-08 Thread Andy Shevchenko
Use %pt instead of open coded variant to print content of struct rtc_time in human readable format. Signed-off-by: Andy Shevchenko --- drivers/rtc/rtc-m48t59.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/rtc/rtc-m48t59.c b/drivers/rtc/rtc-m48t59.c index d9

Re: [PATCH 16/44] arm64: remove DMA_ERROR_CODE

2017-06-08 Thread Robin Murphy
On 08/06/17 14:25, Christoph Hellwig wrote: > The dma alloc interface returns an error by return NULL, and the > mapping interfaces rely on the mapping_error method, which the dummy > ops already implement correctly. > > Thus remove the DMA_ERROR_CODE define. Reviewed-by: Robin Murphy > Signed-

Re: CPU_BIG_ENDIAN in generic code

2017-06-08 Thread David Miller
From: Arnd Bergmann Date: Thu, 8 Jun 2017 10:01:59 +0200 > I would also suggest adding a sanity check like Hmm, but this will kill the build for non-fixed endian architectures won't it?

Re: [PATCH 2/2] sched/deadline: Don't return invalid cpu in cpudl_maximum_cpu()

2017-06-08 Thread Juri Lelli
On 07/06/17 09:14, Byungchul Park wrote: > On Wed, Jun 07, 2017 at 08:42:24AM +0900, Byungchul Park wrote: > > On Tue, Jun 06, 2017 at 04:12:25PM +0100, Juri Lelli wrote: > > > Hi, > > > > > > On 02/06/17 16:31, Byungchul Park wrote: [...] > > > > > > > > static inline int cpudl_maximum_cpu(s

<    1   2   3   4   5   6   7   8   9   10   >