[PATCH v3 05/13] x86/platform/uv: Add UV5 direct references

2020-10-01 Thread Mike Travis
Add new references to UV5 (and UVY class) system MMR addresses and fields primarily caused by the expansion from 46 to 52 bits of physical memory address. Signed-off-by: Mike Travis Reviewed-by: Dimitri Sivanich Reviewed-by: Steve Wahl --- arch/x86/include/asm/uv/uv_hub.h | 49

[PATCH v3 01/13] x86/platform/uv: Remove UV BAU TLB Shootdown Handler

2020-10-01 Thread Mike Travis
The Broadcast Assist Unit (BAU) TLB shootdown handler is being rewritten to become the UV BAU APIC driver. It is designed to speed up sending IPI's to selective CPUs within the system. Remove the current TLB shutdown handler (tlb_uv.c) file and a couple of kernel hooks in the interim.

Re: [PATCH 2/7] Function to retrieve main clock state

2020-10-01 Thread Thomas Gleixner
On Fri, Oct 02 2020 at 00:05, Thomas Gleixner wrote: > On Thu, Oct 01 2020 at 22:51, Erez Geva wrote: > > same comments as for patch 1 apply. > >> Add kernel function to retrieve main clock oscillator state. > > The function you are adding is named adjtimex(). adjtimex(2) is a well > known user

Re: linux-next: manual merge of the net-next tree with the net tree

2020-10-01 Thread Mat Martineau
On Thu, 1 Oct 2020, Stephen Rothwell wrote: Hi all, Today's linux-next merge of the net-next tree got a conflict in: net/mptcp/protocol.h between commit: 1a49b2c2a501 ("mptcp: Handle incoming 32-bit DATA_FIN values") from the net tree and commit: 5c8c1640956e ("mptcp: add

Re: [PATCH] mm: memcg/slab: fix slab statistics in !SMP configuration

2020-10-01 Thread kernel test robot
Hi Roman, Thank you for the patch! Yet something to improve: [auto build test ERROR on mmotm/master] url: https://github.com/0day-ci/linux/commits/Roman-Gushchin/mm-memcg-slab-fix-slab-statistics-in-SMP-configuration/20201002-044114 base: git://git.cmpxchg.org/linux-mmotm.git master

Re: [PATCH 0/5] Speed up mremap on large regions

2020-10-01 Thread Lokesh Gidra
On Thu, Oct 1, 2020 at 9:00 AM Kalesh Singh wrote: > > On Thu, Oct 1, 2020 at 8:27 AM Kirill A. Shutemov > wrote: > > > > On Wed, Sep 30, 2020 at 03:42:17PM -0700, Lokesh Gidra wrote: > > > On Wed, Sep 30, 2020 at 3:32 PM Kirill A. Shutemov > > > wrote: > > > > > > > > On Wed, Sep 30, 2020 at

Re: linux-next: manual merge of the net-next tree with the net tree

2020-10-01 Thread Mat Martineau
On Thu, 1 Oct 2020, Stephen Rothwell wrote: Hi all, Today's linux-next merge of the net-next tree got a conflict in: net/mptcp/protocol.c between commit: 917944da3bfc ("mptcp: Consistently use READ_ONCE/WRITE_ONCE with msk->ack_seq") from the net tree and commit: 8268ed4c9d19

Re: [PATCH v2 3/5] media: mt9p031: Implement [gs]_register debug calls

2020-10-01 Thread Laurent Pinchart
Hi Stefan, On Thu, Oct 01, 2020 at 10:56:24AM +0200, Stefan Riedmüller wrote: > On 30.09.20 13:38, Laurent Pinchart wrote: > > On Wed, Sep 30, 2020 at 12:51:31PM +0200, Stefan Riedmueller wrote: > >> From: Enrico Scholz > >> > >> Implement g_register and s_register v4l2_subdev_core_ops to access

Re: [PATCH v2 5/5] media: mt9p031: Fix corrupted frame after restarting stream

2020-10-01 Thread Laurent Pinchart
Hi Stefan, Thank you for the patch. On Wed, Sep 30, 2020 at 12:51:33PM +0200, Stefan Riedmueller wrote: > From: Dirk Bender > > To prevent corrupted frames after starting and stopping the sensor it's s/it's/its/ > datasheet specifies a specific pause sequence to follow: > > Stopping: >

Re: [PATCH v2 2/5] media: mt9p031: Read back the real clock rate

2020-10-01 Thread Laurent Pinchart
Hi Stefan, Thank you for the patch. On Wed, Sep 30, 2020 at 12:51:30PM +0200, Stefan Riedmueller wrote: > From: Enrico Scholz > > The real and requested clock can differ and because it is used to > calculate PLL values, the real clock rate should be read. > > Signed-off-by: Enrico Scholz >

Re: [PATCH 3/4] mmap locking API: Don't check locking if the mm isn't live yet

2020-10-01 Thread Jann Horn
On Fri, Oct 2, 2020 at 1:41 AM Jason Gunthorpe wrote: > On Thu, Oct 01, 2020 at 10:16:35PM +0200, Jann Horn wrote: > > > A subclass isn't right, it has to be a _nested annotation. > > > > > > nested locking is a pretty good reason to not be able to do this, this > > > is something lockdep does

Re: [PATCH v2 1/5] media: mt9p031: Add support for 8 bit and 10 bit formats

