[PATCH 5.2 047/144] can: flexcan: fix an use-after-free in flexcan_setup_stop_mode()

2019-08-14 Thread Greg Kroah-Hartman
From: Wen Yang commit e9f2a856e102fa27715b94bcc2240f686536d29b upstream. The gpr_np variable is still being used in dev_dbg() after the of_node_put() call, which may result in use-after-free. Fixes: de3578c198c6 ("can: flexcan: add self wakeup support") Signed-off-by: Wen Yang Cc: linux-stable

[PATCH 5.2 046/144] can: flexcan: fix stop mode acknowledgment

2019-08-14 Thread Greg Kroah-Hartman
From: Joakim Zhang commit 5f186c257fa4808bb7f14e643b9fba3e11f08a30 upstream. To enter stop mode, the CPU should manually assert a global Stop Mode request and check the acknowledgment asserted by FlexCAN. The CPU must only consider the FlexCAN in stop mode when both request and acknowledgment co

[PATCH 5.2 050/144] netfilter: nfnetlink: avoid deadlock due to synchronous request_module

2019-08-14 Thread Greg Kroah-Hartman
[ Upstream commit 1b0890cd60829bd51455dc5ad689ed58c4408227 ] Thomas and Juliana report a deadlock when running: (rmmod nf_conntrack_netlink/xfrm_user) conntrack -e NEW -E & modprobe -v xfrm_user They provided following analysis: conntrack -e NEW -E netlink_bind() netlink_lock_t

Re: [PATCH 07/22] arm64: dts: qcom: pm8150: Add pon and rtc nodes

2019-08-14 Thread Stephen Boyd
Quoting Vinod Koul (2019-08-14 05:49:57) > PM8150 PMIC contains pon and rtc devices so add nodes for these. > > Signed-off-by: Vinod Koul > --- Squash this with the other patch? > @@ -12,6 +13,25 @@ > #address-cells = <1>; > #size-cells = <0>; > > +

RE: [EXT] Re: [v1 1/3] clk: ls1028a: Add clock driver for Display output interface

2019-08-14 Thread Stephen Boyd
Quoting Wen He (2019-08-14 02:38:21) > > > > -Original Message- > > From: Stephen Boyd > > Sent: 2019年8月14日 2:25 > > To: Michael Turquette ; Wen He > > ; Leo Li ; > > linux-...@vger.kernel.org; linux-de...@linux.nxdi.nxp.com; > > linux-kernel@vger.kernel.org; liviu.du...@arm.com > > Cc:

[PATCH 5.2 009/144] staging: android: ion: Bail out upon SIGKILL when allocating memory.

2019-08-14 Thread Greg Kroah-Hartman
From: Tetsuo Handa commit 8f9e86ee795971eabbf372e6d804d6b8578287a7 upstream. syzbot found that a thread can stall for minutes inside ion_system_heap_allocate() after that thread was killed by SIGKILL [1]. Let's check for SIGKILL before doing memory allocation. [1] https://syzkaller.appspot.com

[PATCH 5.2 037/144] gfs2: gfs2_walk_metadata fix

2019-08-14 Thread Greg Kroah-Hartman
From: Andreas Gruenbacher commit a27a0c9b6a208722016c8ec5ad31ec96082b91ec upstream. It turns out that the current version of gfs2_metadata_walker suffers from multiple problems that can cause gfs2_hole_size to report an incorrect size. This will confuse fiemap as well as lseek with the SEEK_DAT

Re: [PATCH 06/22] arm64: dts: qcom: pm8150: Add Base DTS file

2019-08-14 Thread Stephen Boyd
Quoting Vinod Koul (2019-08-14 05:49:56) > Add base DTS file for pm8150 along with GPIOs > > Signed-off-by: Vinod Koul > --- > arch/arm64/boot/dts/qcom/pm8150.dtsi | 41 > 1 file changed, 41 insertions(+) > create mode 100644 arch/arm64/boot/dts/qcom/pm8150.dtsi >

[PATCH 5.2 005/144] iio: adc: gyroadc: fix uninitialized return code

2019-08-14 Thread Greg Kroah-Hartman
From: Arnd Bergmann commit 90c6260c1905a68fb596844087f2223bd4657fee upstream. gcc-9 complains about a blatant uninitialized variable use that all earlier compiler versions missed: drivers/iio/adc/rcar-gyroadc.c:510:5: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitial

[PATCH 5.2 007/144] staging: gasket: apex: fix copy-paste typo

2019-08-14 Thread Greg Kroah-Hartman
From: Ivan Bornyakov commit 5bb9979246729562a09fcdbb101c83127989 upstream. In sysfs_show() case-branches ATTR_KERNEL_HIB_PAGE_TABLE_SIZE and ATTR_KERNEL_HIB_SIMPLE_PAGE_TABLE_SIZE do the same. It looks like copy-paste mistake. Signed-off-by: Ivan Bornyakov Cc: stable Link: https://lore.ke

[PATCH 5.2 014/144] crypto: ccp - Ignore tag length when decrypting GCM ciphertext

2019-08-14 Thread Greg Kroah-Hartman
From: Gary R Hook commit e2664ecbb2f26225ac6646876f2899558ffb2604 upstream. AES GCM input buffers for decryption contain AAD+CTEXT+TAG. Only decrypt the ciphertext, and use the tag for comparison. Fixes: 36cf515b9bbe2 ("crypto: ccp - Enable support for AES GCM on v5 CCPs") Cc: Signed-off-by: G

[PATCH 5.2 023/144] bdev: Fixup error handling in blkdev_get()

