Re: [PATCH net V2] vhost-vsock: fix use after free

2018-09-27 Thread Michael S. Tsirkin
On Thu, Sep 27, 2018 at 08:22:04PM +0800, Jason Wang wrote: > The access of vsock is not protected by vhost_vsock_lock. This may > lead to use after free since vhost_vsock_dev_release() may free the > pointer at the same time. > > Fix this by holding the lock during the access. > > Reported-by: s

[tip:x86/cpu] x86/pci, x86/amd_nb: Add Hygon Dhyana support to PCI and northbridge

2018-09-27 Thread tip-bot for Pu Wen
Commit-ID: c6babb5806b77c6ca7078c3487bb0a29704a4e38 Gitweb: https://git.kernel.org/tip/c6babb5806b77c6ca7078c3487bb0a29704a4e38 Author: Pu Wen AuthorDate: Tue, 25 Sep 2018 22:46:11 +0800 Committer: Borislav Petkov CommitDate: Thu, 27 Sep 2018 18:28:58 +0200 x86/pci, x86/amd_nb: Add Hyg

[RESEND] dt-bindings: clock: samsung: Add SPDX license identifiers

2018-09-27 Thread Krzysztof Kozlowski
Replace GPL license statements with SPDX license identifiers (GPL-2.0). Signed-off-by: Krzysztof Kozlowski Acked-by: Chanwoo Choi Reviewed-by: Rob Herring --- include/dt-bindings/clock/exynos3250.h | 5 + include/dt-bindings/clock/exynos4.h| 7 ++- include/dt-bindings/clock

[PATCH] qed: fix spelling mistake "b_cb_registred" -> "b_cb_registered"

2018-09-27 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake struct field name, rename it. Signed-off-by: Colin Ian King --- drivers/net/ethernet/qlogic/qed/qed_ll2.c | 12 ++-- drivers/net/ethernet/qlogic/qed/qed_ll2.h | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/

Re: [PATCH v3.1 1/2] device property: Add device_get_bd_address() and fwnode_get_bd_address()

2018-09-27 Thread Matthias Kaehlcke
On Thu, Sep 27, 2018 at 02:38:29PM +0300, Heikki Krogerus wrote: > Hi Marcel, > > On Thu, Sep 27, 2018 at 12:24:33PM +0200, Marcel Holtmann wrote: > > > Let's not fill property.c with framework specific helper functions any > > > more! > > > > > > Those functions are completely bluetooth specific

[RESEND] dt-bindings: thermal: samsung: Add SPDX license identifier

2018-09-27 Thread Krzysztof Kozlowski
Replace GPL license statement with SPDX license identifier (GPL-2.0+). Signed-off-by: Krzysztof Kozlowski --- We postponed this patch because in previous discussion [1] Bartlomiej expressed willingness to change the license... which did not happen since July 2018. In such case let's take this.

[tip:x86/cpu] x86/amd_nb: Check vendor in AMD-only functions

2018-09-27 Thread tip-bot for Pu Wen
Commit-ID: b7a5cb4f220e78490735b2b984ad29b7d8e612a9 Gitweb: https://git.kernel.org/tip/b7a5cb4f220e78490735b2b984ad29b7d8e612a9 Author: Pu Wen AuthorDate: Tue, 25 Sep 2018 22:45:01 +0800 Committer: Borislav Petkov CommitDate: Thu, 27 Sep 2018 18:28:58 +0200 x86/amd_nb: Check vendor in

[PATCH] staging: rtl8188eu: Avoid null pointer arithmetic

2018-09-27 Thread Aymen Qader
Avoid null pointer arithmetic in rtw_mlme_ext.c by skipping other field checks if the information element pointer is null. Signed-off-by: Aymen Qader --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/staging/rtl8188eu

[PATCH] memblock: remove stale #else and the code it protects

2018-09-27 Thread Mike Rapoport
During removal of HAVE_MEMBLOCK definition, the #else clause of the #ifdef CONFIG_HAVE_MEMBLOCK ... #else ... #endif conditional was not removed. Remove it now. Signed-off-by: Mike Rapoport Reported-by: Alexander Duyck Cc: Michal Hocko

possible deadlock in acct_pin_kill

2018-09-27 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:46c163a036b4 Add linux-next specific files for 20180921 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=17688a4e40 kernel config: https://syzkaller.appspot.com/x/.config?x=20ea07a946ad19d7 dashb

[tip:x86/cpu] x86/alternative: Init ideal_nops for Hygon Dhyana

2018-09-27 Thread tip-bot for Pu Wen
Commit-ID: c3fecca457c1aa1c1a2f81bfe68393af244a263e Gitweb: https://git.kernel.org/tip/c3fecca457c1aa1c1a2f81bfe68393af244a263e Author: Pu Wen AuthorDate: Sun, 23 Sep 2018 17:35:01 +0800 Committer: Borislav Petkov CommitDate: Thu, 27 Sep 2018 18:28:58 +0200 x86/alternative: Init ideal_

[tip:x86/cpu] x86/events: Add Hygon Dhyana support to PMU infrastructure

2018-09-27 Thread tip-bot for Pu Wen
Commit-ID: 6d0ef316b9f8ea03fa867debda70b2f11a0b9736 Gitweb: https://git.kernel.org/tip/6d0ef316b9f8ea03fa867debda70b2f11a0b9736 Author: Pu Wen AuthorDate: Sun, 23 Sep 2018 17:34:47 +0800 Committer: Borislav Petkov CommitDate: Thu, 27 Sep 2018 18:28:57 +0200 x86/events: Add Hygon Dhyana

[tip:x86/cpu] x86/smpboot: Do not use BSP INIT delay and MWAIT to idle on Dhyana

2018-09-27 Thread tip-bot for Pu Wen
Commit-ID: 0b13bec787dccca96f8c431da732657ae01baf9a Gitweb: https://git.kernel.org/tip/0b13bec787dccca96f8c431da732657ae01baf9a Author: Pu Wen AuthorDate: Sun, 23 Sep 2018 17:34:32 +0800 Committer: Borislav Petkov CommitDate: Thu, 27 Sep 2018 18:28:57 +0200 x86/smpboot: Do not use BSP