2020-10-01 Thread Laurent Pinchart
Hi Stefan, On Thu, Oct 01, 2020 at 11:07:00AM +0200, Stefan Riedmüller wrote: > On 30.09.20 13:42, Laurent Pinchart wrote: > > On Wed, Sep 30, 2020 at 12:51:29PM +0200, Stefan Riedmueller wrote: > >> From: Christian Hemp > >> > >> Aside from 12 bit monochrome or color format the sensor

Re: [PATCH net-next v2] net: dsa: Support bridge 802.1Q while untagging

2020-10-01 Thread Vladimir Oltean
On Thu, Oct 01, 2020 at 04:48:43PM -0700, Florian Fainelli wrote: > > - move dsa_untag_bridge_pvid() after eth_type_trans(), similar to what > >you did in your initial patch - maybe this is the cleanest > > This would be my preference and it would not be hurting the fast-path that > much. Ok,

Re: [PATCH 1/3] drm/msm: add MSM_BO_CACHED_COHERENT

2020-10-01 Thread Jordan Crouse
On Wed, Sep 30, 2020 at 08:27:04PM -0400, Jonathan Marek wrote: > Add a new cache mode for creating coherent host-cached BOs. Reviewed-by: Jordan Crouse > Signed-off-by: Jonathan Marek > --- > drivers/gpu/drm/msm/adreno/adreno_device.c | 1 + > drivers/gpu/drm/msm/msm_drv.h | 1 +

Re: [PATCH net-next v2] net: dsa: Support bridge 802.1Q while untagging

2020-10-01 Thread Florian Fainelli
On 10/1/2020 4:24 PM, Vladimir Oltean wrote: On Wed, Sep 30, 2020 at 08:06:23PM -0700, Florian Fainelli wrote: The intent of 412a1526d067 ("net: dsa: untag the bridge pvid from rx skbs") is to transparently untag the bridge's default_pvid when the Ethernet switch can only support egress

Re: [PATCH rdma-next 0/2] RDMA: Constify static struct attribute_group

2020-10-01 Thread Jason Gunthorpe
On Thu, Oct 01, 2020 at 12:40:02AM +0200, Rikard Falkeborn wrote: > Constify a couple of static struct attribute_group that are never > modified to allow the compiler to put them in read-only memory. > > Rikard Falkeborn (2): > RDMA/core: Constify struct attribute_group > RDMA/rtrs: Constify

Re: [RFC PATCH 07/22] x86/fpu/xstate: Introduce helpers to manage an xstate area dynamically

2020-10-01 Thread Andy Lutomirski
On Thu, Oct 1, 2020 at 1:42 PM Chang S. Bae wrote: > > task->fpu has a buffer to keep the extended register states, but it is not > expandable at runtime. Introduce runtime methods and new fpu struct fields > to support the expansion. > > fpu->state_mask indicates the saved states per task and

Re: [PATCH 3/4] mmap locking API: Don't check locking if the mm isn't live yet

2020-10-01 Thread Jason Gunthorpe
On Thu, Oct 01, 2020 at 10:16:35PM +0200, Jann Horn wrote: > > A subclass isn't right, it has to be a _nested annotation. > > > > nested locking is a pretty good reason to not be able to do this, this > > is something lockdep does struggle to model. > > Did I get the terminology wrong? I thought

Re: [RFC PATCH 13/22] x86/fpu/xstate: Expand dynamic user state area on first use

2020-10-01 Thread Andy Lutomirski
On Thu, Oct 1, 2020 at 1:43 PM Chang S. Bae wrote: > > Intel's Extended Feature Disable (XFD) feature is an extension of the XSAVE > architecture. XFD allows the kernel to enable a feature state in XCR0 and > to receive a #NM trap when a task uses instructions accessing that state. > In this way,

Re: [PATCH net-next v2] net: dsa: Support bridge 802.1Q while untagging

2020-10-01 Thread Vladimir Oltean
On Fri, Oct 02, 2020 at 02:24:02AM +0300, Vladimir Oltean wrote: > The explanation is super confusing, although I think the placement of > the "skb->vlan_proto = vlan_dev_vlan_proto(upper_dev)" is correct. No, I think it _is_ wrong, after all, I think you're repairing skb->vlan_proto only for

Re: [PATCH 3/7] Functions to fetch POSIX dynamic clock object