2019-08-14 Thread Greg Kroah-Hartman
From: Jan Kara commit e91455bad5cff40a8c232f2204a5104127e3fec2 upstream. Commit 89e524c04fa9 ("loop: Fix mount(2) failure due to race with LOOP_SET_FD") converted blkdev_get() to use the new helpers for finishing claiming of a block device. However the conversion botched the error handling in bl

[PATCH 5.2 025/144] Input: elantech - enable SMBus on new (2018+) systems

2019-08-14 Thread Greg Kroah-Hartman
From: Kai-Heng Feng commit 883a2a80f79ca5c0c105605fafabd1f3df99b34c upstream. There are some new HP laptops with Elantech touchpad that don't support multitouch. Currently we use ETP_NEW_IC_SMBUS_HOST_NOTIFY() to check if SMBus is supported, but in addition to firmware version, the bus type als

[PATCH 5.2 012/144] crypto: ccp - Fix oops by properly managing allocated structures

2019-08-14 Thread Greg Kroah-Hartman
From: Gary R Hook commit 25e44338321af545ab34243a6081c3f0fc6107d0 upstream. A plaintext or ciphertext length of 0 is allowed in AES, in which case no encryption occurs. Ensure that we don't clean up data structures that were never allocated. Fixes: 36cf515b9bbe2 ("crypto: ccp - Enable support f

[PATCH 5.2 018/144] usb: iowarrior: fix deadlock on disconnect

