Re: [PATCH 3/3] trace: print address if symbol not found

2017-12-19 Thread kbuild test robot
Hi Tobin, I love your patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v4.15-rc4 next-20171219] [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

Re: [PATCH 1/2] staging: lustre: use strim instead of cfs_trimwhite.

2017-12-19 Thread Dilger, Andreas
On Dec 18, 2017, at 16:01, NeilBrown wrote: > > Linux lib provides identical functionality to cfs_trimwhite, > so discard that code and use the standard. > > Signed-off-by: NeilBrown Reviewed-by: Andreas Dilger > --- >

Re: [PATCH 2/2] staging: lustre: disable preempt while sampling processor id.

2017-12-19 Thread Dilger, Andreas
On Dec 18, 2017, at 16:01, NeilBrown wrote: > > Calling smp_processor_id() without disabling preemption > triggers a warning (if CONFIG_DEBUG_PREEMPT). > I think the result of cfs_cpt_current() is only used as a hint for > load balancing, rather than as a precise and stable

Re: [PATCH linux-next] mqueue: fix IPC namespace use-after-free

2017-12-19 Thread Eric W. Biederman
Al Viro writes: > On Tue, Dec 19, 2017 at 03:49:24PM -0600, Eric W. Biederman wrote: >> > what would you be delaying? kmem_cache_alloc() for struct mount and >> > assignments >> > to its fields? That's noise; if anything, I would expect the main cost >> > with >> > a

[PATCH v6 01/18] PCI: dwc: Use the DMA-API to get the MSI address

2017-12-19 Thread Niklas Cassel
Use the DMA-API to get the MSI address. This address will be written to our PCI config space and to the register which determines which AXI address the DWC IP will spoof for incoming MSI irqs. Since it is a PCIe endpoint device, rather than the CPU, that is supposed to write to the MSI address,

[PATCH v6 00/18] dwc MSI fixes, ARTPEC-6 EP mode support, ARTPEC-7 SoC support

2017-12-19 Thread Niklas Cassel
This is a series that adds: - PCI endpoint mode support in the ARTPEC-6 driver. - ARTPEC-7 SoC support in the ARTPEC-6 driver (the SoCs are very similar). - Small fixes for MSI in designware-ep and designware-host, needed to get endpoint mode support working for ARTPEC-6. - Cleanups in

[PATCH v6 04/18] PCI: designware-ep: Pre-allocate memory for MSI in dw_pcie_ep_init

2017-12-19 Thread Niklas Cassel
Certain SoCs need to map the MSI address in raise_irq. To map an address, you first need to call pci_epc_mem_alloc_addr(), however, pci_epc_mem_alloc_addr() calls ioremap() (which can sleep). Since raise_irq is only called from atomic context, we can't call pci_epc_mem_alloc_addr() from

[PATCH v6 05/18] PCI: designware-ep: Remove static keyword from dw_pcie_ep_reset_bar()

2017-12-19 Thread Niklas Cassel
Remove the static keyword from dw_pcie_ep_reset_bar() so that pci-dra7xx.c does not need its own copy of dw_pcie_ep_reset_bar(). Signed-off-by: Niklas Cassel Acked-by: Kishon Vijay Abraham I --- drivers/pci/dwc/pci-dra7xx.c | 9 -

Re: [PATCH v4 1/3] dt-bindings: mailbox: Introduce Hi3660 controller binding

2017-12-19 Thread Rob Herring
On Tue, Dec 19, 2017 at 07:15:43PM +0800, Kaihua Zhong wrote: > From: Leo Yan > > Introduce a binding for the Hi3660 mailbox controller, the mailbox is > used within application processor (AP), communication processor (CP), > HIFI and MCU, etc. > > Signed-off-by: Leo Yan

[PATCH v6 06/18] PCI: designware-ep: Add generic function for raising MSI irq

2017-12-19 Thread Niklas Cassel
Add a generic function for raising MSI irqs that can be used by all DWC based controllers. Note that certain controllers, like DRA7xx, have a special convenience register for raising MSI irqs that doesn't require you to explicitly map the MSI address. Therefore, it is likely that certain drivers

Re: [PATCH v6 00/11] Intel SGX Driver

2017-12-19 Thread Jarkko Sakkinen
On Tue, 2017-12-12 at 15:07 +0100, Pavel Machek wrote: > On Sat 2017-11-25 21:29:17, Jarkko Sakkinen wrote: > > Intel(R) SGX is a set of CPU instructions that can be used by applications > > to > > set aside private regions of code and data. The code outside the enclave is > > disallowed to

[PATCH v6 10/18] PCI: dwc: artpec6: Remove unused defines

2017-12-19 Thread Niklas Cassel
Commit b015b37e6693 ("PCI: artpec6: Stop enabling writes to DBI read-only registers") removed the only write using these defines, but it did not remove the defines. Remove the defines since they are now unused. Signed-off-by: Niklas Cassel ---

Re: [RFC PATCH 01/60] hyper_dmabuf: initial working version of hyper_dmabuf drv

2017-12-19 Thread Dongwon Kim
I forgot to include this brief information about this patch series. This patch series contains the implementation of a new device driver, hyper_dmabuf, which provides a method for DMA-BUF sharing across different OSes running on the same virtual OS platform powered by a hypervisor. Detailed

[PATCH v6 09/18] PCI: dwc: dra7xx: Help compiler to remove unused code

2017-12-19 Thread Niklas Cassel
The dra7xx driver supports both host and ep mode. When enabling support for only one of the modes, help the compiler to remove code for the mode that we have not enabled in the driver. By adding if (!IS_ENABLED(CONFIG_PCI_DRA7XX_HOST)) return -ENODEV; anything after that statement will get

[PATCH v6 12/18] PCI: dwc: artpec6: Split artpec6_pcie_establish_link() into smaller functions

2017-12-19 Thread Niklas Cassel
Split artpec6_pcie_establish_link() into smaller functions to better match other drivers such as dra7xx and imx6. This is also done to prepare for endpoint mode support. Signed-off-by: Niklas Cassel --- drivers/pci/dwc/pcie-artpec6.c | 55

[PATCH v6 17/18] bindings: PCI: artpec: Add support for the ARTPEC-7 SoC

2017-12-19 Thread Niklas Cassel
Add support for the ARTPEC-7 SoC in the artpec6 driver. The ARTPEC-6 SoC and the ARTPEC-7 SoC are very similar. Unfortunately, some fields in the PCIECFG and PCIESTAT register have changed. Signed-off-by: Niklas Cassel Acked-by: Rob Herring ---

[PATCH v6 16/18] PCI: dwc: artpec6: Deassert the core before waiting for PHY

2017-12-19 Thread Niklas Cassel
Waiting for the PHY while the core was held in reset worked for artpec6, but for artpec7, in order to read the required registers, the core has to be out of reset. Refactor the code so we always wait for the PHY after the core has been deasserted, since this works for both artpec6 and artpec7.

[PATCH v6 11/18] PCI: dwc: artpec6: Use BIT and GENMASK macros

2017-12-19 Thread Niklas Cassel
Use BIT and GENMASK macros to improve readability. Signed-off-by: Niklas Cassel --- drivers/pci/dwc/pcie-artpec6.c | 34 +- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/drivers/pci/dwc/pcie-artpec6.c

[PATCH v6 15/18] PCI: dwc: Make cpu_addr_fixup take struct dw_pcie as argument

2017-12-19 Thread Niklas Cassel
The current cpu addr fixup mask for ARTPEC-6, GENMASK(27, 0), is wrong. The correct cpu addr fixup mask for ARTPEC-6 is GENMASK(28, 0). However, having a hardcoded cpu addr fixup mask in each driver is arguably wrong. A device tree property called something like "cpu-addr-fixup-mask" would have

[PATCH v6 13/18] bindings: PCI: artpec: Add support for endpoint mode

2017-12-19 Thread Niklas Cassel
The PCIe controller integrated in ARTPEC-6 SoCs is capable of operating in endpoint mode. Add endpoint mode support to the artpec6 driver. Signed-off-by: Niklas Cassel Acked-by: Rob Herring --- Documentation/devicetree/bindings/pci/axis,artpec6-pcie.txt

[PATCH v6 14/18] PCI: dwc: artpec6: Add support for endpoint mode

2017-12-19 Thread Niklas Cassel
The PCIe controller integrated in ARTPEC-6 SoCs is capable of operating in endpoint mode. Add endpoint mode support to the artpec6 driver. Signed-off-by: Niklas Cassel --- drivers/pci/dwc/Kconfig| 23 +-- drivers/pci/dwc/pcie-artpec6.c | 152

[PATCH v6 18/18] PCI: dwc: artpec6: Add support for the ARTPEC-7 SoC

2017-12-19 Thread Niklas Cassel
Add support for the ARTPEC-7 SoC in the artpec6 driver. The ARTPEC-6 SoC and the ARTPEC-7 SoC are very similar. Unfortunately, some fields in the PCIECFG and PCIESTAT register have changed. Signed-off-by: Niklas Cassel --- drivers/pci/dwc/pcie-artpec6.c | 187

[PATCH v6 07/18] PCI: dwc: dra7xx: Refactor Kconfig and Makefile handling for host/ep mode

2017-12-19 Thread Niklas Cassel
Refactor the Kconfig and Makefile handling for host/ep mode, since the previous handling was a bit unorthodox and would have been a bit bloated once more DWC based controllers added support for ep mode. Signed-off-by: Niklas Cassel Acked-by: Kishon Vijay Abraham I

[PATCH v6 08/18] PCI: dwc: dra7xx: Assign pp->ops in dra7xx_add_pcie_port() rather than in probe

2017-12-19 Thread Niklas Cassel
Assign pp->ops in *_add_pcie_port() to match how it is done in other drivers like exynos, imx7, keystone, armada8k, artpec6, designware-plat, hisi, kirin and spear13xx. This is probably a remainder since when dev and ops were assigned as members to pp. Since we now assign them as members to

[PATCH v6 03/18] PCI: designware-ep: Read-only registers need DBI_RO_WR_EN to be writable

2017-12-19 Thread Niklas Cassel
Certain registers that pcie-designware-ep tries to write to are read-only registers. However, these registers can become read/write if we first enable the DBI_RO_WR_EN bit. Set/unset the DBI_RO_WR_EN bit before/after writing these registers. Signed-off-by: Niklas Cassel

[PATCH v6 02/18] PCI: designware-ep: dw_pcie_ep_set_msi() should only set MMC bits

2017-12-19 Thread Niklas Cassel
Previously, dw_pcie_ep_set_msi() wrote all bits in the Message Control register, thus overwriting the PCI_MSI_FLAGS_64BIT bit. By clearing the PCI_MSI_FLAGS_64BIT bit, we break MSI on systems where the RC has set a 64 bit MSI address. Fix dw_pcie_ep_set_msi() so that it only sets MMC bits.

Re: [PATCH v2 8/9] dt-bindings: PCI: cadence: Add DT bindings for Cadence PCIe endpoint controller

2017-12-19 Thread Rob Herring
On Mon, Dec 18, 2017 at 07:16:08PM +0100, Cyrille Pitchen wrote: > This patch documents the DT bindings for the Cadence PCIe controller > when configured in endpoint mode. > > Signed-off-by: Cyrille Pitchen > --- >

Re: [PATCH v2 5/9] dt-bindings: PCI: cadence: Add DT bindings for Cadence PCIe host controller

2017-12-19 Thread Rob Herring
On Mon, Dec 18, 2017 at 07:16:05PM +0100, Cyrille Pitchen wrote: > From: Scott Telford > > This patch adds documentation for the DT bindings of the Cadence PCIe > controller when configured in host (Root Complex) mode. > > Signed-off-by: Scott Telford

Re: [PATCH] kfree_rcu() should use the new kfree_bulk() interface for freeing rcu structures

2017-12-19 Thread Rao Shoaib
On 12/19/2017 02:12 PM, Matthew Wilcox wrote: On Tue, Dec 19, 2017 at 09:41:58PM +0100, Jesper Dangaard Brouer wrote: If I had to implement this: I would choose to do the optimization in __rcu_process_callbacks() create small on-call-stack ptr-array for kfree_bulk(). I would only optimize

Re: [PATCH 2/4] perf/x86/intel: fix event update for auto-reload

2017-12-19 Thread Liang, Kan
On 12/19/2017 5:07 PM, Peter Zijlstra wrote: On Tue, Dec 19, 2017 at 03:08:58PM -0500, Liang, Kan wrote: This all looks very wrong... In auto reload we should never call intel_pmu_save_and_restore() in the first place I think. Things like x86_perf_event_update() and

RE: [intel-sgx-kernel-dev] [PATCH v5 06/11] intel_sgx: driver for Intel Software Guard Extensions

2017-12-19 Thread Christopherson, Sean J
On Tuesday, December 19, 2017 Jarkko Sakkinen wrote: > On Tue, 2017-12-19 at 18:52 +, Christopherson, Sean J wrote: > > > We can cache tokens in future in the kernel space, can't we? > > > > Yes, but why? Deferring to userspace is less complex and likely > > more performant. > > That's

Re: BUG: bad usercopy in memdup_user

2017-12-19 Thread Linus Torvalds
On Tue, Dec 19, 2017 at 1:48 PM, Al Viro wrote: > On Tue, Dec 19, 2017 at 01:36:46PM -0800, Linus Torvalds wrote: > >> I suspect that an "offset and size within the kernel object" value >> might make sense. But what does the _pointer_ tell you? > > Well, for example

Re: thinkpad x60: sound problems in 4.15-rc1 was Re: thinkpad x60: sound problems in 4.14.0-next-20171114

2017-12-19 Thread Pavel Machek
Hi! > > > > > > > > > > Reappeared, 4.15-rc1. > > > > > > > > > > > > > > > > > > > > [ 40.473822] PM: suspend exit > > > > > > > > > > [ 40.526027] sdhci-pci :15:00.2: Will use DMA mode > > > > > > > > > > even though > > > > > > > > > > HW doesn't fully claim to support it. > > > > >

Re: [PATCH 1/3] dt-bindings: chosen: Add clocksource and clockevent selection

2017-12-19 Thread Rob Herring
On Fri, Dec 15, 2017 at 7:57 PM, Grygorii Strashko wrote: > > > On 12/13/2017 12:53 PM, Alexandre Belloni wrote: >> The clocksource and clockevent timer are probed early in the boot process. >> At that time it is difficult for linux to know whether a particular timer >>

Re: [PATCH 3/3] trace: print address if symbol not found

2017-12-19 Thread kbuild test robot
Hi Tobin, I love your patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v4.15-rc4 next-20171219] [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

Re: [net-next: PATCH 0/8] Armada 7k/8k PP2 ACPI support

2017-12-19 Thread Marcin Wojtas
Hi Andrew, 2017-12-19 21:46 GMT+01:00 Andrew Lunn : >> Of course! v2 will not have such problem, I've been waiting however >> for the feedback about the ACPI representation. Anyway, I'm strongly >> leaning towards using _ADR/_CID objects in PHY's nodes for ACPI, so >> maybe I'll

Re: [PATCH v3 4/5] ARM: davinci: convert to common clock framework

2017-12-19 Thread David Lechner
On 12/19/2017 07:47 AM, Sekhar Nori wrote: Hi David, On Saturday 09 December 2017 07:45 AM, David Lechner wrote: This converts the clocks in mach-davinci to the common clock framework. Most of the patch just involves renaming struct clk to struct davinci_clk. There is also a struct clk_hw

Re: [PATCH 4.13 03/28] Bluetooth: btusb: fix QCA Rome suspend/resume

2017-12-19 Thread Brian Norris
Hi Kai, On Tue, Dec 19, 2017 at 12:28:17PM +0800, Kai Heng Feng wrote: > > On 19 Dec 2017, at 2:13 AM, Brian Norris wrote: > > On Mon, Dec 18, 2017 at 12:43:48PM +0100, Greg Kroah-Hartman wrote: > >> On Fri, Dec 15, 2017 at 07:05:39PM -0800, Matthias Kaehlcke wrote: >

Re: [PATCH] bpf: fix BPF_KPROBE_OVERRIDE dependencies

2017-12-19 Thread Alexei Starovoitov
On Tue, Dec 19, 2017 at 11:12:04AM +0100, Arnd Bergmann wrote: > CONFIG_BPF_KPROBE_OVERRIDE causes a link failure when CONFIG_KPROBE_EVENTS > is disabled: > > kernel/trace/bpf_trace.o: In function `bpf_override_return': > (.text+0x172): undefined reference to `bpf_kprobe_override' > > This adds

Re: [intel-sgx-kernel-dev] [PATCH v5 06/11] intel_sgx: driver for Intel Software Guard Extensions

2017-12-19 Thread Jarkko Sakkinen
On Tue, 2017-12-19 at 18:52 +, Christopherson, Sean J wrote: > > We can cache tokens in future in the kernel space, can't we? > > Yes, but why? Deferring to userspace is less complex and likely > more performant. That's quite strong argument especially if you are making that for systems

Congratulation Again

2017-12-19 Thread Friedrich Mayrhofer
This is the second time i am sending you this mail. I, Friedrich Mayrhofer Donate $ 1,000,000.00 to You, Email Me personally for more details. Regards. Friedrich Mayrhofer

Re: [PATCH v5 1/2] dt-bindings: misc: Add DT bindings to xlnx_vcu driver

2017-12-19 Thread Rob Herring
On Sun, Dec 17, 2017 at 10:15:31PM -0800, Dhaval Shah wrote: > Add Device Tree binding document for logicoreIP. This logicoreIP > provides the isolation between the processing system and > programmable logic. Also provides the clock related information. > > Signed-off-by: Dhaval Shah

Re: [PATCH] lib: add module unload support to sort tests

2017-12-19 Thread Randy Dunlap
On 12/19/17 14:51, Andrew Morton wrote: > On Tue, 19 Dec 2017 23:10:00 +0530 Pravin Shedge > wrote: > >>> >>> If so, why do you think we shiould alter lib/test_sort.c to behave in >>> this atypical fashion? >> >> If test case is going affects only at boot time or

Re: thinkpad x60: sound problems in 4.15-rc1 was Re: thinkpad x60: sound problems in 4.14.0-next-20171114

2017-12-19 Thread vcaputo
On Mon, Dec 18, 2017 at 08:54:15PM -0800, vcap...@pengaru.com wrote: > On Mon, Dec 18, 2017 at 06:06:58PM -0800, vcap...@pengaru.com wrote: > > On Thu, Dec 14, 2017 at 10:57:30AM +0100, Pavel Machek wrote: > > > On Tue 2017-11-28 08:00:20, Takashi Iwai wrote: > > > > On Mon, 27 Nov 2017 19:44:12

Re: [PATCH v1] scripts/decodecode: Make it take multiline Code line

2017-12-19 Thread Andrew Morton
On Tue, 19 Dec 2017 17:05:19 +0200 Andy Shevchenko wrote: > > That's rather hard to understand. An example would help? > > When you have a file out of oops the Code line looks like > > Code: hh hh ... ... hh\n > > When copy'n'paste from, for example,

Re: [f2fs-dev] [PATCH v2] f2fs: add an ioctl to disable GC for specific file

2017-12-19 Thread Jaegeuk Kim
On 12/18, Chao Yu wrote: > On 2017/12/15 3:50, Jaegeuk Kim wrote: > > On 12/12, Chao Yu wrote: > >> Hi Jaegeuk, > >> > >> On 2017/12/9 3:37, Jaegeuk Kim wrote: > >>> Change log from v1: > >>> - fix bug in error handling of ioctl > >>> > >>> >From b905e03d8aad7d25ecaf9bde05411a68d3d2460e Mon Sep

Re: [PATCH] lib: add module unload support to sort tests

2017-12-19 Thread Andrew Morton
On Tue, 19 Dec 2017 23:10:00 +0530 Pravin Shedge wrote: > > > > If so, why do you think we shiould alter lib/test_sort.c to behave in > > this atypical fashion? > > If test case is going affects only at boot time or at module load > time, it's smart decision to

Re: [PATCH 2/2 v2] scsi: ufs: use sysfs entry for health info

2017-12-19 Thread Jaegeuk Kim
>From 3368207da5988b8fed4e41e6c0f49a60ac014222 Mon Sep 17 00:00:00 2001 From: Jaegeuk Kim Date: Tue, 26 Sep 2017 20:53:48 -0700 Subject: [PATCH 2/2] scsi: ufs: introduce sysfs entries exposing UFS health info This patch adds a new sysfs group, namely health, via:

Re: [PATCH 2/2 v2] scsi: ufs: use sysfs entry for health info

2017-12-19 Thread Jaegeuk Kim
On 12/19, Bart Van Assche wrote: > On Tue, 2017-12-19 at 12:02 -0800, Jaegeuk Kim wrote: > > This patch introduces sysfs entries to show the information. > > What information does "the information" refer to? > > Regarding the patch title: I think this patch introduces new sysfs attributes >

Re: [PATCH linux-next] mqueue: fix IPC namespace use-after-free

2017-12-19 Thread Al Viro
On Tue, Dec 19, 2017 at 03:49:24PM -0600, Eric W. Biederman wrote: > > what would you be delaying? kmem_cache_alloc() for struct mount and > > assignments > > to its fields? That's noise; if anything, I would expect the main cost with > > a plenty of containers to be in sget() scanning the list

Re: [RFC PATCH] mm: memcontrol: memory+swap accounting for cgroup-v2

2017-12-19 Thread Shakeel Butt
On Tue, Dec 19, 2017 at 1:41 PM, Tejun Heo wrote: > Hello, > > On Tue, Dec 19, 2017 at 10:25:12AM -0800, Shakeel Butt wrote: >> Making the runtime environment, an invariant is very critical to make >> the management of a job easier whose instances run on different >> clusters

Re: [PATCH] bug.h: Work around GCC PR82365 in BUG()

2017-12-19 Thread Vineet Gupta
On 12/19/2017 12:13 PM, Arnd Bergmann wrote: I suppose BUG() implies "dead end" like semantics - which ARC was lacking before ? Correct. Using __builtin_trap() here avoids the 'control reaches end of non-void function' warnings, but then makes us run into the stack size problem that I work

Re: PROBLEM: NULL pointer dereference in kernel 4.14.6

2017-12-19 Thread Tejun Heo
Hello, On Mon, Dec 18, 2017 at 03:17:54PM -0500, George Amanakis wrote: > I can replicate this on a Thinkpad X230i running archlinux with latest > 4.14.7 kernel, without the ZFS modules. > > Steps to reproduce: > 1) create a virtual machine using libvirt (attached xml) > 2) virsh start vm > 3)