2020-10-01 Thread Thomas Gleixner
On Thu, Oct 01 2020 at 22:51, Erez Geva wrote: > Add kernel functions to fetch a pointer to a POSIX dynamic clock > using a user file description dynamic clock ID. And how is that supposed to work. What are the lifetime rules? > +struct posix_clock *posix_clock_get_clock(clockid_t id) > +{ > +

Re: [Freedreno] [PATCH 2/3] drm/msm: add DRM_MSM_GEM_SYNC_CACHE for non-coherent cache maintenance

2020-10-01 Thread Jordan Crouse
On Wed, Sep 30, 2020 at 08:27:05PM -0400, Jonathan Marek wrote: > This makes it possible to use the non-coherent cached MSM_BO_CACHED mode, > which otherwise doesn't provide any method for cleaning/invalidating the > cache to sync with the device. > > Signed-off-by: Jonathan Marek > --- >

Re: [PATCH v3 02/18] iommu/vt-d: Add DEV-MSI support

2020-10-01 Thread Dey, Megha
Hi Thomas, On 9/30/2020 11:32 AM, Thomas Gleixner wrote: On Tue, Sep 15 2020 at 16:27, Dave Jiang wrote: @@ -1303,9 +1303,10 @@ static void intel_irq_remapping_prepare_irte(struct intel_ir_data *data, case X86_IRQ_ALLOC_TYPE_HPET: case X86_IRQ_ALLOC_TYPE_PCI_MSI: case

Re: [PATCH net-next v2] net: dsa: Support bridge 802.1Q while untagging

2020-10-01 Thread Vladimir Oltean
On Wed, Sep 30, 2020 at 08:06:23PM -0700, Florian Fainelli wrote: > The intent of 412a1526d067 ("net: dsa: untag the bridge pvid from rx > skbs") is to transparently untag the bridge's default_pvid when the > Ethernet switch can only support egress tagged of that default_pvid > towards the CPU

Re: For review: seccomp_user_notif(2) manual page

2020-10-01 Thread Tycho Andersen
On Thu, Oct 01, 2020 at 02:06:10PM -0700, Sargun Dhillon wrote: > On Wed, Sep 30, 2020 at 4:07 AM Michael Kerrisk (man-pages) > wrote: > > > > Hi Tycho, Sargun (and all), > > > > I knew it would be a big ask, but below is kind of the manual page > > I was hoping you might write [1] for the

Re: [PATCH v1] of: platform: Batch fwnode parsing in the init_machine() path

2020-10-01 Thread Laurent Pinchart
Hi Saravana, Thank you for the patch. On Thu, Oct 01, 2020 at 03:59:51PM -0700, Saravana Kannan wrote: > When commit 93d2e4322aa7 ("of: platform: Batch fwnode parsing when > adding all top level devices") optimized the fwnode parsing when all top > level devices are added, it missed out

Re: [PATCH v6 0/5] DVFS support for Venus

2020-10-01 Thread Stanimir Varbanov
Hi, On 10/1/20 11:40 PM, Doug Anderson wrote: > Hi, > > On Wed, Sep 16, 2020 at 12:26 AM Stanimir Varbanov > wrote: >> >> Hi, >> >> On 9/16/20 8:33 AM, Rajendra Nayak wrote: >>> >>> On 9/1/2020 7:50 PM, Rajendra Nayak wrote: Rob, can you pick PATCH 1 since its already reviewed by you.

Re: [PATCH v7 07/13] PCI/AER: Extend AER error handling to RCECs

2020-10-01 Thread Bjorn Helgaas
On Wed, Sep 30, 2020 at 02:58:14PM -0700, Sean V Kelley wrote: > From: Jonathan Cameron > > Currently the kernel does not handle AER errors for Root Complex > integrated End Points (RCiEPs)[0]. These devices sit on a root bus within > the Root Complex (RC). AER handling is performed by a Root

[PATCH v4 35/39] kasan, arm64: implement HW_TAGS runtime

2020-10-01 Thread Andrey Konovalov
Provide implementation of KASAN functions required for the hardware tag-based mode. Those include core functions for memory and pointer tagging (tags_hw.c) and bug reporting (report_tags_hw.c). Also adapt common KASAN code to support the new mode. Signed-off-by: Andrey Konovalov Signed-off-by:

[PATCH v4 33/39] kasan, x86, s390: update undef CONFIG_KASAN

2020-10-01 Thread Andrey Konovalov
With the intoduction of hardware tag-based KASAN some kernel checks of this kind: ifdef CONFIG_KASAN will be updated to: if defined(CONFIG_KASAN_GENERIC) || defined(CONFIG_KASAN_SW_TAGS) x86 and s390 use a trick to #undef CONFIG_KASAN for some of the code that isn't linked with KASAN

[PATCH v4 38/39] kasan, arm64: enable CONFIG_KASAN_HW_TAGS

2020-10-01 Thread Andrey Konovalov
Hardware tag-based KASAN is now ready, enable the configuration option. Signed-off-by: Andrey Konovalov Signed-off-by: Vincenzo Frascino Acked-by: Catalin Marinas --- Change-Id: I6eb1eea770e6b61ad71c701231b8d815a7ccc853 --- arch/arm64/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v4 32/39] kasan: define KASAN_GRANULE_SIZE for HW_TAGS

2020-10-01 Thread Andrey Konovalov
Hardware tag-based KASAN has granules of MTE_GRANULE_SIZE. Define KASAN_GRANULE_SIZE to MTE_GRANULE_SIZE for CONFIG_KASAN_HW_TAGS. Signed-off-by: Andrey Konovalov Signed-off-by: Vincenzo Frascino Reviewed-by: Marco Elver --- Change-Id: I5d1117e6a991cbca00d2cfb4ba66e8ae2d8f513a ---

[PATCH v4 37/39] kasan, mm: reset tags when accessing metadata

2020-10-01 Thread Andrey Konovalov
Kernel allocator code accesses metadata for slab objects, that may lie out-of-bounds of the object itself, or be accessed when an object is freed. Such accesses trigger tag faults and lead to false-positive reports with hardware tag-based KASAN. Software KASAN modes disable instrumentation for

[PATCH v4 36/39] kasan, arm64: print report from tag fault handler

2020-10-01 Thread Andrey Konovalov
Add error reporting for hardware tag-based KASAN. When CONFIG_KASAN_HW_TAGS is enabled, print KASAN report from the arm64 tag fault handler. SAS bits aren't set in ESR for all faults reported in EL1, so it's impossible to find out the size of the access the caused the fault. Adapt KASAN reporting

[PATCH v4 34/39] kasan, arm64: expand CONFIG_KASAN checks

2020-10-01 Thread Andrey Konovalov
Some #ifdef CONFIG_KASAN checks are only relevant for software KASAN modes (either related to shadow memory or compiler instrumentation). Expand those into CONFIG_KASAN_GENERIC || CONFIG_KASAN_SW_TAGS. Signed-off-by: Andrey Konovalov Signed-off-by: Vincenzo Frascino Reviewed-by: Catalin Marinas

[PATCH v4 39/39] kasan: add documentation for hardware tag-based mode

2020-10-01 Thread Andrey Konovalov
Add documentation for hardware tag-based KASAN mode and also add some clarifications for software tag-based mode. Signed-off-by: Andrey Konovalov Signed-off-by: Vincenzo Frascino Reviewed-by: Marco Elver --- Change-Id: Ib46cb444cfdee44054628940a82f5139e10d0258 ---

[PATCH v4 24/39] arm64: mte: Add in-kernel MTE helpers

2020-10-01 Thread Andrey Konovalov
From: Vincenzo Frascino Provide helper functions to manipulate allocation and pointer tags for kernel addresses. Low-level helper functions (mte_assign_*, written in assembly) operate tag values from the [0x0, 0xF] range. High-level helper functions (mte_get/set_*) use the [0xF0, 0xFF] range to

[PATCH v4 28/39] arm64: mte: Convert gcr_user into an exclude mask

2020-10-01 Thread Andrey Konovalov
From: Vincenzo Frascino The gcr_user mask is a per thread mask that represents the tags that are excluded from random generation when the Memory Tagging Extension is present and an 'irg' instruction is invoked. gcr_user affects the behavior on EL0 only. Currently that mask is an include mask

[PATCH v4 27/39] arm64: kasan: Enable in-kernel MTE

2020-10-01 Thread Andrey Konovalov
From: Vincenzo Frascino Hardware tag-based KASAN relies on Memory Tagging Extension (MTE) feature and requires it to be enabled. The Tag Checking operation causes a synchronous data abort as a consequence of a tag check fault when MTE is configured in synchronous mode. Enable MTE in

[PATCH v4 26/39] arm64: mte: Add in-kernel tag fault handler

2020-10-01 Thread Andrey Konovalov
From: Vincenzo Frascino Add the implementation of the in-kernel fault handler. When a tag fault happens on a kernel address: * MTE is disabled on the current CPU, * the execution continues. When a tag fault happens on a user address: * the kernel executes do_bad_area() and panics. The tag

[PATCH v4 31/39] arm64: kasan: Align allocations for HW_TAGS

2020-10-01 Thread Andrey Konovalov
Hardware tag-based KASAN uses the memory tagging approach, which requires all allocations to be aligned to the memory granule size. Align the allocations to MTE_GRANULE_SIZE via ARCH_SLAB_MINALIGN when CONFIG_KASAN_HW_TAGS is enabled. Signed-off-by: Andrey Konovalov Signed-off-by: Vincenzo

[PATCH v4 20/39] kasan: separate metadata_fetch_row for each mode

2020-10-01 Thread Andrey Konovalov
This is a preparatory commit for the upcoming addition of a new hardware tag-based (MTE-based) KASAN mode. Rework print_memory_metadata() to make it agnostic with regard to the way metadata is stored. Allow providing a separate metadata_fetch_row() implementation for each KASAN mode. Hardware

[PATCH v4 29/39] arm64: mte: Switch GCR_EL1 in kernel entry and exit

2020-10-01 Thread Andrey Konovalov
From: Vincenzo Frascino When MTE is present, the GCR_EL1 register contains the tags mask that allows to exclude tags from the random generation via the IRG instruction. With the introduction of the new Tag-Based KASAN API that provides a mechanism to reserve tags for special reasons, the MTE

[PATCH v4 22/39] kasan: introduce CONFIG_KASAN_HW_TAGS

2020-10-01 Thread Andrey Konovalov
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 tag management and access checking. Signed-off-by: Andrey Konovalov

[PATCH v4 17/39] kasan: rename print_shadow_for_address to print_memory_metadata

2020-10-01 Thread Andrey Konovalov
This is a preparatory commit for the upcoming addition of a new hardware tag-based (MTE-based) KASAN mode. Hardware tag-based KASAN won't be using shadow memory, but will reuse this function. Rename "shadow" to implementation-neutral "metadata". No functional changes. Signed-off-by: Andrey

[PATCH v4 14/39] kasan, arm64: only init shadow for software modes

2020-10-01 Thread Andrey Konovalov
This is a preparatory commit for the upcoming addition of a new hardware tag-based (MTE-based) KASAN mode. Hardware tag-based KASAN won't be using shadow memory. Only initialize it when one of the software KASAN modes are enabled. No functional changes for software modes. Signed-off-by: Andrey

[PATCH v4 15/39] kasan, arm64: only use kasan_depth for software modes

2020-10-01 Thread Andrey Konovalov
This is a preparatory commit for the upcoming addition of a new hardware tag-based (MTE-based) KASAN mode. Hardware tag-based KASAN won't use kasan_depth. Only define and use it when one of the software KASAN modes are enabled. No functional changes for software modes. Signed-off-by: Andrey

[PATCH v4 19/39] kasan: rename SHADOW layout macros to META

2020-10-01 Thread Andrey Konovalov
This is a preparatory commit for the upcoming addition of a new hardware tag-based (MTE-based) KASAN mode. Hardware tag-based KASAN won't be using shadow memory, but will reuse these macros. Rename "SHADOW" to implementation-neutral "META". No functional changes. Signed-off-by: Andrey Konovalov

[PATCH v4 11/39] kasan: don't duplicate config dependencies

2020-10-01 Thread Andrey Konovalov
Both KASAN_GENERIC and KASAN_SW_TAGS have common dependencies, move those to KASAN. Signed-off-by: Andrey Konovalov Signed-off-by: Vincenzo Frascino Reviewed-by: Marco Elver --- Change-Id: I77e475802e8f1750b9154fe4a6e6da4456054fcd --- lib/Kconfig.kasan | 8 ++-- 1 file changed, 2

[PATCH v4 13/39] kasan: decode stack frame only with KASAN_STACK_ENABLE

2020-10-01 Thread Andrey Konovalov
Decoding routines aren't needed when CONFIG_KASAN_STACK_ENABLE is not enabled. Currently only generic KASAN mode implements stack error reporting. No functional changes for software modes. Signed-off-by: Andrey Konovalov Signed-off-by: Vincenzo Frascino Reviewed-by: Marco Elver --- Change-Id:

[PATCH v4 18/39] kasan: kasan_non_canonical_hook only for software modes

2020-10-01 Thread Andrey Konovalov
This is a preparatory commit for the upcoming addition of a new hardware tag-based (MTE-based) KASAN mode. kasan_non_canonical_hook() is only applicable to KASAN modes that use shadow memory, and won't be needed for hardware tag-based KASAN. No functional changes for software modes.

[PATCH v4 30/39] arm64: kasan: Enable TBI EL1

2020-10-01 Thread Andrey Konovalov
From: Vincenzo Frascino Hardware tag-based KASAN relies on Memory Tagging Extension (MTE) that is built on top of the Top Byte Ignore (TBI) feature. Enable in-kernel TBI when CONFIG_KASAN_HW_TAGS is turned on by enabling the TCR_TBI1 bit in proc.S. Signed-off-by: Vincenzo Frascino

[PATCH v4 23/39] arm64: Enable armv8.5-a asm-arch option

2020-10-01 Thread Andrey Konovalov
From: Vincenzo Frascino Hardware tag-based KASAN relies on Memory Tagging Extension (MTE) which is an armv8.5-a architecture extension. Enable the correct asm option when the compiler supports it in order to allow the usage of ALTERNATIVE()s with MTE instructions. Signed-off-by: Vincenzo

[PATCH v4 21/39] kasan, arm64: don't allow SW_TAGS with ARM64_MTE

2020-10-01 Thread Andrey Konovalov
Software tag-based KASAN provides its own tag checking machinery that can conflict with MTE. Don't allow enabling software tag-based KASAN when MTE is enabled. Signed-off-by: Andrey Konovalov Signed-off-by: Vincenzo Frascino Reviewed-by: Catalin Marinas --- Change-Id:

[PATCH v4 25/39] arm64: kasan: Add arch layer for memory tagging helpers

2020-10-01 Thread Andrey Konovalov
This patch add a set of arch_*() memory tagging helpers currently only defined for arm64 when hardware tag-based KASAN is enabled. These helpers will be used by KASAN runtime to implement the hardware tag-based mode. The arch-level indirection level is introduced to simplify adding hardware

[PATCH v4 00/39] kasan: add hardware tag-based mode for arm64

2020-10-01 Thread Andrey Konovalov
This patchset adds a new hardware tag-based mode to KASAN [1]. The new mode is similar to the existing software tag-based KASAN, but relies on arm64 Memory Tagging Extension (MTE) [2] to perform memory and pointer tagging (instead of shadow memory and compiler instrumentation). This patchset is

[PATCH v4 03/39] kasan: group vmalloc code

2020-10-01 Thread Andrey Konovalov
This is a preparatory commit for the upcoming addition of a new hardware tag-based (MTE-based) KASAN mode. Group all vmalloc-related function declarations in include/linux/kasan.h, and their implementations in mm/kasan/common.c. No functional changes. Signed-off-by: Andrey Konovalov

[PATCH v4 04/39] kasan: shadow declarations only for software modes

2020-10-01 Thread Andrey Konovalov
This is a preparatory commit for the upcoming addition of a new hardware tag-based (MTE-based) KASAN mode. Group shadow-related KASAN function declarations and only define them for the two existing software modes. No functional changes for software modes. Signed-off-by: Andrey Konovalov

[PATCH v4 16/39] kasan: rename addr_has_shadow to addr_has_metadata

2020-10-01 Thread Andrey Konovalov
This is a preparatory commit for the upcoming addition of a new hardware tag-based (MTE-based) KASAN mode. Hardware tag-based KASAN won't be using shadow memory, but will reuse this function. Rename "shadow" to implementation-neutral "metadata". No functional changes. Signed-off-by: Andrey

[PATCH v4 12/39] kasan: hide invalid free check implementation

2020-10-01 Thread Andrey Konovalov
This is a preparatory commit for the upcoming addition of a new hardware tag-based (MTE-based) KASAN mode. For software KASAN modes the check is based on the value in the shadow memory. Hardware tag-based KASAN won't be using shadow, so hide the implementation of the check in

[PATCH v4 02/39] kasan: KASAN_VMALLOC depends on KASAN_GENERIC

2020-10-01 Thread Andrey Konovalov
Currently only generic KASAN mode supports vmalloc, reflect that in the config. Signed-off-by: Andrey Konovalov Signed-off-by: Vincenzo Frascino Reviewed-by: Marco Elver --- Change-Id: I1889e5b3bed28cc5d607802fb6ae43ba461c0dc1 --- lib/Kconfig.kasan | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH v4 06/39] kasan: rename KASAN_SHADOW_* to KASAN_GRANULE_*

