Re: [PATCH 1/3] docs: kasan.rst: add two missing blank lines

2020-09-18 Thread Andrey Konovalov
On Thu, Sep 17, 2020 at 10:04 AM Mauro Carvalho Chehab wrote: > > literal blocks should start and end with a blank line, > as otherwise the parser complains and may do the wrong > thing, as warned by Sphinx: > > Documentation/dev-tools/kasan.rst:298: WARNING: Literal block ends > without

Re: [PATCH v2 0/3] Fix pci_iounmap() on !CONFIG_GENERIC_IOMAP

2020-09-18 Thread Lorenzo Pieralisi
On Wed, Sep 16, 2020 at 12:06:55PM +0100, Lorenzo Pieralisi wrote: > v2 of a previous posting. > > v1->v2: > - Added additional patch to remove sparc32 useless __KERNEL__ > guard > > v1: > https://lore.kernel.org/lkml/20200915093203.16934-1-lorenzo.pieral...@arm.com > > Original c

Re: [PATCH leds v2 15/50] leds: lm3697: cosmetic change: use helper variable, reverse christmas tree

2020-09-18 Thread Dan Murphy
Marek On 9/17/20 5:33 PM, Marek Behún wrote: Use helper variable dev instead of always writing &client->dev, or &priv->client->dev, or even &led->priv->client->dev. With one more line moved reverse christmas tree is also achieved. Reviewed-by: Dan Murphy

Re: [PATCH v3 00/14] Adding GAUDI NIC code to habanalabs driver

2020-09-18 Thread Leon Romanovsky
On Fri, Sep 18, 2020 at 02:36:10PM +0300, Gal Pressman wrote: > On 17/09/2020 20:18, Jason Gunthorpe wrote: > > On Tue, Sep 15, 2020 at 11:46:58PM +0300, Oded Gabbay wrote: > >> infrastructure for communication between multiple accelerators. Same > >> as Nvidia uses NVlink, we use RDMA that we have

Re: [PATCH v3 00/14] Adding GAUDI NIC code to habanalabs driver

2020-09-18 Thread Jason Gunthorpe
On Fri, Sep 18, 2020 at 02:36:10PM +0300, Gal Pressman wrote: > On 17/09/2020 20:18, Jason Gunthorpe wrote: > > On Tue, Sep 15, 2020 at 11:46:58PM +0300, Oded Gabbay wrote: > >> infrastructure for communication between multiple accelerators. Same > >> as Nvidia uses NVlink, we use RDMA that we have

Re: [PATCH v2] arm64: dts: qcom: sc7180: Add lpass cpu node for I2S driver

2020-09-18 Thread Srinivasa Rao Mandadapu
Thanks Mr. Doug for your time to review this patch!! On 9/14/2020 11:11 PM, Doug Anderson wrote: Hi, On Tue, Sep 1, 2020 at 9:04 PM Srinivasa Rao Mandadapu wrote: From: Ajit Pandey Add the I2S controller node to sc7180 dtsi. Add pinmux for primary and secondary I2S. Signed-off-by: Ajit Pan

Re: [PATCH v2] arm64: Enable PCI write-combine resources under sysfs

2020-09-18 Thread Ard Biesheuvel
On Fri, 18 Sep 2020 at 14:08, Catalin Marinas wrote: > > On Fri, Sep 18, 2020 at 03:33:12AM +, Clint Sbisa wrote: > > This change exposes write-combine mappings under sysfs for > > prefetchable PCI resources on arm64. > > > > Originally, the usage of "write combine" here was driven by the x86

Re: [PATCH v3 00/14] Adding GAUDI NIC code to habanalabs driver

2020-09-18 Thread Oded Gabbay
On Fri, Sep 18, 2020 at 2:52 PM Leon Romanovsky wrote: > > On Fri, Sep 18, 2020 at 02:36:10PM +0300, Gal Pressman wrote: > > On 17/09/2020 20:18, Jason Gunthorpe wrote: > > > On Tue, Sep 15, 2020 at 11:46:58PM +0300, Oded Gabbay wrote: > > >> infrastructure for communication between multiple accel

Re: [GIT PULL] mtd: Fixes for v5.9-rc6

2020-09-18 Thread Miquel Raynal
Hi Linus, Vignesh Raghavendra wrote on Fri, 18 Sep 2020 16:13:47 +0530: > Hello Linus, > > Please pull the MTD changes for v5.9-rc6. > > I am sending this on behalf of MTD maintainers group this time around. > > Miquel/Richard, > > Could you please ACK the PR? I confirm Vignesh is allowed

Re: [PATCH v3 08/11] kvm: arm64: Create separate instances of kvm_host_data for VHE/nVHE

2020-09-18 Thread Will Deacon
On Wed, Sep 16, 2020 at 06:34:36PM +0100, David Brazdil wrote: > Host CPU context is stored in a global per-cpu variable `kvm_host_data`. > In preparation for introducing independent per-CPU region for nVHE hyp, > create two separate instances of `kvm_host_data`, one for VHE and one > for nVHE. >

Re: [PATCH v3 00/14] Adding GAUDI NIC code to habanalabs driver

2020-09-18 Thread Oded Gabbay
On Fri, Sep 18, 2020 at 2:56 PM Jason Gunthorpe wrote: > > On Fri, Sep 18, 2020 at 02:36:10PM +0300, Gal Pressman wrote: > > On 17/09/2020 20:18, Jason Gunthorpe wrote: > > > On Tue, Sep 15, 2020 at 11:46:58PM +0300, Oded Gabbay wrote: > > >> infrastructure for communication between multiple accel

Re: [PATCH v3 07/11] kvm: arm64: Duplicate arm64_ssbd_callback_required for nVHE hyp