Re: [PATCH] crypto: x86/twofish-3way - Fix %rbp usage

2017-12-19 Thread Josh Poimboeuf
On Mon, Dec 18, 2017 at 04:40:26PM -0800, Eric Biggers wrote: > From: Eric Biggers > > Using %rbp as a temporary register breaks frame pointer convention and > breaks stack traces when unwinding from an interrupt in the crypto code. > > In twofish-3way, we can't simply

Re: [PATCH v6 3/3] clk: at91: pmc: Support backup for programmable clocks

2017-12-19 Thread Alexandre Belloni
On 11/12/2017 at 17:55:35 +0100, Romain Izard wrote: > When an AT91 programmable clock is declared in the device tree, register > it into the Power Management Controller driver. On entering suspend mode, > the driver saves and restores the Programmable Clock registers to support > the backup mode

Re: [PATCH v6 1/3] clk: at91: pmc: Wait for clocks when resuming

2017-12-19 Thread Alexandre Belloni
On 11/12/2017 at 17:55:33 +0100, Romain Izard wrote: > Wait for the syncronization of all clocks when resuming, not only the > UPLL clock. Do not use regmap_read_poll_timeout, as it will call BUG() > when interrupts are masked, which is the case in here. > > Signed-off-by: Romain Izard

Re: [PATCH v6 2/3] clk: at91: pmc: Save SCSR during suspend