2020-10-01 Thread Andrey Konovalov
This is a preparatory commit for the upcoming addition of a new hardware tag-based (MTE-based) KASAN mode. The new mode won't be using shadow memory, but will still use the concept of memory granules. Each memory granule maps to a single metadata entry: 8 bytes per one shadow byte for generic

[PATCH v4 09/39] kasan: define KASAN_GRANULE_PAGE

2020-10-01 Thread Andrey Konovalov
Define KASAN_GRANULE_PAGE as (KASAN_GRANULE_SIZE << PAGE_SHIFT), which is the same as (KASAN_GRANULE_SIZE * PAGE_SIZE), and use it across KASAN code to simplify it. Signed-off-by: Andrey Konovalov Signed-off-by: Vincenzo Frascino Reviewed-by: Marco Elver --- Change-Id:

[PATCH v4 05/39] kasan: rename (un)poison_shadow to (un)poison_memory

2020-10-01 Thread Andrey Konovalov
This is a preparatory commit for the upcoming addition of a new hardware tag-based (MTE-based) KASAN mode. The new mode won't be using shadow memory, but will reuse the same functions. Rename kasan_unpoison_shadow to kasan_unpoison_memory, and kasan_poison_shadow to kasan_poison_memory. No

[PATCH v4 10/39] kasan: rename report and tags files

