[PATCH 0/3] Ceph: Adjustments for some function implementations

2017-08-20 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 20 Aug 2017 20:32:10 +0200 Three update suggestions were taken into account from static source code analysis. Markus Elfring (3): Delete an error message for a failed memory allocation in __get_or_create_frag() Delete an unnecessary return statement in update

[PATCH 1/3] ceph: Delete an error message for a failed memory allocation in __get_or_create_frag()

2017-08-20 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 20 Aug 2017 20:00:09 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- fs/ceph/inode.c | 7 ++- 1 file changed, 2 insertions(+), 5 deleti

[PATCH 2/3] ceph: Delete an unnecessary return statement in update_dentry_lease()

2017-08-20 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 20 Aug 2017 20:08:25 +0200 The script "checkpatch.pl" pointed information out like the following. WARNING: void function return statements are not generally useful Thus remove such a statement in the affected function. Signed-off-by: Markus Elfring --- fs/ceph

[PATCH 3/3] ceph: Adjust 36 checks for null pointers

2017-08-20 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 20 Aug 2017 20:22:02 +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

Re: [PATCH] ieee802154: ca8210: Fix a potential NULL pointer dereference

2017-08-20 Thread Marcel Holtmann
Hi Christophe, > 'spi' is known to be NULL, so we dereference a NULL pointer here. > Use 'pr_crit()' instead of 'dev_crit()' to report the message. > > Signed-off-by: Christophe JAILLET > --- > drivers/net/ieee802154/ca8210.c | 5 + > 1 file changed, 1 insertion(+), 4 deletions(-) patch has

[no subject]

2017-08-20 Thread Jagan Teki
unsubscribe git

Re: Charitable Organization.