2020-09-18 Thread Will Deacon
On Wed, Sep 16, 2020 at 06:34:35PM +0100, David Brazdil wrote: > Hyp keeps track of which cores require SSBD callback by accessing a > kernel-proper global variable. Create an nVHE symbol of the same name > and copy the value from kernel proper to nVHE at KVM init time. > > Done in preparation for

Re: [PATCH v2 00/10] KFENCE: A low-overhead sampling-based memory safety error detector

2020-09-18 Thread Marco Elver
On Fri, 18 Sep 2020 at 13:17, Qian Cai wrote: > > On Tue, 2020-09-15 at 15:20 +0200, Marco Elver wrote: > > This adds the Kernel Electric-Fence (KFENCE) infrastructure. KFENCE is a > > low-overhead sampling-based memory safety error detector of heap > > use-after-free, invalid-free, and out-of-bou

Re: [PATCH] soundwire: Add generic bandwidth allocation algorithm

2020-09-18 Thread Vinod Koul
On 08-09-20, 21:15, Bard Liao wrote: > This algorithm computes bus parameters like clock frequency, frame > shape and port transport parameters based on active stream(s) running > on the bus. > > Developers can also implement their own .compute_params() callback for > specific resource management

Re: [PATCH v3 09/11] kvm: arm64: Mark hyp stack pages reserved

2020-09-18 Thread Will Deacon
On Wed, Sep 16, 2020 at 06:34:37PM +0100, David Brazdil wrote: > In preparation for unmapping hyp pages from host stage-2, allocate/free hyp > stack using new helpers which automatically mark the pages reserved. Given that this series doesn't get us that the point of having a stage-2 for the host,

Re: [PATCH v3 00/14] Adding GAUDI NIC code to habanalabs driver

2020-09-18 Thread Jason Gunthorpe
On Tue, Sep 15, 2020 at 08:10:08PM +0300, Oded Gabbay wrote: > Hello, > > This is the second version of the patch-set to upstream the GAUDI NIC code > into the habanalabs driver. > > The only modification from v2 is in the ethtool patch (patch 12). Details > are in that patch's commit message.

Re: [PATCH v4 0/3] soundwire: qcom: fix IP version v1.5.1 support

2020-09-18 Thread Vinod Koul
On 17-09-20, 13:01, Srinivas Kandagatla wrote: > While testing Qualcomm soundwire controller version 1.5.1, found two issue, > Firstly the frame shape information configured vs the bus parameters > are out of sync. secondly some ports on this ip version require > block packing mode support. > > Wi

Re: [PATCH v3 00/14] Adding GAUDI NIC code to habanalabs driver

2020-09-18 Thread Oded Gabbay
On Fri, Sep 18, 2020 at 3:00 PM Jason Gunthorpe wrote: > > > On Tue, Sep 15, 2020 at 08:10:08PM +0300, Oded Gabbay wrote: > > Hello, > > > > This is the second version of the patch-set to upstream the GAUDI NIC code > > into the habanalabs driver. > > > > The only modification from v2 is in the et

Re: [RFC 4/5] mm, page_alloc: cache pageset high and batch in struct zone

2020-09-18 Thread Vlastimil Babka
On 9/10/20 1:30 PM, Oscar Salvador wrote: > On Mon, Sep 07, 2020 at 06:36:27PM +0200, Vlastimil Babka wrote: >*/ >> -static void setup_pageset(struct per_cpu_pageset *p); >> +static void pageset_init(struct per_cpu_pageset *p); > > this belongs to the respective patches Right, thanks. >> -st

Re: [PATCH v3 00/14] Adding GAUDI NIC code to habanalabs driver

2020-09-18 Thread Leon Romanovsky
On Fri, Sep 18, 2020 at 02:56:09PM +0300, Oded Gabbay wrote: > On Fri, Sep 18, 2020 at 2:52 PM Leon Romanovsky wrote: > > > > On Fri, Sep 18, 2020 at 02:36:10PM +0300, Gal Pressman wrote: > > > On 17/09/2020 20:18, Jason Gunthorpe wrote: > > > > On Tue, Sep 15, 2020 at 11:46:58PM +0300, Oded Gabba

[PATCH] KVM: use struct_size() and flex_array_size() helpers in kvm_io_bus_unregister_dev()

2020-09-18 Thread Rustam Kovhaev
Make use of the struct_size() helper to avoid any potential type mistakes and protect against potential integer overflows Make use of the flex_array_size() helper to calculate the size of a flexible array member within an enclosing structure Cc: sta...@vger.kernel.org Suggested-by: Gustavo A. R. S

[PATCH 2/2] dev_ioctl: split out SIOC?IFMAP ioctls

2020-09-18 Thread Arnd Bergmann
The ifreq ioctls need a special compat handler at the moment because of the size difference between the struct on native and compat architectures, but this difference exists only for one pair of ioctls, SIOCGIFMAP and SIOCSIFMAP. Splitting these two out of dev_ioctl() into their own higher level i

[PATCH 1/2] ethtool: improve compat ioctl handling

2020-09-18 Thread Arnd Bergmann
The ethtool compat ioctl handling is hidden away in net/socket.c, which introduces a couple of minor oddities: - The implementation may end up diverging, as seen in the RXNFC extension in commit 84a1d9c48200 ("net: ethtool: extend RXNFC API to support RSS spreading of filter matches") that doe

[PATCH] drm/stm: dsi: Avoid printing errors for -EPROBE_DEFER

2020-09-18 Thread Yannick Fertre
Don't print error when probe deferred error is returned. Signed-off-by: Yannick Fertre --- drivers/gpu/drm/stm/dw_mipi_dsi-stm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c b/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c index 2e1f2664495d

Re: [PATCH v3 00/14] Adding GAUDI NIC code to habanalabs driver

2020-09-18 Thread Oded Gabbay
On Fri, Sep 18, 2020 at 3:03 PM Leon Romanovsky wrote: > > On Fri, Sep 18, 2020 at 02:56:09PM +0300, Oded Gabbay wrote: > > On Fri, Sep 18, 2020 at 2:52 PM Leon Romanovsky wrote: > > > > > > On Fri, Sep 18, 2020 at 02:36:10PM +0300, Gal Pressman wrote: > > > > On 17/09/2020 20:18, Jason Gunthorpe