2020-10-01 Thread Andrey Konovalov
Rename generic_report.c to report_generic.c and tags_report.c to report_sw_tags.c, as their content is more relevant to report.c file. Also rename tags.c to sw_tags.c to better reflect that this file contains code for software tag-based mode. No functional changes. Signed-off-by: Andrey

[PATCH v4 01/39] kasan: drop unnecessary GPL text from comment headers

2020-10-01 Thread Andrey Konovalov
Don't mention "GNU General Public License version 2" text explicitly, as it's already covered by the SPDX-License-Identifier. Signed-off-by: Andrey Konovalov Signed-off-by: Vincenzo Frascino Reviewed-by: Marco Elver --- Change-Id: If0a2690042a2aa0fca70cea601ae9aabe72fa233 ---

[PATCH v4 08/39] kasan: split out shadow.c from common.c

2020-10-01 Thread Andrey Konovalov
This is a preparatory commit for the upcoming addition of a new hardware tag-based (MTE-based) KASAN mode. The new mode won't be using shadow memory. Move all shadow-related code to shadow.c, which is only enabled for software KASAN modes that use shadow memory. No functional changes for

[PATCH v4 07/39] kasan: only build init.c for software modes

2020-10-01 Thread Andrey Konovalov
This is a preparatory commit for the upcoming addition of a new hardware tag-based (MTE-based) KASAN mode. The new mode won't be using shadow memory, so only build init.c that contains shadow initialization code for software modes. No functional changes for software modes. Signed-off-by: Andrey

