Re: [RFC PATCH] usb: host: xhci: allow __GFP_FS in dma allocation

2019-05-23 Thread Christoph Hellwig
On Thu, May 23, 2019 at 02:32:09PM +0200, Oliver Neukum wrote: > > Please switch to use memalloc_noio_save() instead. > > Thinking about this again, we have a problem. We introduced > memalloc_noio_save() in 3.10 . Hence the code should have been > correct in v4.14. Which means that either > 65182

Re: [PATCH 2/3] firmware: add offset to request_firmware_into_buf

2019-05-23 Thread Scott Branden
Hi Greg, On 2019-05-22 10:52 p.m., Greg Kroah-Hartman wrote: On Wed, May 22, 2019 at 07:51:12PM -0700, Scott Branden wrote: Add offset to request_firmware_into_buf to allow for portions of firmware file to be read into a buffer. Necessary where firmware needs to be loaded in portions from file

Re: [PATCH v2] signal: Adjust error codes according to restore_user_sigmask()

2019-05-23 Thread Oleg Nesterov
On 05/23, David Laight wrote: > > From: Oleg Nesterov > > On 05/23, David Laight wrote: > > > > > > I'm confused... > > > > Me too. To clarify, the current code is obviously buggy, pselect/whatever > > shouldn't return 0 (or anything else) if it was interrupted and we are going > > to deliver the s

Re: [RFC v2 1/2] clocksource: davinci-timer: add support for clockevents

2019-05-23 Thread Daniel Lezcano
On 23/05/2019 14:58, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > Currently the clocksource and clockevent support for davinci platforms > lives in mach-davinci. It hard-codes many things, uses global variables, > implements functionalities unused by any platform and has code fragme

Re: [PATCH v7 2/4] soc: qcom: Add AOSS QMP driver