2019-08-14 Thread Greg Kroah-Hartman
From: Oliver Neukum commit c468a8aa790e0dfe0a7f8a39db282d39c2c00b46 upstream. We have to drop the mutex before we close() upon disconnect() as close() needs the lock. This is safe to do by dropping the mutex as intfdata is already set to NULL, so open() will fail. Fixes: 03f36e885fc26 ("USB: op

Re: [Linux-kernel-mentees][PATCH v5 1/1] sgi-gru: Remove *pte_lookup functions, Convert to get_user_page*()

2019-08-14 Thread Bharath Vedartham
On Tue, Aug 13, 2019 at 01:19:38PM -0500, Dimitri Sivanich wrote: > On Tue, Aug 13, 2019 at 10:53:01PM +0530, Bharath Vedartham wrote: > > On Tue, Aug 13, 2019 at 09:50:29AM -0500, Dimitri Sivanich wrote: > > > Bharath, > > > > > > I do not believe that __get_user_pages_fast will work for the atom

Re: [PATCH v2 07/15] drm/mxsfb: Fix the vblank events

2019-08-14 Thread Daniel Vetter
On Wed, Aug 14, 2019 at 01:48:43PM +0300, Robert Chiras wrote: > Currently, the vblank support is not correctly implemented in MXSFB_DRM > driver. The call to drm_vblank_init is made with mode_config.num_crtc > which at that time is 0. Because of this, vblank is not activated, so > there won't be a

Re: [PATCH 4/7] pwm: jz4740: Improve algorithm of clock calculation

2019-08-14 Thread Uwe Kleine-König
Hello Paul, On Wed, Aug 14, 2019 at 06:10:35PM +0200, Paul Cercueil wrote: > Le mar. 13 août 2019 à 16:09, Uwe =?iso-8859-1?q?Kleine-K=F6nig?= a écrit : > > On Tue, Aug 13, 2019 at 02:47:28PM +0200, Paul Cercueil wrote: > > > Le mar. 13 août 2019 à 14:33, Uwe Kleine-König a écrit : > > > > On Tue,

Re: [PATCH v2 05/10] module: add config option MODULE_ALLOW_MISSING_NAMESPACE_IMPORTS

2019-08-14 Thread Saravana Kannan
On Wed, Aug 14, 2019 at 5:54 AM 'Matthias Maennich' via kernel-team wrote: > > On Tue, Aug 13, 2019 at 01:15:44PM -0700, Saravana Kannan wrote: > >On Tue, Aug 13, 2019 at 5:19 AM 'Matthias Maennich' via kernel-team > > wrote: > >> > >> If MODULE_ALLOW_MISSING_NAMESPACE_IMPORTS is enabled (default=

Re: [Linux-kernel-mentees][PATCH v5 1/1] sgi-gru: Remove *pte_lookup functions, Convert to get_user_page*()

2019-08-14 Thread Jason Gunthorpe
On Wed, Aug 14, 2019 at 11:00:34PM +0530, Bharath Vedartham wrote: > On Tue, Aug 13, 2019 at 01:19:38PM -0500, Dimitri Sivanich wrote: > > On Tue, Aug 13, 2019 at 10:53:01PM +0530, Bharath Vedartham wrote: > > > On Tue, Aug 13, 2019 at 09:50:29AM -0500, Dimitri Sivanich wrote: > > > > Bharath, > >

Re: [PATCH v4 2/2] RISC-V: Implement sparsemem

2019-08-14 Thread Paul Walmsley
On Wed, 14 Aug 2019, Logan Gunthorpe wrote: > On 2019-08-14 7:35 a.m., Greentime Hu wrote: > > > Maybe this commit explains why it used HAVE_ARCH_PFN_VALID instead of > > SPARSEMEM. > > https://github.com/torvalds/linux/commit/7b7bf499f79de3f6c85a340c8453a78789523f85 > > > > BTW, I found another

[PATCH] net: usbnet: fix a memory leak bug

2019-08-14 Thread Wenwen Wang
In usbnet_start_xmit(), 'urb->sg' is allocated through kmalloc_array() by invoking build_dma_sg(). Later on, if 'CONFIG_PM' is defined and the if branch is taken, the execution will go to the label 'deferred'. However, 'urb->sg' is not deallocated on this execution path, leading to a memory leak bu

Re: [PATCH 01/22] arm64: dts: qcom: sm8150: add base dts file

2019-08-14 Thread Bjorn Andersson
On Wed 14 Aug 09:58 PDT 2019, Stephen Boyd wrote: > Quoting Vinod Koul (2019-08-14 05:49:51) > > diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi > > b/arch/arm64/boot/dts/qcom/sm8150.dtsi [..] > > + clocks { > > + xo_board: xo-board { > > + compatible =

Re: [PATCH v4 2/2] RISC-V: Implement sparsemem

2019-08-14 Thread Logan Gunthorpe
On 2019-08-14 11:40 a.m., Paul Walmsley wrote: > On Wed, 14 Aug 2019, Logan Gunthorpe wrote: > >> On 2019-08-14 7:35 a.m., Greentime Hu wrote: >> >>> Maybe this commit explains why it used HAVE_ARCH_PFN_VALID instead of >>> SPARSEMEM. >>> https://github.com/torvalds/linux/commit/7b7bf499f79de3

Re: [PATCH V38 15/29] acpi: Ignore acpi_rsdp kernel param when the kernel has been locked down

2019-08-14 Thread Borislav Petkov
On Wed, Aug 14, 2019 at 10:14:54AM -0700, Matthew Garrett wrote: > We explicitly don't want to pay attention to the acpi_rsdp kernel > parameter in early boot except for the case of finding the SRAT table, > and we only need that if CONFIG_RANDOMIZE_BASE and > CONFIG_MEMORY_HOTREMOVE are set. Howev

Re: [PATCH v4 02/14] net: phy: adin: hook genphy_{suspend,resume} into the driver

2019-08-14 Thread Florian Fainelli
On 8/12/2019 4:23 AM, Alexandru Ardelean wrote: > The chip supports standard suspend/resume via BMCR reg. > Hook these functions into the `adin` driver. > > Reviewed-by: Andrew Lunn > Signed-off-by: Alexandru Ardelean Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH v6 21/57] Input: Remove dev_err() usage after platform_get_irq()

2019-08-14 Thread Dmitry Torokhov
On Tue, Jul 30, 2019 at 11:15:21AM -0700, Stephen Boyd wrote: > We don't need dev_err() messages when platform_get_irq() fails now that > platform_get_irq() prints an error message itself when something goes > wrong. Let's remove these prints with a simple semantic patch. > > // > @@ > expression

Re: [PATCH v4 01/14] net: phy: adin: add support for Analog Devices PHYs

2019-08-14 Thread Florian Fainelli
On 8/12/2019 4:23 AM, Alexandru Ardelean wrote: > This change adds support for Analog Devices Industrial Ethernet PHYs. > Particularly the PHYs this driver adds support for: > * ADIN1200 - Robust, Industrial, Low Power 10/100 Ethernet PHY > * ADIN1300 - Robust, Industrial, Low Latency 10/100/1

Re: [PATCH v4 03/14] net: phy: adin: add support for interrupts

2019-08-14 Thread Florian Fainelli
On 8/12/2019 4:23 AM, Alexandru Ardelean wrote: > This change hooks link-status-change interrupts to phylib. > > Reviewed-by: Andrew Lunn > Signed-off-by: Alexandru Ardelean Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH v4 04/14] net: phy: adin: add {write,read}_mmd hooks

2019-08-14 Thread Florian Fainelli
On 8/12/2019 4:23 AM, Alexandru Ardelean wrote: > Both ADIN1200 & ADIN1300 support Clause 45 access for some registers. > The Extended Management Interface (EMI) registers are accessible via both > Clause 45 (at register MDIO_MMD_VEND1) and using Clause 22. > > The Clause 22 access for MMD regs

Re: DMA-API: cacheline tracking ENOMEM, dma-debug disabled due to nouveau ?

2019-08-14 Thread Daniel Vetter
On Wed, Aug 14, 2019 at 04:50:33PM +0200, Corentin Labbe wrote: > Hello > > Since lot of release (at least since 4.19), I hit the following error message: > DMA-API: cacheline tracking ENOMEM, dma-debug disabled > > After hitting that, I try to check who is creating so many DMA mapping and > see

Re: [PATCH 01/22] arm64: dts: qcom: sm8150: add base dts file

2019-08-14 Thread Bjorn Andersson
On Wed 14 Aug 05:49 PDT 2019, Vinod Koul wrote: > diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi > b/arch/arm64/boot/dts/qcom/sm8150.dtsi [..] > + soc: soc@0 { > + #address-cells = <1>; > + #size-cells = <1>; > + ranges = <0 0 0 0x>; I'm expectin

Re: [PATCH v4 05/14] net: phy: adin: configure RGMII/RMII/MII modes on config

2019-08-14 Thread Florian Fainelli
On 8/12/2019 4:23 AM, Alexandru Ardelean wrote: > The ADIN1300 chip supports RGMII, RMII & MII modes. Default (if > unconfigured) is RGMII. > This change adds support for configuring these modes via the device > registers. > > For RGMII with internal delays (modes RGMII_ID,RGMII_TXID, RGMII_RXI

Re: [RFC PATCH v2 16/19] RDMA/uverbs: Add back pointer to system file object

2019-08-14 Thread Ira Weiny
On Wed, Aug 14, 2019 at 09:23:08AM -0300, Jason Gunthorpe wrote: > On Tue, Aug 13, 2019 at 01:38:59PM -0700, Ira Weiny wrote: > > On Tue, Aug 13, 2019 at 03:00:22PM -0300, Jason Gunthorpe wrote: > > > On Tue, Aug 13, 2019 at 10:41:42AM -0700, Ira Weiny wrote: > > > > > > > And I was pretty sure uv

Re: [PATCH v2] vfio: re-arrange vfio region definitions

2019-08-14 Thread Alex Williamson
On Tue, 6 Aug 2019 11:30:00 +0200 Cornelia Huck wrote: > It is easy to miss already defined region types. Let's re-arrange > the definitions a bit and add more comments to make it hopefully > a bit clearer. > > No functional change. > > Signed-off-by: Cornelia Huck > --- > v1 -> v2: > - mov

Re: [PATCH v4 06/14] net: phy: adin: make RGMII internal delays configurable

2019-08-14 Thread Florian Fainelli
On 8/12/2019 4:23 AM, Alexandru Ardelean wrote: > The internal delays for the RGMII are configurable for both RX & TX. This > change adds support for configuring them via device-tree (or ACPI). > > Reviewed-by: Andrew Lunn > Signed-off-by: Alexandru Ardelean Reviewed-by: Florian Fainelli --

Re: [PATCH v4 07/14] net: phy: adin: make RMII fifo depth configurable

2019-08-14 Thread Florian Fainelli
On 8/12/2019 4:23 AM, Alexandru Ardelean wrote: > The FIFO depth can be configured for the RMII mode. This change adds > support for doing this via device-tree (or ACPI). > > Reviewed-by: Andrew Lunn > Signed-off-by: Alexandru Ardelean Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH 02/22] arm64: dts: qcom: sm8150-mtp: add base dts file

2019-08-14 Thread Bjorn Andersson
On Wed 14 Aug 05:49 PDT 2019, Vinod Koul wrote: > This add base DTS file for sm8150-mtp and enables > boot to console > > Signed-off-by: Vinod Koul Reviewed-by: Bjorn Andersson > --- > arch/arm64/boot/dts/qcom/Makefile | 1 + > arch/arm64/boot/dts/qcom/sm8150-mtp.dts | 28

Re: [PATCH v4 08/14] net: phy: adin: add support MDI/MDIX/Auto-MDI selection

2019-08-14 Thread Florian Fainelli
On 8/12/2019 4:23 AM, Alexandru Ardelean wrote: > The ADIN PHYs support automatic MDI/MDIX negotiation. By default this is > disabled, so this is enabled at `config_init`. > > This is controlled via the PHY Control 1 register. > The supported modes are: > 1. Manual MDI > 2. Manual MDIX >

Re: [PATCH v4 09/14] net: phy: adin: add EEE translation layer from Clause 45 to Clause 22

2019-08-14 Thread Florian Fainelli
On 8/12/2019 4:23 AM, Alexandru Ardelean wrote: > The ADIN1200 & ADIN1300 PHYs support EEE by using standard Clause 45 access > to access MMD registers for EEE. > > The EEE register addresses (when using Clause 22) are available at > different addresses (than Clause 45), and since accessing the

[PATCH 2/5] tracing: Verify if trace array exists before destroying it.

2019-08-14 Thread Divya Indi
A trace array can be destroyed from userspace or kernel. Verify if the trace exists before proceeding to destroy/remove it. Signed-off-by: Divya Indi --- kernel/trace/trace.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/kernel/trace/trace.c b/kernel/trace

[PATCH 3/5] tracing: Adding NULL checks

2019-08-14 Thread Divya Indi
As part of commit f45d1225adb0 ("tracing: Kernel access to Ftrace instances") we exported certain functions. Here, we are adding some additional NULL checks to ensure safe usage by users of these APIs. Signed-off-by: Divya Indi --- kernel/trace/trace.c| 3 +++ kernel/trace/trace_events.c

[PATCH 5/5] tracing: New functions for kernel access to Ftrace instances

2019-08-14 Thread Divya Indi
Adding 2 new functions - 1) trace_array_lookup : Look up and return a trace array, given its name. 2) trace_array_set_clr_event : Enable/disable event recording to the given trace array. NOTE: trace_array_lookup returns a trace array and also increments the reference counter associated with the re

Re: [PATCH RFC tip/core/rcu 14/14] rcu/nohz: Make multi_cpu_stop() enable tick on all online CPUs

2019-08-14 Thread Joel Fernandes
On Tue, Aug 13, 2019 at 07:48:09AM -0700, Paul E. McKenney wrote: > On Tue, Aug 13, 2019 at 02:30:19PM +0200, Frederic Weisbecker wrote: > > On Mon, Aug 12, 2019 at 04:23:16PM -0700, Paul E. McKenney wrote: > > > On Mon, Aug 12, 2019 at 11:02:33PM +0200, Frederic Weisbecker wrote: > > > > On Fri, A

[PATCH 0/5 v4]Kernel Access to Ftrace instances.

2019-08-14 Thread Divya Indi
In addition to patches introduced by commit f45d1225adb0 "tracing: Kernel access to Ftrace instances") we also need the following patches to reliably access ftrace instances from other kernel modules or components. This version addresses the review comments/suggestions received for v3. Please rev