Re: [PATCH net-next 0/8] net: ethernet: ti: am65-cpsw: add multi port support in mac-only mode

2020-10-01 Thread Jakub Kicinski
On Thu, 1 Oct 2020 13:52:50 +0300 Grygorii Strashko wrote: > This series adds multi-port support in mac-only mode (multi MAC mode) to TI > AM65x CPSW driver in preparation for enabling support for multi-port devices, > like Main CPSW0 on K3 J721E SoC or future CPSW3g on K3 AM64x SoC. > > The

Re: [PATCH 5/7] Traffic control using high-resolution timer issue

2020-10-01 Thread Thomas Gleixner
On Thu, Oct 01 2020 at 22:51, Erez Geva wrote: Issue? You again fail to decribe the problem. > - Add new schedule function for Qdisc watchdog. > The function avoids reprogram if watchdog already expire > before new expire. Why can't the existing function not be changed to do that? >

Re: [PATCH] perf evlist: fix memory corruption for Kernel PMU event

2020-10-01 Thread Andi Kleen
On Fri, Oct 02, 2020 at 12:57:29AM +1300, Barry Song wrote: > Commit 7736627b865d ("perf stat: Use affinity for closing file > descriptors") will use FD(evsel, cpu, thread) to read and write > file descriptors xyarray. For a kernel PMU event, this leads to > serious memory corruption and perf

[PATCH v4 3/5] Bluetooth: Use intervals and tx power from mgmt cmds

2020-10-01 Thread Daniel Winkler
This patch takes the min/max intervals and tx power optionally provided in mgmt interface, stores them in the advertisement struct, and uses them when configuring the hci requests. While tx power is not used if extended advertising is unavailable, software rotation will use the min and max

[PATCH v4 5/5] Bluetooth: Change MGMT security info CMD to be more generic

2020-10-01 Thread Daniel Winkler
For advertising, we wish to know the LE tx power capabilities of the controller in userspace, so this patch edits the Security Info MGMT command to be more generic, such that other various controller capabilities can be included in the EIR data. This change also includes the LE min and max tx

[PATCH v4 4/5] Bluetooth: Query LE tx power on startup

2020-10-01 Thread Daniel Winkler
Queries tx power via HCI_LE_Read_Transmit_Power command when the hci device is initialized, and stores resulting min/max LE power in hdev struct. If command isn't available (< BT5 support), min/max values both default to HCI_TX_POWER_INVALID. This patch is manually verified by ensuring BT5