2017-12-19 Thread Alexandre Belloni
On 11/12/2017 at 17:55:34 +0100, Romain Izard wrote: > The contents of the System Clock Status Register (SCSR) needs to be > restored into the System Clock Enable Register (SCER). > > As the bootloader will restore some clocks by itself, the issue can be > missed as only the USB controller, the

Re: [PATCH 1/2] dt-bindings: at24: new optional property - write-protect-gpios

2017-12-19 Thread Andy Shevchenko
On Tue, Dec 19, 2017 at 6:14 PM, Bartosz Golaszewski wrote: > AT24 EEPROMs have a write-protect pin, which - when pulled high - > inhibits writes to the upper quadrant of memory (although it has been > observed that on some chips it disables writing to the entire memory > range). >

Re: BUG: bad usercopy in memdup_user

2017-12-19 Thread Laura Abbott
On 12/19/2017 01:36 PM, Linus Torvalds wrote: On Tue, Dec 19, 2017 at 5:22 AM, Matthew Wilcox wrote: Could we have a way to know that the printed address is hashed and not just a pointer getting completely scrogged? Perhaps prefix it with ... a hash! So this line would

linux-next: build warning after merge of the btrfs-kdave tree

2017-12-19 Thread Stephen Rothwell
Hi David, After merging the btrfs-kdave tree, today's linux-next build (powerpc ppc64_defconfig) produced this warning: fs/btrfs/qgroup.c: In function 'qgroup_reserve': fs/btrfs/qgroup.c:2432:1: warning: label 'retry' defined but not used [-Wunused-label] retry: ^ Introduced by commit