[PATCH 1/5] tracing: Declare newly exported APIs in include/linux/trace.h

2019-08-14 Thread Divya Indi
Declare the newly introduced and exported APIs in the header file - include/linux/trace.h. Moving previous declarations from kernel/trace/trace.h to include/linux/trace.h. Signed-off-by: Divya Indi --- include/linux/trace.h | 7 +++ kernel/trace/trace.h | 4 +--- 2 files changed, 8 insertio

Re: [PATCH v4 11/14] net: phy: adin: implement Energy Detect Powerdown mode

2019-08-14 Thread Florian Fainelli
On 8/12/2019 4:23 AM, Alexandru Ardelean wrote: > The ADIN PHYs support Energy Detect Powerdown mode, which puts the PHY into > a low power mode when there is no signal on the wire (typically cable > unplugged). > This behavior is enabled by default, but can be disabled via device > property. W

[PATCH 4/5] tracing: Handle the trace array ref counter in new functions

2019-08-14 Thread Divya Indi
For functions returning a trace array Eg: trace_array_create(), we need to increment the reference counter associated with the trace array to ensure it does not get freed when in use. Once we are done using the trace array, we need to call trace_array_put() to make sure we are not holding a refere

Re: [PATCH v4 12/14] net: phy: adin: implement downshift configuration via phy-tunable