[PATCH v4 2/5] Bluetooth: Break add adv into two mgmt commands

2020-10-01 Thread Daniel Winkler
This patch adds support for the new advertising add interface, with the first command setting advertising parameters and the second to set advertising data. The set parameters command allows the caller to leave some fields "unset", with a params bitfield defining which params were purposefully

Re: linux-next: Fixes tag needs some work in the vhost tree

2020-10-01 Thread si-wei liu
Thanks Stephen, the SHA1 referenced is not correct. A v2 patch is posted. Thanks, -Siwei On 10/1/2020 3:32 PM, Stephen Rothwell wrote: Hi all, In commit c9795f8fbb41 ("vhost-vdpa: fix page pinning leakage in error path") Fixes tag Fixes: 20453a45fb06 ("vhost: introduce vDPA-based

[PATCH v4 0/5] Bluetooth: Add new MGMT interface for advertising add

2020-10-01 Thread Daniel Winkler
Hi Maintainers, This patch series defines the new two-call MGMT interface for adding new advertising instances. Similarly to the hci advertising commands, a mgmt call to set parameters is expected to be first, followed by a mgmt call to set advertising data/scan response. The members of the

[PATCH v4 1/5] Bluetooth: Add helper to set adv data

2020-10-01 Thread Daniel Winkler
We wish to handle advertising data separately from advertising parameters in our new MGMT requests. This change adds a helper that allows the advertising data and scan response to be updated for an existing advertising instance. Reviewed-by: Sonny Sasaka Signed-off-by: Daniel Winkler ---

Re: [PATCH v4 04/52] scripts: kernel-doc: make it more compatible with Sphinx 3.x

2020-10-01 Thread Jonathan Corbet
On Thu, 1 Oct 2020 15:41:00 -0600 Jonathan Corbet wrote: > On Wed, 30 Sep 2020 15:24:27 +0200 > Mauro Carvalho Chehab wrote: > > > With Sphinx 3.x, the ".. c:type:" tag was changed to accept either: > > > > .. c:type:: typedef-like declaration > > .. c:type:: name > > > > Using it

[PATCH v2] vhost-vdpa: fix page pinning leakage in error path

2020-10-01 Thread Si-Wei Liu
Pinned pages are not properly accounted particularly when mapping error occurs on IOTLB update. Clean up dangling pinned pages for the error path. As the inflight pinned pages, specifically for memory region that strides across multiple chunks, would need more than one free page for book keeping

[PATCH v1] of: platform: Batch fwnode parsing in the init_machine() path

2020-10-01 Thread Saravana Kannan
When commit 93d2e4322aa7 ("of: platform: Batch fwnode parsing when adding all top level devices") optimized the fwnode parsing when all top level devices are added, it missed out optimizing this for platform where the top level devices are added through the init_machine() path. This commit does

Re: [PATCH v3 01/18] irqchip: Add IMS (Interrupt Message Storage) driver

2020-10-01 Thread Dey, Megha
Hi Thomas, On 9/30/2020 11:23 AM, Thomas Gleixner wrote: On Tue, Sep 15 2020 at 16:27, Dave Jiang wrote: From: Thomas Gleixner +config IMS_MSI_ARRAY + bool "IMS Interrupt Message Storm MSI controller for device memory storage arrays" Hehe, you missed a Message Storm :) i will change

Re: [PATCH] net: qrtr: ns: Protect radix_tree_deref_slot() using rcu read locks

2020-10-01 Thread Doug Anderson
Hi, On Mon, Sep 28, 2020 at 4:15 PM David Miller wrote: > > From: Manivannan Sadhasivam > Date: Sat, 26 Sep 2020 22:26:25 +0530 > > > The rcu read locks are needed to avoid potential race condition while > > dereferencing radix tree from multiple threads. The issue was identified > > by syzbot.

Re: [PATCH 0/3] spi: spi-mtk-nor: make use of full capability of program mode

2020-10-01 Thread Mark Brown
On Thu, 24 Sep 2020 23:27:27 +0800, Chuanhong Guo wrote: > "program" mode on this controller can trigger up to 56 bits of data > shifting. During the operation, data in PRGDATA[0-5] will be > shifted out from MOSI, and data from MISO will be continuously filling > SHREG[0-9]. > Currently this mode

Re: [PATCH -next] ASoC: tegra: tegra_max98090: use devm_snd_soc_register_card()

2020-10-01 Thread Mark Brown
On Tue, 29 Sep 2020 19:29:35 +0800, Qinglang Miao wrote: > Using devm_snd_soc_register_card() can make the code > shorter and cleaner. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] ASoC: tegra: tegra_max98090: use

Re: [PATCH] regulator: qcom: labibb: Constify static structs

2020-10-01 Thread Mark Brown
On Wed, 30 Sep 2020 18:26:02 +0200, Rikard Falkeborn wrote: > The only usage of qcom_labibb_ops is to assign it to the ops field in > the regulator_desc struct, which is a const pointer. The only usage of > pmi8998_lab_desc and pmi8998_ibb_desc is to assign their address to the > desc field in the

Re: [PATCH -next] ASoC: tegra: tegra_wm8753: use devm_snd_soc_register_card()

2020-10-01 Thread Mark Brown
On Tue, 29 Sep 2020 19:29:38 +0800, Qinglang Miao wrote: > Using devm_snd_soc_register_card() can make the code > shorter and cleaner. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] ASoC: tegra: tegra_wm8753: use