2017-08-20 Thread Sarah Edward J
**`** Glad to write to you this message, I wish to seek for your sincere help in setting up a charitable organization to help the less privileged people, the elderly people and also vulnerable people under your care, I want to use my late husband wealth of $3,000,000.00 to set up a charity found

[Patch v2 07/19] CIFS: SMBD: Destroy SMBDirect session on shutdown or umount

2017-08-20 Thread Long Li
From: Long Li Finally, when CIFS wants to umount, do a proper shutdown on transport. Signed-off-by: Long Li --- fs/cifs/connect.c | 8 1 file changed, 8 insertions(+) diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index b337ca7..f65950f 100644 --- a/fs/cifs/connect.c +++ b/fs/cif

[Patch v2 09/19] CIFS: SMBD: Read data from SMBDirect

2017-08-20 Thread Long Li
From: Long Li With SMBDirect connected, use it for receiving data via RDMA recv. Signed-off-by: Long Li --- fs/cifs/connect.c | 8 1 file changed, 8 insertions(+) diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index f65950f..9b0da7f 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/co

[Patch v2 02/19] CIFS: SMBD: Add SMBDirect protocol and transport constants

2017-08-20 Thread Long Li
From: Long Li To prepare for protocol implementation, add constants and user-configurable values in the protocol. Signed-off-by: Long Li --- fs/cifs/smbdirect.c | 78 + fs/cifs/smbdirect.h | 20 ++ 2 files changed, 98 insertions(

[Patch v2 05/19] CIFS: SMBD: Connect to SMBDirect session

2017-08-20 Thread Long Li
From: Long Li When "rdma" is specified in the mount option, CIFS attempts to connect to SMBDirect instead of TCP socket. Signed-off-by: Long Li --- fs/cifs/connect.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index d5d0ecd..309eb

[Patch v2 18/19] CIFS: SMBD: Deregister memory when finishing SMB READ

2017-08-20 Thread Long Li
From: Long Li When SMB READ is finished, deregister the memory regions if RDMA write is used for this SMB READ. smbd_deregister_mr may need to do local invalidation and sleep, if server remote invalidation is not used. Signed-off-by: Long Li --- fs/cifs/smb2pdu.c | 10 ++ 1 file chan

[Patch v2 12/19] CIFS: SMBD: Fix the definition for SMB2_CHANNEL_RDMA_V1_INVALIDATE

2017-08-20 Thread Long Li
From: Long Li The channel value for requesting server remote invalidating local memory registration should be 0x0002 Signed-off-by: Long Li --- fs/cifs/smb2pdu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/cifs/smb2pdu.h b/fs/cifs/smb2pdu.h index 18700fd..0417a3

[Patch v2 10/19] CIFS: SMBD: Send data through SMBDirect

2017-08-20 Thread Long Li
From: Long Li With SMBDirect connected, use it for sending data via RDMA send. Signed-off-by: Long Li --- fs/cifs/transport.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/fs/cifs/transport.c b/fs/cifs/transport.c index ba62aaf..bddb699 100644 --- a/fs/cifs/transport.c +++ b/fs/ci

[Patch v2 16/19] CIFS: SMBD: Read correct returned data length for RDMA write (SMB READ) I/O

2017-08-20 Thread Long Li
From: Long Li When RDMA write is used for SMB READ, the returned data length is returned in DataRemaining in the response packet. Reading it properly by adding a parameter to specifiy where the returned data length is. Signed-off-by: Long Li --- fs/cifs/cifsglob.h | 10 -- fs/cifs/ci

[Patch v2 14/19] CIFS: SMBD: Deregister memory when finishing SMB write

2017-08-20 Thread Long Li
From: Long Li On write I/O finish, deregister the memory region if this was for a RDMA read. The call to smbd_deregister_mr will do local invalidation and possibly wait, if remote invalidate is not used. Signed-off-by: Long Li --- fs/cifs/smb2pdu.c | 12 1 file changed, 12 inser

[Patch v2 19/19] CIFS: SMBD: Add SMBDirect debug counters

2017-08-20 Thread Long Li
From: Long Li Export SMBDirect debug counters to /proc/fs/cifs/DebugData, for debugging and troubleshooting. Signed-off-by: Long Li --- fs/cifs/cifs_debug.c | 46 ++ 1 file changed, 46 insertions(+) diff --git a/fs/cifs/cifs_debug.c b/fs/cifs/cifs_

[Patch v2 17/19] CIFS: SMBD: Implement SMB READ via RDMA write through memory registration

2017-08-20 Thread Long Li
From: Long Li If I/O size is larger than rdma_readwrite_threshold, use RDMA write for SMB READ by specifying channel SMB2_CHANNEL_RDMA_V1 or SMB2_CHANNEL_RDMA_V1_INVALIDATE, depending on SMB dialect used. When RDMA write is used, there is no need to read from the transport for incoming payload

[Patch v2 13/19] CIFS: SMBD: Use registered memory RDMA read for SMB write

2017-08-20 Thread Long Li
From: Long Li When sending I/O, if size is larger than rdma_readwrite_threshold we prepare to send SMB WRITE packet for a RDMA read via memory registration. The actual I/O is done out-of-the-band, so modify the relevant fields in the packet accordingly. Signed-off-by: Long Li --- fs/cifs/sm

[Patch v2 15/19] CIFS: SMBD: Add parameter rdata to smb2_new_read_req

2017-08-20 Thread Long Li
From: Long Li When we assemble the SMB READ packet header, we need to know the I/O layout if this request is to use a RDMA write. rdata has all the information we need for memory registration. Add rdata to smb2_new_read_req. Signed-off-by: Long Li --- fs/cifs/smb2pdu.c | 14 +- 1

[Patch v2 11/19] CIFS: SMBD: Define memory registration for I/O data

2017-08-20 Thread Long Li
From: Long Li To prepare for RDMA read/write using memory registration, add memory registartion pointers to upper layer data I/O context. Signed-off-by: Long Li --- fs/cifs/cifsglob.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index dc5404d..

[Patch v2 08/19] CIFS: SMBD: Set SMBDirect maximum read or write size for I/O

2017-08-20 Thread Long Li
From: Long Li When connecting over SMBDirect, the transport negotiates its maximum I/O sizes with the server and determines how to choose to do RDMA send/recv vs read/write. Expose these maximum I/O sizes to upper layer so we will get the correct sized payloads. Signed-off-by: Long Li --- f

[Patch v2 06/19] CIFS: SMBD: Reconnect to SMBDirect session

2017-08-20 Thread Long Li
From: Long Li Do a reconnect on SMBDirect when it is used as the connection. Reconnect can happen for many reasons and it's mostly the decision of upper layer SMB2 not SMBDirect. Signed-off-by: Long Li --- fs/cifs/connect.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --g

[Patch v2 00/19] CIFS: Implement SMBDirect

2017-08-20 Thread Long Li
From: Long Li Starting with SMB2 dialect 3.0, Microsoft introduced SMBDirect transport protocol for transferring upper layer (SMB2) payload over RDMA via Infiniband, RoCE or iWARP. The prococol is published in [MS-SMBD] (https://msdn.microsoft.com/en-us/library/hh536346.aspx). The patch v2 ad

[Patch v2 01/19] CIFS: Add RDMA mount option

2017-08-20 Thread Long Li
From: Long Li Add "rdma" to CIFS mount option, which tells CIFS this is for connecting to a SMB server over SMBDirect. Add checks to validate this feature is only used on SMB 3.X dialects. To connect to SMBDirect, use "mount.cifs -o rdma,vers=3.x". Signed-off-by: Long Li --- fs/cifs/cifs_de

[Patch v2 04/19] CIFS: SMBD: Add SMBDirect transport to SMB connection and Makefile

2017-08-20 Thread Long Li
From: Long Li Add SMBDirect as an optional connection to SMB session defined in CIFS. When connection is on SMBDirect, upper layer uses this connection to carry payloads. With the transport hooked up, add SMBDirect code to Makefile. Signed-off-by: Long Li --- fs/cifs/Makefile | 2 +- fs/ci

[Patch v2 03/19] CIFS: SMBD: Implement SMBDirect

2017-08-20 Thread Long Li
From: Long Li Add code to implement SMBDirect transport and protocol. 1. Add APIs in header file. Upper layer code uses transport through the APIs. 2. Define SMBDirect connection in the header file. A connection is based on a RC QP in RDMA. 3. The implementation doesn't maintain send buffers or

Re: [PATCH v2] Kbuild: use -fshort-wchar globally

2017-08-20 Thread Arnd Bergmann
On Sun, Aug 20, 2017 at 2:31 PM, Masahiro Yamada wrote: > Hi Arnd, > > This patch was picked up for linux-next > (I assume it was queued up for 4.14-rc1) > but I see this warning in Linus' tree. > > If we are not comfortable with this warning in the 4.13 release, > shall I include this patch in th

Re: [BUG] Deadlock due due to interactions of block, RCU, and cpu offline

2017-08-20 Thread Jeffrey Hugo
On 6/29/2017 6:18 PM, Paul E. McKenney wrote: On Thu, Jun 29, 2017 at 10:29:12AM -0600, Jeffrey Hugo wrote: On 6/27/2017 6:11 PM, Paul E. McKenney wrote: On Tue, Jun 27, 2017 at 04:32:09PM -0600, Jeffrey Hugo wrote: On 6/22/2017 9:34 PM, Paul E. McKenney wrote: On Wed, Jun 21, 2017 at 09:18:5

Re: + kbuild-disable-wformat-truncation-warnings-by-default.patch added to -mm tree

2017-08-20 Thread Arnd Bergmann
On Sun, Aug 20, 2017 at 3:19 PM, Masahiro Yamada wrote: > 2017-07-20 16:24 GMT+09:00 Arnd Bergmann : >> - enable all three warnings with "make W=1" in 4.13, but leave them >> disabled by default. >> - backport Linus' patch, plus the follow-up for W=1 to stable kernels, >> to allow stable kerne

Re: [PATCH v7 02/15] lib: Add shared copies of some GCC library routines

2017-08-20 Thread Palmer Dabbelt
On Tue, 01 Aug 2017 06:06:20 PDT (-0700), andriy.shevche...@linux.intel.com wrote: > On Mon, 2017-07-31 at 17:59 -0700, Palmer Dabbelt wrote: >> Many ports (m32r, microblaze, mips, parisc, score, and sparc) use >> functionally identical copies of various GCC library routine files, >> which came up

[PATCH 0/4] BTRFS: Adjustments for several function implementations

2017-08-20 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 20 Aug 2017 22:11:33 +0200 Some update suggestions were taken into account from static source code analysis. Markus Elfring (4): Delete an error message for a failed memory allocation in btrfsic_process_superblock() Adjust 32 checks for null pointers Improv

[PATCH] nvmem: core: change of_property_read_bool to device_property_present in nvmem_register

2017-08-20 Thread Heiner Kallweit
When checking for property "read-only" it's better to use the more generic device_property_present as in addition to device tree nodes it also covers other node types like ACPI nodes. In addition switch to a logical or. Signed-off-by: Heiner Kallweit --- drivers/nvmem/core.c | 6 ++ 1 file

[PATCH 1/4] btrfs: Delete an error message for a failed memory allocation in btrfsic_process_superblock()

2017-08-20 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 20 Aug 2017 21:10:17 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- fs/btrfs/check-integrity.c | 4 +--- 1 file changed, 1 insertion(+), 3

[PATCH 2/4] btrfs: Adjust 32 checks for null pointers

2017-08-20 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 20 Aug 2017 21:36:31 +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 3/4] btrfs: Improve eight size determinations

2017-08-20 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 20 Aug 2017 21:55:56 +0200 Replace the specification of data types by pointer dereferences as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. This issue was detected b

[PATCH 4/4] btrfs: Delete an unnecessary variable initialisation in tree_mod_log_eb_copy()

2017-08-20 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 20 Aug 2017 22:02:54 +0200 The variable "tm_list" will eventually be set to an appropriate pointer a bit later. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- fs/btrfs/ctree.c | 2 +- 1 file changed, 1 insertion(+), 1 d

events: possible deadlock in __perf_event_task_sched_out

2017-08-20 Thread Shubham Bansal
Hi all, While fuzzing with syzkaller inside Qemu I've stumbled on the following warning which is reproducible with == // autogenerated by syzkaller (http://github.com/google/syzkaller) #define _GNU_SOURCE #include #include #include #includ

Re: [PATCH] input/keyboard: fix platform_no_drv_owner.cocci warnings

2017-08-20 Thread Takashi Iwai
On Sun, 20 Aug 2017 18:28:41 +0200, Dmitry Torokhov wrote: > > On Sun, Aug 20, 2017 at 11:19:38AM +0200, Julia Lawall wrote: > > No need to set .owner here. The core will do it. > > > > Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci > > > > Fixes: 52cf590518d7 ("input/keyboard:

[PATCH] switchdev: documentation: minor typo fixes

2017-08-20 Thread Chris Packham
Two typos in switchdev.txt Signed-off-by: Chris Packham --- Documentation/networking/switchdev.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/networking/switchdev.txt b/Documentation/networking/switchdev.txt index 3e7b946dea27..5e40e1f68873 100644 ---

Re: [PATCH v2 03/14] perf report: create real callchain entries for inlined frames

2017-08-20 Thread Milian Wolff
On Mittwoch, 16. August 2017 09:53:13 CEST Namhyung Kim wrote: > Hi Milian, > > On Sun, Aug 06, 2017 at 11:24:35PM +0200, Milian Wolff wrote: > > The inlined frames use a fake symbol that is tracked in a special > > map inside the dso, which is always sorted by name. All other > > It seems the ab

Re: [BUG] Deadlock due due to interactions of block, RCU, and cpu offline

2017-08-20 Thread Paul E. McKenney
On Sun, Aug 20, 2017 at 01:31:01PM -0600, Jeffrey Hugo wrote: > On 6/29/2017 6:18 PM, Paul E. McKenney wrote: > >On Thu, Jun 29, 2017 at 10:29:12AM -0600, Jeffrey Hugo wrote: > >>On 6/27/2017 6:11 PM, Paul E. McKenney wrote: > >>>On Tue, Jun 27, 2017 at 04:32:09PM -0600, Jeffrey Hugo wrote: > O

Re: [RFC 2/3] rtc: Add Realtek RTD1295

2017-08-20 Thread Andreas Färber
Hi Alexandre, Am 20.08.2017 um 10:32 schrieb Alexandre Belloni: > On 20/08/2017 at 03:36:30 +0200, Andreas Färber wrote: >> +static int rtd119x_rtc_read_time(struct device *dev, struct rtc_time *tm) >> +{ >> +struct rtd119x_rtc *data = dev_get_drvdata(dev); >> +time64_t t; >> +u32 day;

Re: [RFC 2/3] rtc: Add Realtek RTD1295

2017-08-20 Thread Andreas Färber
Am 20.08.2017 um 17:40 schrieb Andrew Lunn: >> +static void rtd119x_rtc_set_enabled(struct device *dev, bool enable) >> +{ >> +struct rtd119x_rtc *data = dev_get_drvdata(dev); >> +u32 val; >> + >> +val = readl_relaxed(data->base + RTD_RTCEN); >> +dev_info(dev, "%s: rtcen = 0x%08x\n"

Re: [PATCH v6 2/2] PCI: iproc: add device shutdown for PCI RC

2017-08-20 Thread Bjorn Helgaas
On Sun, Aug 20, 2017 at 09:06:51AM +0530, Oza Oza wrote: > On Sun, Aug 20, 2017 at 2:34 AM, Bjorn Helgaas wrote: > > On Fri, Aug 04, 2017 at 09:18:16PM +0530, Oza Pawandeep wrote: > >> PERST must be asserted around ~500ms before the reboot is applied. > >> > >> During soft reset (e.g., "reboot" fr

[PATCH] crypto: aesni: make arrays aesni_simd_skciphers and aesni_simd_skciphers2 static

2017-08-20 Thread Colin King
From: Colin Ian King Arrays aesni_simd_skciphers and aesni_simd_skciphers2 are local to the source and do not need to be in global scope, so make them static. Cleans up sparse warnings: symbol 'aesni_simd_skciphers' was not declared. Should it be static? symbol 'aesni_simd_skciphers2' was not de

[PATCH] soc: ti: fix spelling mistake: "instace" -> "instance"

2017-08-20 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in dev_err messages Signed-off-by: Colin Ian King --- drivers/soc/ti/knav_dma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/soc/ti/knav_dma.c b/drivers/soc/ti/knav_dma.c index 026182d3b27c..f463e04be412 10

Re: [PATCH 0/6] gpio: use devres for irq generic chip

2017-08-20 Thread Linus Walleij
On Wed, Aug 2, 2017 at 9:51 AM, Bartosz Golaszewski wrote: > We now provide resource managed versions of irq_alloc_generic_chip() > and irq_setup_generic_chip(). Use them in all relevant gpio drivers. > > Bartosz Golaszewski (6): > gpio: sta2x11: use devres for irq generic chip > gpio: ml-ioh

[PATCH] alarmtimer: ensure RTC module is not unloaded

2017-08-20 Thread Alexandre Belloni
When registering the rtc device to be used to handle alarm timers, get_device is used to ensure the device doesn't go away but the module can still be unloaded. Call try_module_get to ensure the rtc driver will not go away. Reported-by: Michal Simek Signed-off-by: Alexandre Belloni --- kernel/t

Re: [PATCH v2 0/8] gpio: use devres for irq generic chip

2017-08-20 Thread Linus Walleij
On Wed, Aug 9, 2017 at 2:24 PM, Bartosz Golaszewski wrote: > We now provide resource managed versions of irq_alloc_generic_chip() > and irq_setup_generic_chip(). Use them in all relevant gpio drivers. > > v1 -> v2: > - added three patches which explicitly disable driver unbinding for > non-modu

Re: [PATCH v4 0/3] simulated interrupts

2017-08-20 Thread Linus Walleij
On Wed, Aug 16, 2017 at 4:44 PM, Thomas Gleixner wrote: > I merged the irq part (1+2) into a separate branch, which can be consumed > by the gpio folks so the mockup driver patch can be merged as well. > >git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq/for-gpio Awesome, thanks

Re: [PATCH net-next v3] arm: eBPF JIT compiler

2017-08-20 Thread Daniel Borkmann
On 08/19/2017 11:20 AM, Shubham Bansal wrote: [...] diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 61a0cb1..cc31f8b 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -50,7 +50,7 @@ config ARM select HAVE_ARCH_SECCOMP_FILTER if (AEABI && !OABI_COMPAT) select HAVE_ARCH

Re: [PATCH v3 3/3] gpio: mockup: use irq_sim

2017-08-20 Thread Linus Walleij
On Mon, Aug 14, 2017 at 1:20 PM, Bartosz Golaszewski wrote: > Shrink the driver by removing the code dealing with dummy interrupts > and replacing it with calls to the irq_sim API. > > Signed-off-by: Bartosz Golaszewski > Acked-by: Jonathan Cameron > Reviewed-by: Linus Walleij I applied this

Re: [PATCH net-next v3] arm: eBPF JIT compiler

2017-08-20 Thread Shubham Bansal
> With the below #ifdef __LITTLE_ENDIAN spanning the entire > bpf_int_jit_compile(), a user can then enable and compile > eBPF JIT for big endian, even set the bpf_jit_enable to 1 > to turn it on, but it won't JIT anything, which is contrary > to the expectation. > > This should rather be a hard de

Linux 4.13-rc6

2017-08-20 Thread Linus Torvalds
Things have been pretty calm, and rc6 is out there. Nothing particular really stands out - it all looks normal, with just under half of the patch being drivers (networking stands out, but there's infiniband, sound and misc other things too), a third of the rest being arch updates, and the rest is

kvm splat in mmu_spte_clear_track_bits

2017-08-20 Thread Adam Borowski
Hi! I'm afraid I keep getting a quite reliable, but random, splat when running KVM: [ cut here ] WARNING: CPU: 5 PID: 5826 at arch/x86/kvm/mmu.c:717 mmu_spte_clear_track_bits+0x123/0x170 Modules linked in: tun nbd arc4 rtl8xxxu mac80211 cfg80211 rfkill nouveau video ttm C

[PATCH net-next v7 04/10] bpf: Define handle_fs and add a new helper bpf_handle_fs_get_mode()

2017-08-20 Thread Mickaël Salaün
Add an eBPF function bpf_handle_fs_get_mode(handle_fs) to get the mode of a an abstract object wrapping either a file, a dentry, a path, or an inode. Signed-off-by: Mickaël Salaün Cc: Alexei Starovoitov Cc: Andy Lutomirski Cc: Daniel Borkmann Cc: David S. Miller Cc: James Morris Cc: Kees Coo

[PATCH net-next v7 01/10] selftest: Enhance kselftest_harness.h with a step mechanism

2017-08-20 Thread Mickaël Salaün
This step mechanism may be useful to return an information about the error without being able to write to TH_LOG_STREAM. Set _metadata->no_print to true to print this counter. Signed-off-by: Mickaël Salaün Cc: Andy Lutomirski Cc: Arnaldo Carvalho de Melo Cc: Kees Cook Cc: Shuah Khan Cc: Will

[PATCH net-next v7 06/10] seccomp,landlock: Handle Landlock events per process hierarchy

2017-08-20 Thread Mickaël Salaün
The seccomp(2) syscall can be used by a task to apply a Landlock rule to itself. As a seccomp filter, a Landlock rule is enforced for the current task and all its future children. A rule is immutable and a task can only add new restricting rules to itself, forming a chain of rules. A Landlock rule

[PATCH net-next v7 05/10] landlock: Add LSM hooks related to filesystem

2017-08-20 Thread Mickaël Salaün
Handle 33 filesystem-related LSM hooks for the Landlock filesystem event: LANDLOCK_SUBTYPE_EVENT_FS. A Landlock event wrap LSM hooks for similar kernel object types (e.g. struct file, struct path...). Multiple LSM hooks can trigger the same Landlock event. Landlock handle nine coarse-grained acti

[PATCH net-next v7 03/10] bpf,landlock: Define an eBPF program type for a Landlock rule

2017-08-20 Thread Mickaël Salaün
Add a new type of eBPF program used by Landlock rules. This new BPF program type will be registered with the Landlock LSM initialization. Add an initial Landlock Kconfig. Signed-off-by: Mickaël Salaün Cc: Alexei Starovoitov Cc: Andy Lutomirski Cc: Daniel Borkmann Cc: David S. Miller Cc: Jam

[PATCH net-next v7 02/10] bpf: Add eBPF program subtype and is_valid_subtype() verifier

2017-08-20 Thread Mickaël Salaün
The goal of the program subtype is to be able to have different static fine-grained verifications for a unique program type. The struct bpf_verifier_ops gets a new optional function: is_valid_subtype(). This new verifier is called at the beginning of the eBPF program verification to check if the (

[PATCH net-next v7 08/10] bpf: Add a Landlock sandbox example

2017-08-20 Thread Mickaël Salaün
Add a basic sandbox tool to create a process isolated from some part of the system. This sandbox create a read-only environment. It is only allowed to write to a character device such as a TTY: # :> X # echo $? 0 # ./samples/bpf/landlock1 /bin/sh -i Launching a new sandboxed process. #

[PATCH net-next v7 10/10] landlock: Add user and kernel documentation for Landlock

2017-08-20 Thread Mickaël Salaün
This documentation can be built with the Sphinx framework. Signed-off-by: Mickaël Salaün Cc: Alexei Starovoitov Cc: Andy Lutomirski Cc: Daniel Borkmann Cc: David S. Miller Cc: James Morris Cc: Jonathan Corbet Cc: Kees Cook Cc: Serge E. Hallyn --- Changes since v6: * add a check for ctx->

Re: [PATCH v2] Kbuild: use -fshort-wchar globally

2017-08-20 Thread Masahiro Yamada
2017-08-21 4:22 GMT+09:00 Arnd Bergmann : > On Sun, Aug 20, 2017 at 2:31 PM, Masahiro Yamada > wrote: >> Hi Arnd, >> >> This patch was picked up for linux-next >> (I assume it was queued up for 4.14-rc1) >> but I see this warning in Linus' tree. >> >> If we are not comfortable with this warning in

[PATCH net-next v7 07/10] landlock: Add ptrace restrictions

2017-08-20 Thread Mickaël Salaün
A landlocked process has less privileges than a non-landlocked process and must then be subject to additional restrictions when manipulating processes. To be allowed to use ptrace(2) and related syscalls on a target process, a landlocked process must have a subset of the target process' rules. Sig

[PATCH net-next v7 09/10] bpf,landlock: Add tests for Landlock

2017-08-20 Thread Mickaël Salaün
Test basic context access, ptrace protection and filesystem event with multiple cases. Signed-off-by: Mickaël Salaün Cc: Alexei Starovoitov Cc: Andy Lutomirski Cc: Daniel Borkmann Cc: David S. Miller Cc: James Morris Cc: Kees Cook Cc: Serge E. Hallyn Cc: Shuah Khan Cc: Will Drewry --- C

[PATCH net-next v7 00/10] Landlock LSM: Toward unprivileged sandboxing

2017-08-20 Thread Mickaël Salaün
Hi, This seventh series add some changes to the previous one [1], including a simplified landlock_context, architecture-independent rules, more documentation and multiples fixes. As planed [6], I simplified and make the FS event more generic for the IOCTL, LOCK or FCNTL actions. The action flags

[patch -mm] mm, compaction: persistently skip hugetlbfs pageblocks fix

2017-08-20 Thread David Rientjes
Fix build: mm/compaction.c: In function ‘isolate_freepages_block’: mm/compaction.c:469:4: error: implicit declaration of function ‘pageblock_skip_persistent’ [-Werror=implicit-function-declaration] if (pageblock_skip_persistent(page, order)) { ^ mm/compaction.c:470:5: error: implicit decl

Re: [v5 4/4] mm, oom, docs: describe the cgroup-aware OOM killer

2017-08-20 Thread David Rientjes
On Thu, 17 Aug 2017, Roman Gushchin wrote: > Hi David! > > Please, find an updated version of docs patch below. > Looks much better, thanks! I think the only pending issue is discussing the relationship of memory.oom_kill_all_tasks with /proc/pid/oom_score_adj == OOM_SCORE_ADJ_MIN.

Re: [PATCH] ASoC: simple-scu-card: Parse off codec widgets

2017-08-20 Thread Kuninori Morimoto
Hi > Signed-off-by: Daniel Baluta > --- > Documentation/devicetree/bindings/sound/simple-scu-card.txt | 1 + > sound/soc/generic/simple-scu-card.c | 4 > 2 files changed, 5 insertions(+) > > diff --git a/Documentation/devicetree/bindings/sound/simple-scu-card.txt

Re: [v5 2/4] mm, oom: cgroup-aware OOM killer

2017-08-20 Thread David Rientjes
On Wed, 16 Aug 2017, Roman Gushchin wrote: > It's natural to expect that inside a container there are their own sshd, > "activity manager" or some other stuff, which can play with oom_score_adj. > If it can override the upper cgroup-level settings, the whole delegation model > is broken. > I don

Re: [PATCH 1/2] PM: docs: Describe high-level PM strategies and sleep states

2017-08-20 Thread Rafael J. Wysocki
On Sun, Aug 20, 2017 at 8:23 PM, Lukas Wunner wrote: > On Sun, Aug 20, 2017 at 06:05:05PM +0200, Rafael J. Wysocki wrote: >> From: Rafael J. Wysocki >> >> Reorganize the power management part of admin-guide by adding a >> description of major power management strategies supported by the >> kernel

Re: kvm splat in mmu_spte_clear_track_bits

2017-08-20 Thread Wanpeng Li
2017-08-21 7:13 GMT+08:00 Adam Borowski : > Hi! > I'm afraid I keep getting a quite reliable, but random, splat when running > KVM: I reported something similar before. https://lkml.org/lkml/2017/6/29/64 Regards, Wanpeng Li > > [ cut here ] > WARNING: CPU: 5 PID: 5826 at

[PATCH v9 RESEND 6/9] pinctrl: dt-bindings: add bindings for Rockchip RK805 PMIC

2017-08-20 Thread Heiko Stuebner
From: Joseph Chen Signed-off-by: Joseph Chen Acked-by: Linus Walleij Acked-by: Rob Herring Signed-off-by: Heiko Stuebner --- .../devicetree/bindings/pinctrl/pinctrl-rk805.txt | 63 ++ 1 file changed, 63 insertions(+) create mode 100644 Documentation/devicetree/bindings/

[PATCH v9 RESEND 8/9] mfd: rk808: Add RK805 pinctrl support

2017-08-20 Thread Heiko Stuebner
From: Joseph Chen Signed-off-by: Joseph Chen Acked-by: Linus Walleij Acked-for-MFD-by: Lee Jones Signed-off-by: Heiko Stuebner --- drivers/mfd/rk808.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mfd/rk808.c b/drivers/mfd/rk808.c index 18329c8b4fe7..c803d2d5dfb7 100644 --- a/d

[PATCH v9 RESEND 0/9] mfd: rk808: Add RK805 support

2017-08-20 Thread Heiko Stuebner
Hi Lee, as we talked about on IRC on friday, here are the patches enabling rk805 support in the common rk808 driver. As we agreed I've dropped the cosmetic patches for clk and rtc adding the rk805 to the Kconfig helptext and I've also dropped the input driver patch, which Dmitry already applied.

[PATCH v9 RESEND 3/9] regulator: rk808: Add regulator driver for RK805

2017-08-20 Thread Heiko Stuebner
From: Elaine Zhang Add support for the rk805 regulator. The regulator module consists of 4 DCDCs, 3 LDOs. The output voltages are configurable and are meant to supply power to the main processor and other components. Signed-off-by: Elaine Zhang Signed-off-by: Joseph Chen Acked-by: Mark Brown

[PATCH v9 RESEND 7/9] pinctrl: Add pinctrl driver for the RK805 PMIC

2017-08-20 Thread Heiko Stuebner
From: Joseph Chen RK805 is one of Rockchip PMICs family, it has 2 output only GPIOs. This driver is also designed for other Rockchip PMICs to expend. Different PMIC maybe have different pin features, for example, RK816 has one pin which can be used for TS or GPIO(input/out). The mainly differenc

[PATCH v9 RESEND 9/9] mfd: rk808: Add RK805 power key support

2017-08-20 Thread Heiko Stuebner
From: Joseph Chen Signed-off-by: Joseph Chen Acked-for-MFD-by: Lee Jones Signed-off-by: Heiko Stuebner --- drivers/mfd/rk808.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/mfd/rk808.c b/drivers/mfd/rk808.c index c803d2d5dfb7..216fbf6adec9 100644 --- a/drivers

[PATCH v9 RESEND 1/9] mfd: rk808: fix up the chip id get failed

2017-08-20 Thread Heiko Stuebner
From: Elaine Zhang the rk8xx chip id is: ((MSB << 8) | LSB) & 0xfff0 Signed-off-by: Elaine Zhang Signed-off-by: Joseph Chen Acked-for-MFD-by: Lee Jones Signed-off-by: Heiko Stuebner --- drivers/mfd/rk808.c | 21 +++-- include/linux/mfd/rk808.h | 1 + 2 files changed,

[PATCH v9 RESEND 4/9] mfd: dt-bindings: Add RK805 device tree bindings document

2017-08-20 Thread Heiko Stuebner
From: Elaine Zhang Add device tree bindings documentation for Rockchip's RK805 PMIC. Signed-off-by: Elaine Zhang Signed-off-by: Joseph Chen Acked-by: Rob Herring Acked-for-MFD-by: Lee Jones Signed-off-by: Heiko Stuebner --- Documentation/devicetree/bindings/mfd/rk808.txt | 22 +

[PATCH v9 RESEND 5/9] mfd: rk808: Add RK805 support

2017-08-20 Thread Heiko Stuebner
From: Elaine Zhang The RK805 chip is a Power Management IC (PMIC) for multimedia and handheld devices. It contains the following components: - Regulators - RTC - Clocking Both RK808 and RK805 chips are using a similar register map, so we can reuse the RTC and Clocking functionality.

[PATCH v9 RESEND 2/9] mfd: rk808: add rk805 regs addr and ID

2017-08-20 Thread Heiko Stuebner
From: Elaine Zhang Signed-off-by: Elaine Zhang Signed-off-by: Joseph Chen Acked-for-MFD-by: Lee Jones Signed-off-by: Heiko Stuebner --- include/linux/mfd/rk808.h | 120 ++ 1 file changed, 120 insertions(+) diff --git a/include/linux/mfd/rk808.h b/

Re: + kbuild-disable-wformat-truncation-warnings-by-default.patch added to -mm tree

2017-08-20 Thread Masahiro Yamada
Hi Arnd, 2017-08-21 4:51 GMT+09:00 Arnd Bergmann : > On Sun, Aug 20, 2017 at 3:19 PM, Masahiro Yamada > wrote: >> 2017-07-20 16:24 GMT+09:00 Arnd Bergmann : >>> - enable all three warnings with "make W=1" in 4.13, but leave them >>> disabled by default. >>> - backport Linus' patch, plus the fol

Re: [PATCH 0/3] Ceph: Adjustments for some function implementations

2017-08-20 Thread Yan, Zheng
> On 21 Aug 2017, at 02:37, SF Markus Elfring > wrote: > > From: Markus Elfring > Date: Sun, 20 Aug 2017 20:32:10 +0200 > > Three update suggestions were taken into account > from static source code analysis. > > Markus Elfring (3): > Delete an error message for a failed memory allocation i

Re: [PATCH v3 1/3] dt-bindings: Document the hi3660 thermal sensor bindings

2017-08-20 Thread Wangtao (Kevin, Kirin)
在 2017/8/17 23:10, Rob Herring 写道: On Thu, Aug 10, 2017 at 04:32:13PM +0800, Tao Wang wrote: From: Tao Wang This adds documentation of device tree bindings for the thermal sensor controller of hi3660 SoC. Signed-off-by: Tao Wang --- .../devicetree/bindings/thermal/hisi-tsensor.txt | 23

Re: [PATCH 3.16 032/134] MIPS: Loongson-3: Select MIPS_L1_CACHE_SHIFT_6

2017-08-20 Thread Huacai Chen
3.16 doesn't need this, because 3.16 doesn't support Loongson-3 R2/R3. Huacai On Fri, Aug 18, 2017 at 9:13 PM, Ben Hutchings wrote: > 3.16.47-rc1 review patch. If anyone has any objections, please let me know. > > -- > > From: Huacai Chen > > commit 17c99d9421695a0e0de18bf1e709

[PATCH v1 0/3] clk: rockchip: rv1108: support mac clk

2017-08-20 Thread Elaine Zhang
Elaine Zhang (3): clk: rockchip: add rv1108 ACLK_GAMC and PCLK_GMAC ID clk: rockchip: rv1108: add ACLK_GMAC and PCLK_GMAC clk id clk: rockchip: rv1108: rename macphy to mac drivers/clk/rockchip/clk-rv1108.c | 14 -- include/dt-bindings/clock/rv1108-cru.h | 8 +--- 2 fi

[PATCH v1 2/3] clk: rockchip: rv1108: add ACLK_GMAC and PCLK_GMAC clk id

2017-08-20 Thread Elaine Zhang
Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/clk-rv1108.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/rockchip/clk-rv1108.c b/drivers/clk/rockchip/clk-rv1108.c index d1065dd9f442..0e441ec21e90 100644 --- a/drivers/clk/rockchip/clk-rv1108.c +++ b/drivers/clk/rockchip

[PATCH v1 3/3] clk: rockchip: rv1108: rename macphy to mac

2017-08-20 Thread Elaine Zhang
This MAC has no internal phy for rv1108. Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/clk-rv1108.c | 12 ++-- include/dt-bindings/clock/rv1108-cru.h | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/clk/rockchip/clk-rv1108.c b/drivers/clk/r

[PATCH v1 1/3] clk: rockchip: add rv1108 ACLK_GAMC and PCLK_GMAC ID

2017-08-20 Thread Elaine Zhang
This patch exports gmac aclk and pclk for dts reference. Signed-off-by: Elaine Zhang --- include/dt-bindings/clock/rv1108-cru.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/dt-bindings/clock/rv1108-cru.h b/include/dt-bindings/clock/rv1108-cru.h index f269d833e41a..2239ae2a19b9

Re: [PATCH v2 00/20] Speculative page faults

2017-08-20 Thread Sergey Senozhatsky
Hello, On (08/18/17 00:04), Laurent Dufour wrote: > This is a port on kernel 4.13 of the work done by Peter Zijlstra to > handle page fault without holding the mm semaphore [1]. > > The idea is to try to handle user space page faults without holding the > mmap_sem. This should allow better concur

Re: [GIT PULL] tpmdd updates for Linux 4.14

2017-08-20 Thread James Morris
On Sat, 19 Aug 2017, Jarkko Sakkinen wrote: > Hi James, > > Not much this time except a few fixes. > > /Jarkko > > The following changes since commit 76e22e212a850bbd16cf49f9c586d4635507e0b5: > > apparmor: fix incorrect type assignment when freeing proxies (2017-08-18 > 06:45:37 -0700) > >

Re: [PATCH v2 5/5] thermal: Add Tegra BPMP thermal sensor driver

2017-08-20 Thread Wei Ni
On Friday, August 11, 2017 10:57 AM, Zhang Rui wrote: > On Mon, 2017-07-24 at 19:29 +0300, Mikko Perttunen wrote: >> On Tegra186, the BPMP (Boot and Power Management Processor) exposes >> an >> interface to thermal sensors on the system-on-chip. This driver >> implements access to the interface.

Re: [RFC PATCH v5 0/5] vfio-pci: Add support for mmapping MSI-X table

2017-08-20 Thread Alexey Kardashevskiy
Folks, Ok, people did talk, exchanged ideas, lovely :) What happens now? Do I repost this or go back to PCI bus flags or something else? Thanks. On 14/08/17 19:45, Alexey Kardashevskiy wrote: > Folks, > > Is there anything to change besides those compiler errors and David's > comment in 5/5? O

Re: [PATCH] switchdev: documentation: minor typo fixes

2017-08-20 Thread David Miller
From: Chris Packham Date: Mon, 21 Aug 2017 08:52:54 +1200 > Two typos in switchdev.txt > > Signed-off-by: Chris Packham Applied.

Re: [PATCH v2] net: ibm: emac: Fix some error handling path in 'emac_probe()'

2017-08-20 Thread David Miller
From: Christophe JAILLET Date: Sun, 20 Aug 2017 06:35:00 +0200 > If 'irq_of_parse_and_map()' or 'of_address_to_resource()' fail, 'err' is > known to be 0 at this point. > So return -ENODEV instead in the first case and use 'of_iomap()' instead of > the equivalent 'of_address_to_resource()/ioremap

[PATCH v2] kselftest: exec: make exec test output conform to TAP13

2017-08-20 Thread Paul Elder
Convert exec test output to TAP13 format, using the ksft framework. Signed-off-by: Paul Elder --- Changes from v1: Fixed a couple coding style errors and changed a forgotten printf() to ksft_print_msg() tools/testing/selftests/exec/execveat.c | 151 ++-- 1 file chan

Re: [PATCH v6 2/2] PCI: iproc: add device shutdown for PCI RC

2017-08-20 Thread Oza Oza
On Mon, Aug 21, 2017 at 2:55 AM, Bjorn Helgaas wrote: > On Sun, Aug 20, 2017 at 09:06:51AM +0530, Oza Oza wrote: >> On Sun, Aug 20, 2017 at 2:34 AM, Bjorn Helgaas wrote: >> > On Fri, Aug 04, 2017 at 09:18:16PM +0530, Oza Pawandeep wrote: >> >> PERST must be asserted around ~500ms before the reboo

<    1   2   3   >