2019-08-14 Thread Florian Fainelli
On 8/12/2019 4:23 AM, Alexandru Ardelean wrote: > Down-speed auto-negotiation may not always be enabled, in which case the > PHY won't down-shift to 100 or 10 during auto-negotiation. > > This change enables downshift and configures the number of retries to > default 4 (which is also in the dat

Re: [PATCH 1/4] drivers: qcom: rpmh: fix macro to accept NULL argument

2019-08-14 Thread Stephen Boyd
Quoting Maulik Shah (2019-08-13 01:24:39) > Device argument matches with dev variable declared in RPMH message. > Compiler reports error when the argument is NULL since the argument > matches the name of the property. Rename dev argument to device to > fix this. > > Signed-off-by: Maulik Shah > -

Re: [PATCH v3 1/1] waitid: Add support for waiting for the current process group

2019-08-14 Thread Rich Felker
On Wed, Aug 14, 2019 at 10:06:19AM -0700, Linus Torvalds wrote: > On Wed, Aug 14, 2019 at 9:55 AM Rich Felker wrote: > > > > I don't think "downsides" sufficiently conveys that this is hard > > breakage of a requirement for waitpid. > > Well, let's be honest here. Who has _ever_ seen a signal han

Re: [PATCH 10/22] arm64: dts: qcom: pm8150b: Add pon and adc nodes

2019-08-14 Thread Bjorn Andersson
On Wed 14 Aug 05:50 PDT 2019, Vinod Koul wrote: > Add the pon and adc nodes found in pm8150b PMIC. > > Signed-off-by: Vinod Koul > --- > arch/arm64/boot/dts/qcom/pm8150b.dtsi | 54 +++ > 1 file changed, 54 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/pm8150b.

[PATCH] sched/fair: don't assign runtime for throttled cfs_rq

2019-08-14 Thread Liangyan
do_sched_cfs_period_timer() will refill cfs_b runtime and call distribute_cfs_runtime() to unthrottle cfs_rq, sometimes cfs_b->runtime will allocate all quota to one cfs_rq incorrectly. This will cause other cfs_rq can't get runtime and will be throttled. We find that one throttled cfs_rq has non-n

Re: [Linux-kernel-mentees][PATCH v5 1/1] sgi-gru: Remove *pte_lookup functions, Convert to get_user_page*()

2019-08-14 Thread Bharath Vedartham
On Wed, Aug 14, 2019 at 02:38:30PM -0300, Jason Gunthorpe wrote: > On Wed, Aug 14, 2019 at 11:00:34PM +0530, Bharath Vedartham wrote: > > On Tue, Aug 13, 2019 at 01:19:38PM -0500, Dimitri Sivanich wrote: > > > On Tue, Aug 13, 2019 at 10:53:01PM +0530, Bharath Vedartham wrote: > > > > On Tue, Aug 13

Re: [PATCH 3/4] dt-bindings: soc: qcom: Add RSC power domain specifier

2019-08-14 Thread Stephen Boyd
Quoting Maulik Shah (2019-08-13 01:24:41) > In addition to transmitting resource state requests to the remote > processor, the RSC is responsible for powering off/lowering the > requirements from CPUs subsystem for the associated hardware like > buses, clocks, and regulators when all CPUs and clust

Re: [PATCH V38 15/29] acpi: Ignore acpi_rsdp kernel param when the kernel has been locked down

2019-08-14 Thread Matthew Garrett
On Wed, Aug 14, 2019 at 10:46 AM Borislav Petkov wrote: > Yeah, ok, I see what you're doing there. AFAICT, you do that in > > setup_arch->acpi_boot_table_init-> ... -> acpi_os_get_root_pointer() Right. > I hope nothing needs it earlier because then we'll have to restructure > again... Passing t

[PATCH] cx82310_eth: fix a memory leak bug

2019-08-14 Thread Wenwen Wang
In cx82310_bind(), 'dev->partial_data' is allocated through kmalloc(). Then, the execution waits for the firmware to become ready. If the firmware is not ready in time, the execution is terminated. However, the allocated 'dev->partial_data' is not deallocated on this path, leading to a memory leak

Re: [PATCH v4 9/9] Input: add IOC3 serio driver

2019-08-14 Thread Dmitry Torokhov
On Wed, Aug 14, 2019 at 06:57:55PM +0200, Jonas Gorski wrote: > On Wed, 14 Aug 2019 at 16:37, Thomas Bogendoerfer > wrote: > > > > On Wed, 14 Aug 2019 15:20:14 +0200 > > Jonas Gorski wrote: > > > > > > + d = devm_kzalloc(&pdev->dev, sizeof(*d), GFP_KERNEL); > > > > > > &pdev->dev => dev >

Re: [PATCH v3 3/4] perf: Use CAP_SYSLOG with kptr_restrict checks

2019-08-14 Thread Mathieu Poirier
On Wed, 7 Aug 2019 at 08:44, Igor Lubashev wrote: > > Kernel is using CAP_SYSLOG capability instead of uid==0 and euid==0 when > checking kptr_restrict. Make perf do the same. > > Also, the kernel is a more restrictive than "no restrictions" in case of > kptr_restrict==0, so add the same logic to

Re: [RFC PATCH v2 00/19] RDMA/FS DAX truncate proposal V1,000,002 ;-)

2019-08-14 Thread Ira Weiny
On Wed, Aug 14, 2019 at 12:17:14PM +0200, Jan Kara wrote: > Hello! > > On Fri 09-08-19 15:58:14, ira.we...@intel.com wrote: > > Pre-requisites > > == > > Based on mmotm tree. > > > > Based on the feedback from LSFmm, the LWN article, the RFC series since > > then, and a ton of sce

