kernel panic: stack is corrupted in validate_chain

2019-06-25 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:249155c2 Merge branch 'parisc-5.2-4' of git://git.kernel.o.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=12a4572da0 kernel config: https://syzkaller.appspot.com/x/.config?x=9a31528e58cc12e2

BUG: unable to handle kernel paging request in coalesced_mmio_write

2019-06-25 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:abf02e29 Merge tag 'pm-5.2-rc6' of git://git.kernel.org/pu.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=111932b1a0 kernel config: https://syzkaller.appspot.com/x/.config?x=e5c77f8090a3b96b

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

2019-06-25 Thread Thomas Gleixner
Nathan, 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. > > > > The default clang-3.8 which is installed on Debian stretch

Re: [PATCH] clk: Simplify clk_core_can_round()

2019-06-25 Thread Stephen Boyd
Quoting Geert Uytterhoeven (2019-06-17 05:02:48) > A boolean expression already evaluates to true or false, so there is no > need to check the result and return true or false explicitly. > > Signed-off-by: Geert Uytterhoeven > --- Applied to clk-next

Re: [PATCH 4.19 84/90] cfg80211: fix memory leak of wiphy device name

2019-06-25 Thread Pavel Machek
Hi! > From: Eric Biggers > > commit 4f488fbca2a86cc7714a128952eead92cac279ab upstream. > > In wiphy_new_nm(), if an error occurs after dev_set_name() and > device_initialize() have already been called, it's necessary to call > put_device() (via wiphy_free()) to avoid a memory leak. > ---

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

2019-06-25 Thread Dave Hansen
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'. Because of this, when we write to it we have to do the cache

Re: [PATCH trivial] clk: Grammar missing "and", Spelling s/statisfied/satisfied/

2019-06-25 Thread Stephen Boyd
Quoting Geert Uytterhoeven (2019-06-17 06:56:02) > Signed-off-by: Geert Uytterhoeven > --- Applied to clk-next

[PATCH] ALSA: hda: Use correct start/count for sysfs init

2019-06-25 Thread Evan Green
The normal flow through the widget sysfs codepath is that snd_hdac_refresh_widgets() is called once without the sysfs bool set to set up codec->num_nodes and friends, then another time with the bool set to actually allocate all the sysfs widgets. However, during the first time allocation,

Re: [PATCH 9/9] x86/apic: Use non-atomic operations when possible