Re: [PATCH -next] ASoC: tegra: trimslice.c: use devm_snd_soc_register_card()

2020-10-01 Thread Mark Brown
On Tue, 29 Sep 2020 19:29:39 +0800, Qinglang Miao wrote: > Using devm_snd_soc_register_card() can make the code > shorter and cleaner. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] ASoC: tegra: trimslice.c: use

Re: [PATCH 0/5] Support for PM660/PM660L SPMI and SMD regulators

2020-10-01 Thread Mark Brown
On Sat, 26 Sep 2020 14:55:42 +0200, khol...@gmail.com wrote: > This patch series enables support for the regulators as found in > the PM660 and PM660L PMICs. > While at it, and to make them work, along with other regulators > for other qcom PMICs, enlarge the maximum property name length in > the

Re: [PATCH -next] ASoC: tegra: tegra_rt5640: use devm_snd_soc_register_card()

2020-10-01 Thread Mark Brown
On Tue, 29 Sep 2020 19:29:36 +0800, Qinglang Miao wrote: > Using devm_snd_soc_register_card() can make the code > shorter and cleaner. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] ASoC: tegra: tegra_rt5640: use

Re: [PATCH 1/3] dt-bindings: sound: Remove unused 'linux,hdmi-audio'

2020-10-01 Thread Mark Brown
On Wed, 26 Aug 2020 12:48:49 -0600, Rob Herring wrote: > The binding was added in 2013 and has had no driver since 2015. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] ASoC: Remove unused 'linux,hdmi-audio' commit:

Re: [PATCH -next] ASoC: fsl: imx-mc13783: use devm_snd_soc_register_card()

2020-10-01 Thread Mark Brown
On Tue, 29 Sep 2020 19:29:30 +0800, Qinglang Miao wrote: > Using devm_snd_soc_register_card() can make the code > shorter and cleaner. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] ASoC: fsl: imx-mc13783: use devm_snd_soc_register_card()

Re: [PATCH -next] ASoC: fsl: mx27vis-aic32x4: use devm_snd_soc_register_card()

2020-10-01 Thread Mark Brown
On Tue, 29 Sep 2020 19:29:32 +0800, Qinglang Miao wrote: > Using devm_snd_soc_register_card() can make the code > shorter and cleaner. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] ASoC: fsl: mx27vis-aic32x4: use

Re: [PATCH] ASoC: fsl_spdif: Fix unnecessary check in fsl_spdif_probe()

2020-10-01 Thread Mark Brown
On Wed, 26 Aug 2020 23:09:18 +0800, Tang Bin wrote: > The function fsl_spdif_probe() is only called with an openfirmware > platform device. Therefore there is no need to check that the passed > in device is NULL. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git

Re: [PATCH] iio: adc: ad7887: invert/rework external ref logic

2020-10-01 Thread kernel test robot
Hi Alexandru, I love your patch! Yet something to improve: [auto build test ERROR on iio/togreg] [also build test ERROR on linux/master linus/master v5.9-rc7 next-20201001] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use

[PATCH] ocfs2: ratelimit the 'max lookup times reached' notice

2020-10-01 Thread Mauricio Faria de Oliveira
Running stress-ng on ocfs2 completely fills the kernel log with 'max lookup times reached, filesystem may have nested directories.' Let's ratelimit this message as done with others in the code. Test-case: # mkfs.ocfs2 --mount local $DEV # mount $DEV $MNT # cd $MNT # dmesg -C #

Re: [RFC Patch 0/2] KVM: SVM: Cgroup support for SVM SEV ASIDs

2020-10-01 Thread Tom Lendacky
On 10/1/20 1:08 PM, Peter Gonda wrote: On Thu, Sep 24, 2020 at 1:55 PM Tom Lendacky wrote: On 9/24/20 2:21 PM, Sean Christopherson wrote: On Tue, Sep 22, 2020 at 02:14:04PM -0700, Vipin Sharma wrote: On Mon, Sep 21, 2020 at 06:48:38PM -0700, Sean Christopherson wrote: On Mon, Sep 21, 2020

Re: [PATCH 4/7] Fix qdisc_watchdog_schedule_range_ns range check

2020-10-01 Thread Thomas Gleixner
On Thu, Oct 01 2020 at 22:51, Erez Geva wrote: Fixes should be at the beginning of a patch series and not be hidden somewhere in the middle. >- As all parameters are unsigned. This is not a sentence and this list style does not make that changelog more readable. >- If 'expires' is

Re: [PATCH 05/14] fs: don't allow kernel reads and writes without iter ops

2020-10-01 Thread Al Viro
On Thu, Oct 01, 2020 at 03:38:52PM -0700, Eric Biggers wrote: > mutex_lock(>pipe_mutex); > while (bytes) { > - wr = __kernel_write(file, data, bytes, NULL); > + wr = __kernel_write(file, data, bytes, >f_pos); Better loff_t dummy = 0; ...

Re: [PATCH 05/14] fs: don't allow kernel reads and writes without iter ops

2020-10-01 Thread Eric Biggers
file->f_op->write(file, p, count, pos); > - else if (file->f_op->write_iter) > - ret = new_sync_write(file, p, count, pos); > - else > - ret = -EINVAL; > - set_fs(old_fs); > + init_sync_kiocb(, file); > + kiocb.ki_pos = *pos; > + iov

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