Re: [PATCH v2 0/5] mm/migrate: avoid device private invalidations

2020-07-20 Thread Jason Gunthorpe
On Mon, Jul 13, 2020 at 10:21:44AM -0700, Ralph Campbell wrote: > The goal for this series is to avoid device private memory TLB > invalidations when migrating a range of addresses from system > memory to device private memory and some of those pages have already > been migrated. The approach

Re: [PATCH v2 3/5] mm/notifier: add migration invalidation type

2020-07-20 Thread Jason Gunthorpe
On Mon, Jul 13, 2020 at 10:21:47AM -0700, Ralph Campbell wrote: > Currently migrate_vma_setup() calls mmu_notifier_invalidate_range_start() > which flushes all device private page mappings whether or not a page > is being migrated to/from device private memory. In order to not disrupt > device

Re: [net-next v4 PATCH 1/7] hsr: enhance netlink socket interface to support PRP

2020-07-20 Thread Randy Dunlap
On 7/20/20 9:57 AM, Murali Karicheri wrote: > diff --git a/net/hsr/Kconfig b/net/hsr/Kconfig > index 8095b034e76e..e2e396870230 100644 > --- a/net/hsr/Kconfig > +++ b/net/hsr/Kconfig > @@ -4,24 +4,35 @@ > # > > config HSR > - tristate "High-availability Seamless Redundancy (HSR)" > -

Re: [PATCH v2 2/5] mm/migrate: add a direction parameter to migrate_vma

2020-07-20 Thread Jason Gunthorpe
On Mon, Jul 13, 2020 at 10:21:46AM -0700, Ralph Campbell wrote: > The src_owner field in struct migrate_vma is being used for two purposes, > it implies the direction of the migration and it identifies device private > pages owned by the caller. Split this into separate parameters so the >

Re: [PATCH v3 net-next 02/16] qed, qede, qedf: convert link mode from u32 to ETHTOOL_LINK_MODE

2020-07-20 Thread Andrew Lunn
On Mon, Jul 20, 2020 at 09:08:01PM +0300, Alexander Lobakin wrote: > Currently qed driver already ran out of 32 bits to store link modes, > and this doesn't allow to add and support more speeds. > Convert custom link mode to generic Ethtool bitmap and definitions > (convenient Phylink shorthands

Re: [PATCH RFC V2 04/17] x86/pks: Preserve the PKRS MSR on context switch