2019-06-25 Thread Dave Hansen
> diff --git a/arch/x86/kernel/apic/x2apic_cluster.c > b/arch/x86/kernel/apic/x2apic_cluster.c > index 7685444a106b..609e499387a1 100644 > --- a/arch/x86/kernel/apic/x2apic_cluster.c > +++ b/arch/x86/kernel/apic/x2apic_cluster.c > @@ -50,7 +50,7 @@ __x2apic_send_IPI_mask(const struct cpumask

Re: [v3 PATCH 4/4] mm: thp: make deferred split shrinker memcg aware

2019-06-25 Thread Andrew Morton
On Thu, 13 Jun 2019 05:56:49 +0800 Yang Shi wrote: > Currently THP deferred split shrinker is not memcg aware, this may cause > premature OOM with some configuration. For example the below test would > run into premature OOM easily: > > $ cgcreate -g memory:thp > $ echo 4G >

Re: [PATCH 0/9] x86: Concurrent TLB flushes and other improvements

2019-06-25 Thread Dave Hansen
On 6/12/19 11:48 PM, Nadav Amit wrote: > Running sysbench on dax w/emulated-pmem, write-cache disabled, and > various mitigations (PTI, Spectre, MDS) disabled on Haswell: > > sysbench fileio --file-total-size=3G --file-test-mode=rndwr \ > --file-io-mode=mmap --threads=4

Re: [PATCH 9/9] x86/apic: Use non-atomic operations when possible

2019-06-25 Thread Thomas Gleixner
On Tue, 25 Jun 2019, Dave Hansen wrote: > > diff --git a/arch/x86/kernel/apic/x2apic_cluster.c > > b/arch/x86/kernel/apic/x2apic_cluster.c > > index 7685444a106b..609e499387a1 100644 > > --- a/arch/x86/kernel/apic/x2apic_cluster.c > > +++ b/arch/x86/kernel/apic/x2apic_cluster.c > > @@ -50,7

[PATCH bpf-next v9 01/10] fs,security: Add a new file access type: MAY_CHROOT

2019-06-25 Thread Mickaël Salaün
For compatibility reason, MAY_CHROOT is always set with MAY_CHDIR. However, this new flag enable to differentiate a chdir form a chroot. This is needed for the Landlock LSM to be able to evaluate a new root directory. Signed-off-by: Mickaël Salaün Cc: Alexander Viro Cc: Casey Schaufler Cc:

[PATCH bpf-next v9 08/10] bpf: Add a Landlock sandbox example

2019-06-25 Thread Mickaël Salaün
Add a basic sandbox tool to launch a command which is denied access to a list of files and directories. Add to the bpf_load library the ability to handle a BPF program subtype. Signed-off-by: Mickaël Salaün Cc: Alexei Starovoitov Cc: Andy Lutomirski Cc: Daniel Borkmann Cc: David S. Miller

[PATCH bpf-next v9 10/10] landlock: Add user and kernel documentation for Landlock

2019-06-25 Thread Mickaël Salaün
This documentation can be built with the Sphinx framework. Signed-off-by: Mickaël Salaün Cc: Alexei Starovoitov Cc: Andy Lutomirski Cc: Daniel Borkmann Cc: David S. Miller Cc: James Morris Cc: Jonathan Corbet Cc: Kees Cook Cc: Serge E. Hallyn --- Changes since v8: * remove documentation

[PATCH bpf-next v9 07/10] landlock: Add ptrace restrictions

2019-06-25 Thread Mickaël Salaün
A landlocked process has less privileges than a non-landlocked process and must then be subject to additional restrictions when manipulating processes. To be allowed to use ptrace(2) and related syscalls on a target process, a landlocked process must have a subset of the target process' rules.

[PATCH bpf-next v9 02/10] bpf: Add eBPF program subtype and is_valid_subtype() verifier

2019-06-25 Thread Mickaël Salaün
The goal of the program subtype is to be able to have different static fine-grained verifications for a unique program type. The struct bpf_verifier_ops gets a new optional function: is_valid_subtype(). This new verifier is called at the beginning of the eBPF program verification to check if the

[PATCH bpf-next v9 00/10] Landlock LSM: Toward unprivileged sandboxing

2019-06-25 Thread Mickaël Salaün
Hi, This ninth series upgrade Landlock as a stackable LSM [4] and elide the file system path evaluation from the previous series [1] to make this review process easier. This patch series is almost half the size of the previous one. Landlock is a low-level framework to build custom

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

2019-06-25 Thread Stephen Rothwell
Hi all, Commit cbbe88333062 ("ARM: bcm283x: Enable DMA support for SPI controller") is missing a Signed-off-by from its committer. -- Cheers, Stephen Rothwell pgp5uA69u_m1c.pgp Description: OpenPGP digital signature

[PATCH bpf-next v9 09/10] bpf,landlock: Add tests for Landlock

2019-06-25 Thread Mickaël Salaün
Test basic context access, ptrace protection and filesystem hooks. Signed-off-by: Mickaël Salaün Cc: Alexei Starovoitov Cc: Andy Lutomirski Cc: Daniel Borkmann Cc: David S. Miller Cc: James Morris Cc: Kees Cook Cc: Serge E. Hallyn Cc: Shuah Khan Cc: Will Drewry --- Changes since v8: *

[PATCH bpf-next v9 04/10] seccomp,landlock: Enforce Landlock programs per process hierarchy

2019-06-25 Thread Mickaël Salaün
The seccomp(2) syscall can be used by a task to apply a Landlock program to itself. As a seccomp filter, a Landlock program is enforced for the current task and all its future children. A program is immutable and a task can only add new restricting programs to itself, forming a list of programss.

Re: [PATCH v3 1/4] drm/panel: Add helper for reading DT rotation

2019-06-25 Thread dbasehore .
On Mon, Jun 24, 2019 at 1:36 PM Sam Ravnborg wrote: > > Hi Derek. > > On Fri, Jun 21, 2019 at 08:41:02PM -0700, Derek Basehore wrote: > > This adds a helper function for reading the rotation (panel > > orientation) from the device tree. > > > > Signed-off-by: Derek Basehore > > --- > >

[PATCH bpf-next v9 03/10] bpf,landlock: Define an eBPF program type for Landlock hooks

2019-06-25 Thread Mickaël Salaün
Add a new type of eBPF program used by Landlock hooks. This type of program can be chained with the same eBPF program type (according to subtype rules). A state can be kept with a value available in the program's context (e.g. named "cookie" for Landlock programs). This new BPF program type will

Re: [PATCH v5 06/18] kbuild: enable building KUnit

2019-06-25 Thread Luis Chamberlain
On Mon, Jun 17, 2019 at 01:26:01AM -0700, Brendan Higgins wrote: > diff --git a/Kconfig b/Kconfig > index 48a80beab6853..10428501edb78 100644 > --- a/Kconfig > +++ b/Kconfig > @@ -30,3 +30,5 @@ source "crypto/Kconfig" > source "lib/Kconfig" > > source "lib/Kconfig.debug" > + > +source

Re: [PATCH 2/2] dt-bindings: power: supply: Add documentation for the VINDPM properties

2019-06-25 Thread Sebastian Reichel
Hi, On Thu, Jun 13, 2019 at 05:09:06PM -0600, Rob Herring wrote: > On Mon, May 20, 2019 at 11:07:12AM -0700, Angus Ainslie (Purism) wrote: > > Add documentation on how to control VINDPM from the devicetree. > > > > Signed-off-by: Angus Ainslie (Purism) > > --- > >

[PATCH bpf-next v9 05/10] bpf,landlock: Add a new map type: inode

2019-06-25 Thread Mickaël Salaün
This new map store arbitrary 64-bits values referenced by inode keys. The map can be updated from user space with file descriptor pointing to inodes tied to a file system. From an eBPF (Landlock) program point of view, such a map is read-only and can only be used to retrieved a 64-bits value tied

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-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_CORE_ENABLE' for those clocks must be enabled > during re-parent. > > Signed-off-by: Weiyi Lu Can you further

Re: [v3 PATCH 3/4] mm: shrinker: make shrinker not depend on memcg kmem

2019-06-25 Thread Andrew Morton
On Thu, 13 Jun 2019 05:56:48 +0800 Yang Shi wrote: > Currently shrinker is just allocated and can work when memcg kmem is > enabled. But, THP deferred split shrinker is not slab shrinker, it > doesn't make too much sense to have such shrinker depend on memcg kmem. > It should be able to reclaim

Re: [PATCH v2] clk: mediatek: mt8183: Register 13MHz clock earlier for clocksource

2019-06-25 Thread Stephen Boyd
Quoting Weiyi Lu (2019-06-09 19:16:09) > The 13MHz clock should be registered before clocksource driver is > initialized. Use CLK_OF_DECLARE_DRIVER() to guarantee. > > Signed-off-by: Weiyi Lu Do you have a Fixes: tag in mind? Otherwise, the patch looks OK to me.

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

2019-06-25 Thread Florian Fainelli
On 6/25/19 3:12 PM, Stephen Rothwell wrote: > Hi all, > > Commit > > cbbe88333062 ("ARM: bcm283x: Enable DMA support for SPI controller") > > is missing a Signed-off-by from its committer. Yes, had to rebase and missed adding my SoB back onto the commit. Olof already warned me a bout this.

Re: [PATCH v2 1/5] clk: ingenic: Add missing header in cgu.h

2019-06-25 Thread Stephen Boyd
Quoting Paul Cercueil (2019-06-11 11:07:53) > The cgu.h has structures that contain 'clk_onecell_data' and 'clk_hw' > structures (no pointers), so the header should be > included. > > Signed-off-by: Paul Cercueil > --- > > Notes: > v2: Rebase on v5.2-rc4 You seemed to miss my review

Re: [PATCH v6 7/8] dynamic_debug: add asm-generic implementation for DYNAMIC_DEBUG_RELATIVE_POINTERS

2019-06-25 Thread Nick Desaulniers
On Mon, Jun 24, 2019 at 11:35 PM Rasmus Villemoes wrote: > > On 24/06/2019 23.53, Nick Desaulniers wrote: > > On Thu, Jun 20, 2019 at 1:46 PM Rasmus Villemoes > > wrote: > >> Well, apart from booting, I've mostly just tested that the debugfs > >> control file is identical before and after

[PATCH] PCI: PM: Avoid skipping bus-level PM on platforms without ACPI

2019-06-25 Thread Rafael J. Wysocki
From: Rafael J. Wysocki There are platforms that do not call pm_set_suspend_via_firmware(), so pm_suspend_via_firmware() returns 'false' on them, but the power states of PCI devices (PCIe ports in particular) are changed as a result of powering down core platform components during system-wide

Re: [[PATCH net-next]] net: core: xdp: make __mem_id_disconnect to be static

2019-06-25 Thread Song Liu
On Tue, Jun 25, 2019 at 6:11 AM Ivan Khoronzhuk wrote: > > Add missed static for local __mem_id_disconnect(). > > Signed-off-by: Ivan Khoronzhuk https://patchwork.ozlabs.org/patch/1121730/ I guess you are a little late. :) Please ack the other patch. Song > --- > net/core/xdp.c | 2 +- > 1

[PATCH bpf-next v5 1/2] bpf: Allow bpf_skb_event_output for a few prog types

2019-06-25 Thread allanzhang
Software event output is only enabled by a few prog types right now (TC, LWT out, XDP, sockops). Many other skb based prog types need bpf_skb_event_output to produce software event. Added socket_filter, cg_skb, sk_skb prog types to generate sw event. Test bpf code is generated from code snippet:

[PATCH bpf-next v5 2/2] bpf: Add selftests for bpf_perf_event_output

2019-06-25 Thread allanzhang
Software event output is only enabled by a few prog types. This test is to ensure that all supported types are enabled for bpf_perf_event_output successfully. Signed-off-by: allanzhang --- tools/testing/selftests/bpf/test_verifier.c | 33 ++- .../selftests/bpf/verifier/event_output.c

[PATCH bpf-next v5 0/2] bpf: Allow bpf_skb_event_output for more prog types

2019-06-25 Thread allanzhang
Software event output is only enabled by a few prog types right now (TC, LWT out, XDP, sockops). Many other skb based prog types need bpf_skb_event_output to produce software event. More prog types are enabled to access bpf_skb_event_output in this patch. v2 changes: Reformating log message. v3

Re: [PATCH net-next] xdp: Make __mem_id_disconnect static

2019-06-25 Thread Song Liu
On Tue, Jun 25, 2019 at 4:52 AM Jesper Dangaard Brouer wrote: > > On Tue, 25 Jun 2019 10:31:37 +0800 > YueHaibing wrote: > > > Fix sparse warning: > > > > net/core/xdp.c:88:6: warning: > > symbol '__mem_id_disconnect' was not declared. Should it be static? > > I didn't declare it static as I

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

2019-06-25 Thread Thomas Gleixner
On Tue, 25 Jun 2019, Andy Lutomirski wrote: > On Tue, Jun 25, 2019 at 11:27 AM Thomas Gleixner wrote: > > > > On Tue, 25 Jun 2019, Thomas Gleixner wrote: > > > > > On Tue, 25 Jun 2019, Vincenzo Frascino wrote: > > > > > > CC+ Andy > > > > > > > do_hres() in the vDSO generic library masks the hw

[PATCH bpf-next v9 06/10] landlock: Handle filesystem access control

2019-06-25 Thread Mickaël Salaün
This add two Landlock hooks: FS_WALK and FS_PICK. The FS_WALK hook is used to walk through a file path. A program tied to this hook will be evaluated for each directory traversal except the last one if it is the leaf of the path. It is important to differentiate this hook from FS_PICK to enable

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

2019-06-25 Thread Andrew Morton
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 32 bit > values can overflow. DIV_ROUND_DOWN_ULL does it correctly and stashes > the addition into a unsigned long long

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

2019-06-25 Thread Joe Perches
On Tue, 2019-06-25 at 11:15 -0700, Nick Desaulniers wrote: > Unreleased versions of Clang built from source can; the latest release > of Clang-8 doesn't have asm goto support required for > CONFIG_JUMP_LABEL. Things can get complicated based on which kernel > tree/branch (mainline, -next,

Re: [PATCH 08/17] binfmt_flat: consolidate two version of flat_v2_reloc_t

2019-06-25 Thread Al Viro
On Thu, Jun 13, 2019 at 09:08:54AM +0200, Christoph Hellwig wrote: > Two branches of the ifdef maze actually have the same content, so merge > them. > > Signed-off-by: Christoph Hellwig > --- > include/linux/flat.h | 6 ++ > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git

Re: [v3 PATCH 3/4] mm: shrinker: make shrinker not depend on memcg kmem

2019-06-25 Thread Yang Shi
On 6/25/19 3:14 PM, Andrew Morton wrote: On Thu, 13 Jun 2019 05:56:48 +0800 Yang Shi wrote: Currently shrinker is just allocated and can work when memcg kmem is enabled. But, THP deferred split shrinker is not slab shrinker, it doesn't make too much sense to have such shrinker depend on

[PATCH 2/5] powerpc: Kconfig: Remove CONFIG_NODES_SPAN_OTHER_NODES

2019-06-25 Thread Hoan Tran OS
This patch removes CONFIG_NODES_SPAN_OTHER_NODES as it's enabled by default with NUMA. Signed-off-by: Hoan Tran --- arch/powerpc/Kconfig | 9 - 1 file changed, 9 deletions(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 8c1c636..bdde8bc 100644 ---

[PATCH 0/5] Enable CONFIG_NODES_SPAN_OTHER_NODES by default for NUMA

2019-06-25 Thread Hoan Tran OS
This patch set enables CONFIG_NODES_SPAN_OTHER_NODES by default for NUMA. The original patch [1] [1] arm64: Kconfig: Enable NODES_SPAN_OTHER_NODES config for NUMA https://www.spinics.net/lists/arm-kernel/msg737306.html Hoan Tran (5): mm: Enable CONFIG_NODES_SPAN_OTHER_NODES by default for NUMA

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

2019-06-25 Thread Hoan Tran OS
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. Signed-off-by: Hoan Tran --- mm/page_alloc.c | 2 +- 1 file

[PATCH 4/5] sparc: Kconfig: Remove CONFIG_NODES_SPAN_OTHER_NODES

2019-06-25 Thread Hoan Tran OS
This patch removes CONFIG_NODES_SPAN_OTHER_NODES as it's enabled by default with NUMA. Signed-off-by: Hoan Tran --- arch/sparc/Kconfig | 9 - 1 file changed, 9 deletions(-) diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig index 26ab6f5..13449ea 100644 --- a/arch/sparc/Kconfig +++

[PATCH 3/5] x86: Kconfig: Remove CONFIG_NODES_SPAN_OTHER_NODES

2019-06-25 Thread Hoan Tran OS
This patch removes CONFIG_NODES_SPAN_OTHER_NODES as it's enabled by default with NUMA. Signed-off-by: Hoan Tran --- arch/x86/Kconfig | 9 - 1 file changed, 9 deletions(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 2bbbd4d..fa9318c 100644 --- a/arch/x86/Kconfig +++

[PATCH 5/5] s390: Kconfig: Remove CONFIG_NODES_SPAN_OTHER_NODES

2019-06-25 Thread Hoan Tran OS
This patch removes CONFIG_NODES_SPAN_OTHER_NODES as it's enabled by default with NUMA. Signed-off-by: Hoan Tran --- arch/s390/Kconfig | 8 1 file changed, 8 deletions(-) diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig index 109243f..788a8e9 100644 --- a/arch/s390/Kconfig +++

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

2019-06-25 Thread Andrew Morton
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 32 bit > > values can overflow. DIV_ROUND_DOWN_ULL

Re: [PATCH] clk: imx8mq: Mark AHB clock as critical

2019-06-25 Thread Stephen Boyd
Quoting Abel Vesa (2019-06-25 02:01:56) > Keep the AHB clock always on since there is no driver to control it and > all the other clocks that use it as parent rely on it being always enabled. > > Signed-off-by: Abel Vesa > --- > drivers/clk/imx/clk-imx8mq.c | 2 +- > 1 file changed, 1

Re: [v3 PATCH 4/4] mm: thp: make deferred split shrinker memcg aware

2019-06-25 Thread Yang Shi
On 6/25/19 3:00 PM, Andrew Morton wrote: On Thu, 13 Jun 2019 05:56:49 +0800 Yang Shi wrote: Currently THP deferred split shrinker is not memcg aware, this may cause premature OOM with some configuration. For example the below test would run into premature OOM easily: $ cgcreate -g

Re: [PATCH 4.19 84/90] cfg80211: fix memory leak of wiphy device name

2019-06-25 Thread Eric Biggers
On Tue, Jun 25, 2019 at 11:51:36PM +0200, Pavel Machek wrote: > Hi! > > > From: Eric Biggers > > > > commit 4f488fbca2a86cc7714a128952eead92cac279ab upstream. > > > > In wiphy_new_nm(), if an error occurs after dev_set_name() and > > device_initialize() have already been called, it's necessary

Re: [PATCH v5 01/18] kunit: test: add KUnit test runner core

2019-06-25 Thread Luis Chamberlain
On Mon, Jun 17, 2019 at 01:25:56AM -0700, Brendan Higgins wrote: > +/** > + * module_test() - used to register a kunit_module with KUnit. > + * @module: a statically allocated kunit_module. > + * > + * Registers @module with the test framework. See kunit_module for > more > + * information. >

RE: [PATCH V3 3/4] clk: imx: Add support for i.MX8MN clock driver

2019-06-25 Thread Stephen Boyd
Quoting Anson Huang (2019-06-10 19:06:22) > > > > > > Sorry, I am still a little confused, all the clock > > > register(clk_register()) are via each different clock types like > > > imx_clk_gate4/imx_clk_pll14xx, if using clk_hw_register, means we need > > > to re-write the clock driver using

Re: [PATCH] test_power: Add CURRENT and CHARGE_COUNTER properties

2019-06-25 Thread Sebastian Reichel
Hi, On Tue, May 14, 2019 at 06:04:58PM +0800, Lecopzer Chen wrote: > From: "Lecopzer Chen" > > Emulate battery current (variable) and battery CHARGE_COUNTER > (same as battery_capacity) properties. > > Signed-off-by: Lecopzer Chen > Cc: YJ Chiang Thanks for the patch and thanks for taking

mmap/munmap in sysfs

2019-06-25 Thread Bjorn Helgaas
Hi Greg, et al, Userspace can mmap PCI device memory via the resourceN files in sysfs, which use pci_mmap_resource(). I think this path is unaware of power management, so the device may be runtime-suspended, e.g., it may be in D1, D2, or D3, where it will not respond to memory accesses.

Re: [PATCH bpf-next v5 1/2] bpf: Allow bpf_skb_event_output for a few prog types

2019-06-25 Thread Alexei Starovoitov
On Tue, Jun 25, 2019 at 3:23 PM allanzhang wrote: > > Signed-off-by: allanzhang As Daniel mentioned SOB needs to have real name. If you keep ignoring feedback we'll keep rejecting patches without comments.

Re: [PATCH v2 1/5] clk: ingenic: Add missing header in cgu.h

2019-06-25 Thread Stephen Boyd
Quoting Stephen Boyd (2019-06-25 15:17:35) > Quoting Paul Cercueil (2019-06-11 11:07:53) > > The cgu.h has structures that contain 'clk_onecell_data' and 'clk_hw' > > structures (no pointers), so the header should be > > included. > > > > Signed-off-by: Paul Cercueil > > --- > > > > Notes: > >

KASAN: slab-out-of-bounds Read in hdpvr_probe

2019-06-25 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:9939f56e usb-fuzzer: main usb gadget fuzzer driver git tree: https://github.com/google/kasan.git usb-fuzzer console output: https://syzkaller.appspot.com/x/log.txt?x=12e0f72da0 kernel config:

Re: [PATCH v2 1/5] clk: ingenic: Add missing header in cgu.h

2019-06-25 Thread Paul Cercueil
Le mer. 26 juin 2019 à 0:42, Stephen Boyd a écrit : Quoting Stephen Boyd (2019-06-25 15:17:35) Quoting Paul Cercueil (2019-06-11 11:07:53) > The cgu.h has structures that contain 'clk_onecell_data' and 'clk_hw' > structures (no pointers), so the header should be > included. > >

Re: [PATCH 3/5] x86: Kconfig: Remove CONFIG_NODES_SPAN_OTHER_NODES

2019-06-25 Thread Thomas Gleixner
Hoan, On Tue, 25 Jun 2019, Hoan Tran OS wrote: Please use 'x86/Kconfig: ' as prefix. > This patch removes CONFIG_NODES_SPAN_OTHER_NODES as it's > enabled by default with NUMA. Please do not use 'This patch' in changelogs. It's pointless because we already know that this is a patch. See also

Re: [PATCH v2 2/5] clk: ingenic: Handle setting the Low-Power Mode bit

2019-06-25 Thread Stephen Boyd
Quoting Paul Cercueil (2019-06-11 11:07:54) > The Low-Power Mode, when enabled, will make the "wait" MIPS instruction > suspend the system. > > This is not really clock-related, but this bit happens to be in the > register set of the CGU. > > Signed-off-by: Paul Cercueil > --- Applied to

Re: [PATCH v2 4/5] clk: ingenic: Remove unused functions

2019-06-25 Thread Stephen Boyd
Quoting Paul Cercueil (2019-06-11 11:07:56) > These functions are not called anywhere anymore, they can safely be > removed. > > Signed-off-by: Paul Cercueil > --- Applied to clk-next

Re: [PATCH v2 5/5] MIPS: Remove dead code

2019-06-25 Thread Stephen Boyd
Quoting Paul Cercueil (2019-06-11 11:07:57) > Remove the unused include. > > Signed-off-by: Paul Cercueil > --- Applied to clk-next

Re: [PATCH v2 3/5] MIPS: jz4740: PM: Let CGU driver suspend clocks and set sleep mode

2019-06-25 Thread Stephen Boyd
Quoting Paul Cercueil (2019-06-11 11:07:55) > Instead of forcing the jz4740 clocks to suspend here, we let the CGU > driver handle it. > We also let the CGU driver set the "sleep mode" bit. > > This has the added benefit that now it is possible to build a kernel on > SoCs newer than the JZ4740

Re: [RFC PATCH v4 net-next 10/11] ARM: dts: am57xx-idk: add dt nodes for new cpsw switch dev driver

2019-06-25 Thread Ivan Khoronzhuk
On Fri, Jun 21, 2019 at 09:13:13PM +0300, Grygorii Strashko wrote: Add DT nodes for new cpsw switch dev driver. Signed-off-by: Grygorii Strashko --- arch/arm/boot/dts/am571x-idk.dts | 28 + arch/arm/boot/dts/am572x-idk.dts | 5 +++ arch/arm/boot/dts/am574x-idk.dts

Re: [PATCH] clk: qcom: Fix -Wunused-const-variable

2019-06-25 Thread Stephen Boyd
Quoting Nathan Huckleberry (2019-06-11 14:11:34) > Clang produces the following warning > > drivers/clk/qcom/gcc-msm8996.c:133:32: warning: unused variable > 'gcc_xo_gpll0_gpll2_gpll3_gpll0_early_div_map' [-Wunused-const-variable] > static const struct > parent_map

Re: [PATCH v2 0/3] ceph: don't NULL terminate virtual xattr values

2019-06-25 Thread Steven Rostedt
On Thu, 20 Jun 2019 09:54:13 -0400 Jeff Layton wrote: > > snprintf() to a temporary buffer, and memcpy() to the final destination. > > These are all fairly small buffers (most are single integer values), > > so the overhead should be minimal, right? > > > > Yeah. I was trying to avoid having

Re: [PATCH bpf-next v9 05/10] bpf,landlock: Add a new map type: inode

2019-06-25 Thread Al Viro
On Tue, Jun 25, 2019 at 11:52:34PM +0200, Mickaël Salaün wrote: > +/* must call iput(inode) after this call */ > +static struct inode *inode_from_fd(int ufd, bool check_access) > +{ > + struct inode *ret; > + struct fd f; > + int deny; > + > + f = fdget(ufd); > + if

Re: [PATCH v4] driver core: Fix use-after-free and double free on glue directory

2019-06-25 Thread Benjamin Herrenschmidt
On Tue, 2019-06-25 at 23:06 +0800, Muchun Song wrote: > Benjamin Herrenschmidt 于2019年6月19日周三 > 上午5:51写道: > > > > On Tue, 2019-06-18 at 18:13 +0200, Greg KH wrote: > > > > > > Again, I am totally confused and do not see a patch in an email > > > that > > > I > > > can apply... > > > > > >

Re: [PATCH 01/34] clk: clk-cdce706: simplify getting the adapter of a client

2019-06-25 Thread Stephen Boyd
Quoting Wolfram Sang (2019-06-08 03:55:40) > We have a dedicated pointer for that, so use it. Much easier to read and > less computation involved. > > Signed-off-by: Wolfram Sang > --- Applied to clk-next

[PATCH] RISC-V: defconfig: enable MMC & SPI for RISC-V

2019-06-25 Thread Atish Patra
Currently, riscv upstream defconfig doesn't let you boot through userspace if rootfs is on the SD card. Let's enable MMC & SPI drivers as well so that one can boot to the user space using default config in upstream kernel. Signed-off-by: Atish Patra --- arch/riscv/configs/defconfig | 5 +

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

2019-06-25 Thread Nick Desaulniers
On Tue, Jun 25, 2019 at 3:29 PM Joe Perches wrote: > > On Tue, 2019-06-25 at 11:15 -0700, Nick Desaulniers wrote: > > Unreleased versions of Clang built from source can; the latest release > > of Clang-8 doesn't have asm goto support required for > > CONFIG_JUMP_LABEL. Things can get complicated

Re: [PATCH v4] clk: qoriq: add support for lx2160a

2019-06-25 Thread Stephen Boyd
Quoting Vabhav Sharma (2019-04-25 23:53:38) > Add clockgen support and configuration for NXP SoC lx2160a > with compatible property as "fsl,lx2160a-clockgen". > > Signed-off-by: Tang Yuantian > Signed-off-by: Yogesh Gaur > Signed-off-by: Vabhav Sharma > Acked-by: Scott Wood > Acked-by:

Re: [PATCH v3 3/7] firmware: raspberrypi: register clk device

2019-06-25 Thread Stephen Boyd
Quoting Nicolas Saenz Julienne (2019-06-11 10:58:38) > Since clk-raspberrypi is tied to the VC4 firmware instead of particular > hardware it's registration should be performed by the firmware driver. > > Signed-off-by: Nicolas Saenz Julienne > Acked-by: Eric Anholt > --- Reviewed-by: Stephen

Re: [PATCH v3 5/7] clk: raspberrypi: register platform device for raspberrypi-cpufreq

2019-06-25 Thread Stephen Boyd
Quoting Nicolas Saenz Julienne (2019-06-11 10:58:42) > As 'clk-raspberrypi' depends on RPi's firmware interface, which might be > configured as a module, the cpu clock might not be available for the > cpufreq driver during it's init process. So we register the > 'raspberrypi-cpufreq' platform

Re: [PATCH v3 2/7] clk: bcm283x: add driver interfacing with Raspberry Pi's firmware

2019-06-25 Thread Stephen Boyd
Quoting Nicolas Saenz Julienne (2019-06-11 10:58:36) > Raspberry Pi's firmware offers an interface though which update it's > clock's frequencies. This is specially useful in order to change the CPU > clock (pllb_arm) which is 'owned' by the firmware and we're unable to > scale using the register

Re: [PATCH v3 1/7] clk: bcm2835: remove pllb

2019-06-25 Thread Stephen Boyd
Quoting Nicolas Saenz Julienne (2019-06-11 10:58:34) > Raspberry Pi's firmware controls this pll, we should use the firmware > interface to access it. > > Signed-off-by: Nicolas Saenz Julienne > Acked-by: Eric Anholt > --- Reviewed-by: Stephen Boyd

Re: [PATCH v4 0/7] cpufreq support for Raspberry Pi

2019-06-25 Thread Stephen Boyd
Quoting Stefan Wahren (2019-06-22 02:54:47) > Hi Stephen, > hi Mike, > > Am 13.06.19 um 06:31 schrieb Stefan Wahren: > > Hi Florian, > > hi Stephen, > > > > Am 13.06.19 um 05:31 schrieb Florian Fainelli: > >> On 6/12/2019 11:24 AM, Nicolas Saenz Julienne wrote: > >>> Hi all, > >>> this aims at

Re: [PATCH bpf-next v9 02/10] bpf: Add eBPF program subtype and is_valid_subtype() verifier

2019-06-25 Thread Alexei Starovoitov
On Tue, Jun 25, 2019 at 3:04 PM Mickaël Salaün wrote: > > The goal of the program subtype is to be able to have different static > fine-grained verifications for a unique program type. > > The struct bpf_verifier_ops gets a new optional function: > is_valid_subtype(). This new verifier is called

Re: [PATCH v4 1/7] clk: bcm2835: remove pllb

2019-06-25 Thread Stephen Boyd
Quoting Nicolas Saenz Julienne (2019-06-12 11:24:53) > Raspberry Pi's firmware controls this pll, we should use the firmware > interface to access it. > > Signed-off-by: Nicolas Saenz Julienne > Acked-by: Eric Anholt > --- Applied to clk-next

Re: [PATCH v4 3/7] firmware: raspberrypi: register clk device

2019-06-25 Thread Stephen Boyd
Quoting Nicolas Saenz Julienne (2019-06-12 11:24:55) > Since clk-raspberrypi is tied to the VC4 firmware instead of particular > hardware it's registration should be performed by the firmware driver. > > Signed-off-by: Nicolas Saenz Julienne > Acked-by: Eric Anholt > --- Applied to clk-next

Re: [PATCH v4 2/7] clk: bcm283x: add driver interfacing with Raspberry Pi's firmware

2019-06-25 Thread Stephen Boyd
Quoting Nicolas Saenz Julienne (2019-06-12 11:24:54) > Raspberry Pi's firmware offers an interface though which update it's > clock's frequencies. This is specially useful in order to change the CPU > clock (pllb_arm) which is 'owned' by the firmware and we're unable to > scale using the register

Re: [PATCH v4 5/7] clk: raspberrypi: register platform device for raspberrypi-cpufreq

2019-06-25 Thread Stephen Boyd
Quoting Nicolas Saenz Julienne (2019-06-12 11:24:57) > As 'clk-raspberrypi' depends on RPi's firmware interface, which might be > configured as a module, the cpu clock might not be available for the > cpufreq driver during it's init process. So we register the > 'raspberrypi-cpufreq' platform

Re: KASAN: slab-out-of-bounds Write 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=14a4e9b5a0 start commit:

mmotm 2019-06-25-16-20 uploaded

2019-06-25 Thread akpm
The mm-of-the-moment snapshot 2019-06-25-16-20 has been uploaded to http://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: http://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You

[PATCH v1 0/2] char: tpm: add new driver for tpm i2c ptp

2019-06-25 Thread Oshri Alkoby
This patch set adds support for TPM devices that implement the I2C interface defined by TCG PTP specification. The driver was tested on Raspberry-Pie 3, using Nuvoton NPCT75X TPM. Oshri Alkoby (2): dt-bindings: tpm: add the TPM I2C PTP device tree binding documentation char: tpm: add new

[PATCH v1 2/2] char: tpm: add new driver for tpm i2c ptp

2019-06-25 Thread Oshri Alkoby
Signed-off-by: Oshri Alkoby --- drivers/char/tpm/Kconfig | 22 + drivers/char/tpm/Makefile |1 + drivers/char/tpm/tpm_i2c_ptp.c | 1099 3 files changed, 1122 insertions(+) create mode 100644 drivers/char/tpm/tpm_i2c_ptp.c diff --git

[PATCH v1 1/2] dt-bindings: tpm: add the TPM I2C PTP device tree binding documentation

2019-06-25 Thread Oshri Alkoby
Signed-off-by: Oshri Alkoby --- .../bindings/security/tpm/tpm-i2c-ptp.txt | 17 + 1 file changed, 17 insertions(+) create mode 100644 Documentation/devicetree/bindings/security/tpm/tpm-i2c-ptp.txt diff --git

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

2019-06-25 Thread Joe Perches
On Tue, 2019-06-25 at 15:57 -0700, Nick Desaulniers wrote: > consider most other GNU C extensions. How do I > test whether they exist in my compiler or not? Is it everything or > nothing (do they all have to exist?). Until such time as the linux source code supports alternate mechanisms for

[PATCH 3/5] bus: ti-sysc: Switch to SPDX license identifier

2019-06-25 Thread Suman Anna
Use the appropriate SPDX license identifier in the TI sysc interconnect target driver source files and drop the previous boilerplate license text. Also, add the the SPDX license identifier in the associated ti-sysc header files. Signed-off-by: Suman Anna --- drivers/bus/ti-sysc.c

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

2019-06-25 Thread Stephen Rothwell
Hi all, Commits 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") are missing a Signed-off-by from

[PATCH 2/5] dt-bindings: ti-sysc: Add SPDX license identifier

2019-06-25 Thread Suman Anna
Add the appropriate SPDX license identifier to the common TI sysc bindings header file. Signed-off-by: Suman Anna --- include/dt-bindings/bus/ti-sysc.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-bindings/bus/ti-sysc.h b/include/dt-bindings/bus/ti-sysc.h index

[PATCH 0/5] Minor ti-sysc cleanups

2019-06-25 Thread Suman Anna
Hi Tony, The following series includes minor cleanup patches against the ti-sysc code. Patches are based on top of all your 5.3 staged branches. Feel free to pick them up for either 5.3 (if it is not too late) or 5.4 merge window. The first 4 patches are non-coding changes, and the last patch

[PATCH 5/5] bus: ti-sysc: Simplify cleanup upon failures in sysc_probe()

2019-06-25 Thread Suman Anna
The clocks are not yet parsed and prepared until after a successful sysc_get_clocks(), so there is no need to unprepare the clocks upon any failure of any of the prior functions in sysc_probe(). The current code path would have been a no-op because of the clock validity checks within

[RFC][PATCH] regmap: Drop CONFIG_64BIT checks from core

2019-06-25 Thread Marek Vasut
Drop the CONFIG_64BIT checks from core regmap code, as it is well possible to access e.g. an SPI device with 64bit registers from a 32bit CPU. The CONFIG_64BIT checks are still left in place in the regmap mmio code however. Signed-off-by: Marek Vasut Cc: Rafael J. Wysocki Cc: Mark Brown ---

[PATCH 1/5] MAINTAINERS: Add ti-sysc files under the OMAP2+ entry

2019-06-25 Thread Suman Anna
Add the ti-sysc source files under the OMAP2+ entry so that the get_maintainer script also generates the linux-omap list to be cc'd for all patches touching these files. Signed-off-by: Suman Anna --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS

[PATCH 4/5] bus: ti-sysc: Add missing kerneldoc comments

2019-06-25 Thread Suman Anna
A few fields in various structures is missing the corresponding kerneldoc comments. Add them. Also, fixed the comment for sidlemodes. Signed-off-by: Suman Anna --- drivers/bus/ti-sysc.c | 7 +++ include/linux/platform_data/ti-sysc.h | 5 +++-- 2 files changed, 10

<    5   6   7   8   9   10   11   12   13   >