Re: [PATCH v2 3/4] hwmon/ltc2990: Add platform_data support

2019-08-14 Thread Max Staudt
Hi Guenter, Thanks for your feedback! Reply below. On 08/13/2019 03:24 PM, Guenter Roeck wrote: > Sorry, I don't understand. Why exactly can't you replace > of_property_read_u32_array() > with device_property_read_u32_array() and use fwnode_create_software_node() > in the calling code to set th

Re: [RFC PATCH v2 16/19] RDMA/uverbs: Add back pointer to system file object

2019-08-14 Thread Jason Gunthorpe
On Wed, Aug 14, 2019 at 10:50:45AM -0700, Ira Weiny wrote: > On Wed, Aug 14, 2019 at 09:23:08AM -0300, Jason Gunthorpe wrote: > > On Tue, Aug 13, 2019 at 01:38:59PM -0700, Ira Weiny wrote: > > > On Tue, Aug 13, 2019 at 03:00:22PM -0300, Jason Gunthorpe wrote: > > > > On Tue, Aug 13, 2019 at 10:41:4

Re: [PATCH 0/4] Add RSC power domain support

2019-08-14 Thread Stephen Boyd
Quoting Maulik Shah (2019-08-13 01:24:38) > Resource State Coordinator (RSC) is responsible for powering off/lowering > the requirements from CPU subsystem for the associated hardware like buses, > clocks, and regulators when all CPUs and cluster is powered down. > > RSC power domain uses last-man

Re: [PATCH 2/4] drivers: qcom: rpmh: remove rpmh_flush export

2019-08-14 Thread Stephen Boyd
Quoting Maulik Shah (2019-08-13 01:24:40) > rpmh_flush() was exported with the idea that an external entity > operation during CPU idle would know when to flush the sleep and wake > TCS. Since, this is not the case when defining a power domain for the > RSC. Remove the function export and instead a

Re: [PATCH] Fix an OOB bug in parse_audio_mixer_unit

2019-08-14 Thread Takashi Iwai
On Wed, 14 Aug 2019 18:52:07 +0200, 彭辉 wrote: > > Hi, Takashi: > > Thanks for the guide. > The new patch is confirmed and attached. Thanks, applied now. Takashi

Re: [PATCH 1/6] arm64: unexport set_memory_x and set_memory_nx

2019-08-14 Thread Christoph Hellwig
On Wed, Aug 14, 2019 at 05:50:29PM +0100, Will Deacon wrote: > arm64 allmodconfig and defconfig are happy with this, so I'll pick it up > for 5.4 if that's ok with you? Sounds great.

Re: [PATCH 4/4] drivers: qcom: rpmh-rsc: Add RSC power domain support