[PATCH v11 3/3] drm: bridge: cdns-mhdp8546: Add TI J721E wrapper

2020-09-18 Thread Swapnil Jakhade
Add J721E wrapper for mhdp, which sets up the clock and data muxes. Signed-off-by: Jyri Sarha Signed-off-by: Yuti Amonkar Signed-off-by: Swapnil Jakhade Reviewed-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/bridge/cadence/Kconfig| 13 drivers/gpu/drm/brid

[PATCH v11 0/3] drm: Add support for Cadence MHDP8546 DPI/DP bridge and J721E wrapper.

2020-09-18 Thread Swapnil Jakhade
This patch series adds new DRM bridge driver for Cadence MHDP8546 DPI/DP bridge. The Cadence Display Port IP is also referred as MHDP (Mobile High Definition Link, High-Definition Multimedia Interface, Display Port). Cadence Display Port complies with VESA DisplayPort (DP) and embedded Display Port

[PATCH v11 1/3] dt-bindings: drm/bridge: Document Cadence MHDP8546 bridge bindings

2020-09-18 Thread Swapnil Jakhade
From: Yuti Amonkar Document the bindings used for the Cadence MHDP8546 DPI/DP bridge in yaml format. Signed-off-by: Yuti Amonkar Signed-off-by: Swapnil Jakhade Reviewed-by: Rob Herring Reviewed-by: Laurent Pinchart --- .../display/bridge/cdns,mhdp8546.yaml | 169 ++

[PATCH v11 2/3] drm: bridge: Add support for Cadence MHDP8546 DPI/DP bridge

2020-09-18 Thread Swapnil Jakhade
Add a new DRM bridge driver for Cadence MHDP8546 DPTX IP used in TI J721E SoC. MHDP DPTX IP is the component that complies with VESA DisplayPort (DP) and embedded Display Port (eDP) standards. It integrates uCPU running the embedded Firmware (FW) interfaced over APB interface. Basically, it takes

Re: [PATCH v3 00/14] Adding GAUDI NIC code to habanalabs driver

2020-09-18 Thread Oded Gabbay
On Fri, Sep 18, 2020 at 2:36 PM Gal Pressman wrote: > > On 17/09/2020 20:18, Jason Gunthorpe wrote: > > On Tue, Sep 15, 2020 at 11:46:58PM +0300, Oded Gabbay wrote: > >> infrastructure for communication between multiple accelerators. Same > >> as Nvidia uses NVlink, we use RDMA that we have inside

[PATCH] drm/panel: otm8009a: allow using non-continuous dsi clock

2020-09-18 Thread Yannick Fertre
From: Antonio Borneo The panel is able to work when dsi clock is non-continuous, thus the system power consumption can be reduced using such feature. Add MIPI_DSI_CLOCK_NON_CONTINUOUS to panel's mode_flags. Signed-off-by: Antonio Borneo --- drivers/gpu/drm/panel/panel-orisetech-otm8009a.c | 2

Re: [PATCH] regmap: debugfs: Add back in erroneously removed initialisation of ret

2020-09-18 Thread Mark Brown
On Fri, 18 Sep 2020 12:20:02 +0100, Charles Keepax wrote: > Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git for-next Thanks! [1/1] regmap: debugfs: Add back in erroneously removed initialisation of ret commit: d36cb0205f034e943aa29e35b59c6a441f0056b5 Al

[PATCH v2 1/3] scsi: aacraid: improve compat_ioctl handlers

2020-09-18 Thread Arnd Bergmann
The use of compat_alloc_user_space() can be easily replaced by handling compat arguments in the regular handler, and this will make it work for big-endian kernels as well, which at the moment get an invalid indirect pointer argument. Calling aac_ioctl() instead of aac_compat_do_ioctl() means the c

Re: [PATCH 2/2] arm64/mm: Enable color zero pages