Re: [PATCH] arm64: Stop printing the virtual memory layout

2017-12-19 Thread Laura Abbott
On 12/19/2017 01:04 PM, Kees Cook wrote: On Tue, Dec 19, 2017 at 11:28 AM, Laura Abbott wrote: Printing kernel addresses should be done in limited circumstances, mostly for debugging purposes. Printing out the virtual memory layout at every kernel bootup doesn't really fall

Re: BUG: bad usercopy in memdup_user

2017-12-19 Thread Matthew Wilcox
On Tue, Dec 19, 2017 at 01:36:46PM -0800, Linus Torvalds wrote: > On Tue, Dec 19, 2017 at 5:22 AM, Matthew Wilcox wrote: > > > > Could we have a way to know that the printed address is hashed and not just > > a pointer getting completely scrogged? Perhaps prefix it with ...

[PATCH V2] iommu/amd - Set the device table entry PPR bit for IOMMU V2 devices

2017-12-19 Thread Gary R Hook
The AMD IOMMU specification Rev 3.00 (December 2016) introduces a new Enhanced PPR Handling Support (EPHSup) bit in the MMIO register offset 0030h (IOMMU Extended Feature Register). When EPHSup=1, the IOMMU hardware requires the PPR bit of the device table entry (DTE) to be set in order to