2019-08-14 Thread Stephen Boyd
Quoting Maulik Shah (2019-08-13 01:24:42) > diff --git a/drivers/soc/qcom/rpmh-rsc.c b/drivers/soc/qcom/rpmh-rsc.c > index e278fc11fe5c..bd8e9f1a43b4 100644 > --- a/drivers/soc/qcom/rpmh-rsc.c > +++ b/drivers/soc/qcom/rpmh-rsc.c > @@ -498,6 +498,32 @@ static int tcs_ctrl_write(struct rsc_drv *drv,

Re: [GIT PULL] dma mapping fixes for 5.3-rc

2019-08-14 Thread pr-tracker-bot
The pull request you sent on Wed, 14 Aug 2019 16:12:17 +0200: > git://git.infradead.org/users/hch/dma-mapping.git tags/dma-mapping-5.3-4 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/e83b009c5c366b678c7986fa6c1d38fed06c954c Thank you! -- Deet-doot-dot, I am a bot.

Re: [git pull] IOMMU Fixes for Linux v5.3-rc4

2019-08-14 Thread pr-tracker-bot
The pull request you sent on Wed, 14 Aug 2019 16:09:09 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git > tags/iommu-fixes-v5.3-rc4 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/b5e33e44d994bb03c75f1901d47b1cf971f752a0 Thank you! -- Deet-doot-

Re: [PULL REQUEST] Please pull rdma.git

2019-08-14 Thread pr-tracker-bot
The pull request you sent on Wed, 14 Aug 2019 10:59:07 -0400: > git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git tags/for-linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/a8dba0531bc0ba8b65e77a4a858da4b6eeaa1b92 Thank you! -- Deet-doot-dot, I am a bot

Re: [PATCH] netfilter: nft_bitwise: Adjust parentheses to fix memcmp size argument

2019-08-14 Thread Nick Desaulniers
On Wed, Aug 14, 2019 at 9:58 AM Nathan Chancellor wrote: > > clang warns: > > net/netfilter/nft_bitwise.c:138:50: error: size argument in 'memcmp' > call is a comparison [-Werror,-Wmemsize-comparison] > if (memcmp(&priv->xor, &zero, sizeof(priv->xor) || >

Re: [PATCH v2 4/5] mm/memory_hotplug: Make sure the pfn is aligned to the order when onlining

2019-08-14 Thread Michal Hocko
On Wed 14-08-19 18:09:16, David Hildenbrand wrote: > On 14.08.19 17:41, David Hildenbrand wrote: > > Commit a9cd410a3d29 ("mm/page_alloc.c: memory hotplug: free pages as higher > > order") assumed that any PFN we get via memory resources is aligned to > > to MAX_ORDER - 1, I am not convinced that i

Re: [PATCH 1/2] riscv: Add memmove string operation.

2019-08-14 Thread Palmer Dabbelt
On Tue, 13 Aug 2019 19:22:15 PDT (-0700), Paul Walmsley wrote: On Tue, 13 Aug 2019, Palmer Dabbelt wrote: On Mon, 12 Aug 2019 08:04:46 PDT (-0700), Christoph Hellwig wrote: > On Wed, Aug 07, 2019 at 03:19:14PM +0800, Nick Hu wrote: > > There are some features which need this string operation fo

[PATCH -next] mm/kmemleak: increase the max mem pool to 1M

2019-08-14 Thread Qian Cai
There are some machines with slow disk and fast CPUs. When they are under memory pressure, it could take a long time to swap before the OOM kicks in to free up some memory. As the results, it needs a large mem pool for kmemleak or suffering from higher chance of a kmemleak metadata allocation failu

Re: [PATCH] MAINTAINERS: r8169: Update path to the driver

2019-08-14 Thread Heiner Kallweit
On 14.08.2019 14:12, Denis Efremov wrote: > Update MAINTAINERS record to reflect the filename change. > The file was moved in commit 25e992a4603c ("r8169: rename > r8169.c to r8169_main.c") > > Cc: Heiner Kallweit > Cc: nic_s...@realtek.com > Cc: David S. Miller > Cc: net...@vger.kernel.org > Si

VLAN tag stacking with bridge/tap device ?

2019-08-14 Thread Stephan von Krawczynski
Hello all, I try to do a setup with qemu and tap devices attached to bridges where 802.1Q vlan packets that are tag stacked are running through the tap device/bridge where the outer tag is stripped. But it seems on the way back out of qemu/guest and back through the tap and bridge no additional vl

Re: [PATCH 01/22] arm64: dts: qcom: sm8150: add base dts file

2019-08-14 Thread Stephen Boyd
Quoting Bjorn Andersson (2019-08-14 10:44:39) > On Wed 14 Aug 09:58 PDT 2019, Stephen Boyd wrote: > > > Quoting Vinod Koul (2019-08-14 05:49:51) > > > diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi > > > b/arch/arm64/boot/dts/qcom/sm8150.dtsi > [..] > > > + clocks { > > > +

Re: "PM / wakeup: Show wakeup sources stats in sysfs" causes boot warnings

2019-08-14 Thread Tri Vo
On Wed, Aug 14, 2019 at 1:40 AM Tony Lindgren wrote: > > * Stephen Boyd [691231 23:00]: > > I also notice that device_set_wakeup_capable() has a check to see if the > > device is registered yet and it skips creating sysfs entries for the > > device if it isn't created in sysfs yet. Why? Just so i

Re: [PATCH v5 2/6] mm/page_idle: Add support for handling swapped PG_Idle pages

2019-08-14 Thread Michal Hocko
On Wed 14-08-19 12:32:03, Joel Fernandes wrote: > On Wed, Aug 14, 2019 at 10:05:31AM +0200, Michal Hocko wrote: > > On Tue 13-08-19 11:36:59, Joel Fernandes wrote: > > > On Tue, Aug 13, 2019 at 05:04:50PM +0200, Michal Hocko wrote: > > > > On Wed 07-08-19 13:15:55, Joel Fernandes (Google) wrote: >

Re: [PATCH] MAINTAINERS: PHY LIBRARY: Update files in the record

2019-08-14 Thread Florian Fainelli
On 8/14/19 5:58 AM, Denis Efremov wrote: > Update MAINTAINERS to reflect that sysfs-bus-mdio was removed in > commit a6cd0d2d493a ("Documentation: net-sysfs: Remove duplicate > PHY device documentation") and sysfs-class-net-phydev was added in > commit 86f22d04dfb5 ("net: sysfs: Document PHY device

RE: rtc: pcf85363/pcf85263: fix error that failed to run hwclock -w

2019-08-14 Thread Leo Li
> -Original Message- > From: Biwen Li > Sent: Wednesday, August 14, 2019 4:33 AM > To: a.zu...@towertech.it; alexandre.bell...@bootlin.com; Leo Li > > Cc: linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; Biwen Li > > Subject: rtc: pcf85363/pcf85263: fix error that failed to ru

[GIT PULL] perf/core improvements and fixes

2019-08-14 Thread Arnaldo Carvalho de Melo
aster' into perf/core (2019-08-12 16:25:00 -0300) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-core-for-mingo-5.4-20190814 for you to fetch changes up to 1cd8fa288eb83c1fe0dfa492b09d228a8d802fbf: perf ui: No need to set

Re: [PATCH v4 0/4] Add device links to clocks

2019-08-14 Thread Stephen Boyd
Quoting Miquel Raynal (2019-07-27 01:53:30) > > I know this series might have side effects despite the consequent > amount of time spent to write and test it, but I also think the > clk subsystem would really benefit from such change and handling > suspend to RAM support would be greatly enhanced.

[PATCH 04/28] perf test vfs_getname: Disable ~/.perfconfig to get default output

2019-08-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To get the expected output we have to ignore whatever changes the user has in its ~/.perfconfig file, so set PERF_CONFIG to /dev/null to achieve that. Before: # egrep 'trace|show_' ~/.perfconfig [trace] show_zeros = yes show_duration = no

[PATCH 05/28] perf tools: Fix paths in include statements

2019-08-14 Thread Arnaldo Carvalho de Melo
From: Luke Mujica These paths point to the wrong location but still work because they get picked up by a -I flag that happens to direct to the correct file. Fix paths to lead to the actual file location without help from include flags. Signed-off-by: Luke Mujica Cc: Alexander Shishkin Cc: Ian

[PATCH 01/28] perf session: Avoid infinite loop when seeing invalid header.size

2019-08-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Vince reported that when fuzzing the userland perf tool with a bogus perf.data file he got into a infinite loop in 'perf report'. Changing the return of fetch_mmaped_event() to ERR_PTR(-EINVAL) for that case gets us out of that infinite loop. Reported-by: Vince We

[PATCH 07/28] perf top: Set display thread COMM to help with debugging

2019-08-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo When we want to attach just to the thread that updates the display it helps having its COMM stand out, so change it from the default "perf" to "perf-top-UI". Cc: Adrian Hunter Cc: Jiri Olsa Cc: Namhyung Kim Link: https://lkml.kernel.org/n/tip-5w0hmlk3zfvysxvpsh7

[PATCH 02/28] perf config: Honour $PERF_CONFIG env var to specify alternate .perfconfig

2019-08-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We had this comment in Documentation/perf_counter/config.c, i.e. since when we got this from the git sources, but never really did that getenv("PERF_CONFIG"), do it now as I need to disable whatever ~/.perfconfig root has so that tests parsing tool output are done f

[PATCH 03/28] perf config: Document the PERF_CONFIG environment variable

2019-08-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo There was a provision for setting this variable, but not the getenv("PERF_CONFIG") call to set it, as this was fixed in the previous cset, document that it can be used to ask for using an alternative .perfconfig file or to disable reading whatever file exists in the

[PATCH 09/28] perf trace: Fix segmentation fault when access syscall info on arm64

2019-08-14 Thread Arnaldo Carvalho de Melo
From: Leo Yan 'perf trace' reports the segmentation fault as below on Arm64: # perf trace -e string -e augmented_raw_syscalls.c LLVM: dumping tools/perf/examples/bpf/augmented_raw_syscalls.o perf: Segmentation fault Obtained 12 stack frames. perf(sighandler_dump_stack+0x47) [0xac96

[PATCH 06/28] perf vendor events intel: Add Icelake V1.00 event file

2019-08-14 Thread Arnaldo Carvalho de Melo
From: Haiyan Song Add a Intel event file for perf. Signed-off-by: Haiyan Song Reviewed-by: Kan Liang Cc: Alexander Shishkin Cc: Andi Kleen Cc: Jin Yao Cc: Jiri Olsa Cc: Peter Zijlstra Link: https://lkml.kernel.org/r/8859095e-5b02-d6b7-fbdc-3f42b714b...@intel.com Signed-off-by: Arnaldo Car

[PATCH 10/28] perf hist: Remove dummy entries when finding real ones.

2019-08-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo When he have an event group we have multiple struct hist instances, one per evsel, and in each of these hists we may have hist_entries that point to the same thing being observed, say a symbol, i.e. if we're looking at instructions and cycles, then we'll have one hi

[PATCH 08/28] perf hists: Do not link a pair if already linked

2019-08-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo When we have multiple events in a group we link hist_entries in the non-leader evsel hists to the one in the leader that points to the same sorting criteria, in hists__match(). For 'perf report' we do this just once and then print the results, but for 'perf top' we

[PATCH 12/28] tools build: Add capability-related feature detection

2019-08-14 Thread Arnaldo Carvalho de Melo
From: Igor Lubashev Add utilities to help checking capabilities of the running procss. Make perf link with libcap, if it is available. If no libcap-dev[el], assume no capabilities. Committer testing: $ make O=/tmp/build/perf -C tools/perf install-bin make: Entering directory '/home/acme/gi

Re: [PATCH 2/5] tracing: Verify if trace array exists before destroying it.

2019-08-14 Thread Aruna Ramakrishna
On 08/14/2019 10:55 AM, Divya Indi wrote: A trace array can be destroyed from userspace or kernel. Verify if the trace exists before proceeding to destroy/remove it. ^^ s/trace/trace array/ As you pointed out yourself. :) All the patches look good to me. For this patchset: Reviewed-by: A

[PATCH 11/28] perf top: Collapse and resort all evsels in a group

2019-08-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo And link them, i.e. find the hist entries in the non-leader events and link them to the ones in the leader. This should be the same thing already done for the 'perf report' case, but now we do it periodically. With this in place we get percentages in from the seco

[PATCH 13/28] perf tools: Add helpers to use capabilities if present

2019-08-14 Thread Arnaldo Carvalho de Melo
From: Igor Lubashev Add utilities to help checking capabilities of the running procss. Make perf link with libcap, if it is available. If no libcap-dev[el], fallback to the geteuid() == 0 test used before. Committer notes: $ perf test python 18: 'import perf' in python

[PATCH 15/28] perf tools: Add CAP_SYSLOG define for older systems

2019-08-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Some of the systems I test don't have that define, provide it conditionally since we'll use it in the kptr_restrict checks in the next patch. Cc: Alexander Shishkin Cc: Alexey Budankov Cc: Igor Lubashev Cc: James Morris Cc: Jiri Olsa Cc: Mathieu Poirier Cc: N

[PATCH 17/28] perf ftrace: Improve error message about capability to use ftrace

2019-08-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo If we link against libcap, then we can state that CAP_SYS_ADMIN is needed, if not, fallback to telling the user it needs to be root, as was before linking against libcap. Cc: Adrian Hunter Cc: Alexander Shishkin Cc: Alexey Budankov Cc: Igor Lubashev Cc: James M

[PATCH 16/28] perf ftrace: Use CAP_SYS_ADMIN instead of euid==0

2019-08-14 Thread Arnaldo Carvalho de Melo
From: Igor Lubashev The kernel requires CAP_SYS_ADMIN instead of euid==0 to mount debugfs for ftrace. Make perf do the same. Signed-off-by: Igor Lubashev Acked-by: Jiri Olsa Cc: Alexander Shishkin Cc: Alexey Budankov Cc: James Morris Cc: Mathieu Poirier Cc: Namhyung Kim Cc: Peter Zijlstr

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