Re: [GIT PULL] compiler-attributes for v5.3-rc8

2019-09-08 Thread pr-tracker-bot
The pull request you sent on Sun, 8 Sep 2019 15:19:02 +0200: > https://github.com/ojeda/linux.git tags/clang-format-for-linus-v5.3-rc8 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/983f700eab89c73562f308fc49b1561377d3920e Thank you! -- Deet-doot-dot, I am a bot.

Re: general protection fault in qdisc_put

2019-09-08 Thread Linus Torvalds
On Sat, Sep 7, 2019 at 11:08 PM syzbot wrote: > > The bug was bisected to: > > commit e41d58185f1444368873d4d7422f7664a68be61d > Author: Dmitry Vyukov > Date: Wed Jul 12 21:34:35 2017 + > > fault-inject: support systematic fault injection That commit does seem a bit questionable, but

Re: [PATCH v6 1/4] ftrace: Implement fs notification for tracing_max_latency

2019-09-08 Thread Viktor Rosendahl
On 9/8/19 1:38 AM, Joel Fernandes wrote:> On Sat, Sep 07, 2019 at 11:12:59PM +0200, Viktor Rosendahl wrote: >> On 9/6/19 4:17 PM, Joel Fernandes wrote: >>> On Thu, Sep 05, 2019 at 03:25:45PM +0200, Viktor Rosendahl wrote: >> + +__init static int latency_fsnotify_init(void) +{

Re: [PATCH 4.14 00/40] 4.14.143-stable review

2019-09-08 Thread kernelci.org bot
stable-rc/linux-4.14.y boot: 80 boots: 0 failed, 80 passed (v4.14.142-40-g6b6c4e3151f3) Full Boot Summary: https://kernelci.org/boot/all/job/stable-rc/branch/linux-4.14.y/kernel/v4.14.142-40-g6b6c4e3151f3/ Full Build Summary:

[PATCH V6 5/5] iommu/amd: Convert AMD iommu driver to the dma-iommu api

2019-09-08 Thread Tom Murphy
Convert the AMD iommu driver to the dma-iommu api. Remove the iova handling and reserve region code from the AMD iommu driver. Signed-off-by: Tom Murphy --- drivers/iommu/Kconfig | 1 + drivers/iommu/amd_iommu.c | 677 -- 2 files changed, 68

[PATCH V6 2/5] iommu: Add gfp parameter to iommu_ops::map

2019-09-08 Thread Tom Murphy
Add a gfp_t parameter to the iommu_ops::map function. Remove the needless locking in the AMD iommu driver. The iommu_ops::map function (or the iommu_map function which calls it) was always supposed to be sleepable (according to Joerg's comment in this thread:

[PATCH v6 0/5] iommu/amd: Convert the AMD iommu driver to the dma-iommu api

2019-09-08 Thread Tom Murphy
Convert the AMD iommu driver to the dma-iommu api. Remove the iova handling and reserve region code from the AMD iommu driver. Change-log: V6: -add more details to the description of patch 001-iommu-amd-Remove-unnecessary-locking-from-AMD-iommu-.patch -rename handle_deferred_device to

[PATCH V6 3/5] iommu/dma-iommu: Handle deferred devices

2019-09-08 Thread Tom Murphy
Handle devices which defer their attach to the iommu in the dma-iommu api Signed-off-by: Tom Murphy Reviewed-by: Robin Murphy --- drivers/iommu/dma-iommu.c | 27 ++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/drivers/iommu/dma-iommu.c

[PATCH V6 1/5] iommu/amd: Remove unnecessary locking from AMD iommu driver

2019-09-08 Thread Tom Murphy
With or without locking it doesn't make sense for two writers to be writing to the same IOVA range at the same time. Even with locking we still have a race condition, whoever gets the lock first, so we still can't be sure what the result will be. With locking the result will be more sane, it will

[PATCH V6 4/5] iommu/dma-iommu: Use the dev->coherent_dma_mask

2019-09-08 Thread Tom Murphy
Use the dev->coherent_dma_mask when allocating in the dma-iommu ops api. Signed-off-by: Tom Murphy Reviewed-by: Robin Murphy Reviewed-by: Christoph Hellwig --- drivers/iommu/dma-iommu.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/iommu/dma-iommu.c

Re: Regression in 5.1.20: Reading long directory fails

2019-09-08 Thread Chuck Lever
> On Sep 8, 2019, at 12:47 PM, Trond Myklebust wrote: > > On Sun, 2019-09-08 at 11:48 -0400, Chuck Lever wrote: >>> On Sep 8, 2019, at 11:19 AM, Trond Myklebust < >>> tron...@hammerspace.com> wrote: >>> >>> On Sun, 2019-09-08 at 07:39 -0400, Benjamin Coddington wrote: On 6 Sep 2019, at

Re: [PATCH v2 3/3] staging: exfat: add millisecond support

2019-09-08 Thread Valentin Vidić
On Sun, Sep 08, 2019 at 05:40:40PM +0100, Greg Kroah-Hartman wrote: > On Sun, Sep 08, 2019 at 04:10:15PM +, Valentin Vidic wrote: > > void fat_set_entry_time(struct dentry_t *p_entry, struct timestamp_t *tp, > > u8 mode) > > { > > + u8 ms; > > u16 t, d; > >

Re: [RFC PATCH 4/4] Fix: sched/membarrier: p->mm->membarrier_state racy load (v2)

2019-09-08 Thread Linus Torvalds
On Sun, Sep 8, 2019 at 6:49 AM Mathieu Desnoyers wrote: > > +static void sync_runqueues_membarrier_state(struct mm_struct *mm) > +{ > + int membarrier_state = atomic_read(>membarrier_state); > + bool fallback = false; > + cpumask_var_t tmpmask; > + > + if

Re: Regression in 5.1.20: Reading long directory fails

2019-09-08 Thread Trond Myklebust
On Sun, 2019-09-08 at 11:48 -0400, Chuck Lever wrote: > > On Sep 8, 2019, at 11:19 AM, Trond Myklebust < > > tron...@hammerspace.com> wrote: > > > > On Sun, 2019-09-08 at 07:39 -0400, Benjamin Coddington wrote: > > > On 6 Sep 2019, at 16:50, Chuck Lever wrote: > > > > > > > > On Sep 6, 2019, at

Re: [PATCH v2 1/3] staging: exfat: drop duplicate date_time_t struct

2019-09-08 Thread Greg Kroah-Hartman
On Sun, Sep 08, 2019 at 04:10:13PM +, Valentin Vidic wrote: > Use timestamp_t for everything and cleanup duplicate code. You dropped function parameters in here, which you did not describe in this changelog text :( Please only try to do "one logical thing" per patch to make it easier to

Re: [PATCH] staging: exfat: add millisecond support

2019-09-08 Thread Greg Kroah-Hartman
On Sun, Sep 08, 2019 at 02:47:35PM +, Valentin Vidić wrote: > On Sun, Sep 08, 2019 at 02:03:37PM +0100, Greg Kroah-Hartman wrote: > > Please run checkpatch on your patches so that we don't have to go and > > fix up those issues later on. > > Strange, it did not report anything for me: > >

Re: [PATCH v2 2/3] staging: exfat: drop unused field access_time_ms

2019-09-08 Thread Greg Kroah-Hartman
On Sun, Sep 08, 2019 at 04:10:14PM +, Valentin Vidic wrote: > Not used in the exfat-fuse implementation and spec defines > this position should hold the value for CreateUtcOffset. Then why not just put CreateUtcOffset in here instaed of deleting it? I would much rather the fields match the

Re: [PATCH v2 3/3] staging: exfat: add millisecond support

2019-09-08 Thread Greg Kroah-Hartman
On Sun, Sep 08, 2019 at 04:10:15PM +, Valentin Vidic wrote: > Use create_time_ms modify_time_ms fields to store the millisecond > part of the file timestamp with the precision of 10 ms. > > Signed-off-by: Valentin Vidic > --- > drivers/staging/exfat/exfat_core.c | 30

Re: [PATCH 4.4 00/23] 4.4.192-stable review

2019-09-08 Thread kernelci.org bot
stable-rc/linux-4.4.y boot: 106 boots: 3 failed, 93 passed with 8 offline, 2 conflicts (v4.4.191-24-g6128caa0e308) Full Boot Summary: https://kernelci.org/boot/all/job/stable-rc/branch/linux-4.4.y/kernel/v4.4.191-24-g6128caa0e308/ Full Build Summary:

Re: [PATCH 4.9 00/26] 4.9.192-stable review

2019-09-08 Thread kernelci.org bot
stable-rc/linux-4.9.y boot: 117 boots: 0 failed, 108 passed with 9 offline (v4.9.191-27-g9f048861) Full Boot Summary: https://kernelci.org/boot/all/job/stable-rc/branch/linux-4.9.y/kernel/v4.9.191-27-g9f048861/ Full Build Summary:

RE: [PATCH v5 0/9] Enhance the hv_vmbus driver to support hibernation

2019-09-08 Thread Dexuan Cui
> From: Sasha Levin > Sent: Sunday, September 8, 2019 5:13 AM > On Fri, Sep 06, 2019 at 10:45:31PM +, Dexuan Cui wrote: > >> From: Sasha Levin > >> Sent: Friday, September 6, 2019 1:03 PM > >> On Thu, Sep 05, 2019 at 11:01:14PM +, Dexuan Cui wrote: > >> >This patchset (consisting of 9

Re: [FYI] lm3532: right registration to work with LED-backlight

2019-09-08 Thread Jacek Anaszewski
On 9/8/19 10:03 AM, Pavel Machek wrote: > On Wed 2019-08-28 22:32:57, Jacek Anaszewski wrote: >> On 8/28/19 10:53 AM, Pavel Machek wrote: >>> Hi! >>> >>> Eventually, these will be needed. >>> >>> Best regards, >>> Pavel >>> >>> commit

[PATCH v2 3/3] staging: exfat: add millisecond support

2019-09-08 Thread Valentin Vidic
Use create_time_ms modify_time_ms fields to store the millisecond part of the file timestamp with the precision of 10 ms. Signed-off-by: Valentin Vidic --- drivers/staging/exfat/exfat_core.c | 30 ++ 1 file changed, 30 insertions(+) diff --git

[PATCH v2 2/3] staging: exfat: drop unused field access_time_ms

2019-09-08 Thread Valentin Vidic
Not used in the exfat-fuse implementation and spec defines this position should hold the value for CreateUtcOffset. Signed-off-by: Valentin Vidic --- drivers/staging/exfat/exfat.h | 3 +-- drivers/staging/exfat/exfat_core.c | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git

[PATCH v2 1/3] staging: exfat: drop duplicate date_time_t struct

2019-09-08 Thread Valentin Vidic
Use timestamp_t for everything and cleanup duplicate code. Signed-off-by: Valentin Vidic --- v2: split up into multiple patches drivers/staging/exfat/exfat.h | 35 +++--- drivers/staging/exfat/exfat_super.c | 174 2 files changed, 61 insertions(+), 148

Re: Regression in 5.1.20: Reading long directory fails

2019-09-08 Thread Chuck Lever
> On Sep 8, 2019, at 11:19 AM, Trond Myklebust wrote: > > On Sun, 2019-09-08 at 07:39 -0400, Benjamin Coddington wrote: >> On 6 Sep 2019, at 16:50, Chuck Lever wrote: >> On Sep 6, 2019, at 4:47 PM, Jason L Tibbitts III < ti...@math.uh.edu> wrote: > "JBF" == J

Compliment of the day,

2019-09-08 Thread Mr Philip
Compliment of the day, I am Mr.Philip.Kabore I Have a Business Proposal of $5.3 million For You. I am aware of the unsafe nature of the internet, and was compelled to use this medium due to the nature of this project. I have access to very vital information that can be used to transfer this huge

[RFC 2/2] dt-bindings: power: Convert Samsung Exynos Power Domain bindings to json-schema

2019-09-08 Thread Krzysztof Kozlowski
Convert Samsung Exynos Soc Power Domain bindings to DT schema format using json-schema. Signed-off-by: Krzysztof Kozlowski --- .../devicetree/bindings/power/pd-samsung.txt | 45 .../devicetree/bindings/power/pd-samsung.yaml | 70 +++ 2 files changed, 70

[RFC 1/2] dt-bindings: power: Convert Generic Power Domain bindings to json-schema

2019-09-08 Thread Krzysztof Kozlowski
Convert Generic Power Domain bindings to DT schema format using json-schema. The consumer bindings are split to separate file. Signed-off-by: Krzysztof Kozlowski --- TODO: 1. How the consumer bindings should match nodes? 2. Somehow the example complains:

[PATCH v3 1/3] staging: exfat: cleanup spacing for operators

2019-09-08 Thread Valentin Vidic
Fixes checkpatch.pl warnings: CHECK: spaces preferred around that '-' (ctx:VxV) CHECK: spaces preferred around that '+' (ctx:VxV) CHECK: spaces preferred around that '*' (ctx:VxV) CHECK: spaces preferred around that '|' (ctx:VxV) Signed-off-by: Valentin Vidic --- v2: Use constants where

[PATCH v3 2/3] staging: exfat: cleanup spacing for casts

2019-09-08 Thread Valentin Vidic
Fix checkpatch.pl warnings: CHECK: No space is necessary after a cast Signed-off-by: Valentin Vidic --- v2: Use constants where possible v3: Split up changes of constants drivers/staging/exfat/exfat_core.c | 88 ++--- drivers/staging/exfat/exfat_super.c | 66

[PATCH v3 3/3] staging: exfat: use integer constants

2019-09-08 Thread Valentin Vidic
Replace manually generated values with predefined constants. Signed-off-by: Valentin Vidic --- v2: Use constants where possible v3: Split up changes of constants drivers/staging/exfat/exfat_core.c | 18 +- drivers/staging/exfat/exfat_super.c | 8 2 files changed, 13

Re: Regression in 5.1.20: Reading long directory fails

2019-09-08 Thread Trond Myklebust
On Sun, 2019-09-08 at 07:39 -0400, Benjamin Coddington wrote: > On 6 Sep 2019, at 16:50, Chuck Lever wrote: > > > > On Sep 6, 2019, at 4:47 PM, Jason L Tibbitts III < > > > ti...@math.uh.edu> > > > wrote: > > > > > > > > > > > "JBF" == J Bruce Fields writes: > > > > > > JBF> Those readdir

Re: [PATCH] staging: exfat: add millisecond support

2019-09-08 Thread Valentin Vidić
On Sun, Sep 08, 2019 at 02:03:37PM +0100, Greg Kroah-Hartman wrote: > Please run checkpatch on your patches so that we don't have to go and > fix up those issues later on. Strange, it did not report anything for me: total: 0 errors, 0 warnings, 0 checks, 439 lines checked

Re: [PATCH 2/2] tools/power/x86/intel-speed-select: Display core count for bucket

2019-09-08 Thread Srinivas Pandruvada
On Sat, 2019-09-07 at 21:18 +0300, Andy Shevchenko wrote: > On Fri, Sep 6, 2019 at 10:47 PM Srinivas Pandruvada > wrote: > > > > On Fri, 2019-09-06 at 07:50 -0700, Srinivas Pandruvada wrote: > > > On Fri, 2019-09-06 at 16:46 +0300, Andy Shevchenko wrote: > > > > On Fri, Sep 06, 2019 at

[UPDATE][PATCH 2/2] tools/power/x86/intel-speed-select: Display core count for bucket

2019-09-08 Thread Srinivas Pandruvada
Read the bucket and core count relationship via MSR and display when displaying turbo ratio limits. Signed-off-by: Srinivas Pandruvada --- Change: Rebased on top of git://git.infradead.org/linux-platform-drivers-x86.git remotes/origin/review-andy .../power/x86/intel-speed-select/isst-core.c

[PATCH] cgroup: use kv(malloc|free) instead of pidlist_(allocate|free)

2019-09-08 Thread Ivan Safonov
Resolve TODO: > The following two functions "fix" the issue where there are more pids > than kmalloc will give memory for; in such cases, we use vmalloc/vfree. > TODO: replace with a kernel-wide solution to this problem kv(malloc|free) is appropriate replacement for pidlist_(allocate|free).

Re: [PATCH v2 06/14] dmaengine: ti: Add cppi5 header for UDMA

2019-09-08 Thread Vinod Koul
On 30-07-19, 12:34, Peter Ujfalusi wrote: > +/** > + * Descriptor header, present in all types of descriptors > + */ > +struct cppi5_desc_hdr_t { > + u32 pkt_info0; /* Packet info word 0 (n/a in Buffer desc) */ > + u32 pkt_info1; /* Packet info word 1 (n/a in Buffer desc) */ > + u32

Re: [PATCH v2 04/14] dmaengine: Add metadata_ops for dma_async_tx_descriptor

2019-09-08 Thread Vinod Koul
On 30-07-19, 12:34, Peter Ujfalusi wrote: > The metadata is best described as side band data or parameters traveling > alongside the data DMAd by the DMA engine. It is data > which is understood by the peripheral and the peripheral driver only, the > DMA engine see it only as data block and it is

Re: [PATCH 2/2] tools/power/x86/intel-speed-select: Display core count for bucket

2019-09-08 Thread Srinivas Pandruvada
On Sun, 2019-09-08 at 05:46 -0400, Prarit Bhargava wrote: > > On 9/7/19 2:18 PM, Andy Shevchenko wrote: > > On Fri, Sep 6, 2019 at 10:47 PM Srinivas Pandruvada > > wrote: > > > > > > On Fri, 2019-09-06 at 07:50 -0700, Srinivas Pandruvada wrote: > > > > On Fri, 2019-09-06 at 16:46 +0300, Andy

Re: Kernel panic during drm/nouveau init 5.3.0-rc7-next-20190903

2019-09-08 Thread Alexander Kapshuk
On Sat, Sep 07, 2019 at 12:32:41PM +0200, Daniel Vetter wrote: > On Sat, Sep 7, 2019 at 11:05 AM Alexander Kapshuk > wrote: > > > > To Whom It May Concern > > > > Every kernel I have built since 5.3.0-rc2-next-20190730 and up to > > 5.3.0-rc7-next-20190903 has resulted in the kernel panic

Re: [PATCH] z3fold: fix retry mechanism in page reclaim

2019-09-08 Thread Maciej S. Szmigiero
On 08.09.2019 15:29, Vitaly Wool wrote: > z3fold_page_reclaim()'s retry mechanism is broken: on a second > iteration it will have zhdr from the first one so that zhdr > is no longer in line with struct page. That leads to crashes when > the system is stressed. > > Fix that by moving zhdr

Re: [PATCH] iio: light: bh1750: Move static keyword to the front of declaration

2019-09-08 Thread Krzysztof Wilczynski
Hello Jonathan, Thank you for feedback. [...] > > drivers/iio/light/bh1750.c:64:1: warning: > > ‘static’ is not at beginning of declaration [-Wold-style-declaration] [...] > This one has me confused. The warning seems to be false as static > is at the beginning of the declaration > >

Re: [PATCH 1/3] iio: adc: hx711: optimize sampling of data

2019-09-08 Thread Jonathan Cameron
On Sat, 7 Sep 2019 12:18:00 +0200 Andreas Klinger wrote: > Fix bug in sampling function hx711_cycle() when interrupt occures while > PD_SCK is high. If PD_SCK is high for at least 60 us power down mode of > the sensor is entered which in turn leads to a wrong measurement. > > Move query of DOUT

[RFC PATCH 4/4] Fix: sched/membarrier: p->mm->membarrier_state racy load (v2)

2019-09-08 Thread Mathieu Desnoyers
The membarrier_state field is located within the mm_struct, which is not guaranteed to exist when used from runqueue-lock-free iteration on runqueues by the membarrier system call. Copy the membarrier_state from the mm_struct into the scheduler runqueue when the scheduler switches between mm.

[PATCH] dt-bindings: anybus-controller: move to staging/ tree

2019-09-08 Thread thesven73
From: Sven Van Asbroeck The devicetree bindings for anybus-controller were mistakenly merged into the main Linux tree. Its driver resides in staging/, so the bindings belong in staging/ too. Cc: Greg Kroah-Hartman Fixes: 20a980e957bf ("dt-bindings: anybus-controller: document devicetree

Re: [RFC PATCH 1/2] Fix: sched/membarrier: p->mm->membarrier_state racy load

2019-09-08 Thread Mathieu Desnoyers
- On Sep 4, 2019, at 12:11 PM, Oleg Nesterov o...@redhat.com wrote: > with or without these changes... > > Why do membarrier_register_*_expedited() check get_nr_threads() == 1? > This makes no sense to me, atomic_read(mm_users) == 1 should be enough. > > > And I am not sure I understand

[PATCH 2/6] PCI: amlogic: Fix probed clock names

2019-09-08 Thread Neil Armstrong
Fix the clock names used in the probe function according to the bindings. Fixes: 9c0ef6d34fdb ("PCI: amlogic: Add the Amlogic Meson PCIe controller driver") Signed-off-by: Neil Armstrong --- drivers/pci/controller/dwc/pci-meson.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)

[PATCH 5/6] arm64: dts: meson-g12a: Add PCIe node

2019-09-08 Thread Neil Armstrong
This adds the Amlogic G12A PCI Express controller node, also using the USB3+PCIe Combo PHY. The PHY mode selection is static, thus the USB3+PCIe Combo PHY phandle would need to be removed from the USB control node if the shared differentil lines are used for PCIe instead of USB3. Signed-off-by:

[PATCH 6/6] arm64: dts: khadas-vim3: add commented support for PCIe

2019-09-08 Thread Neil Armstrong
The VIM3 on-board MCU can mux the PCIe/USB3.0 shared differential lines using a FUSB340TMX USB 3.1 SuperSpeed Data Switch between an USB3.0 Type A connector and a M.2 Key M slot. The PHY driving these differential lines is shared between the USB3.0 controller and the PCIe Controller, thus only a

[PATCH 3/6] PCI: amlogic: meson: Add support for G12A

2019-09-08 Thread Neil Armstrong
Add support for the Amlogic G12A SoC using a separate shared PHY. This adds support for fetching a PHY phandle and call the PHY init, reset and power on/off calls instead of writing in the PHY register or toggling the PHY reset line. The MIPI clock is also made optional since it is used for

[PATCH 4/6] phy: meson-g12a-usb3-pcie: Add support for PCIe mode

2019-09-08 Thread Neil Armstrong
This adds extended PCIe PHY functions for the Amlogic G12A USB3+PCIE Combo PHY to support reset, power_on and power_off for PCIe exclusively. With these callbacks, we can handle all the needed operations of the Amlogic PCIe controller driver. Signed-off-by: Neil Armstrong ---

[PATCH 0/6] arm64: dts: meson-g12: add support for PCIe

2019-09-08 Thread Neil Armstrong
This patchset : - updates the Amlogic PCI bindings for G12A - reworks the Amlogic PCIe driver to make use of the G12a USB3+PCIe Combo PHY instead of directly writing in the PHY register - adds the necessary operations to the G12a USB3+PCIe Combo PHY driver - adds the PCIe Node for G12A, G12B and

[PATCH 1/6] dt-bindings: pci: amlogic,meson-pcie: Add G12A bindings

2019-09-08 Thread Neil Armstrong
Add PCIE bindings for the Amlogic G12A SoC, the support is the same but the PHY is shared with USB3 to control the differential lines. Thus this adds a phy phandle to control the PHY, and sets invalid MIPI clock as optional for G12A. Signed-off-by: Neil Armstrong ---

Re: [PATCH v2 6/6] ASoC: atmel_ssc_dai: Enable shared FSYNC source in frame-slave mode

2019-09-08 Thread mirq-linux
On Mon, Aug 26, 2019 at 03:05:06PM +, codrin.ciubota...@microchip.com wrote: > On 24.08.2019 23:26, Michał Mirosław wrote: > > SSC driver allows only synchronous TX and RX. In slave mode for BCLK > > it uses only one of TK or RK pin, but for LRCLK it configured separate > > inputs from TF and

Re: [PATCH v2 0/5] ARM: make DaVinci part of the ARM v5 multiplatform build

2019-09-08 Thread Bartosz Golaszewski
sob., 7 wrz 2019 o 10:21 Arnd Bergmann napisał(a): > > On Wed, Aug 28, 2019 at 9:55 AM Bartosz Golaszewski > wrote: > > śr., 28 sie 2019 o 09:44 Sekhar Nori napisał(a): > > > > Actually I tested this without the clocksource conversion and it works > > - the previous driver still selects

[PATCH] z3fold: fix retry mechanism in page reclaim

2019-09-08 Thread Vitaly Wool
z3fold_page_reclaim()'s retry mechanism is broken: on a second iteration it will have zhdr from the first one so that zhdr is no longer in line with struct page. That leads to crashes when the system is stressed. Fix that by moving zhdr assignment up. While at it, protect against using already

Re: [PATCH 2/9] perf/core: Add PERF_SAMPLE_CGROUP feature

2019-09-08 Thread Namhyung Kim
Hi Tejun, On Thu, Sep 05, 2019 at 09:56:55AM -0700, Tejun Heo wrote: > Hello, Namhyung. > > On Tue, Sep 03, 2019 at 10:13:08AM +0800, Namhyung Kim wrote: > > So is my understanding below correct? > > > > * currently kernfs ino+gen is different than inode's ino+gen > > They're the same. It's

Re: [GIT PULL] compiler-attributes for v5.3-rc8

2019-09-08 Thread Miguel Ojeda
On Sun, Sep 8, 2019 at 3:19 PM Miguel Ojeda wrote: > > https://github.com/ojeda/linux.git tags/clang-format-for-linus-v5.3-rc8 Typo in the tag name, you can also use the tag: https://github.com/ojeda/linux.git tags/compiler-attributes-for-linus-v5.3-rc8 Cheers, Miguel

Re: [PATCH 4/5] leds: add /sys/class/triggers/ that contains trigger sub-directories

2019-09-08 Thread Greg Kroah-Hartman
On Sun, Sep 08, 2019 at 09:41:11PM +0900, Akinobu Mita wrote: > Reading /sys/class/leds//trigger returns all available LED triggers. > However, this violates the "one value per file" rule of sysfs. > > This provides /sys/class/leds/triggers directory that contains a number of > sub-directories,

[GIT PULL] compiler-attributes for v5.3-rc8

2019-09-08 Thread Miguel Ojeda
Hi Linus, Here it is the Oops-fixing cherry-picked commit for -rc8 from the __section cleanup series. Cheers, Miguel The following changes since commit 089cf7f6ecb266b6a4164919a2e69bd2f938374a: Linux 5.3-rc7 (2019-09-02 09:57:40 -0700) are available in the Git repository at:

Re: [PATCH 1/5] leds: remove PAGE_SIZE limit of /sys/class/leds//trigger

2019-09-08 Thread Greg Kroah-Hartman
On Sun, Sep 08, 2019 at 09:41:08PM +0900, Akinobu Mita wrote: > Reading /sys/class/leds//trigger returns all available LED triggers. > However, the size of this file is limited to PAGE_SIZE because of the > limitation for sysfs attribute. > > Enabling LED CPU trigger on systems with thousands of

Re: [PATCH 3/5] driver core: class: add function to create /sys/class//foo directory

2019-09-08 Thread Greg Kroah-Hartman
On Sun, Sep 08, 2019 at 09:41:10PM +0900, Akinobu Mita wrote: > This adds a new function class_kobject_create_and_add() that creates a > directory in the /sys/class/. > > This function is required to create the /sys/class/leds/triggers directory > that contains all available LED triggers. I

Re: [PATCH 1/5] leds: remove PAGE_SIZE limit of /sys/class/leds//trigger

2019-09-08 Thread Greg Kroah-Hartman
On Sun, Sep 08, 2019 at 09:41:08PM +0900, Akinobu Mita wrote: > Reading /sys/class/leds//trigger returns all available LED triggers. > However, the size of this file is limited to PAGE_SIZE because of the > limitation for sysfs attribute. > > Enabling LED CPU trigger on systems with thousands of

Re: [PATCH 5/5] leds: add /sys/class/leds//current-trigger

2019-09-08 Thread Greg Kroah-Hartman
On Sun, Sep 08, 2019 at 09:41:12PM +0900, Akinobu Mita wrote: > Reading /sys/class/leds//trigger returns all available LED triggers. > However, this violates the "one value per file" rule of sysfs. > > This provides /sys/class/leds//current-trigger which is almost > identical to

Re: [PATCH 3/5] driver core: class: add function to create /sys/class//foo directory

2019-09-08 Thread Greg Kroah-Hartman
On Sun, Sep 08, 2019 at 09:41:10PM +0900, Akinobu Mita wrote: > This adds a new function class_kobject_create_and_add() that creates a > directory in the /sys/class/. > > This function is required to create the /sys/class/leds/triggers directory > that contains all available LED triggers. > >

Re: [PATCH 2/5] leds: make sure leds_class is initialized before triggers are registered

2019-09-08 Thread Greg Kroah-Hartman
On Sun, Sep 08, 2019 at 09:41:09PM +0900, Akinobu Mita wrote: > If the led-class and usb-common modules are built into the kernel, the > usb-common module could be initialized earlier than the led-class module. > > So when the ledtrig_usb_gadget and ledtrig_usb_host LED triggers are > registered

Re: [PATCH] staging: exfat: make use of kmemdup

2019-09-08 Thread Greg Kroah-Hartman
On Sun, Sep 08, 2019 at 02:58:41PM +0530, haripra...@osuosl.org wrote: > From: Hariprasad Kelam > > fix below issue reported by coccicheck > drivers/staging//exfat/exfat_super.c:2709:26-33: WARNING opportunity for > kmemdup > > Signed-off-by: Hariprasad Kelam > --- >

Re: [PATCH 2/2 v2] staging: exfat: cleanup casts

2019-09-08 Thread Greg Kroah-Hartman
On Sat, Sep 07, 2019 at 09:45:41PM +, Valentin Vidic wrote: > Use constants and fix checkpatch.pl warnings: > > CHECK: No space is necessary after a cast This really should be two different patches, one for the constant changes, and one for the space issues. Can you break this up and

Re: [PATCH] staging: exfat: add millisecond support

2019-09-08 Thread Greg Kroah-Hartman
On Sun, Sep 08, 2019 at 12:48:08PM +, Valentin Vidic wrote: > Drop duplicated date_time_t struct and add millisecond handling for > create and modify time. Also drop millisecond field for access time > since it is not defined in the the spec. > > Signed-off-by: Valentin Vidic > --- >

[PATCH 4.4 03/23] Bluetooth: btqca: Add a short delay before downloading the NVM

2019-09-08 Thread Greg Kroah-Hartman
[ Upstream commit 8059ba0bd0e4694e51c2ee6438a77b325f06c0d5 ] On WCN3990 downloading the NVM sometimes fails with a "TLV response size mismatch" error: [ 174.949955] Bluetooth: btqca.c:qca_download_firmware() hci0: QCA Downloading qca/crnv21.bin [ 174.958718] Bluetooth:

[PATCH 4.4 20/23] spi: bcm2835aux: fix corruptions for longer spi transfers

2019-09-08 Thread Greg Kroah-Hartman
[ Upstream commit 73b114ee7db1750c0b535199fae383b109bd61d0 ] On long running tests with a mcp2517fd can controller it showed that on rare occations the data read shows corruptions for longer spi transfers. Example of a 22 byte transfer: expected (as captured on logic analyzer): FF FF 78 00 00

[PATCH 4.4 22/23] net: fix skb use after free in netpoll

2019-09-08 Thread Greg Kroah-Hartman
From: Feng Sun [ Upstream commit 2c1644cf6d46a8267d79ed95cb9b563839346562 ] After commit baeababb5b85d5c4e6c917efe2a1504179438d3b ("tun: return NET_XMIT_DROP for dropped packets"), when tun_net_xmit drop packets, it will free skb and return NET_XMIT_DROP, netpoll_send_skb_on_dev will run into

[PATCH 4.4 09/23] net: kalmia: fix memory leaks

2019-09-08 Thread Greg Kroah-Hartman
[ Upstream commit f1472cb09f11ddb41d4be84f0650835cb65a9073 ] In kalmia_init_and_get_ethernet_addr(), 'usb_buf' is allocated through kmalloc(). In the following execution, if the 'status' returned by kalmia_send_init_packet() is not 0, 'usb_buf' is not deallocated, leading to memory leaks. To fix

[PATCH 4.4 00/23] 4.4.192-stable review

2019-09-08 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.4.192 release. There are 23 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Tue 10 Sep 2019 12:09:36 PM UTC. Anything

[PATCH 4.4 18/23] spi: bcm2835aux: unifying code between polling and interrupt driven code

2019-09-08 Thread Greg Kroah-Hartman
[ Upstream commit 7188a6f0eee3f1fae5d826cfc6d569657ff950ec ] Sharing more code between polling and interrupt-driven mode. Signed-off-by: Martin Sperl Acked-by: Stefan Wahren Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- drivers/spi/spi-bcm2835aux.c | 51

[PATCH 4.4 19/23] spi: bcm2835aux: remove dangerous uncontrolled read of fifo

2019-09-08 Thread Greg Kroah-Hartman
[ Upstream commit c7de8500fd8ecbb544846dd5f11dca578c3777e1 ] This read of the fifo is a potential candidate for a race condition as the spi transfer is not necessarily finished and so can lead to an early read of the fifo that still misses data. So it has been removed. Fixes: 1ea29b39f4c812ec

[PATCH 4.9 25/26] tcp: inherit timestamp on mtu probe

2019-09-08 Thread Greg Kroah-Hartman
From: Willem de Bruijn [ Upstream commit 888a5c53c0d8be6e98bc85b677f179f77a647873 ] TCP associates tx timestamp requests with a byte in the bytestream. If merging skbs in tcp_mtu_probe, migrate the tstamp request. Similar to MSG_EOR, do not allow moving a timestamp from any segment in the

[PATCH 4.9 05/26] gpio: Fix build error of function redefinition

2019-09-08 Thread Greg Kroah-Hartman
[ Upstream commit 68e03b85474a51ec1921b4d13204782594ef7223 ] when do randbuilding, I got this error: In file included from drivers/hwmon/pmbus/ucd9000.c:19:0: ./include/linux/gpio/driver.h:576:1: error: redefinition of gpiochip_add_pin_range gpiochip_add_pin_range(struct gpio_chip *chip, const

[PATCH 4.9 24/26] net: stmmac: dwmac-rk: Dont fail if phy regulator is absent

2019-09-08 Thread Greg Kroah-Hartman
From: Chen-Yu Tsai [ Upstream commit 3b25528e1e355c803e73aa326ce657b5606cda73 ] The devicetree binding lists the phy phy as optional. As such, the driver should not bail out if it can't find a regulator. Instead it should just skip the remaining regulator related code and continue on normally.

[PATCH 4.9 07/26] net: myri10ge: fix memory leaks

2019-09-08 Thread Greg Kroah-Hartman
[ Upstream commit 20fb7c7a39b5c719e2e619673b5f5729ee7d2306 ] In myri10ge_probe(), myri10ge_alloc_slices() is invoked to allocate slices related structures. Later on, myri10ge_request_irq() is used to get an irq. However, if this process fails, the allocated slices related structures are not

[PATCH 4.9 02/26] net: tc35815: Explicitly check NET_IP_ALIGN is not zero in tc35815_rx

2019-09-08 Thread Greg Kroah-Hartman
[ Upstream commit 125b7e0949d4e72b15c2b1a1590f8cece985a918 ] clang warns: drivers/net/ethernet/toshiba/tc35815.c:1507:30: warning: use of logical '&&' with constant operand [-Wconstant-logical-operand] if (!HAVE_DMA_RXALIGN(lp) && NET_IP_ALIGN)

[PATCH 4.9 16/26] KVM: arm/arm64: Only skip MMIO insn once

2019-09-08 Thread Greg Kroah-Hartman
[ Upstream commit 2113c5f62b7423e4a72b890bd479704aa85c81ba ] If after an MMIO exit to userspace a VCPU is immediately run with an immediate_exit request, such as when a signal is delivered or an MMIO emulation completion is needed, then the VCPU completes the MMIO emulation and immediately

[PATCH 4.9 18/26] spi: bcm2835aux: ensure interrupts are enabled for shared handler

2019-09-08 Thread Greg Kroah-Hartman
[ Upstream commit bc519d9574618e47a0c788000fb78da95e18d953 ] The BCM2835 AUX SPI has a shared interrupt line (with AUX UART). Downstream fixes this with an AUX irqchip to demux the IRQ sources and a DT change which breaks compatibility with older kernels. The AUX irqchip was already rejected for

[PATCH 4.9 21/26] spi: bcm2835aux: fix corruptions for longer spi transfers

2019-09-08 Thread Greg Kroah-Hartman
[ Upstream commit 73b114ee7db1750c0b535199fae383b109bd61d0 ] On long running tests with a mcp2517fd can controller it showed that on rare occations the data read shows corruptions for longer spi transfers. Example of a 22 byte transfer: expected (as captured on logic analyzer): FF FF 78 00 00

[PATCH 4.14 15/40] cx82310_eth: fix a memory leak bug

2019-09-08 Thread Greg Kroah-Hartman
[ Upstream commit 1eca92eef18719027d394bf1a2d276f43e7cf886 ] 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

[PATCH 4.9 08/26] cx82310_eth: fix a memory leak bug

2019-09-08 Thread Greg Kroah-Hartman
[ Upstream commit 1eca92eef18719027d394bf1a2d276f43e7cf886 ] 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

[PATCH 4.14 00/40] 4.14.143-stable review

2019-09-08 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.14.143 release. There are 40 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Tue 10 Sep 2019 12:09:36 PM UTC. Anything

[PATCH 4.14 19/40] kprobes: Fix potential deadlock in kprobe_optimizer()

2019-09-08 Thread Greg Kroah-Hartman
[ Upstream commit f1c6ece23729257fb46562ff9224cf5f61b818da ] lockdep reports the following deadlock scenario: WARNING: possible circular locking dependency detected kworker/1:1/48 is trying to acquire lock: 8d7a62b2 (text_mutex){+.+.}, at: kprobe_optimizer+0x163/0x290 but task is

[PATCH 4.14 14/40] vfs: fix page locking deadlocks when deduping files

2019-09-08 Thread Greg Kroah-Hartman
[ Upstream commit edc58dd0123b552453a74369bd0c8d890b497b4b ] When dedupe wants to use the page cache to compare parts of two files for dedupe, we must be very careful to handle locking correctly. The current code doesn't do this. It must lock and unlock the page only once if the two pages are

[PATCH 4.14 21/40] Input: hyperv-keyboard: Use in-place iterator API in the channel callback

2019-09-08 Thread Greg Kroah-Hartman
[ Upstream commit d09bc83640d524b8467a660db7b1d15e6562a1de ] Simplify the ring buffer handling with the in-place API. Also avoid the dynamic allocation and the memory leak in the channel callback function. Signed-off-by: Dexuan Cui Acked-by: Dmitry Torokhov Signed-off-by: Sasha Levin ---

[PATCH 4.14 23/40] IB/mlx4: Fix memory leaks

2019-09-08 Thread Greg Kroah-Hartman
[ Upstream commit 5c1baaa82cea2c815a5180ded402a7cd455d1810 ] In mlx4_ib_alloc_pv_bufs(), 'tun_qp->tx_ring' is allocated through kcalloc(). However, it is not always deallocated in the following execution if an error occurs, leading to memory leaks. To fix this issue, free 'tun_qp->tx_ring'

[PATCH 4.14 02/40] hv_netvsc: Fix a warning of suspicious RCU usage

2019-09-08 Thread Greg Kroah-Hartman
[ Upstream commit 6d0d779dca73cd5acb649c54f81401f93098b298 ] This fixes a warning of "suspicious rcu_dereference_check() usage" when nload runs. Fixes: 776e726bfb34 ("netvsc: fix RCU warning in get_stats") Signed-off-by: Dexuan Cui Signed-off-by: David S. Miller Signed-off-by: Sasha Levin ---

[PATCH 4.14 11/40] liquidio: add cleanup in octeon_setup_iq()

2019-09-08 Thread Greg Kroah-Hartman
[ Upstream commit 6f967f8b1be7001b31c46429f2ee7d275af2190f ] If oct->fn_list.enable_io_queues() fails, no cleanup is executed, leading to memory/resource leaks. To fix this issue, invoke octeon_delete_instr_queue() before returning from the function. Signed-off-by: Wenwen Wang Signed-off-by:

[PATCH 4.14 10/40] cxgb4: fix a memory leak bug

2019-09-08 Thread Greg Kroah-Hartman
[ Upstream commit c554336efa9bbc28d6ec14efbee3c7d63c61a34f ] In blocked_fl_write(), 't' is not deallocated if bitmap_parse_user() fails, leading to a memory leak bug. To fix this issue, free t before returning the error. Signed-off-by: Wenwen Wang Signed-off-by: David S. Miller Signed-off-by:

[PATCH 4.19 11/57] spi: bcm2835aux: remove dangerous uncontrolled read of fifo

2019-09-08 Thread Greg Kroah-Hartman
[ Upstream commit c7de8500fd8ecbb544846dd5f11dca578c3777e1 ] This read of the fifo is a potential candidate for a race condition as the spi transfer is not necessarily finished and so can lead to an early read of the fifo that still misses data. So it has been removed. Fixes: 1ea29b39f4c812ec

[PATCH 4.14 33/40] net: fix skb use after free in netpoll

2019-09-08 Thread Greg Kroah-Hartman
From: Feng Sun [ Upstream commit 2c1644cf6d46a8267d79ed95cb9b563839346562 ] After commit baeababb5b85d5c4e6c917efe2a1504179438d3b ("tun: return NET_XMIT_DROP for dropped packets"), when tun_net_xmit drop packets, it will free skb and return NET_XMIT_DROP, netpoll_send_skb_on_dev will run into

[PATCH 4.14 31/40] spi: bcm2835aux: fix corruptions for longer spi transfers

2019-09-08 Thread Greg Kroah-Hartman
[ Upstream commit 73b114ee7db1750c0b535199fae383b109bd61d0 ] On long running tests with a mcp2517fd can controller it showed that on rare occations the data read shows corruptions for longer spi transfers. Example of a 22 byte transfer: expected (as captured on logic analyzer): FF FF 78 00 00

[PATCH 4.14 30/40] spi: bcm2835aux: remove dangerous uncontrolled read of fifo

2019-09-08 Thread Greg Kroah-Hartman
[ Upstream commit c7de8500fd8ecbb544846dd5f11dca578c3777e1 ] This read of the fifo is a potential candidate for a race condition as the spi transfer is not necessarily finished and so can lead to an early read of the fifo that still misses data. So it has been removed. Fixes: 1ea29b39f4c812ec

[PATCH 4.14 36/40] tcp: inherit timestamp on mtu probe

2019-09-08 Thread Greg Kroah-Hartman
From: Willem de Bruijn [ Upstream commit 888a5c53c0d8be6e98bc85b677f179f77a647873 ] TCP associates tx timestamp requests with a byte in the bytestream. If merging skbs in tcp_mtu_probe, migrate the tstamp request. Similar to MSG_EOR, do not allow moving a timestamp from any segment in the

<    1   2   3   4   5   6   >