2020-07-20 Thread Ira Weiny
On Mon, Jul 20, 2020 at 11:15:54AM +0200, Peter Zijlstra wrote: > On Fri, Jul 17, 2020 at 03:34:07PM -0700, Ira Weiny wrote: > > On Fri, Jul 17, 2020 at 10:59:54AM +0200, Peter Zijlstra wrote: > > > On Fri, Jul 17, 2020 at 12:20:43AM -0700, ira.we...@intel.com wrote: > > > > +/* > > > > + * Write

[PATCH -next] ASoC: ti: fix SND_SOC_J721E_EVM warnings & errors

2020-07-20 Thread Randy Dunlap
^~~ cc1: some warnings being treated as errors Fixes: 6748d0559059 ("ASoC: ti: Add custom machine driver for j721e EVM (CPB and IVI)") Signed-off-by: Randy Dunlap Cc: Peter Ujfalusi Cc: Mark Brown --- sound/soc/ti/Kconfig |1 + 1 file changed, 1 ins

Re: [PATCH v3 net-next 01/16] linkmode: introduce linkmode_intersects()

2020-07-20 Thread Andrew Lunn
On Mon, Jul 20, 2020 at 09:08:00PM +0300, Alexander Lobakin wrote: > Add a new helper to find intersections between Ethtool link modes, > linkmode_intersects(), similar to the other linkmode helpers. > > Signed-off-by: Alexander Lobakin > Signed-off-by: Igor Russkikh Reviewed-by: Andrew Lunn

Re: [PATCH 2/4] printk: store instead of processing cont parts

2020-07-20 Thread Linus Torvalds
On Sun, Jul 19, 2020 at 6:51 PM Sergey Senozhatsky wrote: > > Do I get it right, what you are saying is - when we process a PR_CONT > message the cont buffer should already contain previous non-LOG_NEWLINE > and non-PR_CONT message, otherwise it's a bug? No. I'm saying that the code that does

[PATCH stable 4.14.y] arm64: entry: Place an SB sequence following an ERET instruction

2020-07-20 Thread Florian Fainelli
From: Will Deacon commit 679db70801da9fda91d26caf13bf5b5ccc74e8e8 upstream Some CPUs can speculate past an ERET instruction and potentially perform speculative accesses to memory before processing the exception return. Since the register state is often controlled by a lower privilege level at

Re: [PATCH v3 4/5] LSM: Define SELinux function to measure security state

2020-07-20 Thread Lakshmi Ramasubramanian
On 7/20/20 10:49 AM, Stephen Smalley wrote: Looks like the template used is ima-ng which doesn't include the measured buffer. Please set template to "ima-buf" in the policy. For example, measure func=LSM_STATE template=ima-buf It seems like one shouldn't need to manually specify it if it is

[PATCH stable 4.19.y] arm64: entry: Place an SB sequence following an ERET instruction

2020-07-20 Thread Florian Fainelli
From: Will Deacon commit 679db70801da9fda91d26caf13bf5b5ccc74e8e8 upstream Some CPUs can speculate past an ERET instruction and potentially perform speculative accesses to memory before processing the exception return. Since the register state is often controlled by a lower privilege level at

Re: [PATCH stable v4.9 v2] arm64: entry: Place an SB sequence following an ERET instruction

2020-07-20 Thread Florian Fainelli
On 7/20/20 6:04 AM, Greg KH wrote: > On Thu, Jul 09, 2020 at 12:50:23PM -0700, Florian Fainelli wrote: >> From: Will Deacon >> >> commit 679db70801da9fda91d26caf13bf5b5ccc74e8e8 upstream >> >> Some CPUs can speculate past an ERET instruction and potentially perform >> speculative accesses to

Re: [PATCH v5 2/3] binder: add trace at free transaction.

2020-07-20 Thread Todd Kjos
On Wed, Jun 10, 2020 at 5:24 AM Frankie Chang wrote: > > From: "Frankie.Chang" > > Since the original trace_binder_transaction_received cannot > precisely present the real finished time of transaction, adding a > trace_binder_txn_latency_free at the point of free transaction > may be more close

Re: [PATCH 4/4] dt-bindings: tas2562: Convert the tas2562 binding to yaml

2020-07-20 Thread Dan Murphy
Rob On 7/15/20 3:15 PM, Rob Herring wrote: On Fri, Jun 26, 2020 at 10:41:43AM -0500, Dan Murphy wrote: Convert the TAS2562 text file to yaml format. Signed-off-by: Dan Murphy --- .../devicetree/bindings/sound/tas2562.txt | 37 - .../devicetree/bindings/sound/tas2562.yaml|

Re: [PATCH V6 03/14] perf/x86/intel: Introduce the fourth fixed counter

2020-07-20 Thread Liang, Kan
On 7/20/2020 12:20 PM, Peter Zijlstra wrote: On Fri, Jul 17, 2020 at 07:05:43AM -0700, kan.li...@linux.intel.com wrote: /* + * There is no event-code assigned to the fixed-mode PMCs. + * + * For a fixed-mode PMC, which has an equivalent event on a general-purpose + * PMC, the event-code of

Re: [PATCH v3] mm/hugetlb: split hugetlb_cma in nodes with memory

2020-07-20 Thread Mike Kravetz
On 7/19/20 11:22 PM, Anshuman Khandual wrote: > > > On 07/17/2020 10:32 PM, Mike Kravetz wrote: >> On 7/16/20 10:02 PM, Anshuman Khandual wrote: >>> >>> >>> On 07/16/2020 11:55 PM, Mike Kravetz wrote: >From 17c8f37afbf42fe7412e6eebb3619c6e0b7e1c3c Mon Sep 17 00:00:00 2001 From: Mike

Re: [PATCH] Makefile: Fix GCC_TOOLCHAIN_DIR prefix for Clang cross compilation

2020-07-20 Thread Nathan Chancellor
On Mon, Jul 20, 2020 at 11:12:22AM -0700, Fangrui Song wrote: > When CROSS_COMPILE is set (e.g. aarch64-linux-gnu-), if > $(CROSS_COMPILE)elfedit is found at /usr/bin/aarch64-linux-gnu-, > GCC_TOOLCHAIN_DIR will be set to /usr/bin/. --prefix= will be set to > /usr/bin/ and Clang as of 11 will

Re: kworker/0:3+pm hogging CPU

2020-07-20 Thread Michal Hocko
On Mon 20-07-20 13:48:12, Alan Stern wrote: > On Mon, Jul 20, 2020 at 07:45:30PM +0200, Michal Hocko wrote: > > On Mon 20-07-20 13:38:07, Alan Stern wrote: > > > On Mon, Jul 20, 2020 at 06:33:55PM +0200, Michal Hocko wrote: > > > > On Mon 20-07-20 11:12:55, Alan Stern wrote: > > > > [...] > > > >

Re: [PATCH 06/24] fs: add a kern_chdir helper

2020-07-20 Thread Al Viro
On Mon, Jul 20, 2020 at 05:58:44PM +0200, Christoph Hellwig wrote: > Add a simple helper for a chdir with a kernelspace name and use it in the > early init code instead of relying on the implicit set_fs(KERNEL_DS) > there. Remove the now unused ksys_chdir. FWIW, my problem with that is that you

Re: [PATCH V6 07/14] perf/x86/intel: Generic support for hardware TopDown metrics

2020-07-20 Thread Liang, Kan
On 7/20/2020 1:41 PM, Peter Zijlstra wrote: On Fri, Jul 17, 2020 at 07:05:47AM -0700, kan.li...@linux.intel.com wrote: For the event mapping, a special 0x00 event code is used, which is reserved for fake events. The metric events start from umask 0x10. +#define INTEL_PMC_IDX_METRIC_BASE

[PATCH] Makefile: Fix GCC_TOOLCHAIN_DIR prefix for Clang cross compilation

2020-07-20 Thread Fangrui Song
When CROSS_COMPILE is set (e.g. aarch64-linux-gnu-), if $(CROSS_COMPILE)elfedit is found at /usr/bin/aarch64-linux-gnu-, GCC_TOOLCHAIN_DIR will be set to /usr/bin/. --prefix= will be set to /usr/bin/ and Clang as of 11 will search for both $(prefix)aarch64-linux-gnu-$needle and $(prefix)$needle.

Re: [PATCH net-next v2 1/2] hinic: add support to handle hw abnormal event

2020-07-20 Thread Jakub Kicinski
On Sat, 18 Jul 2020 16:58:29 +0800 Luo bin wrote: > add support to handle hw abnormal event such as hardware failure, > cable unplugged,link error > > Signed-off-by: Luo bin > --- > V1~V2: add link extended state > V0~V1: fix auto build test WARNING I don't understand what you think devlink

[PATCH v3 2/2] ASoC: tas2770: Fix reset gpio property name

2020-07-20 Thread Dan Murphy
Fix the reset property name when allocating the GPIO descriptor. The gpiod_get_optional appends either the -gpio or -gpios suffix to the name. Fixes: 1a476abc723e6 ("tas2770: add tas2770 smart PA kernel driver") Signed-off-by: Dan Murphy --- sound/soc/codecs/tas2770.c | 3 +-- 1 file changed, 1

[PATCH v3 1/2] dt-bindings: tas2770: Convert tas2770 binding to yaml

2020-07-20 Thread Dan Murphy
Convert the tas2770 binding to yaml format. Add in the reset-gpio to the binding as it is in the code but not documented in the binding. Reviewed-by: Rob Herring Signed-off-by: Dan Murphy --- .../devicetree/bindings/sound/tas2770.txt | 37 -

linux-next: Signed-off-by missing for commit in the fsinfo tree

2020-07-20 Thread Stephen Rothwell
Hi all, Commit 640b0d2b2640 ("fsinfo: Add an attribute that lists all the visible mounts in a namespace") is missing a Signed-off-by from its author and committer. -- Cheers, Stephen Rothwell pgpYYL53X0cD7.pgp Description: OpenPGP digital signature

Re: [PATCH 05/24] fs: move the putname from filename_lookup to the callers

2020-07-20 Thread Al Viro
On Mon, Jul 20, 2020 at 05:58:43PM +0200, Christoph Hellwig wrote: > This allows reusing the struct filename for retries, and will also allow > pushing the getname up the stack for a few places to allower for better > handling of kernel space filenames. You are complicating the callers for no

[PATCH v3 net-next 02/16] qed, qede, qedf: convert link mode from u32 to ETHTOOL_LINK_MODE

2020-07-20 Thread Alexander Lobakin
Currently qed driver already ran out of 32 bits to store link modes, and this doesn't allow to add and support more speeds. Convert custom link mode to generic Ethtool bitmap and definitions (convenient Phylink shorthands are used for elegance and readability). This allowed us to drop all

[PATCH v3 net-next 10/16] qede: introduce support for FEC control

2020-07-20 Thread Alexander Lobakin
Add Ethtool callbacks for querying and setting FEC parameters if it's supported by the underlying qed module and MFW version running on the device. Signed-off-by: Alexander Lobakin Signed-off-by: Igor Russkikh --- .../net/ethernet/qlogic/qede/qede_ethtool.c | 74 +++ 1 file

[PATCH v3 net-next 12/16] qed: remove unused qed_hw_info::port_mode and QED_PORT_MODE

2020-07-20 Thread Alexander Lobakin
Struct field qed_hw_info::port_mode isn't used anywhere in the code, so can be safely removed to prevent possible dead code addition. Also remove the enumeration QED_PORT_MODE orphaned after this deletion. Signed-off-by: Alexander Lobakin --- drivers/net/ethernet/qlogic/qed/qed.h | 15

[PATCH v3 net-next 16/16] qed: add support for the extended speed and FEC modes

2020-07-20 Thread Alexander Lobakin
Add all necessary code (NVM parsing, MFW and Ethtool reports etc.) to support extended speed and FEC modes. These new modes are supported by the new boards revisions and newer MFW versions. Misc: correct port type for MEDIA_KR. Signed-off-by: Alexander Lobakin Signed-off-by: Igor Russkikh ---

[PATCH v3 net-next 11/16] qed: reformat several structures a bit

2020-07-20 Thread Alexander Lobakin
Reformat a few nvm_cfg* structures (and partly qed_dev) prior to adding new fields and definitions. Signed-off-by: Alexander Lobakin Signed-off-by: Igor Russkikh --- drivers/net/ethernet/qlogic/qed/qed.h | 109 +++ drivers/net/ethernet/qlogic/qed/qed_hsi.h | 345 +++---

[PATCH v3 net-next 13/16] qed: add support for new port modes

2020-07-20 Thread Alexander Lobakin
These ports ship on new boards revisions and are supported by newer firmware versions. Signed-off-by: Alexander Lobakin Signed-off-by: Igor Russkikh --- drivers/net/ethernet/qlogic/qed/qed_dev.c | 5 + drivers/net/ethernet/qlogic/qed/qed_hsi.h | 5 + 2 files changed, 10 insertions(+)

[PATCH v3 net-next 15/16] qed: populate supported link modes maps on module init

2020-07-20 Thread Alexander Lobakin
Simplify and lighten qed_set_link() by declaring static link modes maps and populating them on module init. This way we save plenty of text size at the low expense of __ro_after_init and __initconst data (the latter will be purged after module init is done). Misc: sanitize exit callback.

[PATCH v3 net-next 14/16] qed: add missing loopback modes

2020-07-20 Thread Alexander Lobakin
These modes are relevant only for several boards, but may be reported by MFW as well as the others. Signed-off-by: Alexander Lobakin Signed-off-by: Igor Russkikh --- drivers/net/ethernet/qlogic/qed/qed_hsi.h | 5 + drivers/net/ethernet/qlogic/qed/qed_main.c | 19 +++

Re: [PATCH v2] ntfs: Fix ntfs_test_inode and ntfs_init_locked_inode function type

2020-07-20 Thread Nathan Chancellor
On Sat, Jul 18, 2020 at 01:25:13PM +0200, Luca Stefani wrote: > Clang's Control Flow Integrity (CFI) is a security mechanism that can > help prevent JOP chains, deployed extensively in downstream kernels > used in Android. > > It's deployment is hindered by mismatches in function signatures. For

[PATCH v3 net-next 00/16] qed, qede: add support for new operating modes

2020-07-20 Thread Alexander Lobakin
This series covers the support for the following: - new port modes; - loopback modes, previously missing; - new speed/link modes; - several FEC modes; - multi-rate transceivers; and also cleans up and optimizes several related parts of code. v3 (from [2]): - dropped custom link mode

[PATCH v3 net-next 09/16] qede: format qede{,_vf}_ethtool_ops

2020-07-20 Thread Alexander Lobakin
Prior to adding new callbacks, format qede ethtool_ops structs to make declarations more fancy and readable. Signed-off-by: Alexander Lobakin Signed-off-by: Igor Russkikh --- .../net/ethernet/qlogic/qede/qede_ethtool.c | 137 +- 1 file changed, 68 insertions(+), 69

[PATCH v3 net-next 04/16] qed: reformat public_port::transceiver_data a bit

2020-07-20 Thread Alexander Lobakin
Prior to adding new bitfields, reformat the existing ones from spaces to tabs, and unify all hex values to lowercase. Signed-off-by: Alexander Lobakin Signed-off-by: Igor Russkikh --- drivers/net/ethernet/qlogic/qed/qed_hsi.h | 108 +++--- 1 file changed, 55 insertions(+), 53

[PATCH v3 net-next 08/16] qed: add support for Forward Error Correction

2020-07-20 Thread Alexander Lobakin
Add all necessary routines for reading supported FEC modes from NVM and querying FEC control to the MFW (if the running version supports it). Signed-off-by: Alexander Lobakin Signed-off-by: Igor Russkikh --- drivers/net/ethernet/qlogic/qed/qed_dev.c | 54 +++---

[PATCH v3 net-next 05/16] qed: add support for multi-rate transceivers

2020-07-20 Thread Alexander Lobakin
Set the corresponding advertised and supported link modes according to the detected transceiver type and device capabilities. Signed-off-by: Alexander Lobakin Signed-off-by: Igor Russkikh --- drivers/net/ethernet/qlogic/qed/qed_hsi.h | 4 + drivers/net/ethernet/qlogic/qed/qed_main.c | 120

[PATCH v3 net-next 06/16] qed: use transceiver data to fill link partner's advertising speeds

2020-07-20 Thread Alexander Lobakin
Currently qed driver does not take into consideration transceiver's capabilities when generating link partner's speed advertisement. This leads to e.g. incorrect ethtool link info on 10GbaseT modules. Use transceiver info not only for advertisement and support arrays, but also for link partner's

Re: [PATCH 3/6] mm: introduce secretmemfd system call to create "secret" memory areas

2020-07-20 Thread Arnd Bergmann
On Mon, Jul 20, 2020 at 5:52 PM James Bottomley wrote: > On Mon, 2020-07-20 at 13:30 +0200, Arnd Bergmann wrote: > > I'll assume you mean the dmabuf userspace API? Because the kernel API > is completely device exchange specific and wholly inappropriate for > this use case. > > The user space API

[PATCH v3 net-next 03/16] qede: populate supported link modes maps on module init

2020-07-20 Thread Alexander Lobakin
Simplify and lighten qede_set_link_ksettings() by declaring static link modes maps and populating them on module init. This way we save plenty of text size at the low expense of __ro_after_init and __initconst data (the latter will be purged after module init is done). Signed-off-by: Alexander

[PATCH v3 net-next 07/16] qed: reformat several structures a bit

2020-07-20 Thread Alexander Lobakin
Prior to adding new fields and bitfields, reformat the related structures according to the Linux style (spaces to tabs, lowercase hex, indentation etc.). Signed-off-by: Alexander Lobakin Signed-off-by: Igor Russkikh --- drivers/net/ethernet/qlogic/qed/qed_hsi.h | 256 +++---

[PATCH v3 net-next 01/16] linkmode: introduce linkmode_intersects()

2020-07-20 Thread Alexander Lobakin
Add a new helper to find intersections between Ethtool link modes, linkmode_intersects(), similar to the other linkmode helpers. Signed-off-by: Alexander Lobakin Signed-off-by: Igor Russkikh --- include/linux/linkmode.h | 6 ++ 1 file changed, 6 insertions(+) diff --git

Re: [PATCH 04/24] fs: move the putname from filename_create to the callers

2020-07-20 Thread Linus Torvalds
On Mon, Jul 20, 2020 at 8:59 AM Christoph Hellwig wrote: > > This allows reusing the struct filename for retries, and will also allow > pushing the getname up the stack for a few places to allower for better > handling of kernel space filenames. I find this _very_ confusing. Now the rule is

Re: [PATCH v2] drivers/net/wan/x25_asy: Fix to make it work

2020-07-20 Thread Xie He
On Mon, Jul 20, 2020 at 4:23 AM -0700 Martin Schiller wrote: > > LGTM. > > I have never used the driver, but the adjustments look conclusive. The > functionality is now comparable to the one in the drivers lapbether or > hdlc_x25. > > Reviewed-by: Martin Schiller > Thank you so much!

[PATCH rdma-next v1 0/2] Fix warnings reported by kbuild

2020-07-20 Thread Leon Romanovsky
From: Leon Romanovsky Changelog v1: * Delete "pd" cleanup line * Moved all cleaned feilds to be last in declaration list to improve readability. v0: https://lore.kernel.org/lkml/20200719060319.77603-1-l...@kernel.org -- Hi,

Re: [PATCH 03/24] net: add a new sockptr_t type

2020-07-20 Thread Eric Biggers
On Mon, Jul 20, 2020 at 07:43:22PM +0200, Christoph Hellwig wrote: > On Mon, Jul 20, 2020 at 09:37:48AM -0700, Eric Biggers wrote: > > How does this not introduce a massive security hole when > > CONFIG_ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE? > > > > AFAICS, userspace can pass in a pointer >=

Re: [PATCH 11/14] mm: use SWP_SYNCHRONOUS_IO more intelligently

2020-07-20 Thread Shakeel Butt
+Minchan Kim On Mon, Jul 20, 2020 at 12:52 AM Christoph Hellwig wrote: > > There is no point in trying to call bdev_read_page if SWP_SYNCHRONOUS_IO > is not set, as the device won't support it. Also there is no point in > trying a bio submission if bdev_read_page failed. This will at least

RE: [PATCH v3] net: hyperv: add support for vlans in netvsc driver

2020-07-20 Thread Haiyang Zhang
> -Original Message- > From: Sriram Krishnan > Sent: Monday, July 20, 2020 12:46 PM > To: KY Srinivasan ; Haiyang Zhang > ; Stephen Hemminger ; > Wei Liu > Cc: mbumg...@cisco.com; u...@cisco.com; n...@cisco.com; xe-linux- > exter...@cisco.com; David S. Miller ; Jakub Kicinski > ;

Re: [PATCH v3] kvm,x86: Exit to user space in case of page fault error

2020-07-20 Thread Vivek Goyal
On Fri, Jul 17, 2020 at 12:14:00PM +0200, Vitaly Kuznetsov wrote: [..] > > diff --git a/arch/x86/kvm/mmu/mmu.c b/arch/x86/kvm/mmu/mmu.c > > index 6d6a0ae7800c..a0e6283e872d 100644 > > --- a/arch/x86/kvm/mmu/mmu.c > > +++ b/arch/x86/kvm/mmu/mmu.c > > @@ -4078,7 +4078,7 @@ static bool

Re: [PATCH v3 4/5] LSM: Define SELinux function to measure security state

2020-07-20 Thread Stephen Smalley
On Mon, Jul 20, 2020 at 1:40 PM Stephen Smalley wrote: > > On Mon, Jul 20, 2020 at 1:34 PM Lakshmi Ramasubramanian > wrote: > > > > On 7/20/20 10:06 AM, Stephen Smalley wrote: > > > > >> The above will ensure the following sequence will be measured: > > >>#1 State A - Measured > > >>#2

Re: [PATCH] i2c: iproc: fix race between client unreg and isr

2020-07-20 Thread Ray Jui
On 7/18/2020 4:39 PM, Dhananjay Phadke wrote: > When i2c client unregisters, synchronize irq before setting > iproc_i2c->slave to NULL. > > Unable to handle kernel NULL pointer dereference at virtual address > 0318 > > [ 371.020421] pc : bcm_iproc_i2c_isr+0x530/0x11f0 > [

[PATCH v1] media: cafe-driver: use generic power management

2020-07-20 Thread Vaibhav Gupta
Drivers using legacy PM have to manage PCI states and device's PM states themselves. They also need to take care of configuration registers. With improved and powerful support of generic PM, PCI Core takes care of above mentioned, device-independent, jobs. This driver makes use of PCI helper

Re: kworker/0:3+pm hogging CPU

2020-07-20 Thread Alan Stern
On Mon, Jul 20, 2020 at 07:45:30PM +0200, Michal Hocko wrote: > On Mon 20-07-20 13:38:07, Alan Stern wrote: > > On Mon, Jul 20, 2020 at 06:33:55PM +0200, Michal Hocko wrote: > > > On Mon 20-07-20 11:12:55, Alan Stern wrote: > > > [...] > > > > sudo echo 'module usbcore =p'

Re: kworker/0:3+pm hogging CPU

2020-07-20 Thread Michal Hocko
On Mon 20-07-20 13:38:07, Alan Stern wrote: > On Mon, Jul 20, 2020 at 06:33:55PM +0200, Michal Hocko wrote: > > On Mon 20-07-20 11:12:55, Alan Stern wrote: > > [...] > > > sudo echo 'module usbcore =p' >/debug/dynamic_debug/control > > > > > > Then wait long enough for some interesting messages

Re: [PATCH 3/6] mm: introduce secretmemfd system call to create "secret" memory areas

2020-07-20 Thread Mike Rapoport
On Mon, Jul 20, 2020 at 04:34:12PM +0200, Arnd Bergmann wrote: > On Mon, Jul 20, 2020 at 4:21 PM Mike Rapoport wrote: > > On Mon, Jul 20, 2020 at 01:30:13PM +0200, Arnd Bergmann wrote: > > > On Mon, Jul 20, 2020 at 11:25 AM Mike Rapoport wrote: > > > > > > > > From: Mike Rapoport > > > > > > >

Re: [PATCH for v5.9] Documentation: intel: Replace HTTP links with HTTPS ones

2020-07-20 Thread Alexander Duyck
On Sun, Jul 19, 2020 at 8:49 AM Alexander A. Klimov wrote: > > Rationale: > Reduces attack surface on kernel devs opening the links for MITM > as HTTPS traffic is much harder to manipulate. > > Deterministic algorithm: > For each file: > If not .svg: > For each line: > If doesn't

RE: [PATCH v3] net: hyperv: add support for vlans in netvsc driver

2020-07-20 Thread Haiyang Zhang
> -Original Message- > From: Sriram Krishnan > Sent: Monday, July 20, 2020 12:46 PM > To: KY Srinivasan ; Haiyang Zhang > ; Stephen Hemminger ; > Wei Liu > Cc: mbumg...@cisco.com; u...@cisco.com; n...@cisco.com; xe-linux- > exter...@cisco.com; David S. Miller ; Jakub Kicinski > ;

Re: [PATCH 03/24] net: add a new sockptr_t type

2020-07-20 Thread Christoph Hellwig
On Mon, Jul 20, 2020 at 09:37:48AM -0700, Eric Biggers wrote: > How does this not introduce a massive security hole when > CONFIG_ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE? > > AFAICS, userspace can pass in a pointer >= TASK_SIZE, > and this code makes it be treated as a kernel pointer. Yeah, we'll

Re: get rid of the address_space override in setsockopt

2020-07-20 Thread Christoph Hellwig
On Mon, Jul 20, 2020 at 09:38:36AM -0700, Eric Biggers wrote: > Please mention what git tree your patchset applies to. net-next/master

Re: [PATCH 5.7 233/244] RISC-V: Acquire mmap lock before invoking walk_page_range

2020-07-20 Thread Naresh Kamboju
RISC-V build breaks on stable-rc 5.7 branch. build failed with gcc-8, gcc-9 and gcc-9. On Mon, 20 Jul 2020 at 21:46, Greg Kroah-Hartman wrote: > > From: Atish Patra > > commit 0e2c09011d4de4161f615ff860a605a9186cf62a upstream. > > As per walk_page_range documentation, mmap lock should be

Re: [PATCH v3 4/5] LSM: Define SELinux function to measure security state

2020-07-20 Thread Stephen Smalley
On Mon, Jul 20, 2020 at 1:34 PM Lakshmi Ramasubramanian wrote: > > On 7/20/20 10:06 AM, Stephen Smalley wrote: > > >> The above will ensure the following sequence will be measured: > >>#1 State A - Measured > >>#2 Change from State A to State B - Measured > >>#3 Change from State B

Re: [PATCH V6 07/14] perf/x86/intel: Generic support for hardware TopDown metrics

2020-07-20 Thread Peter Zijlstra
On Fri, Jul 17, 2020 at 07:05:47AM -0700, kan.li...@linux.intel.com wrote: > For the event mapping, a special 0x00 event code is used, which is > reserved for fake events. The metric events start from umask 0x10. > +#define INTEL_PMC_IDX_METRIC_BASE(INTEL_PMC_IDX_FIXED + 16) >

Re: [PATCH] i2c: iproc: fix race between client unreg and isr

2020-07-20 Thread Scott Branden
looks good. On 2020-07-19 12:59 a.m., Rayagonda Kokatanur wrote: On Sun, Jul 19, 2020 at 5:10 AM Dhananjay Phadke wrote: When i2c client unregisters, synchronize irq before setting iproc_i2c->slave to NULL. Unable to handle kernel NULL pointer dereference at virtual address 0318

Re: kworker/0:3+pm hogging CPU

2020-07-20 Thread Alan Stern
On Mon, Jul 20, 2020 at 06:33:55PM +0200, Michal Hocko wrote: > On Mon 20-07-20 11:12:55, Alan Stern wrote: > [...] > > sudo echo 'module usbcore =p' >/debug/dynamic_debug/control > > > > Then wait long enough for some interesting messages to appear in the > > kernel log (it should only take

Re: [PATCH] r6040: switch from 'pci_' to 'dma_' API

2020-07-20 Thread Florian Fainelli
On 7/20/20 6:02 AM, Christophe JAILLET wrote: > The wrappers in include/linux/pci-dma-compat.h should go away. > > The patch has been generated with the coccinelle script below and has been > hand modified to replace GFP_ with a correct flag. > It has been compile tested. > > When memory is

[PATCH v5] phy: samsung: Use readl_poll_timeout function

2020-07-20 Thread Anand Moon
Instead of a busy waiting while loop using udelay use readl_poll_timeout function to check the condition is met or timeout occurs in crport_handshake function. readl_poll_timeout is called in non atomic context so it safe to sleep until the condition is met. Signed-off-by: Anand Moon --- Changes

Re: [PATCH v3] net: hyperv: add support for vlans in netvsc driver

2020-07-20 Thread Stephen Hemminger
On Mon, 20 Jul 2020 22:15:51 +0530 Sriram Krishnan wrote: > > + /* When using AF_PACKET we need to remove VLAN from frame > + * and indicate VLAN information in SKB so HOST OS will > + * transmit the VLAN frame > + */ > + if (skb->protocol == htons(ETH_P_8021Q)) { > +

Re: [PATCH v3 4/5] LSM: Define SELinux function to measure security state

2020-07-20 Thread Lakshmi Ramasubramanian
On 7/20/20 10:06 AM, Stephen Smalley wrote: The above will ensure the following sequence will be measured: #1 State A - Measured #2 Change from State A to State B - Measured #3 Change from State B back to State A - Since the measured data is same as in #1, the change will be measured

Re: [PATCH] x86/fpu/xstate: Fix an xstate size check warning

2020-07-20 Thread Cyrill Gorcunov
On Mon, Jul 20, 2020 at 06:50:51AM -0700, kan.li...@linux.intel.com wrote: ... > static unsigned int __init get_xsave_size(void) > { > unsigned int eax, ebx, ecx, edx; > @@ -710,7 +741,7 @@ static int __init init_xstate_size(void) > xsave_size = get_xsave_size(); > > if

Re: [PATCH v4 00/24] seqlock: Extend seqcount API with associated locks

2020-07-20 Thread Ahmed S. Darwish
On Mon, Jul 20, 2020 at 09:49:12AM -0700, Eric Biggers wrote: > On Mon, Jul 20, 2020 at 05:55:06PM +0200, Ahmed S. Darwish wrote: > > Hi, > > > > This is v4 of the seqlock patch series: > > > >[PATCH v1 00/25] > > > >

[PATCH v10 1/2] dt-bindings: timer: Add Ingenic X1000 OST bindings.

2020-07-20 Thread Zhou Yanjie
Add the OST bindings for the X1 SoC from Ingenic. Tested-by: 周正 (Zhou Zheng) Signed-off-by: 周琰杰 (Zhou Yanjie) Reviewed-by: Paul Cercueil Reviewed-by: Rob Herring --- Notes: v1->v2: No change. v2->v3: Fix wrong parameters in "clocks". v3->v4: 1.Rename

[PATCH v10 2/2] clocksource: Ingenic: Add support for the Ingenic X1000 OST.

2020-07-20 Thread Zhou Yanjie
X1000 and SoCs after X1000 (such as X1500 and X1830) had a separate OST, it no longer belongs to TCU. This driver will register both a clocksource and a sched_clock to the system. Tested-by: 周正 (Zhou Zheng) Co-developed-by: 漆鹏振 (Qi Pengzhen) Signed-off-by: 漆鹏振 (Qi Pengzhen) Signed-off-by: 周琰杰

[PATCH v10 0/2] Add support for the OST in Ingenic X1000.

2020-07-20 Thread Zhou Yanjie
v9->v10: Fix errors which case "make dt_binding_check" failed. 周琰杰 (Zhou Yanjie) (2): dt-bindings: timer: Add Ingenic X1000 OST bindings. clocksource: Ingenic: Add support for the Ingenic X1000 OST. .../devicetree/bindings/timer/ingenic,sysost.yaml | 63 +++ drivers/clocksource/Kconfig

Re: io_uring vs in_compat_syscall()

2020-07-20 Thread Andy Lutomirski
> On Jul 20, 2020, at 10:02 AM, Jens Axboe wrote: > > On 7/20/20 10:58 AM, Andy Lutomirski wrote: >> On Jul 20, 2020, at 9:37 AM, Jens Axboe wrote: >>> >>> On 7/20/20 12:10 AM, Christoph Hellwig wrote: Hi Jens, I just found a (so far theoretical) issue with the

Re: [PATCH v3 4/5] LSM: Define SELinux function to measure security state

2020-07-20 Thread Mimi Zohar
On Mon, 2020-07-20 at 13:06 -0400, Stephen Smalley wrote: > > > I applied the patch series on top of the next-integrity branch, added > measure func=LSM_STATE to ima-policy, and booted that kernel. I get > the following entries in ascii_runtime_measurements, but seemingly > missing the final

Re: [PATCH v2 net-next] net: hyperv: Add attributes to show TX indirection table

2020-07-20 Thread Stephen Hemminger
On Mon, 20 Jul 2020 00:12:10 -0700 (PDT) Chi Song wrote: > An imbalanced TX indirection table causes netvsc to have low > performance. This table is created and managed during runtime. To help > better diagnose performance issues caused by imbalanced tables, add > device attributes to show the

Re: Build regressions/improvements in v5.8-rc6

2020-07-20 Thread Johannes Berg
On Mon, 2020-07-20 at 16:01 +0200, Geert Uytterhoeven wrote: > On Mon, Jul 20, 2020 at 3:12 PM Geert Uytterhoeven > wrote: > > JFYI, when comparing v5.8-rc6[1] to v5.8-rc5[3], the summaries are: > > - build errors: +6/-3 > > + error: modpost: "devm_ioremap" >

{standard input}:1428: Error: junk at end of line, first unrecognized character is `('

2020-07-20 Thread kernel test robot
nths ago config: mips-randconfig-c004-20200720 (attached as .config) compiler: mips-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git chec

Re: [PATCH v2 1/3] regmap: add Intel SPI Slave to AVMM Bus Bridge support

2020-07-20 Thread Xu Yilun
On Fri, Jul 17, 2020 at 07:15:08PM +0100, Mark Brown wrote: > On Thu, Jul 16, 2020 at 06:42:52PM +0800, Xu Yilun wrote: > > > This patch add support for regmap API that is intended to be used by > > the drivers of some SPI slave chips which integrate the "SPI slave to > > Avalon Master Bridge"

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-20 Thread Matthew Wilcox
On Mon, Jul 20, 2020 at 10:19:57PM +0530, Kanchan Joshi wrote: > On Fri, Jul 10, 2020 at 7:41 PM Kanchan Joshi wrote: > > If we are doing this for zone-append (and not general cases), "__s64 > > res64" should work -. > > 64 bits = 1 (sign) + 23 (bytes-copied: cqe->res) + 40 > > (written-location:

Re: [PATCH] net: ath10k: fix OOB: __ath10k_htt_rx_ring_fill_n

2020-07-20 Thread Kalle Valo
Zekun Shen wrote: > The idx in __ath10k_htt_rx_ring_fill_n function lives in > consistent dma region writable by the device. Malfunctional > or malicious device could manipulate such idx to have a OOB > write. Either by > htt->rx_ring.netbufs_ring[idx] = skb; > or by >

Re: [PATCH v12 0/4] Prepare for upcoming Casefolding/Encryption patches

2020-07-20 Thread Eric Biggers
On Wed, Jul 08, 2020 at 02:12:33AM -0700, Daniel Rosenberg wrote: > This lays the ground work for enabling casefolding and encryption at the > same time for ext4 and f2fs. A future set of patches will enable that > functionality. > > These unify the highly similar dentry_operations that ext4 and

Re: [PATCH 3/14 v3] ath9k: Check the return value of pcie_capability_read_*()

2020-07-20 Thread Kalle Valo
"Saheed O. Bolarinwa" wrote: > On failure pcie_capability_read_dword() sets it's last parameter, val > to 0. However, with Patch 14/14, it is possible that val is set to ~0 on > failure. This would introduce a bug because (x & x) == (~0 & x). > > This bug can be avoided without changing the

Re: [PATCH v2] AF_PACKET doesnt strip VLAN information

2020-07-20 Thread Sriram Krishnan (srirakr2)
I have moved the code to the driver and pushed a new patch due to the below highlighted issues. Stephen H, Please let me know if you have any concerns localising the changes to the netvsc driver. Thanks, Sriram On 20/07/20, 7:23 PM, "Willem de Bruijn" wrote: On Mon, Jul 20, 2020 at

Re: [PATCH v8 4/5] remoteproc: Add inline coredump functionality

2020-07-20 Thread Mathieu Poirier
On Thu, Jul 16, 2020 at 03:20:34PM -0700, Rishabh Bhatnagar wrote: > The current coredump implementation uses vmalloc area to copy > all the segments. But this might put strain on low memory targets > as the firmware size sometimes is in tens of MBs. The situation > becomes worse if there are

Re: [PATCH v3 4/5] LSM: Define SELinux function to measure security state

2020-07-20 Thread Stephen Smalley
On Mon, Jul 20, 2020 at 11:17 AM Lakshmi Ramasubramanian wrote: > Thanks for trying out the changes. Please let me know the defects you find. > > Just to let you know - I am making the following change (will update in > the next patch): > > => Save the last policy hash and state string in

[PATCH] block: bfq fix blkio cgroup leakage v2

2020-07-20 Thread Dmitry Monakhov
commit db37a34c563b ("block, bfq: get a ref to a group when adding it to a service tree") introduce leak forbfq_group and blkcg_gq objects because of get/put imbalance. See trace balow: -> blkg_alloc -> bfq_pq_alloc -> bfqg_get (+1) ->bfq_activate_bfqq ->bfq_activate_requeue_entity

Re: [PATCH v3 07/12] ima: Fail rule parsing when appraise_flag=blacklist is unsupportable

2020-07-20 Thread Nayna
On 7/17/20 2:11 PM, Tyler Hicks wrote: On 2020-07-17 13:40:22, Nayna wrote: On 7/9/20 2:19 AM, Tyler Hicks wrote: The "appraise_flag" option is only appropriate for appraise actions and its "blacklist" value is only appropriate when CONFIG_IMA_APPRAISE_MODSIG is enabled and

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-20 Thread Kanchan Joshi
On Fri, Jul 10, 2020 at 7:13 PM Christoph Hellwig wrote: > > On Fri, Jul 10, 2020 at 06:59:45PM +0530, Kanchan Joshi wrote: > > > block doesn't work for the case of writes to files that don't have > > > to be aligned in any way. And that I think is the more broadly > > > applicable use case than

Re: [RFC PATCH bpf-next 1/2] bpf: BTF support for __ksym externs

2020-07-20 Thread Hao Luo
Andrii, Thanks for taking a look at this. You comments are clear, I will fix them in v2. > Also, in the next version, please split kernel part and libbpf part > into separate patches. > Got it. Will do. > I don't think that's the right approach. It can't be the best effort. > It's actually

Re: [PATCH net] net: bcmgenet: add missed clk_disable_unprepare in bcmgenet_probe

2020-07-20 Thread Florian Fainelli
On 7/20/20 2:36 AM, Zhang Changzhong wrote: > The driver forgets to call clk_disable_unprepare() in error path after > a success calling for clk_prepare_enable(). > > Fix to goto err_clk_disable if clk_prepare_enable() is successful. > > Fixes: c80d36ff63a5 ("net: bcmgenet: Use

Re: [PATCH net] net: bcmgenet: fix error returns in bcmgenet_probe()

2020-07-20 Thread Florian Fainelli
On 7/20/20 12:18 AM, Zhang Changzhong wrote: > The driver forgets to call clk_disable_unprepare() in error path after > a success calling for clk_prepare_enable(). > > Fix to goto err_clk_disable if clk_prepare_enable() is successful. > > Fixes: 99d55638d4b0 ("net: bcmgenet: enable

[PATCH v3 1/3] media: i2c: imx274: Fix Y_OUT_SIZE register setting

2020-07-20 Thread Sowjanya Komatineni
As per Sony IMX274 Y_OUT_SIZE should be the height of effective image output from the sensor which are the actual total lines sent over MIPI CSI to receiver. So, Y_OUT_SIZE should be same as crop height and this patch fixes it. Signed-off-by: Sowjanya Komatineni --- drivers/media/i2c/imx274.c

[PATCH v3 2/3] dt-bindings: media: imx274: Add optional input clock and supplies

2020-07-20 Thread Sowjanya Komatineni
This patch adds IMX274 optional external clock input and voltage supplies to device tree bindings. Reviewed-by: Luca Ceresoli Signed-off-by: Sowjanya Komatineni --- Documentation/devicetree/bindings/media/i2c/imx274.txt | 5 + 1 file changed, 5 insertions(+) diff --git

Re: io_uring vs in_compat_syscall()

2020-07-20 Thread Jens Axboe
On 7/20/20 10:58 AM, Andy Lutomirski wrote: > >> On Jul 20, 2020, at 9:37 AM, Jens Axboe wrote: >> >> On 7/20/20 12:10 AM, Christoph Hellwig wrote: >>> Hi Jens, >>> >>> I just found a (so far theoretical) issue with the io_uring submission >>> offloading to workqueues or threads. We have lots

[PATCH v3 3/3] media: i2c: imx274: Add IMX274 power on and off sequence

2020-07-20 Thread Sowjanya Komatineni
IMX274 has VANA analog 2.8V supply, VDIG digital core 1.8V supply, and VDDL digital io 1.2V supply which are optional based on camera module design. IMX274 also need external 24Mhz clock and is optional based on camera module design. This patch adds support for IMX274 power on and off to enable

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