[PATCH v5 1/4] drm/rockchip: vop: export line flag function

2016-07-23 Thread Yakir Yang
VOP have integrated a hardware counter which indicate the exact display line that vop is scanning. And if we're interested in a specific line, we can set the line number to vop line_flag register, and then vop would generate a line_flag interrupt for it. For example eDP PSR function is interested

[PATCH v5 3/4] drm/bridge: analogix_dp: add the PSR function support

2016-07-23 Thread Yakir Yang
The full name of PSR is Panel Self Refresh, panel device could refresh itself with the hardware framebuffer in panel, this would make lots of sense to save the power consumption. This patch have exported two symbols for platform driver to implement the PSR function in hardware side: - analogix_dp_

[PATCH v5 2/4] drm/rockchip: add an common abstracted PSR driver

2016-07-23 Thread Yakir Yang
The PSR driver have exported four symbols for specific device driver, and it's safe to call them in interrupt context: - rockchip_drm_psr_register() - rockchip_drm_psr_unregister() - rockchip_drm_psr_enable() - rockchip_drm_psr_disable() - rockchip_drm_psr_flush() Encoder driver should call the re

[PATCH v5 0/4] Add PSR function support for Analogix/Rockchip DP

2016-07-23 Thread Yakir Yang
The full name of PSR is Panel Self Refresh, panel device could refresh itself with the hardware framebuffer in panel, this would make a lots of sense to save the power consumption. The v5 version have made the psr_set_state() to a delay work, which is the biggest changes from v4. The v3 version

[PATCH v5 4/4] drm/rockchip: analogix_dp: implement PSR function

2016-07-23 Thread Yakir Yang
Alway enable the PSR function for Rockchip analogix_dp driver. If panel don't support PSR, then the core analogix_dp would ignore this setting. Signed-off-by: Yakir Yang Reviewed-by: Sean Paul --- Changes in v5: - Add reviewed flag from Sean. Changes in v4: - Return 'void' instead of 'int' in a

Hello

2016-07-23 Thread Mrs.Linda Ahmed
-- Season Greetings. My name is Mrs.Linda Ahmed, I have a proposal for you, kindly reply me so that i can give you more details. Regards, Mrs.Linda Ahmed

Re: [PATCH 10/10] dmaengine: qcom_hidma: add MSI support for interrupts

2016-07-23 Thread Vinod Koul
On Tue, Jul 19, 2016 at 12:09:37AM +0530, Sinan Kaya wrote: > @@ -567,6 +578,98 @@ static int hidma_create_sysfs_entry(struct hidma_dev > *dev, char *name, > return device_create_file(dev->ddev.dev, attrs); > } > > +#ifdef CONFIG_GENERIC_MSI_IRQ_DOMAIN This can be true on machine with

Re: [PATCH v4 3/5] tpm: replace tpm_gen_interrupt() with tpm_tis_gen_interrupt()