2019-05-23 Thread Doug Anderson
Hi, On Tue, Apr 30, 2019 at 9:38 PM Bjorn Andersson wrote: > > +static int qmp_qdss_clk_prepare(struct clk_hw *hw) > +{ > + struct qmp *qmp = container_of(hw, struct qmp, qdss_clk); > + char buf[QMP_MSG_LEN] = "{class: clock, res: qdss, val: 1}"; nit: "static const" the buf? No need

Re: [PATCH 3/3] soc: qcom: mdt_loader: add offset to request_firmware_into_buf

2019-05-23 Thread Scott Branden
Hi Greg, On 2019-05-22 10:52 p.m., Greg Kroah-Hartman wrote: On Wed, May 22, 2019 at 07:51:13PM -0700, Scott Branden wrote: Adjust request_firmware_into_buf API to allow for portions of firmware file to be read into a buffer. mdt_loader still retricts request fo whole file read into buffer. S

Re: Getting empty callchain from perf_callchain_kernel()

2019-05-23 Thread Kairui Song
On Thu, May 23, 2019 at 11:24 PM Josh Poimboeuf wrote: > > On Thu, May 23, 2019 at 10:50:24PM +0800, Kairui Song wrote: > > > > Hi Josh, this still won't fix the problem. > > > > > > > > Problem is not (or not only) with ___bpf_prog_run, what actually went > > > > wrong is with the JITed bpf code

[PATCH v1 0/9] KVM selftests for s390x

2019-05-23 Thread Thomas Huth
This patch series enables the KVM selftests for s390x. As a first test, the sync_regs from x86 has been adapted to s390x, and after a fix for KVM_CAP_MAX_VCPU_ID on s390x, the kvm_create_max_vcpus is now enabled here, too. Please note that the ucall() interface is not used yet - since s390x neithe

[PATCH 1/9] KVM: selftests: Wrap vcpu_nested_state_get/set functions with x86 guard

2019-05-23 Thread Thomas Huth
struct kvm_nested_state is only available on x86 so far. To be able to compile the code on other architectures as well, we need to wrap the related code with #ifdefs. Reviewed-by: Andrew Jones Signed-off-by: Thomas Huth --- tools/testing/selftests/kvm/include/kvm_util.h | 2 ++ tools/testing/se

[PATCH 2/9] KVM: selftests: Guard struct kvm_vcpu_events with __KVM_HAVE_VCPU_EVENTS

2019-05-23 Thread Thomas Huth
The struct kvm_vcpu_events code is only available on certain architectures (arm, arm64 and x86). To be able to compile kvm_util.c also for other architectures, we have to fence the code with __KVM_HAVE_VCPU_EVENTS. Reviewed-by: David Hildenbrand Signed-off-by: Thomas Huth --- tools/testing/self

[PATCH 3/9] kvm: selftests: aarch64: fix default vm mode

2019-05-23 Thread Thomas Huth
From: Andrew Jones VM_MODE_P52V48_4K is not a valid mode for AArch64. Replace its use in vm_create_default() with a mode that works and represents a good AArch64 default. (We didn't ever see a problem with this because we don't have any unit tests using vm_create_default(), but it's good to get i

[PATCH 4/9] KVM: selftests: Introduce a VM_MODE_DEFAULT macro for the default bits

2019-05-23 Thread Thomas Huth
This will be required later for tests like the kvm_create_max_vcpus test that do not use the vm_create_default() function. Signed-off-by: Thomas Huth --- tools/testing/selftests/kvm/include/kvm_util.h | 6 ++ tools/testing/selftests/kvm/lib/aarch64/processor.c | 2 +- tools/testing/self

[PATCH 6/9] KVM: selftests: Add processor code for s390x

2019-05-23 Thread Thomas Huth
Code that takes care of basic CPU setup, page table walking, etc. Signed-off-by: Thomas Huth --- MAINTAINERS | 1 + tools/testing/selftests/kvm/Makefile | 1 + .../selftests/kvm/include/s390x/processor.h | 22 ++ .../selftests/kvm/lib/s390x/proce

[PATCH 5/9] KVM: selftests: Align memory region addresses to 1M on s390x

2019-05-23 Thread Thomas Huth
On s390x, there is a constraint that memory regions have to be aligned to 1M (or running the VM will fail). Introduce a new "alignment" variable in the vm_userspace_mem_region_add() function which now can be used for both, huge page and s390x alignment requirements. Signed-off-by: Thomas Huth ---

[PATCH 8/9] KVM: s390: Do not report unusabled IDs via KVM_CAP_MAX_VCPU_ID

2019-05-23 Thread Thomas Huth
KVM_CAP_MAX_VCPU_ID is currently always reporting KVM_MAX_VCPU_ID on all architectures. However, on s390x, the amount of usable CPUs is determined during runtime - it is depending on the features of the machine the code is running on. Since we are using the vcpu_id as an index into the SCA structur

[PATCH 7/9] KVM: selftests: Add the sync_regs test for s390x

2019-05-23 Thread Thomas Huth
The test is an adaption of the same test for x86. Note that there are some differences in the way how s390x deals with the kvm_valid_regs in struct kvm_run, so some of the tests had to be removed. Also this test is not using the ucall() interface on s390x yet (which would need some work to be usabl

[PATCH 9/9] KVM: selftests: Move kvm_create_max_vcpus test to generic code

2019-05-23 Thread Thomas Huth
There is nothing x86-specific in the test apart from the VM_MODE_P52V48_4K which we can now replace with VM_MODE_DEFAULT. Thus let's move the file to the main folder and enable it for aarch64 and s390x, too. Signed-off-by: Thomas Huth --- tools/testing/selftests/kvm/Makefile

Re: [Ocfs2-devel] [PATCH V3 2/2] ocfs2: add locking filter debugfs file

2019-05-23 Thread Wengang
Hi Gang, Could you paste an example of outputs before patch VS that after patch? I think that would directly show what the patch does. thanks, wengang On 05/23/2019 03:40 AM, Gang He wrote: Add locking filter debugfs file, which is used to filter lock resources dump from locking_state debugfs

Re: [PATCH] misc: sgi-xp: Properly initialize buf in xpc_get_rsvd_page_pa

2019-05-23 Thread Stephen Hines
Looks good to me. :) Since I don't contribute to the Linux kernel directly, I appreciate you picking this up. Thanks, Steve On Thu, May 23, 2019 at 9:20 AM Nathan Chancellor wrote: > > Clang warns: > > drivers/misc/sgi-xp/xpc_partition.c:73:14: warning: variable 'buf' is > uninitialized when use

Re: [PATCH 2/3] firmware: add offset to request_firmware_into_buf

2019-05-23 Thread Greg Kroah-Hartman
On Thu, May 23, 2019 at 09:36:02AM -0700, Scott Branden wrote: > Hi Greg, > > On 2019-05-22 10:52 p.m., Greg Kroah-Hartman wrote: > > On Wed, May 22, 2019 at 07:51:12PM -0700, Scott Branden wrote: > > > Add offset to request_firmware_into_buf to allow for portions > > > of firmware file to be read

Re: [PATCH v2] consolemap: Fix a memory leaking bug in drivers/tty/vt/consolemap.c

2019-05-23 Thread Kees Cook
On Thu, May 23, 2019 at 08:34:52AM +0800, Gen Zhang wrote: > In function con_insert_unipair(), when allocation for p2 and p1[n] > fails, ENOMEM is returned, but previously allocated p1 is not freed, > remains as leaking memory. Thus we should free p1 as well when this > allocation fails. > > Sign

Re: [PATCH 3/3] soc: qcom: mdt_loader: add offset to request_firmware_into_buf

2019-05-23 Thread Greg Kroah-Hartman
On Thu, May 23, 2019 at 09:41:49AM -0700, Scott Branden wrote: > Hi Greg, > > On 2019-05-22 10:52 p.m., Greg Kroah-Hartman wrote: > > On Wed, May 22, 2019 at 07:51:13PM -0700, Scott Branden wrote: > > > Adjust request_firmware_into_buf API to allow for portions > > > of firmware file to be read in

[PATCH] 9p/vfs_super.c: Remove unused parameter data in v9fs_fill_super

2019-05-23 Thread Bharath Vedartham
v9fs_fill_super has a param 'void *data' which is unused in the function. This patch removes the 'void *data' param in v9fs_fill_super and changes the parameters in all function calls of v9fs_fill_super. Signed-off-by: Bharath Vedartham --- fs/9p/vfs_super.c | 4 ++-- 1 file changed, 2 insertio

RE: [PATCH v2] signal: Adjust error codes according to restore_user_sigmask()

2019-05-23 Thread David Laight
From: Oleg Nesterov > Sent: 23 May 2019 17:36 > On 05/23, David Laight wrote: > > > > From: Oleg Nesterov > > > On 05/23, David Laight wrote: ... > > > Not sure I understand... OK, suppose that you do > > > > > > block-all-signals; > > > ret = pselect(..., sigmask(SIG_URG)); > > > > > > if it r

Re: [PATCH] staging: most: usb: Remove variable frame_size

2019-05-23 Thread Greg KH
On Thu, May 23, 2019 at 06:53:34PM +0530, Nishka Dasgupta wrote: > Remove variable frame_size as its multiple usages are all independent of > each other and so can be returned separately. > Issue found with Coccinelle. > > Signed-off-by: Nishka Dasgupta > --- > drivers/staging/most/usb/usb.c | 1

Re: [PATCH v2 0/5] arm64: IRQ priority masking and Pseudo-NMI fixes

2019-05-23 Thread Will Deacon
Hi Julien, On Mon, Apr 29, 2019 at 05:00:02PM +0100, Julien Thierry wrote: > [Changing the title to make it reflex more the status of the series.] > > Version one[1] of this series attempted to fix the issue reported by > Zenghui[2] when using the function_graph tracer with IRQ priority > masking

Re: [PATCH v15 00/17] arm64: untag user pointers passed to the kernel

2019-05-23 Thread Catalin Marinas
On Thu, May 23, 2019 at 11:42:57AM +0100, Dave P Martin wrote: > On Wed, May 22, 2019 at 09:20:52PM -0300, Jason Gunthorpe wrote: > > On Wed, May 22, 2019 at 02:49:28PM +0100, Dave Martin wrote: > > > If multiple people will care about this, perhaps we should try to > > > annotate types more explic

Re: [PATCH v3 1/2] dt-bindings: edac: arm-dmc520.txt

2019-05-23 Thread Mark Rutland
On Thu, May 16, 2019 at 02:35:47AM +, Lei Wang wrote: > From: Lei Wang > > This is the device tree bindings for new EDAC driver dmc520_edac.c. > > Signed-off-by: Lei Wang > --- > .../devicetree/bindings/edac/arm-dmc520.txt| 26 > ++ > 1 file changed, 26 inserti

Re: [zfs-devel] Re: [PATCH] x86/fpu: allow kernel_fpu_{begin,end} to be used by non-GPL modules

2019-05-23 Thread Mason Loring Bliss
On Wed, May 22, 2019 at 12:09:59PM +0200, Greg KH wrote: > No, please, we have gone over this before, we do not care at all about > external kernel modules, ESPECIALLY ones that are not GPL compatible. The best option here is for you to start caring. Makes the world a better place. Free software

Re: [PATCH v13 1/2] arm: dts: mt2712: add uart APDMA to device tree

2019-05-23 Thread Matthias Brugger
On 23/05/2019 09:35, Long Cheng wrote: > 1. add uart APDMA controller device node > 2. add uart 0/1/2/3/4/5 DMA function > > Signed-off-by: Long Cheng > --- > arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 51 > + > 1 file changed, 51 insertions(+) > > diff --git

Re: [PATCH v13 1/2] arm: dts: mt2712: add uart APDMA to device tree

2019-05-23 Thread Matthias Brugger
On 23/05/2019 19:04, Matthias Brugger wrote: > > > On 23/05/2019 09:35, Long Cheng wrote: >> 1. add uart APDMA controller device node >> 2. add uart 0/1/2/3/4/5 DMA function >> >> Signed-off-by: Long Cheng >> --- >> arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 51 >> +++

Re: [PATCH bpf-next v2 RESEND 0/2] Move bpf_printk to bpf_helpers.h

2019-05-23 Thread Yonghong Song
On 5/23/19 5:53 AM, Michal Rostecki wrote: > This series of patches move the commonly used bpf_printk macro to > bpf_helpers.h which is already included in all BPF programs which > defined that macro on their own. > > v1->v2: > - If HBM_DEBUG is not defined in hbm sample, undefine bpf_printk and

Re: [PATCH v2 3/5] arm64: dts: meson: g12a: add mdio multiplexer

2019-05-23 Thread Kevin Hilman
Jerome Brunet writes: > On Mon, 2019-05-20 at 21:05 +0200, Andrew Lunn wrote: >> > > + int_mdio: mdio@1 { >> > > + reg = <1>; >> > > + #address-cells = <1>; >> > > +

Re: [PATCH 4/9] KVM: selftests: Introduce a VM_MODE_DEFAULT macro for the default bits

2019-05-23 Thread Andrew Jones
On Thu, May 23, 2019 at 06:43:04PM +0200, Thomas Huth wrote: > This will be required later for tests like the kvm_create_max_vcpus > test that do not use the vm_create_default() function. > > Signed-off-by: Thomas Huth > --- > tools/testing/selftests/kvm/include/kvm_util.h | 6 ++ > too

RE: [PATCH v3 2/2] EDAC: add EDAC driver for DMC520

2019-05-23 Thread Rui Zhao
Hi James, On Thursday, May 23, 2019 9:32 AM, James Morse wrote: > Hmm, you're listing someone else as maintainer of this driver. > I think we'd need to see an Ack from Rui Zhao... I can confirm that Lei is a maintainer for this driver. Thanks, Rui

Re: [PATCH v2 0/5] arm64: dts: meson: g12a: add ethernet support

2019-05-23 Thread Kevin Hilman
Jerome Brunet writes: > Add network support to the g12a SoC family > > This is series is based on 5.2-rc1 and the patches I already sent last > week. If this is not convient for you, please let me know, I'll rebase. Queued for v5.3. > Also, you will need to get the clk tag "clk-meson-5.3-1-fixe

Re: [PATCH V2 0/4] Prevent vhost kthread from hogging CPU

2019-05-23 Thread Michael S. Tsirkin
On Sat, May 18, 2019 at 01:27:12PM -0700, David Miller wrote: > From: Jason Wang > Date: Fri, 17 May 2019 00:29:48 -0400 > > > Hi: > > > > This series try to prevent a guest triggerable CPU hogging through > > vhost kthread. This is done by introducing and checking the weight > > after each requ

Re: Getting empty callchain from perf_callchain_kernel()

2019-05-23 Thread Josh Poimboeuf
On Fri, May 24, 2019 at 12:41:59AM +0800, Kairui Song wrote: > On Thu, May 23, 2019 at 11:24 PM Josh Poimboeuf wrote: > > > > On Thu, May 23, 2019 at 10:50:24PM +0800, Kairui Song wrote: > > > > > Hi Josh, this still won't fix the problem. > > > > > > > > > > Problem is not (or not only) with ___

Re: [PATCH 1/1] infiniband/mm: convert put_page() to put_user_page*()

2019-05-23 Thread Ira Weiny
On Thu, May 23, 2019 at 12:25:37AM -0700, john.hubb...@gmail.com wrote: > From: John Hubbard > > For infiniband code that retains pages via get_user_pages*(), > release those pages via the new put_user_page(), or > put_user_pages*(), instead of put_page() > > This is a tiny part of the second st

[PATCH RFC] sscanf: Fix integer overflow with sscanf field width

2019-05-23 Thread Fredrik Noring
Hi, This fixes 53809751ac23 ("sscanf: don't ignore field widths for numeric conversions"). sscanf overflows integers with simple strings such as dates. As an example, consider r = sscanf("20190523123456", "%4d%2d%2d%2d%2d%2d", &year, &month, &day, &hour, &m

Re: [PATCH v3] EDAC, mellanox: Add ECC support for BlueField DDR4

2019-05-23 Thread James Morse
Hi Junhan, On 21/03/2019 14:31, Junhan Zhou wrote: > Add ECC support for Mellanox BlueField SoC DDR controller. > This requires SMC to the running Arm Trusted Firmware to report > what is the current memory configuration. Sorry for the delay on this, it slipped through the cracks. (Please don't r

Re: [PATCH 0/2] mailbox: arm: introduce smc triggered mailbox

2019-05-23 Thread Florian Fainelli
Hi, On 5/22/19 10:50 PM, Peng Fan wrote: > This is a modified version from Andre Przywara's patch series > https://lore.kernel.org/patchwork/cover/812997/. > [1] is a draft implementation of i.MX8MM SCMI ATF implementation that > use smc as mailbox, power/clk is included, but only part of clk has

Re: [PATCH 1/1] infiniband/mm: convert put_page() to put_user_page*()

2019-05-23 Thread Jason Gunthorpe
On Thu, May 23, 2019 at 10:28:52AM -0700, Ira Weiny wrote: > > > > @@ -686,8 +686,8 @@ int ib_umem_odp_map_dma_pages(struct ib_umem_odp > > *umem_odp, u64 user_virt, > > * ib_umem_odp_map_dma_single_page(). > > */ > > if (npages - (j

Re: [PATCH v4 0/1] Use HMM for ODP v4

2019-05-23 Thread Jerome Glisse
On Thu, May 23, 2019 at 01:34:29PM -0300, Jason Gunthorpe wrote: > On Thu, May 23, 2019 at 11:52:08AM -0400, Jerome Glisse wrote: > > On Thu, May 23, 2019 at 12:41:49PM -0300, Jason Gunthorpe wrote: > > > On Thu, May 23, 2019 at 11:04:32AM -0400, Jerome Glisse wrote: > > > > On Wed, May 22, 2019 at

[Patch v3] staging: rtl8723bs: core: rtw_mlme_ext: fix warning Unneeded variable: "ret"

2019-05-23 Thread Hariprasad Kelam
This patch fixes below warnings reported by coccicheck drivers/staging/rtl8723bs/core/rtw_mlme_ext.c:1888:14-17: Unneeded variable: "ret". Return "_FAIL" on line 1920 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c:466:5-8: Unneeded variable: "res". Return "_SUCCESS" on line 494 Signed-off-by: Hari

Re: [PATCH 5/9] KVM: selftests: Align memory region addresses to 1M on s390x

2019-05-23 Thread Andrew Jones
On Thu, May 23, 2019 at 06:43:05PM +0200, Thomas Huth wrote: > On s390x, there is a constraint that memory regions have to be aligned > to 1M (or running the VM will fail). Introduce a new "alignment" variable > in the vm_userspace_mem_region_add() function which now can be used for > both, huge pa

xarray breaks thrashing detection and cgroup isolation

2019-05-23 Thread Johannes Weiner
Hello, I noticed that recent upstream kernels don't account the xarray nodes of the page cache to the allocating cgroup, like we used to do for the radix tree nodes. This results in broken isolation for cgrouped apps, allowing them to escape their containment and harm other cgroups and the system

Re: r8169: Link only up after 16 s (A link change request failed with some changes committed already. Interface enp3s0 may have been left with an inconsistent configuration, please check.)

2019-05-23 Thread Heiner Kallweit
On 23.05.2019 13:00, Paul Menzel wrote: > Dear Linux folks, > > > I optimized the Linux kernel configuration on my ASRock E350M1, and it now > boots really fast. > > Unfortunately, that seems to cause the network driver to hit some corner > case, so that the link is supposedly down, although it

Re: [PATCH 1/1] infiniband/mm: convert put_page() to put_user_page*()

2019-05-23 Thread John Hubbard
On 5/23/19 10:32 AM, Jason Gunthorpe wrote: On Thu, May 23, 2019 at 10:28:52AM -0700, Ira Weiny wrote: @@ -686,8 +686,8 @@ int ib_umem_odp_map_dma_pages(struct ib_umem_odp *umem_odp, u64 user_virt, * ib_umem_odp_map_dma_single_page(). */

Re: [PATCH 4.19 144/187] selftests/bpf: skip verifier tests for unsupported program types

2019-05-23 Thread gre...@linuxfoundation.org
On Thu, May 23, 2019 at 03:46:26PM +0200, Daniel Borkmann wrote: > On 05/23/2019 12:27 PM, Rantala, Tommi T. (Nokia - FI/Espoo) wrote: > > On Thu, 2019-04-04 at 10:48 +0200, Greg Kroah-Hartman wrote: > >> 4.19-stable review patch. If anyone has any objections, please let > >> me know. > >> > >> --

RE: [PATCH v3 1/2] dt-bindings: edac: arm-dmc520.txt

2019-05-23 Thread Lei Wang (BSP)
(+Rui/Hang/Sasha) Hi Mark, please see inline with "[Lei]" tag. Thanks! -Lei -Original Message- From: Mark Rutland Sent: Thursday, May 23, 2019 9:59 AM To: Lei Wang Cc: b...@alien8.de; james.mo...@arm.com; robh...@kernel.org; devicet...@vger.kernel.org; linux-kernel@vger.kernel.org; l

Re: [PATCH v4 0/1] Use HMM for ODP v4

2019-05-23 Thread Jason Gunthorpe
On Thu, May 23, 2019 at 01:33:03PM -0400, Jerome Glisse wrote: > On Thu, May 23, 2019 at 01:34:29PM -0300, Jason Gunthorpe wrote: > > On Thu, May 23, 2019 at 11:52:08AM -0400, Jerome Glisse wrote: > > > On Thu, May 23, 2019 at 12:41:49PM -0300, Jason Gunthorpe wrote: > > > > On Thu, May 23, 2019 at

Re: [PATCH 8/9] KVM: s390: Do not report unusabled IDs via KVM_CAP_MAX_VCPU_ID

2019-05-23 Thread Andrew Jones
On Thu, May 23, 2019 at 06:43:08PM +0200, Thomas Huth wrote: > KVM_CAP_MAX_VCPU_ID is currently always reporting KVM_MAX_VCPU_ID on all > architectures. However, on s390x, the amount of usable CPUs is determined > during runtime - it is depending on the features of the machine the code > is running

Re: [PATCH 9/9] KVM: selftests: Move kvm_create_max_vcpus test to generic code

2019-05-23 Thread Andrew Jones
On Thu, May 23, 2019 at 06:43:09PM +0200, Thomas Huth wrote: > There is nothing x86-specific in the test apart from the VM_MODE_P52V48_4K > which we can now replace with VM_MODE_DEFAULT. Thus let's move the file to > the main folder and enable it for aarch64 and s390x, too. > > Signed-off-by: Thom

[PATCH] elf: fix "start_code" evaluation

2019-05-23 Thread Alexey Dobriyan
Only executable ELF program headers should change ->start_code. Signed-off-by: Alexey Dobriyan --- fs/binfmt_elf.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/binfmt_elf.c +++ b/fs/binfmt_elf.c @@ -1026,7 +1026,7 @@ static int load_elf_binary(struct linux_binprm *bprm)

Re: [PATCH 2/9] KVM: selftests: Guard struct kvm_vcpu_events with __KVM_HAVE_VCPU_EVENTS

2019-05-23 Thread Andrew Jones
On Thu, May 23, 2019 at 06:43:02PM +0200, Thomas Huth wrote: > The struct kvm_vcpu_events code is only available on certain architectures > (arm, arm64 and x86). To be able to compile kvm_util.c also for other > architectures, we have to fence the code with __KVM_HAVE_VCPU_EVENTS. > > Reviewed-by:

Re: [PATCH 1/1] infiniband/mm: convert put_page() to put_user_page*()

2019-05-23 Thread John Hubbard
On 5/23/19 8:31 AM, Jerome Glisse wrote: [...] Reviewed-by: Jérôme Glisse Thanks for the review! Between i have a wishlist see below [...] diff --git a/drivers/infiniband/core/umem.c b/drivers/infiniband/core/umem.c index e7ea819fcb11..673f0d240b3e 100644 --- a/drivers/infiniband/core/um

Re: [PATCH v2 bpf-next 4/4] selftests/bpf: add auto-detach test

2019-05-23 Thread Roman Gushchin
On Wed, May 22, 2019 at 10:47:24PM -0700, Yonghong Song wrote: > > > On 5/22/19 4:20 PM, Roman Gushchin wrote: > > Add a kselftest to cover bpf auto-detachment functionality. > > The test creates a cgroup, associates some resources with it, > > attaches a couple of bpf programs and deletes the cg

Re: [PATCH] misc: sgi-xp: Properly initialize buf in xpc_get_rsvd_page_pa

2019-05-23 Thread Nick Desaulniers
On Thu, May 23, 2019 at 9:20 AM Nathan Chancellor wrote: > > Clang warns: > > drivers/misc/sgi-xp/xpc_partition.c:73:14: warning: variable 'buf' is > uninitialized when used within its own initialization [-Wuninitialized] > void *buf = buf; > ~~~ ^~~ > 1 warning generated.

Re: [PATCH v7 2/4] soc: qcom: Add AOSS QMP driver

2019-05-23 Thread Stephen Boyd
Quoting Doug Anderson (2019-05-23 09:38:13) > Hi, > > On Tue, Apr 30, 2019 at 9:38 PM Bjorn Andersson > wrote: > > > +static int qmp_qdss_clk_add(struct qmp *qmp) > > +{ > > + struct clk_init_data qdss_init = { > > + .ops = &qmp_qdss_clk_ops, > > + .name = "qdss

RE: [PATCH] scripts/spelling.txt: Add spelling fix for prohibited

2019-05-23 Thread Stephen Boyd
Quoting Chris Paterson (2019-05-23 02:07:51) > > From: Stephen Boyd > > > > Ok. Or Chris can split the patch into the clk part and the scripts/ > > part? They're only loosely related to each other, so I'm not sure why > > they were sent in one patch besides for ease of transport. > > Happy to s

Re: [PATCH RFC] sscanf: Fix integer overflow with sscanf field width

2019-05-23 Thread Alexey Dobriyan
> What are your thoughts? Don't use sscanf(3), it is misdesigned.

Re: [PATCH] staging: fieldbus: anybuss: Remove unnecessary variables

2019-05-23 Thread Greg KH
On Thu, May 23, 2019 at 09:02:11AM -0400, Sven Van Asbroeck wrote: > On Thu, May 23, 2019 at 5:09 AM Dan Carpenter > wrote: > > > > Sven, you should add yourself to the MAINTAINERS file. > > Greg, what do you think? Yes!

Re: [PATCH v2] signal: Adjust error codes according to restore_user_sigmask()

2019-05-23 Thread Deepa Dinamani
Ok, since there has been quite a bit of argument here, I will backtrack a little bit and maybe it will help us understand what's happening here. There are many scenarios being discussed on this thread: a. State of code before 854a6ed56839a b. State after 854a6ed56839a c. Proposed fix as per the pat

[PATCH 2/4] iommu: Introduce device fault data

2019-05-23 Thread Jean-Philippe Brucker
From: Jacob Pan Device faults detected by IOMMU can be reported outside the IOMMU subsystem for further processing. This patch introduces a generic device fault data structure. The fault can be either an unrecoverable fault or a page request, also referred to as a recoverable fault. We only car

[PATCH 4/4] iommu: Add recoverable fault reporting

2019-05-23 Thread Jean-Philippe Brucker
Some IOMMU hardware features, for example PCI PRI and Arm SMMU Stall, enable recoverable I/O page faults. Allow IOMMU drivers to report PRI Page Requests and Stall events through the new fault reporting API. The consumer of the fault can be either an I/O page fault handler in the host, or a guest O

[Patch v4] staging: rtl8723bs: core: rtw_ap: fix Unneeded variable: "ret". Return "0

2019-05-23 Thread Hariprasad Kelam
Function "rtw_sta_flush" always returns 0 value. So change return type of rtw_sta_flush from int to void. Same thing applies for rtw_hostapd_sta_flush Signed-off-by: Hariprasad Kelam -- Changes v2 - change return type of rtw_sta_flush Changes v3 - fix indentaion issue Chang

Re: [PATCH] signal/usb: Replace kill_pid_info_as_cred with kill_pid_usb_asyncio

2019-05-23 Thread Alan Stern
On Wed, 22 May 2019, Eric W. Biederman wrote: > Perhaps this will work as a diagram. I don't know if there is a better > way to say it in my patch description. In struct siginfo there are 3 > fields in fixed positions: > >int si_signo; >int si_errno; >int si_code; > > After that th

[PATCH] clocksource/drivers/ixp4xx: Implement delay timer

2019-05-23 Thread Linus Walleij
This adds delay timer functionality to the IXP4xx timer driver. Signed-off-by: Linus Walleij --- drivers/clocksource/timer-ixp4xx.c | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/drivers/clocksource/timer-ixp4xx.c b/drivers/clocksource/timer-ixp4xx.c index

Re: [PATCH 3/5] mm/hmm: Use mm_get_hmm() in hmm_range_register()

2019-05-23 Thread Ralph Campbell
On 5/23/19 5:51 AM, Jason Gunthorpe wrote: On Mon, May 06, 2019 at 04:29:40PM -0700, rcampb...@nvidia.com wrote: From: Ralph Campbell In hmm_range_register(), the call to hmm_get_or_create() implies that hmm_range_register() could be called before hmm_mirror_register() when in fact, that wou

Re: [PATCH v2 0/2] close_range()

2019-05-23 Thread Alexey Dobriyan
> This is v2 of this patchset. We've sent fdmap(2) back in the day: https://marc.info/?l=linux-kernel&m=150628359803324&w=4 It can do everything close_range() does and potentially more. If people ask for it I can rebase it and resend. P.S.: you are 2 steps behind :-) https://lwn.net/Articles/49

[PATCH net-next 0/3] net: ethernet: ti: cpsw: Add XDP support

2019-05-23 Thread Ivan Khoronzhuk
This patchset add XDP support for TI cpsw driver and base it on page_pool allocator. It was verified on af_xdp socket drop, af_xdp l2f, ebpf XDP_DROP, XDP_REDIRECT, XDP_PASS, XDP_TX. It was verified with following configs enabled: CONFIG_JIT=y CONFIG_BPFILTER=y CONFIG_BPF_SYSCALL=y CONFIG_XDP_SOCK

[PATCH net-next 3/3] net: ethernet: ti: cpsw: add XDP support

2019-05-23 Thread Ivan Khoronzhuk
Add XDP support based on rx page_pool allocator, one frame per page. Page pool allocator is used with assumption that only one rx_handler is running simultaneously. DMA map/unmap is reused from page pool despite there is no need to map whole page. Due to specific of cpsw, the same TX/RX handler ca

[PATCH net-next 2/3] net: ethernet: ti: davinci_cpdma: return handler status

2019-05-23 Thread Ivan Khoronzhuk
This change is needed to return flush status of rx handler for flushing redirected xdp frames after processing channel packets. Do it as separate patch for simplicity. Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/cpsw.c | 23 +++-- drivers/net/ethernet/ti/cpsw_

[PATCH net-next 1/3] net: ethernet: ti: davinci_cpdma: add dma mapped submit

2019-05-23 Thread Ivan Khoronzhuk
In case if dma mapped packet needs to be sent, like with XDP page pool, the "mapped" submit can be used. This patch adds dma mapped submit based on regular one. Signed-off-by: Ivan Khoronzhuk --- drivers/net/ethernet/ti/davinci_cpdma.c | 88 - drivers/net/ethernet/ti/davi

Re: [GIT PULL] xfs: fixes for 5.2

2019-05-23 Thread pr-tracker-bot
The pull request you sent on Thu, 23 May 2019 08:33:46 -0700: > git://git.kernel.org/pub/scm/fs/xfs/xfs-linux.git tags/xfs-5.2-fixes-1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/4dde821e4296e156d133b98ddc4c45861935a4fb Thank you! -- Deet-doot-dot, I am a bot. ht

Re: [PATCH v4 0/1] Use HMM for ODP v4

2019-05-23 Thread Jerome Glisse
On Thu, May 23, 2019 at 02:55:46PM -0300, Jason Gunthorpe wrote: > On Thu, May 23, 2019 at 01:33:03PM -0400, Jerome Glisse wrote: > > On Thu, May 23, 2019 at 01:34:29PM -0300, Jason Gunthorpe wrote: > > > On Thu, May 23, 2019 at 11:52:08AM -0400, Jerome Glisse wrote: > > > > On Thu, May 23, 2019 at

Re: [PATCH] x86/MCE: Statically allocate mce_banks_array

2019-05-23 Thread Borislav Petkov
On Thu, May 23, 2019 at 03:03:55PM +, Ghannam, Yazen wrote: > From: Yazen Ghannam > > The MCE control data is stored in an array of struct mce_banks. This > array has historically been shared by all CPUs and it was allocated > dynamically during the first CPU's init sequence. > > However, st

Re: perf: fuzzer causes crash in new XMM code

2019-05-23 Thread Liang, Kan
On 5/23/2019 12:30 PM, Vince Weaver wrote: On Wed, 22 May 2019, Liang, Kan wrote: XMM registers can only collected by hardware PEBS events. We should disable it for all software/probe events. Could you please try the patch as below? I tested the patch (it was whitespace damaged for some r

[PATCH] staging: mt7621-pci: pci-mt7621: Remove unneeded variable err

2019-05-23 Thread Hariprasad Kelam
devm_request_pci_bus_resources function will return -EBUSY/-ENOMEM in fail case and returns 0 on success. So no need to store return value in err variable. Signed-off-by: Hariprasad Kelam --- drivers/staging/mt7621-pci/pci-mt7621.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) di

[v3 PATCH] RISC-V: Add a PE/COFF compliant Image header.

2019-05-23 Thread Atish Patra
Currently, last stage boot loaders such as U-Boot can accept only uImage which is an unnecessary additional step in automating boot flows. Add a PE/COFF compliant image header that boot loaders can parse and directly load kernel flat Image. The existing booting methods will continue to work as it

Re: [Qemu-devel] Running linux on qemu omap

2019-05-23 Thread Aaro Koskinen
Hi, On Thu, May 23, 2019 at 02:00:41PM +0200, Philippe Mathieu-Daudé wrote: > On 5/23/19 1:27 PM, Thomas Huth wrote: > > On 22/05/2019 20.19, Aaro Koskinen wrote: > >> On Wed, May 22, 2019 at 11:33:41AM +0200, Corentin Labbe wrote: > >>> qemu-system-arm -M help |grep OMAP > >>> cheetah

Re: [PATCH v7 2/4] soc: qcom: Add AOSS QMP driver

2019-05-23 Thread Doug Anderson
Hi, On Thu, May 23, 2019 at 11:05 AM Stephen Boyd wrote: > > Quoting Doug Anderson (2019-05-23 09:38:13) > > Hi, > > > > On Tue, Apr 30, 2019 at 9:38 PM Bjorn Andersson > > wrote: > > > > > +static int qmp_qdss_clk_add(struct qmp *qmp) > > > +{ > > > + struct clk_init_data qdss_init = { >

Re: [PATCH v3] doc: kernel-parameters.txt: fix documentation of nmi_watchdog parameter

2019-05-23 Thread Steven Rostedt
On Tue, 21 May 2019 10:32:08 +0800 Zhenzhong Duan wrote: > The default behavior of hardlockup depends on the config of > CONFIG_BOOTPARAM_HARDLOCKUP_PANIC. > Jon, You want to take this in your tree? -- Steve > Fix the description of nmi_watchdog to make it clear. > > Suggested-by: Steven Ro

Re: xarray breaks thrashing detection and cgroup isolation

2019-05-23 Thread Matthew Wilcox
On Thu, May 23, 2019 at 01:43:49PM -0400, Johannes Weiner wrote: > I noticed that recent upstream kernels don't account the xarray nodes > of the page cache to the allocating cgroup, like we used to do for the > radix tree nodes. > > This results in broken isolation for cgrouped apps, allowing the

[PATCH 1/2] perf/x86: Disable non generic regs for software/probe events

2019-05-23 Thread kan . liang
From: Kan Liang The perf fuzzer caused skylake machine to crash. [ 9680.085831] Call Trace: [ 9680.088301] [ 9680.090363] perf_output_sample_regs+0x43/0xa0 [ 9680.094928] perf_output_sample+0x3aa/0x7a0 [ 9680.099181] perf_event_output_forward+0x53/0x80 [ 9680.103917] __perf_event_overflow+

Re: [v2 PATCH] RISC-V: Add a PE/COFF compliant Image header.

2019-05-23 Thread Atish Patra
On 5/16/19 9:20 AM, Paul Walmsley wrote: + ARM64 maintainers, Tom, Marek Hi Atish, On Mon, 13 May 2019, Atish Patra wrote: On 5/13/19 5:40 PM, Paul Walmsley wrote: On Mon, 13 May 2019, Atish Patra wrote: On 5/13/19 5:09 PM, Paul Walmsley wrote: What are the semantics of those reserved fie

[PATCH 2/2] perf/x86/regs: Check reserved bits

2019-05-23 Thread kan . liang
From: Kan Liang The perf fuzzer triggers a warning which map to: if (WARN_ON_ONCE(idx >= ARRAY_SIZE(pt_regs_offset))) return 0; The bits between XMM registers and generic registers are reserved. But perf_reg_validate() doesn't check these bits. Add REG_RESERVED for rese

Re: [PATCH] elf: fix "start_code" evaluation

2019-05-23 Thread Andrew Morton
On Thu, 23 May 2019 20:57:36 +0300 Alexey Dobriyan wrote: > Only executable ELF program headers should change ->start_code. > > ... > > --- a/fs/binfmt_elf.c > +++ b/fs/binfmt_elf.c > @@ -1026,7 +1026,7 @@ static int load_elf_binary(struct linux_binprm *bprm) > } >

Re: [v2 PATCH] RISC-V: Add a PE/COFF compliant Image header.

2019-05-23 Thread Paul Walmsley
On Thu, 23 May 2019, Atish Patra wrote: > I have sent out a v3 incorporating most of your suggestions. If ARM > maintainers agree, we can move both the headers to a common place. > > Just FYI: Marek also suggested to add unified support Image.gz for both U-Boot > & RISC-V in U-Boot. I am working

Re: [PATCH 3/5] mm/hmm: Use mm_get_hmm() in hmm_range_register()

2019-05-23 Thread John Hubbard
On 5/23/19 5:51 AM, Jason Gunthorpe wrote: On Mon, May 06, 2019 at 04:29:40PM -0700, rcampb...@nvidia.com wrote: From: Ralph Campbell In hmm_range_register(), the call to hmm_get_or_create() implies that hmm_range_register() could be called before hmm_mirror_register() when in fact, that would

Re: xarray breaks thrashing detection and cgroup isolation

2019-05-23 Thread Shakeel Butt
On Thu, May 23, 2019 at 11:37 AM Matthew Wilcox wrote: > > On Thu, May 23, 2019 at 01:43:49PM -0400, Johannes Weiner wrote: > > I noticed that recent upstream kernels don't account the xarray nodes > > of the page cache to the allocating cgroup, like we used to do for the > > radix tree nodes. > >

Re: [PATCH net-next v2 1/1] net: mscc: ocelot: Implement port policers via tc command

2019-05-23 Thread Jakub Kicinski
On Thu, 23 May 2019 12:49:39 +0200, Joergen Andreasen wrote: > Hardware offload of matchall classifier and police action are now > supported via the tc command. > Supported police parameters are: rate and burst. > > Example: > > Add: > tc qdisc add dev eth3 handle : ingress > tc filter add de

Re: [PATCH 3/4] iommu: Introduce device fault report API

2019-05-23 Thread Robin Murphy
On 23/05/2019 19:06, Jean-Philippe Brucker wrote: From: Jacob Pan Traditionally, device specific faults are detected and handled within their own device drivers. When IOMMU is enabled, faults such as DMA related transactions are detected by IOMMU. There is no generic reporting mechanism to repo

Re: xarray breaks thrashing detection and cgroup isolation

2019-05-23 Thread Matthew Wilcox
On Thu, May 23, 2019 at 11:49:41AM -0700, Shakeel Butt wrote: > On Thu, May 23, 2019 at 11:37 AM Matthew Wilcox wrote: > > > > On Thu, May 23, 2019 at 01:43:49PM -0400, Johannes Weiner wrote: > > > I noticed that recent upstream kernels don't account the xarray nodes > > > of the page cache to the

Re: [PATCH] ARC: Don't set CROSS_COMPILE in arch's Makefile

2019-05-23 Thread Vineet Gupta
On 9/16/18 1:47 PM, Alexey Brodkin wrote: > There's not much sense in doing that because if user or > his build-system didn't set CROSS_COMPILE we still may > very well make incorrect guess. > > But as it turned out setting CROSS_COMPILE is not as harmless > as one may think: with recent changes t

Re: [PATCH 1/1] infiniband/mm: convert put_page() to put_user_page*()

2019-05-23 Thread Ira Weiny
On Thu, May 23, 2019 at 10:46:38AM -0700, John Hubbard wrote: > On 5/23/19 10:32 AM, Jason Gunthorpe wrote: > > On Thu, May 23, 2019 at 10:28:52AM -0700, Ira Weiny wrote: > > > > @@ -686,8 +686,8 @@ int ib_umem_odp_map_dma_pages(struct ib_umem_odp > > > > *umem_odp, u64 user_virt, > > > >

Re: [PATCH v7 2/4] soc: qcom: Add AOSS QMP driver

2019-05-23 Thread Bjorn Andersson
On Thu 23 May 09:38 PDT 2019, Doug Anderson wrote: > Hi, > > On Tue, Apr 30, 2019 at 9:38 PM Bjorn Andersson > wrote: > > > > +static int qmp_qdss_clk_prepare(struct clk_hw *hw) > > +{ > > + struct qmp *qmp = container_of(hw, struct qmp, qdss_clk); > > + char buf[QMP_MSG_LEN] = "{cla

[PATCH] input: silead: Add MSSL0017 to acpi_device_id.

2019-05-23 Thread Daniel Smith
On Chuwi Hi10 Plus, the Silead device id is MSSL0017. Signed-off-by: Daniel Smith --- drivers/input/touchscreen/silead.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/touchscreen/silead.c b/drivers/input/touchscreen/silead.c index 09241d4cdebc..06f0eb04a8fd 100644 --- a/driv

[PATCH 4.9 02/53] net/mlx4_core: Change the error print to info print

2019-05-23 Thread Greg Kroah-Hartman
From: Yunjian Wang [ Upstream commit 00f9fec48157f3734e52130a119846e67a12314b ] The error print within mlx4_flow_steer_promisc_add() should be a info print. Fixes: 592e49dda812 ('net/mlx4: Implement promiscuous mode with device managed flow-steering') Signed-off-by: Yunjian Wang Reviewed-by:

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