Re: [PATCH v5 01/18] PCI: dwc: Use the DMA-API to get the MSI address

2017-12-19 Thread Niklas Cassel
On Tue, Dec 19, 2017 at 10:19:18AM +, Lorenzo Pieralisi wrote: > On Mon, Nov 20, 2017 at 02:32:04PM +0100, Niklas Cassel wrote: > > Use the DMA-API to get the MSI address. This address will be written to > > our PCI config space and to the register which determines which AXI > > address the

Re: [PATCH] kfree_rcu() should use the new kfree_bulk() interface for freeing rcu structures

2017-12-19 Thread Matthew Wilcox
On Tue, Dec 19, 2017 at 09:41:58PM +0100, Jesper Dangaard Brouer wrote: > If I had to implement this: I would choose to do the optimization in > __rcu_process_callbacks() create small on-call-stack ptr-array for > kfree_bulk(). I would only optimize the case that call kfree() > directly. In the

Re: [PATCH 2/4] perf/x86/intel: fix event update for auto-reload

2017-12-19 Thread Andi Kleen
On Tue, Dec 19, 2017 at 11:07:09PM +0100, Peter Zijlstra wrote: > On Tue, Dec 19, 2017 at 03:08:58PM -0500, Liang, Kan wrote: > > > This all looks very wrong... In auto reload we should never call > > > intel_pmu_save_and_restore() in the first place I think. > > > > > > Things like