2016-07-23 Thread kbuild test robot
Hi, [auto build test ERROR on next-20160722] [cannot apply to char-misc/char-misc-testing v4.7-rc7 v4.7-rc6 v4.7-rc5 v4.7-rc7] [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/Jarkko-Sakkinen/Use

Re: hwmon: xgene: Add support for X-Gene hwmon driver

2016-07-23 Thread Loc Ho
Hi Itaru, On Sat, Jul 23, 2016 at 10:04 PM, Itaru Kitayama wrote: > > Hi Hoan, > > I didn't mention in my previous post, though I think I'm using fairly recent > version of Tianocore F/W, and I can confirm there's the PCCT table, > > [0.00] ACPI: PCCT 0x0047FA826000 000300 (v01 APM

Re: [PATCH 04/10] dmaending: qcom_hidma: configure DMA and MSI for OF

2016-07-23 Thread Vinod Koul
On Tue, Jul 19, 2016 at 12:09:31AM +0530, Sinan Kaya wrote: > Configure the DMA bindings for the device tree based firmware. > > Signed-off-by: Sinan Kaya > --- > drivers/dma/qcom/hidma_mgmt.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/dma/qcom/hidma_mgm

Re: [PATCH] dmaengine: zynqmp_dma: add missing MODULE_LICENSE

2016-07-23 Thread Vinod Koul
On Tue, Jul 19, 2016 at 10:43:49AM +0200, Arnd Bergmann wrote: > We get a warning about the missing MODULE_LICENSE tag for this newly > added driver module: > > WARNING: modpost: missing MODULE_LICENSE() in drivers/dma/xilinx/zynqmp_dma.o > see include/linux/module.h for more information > > This

Re: [PATCH] dmaengine: qcom_hidma: release the descriptor before the callback

2016-07-23 Thread Vinod Koul
On Fri, Jul 15, 2016 at 09:00:52PM -0400, Sinan Kaya wrote: > Hi Vinod, > > On 7/13/2016 10:57 PM, Sinan Kaya wrote: > > There is a race condition between data transfer callback and descriptor > > free code. The callback routine may decide to clear the resources even > > though the descriptor has

linux-next: manual merge of the xen-tip tree with the block tree

2016-07-23 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the xen-tip tree got a conflict in: drivers/block/xen-blkfront.c between commit: a418090aa88b ("block: do not use REQ_FLUSH for tracking flush support") from the block tree and commit: ff595325ed55 ("xen-blkfront: prefer xenbus_scanf() over xenbus_gat

linux-next: manual merge of the kvm-arm tree with the kvm tree

2016-07-23 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the kvm-arm tree got a conflict in: virt/kvm/irqchip.c between commit: c63cf538eb4b ("KVM: pass struct kvm to kvm_set_routing_entry") from the kvm tree and commit: 995a0ee9809b ("KVM: arm/arm64: Enable MSI routing") from the kvm-arm tree. I fixed it

Re: [PATCH -next] xtensa: Fix build error due to missing include file

2016-07-23 Thread Guenter Roeck
On 07/23/2016 05:45 PM, Max Filippov wrote: On Sun, Jul 24, 2016 at 3:24 AM, Guenter Roeck wrote: Commit 69d99e6c0d621f ("xtensa: Remove unnecessary of_platform_populate with default match table") dropped various include files from arch/xtensa/kernel/setup.c. This results in the following build

linux-next: manual merge of the kvm-arm tree with the kvm tree

2016-07-23 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the kvm-arm tree got a conflict in: Documentation/virtual/kvm/api.txt between commit: 3713131345fb ("KVM: x86: add KVM_CAP_X2APIC_API") from the kvm tree and commit: 76a10b86785c ("KVM: api: Pass the devid in the msi routing entry") from the kvm-arm

Re: hwmon: xgene: Add support for X-Gene hwmon driver

2016-07-23 Thread Hoan Tran
Hi Itaru, On Sat, Jul 23, 2016 at 10:04 PM, Itaru Kitayama wrote: > Hi Hoan, > > I didn't mention in my previous post, though I think I'm using fairly recent > version of Tianocore F/W, and I can confirm there's the PCCT table, > > [0.00] ACPI: PCCT 0x0047FA826000 000300 (v01 APMX

[PATCH -next] mm: Drop unnecessary include file

2016-07-23 Thread Guenter Roeck
Commmit e9be930fa6b5 ("mm: fix vm-scalability regression in cgroup-aware workingset code") adds '#include ' to include/linux/memcontrol.h. This results in the following build error when building hexagon images. In file included from ./include/linux/memcontrol.h:32:0, from ./includ

Re: [PATCH v2] dmaengine: zynqmp_dma: Fix static checker warning

2016-07-23 Thread Vinod Koul
On Thu, Jul 14, 2016 at 07:00:55PM +0530, Kedareswara rao Appana wrote: > This patch fixes the below static checker warning > drivers/dma/xilinx/zynqmp_dma.c:973 zynqmp_dma_chan_probe() > warn: was && intended here instead of ||? Applied, thanks -- ~Vinod

Re: [PATCH] dmaengine: omap-dma: Support for interleaved transfer

2016-07-23 Thread Vinod Koul
On Tue, Jul 12, 2016 at 02:21:14PM +0300, Peter Ujfalusi wrote: > Initial support for interleaved transfer with sDMA. > The implementation only supports DMA_MEM_TO_MEM and frame_size must be 1. > sDMA needs to be configured for double indexing when ICG is needed. Applied, thanks -- ~Vinod

Re: kexec: device shutdown vs. remove

2016-07-23 Thread Eric W. Biederman
Benjamin Herrenschmidt writes: > Hi ! > > This is somewhat of a recurring issue, some of my previous attempts on > lkml, I suspect, were just drowned in the noise. Eric, we had a quick > discussion about this a while back but I don't think we reached a > conclusion. > > A bit of context: On OpenP

linux-next: build warning after merge of the tip tree

2016-07-23 Thread Stephen Rothwell
Hi all, After merging the tip tree, today's linux-next build (x86_64 allmodconfig) produced this warning: In file included from include/linux/clocksource.h:18:0, from include/linux/clockchips.h:13, from drivers/clocksource/jcore-pit.c:14: include/linux/of.h:1004:

[PATCH v4 2/4] nfit, libnvdimm: allow an ARS scrub to be triggered on demand

2016-07-23 Thread Dan Williams
From: Vishal Verma Normally, an ARS (Address Range Scrub) only happens at boot/initialization time. There can however arise situations where a bus-wide rescan is needed - notably, in the case of discovering a latent media error, we should do a full rescan to figure out what other sectors are bad,

[PATCH v4 4/4] nfit: do an ARS scrub on hitting a latent media error

2016-07-23 Thread Dan Williams
From: Vishal Verma When a latent (unknown to 'badblocks') error is encountered, it will trigger a machine check exception. On a system with machine check recovery, this will only SIGBUS the process(es) which had the bad page mapped (as opposed to a kernel panic on platforms without machine check

[PATCH v4 1/4] libnvdimm: register nvdimm_bus devices with an nd_bus driver

2016-07-23 Thread Dan Williams
A recent effort to add a new nvdimm bus provider attribute highlighted a race between interrogating nvdimm_bus->nd_desc and nvdimm_bus tear down. The typical way to handle these races is to take the device_lock() in the attribute method and validate that the device is still active. In order for a

[PATCH v4 3/4] nfit: move to nfit/ sub-directory

2016-07-23 Thread Dan Williams
With the arrival of x86-machine-check support the nfit driver will add a (conditionally-compiled) source file. Prepare for this by moving all nfit source to drivers/acpi/nfit/. This is pure code movement, no functional changes. Signed-off-by: Dan Williams --- drivers/acpi/Kconfig |

[PATCH v4 0/4] ARS rescanning triggered by latent errors or userspace

2016-07-23 Thread Dan Williams
Changes since v3 [1]: 1/ Fixed races of scrub_{store|show} versus driver shutdown. We need to make sure the nvdimm_bus, nvdimm_bus_descriptor, and acpi_nfit_desc data structures for a given instance remain valid for the duration of an acpi_nfit_ars_rescan() submission. Patch1 "libnvdimm

Re: [PATCH 0/5 RFC] Add an interface to discover relationships between namespaces

2016-07-23 Thread Eric W. Biederman
Andrey Vagin writes: > Hello, > > I forgot to add --cc-cover for git send-email, so everyone who is in > Cc got only a cover letter. All messages were sent in mail lists. > > Sorry for inconvenience. Mostly the code looked sensible. But I had a couple of issues. Resend this in September (when t

Re: [PATCH 4/5] nsfs: add ioctl to get a parent namespace

2016-07-23 Thread Eric W. Biederman
Andrey Vagin writes: > diff --git a/kernel/pid_namespace.c b/kernel/pid_namespace.c > index 3529a03..a63adfb 100644 > --- a/kernel/pid_namespace.c > +++ b/kernel/pid_namespace.c > @@ -388,12 +388,38 @@ static int pidns_install(struct nsproxy *nsproxy, > struct ns_common *ns) > return 0; >

Re: kexec: device shutdown vs. remove

2016-07-23 Thread Guenter Roeck
On Sun, Jul 24, 2016 at 06:51:52AM +1000, Benjamin Herrenschmidt wrote: > Hi ! > > This is somewhat of a recurring issue, some of my previous attempts on > lkml, I suspect, were just drowned in the noise. Eric, we had a quick > discussion about this a while back but I don't think we reached a > co

Re: [PATCH 2/5] kernel: add a helper to get an owning user namespace for a namespace

2016-07-23 Thread Eric W. Biederman
Andrey Vagin writes: > Return -EPERM if an owning user namespace is outside of a process > current user namespace. > > diff --git a/kernel/user_namespace.c b/kernel/user_namespace.c > index a5bc78c..6382e5e 100644 > --- a/kernel/user_namespace.c > +++ b/kernel/user_namespace.c > @@ -994,6 +994,30

linux-next: manual merge of the tip tree with the sh tree

2016-07-23 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in: arch/sh/include/asm/spinlock.h between commit: 2da83dfce7df ("sh: add J2 atomics using the cas.l instruction") from the sh tree and commit: 726328d92a42 ("locking/spinlock, arch: Update and fix spin_unlock_wait() imple

Re: [PATCH 1/5] namespaces: move user_ns into ns_common

2016-07-23 Thread Eric W. Biederman
Andrey Vagin writes: > Every namespace has a pointer to an user namespace where is was created, > but they're all privately embedded in the individual namespace specific > structures. > > Now we are going to add an user-space interface to get an owning user > namespace, so it looks reasonable to

Re: hwmon: xgene: Add support for X-Gene hwmon driver

2016-07-23 Thread Itaru Kitayama
Hi Hoan, I didn't mention in my previous post, though I think I'm using fairly recent version of Tianocore F/W, and I can confirm there's the PCCT table, [0.00] ACPI: PCCT 0x0047FA826000 000300 (v01 APMXGENE 0003 0113) is this still not enough? If that's the cas

Re: [PATCH 0/5 RFC] Add an interface to discover relationships between namespaces

2016-07-23 Thread Eric W. Biederman
"W. Trevor King" writes: > On Sat, Jul 23, 2016 at 04:56:44PM -0500, Eric W. Biederman wrote: >> "W. Trevor King" writes: >> > On Sat, Jul 23, 2016 at 02:38:56PM -0700, James Bottomley wrote: >> >> On Sat, 2016-07-23 at 14:14 -0700, W. Trevor King wrote: >> >> > namespaces(7) and clone(2) both h

Re: Relax kern_version constraints on bpf kprobes?

2016-07-23 Thread Alexei Starovoitov
On Sat, Jul 23, 2016 at 09:01:39PM -0700, Sargun Dhillon wrote: > In kernel/bpf/syscall.c we restrict programs loading bpf kprobe programs so > attr.kern_version must be exactly equal to what the user is running at the > moment. This makes a lot of sense because kprobes can touch lots of > unstab

Re: Kredit Angebot

2016-07-23 Thread Evelin Farkas
Guten Tag Wir bieten 2 % Darlehen, Business-Darlehen, Risikokapital, Wohnungsbaudarlehen, Business-Darlehen, Working Capital. Land ist kein Hindernis, so zögern Sie nicht uns zu kontaktieren, wenn Sie interessiert sind Mit freundlichen Grüßen, Evelin Farkas

Relax kern_version constraints on bpf kprobes?

2016-07-23 Thread Sargun Dhillon
In kernel/bpf/syscall.c we restrict programs loading bpf kprobe programs so attr.kern_version must be exactly equal to what the user is running at the moment. This makes a lot of sense because kprobes can touch lots of unstable bits of the kernel ABI. Unfortunately, this makes it really difficu

Re: [PATCH net-next v6 0/2] bpf: add bpf_probe_write_user helper & example

2016-07-23 Thread Alexei Starovoitov
On Sat, Jul 23, 2016 at 08:22:04PM -0700, Sargun Dhillon wrote: > This patch series contains two patches that add support for a probe_write > helper to BPF programs. This allows them to manipulate user memory during > the course of tracing. The second patch in the series has an example that > uses

PROBLEM: network data corruption (bisected to e5a4b0bb803b)

2016-07-23 Thread Alan Curry
[1.] One line summary of the problem: network data corruption (bisected to e5a4b0bb803b) [2.] Full description of the problem/report: Note: although my bisect ended at a commit from before 3.19, I have the same symptom in all newer kernels I've tried, up to 4.6.4. The commit was: >commit e5a4b0b

[PATCH v2] include: mman: Use bool instead of int for the return value of arch_validate_prot

2016-07-23 Thread chengang
From: Chen Gang For pure bool function's return value, bool is a little better more or less than int. Signed-off-by: Chen Gang --- arch/powerpc/include/asm/mman.h | 8 include/linux/mman.h| 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/powerpc/i

[PATCH net-next v6 2/2] samples/bpf: Add test/example of using bpf_probe_write_user bpf helper

2016-07-23 Thread Sargun Dhillon
This example shows using a kprobe to act as a dnat mechanism to divert traffic for arbitrary endpoints. It rewrite the arguments to a syscall while they're still in userspace, and before the syscall has a chance to copy the argument into kernel space. Although this is an example, it also acts as a

[PATCH net-next v6 1/2] bpf: Add bpf_probe_write_user BPF helper to be called in tracers

2016-07-23 Thread Sargun Dhillon
This allows user memory to be written to during the course of a kprobe. It shouldn't be used to implement any kind of security mechanism because of TOC-TOU attacks, but rather to debug, divert, and manipulate execution of semi-cooperative processes. Although it uses probe_kernel_write, we limit th

[PATCH net-next v6 0/2] bpf: add bpf_probe_write_user helper & example

2016-07-23 Thread Sargun Dhillon
This patch series contains two patches that add support for a probe_write helper to BPF programs. This allows them to manipulate user memory during the course of tracing. The second patch in the series has an example that uses it, in one the intended ways to divert execution. Thanks to Alexei Star

core.c:undefined reference to `fpu_save'

2016-07-23 Thread kbuild test robot
Hi, It's probably a bug fix that unveils the link errors. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 68093c43f352e4ad36cf1324bbdbd7c723a24dbc commit: c60f169202c7643991a8b4bfeea60e06843d5b5a arch/mn10300/kernel/fpu-nofpu.c: needs asm/elf.h date:

Re: [RFC PATCH v7 7/7] Restartable sequences: self-tests

2016-07-23 Thread Mathieu Desnoyers
- On Jul 23, 2016, at 5:26 PM, Dave Watson davejwat...@fb.com wrote: > Hi Mathieu, > > Implements two basic tests of RSEQ functionality, and one more > > exhaustive parameterizable test. > Thanks for beefing up the tests. I ran this set through our jemalloc > tests using rseq, and everything

Re: hwmon: xgene: Add support for X-Gene hwmon driver

2016-07-23 Thread Hoan Tran
Hi Itaru, > On Jul 23, 2016, at 16:51, Itaru Kitayama wrote: > > Hi Hoan, > > I've been testing your patch set on a Rev B0 system with ACPI, in dmesg > I see: > > [1.546444] xgene-slimpro-i2c APMC0D40:00: i2c mailbox channel request > failed > [1.570062] xgene-slimpro-hwmon APMC0D29:

fs/xfs/xfs_ondisk.h:86:2: error: call to '__compiletime_assert_86' declared with attribute error: XFS: sizeof(xfs_dir2_data_unused_t) is wrong, expected 6

2016-07-23 Thread kbuild test robot
Hi, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 107df03203bb66de56e2caec3bde6d22b55480c5 commit: ab9d1e4f7b0217948a3b35a64178602ab30ff45d Merge branch 'xfs-misc-fixes-4.6-3' into for-next date: 5 months ago co

fs/binfmt_em86.c:73:35: error: passing argument 2 of 'copy_strings_kernel' from incompatible pointer type

2016-07-23 Thread kbuild test robot
Hi, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 107df03203bb66de56e2caec3bde6d22b55480c5 commit: ea8daa7b97842aab8507b5b5b1e3226cf2d514a6 kbuild: Add option to turn incompatible pointer check into error date:

Re: [PATCH v11 4/8] vfio/type1: handle unmap/unpin and replay for VFIO_IOVA_RESERVED slots

2016-07-23 Thread kbuild test robot
Hi, [auto build test ERROR on vfio/next] [also build test ERROR on v4.7-rc7 next-20160722] [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/Eric-Auger/KVM-PCIe-MSI-passthrough-on-ARM-ARM64-kernel-

drivers/mfd/syscon.c:67:9: error: implicit declaration of function 'ioremap'

2016-07-23 Thread kbuild test robot
Hi, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 107df03203bb66de56e2caec3bde6d22b55480c5 commit: ca668f0edfae65438c3f0a3ad5d3e59e3515915f mfd: syscon: Set regmap max_register in of_syscon_register date: 4 mont

Re: [PATCH v4 1/2] bpf: Add bpf_probe_write BPF helper to be called in tracers (kprobes)

2016-07-23 Thread Alexei Starovoitov
On Sat, Jul 23, 2016 at 05:39:42PM -0700, Sargun Dhillon wrote: > The example has been modified to act like a test in the follow up set. It > tests > for the positive case (Did the helper work or not) as opposed to the negative > case (is the helper able to violate the safety constraints we set

Re: [PATCH net-next v5 2/2] samples/bpf: Add test/example of using bpf_probe_write_user bpf helper

2016-07-23 Thread Alexei Starovoitov
On Sat, Jul 23, 2016 at 05:44:11PM -0700, Sargun Dhillon wrote: > This example shows using a kprobe to act as a dnat mechanism to divert > traffic for arbitrary endpoints. It rewrite the arguments to a syscall > while they're still in userspace, and before the syscall has a chance > to copy the arg

Re: [PATCH net-next v5 1/2] bpf: Add bpf_probe_write_user BPF helper to be called in tracers

2016-07-23 Thread Alexei Starovoitov
On Sat, Jul 23, 2016 at 05:43:48PM -0700, Sargun Dhillon wrote: > This allows user memory to be written to during the course of a kprobe. > It shouldn't be used to implement any kind of security mechanism > because of TOC-TOU attacks, but rather to debug, divert, and > manipulate execution of semi-

Re: Ceph fix for 4.7-rc8

2016-07-23 Thread Linus Torvalds
On Sun, Jul 24, 2016 at 12:34 AM, Ilya Dryomov wrote: > > The tag is signed with a brand new key - Sage is on vacation and > I didn't anticipate this. Hopefully that's not a no-no. Hmm. Not only is the signing key new, you apparently haven't even pushed out the key to the usual pgp key servers,

linux-next: build warning after merge of the sh tree

2016-07-23 Thread Stephen Rothwell
Hi Rich, After merging the sh tree, today's linux-next build (x86_64 allmodconfig) produced this warning: WARNING: modpost: missing MODULE_LICENSE() in drivers/spi/spi-jcore.o Introduced by commit 8c7f438f0661 ("spi: add driver for J-Core SPI controller") -- Cheers, Stephen Rothwell

Re: [GIT PULL] KVM bonus fix for 4.7

2016-07-23 Thread Linus Torvalds
On Sun, Jul 24, 2016 at 3:02 AM, Radim Krčmář wrote: > Linus, > > it is possible that you read this pull request before the reverty one > from last Saturday Actually, I read the other one earlier, and just decided that there is no way I can pull anything like that at this stage in the rc series.

Re: [PATCH -next] xtensa: Fix build error due to missing include file

2016-07-23 Thread Max Filippov
On Sun, Jul 24, 2016 at 3:24 AM, Guenter Roeck wrote: > Commit 69d99e6c0d621f ("xtensa: Remove unnecessary of_platform_populate > with default match table") dropped various include files from > arch/xtensa/kernel/setup.c. This results in the following build error. > > arch/xtensa/kernel/setup.c: I

[PATCH net-next v5 2/2] samples/bpf: Add test/example of using bpf_probe_write_user bpf helper

2016-07-23 Thread Sargun Dhillon
This example shows using a kprobe to act as a dnat mechanism to divert traffic for arbitrary endpoints. It rewrite the arguments to a syscall while they're still in userspace, and before the syscall has a chance to copy the argument into kernel space. Although this is an example, it also acts as a

[PATCH net-next v5 1/2] bpf: Add bpf_probe_write_user BPF helper to be called in tracers

2016-07-23 Thread Sargun Dhillon
This allows user memory to be written to during the course of a kprobe. It shouldn't be used to implement any kind of security mechanism because of TOC-TOU attacks, but rather to debug, divert, and manipulate execution of semi-cooperative processes. Although it uses probe_kernel_write, we limit th

[PATCH net-next v5 0/2] bpf: add bpf_probe_write helper & example

2016-07-23 Thread Sargun Dhillon
This patch series contains two patches that add support for a probe_write helper to BPF programs. This allows them to manipulate user memory during the course of tracing. The second patch in the series has an example that uses it, in one the intended ways to divert execution. Thanks to Alexei Star

Re: [PATCH v4 1/2] bpf: Add bpf_probe_write BPF helper to be called in tracers (kprobes)

2016-07-23 Thread Sargun Dhillon
On Sat, Jul 23, 2016 at 12:35:12PM -0700, Alexei Starovoitov wrote: > On Fri, Jul 22, 2016 at 05:05:27PM -0700, Sargun Dhillon wrote: > > It was tested with the tracex7 program on x86-64. > > it's my fault to start tracexN tradition that turned out to be > cumbersome, let's not continue it. Instea

drivers/gpu/drm/i915/i915_guc_submission.c:574: error: 'b_ret' may be used uninitialized in this function

2016-07-23 Thread kbuild test robot
Hi, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 107df03203bb66de56e2caec3bde6d22b55480c5 commit: 0a793ad34f137f146119ec4a4a90694ccab77ea3 drm/i915: Force clean compilation with -Werror date: 3 months ago confi

Re: Adding linux-sh (arch/sh) to linux-next

2016-07-23 Thread Stephen Rothwell
Hi Rich, On Fri, 22 Jul 2016 14:30:06 -0400 Rich Felker wrote: > > Can you please add the linux-sh tree's for-next branch to be pulled > for linux-next? > > git://git.libc.org/linux-sh for-next > > Let me know if anything's wrong with how it's set up. I'm new to > linux-next (and still fa

[PATCH -next] xtensa: Fix build error due to missing include file

2016-07-23 Thread Guenter Roeck
Commit 69d99e6c0d621f ("xtensa: Remove unnecessary of_platform_populate with default match table") dropped various include files from arch/xtensa/kernel/setup.c. This results in the following build error. arch/xtensa/kernel/setup.c: In function ‘xtensa_dt_io_area’: arch/xtensa/kernel/setup.c:213:2

Re: [PATCH 3/7] nfsd: remove redundant i_lookup check

2016-07-23 Thread Al Viro
On Fri, Jul 22, 2016 at 01:48:52PM -0400, J. Bruce Fields wrote: > From: "J. Bruce Fields" > > I'm not sure why this was added. It doesn't seem necessary, and no > other caller does this. lookup_one_len() will explode if you call it for non-directory (== !d_can_lookup(), i.e. something without

'kbuild: simpler generation of assembly constants' causing frv build errors

2016-07-23 Thread Guenter Roeck
Hi, your commit 'kbuild: simpler generation of assembly constants' in next causes build errors when trying to build frv images. arch/frv/kernel/switch_to.S: Assembler messages: arch/frv/kernel/switch_to.S:155: Error: unresolved expression that must be resolved arch/frv/kernel/switch_to.S:160: Er

[PATCH -next] MIPS: ath79: Add missing include file

2016-07-23 Thread Guenter Roeck
Commit ddd0ce87bfde ("mips: Remove unnecessary of_platform_populate with default match table") dropped the include of linux/clk-provider.h from arch/mips/ath79/setup.c. This results in the following build error. arch/mips/ath79/setup.c: In function 'ath79_of_plat_time_init': arch/mips/ath79/setup.

hwmon: xgene: Add support for X-Gene hwmon driver

2016-07-23 Thread Itaru Kitayama
Hi Hoan, I've been testing your patch set on a Rev B0 system with ACPI, in dmesg I see: [1.546444] xgene-slimpro-i2c APMC0D40:00: i2c mailbox channel request failed [1.570062] xgene-slimpro-hwmon APMC0D29:00: no pcc-channel property what other packages or subsystems do we need to make

Re: [PATCH v2] mm: oom: deduplicate victim selection code for memcg and global oom

2016-07-23 Thread Vladimir Davydov
On Thu, Jul 21, 2016 at 08:41:44AM -0400, Johannes Weiner wrote: > On Mon, Jun 27, 2016 at 07:39:54PM +0300, Vladimir Davydov wrote: > > When selecting an oom victim, we use the same heuristic for both memory > > cgroup and global oom. The only difference is the scope of tasks to > > select the vic

Re: [PATCH 1/3] Add a new field to struct shrinker

2016-07-23 Thread Tony Jones
On 07/23/2016 12:43 PM, Rik van Riel wrote: > Janani, > it may make sense to have the code Tony posted be part of > your patch series. Just have both of your Signed-off-by: > lines on that patch. Rik Unfortunately the previous patch doesn't work on my system, which was the point I was trying t

Re: [PATCH 1/5] namespaces: move user_ns into ns_common

2016-07-23 Thread kbuild test robot
Hi, [auto build test ERROR on net/master] [also build test ERROR on v4.7-rc7] [cannot apply to next-20160722] [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-Vagin/namespaces-move-user_ns-

Re: [PATCH 3/3] x86/apic: Clean up the apic delivery mode macro definition

2016-07-23 Thread kbuild test robot
Hi, [auto build test WARNING on iommu/next] [also build test WARNING on v4.7-rc7 next-20160722] [cannot apply to tip/x86/core] [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/Baoquan-He/Enable-le

Re: [PATCH 3/3] x86/apic: Clean up the apic delivery mode macro definition

2016-07-23 Thread kbuild test robot
Hi, [auto build test ERROR on iommu/next] [also build test ERROR on v4.7-rc7 next-20160722] [cannot apply to tip/x86/core] [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/Baoquan-He/Enable-legacy

Re: [PATCH v5 3/3] arm: dts: mt2701: Add auxadc node.

2016-07-23 Thread kbuild test robot
Hi, [auto build test ERROR on robh/for-next] [also build test ERROR on v4.7-rc7 next-20160722] [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/Zhiyong-Tao/AUXADC-Mediatek-auxadc-driver/20160724-0

Re: [PATCH 0/5 RFC] Add an interface to discover relationships between namespaces

2016-07-23 Thread W. Trevor King
On Sat, Jul 23, 2016 at 04:56:44PM -0500, Eric W. Biederman wrote: > "W. Trevor King" writes: > > On Sat, Jul 23, 2016 at 02:38:56PM -0700, James Bottomley wrote: > >> On Sat, 2016-07-23 at 14:14 -0700, W. Trevor King wrote: > >> > namespaces(7) and clone(2) both have: > >> > > >> > When a netw

Re: [PATCH 0/5 RFC] Add an interface to discover relationships between namespaces

2016-07-23 Thread Eric W. Biederman
"W. Trevor King" writes: 2> On Sat, Jul 23, 2016 at 02:38:56PM -0700, James Bottomley wrote: >> On Sat, 2016-07-23 at 14:14 -0700, W. Trevor King wrote: >> > namespaces(7) and clone(2) both have: >> > >> > When a network namespace is freed (i.e., when the last process >> > in the namespace t

Re: [fs] 54cc07a761: BUG: kernel test crashed

2016-07-23 Thread Eric W. Biederman
kernel test robot writes: > FYI, we noticed the following commit: > > https://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace.git > for-testing > commit 54cc07a761deb38318aca64ddf07fc45157c85e0 ("fs: Call d_automount with > the filesystems creds") > > in testcase: boot > > on te

Re: [PATCH 0/5 RFC] Add an interface to discover relationships between namespaces

2016-07-23 Thread W. Trevor King
On Sat, Jul 23, 2016 at 02:38:56PM -0700, James Bottomley wrote: > On Sat, 2016-07-23 at 14:14 -0700, W. Trevor King wrote: > > namespaces(7) and clone(2) both have: > > > > When a network namespace is freed (i.e., when the last process > > in the namespace terminates), its physical network de

Re: [PATCH 2/2] iio: accel: Add support for Domintech DMARD06 accelerometer

2016-07-23 Thread Aleksei Mamlin
On Fri, 22 Jul 2016 00:41:39 +0200 (CEST) Peter Meerwald-Stadler wrote: > > > This patch add support for Domintech DMARD06 accelerometer. > > comments below > > > Domintech DMARD06 is a low-g tri-axial digital accelerometer for > > cost-sensitive consumer application. > > > > Signed-off-by:

Re: [PATCH 0/5 RFC] Add an interface to discover relationships between namespaces

2016-07-23 Thread James Bottomley
On Sat, 2016-07-23 at 14:14 -0700, W. Trevor King wrote: > On Thu, Jul 14, 2016 at 11:20:14AM -0700, Andrey Vagin wrote: > > Pid and user namepaces are hierarchical. There is no way to > > discover parent-child relationships too. > > It bothers me that network namespaces are not hierarchical too

Re: [PATCH v3] virtio: new feature to detect IOMMU device quirk

2016-07-23 Thread kbuild test robot
Hi, [auto build test WARNING on stable/master] [also build test WARNING on v4.7-rc7 next-20160722] [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/Michael-S-Tsirkin/virtio-new-feature-to-detect-I

Re: [PATCH 0/5 RFC] Add an interface to discover relationships between namespaces

2016-07-23 Thread W. Trevor King
On Thu, Jul 14, 2016 at 11:20:14AM -0700, Andrey Vagin wrote: > Pid and user namepaces are hierarchical. There is no way to discover > parent-child relationships too. It bothers me that network namespaces are not hierarchical too ;). namespaces(7) and clone(2) both have: When a network namespac

Re: [PATCH 32/32] Staging/octeon-usb/octeon-hcd.c: Compression of lines for immediate return This patch compresses two lines in to a single line in file octeon-hcd.c

2016-07-23 Thread Julia Lawall
On Sat, 23 Jul 2016, Markus Böhme wrote: > Nadim, > > several points stand out in your patch: > > On 07/22/2016 12:17 PM, Nadim almas wrote: > > if immediate return statement is found. It also removes variable > > bytes_written as > > it is no longer needed. > > > > It is done using script Cocci

Re: [PATCH 32/32] Staging/octeon-usb/octeon-hcd.c: Compression of lines for immediate return This patch compresses two lines in to a single line in file octeon-hcd.c

2016-07-23 Thread Markus Böhme
Nadim, several points stand out in your patch: On 07/22/2016 12:17 PM, Nadim almas wrote: > if immediate return statement is found. It also removes variable > bytes_written as > it is no longer needed. > > It is done using script Coccinelle. And coccinelle uses following > semantic > patch for t

Re: [PATCH] Coccinelle: Script to replace allocate and memcpy with zalloc functions

2016-07-23 Thread Julia Lawall
On Sun, 24 Jul 2016, Amitoj Kaur Chawla wrote: > This script finds instances of allocate and memcpy which can be > replaced with a direct call to zalloc equivalent of a function. > > Signed-off-by: Amitoj Kaur Chawla Acked-by: Julia Lawall > --- > scripts/coccinelle/api/zalloc.cocci | 556 > +

[PATCH] Coccinelle: Script to replace allocate and memcpy with zalloc functions

2016-07-23 Thread Amitoj Kaur Chawla
This script finds instances of allocate and memcpy which can be replaced with a direct call to zalloc equivalent of a function. Signed-off-by: Amitoj Kaur Chawla --- scripts/coccinelle/api/zalloc.cocci | 556 1 file changed, 556 insertions(+) create mode 100

Re: [PATCH 2/2] mm: optimize copy_page_to/from_iter_iovec

2016-07-23 Thread Andi Kleen
Mikulas Patocka writes: > copy = min(bytes, iov->iov_len - skip); > > +#ifdef CONFIG_HIGHMEM > if (!fault_in_pages_writeable(buf, copy)) { If you use IS_ENABLED in the if here ... > kunmap(page); > + > +#ifdef CONFIG_HIGHMEM > done: > +#endif ... you don't need this ifdef.

kexec: device shutdown vs. remove

2016-07-23 Thread Benjamin Herrenschmidt
Hi ! This is somewhat of a recurring issue, some of my previous attempts on lkml, I suspect, were just drowned in the noise. Eric, we had a quick discussion about this a while back but I don't think we reached a conclusion. A bit of context: On OpenPOWER machines, we have a Linux based bootloader

Re: [tip:x86/mm] x86/mm/cpa: Fix populate_pgd(): Stop trying to deallocate failed PUDs

2016-07-23 Thread Nicolai Stange
tip-bot for Andy Lutomirski writes: > Valdis Kletnieks bisected a boot failure back to this recent commit: > > 360cb4d15567 ("x86/mm/cpa: In populate_pgd(), don't set the PGD entry until > it's populated") > FYI, I faced the same issue and this patch, applied directly on top of the faulty 360

Re: [PATCH 1/3] Add a new field to struct shrinker

2016-07-23 Thread Rik van Riel
On Fri, 2016-07-22 at 21:05 -0700, Tony Jones wrote: > On 07/22/2016 06:27 PM, Tony Jones wrote: > > On 07/20/2016 07:54 AM, Michal Hocko wrote: > > > > > > Michal, just to make sure I understand you correctly, do you > > > > mean that we > > > > could infer the names of the shrinkers by looking a

Re: [PATCH v4 1/2] bpf: Add bpf_probe_write BPF helper to be called in tracers (kprobes)

2016-07-23 Thread Alexei Starovoitov
On Fri, Jul 22, 2016 at 05:05:27PM -0700, Sargun Dhillon wrote: > It was tested with the tracex7 program on x86-64. it's my fault to start tracexN tradition that turned out to be cumbersome, let's not continue it. Instead could you rename it to something meaningful? Like test_probe_write_user ? Ri

[PATCH] spi: pic32: fixup wait_for_completion_timeout return handling

2016-07-23 Thread Nicholas Mc Guire
wait_for_completion_timeout returns unsigned long not int so the check for <= 0 should be == 0 here. Signed-off-by: Nicholas Mc Guire --- API non-compliance was located by coccinelle Compile tested with: pic32mzda_defconfig + CONFIG_SPI=y, CONFIG_SPI_PIC32=m Patch is against 4.7.0-rc7 (localve

[tip:x86/mm] x86/mm/cpa: Add missing comment in populate_pdg()

2016-07-23 Thread tip-bot for Andy Lutomirski
Commit-ID: 55920d31f1e3fea06702c74271dd56c4fc9b70ca Gitweb: http://git.kernel.org/tip/55920d31f1e3fea06702c74271dd56c4fc9b70ca Author: Andy Lutomirski AuthorDate: Sat, 23 Jul 2016 09:59:28 -0700 Committer: Ingo Molnar CommitDate: Sat, 23 Jul 2016 21:17:10 +0200 x86/mm/cpa: Add missing

[tip:x86/mm] x86/mm/cpa: Fix populate_pgd(): Stop trying to deallocate failed PUDs

2016-07-23 Thread tip-bot for Andy Lutomirski
Commit-ID: 530dd8d4b9daf77e3e5d145a26210d91ced954c7 Gitweb: http://git.kernel.org/tip/530dd8d4b9daf77e3e5d145a26210d91ced954c7 Author: Andy Lutomirski AuthorDate: Fri, 22 Jul 2016 21:58:08 -0700 Committer: Ingo Molnar CommitDate: Sat, 23 Jul 2016 21:13:25 +0200 x86/mm/cpa: Fix populate

Re: [tip:x86/mm] x86/mm/cpa: Fix populate_pgd(): Stop trying to deallocate failed PUDs

2016-07-23 Thread Ingo Molnar
* Linus Torvalds wrote: > On Sat, Jul 23, 2016 at 4:46 PM, tip-bot for Andy Lutomirski > wrote: > > > > Fixing this directly is difficult or impossible because of the awful > > state of Linux's page table accessors. > > Quite frankly, this part of the message is misleading and wrong. Fair eno

Re: [PATCH] net: neigh: disallow state transition DELAY->STALE in neigh_update()

2016-07-23 Thread Julian Anastasov
Hello, On Sat, 23 Jul 2016, Chunhui He wrote: > The neigh system is to reduce ARP traffic, that is good. The problem is it > fails > to handle some coner cases. > > The coner case is (let's forget my case above): > In NUD_DELAY, the neigh system is waiting for a proof of reachablity. I

[PATCH] spi: pic32-sqi: fixup wait_for_completion_timeout return handling

2016-07-23 Thread Nicholas Mc Guire
wait_for_completion_timeout returns unsigned long not int so the check for <= 0 should be == 0 here, and the type unsigned long. The function return is set to -ETIMEDOUT to reflect the actual problem. Signed-off-by: Nicholas Mc Guire --- the only call site of pic32_sqi_one_messag() is in drivers

[PATCH] staging: sm750fb: Fix block comment style

2016-07-23 Thread Edward Lipinsky
This patch fixes the checkpatch.pl warning: WARNING: Block comments use * on subsequent lines Signed-off-by: Edward Lipinsky --- drivers/staging/sm750fb/ddk750_dvi.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/staging/sm750fb/ddk750_dvi.c b/drivers/stagi

Re: [RFC PATCH 1/2] mempool: do not consume memory reserves from the reclaim path

2016-07-23 Thread Vlastimil Babka
On 07/22/2016 09:44 PM, Andrew Morton wrote: > On Fri, 22 Jul 2016 14:26:19 +0200 Vlastimil Babka wrote: > >> On 07/22/2016 08:37 AM, Michal Hocko wrote: >>> On Thu 21-07-16 16:53:09, Michal Hocko wrote: From d64815758c212643cc1750774e2751721685059a Mon Sep 17 00:00:00 2001 From: Michal

  1   2   >