[tip:x86/cpu] x86/cpu/mtrr: Support TOP_MEM2 and get MTRR number

2018-09-27 Thread tip-bot for Pu Wen
Commit-ID: 39dc6f154dac134e4612827cb5283934c1862cb8 Gitweb: https://git.kernel.org/tip/39dc6f154dac134e4612827cb5283934c1862cb8 Author: Pu Wen AuthorDate: Sun, 23 Sep 2018 17:34:16 +0800 Committer: Borislav Petkov CommitDate: Thu, 27 Sep 2018 18:28:57 +0200 x86/cpu/mtrr: Support TOP_ME

[PATCH 5/8] arm: convert to generic builtin command line

2018-09-27 Thread Maksym Kokhan
From: Daniel Walker This updates the arm 32bit code to use the CONFIG_GENERIC_CMDLINE option. Cc: Daniel Walker Cc: Daniel Walker Signed-off-by: Daniel Walker Signed-off-by: Maksym Kokhan --- arch/arm/Kconfig | 38 +- arch/arm/kernel/atags_pa

Re: [PATCH v2 7/7] arm64: uprobes - ARM32 instruction probing

2018-09-27 Thread Robin Murphy
On 26/09/18 13:12, Maciej Slodczyk wrote: [...] @@ -38,16 +78,44 @@ int arch_uprobe_analyze_insn(struct arch_uprobe *auprobe, struct mm_struct *mm, unsigned long addr) { probes_opcode_t insn; + enum probes_insn retval; + unsigned int bpinsn; - /* TODO: Cu

[tip:x86/cpu] x86/cpu: Get cache info and setup cache cpumap for Hygon Dhyana

2018-09-27 Thread tip-bot for Pu Wen
Commit-ID: d4f7423efdd1419b17524d090ff9ff4024bcf09b Gitweb: https://git.kernel.org/tip/d4f7423efdd1419b17524d090ff9ff4024bcf09b Author: Pu Wen AuthorDate: Sun, 23 Sep 2018 17:33:44 +0800 Committer: Borislav Petkov CommitDate: Thu, 27 Sep 2018 18:28:57 +0200 x86/cpu: Get cache info and

[tip:x86/cpu] x86/cpu: Create Hygon Dhyana architecture support file

2018-09-27 Thread tip-bot for Pu Wen
Commit-ID: c9661c1e80b609cd038db7c908e061f0535804ef Gitweb: https://git.kernel.org/tip/c9661c1e80b609cd038db7c908e061f0535804ef Author: Pu Wen AuthorDate: Sun, 23 Sep 2018 17:33:12 +0800 Committer: Borislav Petkov CommitDate: Thu, 27 Sep 2018 16:14:05 +0200 x86/cpu: Create Hygon Dhyana

[v3 PATCH 2/2 -mm] mm: brk: downgrade mmap_sem to read when shrinking

2018-09-27 Thread Yang Shi
brk might be used to shrink memory mapping too other than munmap(). So, it may hold write mmap_sem for long time when shrinking large mapping, as what commit ("mm: mmap: zap pages with read mmap_sem in munmap") described. The brk() will not manipulate vmas anymore after __do_munmap() call for the

[v3 PATCH 1/2 -mm] mm: mremap: downgrade mmap_sem to read when shrinking

2018-09-27 Thread Yang Shi
Other than munmap, mremap might be used to shrink memory mapping too. So, it may hold write mmap_sem for long time when shrinking large mapping, as what commit ("mm: mmap: zap pages with read mmap_sem in munmap") described. The mremap() will not manipulate vmas anymore after __do_munmap() call for

[PATCH v8 06/13] PCI/P2PDMA: Add P2P DMA driver writer's documentation

2018-09-27 Thread Logan Gunthorpe
Add a restructured text file describing how to write drivers with support for P2P DMA transactions. The document describes how to use the APIs that were added in the previous few commits. Also adds an index for the PCI documentation tree even though this is the only PCI document that has been conv

[PATCH 7/8] mips: convert to generic builtin command line

2018-09-27 Thread Maksym Kokhan
From: Daniel Walker This updates the mips code to use the CONFIG_GENERIC_CMDLINE option. [maksym.kok...@globallogic.com: remove new mips arch-specific command line implementation] Cc: Daniel Walker Cc: Daniel Walker Signed-off-by: Daniel Walker Signed-off-by: Maksym Kokhan --- arch/mips/Kco

Re: [PATCH 07/12] drm/sun4i: sun6i_mipi_dsi: Fix TCON DRQ set bits

2018-09-27 Thread Maxime Ripard
On Thu, Sep 27, 2018 at 05:18:45PM +0530, Jagan Teki wrote: > TCON DRQ set bits for non-burst DSI mode can computed via > horizontal front porch instead of front porch + sync timings. > > Since there no documentation for TCON_DRQ_REG(0x7c) register > this change is taken as reference from BPI-M64-b

[PATCH 3/8] efi: modify EFI stub code for arm/arm64

2018-09-27 Thread Maksym Kokhan
Original EFI stub code parses command line, using old configs: CMDLINE, CMDLINE_EXTEND and CMDLINE_FORCE. New generic builtin command line use new configs: CMDLINE_PREPEND, CMDLINE_APPEND and CMDLINE_OVERRIDE, which depend on CMDLINE_BOOL. Cc: Daniel Walker Cc: Daniel Walker Signed-off-by: Maksy

[PATCH 2/8] drivers: of: ifdef out cmdline section

2018-09-27 Thread Maksym Kokhan
From: Daniel Walker It looks like there's some seepage of cmdline stuff into the generic device tree code. This conflicts with the generic cmdline implementation so I remove it in the case when that's enabled. Cc: Daniel Walker Cc: Daniel Walker Signed-off-by: Daniel Walker Signed-off-by: Mak

[PATCH 8/8] powerpc: convert to generic builtin command line

2018-09-27 Thread Maksym Kokhan
From: Daniel Walker This updates the powerpc code to use the CONFIG_GENERIC_CMDLINE option. [maksym.kok...@globallogic.com: add strlcat to prom_init_check.sh whitelist] Cc: Daniel Walker Cc: Daniel Walker Signed-off-by: Daniel Walker Signed-off-by: Maksym Kokhan --- arch/powerpc/Kconfig

[PATCH v8 10/13] nvme-pci: Add support for P2P memory in requests

2018-09-27 Thread Logan Gunthorpe
For P2P requests, we must use the pci_p2pmem_map_sg() function instead of the dma_map_sg functions. With that, we can then indicate PCI_P2P support in the request queue. For this, we create an NVME_F_PCI_P2P flag which tells the core to set QUEUE_FLAG_PCI_P2P in the request queue. Signed-off-by:

[PATCH 6/8] arm64: convert to generic builtin command line

2018-09-27 Thread Maksym Kokhan
From: Daniel Walker This updates the arm64 code to use the CONFIG_GENERIC_CMDLINE option. Cc: Daniel Walker Cc: Daniel Walker Signed-off-by: Daniel Walker Signed-off-by: Maksym Kokhan --- arch/arm64/Kconfig| 17 + arch/arm64/kernel/setup.c | 3 +++ 2 files changed,

[PATCH v8 07/13] block: Add PCI P2P flag for request queue and check support for requests

2018-09-27 Thread Logan Gunthorpe
QUEUE_FLAG_PCI_P2P is introduced meaning a driver's request queue supports targeting P2P memory. This will be used by P2P providers and orchestrators (in subsequent patches) to ensure block devices can support P2P memory before submitting P2P backed pages to submit_bio(). Signed-off-by: Logan Gunt

[PATCH v8 09/13] nvme-pci: Use PCI p2pmem subsystem to manage the CMB

2018-09-27 Thread Logan Gunthorpe
Register the CMB buffer as p2pmem and use the appropriate allocation functions to create and destroy the IO submission queues. If the CMB supports WDS and RDS, publish it for use as P2P memory by other devices. Kernels without CONFIG_PCI_P2PDMA will also no longer support NVMe CMB. However, seein

[PATCH 4/8] x86: convert to generic builtin command line

2018-09-27 Thread Maksym Kokhan
From: Daniel Walker This updates the x86 code to use the CONFIG_GENERIC_CMDLINE option. Cc: Daniel Walker Cc: Daniel Walker Signed-off-by: Daniel Walker Signed-off-by: Maksym Kokhan --- arch/x86/Kconfig| 44 +--- arch/x86/kernel/setup.c | 19 +

[PATCH v8 03/13] PCI/P2PDMA: Add PCI p2pmem DMA mappings to adjust the bus offset

2018-09-27 Thread Logan Gunthorpe
The DMA address used when mapping PCI P2P memory must be the PCI bus address. Thus, introduce pci_p2pmem_map_sg() to map the correct addresses when using P2P memory. Memory mapped in this way does not need to be unmapped and thus if we provided pci_p2pmem_unmap_sg() it would be empty. This breaks

[PATCH v8 02/13] PCI/P2PDMA: Add sysfs group to display p2pmem stats

2018-09-27 Thread Logan Gunthorpe
Add a sysfs group to display statistics about P2P memory that is registered in each PCI device. Attributes in the group display the total amount of P2P memory, the amount available and whether it is published or not. Signed-off-by: Logan Gunthorpe Acked-by: Bjorn Helgaas --- Documentation/ABI/

[RESEND v2 1/2] backlight: Remove s6e63m0 driver

2018-09-27 Thread Krzysztof Kozlowski
The driver for S6E63M0 AMOLED LCD panel is not used. It does not support DeviceTree and respective possible users (S5Pv210 Aquila and Goni boards) are DeviceTree-only. Suggested-by: Marek Szyprowski Cc: Marek Szyprowski Cc: Inki Dae Signed-off-by: Krzysztof Kozlowski Acked-by: Jingoo Han Ack

[RESEND v2 2/2] backlight: Remove ld9040 driver

2018-09-27 Thread Krzysztof Kozlowski
The driver for LD9040 AMOLED LCD panel was superseded with DRM driver panel-samsung-ld9040.c. It does not support DeviceTree and respective possible user (Exynos4210 Universal C210) is DeviceTree-only and uses DRM version of driver. Suggested-by: Marek Szyprowski Cc: Marek Szyprowski Cc: Inki D

[PATCH v8 05/13] docs-rst: Add a new directory for PCI documentation

2018-09-27 Thread Logan Gunthorpe
Add a new directory in the driver API guide for PCI specific documentation. This is in preparation for adding a new PCI P2P DMA driver writers guide which will go in this directory. Signed-off-by: Logan Gunthorpe Cc: Jonathan Corbet Cc: Mauro Carvalho Chehab Cc: Greg Kroah-Hartman Cc: Vinod K

[PATCH 1/8] add generic builtin command line

2018-09-27 Thread Maksym Kokhan
From: Daniel Walker This code allows architectures to use a generic builtin command line. The state of the builtin command line options across architecture is diverse. On x86 and mips they have pretty much the same code and the code prepends the builtin command line onto the boot loader provided

[PATCH 0/8] add generic builtin command line

2018-09-27 Thread Maksym Kokhan
There were series of patches [1] for 4.3.0-rc3, that allowed architectures to use a generic builtin command line. I have rebased these patches on kernel 4.19.0-rc4. Things, modified in comparison with original patches: * There was some bug for mips, in the case when CO

[PATCH v8 13/13] nvmet: Optionally use PCI P2P memory

2018-09-27 Thread Logan Gunthorpe
We create a configfs attribute in each nvme-fabrics target port to enable p2p memory use. When enabled, the port will only then use the p2p memory if a p2p memory device can be found which is behind the same switch hierarchy as the RDMA port and all the block devices in use. If the user enabled it

[PATCH v8 04/13] PCI/P2PDMA: Introduce configfs/sysfs enable attribute helpers

2018-09-27 Thread Logan Gunthorpe
Users of the P2PDMA infrastructure will typically need a way for the user to tell the kernel to use P2P resources. Typically this will be a simple on/off boolean operation but sometimes it may be desirable for the user to specify the exact device to use for the P2P operation. Add new helpers for a

[PATCH v8 11/13] nvme-pci: Add a quirk for a pseudo CMB

2018-09-27 Thread Logan Gunthorpe
Introduce a quirk to use CMB-like memory on older devices that have an exposed BAR but do not advertise support for using CMBLOC and CMBSIZE. We'd like to use some of these older cards to test P2P memory. Signed-off-by: Logan Gunthorpe Reviewed-by: Sagi Grimberg --- drivers/nvme/host/nvme.h |

[PATCH v8 01/13] PCI/P2PDMA: Support peer-to-peer memory

2018-09-27 Thread Logan Gunthorpe
Some PCI devices may have memory mapped in a BAR space that's intended for use in peer-to-peer transactions. In order to enable such transactions the memory must be registered with ZONE_DEVICE pages so it can be used by DMA interfaces in existing drivers. Add an interface for other subsystems to f

[PATCH v8 00/13] Copy Offload in NVMe Fabrics with P2P PCI Memory

2018-09-27 Thread Logan Gunthorpe
Hi Everyone, Here is version 6 of the PCI P2PDMA patch set. This version makes a few minor changes from v6 and is based on v4.19-rc5. A git repo is here: https://github.com/sbates130272/linux-p2pmem pci-p2p-v7 Now that we have Bjorn's Acks, I'd preferably like to get Jens's Ack for Patch 7 and t

[PATCH v8 08/13] IB/core: Ensure we map P2P memory correctly in rdma_rw_ctx_[init|destroy]()

2018-09-27 Thread Logan Gunthorpe
In order to use PCI P2P memory the pci_p2pmem_map_sg() function must be called to map the correct PCI bus address. To do this, check the first page in the scatter list to see if it is P2P memory or not. At the moment, scatter lists that contain P2P memory must be homogeneous so if the first page i

[PATCH v8 12/13] nvmet: Introduce helper functions to allocate and free request SGLs

2018-09-27 Thread Logan Gunthorpe
Add helpers to allocate and free the SGL in a struct nvmet_req: int nvmet_req_alloc_sgl(struct nvmet_req *req, struct nvmet_sq *sq) void nvmet_req_free_sgl(struct nvmet_req *req) This will be expanded in a future patch to implement peer-to-peer memory DMAs and should be common with all target dri

Re: [PATCH v7 RESEND 2/4] kexec: allocate unencrypted control pages for kdump in case SME is enabled

2018-09-27 Thread Borislav Petkov
On Thu, Sep 27, 2018 at 03:19:52PM +0800, Lianbo Jiang wrote: > When SME is enabled in the first kernel, we will allocate unencrypted pages > for kdump in order to be able to boot the kdump kernel like kexec. This is not what the commit does - it marks the control pages as decrypted when SME. Why

Re: [PATCH v7 2/6] seccomp: make get_nth_filter available outside of CHECKPOINT_RESTORE

2018-09-27 Thread Jann Horn
On Thu, Sep 27, 2018 at 5:11 PM Tycho Andersen wrote: > In the next commit we'll use this same mnemonic to get a listener for the > nth filter, so we need it available outside of CHECKPOINT_RESTORE in the > USER_NOTIFICATION case as well. > > v2: new in v2 > v3: no changes > v4: no changes > v5: s

Re: [PATCH V5 23/30] dt-bindings: interrupt-controller: C-SKY SMP intc

2018-09-27 Thread Rob Herring
On Tue, Sep 25, 2018 at 07:39:26AM +0800, Guo Ren wrote: > - Dt-bindings doc about C-SKY Multi-processors interrupt controller. > > Signed-off-by: Guo Ren > --- > .../bindings/interrupt-controller/csky,mpintc.txt | 40 > ++ > 1 file changed, 40 insertions(+) > create mode

Re: [PATCH v7 4/6] files: add a replace_fd_files() function

2018-09-27 Thread Jann Horn
On Thu, Sep 27, 2018 at 5:11 PM Tycho Andersen wrote: > Similar to fd_install/__fd_install, we want to be able to replace an fd of > an arbitrary struct files_struct, not just current's. We'll use this in the > next patch to implement the seccomp ioctl that allows inserting fds into a > stopped pr

Re: [PATCH v4 1/2] Bluetooth: Add device_get_bd_address()

2018-09-27 Thread Sinan Kaya
On 9/27/2018 12:41 PM, Balakrishna Godavarthi wrote:  void bt_sock_reclassify_lock(struct sock *sk, int proto); +int device_get_bd_address(struct device *dev, bdaddr_t *bd_addr); Maybe change the API name to start with bt_ and get rid of device_?

Re: [QUEUED v20180920 04/16] stm class: Introduce framing protocol drivers

2018-09-27 Thread Mathieu Poirier
On Thu, Sep 20, 2018 at 03:45:41PM +0300, Alexander Shishkin wrote: > At the moment, the stm class applies a certain STP framing pattern to > the data as it is written to the underlying STM device. In order to > allow different framing patterns (aka protocols), this patch introduces > the concept o

Re: [PATCH] [v3] HID: add support for Apple Magic Trackpad 2

2018-09-27 Thread Sean O'Brien
Gentle reminder, thank you! On Thu, Sep 20, 2018 at 4:13 PM Sean O'Brien wrote: > > USB device > Vendor 05ac (Apple) > Device 0265 (Magic Trackpad 2) > Bluetooth device > Vendor 004c (Apple) > Device 0265 (Magic Trackpad 2) > > Add support for Apple Magic Trackpad

Re: [PATCH V5 19/30] dt-bindings: Add vendor prefix for csky

2018-09-27 Thread Rob Herring
On Tue, 25 Sep 2018 07:39:22 +0800, Guo Ren wrote: > Add csky vendor definition. > > Signed-off-by: Guo Ren > --- > Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + > 1 file changed, 1 insertion(+) > Reviewed-by: Rob Herring

Re: [PATCH V5 18/30] dt-bindings: csky CPU Bindings

2018-09-27 Thread Rob Herring
On Tue, Sep 25, 2018 at 07:39:21AM +0800, Guo Ren wrote: > This patch adds the documentation to describe that how to add cpu nodes in > dts for SMP. > > Signed-off-by: Guo Ren > --- > Documentation/devicetree/bindings/csky/cpus.txt | 70 > + > 1 file changed, 70 insertio

Re: [PATCH v4 2/2] Bluetooth: btqcomsmd: Get the BD address with device_get_bd_address()

2018-09-27 Thread Balakrishna Godavarthi
Hi Matthias, On 2018-09-27 06:18, Matthias Kaehlcke wrote: Use the new API to get the BD address instead of reading it directly from the device tree. Also remove an unncessary pair of braces in the same area of code. Signed-off-by: Matthias Kaehlcke Reviewed-by: Andy Shevchenko Reviewed-by:

Re: [PATCH 4/5] dma-direct: implement complete bus_dma_mask handling

2018-09-27 Thread Robin Murphy
On 27/09/18 17:27, Christoph Hellwig wrote: On Thu, Sep 27, 2018 at 05:14:56PM +0100, Robin Murphy wrote: This just seemed more readable to me than min_not_zero, but if others prefer min_not_zero I can switch. Nah, just checking whether there were any intentionally different assumptions compar

Re: [PATCH v4 1/2] Bluetooth: Add device_get_bd_address()

2018-09-27 Thread Balakrishna Godavarthi
Hi Matthias, On 2018-09-27 06:18, Matthias Kaehlcke wrote: Provide an API for Bluetooth drivers to retrieve the Bluetooth Device address (BD_ADDR) for a device. If the firmware node of the device has a property 'local-bd-address' the BD address is read from this property. Signed-off-by: Matthia

Re: [PATCH v7 5/6] seccomp: add a way to pass FDs via a notification fd

2018-09-27 Thread Jann Horn
On Thu, Sep 27, 2018 at 5:11 PM Tycho Andersen wrote: > This patch adds a way to insert FDs into the tracee's process (also > close/overwrite fds for the tracee). This functionality is necessary to > mock things like socketpair() or dup2() or similar, but since it depends on > external (vfs) patch

Re: [PATCH v2] NTB: switchtec_ntb: Update switchtec documentation with pre-requisites for NTB

2018-09-27 Thread Logan Gunthorpe
On 2018-09-27 12:36 a.m., wesley.sh...@microchip.com wrote: > Update switchtec documentation > 1.add pre-requisites for NTB driver > 2.misc updates > change NTB hardware driver name to ntb_hw_switchtec > update the description of 2 partitions limit > add reference to Linux Documentation/ntb.t

Re: [PATCH 0/2] boot to a mapped device

2018-09-27 Thread Kees Cook
On Thu, Sep 27, 2018 at 7:23 AM, Mike Snitzer wrote: > On Wed, Sep 26 2018 at 3:16am -0400, > Richard Weinberger wrote: > >> Helen, >> >> On Wed, Sep 26, 2018 at 7:01 AM Helen Koike >> wrote: >> > >> > This series is reviving an old patchwork. >> > Booting from a mapped device requires an init

Re: [PATCH v7 3/6] seccomp: add a way to get a listener fd from ptrace

2018-09-27 Thread Tycho Andersen
On Thu, Sep 27, 2018 at 06:20:23PM +0200, Jann Horn wrote: > On Thu, Sep 27, 2018 at 5:11 PM Tycho Andersen wrote: > > As an alternative to SECCOMP_FILTER_FLAG_GET_LISTENER, perhaps a ptrace() > > version which can acquire filters is useful. There are at least two reasons > > this is preferable, e

Re: [linux-sunxi] Re: [PATCH 04/12] drm/sun4i: sun6i_mipi_dsi: Enable missing DSI bus clock

2018-09-27 Thread Chen-Yu Tsai
On Fri, Sep 28, 2018 at 12:26 AM Jagan Teki wrote: > > On Thu, Sep 27, 2018 at 7:47 PM Chen-Yu Tsai wrote: > > > > On Thu, Sep 27, 2018 at 9:44 PM Jagan Teki > > wrote: > > > > > > On Thu, Sep 27, 2018 at 6:13 PM Chen-Yu Tsai wrote: > > > > > > > > Hi, > > > > > > > > On Thu, Sep 27, 2018 at 7

Re: [QUEUED v20180920 01/16] stm class: Rework policy node fallback

2018-09-27 Thread Mathieu Poirier
Hi Alex, On Thu, Sep 20, 2018 at 03:45:38PM +0300, Alexander Shishkin wrote: > Currently, if no matching policy node can be found for a trace source, > we'll try to use "default" policy node, then, if that doesn't exist, > we'll pick the first node, in order of creation. If that also fails, > we'l

Re: [PATCH v8 07/12] dt-bindings: mfd: Add a document for PECI client MFD

2018-09-27 Thread Jae Hyun Yoo
On 9/27/2018 8:15 AM, Rob Herring wrote: On Tue, 18 Sep 2018 14:51:19 -0700, Jae Hyun Yoo wrote: This commit adds a dt-bindings document for PECI client MFD. Cc: Lee Jones Cc: Rob Herring Cc: Mark Rutland Cc: Andrew Jeffery Cc: James Feist Cc: Jason M Biils Cc: Joel Stanley Cc: Vernon Ma

Re: [PATCH v8 01/12] dt-bindings: Add a document of PECI subsystem

2018-09-27 Thread Jae Hyun Yoo
On 9/27/2018 8:10 AM, Rob Herring wrote: On Tue, 18 Sep 2018 14:51:13 -0700, Jae Hyun Yoo wrote: This commit adds a document of generic PECI bus, adapter and client driver. Cc: Rob Herring Cc: Mark Rutland Cc: Andrew Jeffery Cc: Joel Stanley Signed-off-by: Jae Hyun Yoo Reviewed-by: Haiyue

Re: [PATCH net-next v6 07/23] zinc: ChaCha20 ARM and ARM64 implementations

2018-09-27 Thread Andy Lutomirski
> On Sep 27, 2018, at 8:19 AM, Jason A. Donenfeld wrote: > > Hey again Thomas, > >> On Thu, Sep 27, 2018 at 3:26 PM Jason A. Donenfeld wrote: >> >> Hi Thomas, >> >> I'm trying to optimize this for crypto performance while still taking >> into account preemption concerns. I'm having a bit o

Re: [PATCH 4/5] dma-direct: implement complete bus_dma_mask handling

2018-09-27 Thread Christoph Hellwig
On Thu, Sep 27, 2018 at 05:14:56PM +0100, Robin Murphy wrote: >> This just seemed more readable to me than min_not_zero, but if others >> prefer min_not_zero I can switch. > > Nah, just checking whether there were any intentionally different > assumptions compared to the couple of other places in

Re: [linux-sunxi] Re: [PATCH 04/12] drm/sun4i: sun6i_mipi_dsi: Enable missing DSI bus clock

2018-09-27 Thread Jagan Teki
On Thu, Sep 27, 2018 at 7:47 PM Chen-Yu Tsai wrote: > > On Thu, Sep 27, 2018 at 9:44 PM Jagan Teki wrote: > > > > On Thu, Sep 27, 2018 at 6:13 PM Chen-Yu Tsai wrote: > > > > > > Hi, > > > > > > On Thu, Sep 27, 2018 at 7:49 PM Jagan Teki > > > wrote: > > > > > > > > DSI bus_clk is already avail

RE: [PATCH v5 3/5] SELinux: Prepare for PTRACE_MODE_SCHED

2018-09-27 Thread Schaufler, Casey
> -Original Message- > From: Stephen Smalley [mailto:s...@tycho.nsa.gov] > Sent: Thursday, September 27, 2018 8:50 AM > To: Schaufler, Casey ; kernel- > harden...@lists.openwall.com; linux-kernel@vger.kernel.org; linux-security- > mod...@vger.kernel.org; seli...@tycho.nsa.gov; Hansen, Dave

Re: [PATCH] RDMA/ucontext: fix building with CONFIG_MMU=n

2018-09-27 Thread Jason Gunthorpe
On Thu, Sep 27, 2018 at 12:10:03PM +0200, Arnd Bergmann wrote: > The zap_vma_ptes() is declared but not defined on NOMMU kernels, > causing a link error for the newly added uverbs code: > > drivers/infiniband/core/uverbs_main.o: In function > `uverbs_user_mmap_disassociate': > uverbs_main.c:(.tex

Re: [PATCH v6 1/3] dt-bindings: pinctrl: renesas,rzn1-pinctrl: documentation

2018-09-27 Thread Rob Herring
On Thu, Sep 27, 2018 at 05:15:54PM +0200, Geert Uytterhoeven wrote: > On Thu, Sep 27, 2018 at 3:59 PM Phil Edworthy > wrote: > > The Renesas RZ/N1 device family PINCTRL node description. > > > > Based on a patch originally written by Michel Pollet at Renesas. > > > > Signed-off-by: Phil Edworthy

Re: [PATCH 1/9] mm: infrastructure for page fault page caching

2018-09-27 Thread Matthew Wilcox
On Wed, Sep 26, 2018 at 05:08:48PM -0400, Josef Bacik wrote: > We want to be able to cache the result of a previous loop of a page > fault in the case that we use VM_FAULT_RETRY, so introduce > handle_mm_fault_cacheable that will take a struct vm_fault directly, add > a ->cached_page field to vm_fa

Re: [PATCH v7 3/6] seccomp: add a way to get a listener fd from ptrace

2018-09-27 Thread Jann Horn
On Thu, Sep 27, 2018 at 5:11 PM Tycho Andersen wrote: > As an alternative to SECCOMP_FILTER_FLAG_GET_LISTENER, perhaps a ptrace() > version which can acquire filters is useful. There are at least two reasons > this is preferable, even though it uses ptrace: > > 1. You can control tasks that aren't

Re: [PATCH 06/12] drm/sun4i: sun6i_mipi_dsi: Fix VBP size calculation

2018-09-27 Thread Jagan Teki
On Thu, Sep 27, 2018 at 8:51 PM Maxime Ripard wrote: > > On Thu, Sep 27, 2018 at 05:18:44PM +0530, Jagan Teki wrote: > > According to horizontal and vertical timings are defined > > per the diagram from include/drm/drm_modes.h > > > > Back porch = [hv]total - [hv]sync_end > > > > So, update SUN6I_

Re: [PATCH 1/12 v2] switchtec: Remove immediate status check after submit a MRPC command

2018-09-27 Thread Logan Gunthorpe
Wesley, I'm going to suggest you send patches to me before sending them to the community until you have a better handle of the tools and process. The subject suggests you have 11 other patches in this series so you've mishandled the tools. On 2018-09-26 11:57 p.m., wesley.sh...@microchip.com wrote

Re: [PATCH v2 7/7] arm64: uprobes - ARM32 instruction probing

2018-09-27 Thread Julien Thierry
Hi Maciej, On 26/09/18 13:12, Maciej Slodczyk wrote: Detect what kind of instruction is being probed and depending on the result: - if an A64 instruction handle it the old way, using existing A64 instructions probing code, - if an A32 instruction decode it and handle using the new code, moved fr

Re: [RFC] net;sched: Try to find idle cpu for RPS to handle packets

2018-09-27 Thread Willem de Bruijn
On Wed, Sep 19, 2018 at 12:02 PM Kirill Tkhai wrote: > > On 19.09.2018 18:49, Eric Dumazet wrote: > > On Wed, Sep 19, 2018 at 8:41 AM Kirill Tkhai wrote: > >> > >> On 19.09.2018 17:55, Eric Dumazet wrote: > >>> On Wed, Sep 19, 2018 at 5:29 AM Kirill Tkhai wrote: > > Many workloads have

Re: [PATCH 4/5] dma-direct: implement complete bus_dma_mask handling

2018-09-27 Thread Robin Murphy
On 27/09/18 16:32, Christoph Hellwig wrote: On Thu, Sep 27, 2018 at 03:58:04PM +0100, Robin Murphy wrote: } #endif /* !CONFIG_ARCH_HAS_PHYS_TO_DMA */ diff --git a/kernel/dma/direct.c b/kernel/dma/direct.c index 3c404e33d946..64466b7ef67b 100644 --- a/kernel/dma/direct.c +++ b/kernel/dma

Re: [PATCH v7 RESEND 1/4] x86/ioremap: add a function ioremap_encrypted() to remap kdump old memory

2018-09-27 Thread Borislav Petkov
On Thu, Sep 27, 2018 at 10:53:47PM +0800, lijiang wrote: > If no need to break this line, it will cause a warning of exceeding 80 > characters per line. That's fine - we don't take the 80 cols rule blindly but apply common sense. In this particular case the lines can stick out because they're sim

[PATCH] b43: fix spelling mistake "hw_registred" -> "hw_registered"

2018-09-27 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake struct field name, rename it. Signed-off-by: Colin Ian King --- drivers/net/wireless/broadcom/b43/b43.h | 2 +- drivers/net/wireless/broadcom/b43/main.c | 8 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/ne

Re: [PATCH] printk: inject caller information into the body of message

2018-09-27 Thread Tetsuo Handa
On 2018/09/24 17:11, Tetsuo Handa wrote: > On 2018/09/19 20:02, Tetsuo Handa wrote: >> On 2018/09/14 21:22, Sergey Senozhatsky wrote: >>> The "SMP-safe" comment becomes a bit tricky when pr_line is used with a >>> static buffer. Either we need to require synchronization - umm... and >>> document it

Re: [PATCH] Reduce boot header size with 1 byte

2018-09-27 Thread Randy Dunlap
On 9/27/18 6:41 AM, xypr...@archlinux.org wrote: > From: Alexander F. Rødseth > > Only ah needs to be set to 0 before calling interrupt 0x16 for waiting > for a keypress. > > This patch changes the line that uses xor so that it only zeroes "ah" instead > of "ax". > This saves a byte. > > Signe

Re: [v2 PATCH 2/2 -mm] mm: brk: dwongrade mmap_sem to read when shrinking

2018-09-27 Thread Yang Shi
On 9/27/18 5:50 AM, Kirill A. Shutemov wrote: On Thu, Sep 27, 2018 at 02:10:34AM +0800, Yang Shi wrote: brk might be used to shinrk memory mapping too other than munmap(). s/shinrk/shrink/ So, it may hold write mmap_sem for long time when shrinking large mapping, as what commit ("mm: mmap:

[tip:core/core] s390/jump_label: Switch to relative references

2018-09-27 Thread tip-bot for Heiko Carstens
Commit-ID: 13ddb52c165ba47d153b7b040931a5cbe9220866 Gitweb: https://git.kernel.org/tip/13ddb52c165ba47d153b7b040931a5cbe9220866 Author: Heiko Carstens AuthorDate: Tue, 18 Sep 2018 23:51:44 -0700 Committer: Thomas Gleixner CommitDate: Thu, 27 Sep 2018 17:56:49 +0200 s390/jump_label: Swi

[tip:core/core] jump_table: Move entries into ro_after_init region

2018-09-27 Thread tip-bot for Ard Biesheuvel
Commit-ID: e872267b8bcbb179e21ccc7118f258873d6e7a59 Gitweb: https://git.kernel.org/tip/e872267b8bcbb179e21ccc7118f258873d6e7a59 Author: Ard Biesheuvel AuthorDate: Tue, 18 Sep 2018 23:51:43 -0700 Committer: Thomas Gleixner CommitDate: Thu, 27 Sep 2018 17:56:49 +0200 jump_table: Move ent

Re: [v2 PATCH 2/2 -mm] mm: brk: dwongrade mmap_sem to read when shrinking

2018-09-27 Thread Yang Shi
On 9/27/18 5:14 AM, Vlastimil Babka wrote: On 9/26/18 8:10 PM, Yang Shi wrote: Again, "downgrade" in the subject brk might be used to shinrk memory mapping too other than munmap(). ^ shrink So, it may hold write mmap_sem for long time when shrinking large mapping,

Re: Fix 80d20d35af1e ("nohz: Fix local_timer_softirq_pending()") may have revealed another problem

2018-09-27 Thread Thomas Gleixner
On Tue, 28 Aug 2018, Frederic Weisbecker wrote: > On Fri, Aug 24, 2018 at 07:06:32PM +0200, Heiner Kallweit wrote: > > I tested it and Frederic is right, it doesn't help. Can it be somehow > > related to > > the cpu being brought down during suspend? Because I get the warning only > > during > >

Re: [v2 PATCH 1/2 -mm] mm: mremap: dwongrade mmap_sem to read when shrinking

2018-09-27 Thread Yang Shi
On 9/27/18 4:50 AM, Vlastimil Babka wrote: On 9/26/18 8:10 PM, Yang Shi wrote: Subject: [v2 PATCH 1/2 -mm] mm: mremap: dwongrade mmap_sem to read when shrinking "downgrade" in the subject Will fix in the next version. Thanks, Yang Other than munmap, mremap might be used to shrink mem

Re: [PATCH 2/2] hwmon: ina3221: Add enable sysfs nodes

2018-09-27 Thread Guenter Roeck
Hi Nicolin, On Wed, Sep 26, 2018 at 02:55:06PM -0700, Nicolin Chen wrote: > On Wed, Sep 26, 2018 at 01:44:55PM -0700, Guenter Roeck wrote: > > On Wed, Sep 26, 2018 at 01:25:20PM -0700, Nicolin Chen wrote: > > > Hello, > > > > > > On Wed, Sep 26, 2018 at 12:58:17PM -0700, Guenter Roeck wrote: > >

[tip:core/core] jump_label: Annotate entries that operate on __init code earlier

2018-09-27 Thread tip-bot for Ard Biesheuvel
Commit-ID: 19483677684b6ca01606f58503cb79cdfbbc7c72 Gitweb: https://git.kernel.org/tip/19483677684b6ca01606f58503cb79cdfbbc7c72 Author: Ard Biesheuvel AuthorDate: Tue, 18 Sep 2018 23:51:42 -0700 Committer: Thomas Gleixner CommitDate: Thu, 27 Sep 2018 17:56:48 +0200 jump_label: Annotate

[tip:core/core] x86/jump_table: Use relative references

2018-09-27 Thread tip-bot for Ard Biesheuvel
Commit-ID: b34006c4258c9c86597b6b7123d6a9a3513d6cd7 Gitweb: https://git.kernel.org/tip/b34006c4258c9c86597b6b7123d6a9a3513d6cd7 Author: Ard Biesheuvel AuthorDate: Tue, 18 Sep 2018 23:51:41 -0700 Committer: Thomas Gleixner CommitDate: Thu, 27 Sep 2018 17:56:48 +0200 x86/jump_table: Use

[tip:core/core] x86/jump_label: Switch to jump_entry accessors

2018-09-27 Thread tip-bot for Ard Biesheuvel
Commit-ID: 9fc0f798ab8a6c042d811e45086260eb59be45c1 Gitweb: https://git.kernel.org/tip/9fc0f798ab8a6c042d811e45086260eb59be45c1 Author: Ard Biesheuvel AuthorDate: Tue, 18 Sep 2018 23:51:40 -0700 Committer: Thomas Gleixner CommitDate: Thu, 27 Sep 2018 17:56:48 +0200 x86/jump_label: Swit

[tip:core/core] x86: Add support for 64-bit place relative relocations

2018-09-27 Thread tip-bot for Ard Biesheuvel
Commit-ID: b40a142b12b5c4312171140ff2bc92971b8a7a09 Gitweb: https://git.kernel.org/tip/b40a142b12b5c4312171140ff2bc92971b8a7a09 Author: Ard Biesheuvel AuthorDate: Tue, 18 Sep 2018 23:51:39 -0700 Committer: Thomas Gleixner CommitDate: Thu, 27 Sep 2018 17:56:47 +0200 x86: Add support for

[tip:core/core] arm64/kernel: jump_label: Switch to relative references

2018-09-27 Thread tip-bot for Ard Biesheuvel
Commit-ID: c296146c058c87e9ed53001b6a3988519dbbb6a5 Gitweb: https://git.kernel.org/tip/c296146c058c87e9ed53001b6a3988519dbbb6a5 Author: Ard Biesheuvel AuthorDate: Tue, 18 Sep 2018 23:51:38 -0700 Committer: Thomas Gleixner CommitDate: Thu, 27 Sep 2018 17:56:47 +0200 arm64/kernel: jump_l

[tip:core/core] jump_label: Abstract jump_entry member accessors

2018-09-27 Thread tip-bot for Ard Biesheuvel
Commit-ID: 9ae033aca8d600e36034d4d0743aad624cec92ed Gitweb: https://git.kernel.org/tip/9ae033aca8d600e36034d4d0743aad624cec92ed Author: Ard Biesheuvel AuthorDate: Tue, 18 Sep 2018 23:51:36 -0700 Committer: Thomas Gleixner CommitDate: Thu, 27 Sep 2018 17:56:46 +0200 jump_label: Abstract

Re: [PATCH 47/48] perf record: Spread maps for --threads option

2018-09-27 Thread Jiri Olsa
On Wed, Sep 26, 2018 at 08:23:17AM +0200, Jiri Olsa wrote: SNIP > > I agree with Namhyung, with a slight difference: perhaps we should set > > perf_event_attr.mmap on one of the events of the per-cpu mmap, that way > > we don't need that dummy event, right? > > currently it's all based on having

Re: [PATCH v1] perf record: encode -k clockid frequency into Perf trace

2018-09-27 Thread Jiri Olsa
On Thu, Sep 27, 2018 at 03:54:03PM +0300, Alexey Budankov wrote: > > Store -k clockid frequency into Perf trace to enable timestamps > derived metrics conversion into wall clock time on reporting stage. > > Below is the example of perf report output: > > tools/perf/perf record -k raw -- ../../m

Re: [PATCH 1/3] perf report: don't try to map ip to invalid map

2018-09-27 Thread Jiri Olsa
On Wed, Sep 26, 2018 at 03:52:05PM +0200, Milian Wolff wrote: > Fixes a crash when the report encounters an address that > could not be associated with an mmaped region: > > #0 0x557bdc4a in callchain_srcline (ip= Cannot access memory at address 0x38>, sym=0x0, map=0x0) at > util/machine

[tip:core/core] jump_label: Implement generic support for relative references

2018-09-27 Thread tip-bot for Ard Biesheuvel
Commit-ID: 50ff18ab497aa22f6a59444625df7508c8918237 Gitweb: https://git.kernel.org/tip/50ff18ab497aa22f6a59444625df7508c8918237 Author: Ard Biesheuvel AuthorDate: Tue, 18 Sep 2018 23:51:37 -0700 Committer: Thomas Gleixner CommitDate: Thu, 27 Sep 2018 17:56:47 +0200 jump_label: Implemen

Re: perf segmentation fault from NULL dereference

2018-09-27 Thread Jiri Olsa
On Tue, Sep 25, 2018 at 04:53:40PM +0100, John Garry wrote: > Hi, > > I am seeing this perf crash on my arm64-based system: > > root@localhost:~# ./perf_debug_ record -e armv8_pmuv3_0/br_mis_pred/ sleep 1 > perf: Segmentation fault > Obtained 9 stack frames. > ./perf_debug_() [0x4c5ef8] > [0x

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