Re: BUG: bad usercopy in memdup_user

2017-12-19 Thread Randy Dunlap
On 12/19/2017 01:48 PM, Al Viro wrote: > On Tue, Dec 19, 2017 at 01:36:46PM -0800, Linus Torvalds wrote: > >> I suspect that an "offset and size within the kernel object" value >> might make sense. But what does the _pointer_ tell you? > > Well, for example seeing a 0xfff4 where a

Re: [PATCH 2/4] perf/x86/intel: fix event update for auto-reload

2017-12-19 Thread Peter Zijlstra
On Tue, Dec 19, 2017 at 03:08:58PM -0500, Liang, Kan wrote: > > This all looks very wrong... In auto reload we should never call > > intel_pmu_save_and_restore() in the first place I think. > > > > Things like x86_perf_event_update() and x86_perf_event_set_period() > > simply _cannot_ do the

Re: [PATCH 1/2] drm/nouveau/bar/gf100: fix hang when calling ->fini() before ->init()

2017-12-19 Thread Jon Hunter
On 06/12/17 17:18, Jon Hunter wrote: > > On 06/12/17 09:22, Guillaume Tucker wrote: >> On 05/12/17 18:32, Ben Skeggs wrote: >>> On Wed, Dec 6, 2017 at 12:30 AM, Jon Hunter wrote: >>> On 04/12/17 18:37, Guillaume Tucker wrote: > If the firmware fails to load

Re: [PATCH v4 04/36] nds32: Kernel booting and initialization

2017-12-19 Thread Randy Dunlap
On 12/17/2017 10:46 PM, Greentime Hu wrote: > From: Greentime Hu > > This patch includes the kernel startup code. It can get dtb pointer > passed from bootloader. It will create a temp mapping by tlb > instructions at beginning and goto start_kernel. > > Signed-off-by:

Re: BUG: unable to handle kernel NULL pointer dereference in rb_insert_color

2017-12-19 Thread Eric Biggers
On Tue, Dec 19, 2017 at 12:41:01AM -0800, syzbot wrote: > Hello, > > syzkaller hit the following crash on > 6084b576dca2e898f5c101baef151f7bfdbb606d > git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/master > compiler: gcc (GCC) 7.1.1 20170620 > .config is attached > Raw console