2020-09-18 Thread kernel test robot
Hi Gavin, Thank you for the patch! Yet something to improve: [auto build test ERROR on arm64/for-next/core] [also build test ERROR on soc/for-next arm/for-next kvmarm/next v5.9-rc5 next-20200917] [cannot apply to xlnx/master] [If your patch is applied to the wrong git tree, kindly drop us a note

[PATCH bpf-next v3 2/5] mptcp: attach subflow socket to parent cgroup

2020-09-18 Thread Nicolas Rybowski
It has been observed that the kernel sockets created for the subflows (except the first one) are not in the same cgroup as their parents. That's because the additional subflows are created by kernel workers. This is a problem with eBPF programs attached to the parent's cgroup won't be executed for

[PATCH bpf-next v3 1/5] bpf: expose is_mptcp flag to bpf_tcp_sock

2020-09-18 Thread Nicolas Rybowski
is_mptcp is a field from struct tcp_sock used to indicate that the current tcp_sock is part of the MPTCP protocol. In this protocol, a first socket (mptcp_sock) is created with sk_protocol set to IPPROTO_MPTCP (=262) for control purpose but it isn't directly on the wire. This is the role of the su

[PATCH bpf-next v3 5/5] bpf: selftests: add bpf_mptcp_sock() verifier tests

2020-09-18 Thread Nicolas Rybowski
This patch adds verifier side tests for the new bpf_mptcp_sock() helper. Here are the new tests : - NULL bpf_sock is correctly handled - We cannot access a field from bpf_mptcp_sock if the latter is NULL - We can access a field from bpf_mptcp_sock if the latter is not NULL - We cannot modify a fie

[PATCH bpf-next v3 3/5] bpf: add 'bpf_mptcp_sock' structure and helper

2020-09-18 Thread Nicolas Rybowski
In order to precisely identify the parent MPTCP connection of a subflow, it is required to access the mptcp_sock's token which uniquely identify a MPTCP connection. This patch adds a new structure 'bpf_mptcp_sock' exposing the 'token' field of the 'mptcp_sock' extracted from a subflow's 'tcp_sock'

[PATCH bpf-next v3 4/5] bpf: selftests: add MPTCP test base

2020-09-18 Thread Nicolas Rybowski
This patch adds a base for MPTCP specific tests. It is currently limited to the is_mptcp field in case of plain TCP connection because for the moment there is no easy way to get the subflow sk from a msk in userspace. This implies that we cannot lookup the sk_storage attached to the subflow sk in

[PATCH bpf-next v3 0/5] bpf: add MPTCP subflow support

2020-09-18 Thread Nicolas Rybowski
Previously it was not possible to make a distinction between plain TCP sockets and MPTCP subflow sockets on the BPF_PROG_TYPE_SOCK_OPS hook. This patch series now enables a fine control of subflow sockets. In its current state, it allows to put different sockopt on each subflow from a same MPTCP c

Re: [PATCH printk 2/3] printk: move dictionary keys to dev_printk_info

2020-09-18 Thread Petr Mladek
On Fri 2020-09-18 08:16:37, Rasmus Villemoes wrote: > On 17/09/2020 15.16, John Ogness wrote: > > > if (dev->class) > > subsys = dev->class->name; > > else if (dev->bus) > > subsys = dev->bus->name; > > else > > - return 0; > > + return; > >

[PATCH v2 2/3] scsi: megaraid_sas: check user-provided offsets

2020-09-18 Thread Arnd Bergmann
It sounds unwise to let user space pass an unchecked 32-bit offset into a kernel structure in an ioctl. This is an unsigned variable, so checking the upper bound for the size of the structure it points into is sufficient to avoid data corruption, but as the pointer might also be unaligned, it has t

[PATCH v2 3/3] scsi: megaraid_sas: simplify compat_ioctl handling

2020-09-18 Thread Arnd Bergmann
There have been several attempts to fix serious problems in the compat handling in megasas_mgmt_compat_ioctl_fw(), and it also uses the compat_alloc_user_space() function. Folding the compat handling into the regular ioctl function with in_compat_syscall() simplifies it a lot and avoids some of th

Re: [PATCH v3 00/14] Adding GAUDI NIC code to habanalabs driver

2020-09-18 Thread Jason Gunthorpe
On Fri, Sep 18, 2020 at 02:59:28PM +0300, Oded Gabbay wrote: > On Fri, Sep 18, 2020 at 2:56 PM Jason Gunthorpe wrote: > > > > On Fri, Sep 18, 2020 at 02:36:10PM +0300, Gal Pressman wrote: > > > On 17/09/2020 20:18, Jason Gunthorpe wrote: > > > > On Tue, Sep 15, 2020 at 11:46:58PM +0300, Oded Gabba

Re: [PATCH v2 1/4] mm: fix exec activate_mm vs TLB shootdown and lazy tlb switching race

2020-09-18 Thread Michael Ellerman
Nicholas Piggin writes: > Excerpts from pet...@infradead.org's message of September 14, 2020 8:56 pm: >> On Mon, Sep 14, 2020 at 02:52:16PM +1000, Nicholas Piggin wrote: >>> Reading and modifying current->mm and current->active_mm and switching >>> mm should be done with irqs off, to prevent races

Re: [PATCH v10 0/6] ACPI: Support Generic Initiator proximity domains

2020-09-18 Thread Jonathan Cameron
On Mon, 7 Sep 2020 22:03:01 +0800 Jonathan Cameron wrote: > It would be very nice to finally merge this support during this cycle, > so please take a look. Hi All, Just a quick reminder that this set is still looking for review. Thanks, Jonathan > > I think we need acks covering x86, ARM an

Re: [PATCH v3 00/14] Adding GAUDI NIC code to habanalabs driver

2020-09-18 Thread Leon Romanovsky
On Fri, Sep 18, 2020 at 03:07:19PM +0300, Oded Gabbay wrote: > On Fri, Sep 18, 2020 at 3:03 PM Leon Romanovsky wrote: > > > > On Fri, Sep 18, 2020 at 02:56:09PM +0300, Oded Gabbay wrote: > > > On Fri, Sep 18, 2020 at 2:52 PM Leon Romanovsky wrote: > > > > > > > > On Fri, Sep 18, 2020 at 02:36:10P

Re: [PATCH v38 13/24] x86/sgx: Add SGX_IOC_ENCLAVE_ADD_PAGES

2020-09-18 Thread Jarkko Sakkinen
On Thu, Sep 17, 2020 at 07:09:40PM -0700, Sean Christopherson wrote: > On Thu, Sep 17, 2020 at 01:35:10PM -0500, Haitao Huang wrote: > > On Thu, 17 Sep 2020 11:02:06 -0500, Jarkko Sakkinen > > wrote: > > > > > > Right, I do get the OOM case but wouldn't in that case the reasonable > > > thing to

[GIT PULL] Please pull powerpc/linux.git powerpc-5.9-5 tag

2020-09-18 Thread Michael Ellerman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Linus, Please pull some more powerpc fixes for 5.9: The following changes since commit 4a133eb351ccc275683ad49305d0b04dde903733: powerpc/32s: Disable VMAP stack which CONFIG_ADB_PMU (2020-08-28 12:03:18 +1000) are available in the git repos

Re: [PATCH v3 10/11] kvm: arm64: Set up hyp percpu data for nVHE

2020-09-18 Thread Will Deacon
On Wed, Sep 16, 2020 at 06:34:38PM +0100, David Brazdil wrote: > Add hyp percpu section to linker script and rename the corresponding ELF > sections of hyp/nvhe object files. This moves all nVHE-specific percpu > variables to the new hyp percpu section. > > Allocate sufficient amount of memory for

Re: [PATCH v6 2/2] Add Intel LGM soc DMA support.

2020-09-18 Thread Andy Shevchenko
On Fri, Sep 18, 2020 at 11:42:54AM +0800, Reddy, MallikarjunaX wrote: > On 9/9/2020 7:14 PM, Andy Shevchenko wrote: > > On Wed, Sep 09, 2020 at 07:07:34AM +0800, Amireddy Mallikarjuna reddy wrote: ... > > > + help > > > + Enable support for intel Lightning Mountain SOC DMA controllers. > > > +

Re: [PATCH 2/2] perf probe: Fall back to debuginfod query if debuginfo and source not found

2020-09-18 Thread Arnaldo Carvalho de Melo
Em Fri, Sep 18, 2020 at 11:47:45AM +0900, Masami Hiramatsu escreveu: > On Thu, 17 Sep 2020 21:40:22 -0300 Arnaldo Carvalho de Melo > wrote: > > util/probe-finder.c:1989:35: error: unused parameter 'new_path' > > [-Werror=unused-parameter] > > 1989 | const char *sbuild_id, char **new_path) >

