Re: [PATCH v2 2/3] mm: don't hide potentially null memmap pointer in sparse_remove_one_section

2019-06-25 Thread Michal Hocko
On Wed 26-06-19 16:30:55, Alastair D'Silva wrote: > On Wed, 2019-06-26 at 08:23 +0200, Michal Hocko wrote: > > On Wed 26-06-19 16:11:22, Alastair D'Silva wrote: > > > From: Alastair D'Silva > > > > > > By adding offset to memmap before passing it in to > > > clear_hwpoisoned_pages, > > > we hide

Re: [PATCH 1/1] perf annotate csky: Add perf annotate support

2019-06-25 Thread Guo Ren
Thx Mao, Approved! Best Regards Guo Ren On Wed, Jun 26, 2019 at 2:53 PM Mao Han wrote: > > This patch add basic arch initialization and instruction associate support > for csky. > > perf annotate --stdio2 > Samples: 161 of event 'cpu-clock:pppH', 4000 Hz, Event count (approx.): > 4025, [p

Re: [PATCH v2 1/3] mm: Trigger bug on if a section is not found in __section_nr

2019-06-25 Thread Michal Hocko
On Wed 26-06-19 16:27:30, Alastair D'Silva wrote: > On Wed, 2019-06-26 at 08:21 +0200, Michal Hocko wrote: > > On Wed 26-06-19 16:11:21, Alastair D'Silva wrote: > > > From: Alastair D'Silva > > > > > > If a memory section comes in where the physical address is greater > > > than > > > that which

Re: [RFC PATCH 00/28] Removing struct page from P2PDMA

2019-06-25 Thread Christoph Hellwig
On Tue, Jun 25, 2019 at 01:54:21PM -0600, Logan Gunthorpe wrote: > Well whether it's dma_addr_t, phys_addr_t, pfn_t the result isn't all > that different. You still need roughly the same 'if' hooks for any > backed memory that isn't in the linear mapping and you can't get a > kernel mapping for dir

Re: [PATCH 2/4] mfd: Add initial MFD driver for ATC260x PMICs

2019-06-25 Thread Lee Jones
On Mon, 17 Jun 2019, Manivannan Sadhasivam wrote: > Add initial MFD driver for Actions Semi ATC260x PMICs. ATC260x series > PMICs integrates Audio Codec, Power management, Clock generation, and GPIO > controller blocks. This driver only supports Regulator functionality on > ATC2609A PMIC variant f

Re: [PATCH v3 3/3] oom: decouple mems_allowed from oom_unkillable_task

2019-06-25 Thread Michal Hocko
On Mon 24-06-19 14:26:31, Shakeel Butt wrote: > The commit ef08e3b4981a ("[PATCH] cpusets: confine oom_killer to > mem_exclusive cpuset") introduces a heuristic where a potential > oom-killer victim is skipped if the intersection of the potential victim > and the current (the process triggered the

[PATCH 1/1] perf annotate csky: Add perf annotate support

2019-06-25 Thread Mao Han
This patch add basic arch initialization and instruction associate support for csky. perf annotate --stdio2 Samples: 161 of event 'cpu-clock:pppH', 4000 Hz, Event count (approx.): 4025, [percent: local period] test_4() /usr/lib/perf-test/callchain_test Percent Disassembly of sect

Re: DMA coherency in drivers/tty/serial/mpsc.c

2019-06-25 Thread Christoph Hellwig
On Tue, Jun 25, 2019 at 09:37:22AM -0700, Mark Greer wrote: > Yeah, the mpsc driver had lots of ugly cache related hacks because of > cache coherency bugs in the early version of the MV64x60 bridge chips > that it was embedded in. That chip is pretty much dead now and I've > removed core support f

Re: [LINUX PATCH v17 1/2] mtd: rawnand: nand_micron: Do not over write driver's read_page()/write_page()

2019-06-25 Thread Boris Brezillon
On Mon, 24 Jun 2019 22:46:29 -0600 Naga Sureshkumar Relli wrote: > Add check before assigning chip->ecc.read_page() and chip->ecc.write_page() > > Signed-off-by: Naga Sureshkumar Relli > --- > drivers/mtd/nand/raw/nand_micron.c | 7 +-- > 1 file changed, 5 insertions(+), 2 deletions(-) >

RE: [PATCH] reset: Add driver for dispmix reset

2019-06-25 Thread Fancy Fang
Hi Philipp, Thanks for your comments. And please see my answers below. -Original Message- From: Philipp Zabel Sent: Tuesday, June 25, 2019 10:57 PM To: Fancy Fang ; shawn...@kernel.org; s.ha...@pengutronix.de Cc: feste...@gmail.com; ker...@pengutronix.de; linux-arm-ker...@lists.infrade

Re: [PATCH 1/3] lib/vdso: Delay mask application in do_hres()

2019-06-25 Thread Thomas Gleixner
On Tue, 25 Jun 2019, Thomas Gleixner wrote: > On Tue, 25 Jun 2019, Vincenzo Frascino wrote: > > do_hres() in the vDSO generic library masks the hw counter value > > immediately after reading it. > > > > Postpone the mask application after checking if the syscall fallback is > > enabled, in order t

Re: [PATCH v3 2/3] mm, oom: remove redundant task_in_mem_cgroup() check

2019-06-25 Thread Michal Hocko
On Mon 24-06-19 14:26:30, Shakeel Butt wrote: > oom_unkillable_task() can be called from three different contexts i.e. > global OOM, memcg OOM and oom_score procfs interface. At the moment > oom_unkillable_task() does a task_in_mem_cgroup() check on the given > process. Since there is no reason to

Re: Steam is broken on new kernels

2019-06-25 Thread Eric Dumazet
On Wed, Jun 26, 2019 at 8:22 AM Greg Kroah-Hartman wrote: > > On Wed, Jun 26, 2019 at 06:20:17AM +0200, Eric Dumazet wrote: > > On Wed, Jun 26, 2019 at 5:43 AM Guenter Roeck wrote: > > > > > > On 6/25/19 7:29 PM, Greg Kroah-Hartman wrote: > > > > On Tue, Jun 25, 2019 at 07:02:20PM -0700, Guenter

Re: [PATCH V3 2/3] thermal/drivers/cpu_cooling: Unregister with the policy

2019-06-25 Thread Viresh Kumar
On 26-06-19, 08:02, Daniel Lezcano wrote: > On 26/06/2019 04:58, Viresh Kumar wrote: > > On 25-06-19, 13:32, Daniel Lezcano wrote: > >> diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c > >> index aee024e42618..f07454249fbc 100644 > >> --- a/drivers/cpufreq/cpufreq.c > >> +++ b/dri

Re: [PATCH v1 0/3] Add required-opps support to devfreq passive gov

2019-06-25 Thread Viresh Kumar
On 24-06-19, 22:29, Saravana Kannan wrote: > No, the CPUs will be the "parent" and the cache will be the "child". > CPU is a special case when it comes to the actual software (not DT) as > we'll need the devfreq governor to look at all the CPUfreq policies to > decide the cache frequency (max of al

Re: [PATCH v2 2/3] mm: don't hide potentially null memmap pointer in sparse_remove_one_section

2019-06-25 Thread Alastair D'Silva
On Wed, 2019-06-26 at 08:23 +0200, Michal Hocko wrote: > On Wed 26-06-19 16:11:22, Alastair D'Silva wrote: > > From: Alastair D'Silva > > > > By adding offset to memmap before passing it in to > > clear_hwpoisoned_pages, > > we hide a potentially null memmap from the null check inside > > clear_h

Re: [PATCH 6/9] KVM: x86: Provide paravirtualized flush_tlb_multi()

2019-06-25 Thread Nadav Amit
> On Jun 25, 2019, at 8:56 PM, Andy Lutomirski wrote: > > On Tue, Jun 25, 2019 at 8:41 PM Nadav Amit wrote: >>> On Jun 25, 2019, at 8:35 PM, Andy Lutomirski wrote: >>> >>> On Tue, Jun 25, 2019 at 7:39 PM Nadav Amit wrote: > On Jun 25, 2019, at 2:40 PM, Dave Hansen wrote: > > On

Re: [PATCH v2 1/3] mm: Trigger bug on if a section is not found in __section_nr

2019-06-25 Thread Alastair D'Silva
On Wed, 2019-06-26 at 08:21 +0200, Michal Hocko wrote: > On Wed 26-06-19 16:11:21, Alastair D'Silva wrote: > > From: Alastair D'Silva > > > > If a memory section comes in where the physical address is greater > > than > > that which is managed by the kernel, this function would not > > trigger th

Re: [PATCH] i2c: designware: Add disable runtime pm quirk

2019-06-25 Thread Jarkko Nikula
On 6/26/19 5:32 AM, AceLan Kao wrote: Adding I2C_HID_QUIRK_NO_RUNTIME_PM quirk doesn't help on this issue. Actually, Goodix touchpad already has that PM quirk in the list for other issue. { I2C_VENDOR_ID_GOODIX, I2C_DEVICE_ID_GOODIX_01F0, I2C_HID_QUIRK_NO_RUNTIME_PM }, I

Re: RX CRC errors on I219-V (6) 8086:15be

2019-06-25 Thread Neftin, Sasha
On 6/26/2019 09:14, Kai Heng Feng wrote: Hi Sasha at 5:09 PM, Kai-Heng Feng wrote: Hi Jeffrey, We’ve encountered another issue, which causes multiple CRC errors and renders ethernet completely useless, here’s the network stats: I also tried ignore_ltr for this issue, seems like it allevia

Re: [PATCH] can: mcp251x: add error check when wq alloc failed

2019-06-25 Thread Sean Nyekjaer
On 25/06/2019 16.03, Willem de Bruijn wrote: On Tue, Jun 25, 2019 at 8:51 AM Weitao Hou wrote: add error check when workqueue alloc failed, and remove redundant code to make it clear Signed-off-by: Weitao Hou Acked-by: Willem de Bruijn Tested-by: Sean Nyekjaer

Re: [PATCH v2 3/3] mm: Don't manually decrement num_poisoned_pages

2019-06-25 Thread Michal Hocko
On Wed 26-06-19 16:11:23, Alastair D'Silva wrote: > From: Alastair D'Silva > > Use the function written to do it instead. I am not sure a single line helper is a great win but this makes the code consistent at least. > Signed-off-by: Alastair D'Silva Acked-by: Michal Hocko > --- > mm/spars

Re: [PATCH v2 2/3] mm: don't hide potentially null memmap pointer in sparse_remove_one_section

2019-06-25 Thread Michal Hocko
On Wed 26-06-19 16:11:22, Alastair D'Silva wrote: > From: Alastair D'Silva > > By adding offset to memmap before passing it in to clear_hwpoisoned_pages, > we hide a potentially null memmap from the null check inside > clear_hwpoisoned_pages. > > This patch passes the offset to clear_hwpoisoned_

Re: Steam is broken on new kernels

2019-06-25 Thread Greg Kroah-Hartman
On Wed, Jun 26, 2019 at 06:20:17AM +0200, Eric Dumazet wrote: > On Wed, Jun 26, 2019 at 5:43 AM Guenter Roeck wrote: > > > > On 6/25/19 7:29 PM, Greg Kroah-Hartman wrote: > > > On Tue, Jun 25, 2019 at 07:02:20PM -0700, Guenter Roeck wrote: > > >> Hi Greg, > > >> > > >> On Sat, Jun 22, 2019 at 09:3

Re: [PATCH v2 1/3] mm: Trigger bug on if a section is not found in __section_nr

2019-06-25 Thread Michal Hocko
On Wed 26-06-19 16:11:21, Alastair D'Silva wrote: > From: Alastair D'Silva > > If a memory section comes in where the physical address is greater than > that which is managed by the kernel, this function would not trigger the > bug and instead return a bogus section number. > > This patch tracks

Re: [PATCH] orangefs: remove redundant assignment to variable buffer_index

2019-06-25 Thread Dan Carpenter
On Tue, Jun 25, 2019 at 02:55:11PM -0400, Mike Marshall wrote: > >> You often send these patches before they hit linux-next so I had skipped > >> reviewing this one when you sent it. > > I know Linus is likely to refuse pull requests for stuff that > has not been through linux-next, so I make sure

Re: [PATCH v8 1/5] mtd: cfi_cmdset_0002: Add support for polling status register

2019-06-25 Thread Vignesh Raghavendra
On 25/06/19 10:31 PM, Tokunori Ikegami wrote: > Hi, > > Thanks for the fix. > > Reviewed-by: Tokunori Ikegami > > I have just tested the patch quickly on my local environment that uses > the cfi_cmdset_0002 flash device but not HyperFlash family. > So tested as not affected by the change. >

[GIT PULL] csky fixup gcc unwind for v5.2

2019-06-25 Thread guoren
Hi Linus, Only one bugfix for v5.2, please pull. The following changes since commit 9e0babf2c06c73cda2c0cd37a1653d823adb40ec: Linux 5.2-rc5 (2019-06-16 08:49:45 -1000) are available in the git repository at: https://github.com/c-sky/csky-linux.git tags/csky-for-linus-5.2-fixup-gcc-unwind

Re: RX CRC errors on I219-V (6) 8086:15be

2019-06-25 Thread Kai Heng Feng
Hi Sasha at 5:09 PM, Kai-Heng Feng wrote: Hi Jeffrey, We’ve encountered another issue, which causes multiple CRC errors and renders ethernet completely useless, here’s the network stats: I also tried ignore_ltr for this issue, seems like it alleviates the symptom a bit for a while, then

[PATCH v2 3/3] mm: Don't manually decrement num_poisoned_pages

2019-06-25 Thread Alastair D'Silva
From: Alastair D'Silva Use the function written to do it instead. Signed-off-by: Alastair D'Silva --- mm/sparse.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mm/sparse.c b/mm/sparse.c index 1ec32aef5590..d9b3625bfdf0 100644 --- a/mm/sparse.c +++ b/mm/sparse.c @@ -11,

[PATCH v2 0/3] mm: Cleanup & allow modules to hotplug memory

2019-06-25 Thread Alastair D'Silva
From: Alastair D'Silva This series addresses some minor issues found when developing a persistent memory driver. Changelog: V2: - Drop mm/hotplug: export try_online_node (not necessary) - Return errors from __section_nr - Remove errant whitespace change in mm: don't hide po

[PATCH v2 2/3] mm: don't hide potentially null memmap pointer in sparse_remove_one_section

2019-06-25 Thread Alastair D'Silva
From: Alastair D'Silva By adding offset to memmap before passing it in to clear_hwpoisoned_pages, we hide a potentially null memmap from the null check inside clear_hwpoisoned_pages. This patch passes the offset to clear_hwpoisoned_pages instead, allowing memmap to successfully peform it's null

[PATCH v2 1/3] mm: Trigger bug on if a section is not found in __section_nr

2019-06-25 Thread Alastair D'Silva
From: Alastair D'Silva If a memory section comes in where the physical address is greater than that which is managed by the kernel, this function would not trigger the bug and instead return a bogus section number. This patch tracks whether the section was actually found, and triggers the bug if

Re: [PATCH 1/5] mm: Enable CONFIG_NODES_SPAN_OTHER_NODES by default for NUMA

2019-06-25 Thread Michal Hocko
On Tue 25-06-19 22:30:24, Hoan Tran OS wrote: > This patch enables CONFIG_NODES_SPAN_OTHER_NODES by default > for NUMA. As some NUMA nodes have memory ranges that span other > nodes. Even though a pfn is valid and between a node's start and > end pfns, it may not reside on that node. Please descri

Re: [PATCH] nvdimm: remove prototypes for nonexistent functions

2019-06-25 Thread Alastair D'Silva
On Wed, 2019-06-26 at 16:03 +1000, Alastair D'Silva wrote: > From: Alastair D'Silva > > These functions don't exist, so remove the prototypes for them. > > Signed-off-by: Alastair D'Silva > --- > drivers/nvdimm/nd-core.h | 4 > 1 file changed, 4 deletions(-) > > diff --git a/drivers/nvdi

[PATCH] nvdimm: remove prototypes for nonexistent functions

2019-06-25 Thread Alastair D'Silva
From: Alastair D'Silva These functions don't exist, so remove the prototypes for them. Signed-off-by: Alastair D'Silva --- drivers/nvdimm/nd-core.h | 4 1 file changed, 4 deletions(-) diff --git a/drivers/nvdimm/nd-core.h b/drivers/nvdimm/nd-core.h index 391e88de3a29..57d162dbefaa 100644

Re: [PATCH V3 2/3] thermal/drivers/cpu_cooling: Unregister with the policy

2019-06-25 Thread Daniel Lezcano
Hi Viresh, On 26/06/2019 04:58, Viresh Kumar wrote: > On 25-06-19, 13:32, Daniel Lezcano wrote: >> diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c >> index aee024e42618..f07454249fbc 100644 >> --- a/drivers/cpufreq/cpufreq.c >> +++ b/drivers/cpufreq/cpufreq.c >> @@ -1379,8 +1

Re: [PATCH v7 2/4] uprobe: use original page when all uprobes are removed

2019-06-25 Thread Srikar Dronamraju
* Song Liu [2019-06-25 16:53:23]: > Currently, uprobe swaps the target page with a anonymous page in both > install_breakpoint() and remove_breakpoint(). When all uprobes on a page > are removed, the given mm is still using an anonymous page (not the > original page). > > This patch allows uprob

Re: [PATCH v7 3/5] mtd: Add support for HyperBus memory devices

2019-06-25 Thread Vignesh Raghavendra
On 26/06/19 6:46 AM, masonccy...@mxic.com.tw wrote: > Hi Vignesh, > >> >> Subject >> >> [PATCH v7 3/5] mtd: Add support for HyperBus memory devices >> >> Cypress' HyperBus is Low Signal Count, High Performance Double Data Rate >> Bus interface between a host system master and one or more slave

[PATCH] media:vivid: add sanity check to avoid divide error and set value to 1 if 0.

2019-06-25 Thread Vandana BN
Syzbot reported divide error in vivid_thread_vid_cap, which has been seen only once and doesnot have a reproducer. This patch sanity checks for the denominator value with WARN_ON if it is 0 and replaces it with 1. Reported-by: syz...@syzkaller.appspotmail.com divide error: [#1] PREEMPT SMP

Re: [PATCH v7 4/4] uprobe: use FOLL_SPLIT_PMD instead of FOLL_SPLIT

2019-06-25 Thread Srikar Dronamraju
* Song Liu [2019-06-25 16:53:25]: > This patches uses newly added FOLL_SPLIT_PMD in uprobe. This enables easy > regroup of huge pmd after the uprobe is disabled (in next patch). > > Acked-by: Kirill A. Shutemov > Signed-off-by: Song Liu > --- > kernel/events/uprobes.c | 6 ++ > 1 file cha

[PATCH] csky: Fixup libgcc unwind error

2019-06-25 Thread guoren
From: Guo Ren The struct rt_sigframe is also defined in libgcc/config/csky/linux-unwind.h of gcc. Although there is no use for the first three word space, we must keep them the same with linux-unwind.h for member position. The BUG is found in glibc test with the tst-cancel02. The BUG is from com

Re: [PATCH 14/16] mm: move the powerpc hugepd code to mm/gup.c

2019-06-25 Thread Christoph Hellwig
On Tue, Jun 25, 2019 at 12:37:57PM -0700, Andrew Morton wrote: > On Tue, 25 Jun 2019 16:37:13 +0200 Christoph Hellwig wrote: > > > +static int gup_huge_pd(hugepd_t hugepd > > Naming nitlet: we have hugepd and we also have huge_pd. We have > hugepte and we also have huge_pte. It make things a b

Re: [RESEND PATCH v1 0/5] Solve postboot supplier cleanup and optimize probe ordering

2019-06-25 Thread Frank Rowand
On 6/25/19 9:30 PM, Sandeep Patil wrote: > On Tue, Jun 25, 2019 at 11:53:13AM +0800, Greg Kroah-Hartman wrote: >> On Mon, Jun 24, 2019 at 03:37:07PM -0700, Sandeep Patil wrote: >>> We are trying to make sure that all (most) drivers in an Aarch64 system can >>> be kernel modules for Android, like an

Re: [Intel-wired-lan] Opportunistic S0ix blocked by e1000e when ethernet is in use

2019-06-25 Thread Kai Heng Feng
at 6:25 PM, Neftin, Sasha wrote: On 6/24/2019 18:06, Kai-Heng Feng wrote: at 19:56, Neftin, Sasha wrote: [Snipped] Current HW have a limitation. Please, try follow workaround on your platform: echo 3 > /sys/kernel/debug/pmc_core/ltr_ignore Yes, this does the trick. On 4.15 based kernel

[PATCH] EDAC: Fix global-out-of-bounds write when setting edac_mc_poll_msec

2019-06-25 Thread Eiichi Tsukata
Commit 9da21b1509d8 ("EDAC: Poll timeout cannot be zero, p2") assumes edac_mc_poll_msec to be unsigned long, but the type of the variable still remained as int. Setting edac_mc_poll_msec can trigger out-of-bounds write. Reproducer: # echo 1001 > /sys/module/edac_core/parameters/edac_mc_poll_mse

[PATCH v2 0/2] Add MediaTek I3C master controller driver

2019-06-25 Thread Qii Wang
This series are based on 5.2-rc1, we provide two patches to support MediaTek I3C master controller. Main changes compared to v1: --remove clock-div, let clock driver handle it --let sample_cnt and step_cnt start from two Qii Wang (2): dt-bindings: i3c: Document MediaTek I3C master bindings i3

[PATCH v2 1/2] dt-bindings: i3c: Document MediaTek I3C master bindings

2019-06-25 Thread Qii Wang
Document MediaTek I3C master DT bindings. Signed-off-by: Qii Wang --- .../devicetree/bindings/i3c/mtk,i3c-master.txt | 47 1 file changed, 47 insertions(+) create mode 100644 Documentation/devicetree/bindings/i3c/mtk,i3c-master.txt diff --git a/Documentation/devicetr

[PATCH v2 2/2] i3c: master: Add driver for MediaTek IP

2019-06-25 Thread Qii Wang
Add a driver for MediaTek I3C master IP. Signed-off-by: Qii Wang --- drivers/i3c/master/Kconfig | 10 + drivers/i3c/master/Makefile |1 + drivers/i3c/master/i3c-master-mtk.c | 1239 +++ 3 files changed, 1250 insertions(+) create mode 100644

[tip:x86/urgent] x86/mm: Handle physical-virtual alignment mismatch in phys_p4d_init()

2019-06-25 Thread tip-bot for Kirill A. Shutemov
Commit-ID: 432c833218dd0f75e7b56bd5e8658b72073158d2 Gitweb: https://git.kernel.org/tip/432c833218dd0f75e7b56bd5e8658b72073158d2 Author: Kirill A. Shutemov AuthorDate: Mon, 24 Jun 2019 15:31:50 +0300 Committer: Thomas Gleixner CommitDate: Wed, 26 Jun 2019 07:25:09 +0200 x86/mm: Handle p

[tip:x86/urgent] x86/boot/64: Add missing fixup_pointer() for next_early_pgt access

2019-06-25 Thread tip-bot for Kirill A. Shutemov
Commit-ID: c1887159eb48ba40e775584cfb2a443962cf1a05 Gitweb: https://git.kernel.org/tip/c1887159eb48ba40e775584cfb2a443962cf1a05 Author: Kirill A. Shutemov AuthorDate: Thu, 20 Jun 2019 14:24:22 +0300 Committer: Thomas Gleixner CommitDate: Wed, 26 Jun 2019 07:25:09 +0200 x86/boot/64: Add

[tip:x86/urgent] x86/boot/64: Fix crash if kernel image crosses page table boundary

2019-06-25 Thread tip-bot for Kirill A. Shutemov
Commit-ID: 81c7ed296dcd02bc0b4488246d040e03e633737a Gitweb: https://git.kernel.org/tip/81c7ed296dcd02bc0b4488246d040e03e633737a Author: Kirill A. Shutemov AuthorDate: Thu, 20 Jun 2019 14:23:45 +0300 Committer: Thomas Gleixner CommitDate: Wed, 26 Jun 2019 07:25:09 +0200 x86/boot/64: Fix

Re: [PATCH RESEND 6/8] parisc: Use mmap_base, not mmap_legacy_base, as low_limit for bottom-up mmap

2019-06-25 Thread Alex Ghiti
On 6/25/19 10:09 AM, Helge Deller wrote: On 20.06.19 07:03, Alexandre Ghiti wrote: Bottom-up mmap scheme is used twice: - for legacy mode, in which mmap_legacy_base and mmap_base are equal. - in case of mmap failure in top-down mode, where there is no need to go through the whole address space

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

2019-06-25 Thread Thomas Gleixner
On Wed, 26 Jun 2019, Stephen Rothwell wrote: > > 53d87b37a2a4 ("arm64: compat: No need for pre-ARMv7 barriers on an ARMv8 > system") > b4b12aca00d5 ("arm64: vdso: Remove unnecessary asm-offsets.c definitions") > 4d33ebb02c45 ("vdso: Remove superfluous #ifdef __KERNEL__ in > vdso/datapage.h

Re: [PATCH] perf/x86/intel: Mark expected switch fall-throughs

2019-06-25 Thread Nathan Chancellor
On Tue, Jun 25, 2019 at 08:46:26PM -0300, Arnaldo Carvalho de Melo wrote: > Em Tue, Jun 25, 2019 at 01:27:46PM -0700, Nathan Chancellor escreveu: > > On Tue, Jun 25, 2019 at 09:53:09PM +0200, Thomas Gleixner wrote: > > > On Tue, 25 Jun 2019, Nathan Chancellor wrote: > > > > On Tue, Jun 25, 2019 at

Re: [PATCH] perf/x86/intel: Mark expected switch fall-throughs

2019-06-25 Thread Nathan Chancellor
On Tue, Jun 25, 2019 at 11:47:06PM +0200, Thomas Gleixner wrote: > On Tue, 25 Jun 2019, Nathan Chancellor wrote: > > On Tue, Jun 25, 2019 at 09:53:09PM +0200, Thomas Gleixner wrote: > > > > > > But can the script please check for a minimal clang version required to > > > build that thing. > > > >

[PATCH V3 0/2] sched/fair: Fallback to sched-idle CPU in absence of idle CPUs

2019-06-25 Thread Viresh Kumar
Hi, We try to find an idle CPU to run the next task, but in case we don't find an idle CPU it is better to pick a CPU which will run the task the soonest, for performance reason. A CPU which isn't idle but has only SCHED_IDLE activity queued on it should be a good target based on this criteria as

[PATCH V3 2/2] sched/fair: Fallback to sched-idle CPU if idle CPU isn't found

2019-06-25 Thread Viresh Kumar
We try to find an idle CPU to run the next task, but in case we don't find an idle CPU it is better to pick a CPU which will run the task the soonest, for performance reason. A CPU which isn't idle but has only SCHED_IDLE activity queued on it should be a good target based on this criteria as any

[PATCH V3 1/2] sched: Start tracking SCHED_IDLE tasks count in cfs_rq

2019-06-25 Thread Viresh Kumar
Track how many tasks are present with SCHED_IDLE policy in each cfs_rq. This will be used by later commits. Signed-off-by: Viresh Kumar --- kernel/sched/fair.c | 14 -- kernel/sched/sched.h | 2 ++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/kernel/sched/fair.c

Re: [PATCH bpf-next] libbpf: fix max() type mismatch for 32bit

2019-06-25 Thread Andrii Nakryiko
On Tue, Jun 25, 2019 at 1:28 PM Ivan Khoronzhuk wrote: > > It fixes build error for 32bit caused by type mismatch > size_t/unsigned long. > > Signed-off-by: Ivan Khoronzhuk > --- Sorry, forgot to mention, this should probably have Fixes: bf82927125dd ("libbpf: refactor map initialization") Wit

[PATCH v3] x86/tls: Fix possible spectre-v1 in do_get_thread_area()

2019-06-25 Thread Dianzhang Chen
The index to access the threads tls array is controlled by userspace via syscall: sys_ptrace(), hence leading to a potential exploitation of the Spectre variant 1 vulnerability. The idx can be controlled from: ptrace -> arch_ptrace -> do_get_thread_area. Fix this by sanitizing idx before u

Re: [PATCH] rtc: Don't state that the RTC holds UTC in case it doesn't

2019-06-25 Thread Finn Thain
On Tue, 25 Jun 2019, Alexandre Belloni wrote: > On 25/06/2019 11:53:49+1000, Finn Thain wrote: > > On Mon, 24 Jun 2019, Alexandre Belloni wrote: > > > > > On 21/06/2019 11:51:26+1000, Finn Thain wrote: > > > > Some machines store local time in the Real Time Clock. The > > > > hard-coded "UTC" st

Re: [PATCH v2] x86/tls: Fix possible spectre-v1 in do_get_thread_area()

2019-06-25 Thread Dianzhang Chen
On Wed, Jun 26, 2019 at 12:38 AM Thomas Gleixner wrote: > > On Wed, 26 Jun 2019, Dianzhang Chen wrote: > > > The index to access the threads tls array is controlled by userspace > > via syscall: sys_ptrace(), hence leading to a potential exploitation > > of the Spectre variant 1 vulnerability. > >

Re: kernel panic: stack is corrupted in validate_chain

2019-06-25 Thread syzbot
syzbot has bisected this bug to: commit e9db4ef6bf4ca9894bb324c76e01b8f1a16b2650 Author: John Fastabend Date: Sat Jun 30 13:17:47 2018 + bpf: sockhash fix omitted bucket lock in sock_close bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=11d4e129a0 start commit: 249

linux-next: manual merge of the keys tree with the integrity tree

2019-06-25 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the keys tree got a conflict in: security/integrity/digsig.c between commit: 8c655784e2cf ("integrity: Fix __integrity_init_keyring() section mismatch") from the integrity tree and commit: 79512db59dc8 ("keys: Replace uid/gid/perm permissions checking

Re: [RESEND PATCH v1 0/5] Solve postboot supplier cleanup and optimize probe ordering

2019-06-25 Thread Sandeep Patil
On Tue, Jun 25, 2019 at 11:53:13AM +0800, Greg Kroah-Hartman wrote: > On Mon, Jun 24, 2019 at 03:37:07PM -0700, Sandeep Patil wrote: > > We are trying to make sure that all (most) drivers in an Aarch64 system can > > be kernel modules for Android, like any other desktop system for > > example. Ther

linux-next: manual merge of the keys tree with the ecryptfs tree

2019-06-25 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the keys tree got a conflict in: fs/ecryptfs/keystore.c between commit: 29a51df0609c ("ecryptfs: remove unnessesary null check in ecryptfs_keyring_auth_tok_for_sig") from the ecryptfs tree and commit: 79512db59dc8 ("keys: Replace uid/gid/perm permiss

Re: Steam is broken on new kernels

2019-06-25 Thread Eric Dumazet
On Wed, Jun 26, 2019 at 5:43 AM Guenter Roeck wrote: > > On 6/25/19 7:29 PM, Greg Kroah-Hartman wrote: > > On Tue, Jun 25, 2019 at 07:02:20PM -0700, Guenter Roeck wrote: > >> Hi Greg, > >> > >> On Sat, Jun 22, 2019 at 09:37:53AM +0200, Greg Kroah-Hartman wrote: > >>> On Fri, Jun 21, 2019 at 10:28:

[PATCH] arm64/efi: Mark __efistub_stext_offset as an absolute symbol explicitly

2019-06-25 Thread Nathan Chancellor
After r363059 and r363928 in LLVM, a build using ld.lld as the linker with CONFIG_RANDOMIZE_BASE enabled fails like so: ld.lld: error: relocation R_AARCH64_ABS32 cannot be used against symbol __efistub_stext_offset; recompile with -fPIC Fangrui and Peter figured out that ld.lld is incorrectly con

[PATCH 0/2] Unexport __clk_of_table

2019-06-25 Thread Stephen Boyd
I found this lying around, not sure if I sent it or not. We don't need to export this symbol anymore. And having COMMON_CLK in clk-provider.h seems to be an artifact. Here's a couple patches to clean this stuff up. Stephen Boyd (2): clk: Remove ifdef for COMMON_CLK in clk-provider.h clk: Unex

[PATCH 2/2] clk: Unexport __clk_of_table

2019-06-25 Thread Stephen Boyd
This symbol doesn't need to be exported to clk providers anymore. Originally, it was hidden inside clk.c, but then OMAP needed to get access to it in commit 819b4861c18d ("CLK: ti: add init support for clock IP blocks"), but eventually that code also changed in commit c08ee14cc663 ("clk: ti: change

[PATCH 1/2] clk: Remove ifdef for COMMON_CLK in clk-provider.h

2019-06-25 Thread Stephen Boyd
This ifdef has been there since the beginning of this file, but it doesn't really seem to serve any purpose besides obfuscating the struct definitions and #defines here from compilation units that include it. Let's always expose these function prototypes and struct definitions so that code can insp

Re: [PATCH 8/9] x86/tlb: Privatize cpu_tlbstate

2019-06-25 Thread Andy Lutomirski
On Tue, Jun 25, 2019 at 2:52 PM Dave Hansen wrote: > > On 6/12/19 11:48 PM, Nadav Amit wrote: > > cpu_tlbstate is mostly private and only the variable is_lazy is shared. > > This causes some false-sharing when TLB flushes are performed. > > Presumably, all CPUs doing TLB flushes read 'is_lazy'. B

Re: [PATCH] linux/kernel.h: fix overflow for DIV_ROUND_UP_ULL

2019-06-25 Thread Vinod Koul
On 25-06-19, 15:32, Andrew Morton wrote: > On Tue, 25 Jun 2019 15:29:38 -0700 Andrew Morton > wrote: > > > On Tue, 25 Jun 2019 15:35:18 +0530 Vinod Koul wrote: > > > > > DIV_ROUND_UP_ULL adds the two arguments and then invokes > > > DIV_ROUND_DOWN_ULL. But on a 32bit system the addition of two

Re: [PATCH 6/9] KVM: x86: Provide paravirtualized flush_tlb_multi()

2019-06-25 Thread Andy Lutomirski
On Tue, Jun 25, 2019 at 8:41 PM Nadav Amit wrote: > > > On Jun 25, 2019, at 8:35 PM, Andy Lutomirski wrote: > > > > On Tue, Jun 25, 2019 at 7:39 PM Nadav Amit wrote: > >>> On Jun 25, 2019, at 2:40 PM, Dave Hansen wrote: > >>> > >>> On 6/12/19 11:48 PM, Nadav Amit wrote: > Support the new i

[PATCH v2] pinctrl: mediatek: Update cur_mask in mask/mask ops

2019-06-25 Thread Nicolas Boichat
During suspend/resume, mtk_eint_mask may be called while wake_mask is active. For example, this happens if a wake-source with an active interrupt handler wakes the system: irq/pm.c:irq_pm_check_wakeup would disable the interrupt, so that it can be handled later on in the resume flow. However, this

Re: [RFC v1] clk: core: support clocks that need to be enabled during re-parent

2019-06-25 Thread Stephen Boyd
Quoting Weiyi Lu (2019-06-25 18:05:22) > On Tue, 2019-06-25 at 15:14 -0700, Stephen Boyd wrote: > > Quoting Weiyi Lu (2019-06-09 20:44:53) > > > When using property assigned-clock-parents to assign parent clocks, > > > core clocks might still be disabled during re-parent. > > > Add flag 'CLK_OPS_CO

[PATCH AUTOSEL 5.1 11/51] ASoC: sun4i-codec: fix first delay on Speaker

2019-06-25 Thread Sasha Levin
From: Georgii Staroselskii [ Upstream commit 1f2675f6655838aaf910f911fd0abc821e3ff3df ] Allwinner DAC seems to have a delay in the Speaker audio routing. When playing a sound for the first time, the sound gets chopped. On a second play the sound is played correctly. After some time (~5s) the iss

[PATCH AUTOSEL 5.1 23/51] x86/CPU: Add more Icelake model numbers

2019-06-25 Thread Sasha Levin
From: Kan Liang [ Upstream commit e35faeb64146f2015f2aec14b358ae508e4066db ] Add the CPUID model numbers of Icelake (ICL) desktop and server processors to the Intel family list. [ Qiuxu: Sort the macros by model number. ] Signed-off-by: Kan Liang Signed-off-by: Borislav Petkov Cc: "H. Peter

[PATCH AUTOSEL 5.1 06/51] spi: bitbang: Fix NULL pointer dereference in spi_unregister_master

2019-06-25 Thread Sasha Levin
From: YueHaibing [ Upstream commit 5caaf29af5ca82d5da8bc1d0ad07d9e664ccf1d8 ] If spi_register_master fails in spi_bitbang_start because device_add failure, We should return the error code other than 0, otherwise calling spi_bitbang_stop may trigger NULL pointer dereference like this: BUG: KASAN

[PATCH AUTOSEL 5.1 10/51] iommu/vt-d: Set the right field for Page Walk Snoop

2019-06-25 Thread Sasha Levin
From: Lu Baolu [ Upstream commit 66d78ad316b0e1ca5ae19663468554e2c0e31c26 ] Set the page walk snoop to the right bit, otherwise the domain id field will be overlapped. Reported-by: Dave Jiang Fixes: 6f7db75e1c469 ("iommu/vt-d: Add second level page table interface") Signed-off-by: Lu Baolu Si

Re: [PATCH 4/9] x86/mm/tlb: Flush remote and local TLBs concurrently

2019-06-25 Thread Andy Lutomirski
On Tue, Jun 25, 2019 at 8:48 PM Nadav Amit wrote: > > > On Jun 25, 2019, at 8:36 PM, Andy Lutomirski wrote: > > > > On Wed, Jun 12, 2019 at 11:49 PM Nadav Amit wrote: > >> To improve TLB shootdown performance, flush the remote and local TLBs > >> concurrently. Introduce flush_tlb_multi() that do

[PATCH AUTOSEL 5.1 37/51] drm: panel-orientation-quirks: Add quirk for GPD MicroPC

2019-06-25 Thread Sasha Levin
From: Hans de Goede [ Upstream commit 652b8b086538c8a10de5aa5cbdaef79333b46358 ] GPD has done it again, make a nice device (good), use way too generic DMI strings (bad) and use a portrait screen rotated 90 degrees (ugly). Because of the too generic DMI strings this entry is also doing bios-date

[PATCH AUTOSEL 5.1 25/51] usb: gadget: udc: lpc32xx: allocate descriptor with GFP_ATOMIC

2019-06-25 Thread Sasha Levin
From: Alexandre Belloni [ Upstream commit fbc318afadd6e7ae2252d6158cf7d0c5a2132f7d ] Gadget drivers may queue request in interrupt context. This would lead to a descriptor allocation in that context. In that case we would hit BUG_ON(in_interrupt()) in __get_vm_area_node. Also remove the unneces

[PATCH AUTOSEL 5.1 42/51] platform/x86: mlx-platform: Fix parent device in i2c-mux-reg device registration

2019-06-25 Thread Sasha Levin
From: Vadim Pasternak [ Upstream commit 160da20b254dd4bfc5828f12c208fa831ad4be6c ] Fix the issue found while running kernel with the option CONFIG_DEBUG_TEST_DRIVER_REMOVE. Driver 'mlx-platform' registers 'i2c_mlxcpld' device and then registers few underlying 'i2c-mux-reg' devices: priv-

[PATCH AUTOSEL 5.1 47/51] scripts/decode_stacktrace.sh: prefix addr2line with $CROSS_COMPILE

2019-06-25 Thread Sasha Levin
From: Manuel Traut [ Upstream commit c04e32e911653442fc834be6e92e072aeebe01a1 ] At least for ARM64 kernels compiled with the crosstoolchain from Debian/stretch or with the toolchain from kernel.org the line number is not decoded correctly by 'decode_stacktrace.sh': $ echo "[ 136.513051] f1+

[PATCH AUTOSEL 4.19 02/34] ASoC: ak4458: add return value for ak4458_probe

2019-06-25 Thread Sasha Levin
From: Viorel Suman [ Upstream commit a8dee20d792432740509237943700fbcfc230bad ] AK4458 is probed successfully even if AK4458 is not present - this is caused by probe function returning no error on i2c access failure. Return an error on probe if i2c access has failed. Signed-off-by: Shengjiu Wan

[PATCH AUTOSEL 5.1 32/51] ALSA: hdac: fix memory release for SST and SOF drivers

2019-06-25 Thread Sasha Levin
From: Amadeusz Sławiński [ Upstream commit 6d647b736a6b1cbf2f8deab0e6a94c34a6ea9d60 ] During the integration of HDaudio support, we changed the way in which we get hdev in snd_hdac_ext_bus_device_init() to use one preallocated with devm_kzalloc(), however it still left kfree(hdev) in snd_hdac_ex

[PATCH AUTOSEL 5.1 41/51] platform/x86: intel-vbtn: Report switch events when event wakes device

2019-06-25 Thread Sasha Levin
From: Mathew King [ Upstream commit cb1921b17adbe6509538098ac431033378cd7165 ] When a switch event, such as tablet mode/laptop mode or docked/undocked, wakes a device make sure that the value of the swich is reported. Without when a device is put in tablet mode from laptop mode when it is suspen

[PATCH AUTOSEL 5.1 30/51] ASoC: Intel: cht_bsw_rt5672: fix kernel oops with platform_name override

2019-06-25 Thread Sasha Levin
From: Pierre-Louis Bossart [ Upstream commit 9bbc799318a34061703f2a980e2b6df7fc6760f0 ] The platform override code uses devm_ functions to allocate memory for the new name but the card device is not initialized. Fix by moving the init earlier. Fixes: f403906da05cd ("ASoC: Intel: cht_bsw_rt5672:

[PATCH AUTOSEL 5.1 31/51] ASoC: core: move DAI pre-links initiation to snd_soc_instantiate_card

2019-06-25 Thread Sasha Levin
From: Tzung-Bi Shih [ Upstream commit 70fc53734e71ce51f46dfcfd1a1c319e1cfe080c ] Kernel crashes when an ASoC component rebinding. The dai_link->platforms has been reset to NULL by soc_cleanup_platform() in soc_cleanup_card_resources() when un-registering component. However, it has no chance to

[PATCH AUTOSEL 5.1 45/51] arm64: tlbflush: Ensure start/end of address range are aligned to stride

2019-06-25 Thread Sasha Levin
From: Will Deacon [ Upstream commit 01d57485fcdb9f9101a10a18e32d5f8b023cab86 ] Since commit 3d65b6bbc01e ("arm64: tlbi: Set MAX_TLBI_OPS to PTRS_PER_PTE"), we resort to per-ASID invalidation when attempting to perform more than PTRS_PER_PTE invalidation instructions in a single call to __flush_t

[PATCH AUTOSEL 4.19 09/34] drm/mediatek: unbind components in mtk_drm_unbind()

2019-06-25 Thread Sasha Levin
From: Hsin-Yi Wang [ Upstream commit f0fd848342802bc0f74620d387eead53e8905804 ] Unbinding components (i.e. mtk_dsi and mtk_disp_ovl/rdma/color) will trigger master(mtk_drm)'s .unbind(), and currently mtk_drm's unbind won't actually unbind components. During the next bind, mtk_drm_kms_init() is c

[PATCH AUTOSEL 5.1 50/51] module: Fix livepatch/ftrace module text permissions race

2019-06-25 Thread Sasha Levin
From: Josh Poimboeuf [ Upstream commit 9f255b632bf12c4dd7fc31caee89aa991ef75176 ] It's possible for livepatch and ftrace to be toggling a module's text permissions at the same time, resulting in the following panic: BUG: unable to handle page fault for address: c005b1d9 #PF: supervi

[PATCH AUTOSEL 4.19 07/34] ASoC: sun4i-codec: fix first delay on Speaker

2019-06-25 Thread Sasha Levin
From: Georgii Staroselskii [ Upstream commit 1f2675f6655838aaf910f911fd0abc821e3ff3df ] Allwinner DAC seems to have a delay in the Speaker audio routing. When playing a sound for the first time, the sound gets chopped. On a second play the sound is played correctly. After some time (~5s) the iss

[PATCH AUTOSEL 5.1 51/51] ftrace: Fix NULL pointer dereference in free_ftrace_func_mapper()

2019-06-25 Thread Sasha Levin
From: Wei Li [ Upstream commit 04e03d9a616c19a47178eaca835358610e63a1dd ] The mapper may be NULL when called from register_ftrace_function_probe() with probe->data == NULL. This issue can be reproduced as follow (it may be covered by compiler optimization sometime): / # cat /sys/kernel/debug/t

Re: [PATCH 4/9] x86/mm/tlb: Flush remote and local TLBs concurrently

2019-06-25 Thread Nadav Amit
> On Jun 25, 2019, at 8:36 PM, Andy Lutomirski wrote: > > On Wed, Jun 12, 2019 at 11:49 PM Nadav Amit wrote: >> To improve TLB shootdown performance, flush the remote and local TLBs >> concurrently. Introduce flush_tlb_multi() that does so. The current >> flush_tlb_others() interface is kept, si

[PATCH AUTOSEL 4.19 17/34] usb: gadget: fusb300_udc: Fix memory leak of fusb300->ep[i]

2019-06-25 Thread Sasha Levin
From: Young Xiao <92siuy...@gmail.com> [ Upstream commit 62fd0e0a24abeebe2c19fce49dd5716d9b62042d ] There is no deallocation of fusb300->ep[i] elements, allocated at fusb300_probe. The patch adds deallocation of fusb300->ep array elements. Signed-off-by: Young Xiao <92siuy...@gmail.com> Signed-

[PATCH AUTOSEL 4.19 01/34] ASoC : cs4265 : readable register too low

2019-06-25 Thread Sasha Levin
From: Matt Flax [ Upstream commit f3df05c805983427319eddc2411a2105ee1757cf ] The cs4265_readable_register function stopped short of the maximum register. An example bug is taken from : https://github.com/Audio-Injector/Ultra/issues/25 Where alsactl store fails with : Cannot read control '2,0,0

[PATCH AUTOSEL 4.19 05/34] spi: bitbang: Fix NULL pointer dereference in spi_unregister_master

2019-06-25 Thread Sasha Levin
From: YueHaibing [ Upstream commit 5caaf29af5ca82d5da8bc1d0ad07d9e664ccf1d8 ] If spi_register_master fails in spi_bitbang_start because device_add failure, We should return the error code other than 0, otherwise calling spi_bitbang_stop may trigger NULL pointer dereference like this: BUG: KASAN

  1   2   3   4   5   6   7   8   9   10   >