Re: [PATCH v2] arch: define weak abort

2017-12-19 Thread Andrew Morton
On Tue, 19 Dec 2017 13:39:22 -0800 Vineet Gupta wrote: > > --- a/kernel/exit.c > > +++ b/kernel/exit.c > > @@ -1759,3 +1759,11 @@ long kernel_wait4(pid_t upid, int __user *stat_addr, > > int options, > > return -EFAULT; > > } > > #endif > > + > > +__weak

Re: BUG: bad usercopy in memdup_user

2017-12-19 Thread Kees Cook
On Tue, Dec 19, 2017 at 1:36 PM, Linus Torvalds wrote: > In this case, there's obviously no permission issue: it's an error > report. So it's either "remove it, or switch to %px". Yup, my intention was to kill this %p and enhance the report to actually include the

[PATCH] Do not hash userspace addresses in fault handlers

2017-12-19 Thread Kees Cook
The hashing of %p was designed to restrict kernel addresses. There is no reason to hash the userspace values seen during a segfault report, so switch these to %px. (Some architectures already use %lx.) Fixes: ad67b74d2469d9b8 ("printk: hash addresses printed with %p") Signed-off-by: Kees Cook

Re: [PATCH linux-next] mqueue: fix IPC namespace use-after-free

2017-12-19 Thread Eric W. Biederman
Al Viro writes: > On Tue, Dec 19, 2017 at 07:40:43PM +0100, Giuseppe Scrivano wrote: >> Giuseppe Scrivano writes: >> >> > The only issue I've seen with my version is that if I do: >> > >> > # unshare -im /bin/sh >> > # mount -t mqueue mqueue

Re: BUG: bad usercopy in memdup_user

2017-12-19 Thread Al Viro
On Tue, Dec 19, 2017 at 01:36:46PM -0800, Linus Torvalds wrote: > I suspect that an "offset and size within the kernel object" value > might make sense. But what does the _pointer_ tell you? Well, for example seeing a 0xfff4 where a pointer to object must have been is a pretty

Re: [PATCH] On ppc64le we HAVE_RELIABLE_STACKTRACE

2017-12-19 Thread Josh Poimboeuf
On Tue, Dec 19, 2017 at 12:28:33PM +0100, Torsten Duwe wrote: > On Mon, Dec 18, 2017 at 12:56:22PM -0600, Josh Poimboeuf wrote: > > On Mon, Dec 18, 2017 at 03:33:34PM +1000, Nicholas Piggin wrote: > > > On Sun, 17 Dec 2017 20:58:54 -0600 > > > Josh Poimboeuf wrote: > > > > >

[PATCH 07/45] ARM: dts: at91: sam9_l9260: use TCB0 as timers

2017-12-19 Thread Alexandre Belloni
Use tcb0 for timers as selected in at91_dt_defconfig. Cc: Raashid Muhammed Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/at91-sam9_l9260.dts | 12 1 file changed, 12 insertions(+) diff --git

[PATCH 05/45] ARM: dts: at91: at91sam9260: TC blocks are also simple-mfd and syscon devices

2017-12-19 Thread Alexandre Belloni
Add simple-mfd and syscon to the TC blocks to allow to register one of the channels as clocksource properly at boot time and free up the remaining channels for other use. Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/at91sam9260.dtsi | 8 ++--

[PATCH 06/45] ARM: dts: at91: at91sam9260ek: use TCB0 as timers

2017-12-19 Thread Alexandre Belloni
Use tcb0 for timers as selected in at91_dt_defconfig. Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/at91sam9260ek.dts | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/at91sam9260ek.dts

[PATCH 14/45] ARM: dts: at91: at91sam9261: TC blocks are also simple-mfd and syscon devices

2017-12-19 Thread Alexandre Belloni
Add simple-mfd and syscon to the TC blocks to allow to register one of the channels as clocksource properly at boot time and free up the remaining channels for other use. Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/at91sam9261.dtsi | 4 +++- 1

[PATCH 11/45] ARM: dts: at91: kizbox: use TCB0 as timers

2017-12-19 Thread Alexandre Belloni
Use tcb0 for timers as selected in at91_dt_defconfig. Cc: Antoine Aubert Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/at91-kizbox.dts | 12 1 file changed, 12 insertions(+) diff --git

Re: [PATCH] fixed typo in onewire generic doc

2017-12-19 Thread Jonathan Corbet
On Tue, 19 Dec 2017 22:33:32 +0100 Gergo Huszty wrote: > Signed-off-by: Gergo Huszty > --- > Documentation/w1/w1.generic | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Documentation/w1/w1.generic

Re: proc_flush_task oops

2017-12-19 Thread Eric W. Biederman
Dave Jones writes: > On Tue, Dec 19, 2017 at 12:27:30PM -0600, Eric W. Biederman wrote: > > Dave Jones writes: > > > > > On Mon, Dec 18, 2017 at 03:50:52PM -0800, Linus Torvalds wrote: > > > > > > > But I don't see what would have changed

[PATCH 16/45] ARM: dts: at91: at91sam9263: TC blocks are also simple-mfd and syscon devices