Re: canfdtest on flexcan loopback

2020-09-18 Thread Vladimir Oltean
On Thu, Sep 17, 2020 at 03:10:28PM +0200, Marc Kleine-Budde wrote: > On 9/17/20 2:59 PM, Vladimir Oltean wrote: > > On Wed, Sep 16, 2020 at 03:14:37PM +0300, Vladimir Oltean wrote: > >> Nonetheless, you bring up a good point. I'll try to bring into net-next > >> the minimum amount of required delta

the "read" syscall sees partial effects of the "write" syscall

2020-09-18 Thread Mikulas Patocka
Hi I'd like to ask about this problem: when we write to a file, the kernel takes the write inode lock. When we read from a file, no lock is taken - thus the read syscall can read data that are halfway modified by the write syscall. The standard specifies the effects of the write syscall are at

Re: [PATCH v2 34/37] kasan, arm64: print report from tag fault handler

2020-09-18 Thread Andrey Konovalov
On Thu, Sep 17, 2020 at 7:04 PM Catalin Marinas wrote: > > On Tue, Sep 15, 2020 at 11:16:16PM +0200, Andrey Konovalov wrote: > > diff --git a/arch/arm64/mm/fault.c b/arch/arm64/mm/fault.c > > index cdc23662691c..ac79819317f2 100644 > > --- a/arch/arm64/mm/fault.c > > +++ b/arch/arm64/mm/fault.c >

Re: [PATCH v2 33/37] kasan, arm64: implement HW_TAGS runtime

2020-09-18 Thread Andrey Konovalov
On Fri, Sep 18, 2020 at 12:46 PM Marco Elver wrote: > > On Tue, Sep 15, 2020 at 11:16PM +0200, Andrey Konovalov wrote: > [...] > > arch/arm64/include/asm/memory.h | 4 +- > > arch/arm64/kernel/setup.c | 1 - > > include/linux/kasan.h | 6 +-- > > include/linux/mm.h

Re: [V9fs-developer] [PATCH 02/13] 9p: Tell the VFS that readpage was synchronous