2017-12-19 Thread Alexandre Belloni
Add simple-mfd and syscon to the TC blocks to allow to register one of the channels as clocksource properly at boot time and free up the remaining channels for other use. Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/at91sam9263.dtsi | 4 +++- 1

[PATCH 12/45] ARM: dts: at91: at91sam9g20ek: use TCB0 as timers

2017-12-19 Thread Alexandre Belloni
Use tcb0 for timers as selected in at91_dt_defconfig. Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/at91sam9g20ek_common.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/at91sam9g20ek_common.dtsi

[PATCH 10/45] ARM: dts: at91: animeo_ip: use TCB0 as timers

2017-12-19 Thread Alexandre Belloni
Use tcb0 for timers as selected in at91_dt_defconfig. Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/animeo_ip.dts | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/animeo_ip.dts b/arch/arm/boot/dts/animeo_ip.dts

[PATCH 13/45] ARM: dts: at91: ge863-pro3: use TCB0 as timers

2017-12-19 Thread Alexandre Belloni
Use tcb0 for timers as selected in at91_dt_defconfig. Cc: Fabio Porcedda Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/ge863-pro3.dtsi | 12 1 file changed, 12 insertions(+) diff --git

[PATCH 19/45] ARM: dts: at91: at91sam9g45: TC blocks are also simple-mfd and syscon devices

2017-12-19 Thread Alexandre Belloni
Add simple-mfd and syscon to the TC blocks to allow to register one of the channels as clocksource properly at boot time and free up the remaining channels for other use. Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/at91sam9g45.dtsi | 8 ++--

[PATCH 00/45] Migrate TCB bindings

2017-12-19 Thread Alexandre Belloni
Hi, As the bindings were acked by Rob a while ago [1] and I think there is consensus on what they look like, I'm planning to apply that series for 4.16 so we get a smoother transition for the TCB driver rework. I've simply removed the PWM binding change that I will submit with the driver change

[PATCH] fixed typo in onewire generic doc

2017-12-19 Thread Gergo Huszty
Signed-off-by: Gergo Huszty --- Documentation/w1/w1.generic | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/w1/w1.generic b/Documentation/w1/w1.generic index b3ffaf8cfab2..9e5b542305f0 100644 --- a/Documentation/w1/w1.generic +++

[PATCH 17/45] ARM: dts: at91: at91sam9263ek: use TCB0 as timers

2017-12-19 Thread Alexandre Belloni
Use tcb0 for timers as selected in at91_dt_defconfig. Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/at91sam9263ek.dts | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/at91sam9263ek.dts

[PATCH 18/45] ARM: dts: at91: calao: use TCB0 as timers

2017-12-19 Thread Alexandre Belloni
Use tcb0 for timers as selected in at91_dt_defconfig. [tested on usb_a9g20 and usb_a9263] Tested-by: Alexandre Belloni Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/at91-qil_a9260.dts| 12

[PATCH 15/45] ARM: dts: at91: at91sam9261ek: use TCB0 as timers

2017-12-19 Thread Alexandre Belloni
Use tcb0 for timers as selected in at91_dt_defconfig. Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/at91sam9261ek.dts | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/at91sam9261ek.dts

[PATCH 22/45] ARM: dts: at91: at91sam9rl: TC blocks are also simple-mfd and syscon devices

2017-12-19 Thread Alexandre Belloni
Add simple-mfd and syscon to the TC blocks to allow to register one of the channels as clocksource properly at boot time and free up the remaining channels for other use. Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/at91sam9rl.dtsi | 4 +++- 1

[PATCH 29/45] ARM: dts: at91: cosino: use TCB0 as timers

2017-12-19 Thread Alexandre Belloni
Use tcb0 for timers as selected in at91_dt_defconfig. Cc: Rodolfo Giometti Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/at91-cosino.dtsi | 12 1 file changed, 12 insertions(+) diff --git

[PATCH 31/45] ARM: dts: at91: sama5d3: TC blocks are also simple-mfd and syscon devices

2017-12-19 Thread Alexandre Belloni
Add simple-mfd and syscon to the TC blocks to allow to register one of the channels as clocksource properly at boot time and free up the remaining channels for other use. Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/sama5d3.dtsi | 4 +++-

[PATCH 28/45] ARM: dts: at91: acme/g25: use TCB0 as timers

2017-12-19 Thread Alexandre Belloni
Use tcb0 for timers as selected in at91_dt_defconfig. Cc: Sergio Tanzilli Cc: Douglas Gilbert Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/at91-ariag25.dts| 12

[PATCH 27/45] ARM: dts: at91: at91sam9x5cm: use TCB0 as timers

2017-12-19 Thread Alexandre Belloni
Use tcb0 for timers as selected in at91_dt_defconfig. [tested on at91sam9x25ek and at91sam9x35ek] Tested-by: Alexandre Belloni Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/at91sam9x5cm.dtsi | 12

[PATCH 25/45] ARM: dts: at91: at91sam9n12ek: use TCB0 as timers

2017-12-19 Thread Alexandre Belloni
Use tcb0 for timers as selected in at91_dt_defconfig. Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/at91sam9n12ek.dts | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/at91sam9n12ek.dts

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