2020-09-18 Thread Dominique Martinet
Matthew Wilcox (Oracle) wrote on Thu, Sep 17, 2020: > The 9p readpage implementation was already synchronous, so use > AOP_UPDATED_PAGE to avoid cycling the page lock. > > Signed-off-by: Matthew Wilcox (Oracle) Acked-by: Dominique Martinet (I assume it'll be merged together with the rest) > >

Allow preserving capabilities when changing user namespace of a process

2020-09-18 Thread Idan Yadgar
Hello, A process which changes its user namespace (unshare or setns), or a process that is created by clone with the CLONE_NEWUSER flag has all capabilities inside the new namespace, and loses all its capabilities in the parent/previous user namespace. This poses an issue because some operations r

Re: [PATCH v3 00/14] Adding GAUDI NIC code to habanalabs driver

2020-09-18 Thread Oded Gabbay
On Fri, Sep 18, 2020 at 3:19 PM Leon Romanovsky wrote: > > On Fri, Sep 18, 2020 at 03:07:19PM +0300, Oded Gabbay wrote: > > On Fri, Sep 18, 2020 at 3:03 PM Leon Romanovsky wrote: > > > > > > On Fri, Sep 18, 2020 at 02:56:09PM +0300, Oded Gabbay wrote: > > > > On Fri, Sep 18, 2020 at 2:52 PM Leon

Re: [PATCH v2 21/37] kasan: introduce CONFIG_KASAN_HW_TAGS

2020-09-18 Thread Marco Elver
On Tue, Sep 15, 2020 at 11:16PM +0200, Andrey Konovalov wrote: > This patch adds a configuration option for a new KASAN mode called > hardware tag-based KASAN. This mode uses the memory tagging approach > like the software tag-based mode, but relies on arm64 Memory Tagging > Extension feature for t

Re: WARNING in close_fs_devices (2)

2020-09-18 Thread David Sterba
On Fri, Sep 18, 2020 at 04:22:16AM -0700, syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit:e4c26faa Merge tag 'usb-5.9-rc5' of git://git.kernel.org/p.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=15bf162190 > kernel

Re: [PATCH printk 2/3] printk: move dictionary keys to dev_printk_info

2020-09-18 Thread Rasmus Villemoes
On 18/09/2020 14.13, Petr Mladek wrote: > On Fri 2020-09-18 08:16:37, Rasmus Villemoes wrote: >> On 17/09/2020 15.16, John Ogness wrote: >> >>> if (dev->class) >>> subsys = dev->class->name; >>> else if (dev->bus) >>> subsys = dev->bus->name; >>> else >>> -

[PATCH -next] arm64: Fix -Wunused-function warning

2020-09-18 Thread YueHaibing
If CONFIG_HOTPLUG_CPU is n, gcc warns: arch/arm64/kernel/smp.c:967:13: warning: ‘ipi_teardown’ defined but not used [-Wunused-function] static void ipi_teardown(int cpu) ^~~~ Use #ifdef guard this. Signed-off-by: YueHaibing --- arch/arm64/kernel/smp.c | 4 +++- 1 file ch

RE: [PATCH] irqchip/gic-v4.1: Optimize the delay time of the poll on the GICR_VPENDBASER.Dirty bit

2020-09-18 Thread lushenming
Hi, Marc, I measured the time from vcpu_load() (include it) to __guest_enter() on Kunpeng 920. On average, It takes 2.55 microseconds (not first run && the VPT is empty). So waiting for 10 microseconds in vcpu scheduling really hurts performance. And I agree that delaying the execution of its_

[PATCH] drm/panel: otm8009a: remove hack to force commands in HS

2020-09-18 Thread Yannick Fertre
From: Antonio Borneo The panel is able to receive commands in LP. The current hack to force backlight commands in HS was due to workaround an incorrect settings on DSI controller that prevents sending LP commands while video out was active. Remove the hack that forces HS commands. Signed-off-by

Re: [PATCH v7 02/11] usb: typec: tcpci: Add set_vbus tcpci callback

2020-09-18 Thread Heikki Krogerus
On Thu, Sep 17, 2020 at 03:18:47AM -0700, Badhri Jagan Sridharan wrote: > set_vbus callback allows TCPC which are TCPCI based, however, > does not support turning on sink and source mode through > Command.SinkVbus and Command.SourceVbusDefaultVoltage. > > Signed-off-by: Badhri Jagan Sridharan Re

Re: [PATCH v2 0/3] KVM: x86: KVM_MEM_PCI_HOLE memory

2020-09-18 Thread Michael S. Tsirkin
On Fri, Sep 11, 2020 at 10:00:31AM -0700, Sean Christopherson wrote: > On Mon, Sep 07, 2020 at 07:32:23AM -0400, Michael S. Tsirkin wrote: > > On Mon, Sep 07, 2020 at 10:37:39AM +0200, Vitaly Kuznetsov wrote: > > > Sean Christopherson writes: > > > > > > > On Fri, Sep 04, 2020 at 09:29:05AM +0200

Re: [PATCH v3 00/14] Adding GAUDI NIC code to habanalabs driver

2020-09-18 Thread Oded Gabbay
On Fri, Sep 18, 2020 at 3:16 PM Jason Gunthorpe wrote: > > On Fri, Sep 18, 2020 at 02:59:28PM +0300, Oded Gabbay wrote: > > On Fri, Sep 18, 2020 at 2:56 PM Jason Gunthorpe wrote: > > > > > > On Fri, Sep 18, 2020 at 02:36:10PM +0300, Gal Pressman wrote: > > > > On 17/09/2020 20:18, Jason Gunthorpe

Re: [PATCH v7 04/11] usb: typec: tcpci_maxim: Chip level TCPC driver

2020-09-18 Thread Heikki Krogerus
On Thu, Sep 17, 2020 at 03:18:49AM -0700, Badhri Jagan Sridharan wrote: > Chip level TCPC driver for Maxim's TCPCI implementation. > This TCPC implementation does not support the following > commands: COMMAND.SinkVbus, COMMAND.SourceVbusDefaultVoltage, > COMMAND.SourceVbusHighVoltage. Instead the s

Re: canfdtest on flexcan loopback

2020-09-18 Thread Marc Kleine-Budde
On 9/18/20 2:27 PM, Vladimir Oltean wrote: >> Is there a bug in v5.4.3? v5.4.66 is current latest v5.4.x > commit 63d5320a0c9b9867628a3a5a12e7f11d4cc109c2 > Author: Paolo Abeni > Date: Tue Feb 18 18:15:44 2020 +0100 > > Revert "net: dev: introduce support for sch BYPASS for lockless qdisc"

Re: [PATCH 2/9] ARM: traps: use get_kernel_nofault instead of set_fs()

2020-09-18 Thread Arnd Bergmann
On Fri, Sep 18, 2020 at 9:42 AM Russell King - ARM Linux admin wrote: > > On Thu, Sep 17, 2020 at 07:29:37PM +0200, Arnd Bergmann wrote: > > On Tue, Sep 8, 2020 at 8:15 AM Christoph Hellwig wrote: > > > > I looked through the history now and the only code path I could > > find that would arrive h

Re: [PATCH v7 06/11] usb: typec: tcpm: Add support for Sink Fast Role SWAP(FRS)

2020-09-18 Thread Heikki Krogerus
On Thu, Sep 17, 2020 at 03:18:51AM -0700, Badhri Jagan Sridharan wrote: > PD 3.0 spec defines a new mechanism for power role swap called > Fast role swap. This change enables TCPM to support FRS when > acting as sink. > > Once the explicit contract is negotiated, sink port is > expected to query t

[PATCH] PCI: kirin: Return -EPROBE_DEFER in case the gpio isn't ready

2020-09-18 Thread Bean Huo
From: Bean Huo PCI driver might be probed before the gpiochip, so, of_get_named_gpio() can return -EPROBE_DEFER. And let kirin_pcie_probe() directly return -ENODEV, which will result in the PCIe probe failure and the PCIe will not be probed again after the gpiochip driver is loaded. Fix the abov

Re: [PATCH] regmap: debugfs: Add back in erroneously removed initialisation of ret

2020-09-18 Thread Dan Carpenter
On Fri, Sep 18, 2020 at 12:20:02PM +0100, Charles Keepax wrote: > Fixes: 94cc89eb8fa5 ("regmap: debugfs: Fix handling of name string for > debugfs init delays") > Reported-by: kernel test robot > Reported-by: Dan Carpenter > Signed-off-by: Charles Keepax > --- > drivers/base/regmap/regmap.c |

[PATCH] drm/bridge/synopsys: dsi: fix initialization sequence

2020-09-18 Thread Yannick Fertre
The current driver calls drm_bridge_add(), to add the dsi bridge to the global bridge list, in dw_mipi_dsi_host_attach(). Thus, it relies on the probing of panel or bridge sub-nodes to trigger the execution of dsi host attach() that will, in turn, call dw_mipi_dsi_host_attach(). This causes an inco

[PATCH -next] nilfs2: Fix some kernel-doc warnings for nilfs2

2020-09-18 Thread Wang Hai
Fixes the following W=1 kernel build warning(s): fs/nilfs2/bmap.c:378: warning: Excess function parameter 'bhp' description in 'nilfs_bmap_assign' fs/nilfs2/cpfile.c:907: warning: Excess function parameter 'status' description in 'nilfs_cpfile_change_cpmode' fs/nilfs2/cpfile.c:946: warning: Exce

[PATCH] drm/panel: rm68200: allow using non-continuous dsi clock

2020-09-18 Thread Yannick Fertre
The panel is able to work when dsi clock is non-continuous, thus the system power consumption can be reduced using such feature. Add MIPI_DSI_CLOCK_NON_CONTINUOUS to panel's mode_flags. Signed-off-by: Antonio Borneo Signed-off-by: Yannick Fertre --- drivers/gpu/drm/panel/panel-raydium-rm68200.

Re: [PATCH v38 13/24] x86/sgx: Add SGX_IOC_ENCLAVE_ADD_PAGES

2020-09-18 Thread Jarkko Sakkinen
On Fri, Sep 18, 2020 at 03:20:39PM +0300, Jarkko Sakkinen wrote: > On Thu, Sep 17, 2020 at 07:09:40PM -0700, Sean Christopherson wrote: > > On Thu, Sep 17, 2020 at 01:35:10PM -0500, Haitao Huang wrote: > > > On Thu, 17 Sep 2020 11:02:06 -0500, Jarkko Sakkinen > > > wrote: > > > > > > > > Right, I

Re: [PATCH] Revert "net: linkwatch: add check for netdevice being present to linkwatch_do_dev"

2020-09-18 Thread Nikolay Aleksandrov
On Mon, 2020-09-14 at 09:40 +0200, Geert Uytterhoeven wrote: > Hi David, > > CC bridge > > On Sun, Sep 13, 2020 at 3:34 AM David Miller wrote: > > From: Geert Uytterhoeven > > Date: Sat, 12 Sep 2020 14:33:59 +0200 > > > > > "dev" is not the bridge device, but the physical Ethernet interface, w

[PATCH -next] fs/nsfs.c: Fix 'ns_common' kernel-doc warning in nsfs.c

2020-09-18 Thread Wang Hai
Fixes the following W=1 kernel build warning(s): fs/nsfs.c:264: warning: Excess function parameter 'ns_common' description in 'ns_match' Rename ns_common to ns. Signed-off-by: Wang Hai --- fs/nsfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/nsfs.c b/fs/nsfs.c inde

Re: [PATCH v2] software_node: Add support for fwnode_graph*() family of functions

2020-09-18 Thread Andy Shevchenko
On Fri, Sep 18, 2020 at 10:57:41AM +0300, Sakari Ailus wrote: > On Fri, Sep 18, 2020 at 08:46:52AM +0100, Dan Scally wrote: > > On 18/09/2020 08:34, Sakari Ailus wrote: > > > On Fri, Sep 18, 2020 at 07:49:31AM +0100, Dan Scally wrote: ... > > > The secondary field is there for this purpose. But i

Re: [PATCH v1] fbdev: aty: remove CONFIG_PM container

2020-09-18 Thread Daniel Vetter
On Thu, Sep 17, 2020 at 05:23:14PM +0530, Vaibhav Gupta wrote: > The changes made in below mentioned commit removed CONFIG_PM containers > from drivers/video/fbdev/aty/atyfb_base.c but not from > drivers/video/fbdev/aty/atyfb.h for respective callbacks. > > This resulted in error for implicit decl

Re: [PATCH] fbcon: Remove the superfluous break

2020-09-18 Thread Daniel Vetter
On Fri, Sep 18, 2020 at 08:52:02AM +0800, Jing Xiangfeng wrote: > > > On 2020/9/18 2:52, Gustavo A. R. Silva wrote: > > > > > > On 9/17/20 08:15, Jing Xiangfeng wrote: > > > Remove the superfuous break, as there is a 'return' before it. > > > > > > Signed-off-by: Jing Xiangfeng > > > > Revie

Re: [PATCH v38 10/24] mm: Add vm_ops->mprotect()

2020-09-18 Thread Borislav Petkov
On Tue, Sep 15, 2020 at 02:28:28PM +0300, Jarkko Sakkinen wrote: > From: Sean Christopherson > > Add vm_ops()->mprotect() for additional constraints for a VMA. > > Intel Software Guard eXtensions (SGX) will use this callback to add two > constraints: > > 1. Verify that the address range does no

Re: [PATCH v8 09/20] gpiolib: cdev: support edge detection for uAPI v2

2020-09-18 Thread Kent Gibson
On Tue, Sep 15, 2020 at 01:39:41PM +0300, Andy Shevchenko wrote: > On Wed, Sep 9, 2020 at 1:33 PM Kent Gibson wrote: > > > > Add support for edge detection to lines requested using > > GPIO_V2_GET_LINE_IOCTL. > > > > The edge_detector implementation is based on the v1 lineevent > > implementation.

Re: [PATCH v2] fbcon: Remove the superfluous break

2020-09-18 Thread Daniel Vetter
On Fri, Sep 18, 2020 at 09:05:21AM +0800, Jing Xiangfeng wrote: > Remove the superfluous break, as there is a 'return' before it. > > Fixes: bad07ff74c32 ("fbcon: smart blitter usage for scrolling") > Signed-off-by: Jing Xiangfeng > Reviewed-by: Nick Desaulniers > Reviewed-by: Gustavo A. R. Silv

let import_iovec deal with compat_iovecs as well

2020-09-18 Thread Christoph Hellwig
Hi Al, this series changes import_iovec to transparently deal with comat iovec structures, and then cleanups up a lot of code dupliation. But to get there it first has to fix the pre-existing bug that io_uring compat contexts don't trigger the in_compat_syscall() check. This has so far been rela

[PATCH 3/9] fs: explicitly check for CHECK_IOVEC_ONLY in rw_copy_check_uvector

2020-09-18 Thread Christoph Hellwig
Explicitly check for the magic value insted of implicitly relying on its number representation. Signed-off-by: Christoph Hellwig --- fs/read_write.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fs/read_write.c b/fs/read_write.c index 5db58b8c78d0dd..f153116bc5399b 100

[PATCH 1/9] kernel: add a PF_FORCE_COMPAT flag

2020-09-18 Thread Christoph Hellwig
Add a flag to force processing a syscall as a compat syscall. This is required so that in_compat_syscall() works for I/O submitted by io_uring helper threads on behalf of compat syscalls. Signed-off-by: Christoph Hellwig --- arch/sparc/include/asm/compat.h | 3 ++- arch/x86/include/asm/compat.h

[PATCH 9/9] security/keys: remove compat_keyctl_instantiate_key_iov

2020-09-18 Thread Christoph Hellwig
Now that import_iovec handles compat iovecs, the native version of keyctl_instantiate_key_iov can be used for the compat case as well. Signed-off-by: Christoph Hellwig --- security/keys/compat.c | 36 ++-- security/keys/internal.h | 5 - security/keys/keyct

[PATCH 8/9] mm: remove compat_process_vm_{readv,writev}

2020-09-18 Thread Christoph Hellwig
Now that import_iovec handles compat iovecs, the native syscalls can be used for the compat case as well. Signed-off-by: Christoph Hellwig --- arch/arm64/include/asm/unistd32.h | 4 +- arch/mips/kernel/syscalls/syscall_n32.tbl | 4 +- arch/mips/kernel/syscalls/syscall_o32.tbl

[PATCH 7/9] fs: remove compat_sys_vmsplice

2020-09-18 Thread Christoph Hellwig
Now that import_iovec handles compat iovecs, the native vmsplice syscall can be used for the compat case as well. Signed-off-by: Christoph Hellwig --- arch/arm64/include/asm/unistd32.h | 2 +- arch/mips/kernel/syscalls/syscall_n32.tbl | 2 +- arch/mips/kernel/syscalls/syscall_o

[PATCH 4/9] fs: handle the compat case in import_iovec

2020-09-18 Thread Christoph Hellwig
Use in compat_syscall to import either native or the compat iovecs, and remove the now superflous compat_import_iovec. Signed-off-by: Christoph Hellwig --- block/scsi_ioctl.c | 12 +--- drivers/scsi/sg.c | 9 +-- fs/aio.c | 38 +--- fs/io_uring.c | 12

[PATCH 6/9] fs: remove the compat readv/writev syscalls

2020-09-18 Thread Christoph Hellwig
Now that import_iovec handles compat iovecs, the native readv and writev syscalls can be used for the compat case as well. Signed-off-by: Christoph Hellwig --- arch/arm64/include/asm/unistd32.h | 4 ++-- arch/mips/kernel/syscalls/syscall_n32.tbl | 4 ++-- arch/mips/ke

[PATCH 5/9] fs: remove various compat readv/writev helpers

2020-09-18 Thread Christoph Hellwig
Now that import_iovec handles compat iovecs as well, all the duplicated code in the compat readv/writev helpers is not needed. Remove them and switch the compat syscall handlers to use the native helpers. Signed-off-by: Christoph Hellwig --- fs/read_write.c | 179 ---

Re: [PATCH v3 6/6] stm class: ftrace: use different channel accroding to CPU

2020-09-18 Thread Alexander Shishkin
Tingwei Zhang writes: > @@ -63,6 +65,7 @@ static int __init stm_ftrace_init(void) > { > int ret; > > + stm_ftrace.data.nr_chans = num_possible_cpus(); Not a problem with this patch necesarily, but this made me realize that .nr_chans may be larger than: (1) what the policy permits,

[PATCH v2 6/9] ARM: oabi-compat: rework sys_semtimedop emulation

2020-09-18 Thread Arnd Bergmann
sys_oabi_semtimedop() is one of the last users of set_fs() on Arm. To remove this one, expose the internal code of the actual implementation that operates on a kernel pointer and call it directly after copying. There should be no measurable impact on the normal execution of this function, and it m

[PATCH v2 2/9] ARM: traps: use get_kernel_nofault instead of set_fs()

2020-09-18 Thread Arnd Bergmann
ARM uses set_fs() and __get_user() to allow the stack dumping code to access possibly invalid pointers carefully. These can be changed to the simpler get_kernel_nofault(), and allow the eventual removal of set_fs(). dump_instr() will print either kernel or user space pointers, depending on how it

[PATCH v2 4/9] ARM: syscall: always store thread_info->syscall

2020-09-18 Thread Arnd Bergmann
The system call number is used in a a couple of places, in particular ptrace, seccomp and /proc//syscall. The last one apparently never worked reliably on ARM for tasks that are not currently getting traced. Storing the syscall number in the normal entry path makes it work, as well as allowing us

Re: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops

2020-09-18 Thread Bjorn Helgaas
On Fri, Sep 18, 2020 at 11:02:07AM +, Z.q. Hou wrote: > But now the SError is exactly caused by the first access of the > non-existent function, I dug into the kernel enumeration code and > found it will fire a 4Byte CFG read transaction to read the Vendor > ID and Device ID together, so I sus

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