[PATCH v2 18/19] clk: meson: remove obsolete cpu_clk

2018-02-12 Thread Jerome Brunet
meson8b cpu_clk has been replaced by a set of divider and mux clocks. meson_cpu_clk is no longer used and can be removed Acked-by: Martin Blumenstingl Signed-off-by: Jerome Brunet --- drivers/clk/meson/Makefile | 2 +- drivers/clk/meson/clk-cpu.c | 178 ---

Re: [PATCH 10/21] regulator: lp8788-ldo: Pass descriptor instead of GPIO number

2018-02-12 Thread Lee Jones
On Mon, 12 Feb 2018, Linus Walleij wrote: > Instead of passing a global GPIO number, pass a descriptor looked > up with the standard devm_gpiod_get_index_optional() call. > > This driver has supported passing a LDO enable GPIO for years, > yet this facility has never been put to use in the upstre

[PATCH 4/4] sched/fair: Do not migrate due to a sync wakeup on exit

2018-02-12 Thread Mel Gorman
When a task exits, it notifies the parent that it has exited. This is a sync wakup and the exiting task may pull the parent towards the wakers CPU. For even simple workloads like using a shell, it was observed that the shell is pulled across nodes by exiting processes. This is daft as the parent ma

[PATCH v2 16/19] clk: meson: split divider and gate part of mpll

2018-02-12 Thread Jerome Brunet
The mpll clock is a kind of fractional divider which can gate. When the RW operation have been added, enable/disable ops have been mistakenly inserted in this driver. These ops are essentially a poor copy/paste of the generic gate ops. This change removes the gate ops from the mpll driver and inse

[PATCH v2 15/19] clk: meson: migrate plls clocks to clk_regmap

2018-02-12 Thread Jerome Brunet
Rework meson pll driver to use clk_regmap and move meson8b, gxbb and axg's clock using meson_clk_pll to clk_regmap. This rework is not just about clk_regmap, there a serious clean-up of the driver code: * Add lock and reset field: Previously inferred from the n field. * Simplify the reset logic: C

Re: [PATCH] PCI/portdrv: Remove "pcie_hp=nomsi" kernel parameter

2018-02-12 Thread Bjorn Helgaas
On Sun, Feb 11, 2018 at 10:25:25AM +0100, Lukas Wunner wrote: > On Sat, Feb 10, 2018 at 08:48:15PM -0600, Bjorn Helgaas wrote: > > 7570a333d8b0 ("PCI: Add pcie_hp=nomsi to disable MSI/MSI-X for pciehp > > driver") added the "pcie_hp=nomsi" kernel parameter to work around this > > error on shutdown:

[PATCH v2 13/19] clk: meson: migrate mplls clocks to clk_regmap

2018-02-12 Thread Jerome Brunet
Rework meson mpll driver to use clk_regmap and move meson8b, gxbb and axg clocks using meson_clk_mpll to clk_regmap Signed-off-by: Jerome Brunet --- drivers/clk/meson/axg.c | 245 +-- drivers/clk/meson/clk-mpll.c | 102 +++--- drivers/clk/

[PATCH v2 14/19] clk: meson: migrate the audio divider clock to clk_regmap

2018-02-12 Thread Jerome Brunet
Rework meson audio divider driver to use clk_regmap and move gxbb clock using meson_clk_audio_divider to clk_regmap. Signed-off-by: Jerome Brunet --- drivers/clk/meson/clk-audio-divider.c | 63 +++ drivers/clk/meson/clkc.h | 5 +-- drivers/clk/meson/

[PATCH v2 09/19] clk: meson: migrate gates to clk_regmap

2018-02-12 Thread Jerome Brunet
Move meson8b, gxbb and axg clocks using clk_gate to clk_regmap Signed-off-by: Jerome Brunet --- drivers/clk/meson/Kconfig | 4 +- drivers/clk/meson/axg.c | 72 ++-- drivers/clk/meson/clkc.h| 20 ++-- drivers/clk/meson/gxbb.c| 266 +++-

[PATCH v2 10/19] clk: meson: migrate dividers to clk_regmap

2018-02-12 Thread Jerome Brunet
Move meson8b, gxbb and axg clocks using clk_divider to clk_regmap Signed-off-by: Jerome Brunet --- drivers/clk/meson/axg.c | 61 ++--- drivers/clk/meson/gxbb.c| 217 ++-- drivers/clk/meson/meson8b.c | 23 ++--- 3 files changed, 142 insert

[PATCH v2 11/19] clk: meson: migrate muxes to clk_regmap

2018-02-12 Thread Jerome Brunet
Move meson8b, gxbb and axg clocks using clk_mux to clk_regmap Also remove a few useless tables in the process Signed-off-by: Jerome Brunet --- drivers/clk/meson/axg.c | 60 - drivers/clk/meson/gxbb.c| 310 +--- drivers/clk/meson/meson8b.c

[PATCH v2 12/19] clk: meson: add regmap helpers for parm

2018-02-12 Thread Jerome Brunet
Meson clock drivers are using struct parm to describe each field of the clock provider. Providing helpers to access these fields with regmap helps to keep drivers readable Signed-off-by: Jerome Brunet --- drivers/clk/meson/clkc.h | 16 1 file changed, 16 insertions(+) diff --gi

Re: [PATCH 1/4 v6] lib: debugobjects: export max loops counter

2018-02-12 Thread Thomas Gleixner
On Tue, 6 Feb 2018, Yang Shi wrote: > @@ -720,7 +721,7 @@ static void __debug_check_no_obj_freed(const void > *address, unsigned long size) > enum debug_obj_state state; > struct debug_bucket *db; > struct debug_obj *obj; > - int cnt; > + int cnt, max_loops = 0; > >

Re: possible deadlock in perf_trace_init (2)

2018-02-12 Thread Dmitry Vyukov
On Sun, Dec 3, 2017 at 6:49 PM, syzbot wrote: > Hello, > > syzkaller hit the following crash on > d127129e85a020879f334154300ddd3f7ec21c1e > git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/master > compiler: gcc (GCC) 7.1.1 20170620 > .config is attached > Raw console output is a

[PATCH 3/4] sched/fair: Do not migrate on wake_affine_weight if weights are equal

2018-02-12 Thread Mel Gorman
wake_affine_weight() will consider migrating a task to, or near, the current CPU if there is a load imbalance. If the CPUs share LLC then either CPU is valid as a search-for-idle-sibling target and equally appropriate for stacking two tasks on one CPU if an idle sibling is unavailable. If they do n

Re: possible deadlock in perf_event_ctx_lock_nested

2018-02-12 Thread Dmitry Vyukov
On Fri, Oct 27, 2017 at 5:33 PM, Peter Zijlstra wrote: > On Fri, Oct 27, 2017 at 05:11:37PM +0200, Peter Zijlstra wrote: >> On Fri, Oct 27, 2017 at 01:30:30AM -0700, syzbot wrote: >> >> > == >> > WARNING: possible circular locking dependency dete

[PATCH v2 08/19] clk: meson: add regmap to the clock controllers

2018-02-12 Thread Jerome Brunet
This change registers a regmap in meson8b, gxbb and axg controllers. The clock are still accessing their registers directly through iomem. Once all clocks handled by these controllers have been move to regmap, the regmap register will be removed and replaced with a syscon request. This is needed b

[PATCH v2 06/19] clk: meson: switch gxbb ao_clk to clk_regmap

2018-02-12 Thread Jerome Brunet
Drop the gxbb ao specific regmap based clock and use the meson clk_regmap based clock instead. Signed-off-by: Jerome Brunet --- drivers/clk/meson/Kconfig | 1 + drivers/clk/meson/Makefile | 2 +- drivers/clk/meson/gxbb-aoclk.c | 20 ++-- drivers/clk/meson/gxbb-aoclk.h

[PATCH v2] MAINTAINERS: add Freescale pin controllers

2018-02-12 Thread Stefan Agner
Add Dong Aisheng, Fabio Estevam, Shawn Guo and myself as maintainer and the Pengutronix kernel team as reviewer. Signed-off-by: Stefan Agner Reviewed-by: Fabio Estevam --- MAINTAINERS | 11 +++ 1 file changed, 11 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 82ad0eabce4f..

[PATCH v2 05/19] clk: meson: add regmap clocks

2018-02-12 Thread Jerome Brunet
Meson clock controllers need to move the classical iomem registers to regmap. This is triggered because the HHI controllers found on the GXBB and GXL host more than just clocks. To properly handle this, we would like to migrate HHI to syscon. Also GXBB AO clock controller already use regmap, AXG AO

[PATCH v2 01/19] clk: meson: use dev pointer where possible

2018-02-12 Thread Jerome Brunet
The 'dev' pointer is directly available in gxbb and axg clock controller, so consistently use it instead of going the through the 'pdev' pointer once in while Signed-off-by: Jerome Brunet --- drivers/clk/meson/axg.c | 8 drivers/clk/meson/gxbb.c | 2 +- 2 files changed, 5 insertions(+)

[PATCH v2 03/19] clk: meson: only one loop index is necessary in probe

2018-02-12 Thread Jerome Brunet
We don't need several loop index variables in the probe function This is far from being critical but since we are doing a vast rework of meson clock controllers, now is the time to lower the entropy a bit Signed-off-by: Jerome Brunet --- drivers/clk/meson/axg.c | 8 drivers/clk/mes

[PATCH v2 02/19] clk: meson: use devm_of_clk_add_hw_provider

2018-02-12 Thread Jerome Brunet
There is no remove callbacks in meson's clock controllers and of_clk_del_provider is never called if of_clk_add_hw_provider has been executed, introducing a potential memory leak. Fixing this by the using the devm variant. In reality, the leak would never happen since these controllers are never u

Re: B43 driver no longer works in Linux 4.15 (bisected)

2018-02-12 Thread Kalle Valo
James Hogan writes: > Hi Adric, > > On Mon, Feb 05, 2018 at 01:23:31PM -0500, Adric Blake wrote: >> In the time between Linux 4.15-rc8 and -rc9, my wireless driver, b43, >> would no longer load automatically. When I modprobe the b43 (and ssb) >> modules, the device still didn't appear in NetworkM

Re: [PATCH] acpi, spcr: Make SPCR available to x86

2018-02-12 Thread Timur Tabi
On 2/12/18 8:49 AM, Prarit Bhargava wrote: That's true on ARM64. I specifically did not enable the console by default on x86. There are users who do not want a console active during boot & runtime. H... That's a good point. On ARM systems with SPCR, you get a console whether you like it

Re: [PATCH 02/21] regulator: fixed: Convert to use GPIO descriptor only

2018-02-12 Thread Andy Shevchenko
On Mon, 2018-02-12 at 14:16 +0100, Linus Walleij wrote: > As we augmented the regulator core to accept a GPIO descriptor instead > of a GPIO number, we can augment the fixed GPIO regulator to look up > and pass that descriptor directly from device tree or board GPIO > descriptor look up tables. >

Re: [PATCH] acpi, spcr: Make SPCR available to x86

2018-02-12 Thread Prarit Bhargava
On 02/12/2018 09:56 AM, Peter Zijlstra wrote: > On Mon, Feb 12, 2018 at 08:47:57AM -0500, Prarit Bhargava wrote: >> >> >> On 02/12/2018 08:34 AM, Peter Zijlstra wrote: >>> On Thu, Jan 18, 2018 at 10:09:51AM -0500, Prarit Bhargava wrote: config ACPI_SPCR_TABLE + bool "ACPI Serial Port

Re: Uprobe: Bug(?) when probing small binaries

2018-02-12 Thread Oleg Nesterov
Hi Ravi, On 02/12, Ravi Bangoria wrote: > > I'm observing a bug in the uprobe infrastructure. I am not sure, > When target binary > is quite small, uprobe replaces 'trap' instruction at two different > places. Ex, but this is actually "the same place" (in the file), just 2 virtual addrs differ

Re: [PATCH v2 01/12] ARM: dts: STi: Fix bindings notation

2018-02-12 Thread Rob Herring
On Mon, Feb 12, 2018 at 8:42 AM, wrote: > From: Patrice Chotard > > Remove leading 0x and 0s from bindings notation > Add missing unit-address and remove some which are useless. > > This allows to fix several warnings like : > > Warning (unit_address_vs_reg): Node has a reg or ranges proper

Re: [PATCH v2 10/12] ARM: dts: STi: Add fake reg property for clocks

2018-02-12 Thread Rob Herring
On Mon, Feb 12, 2018 at 8:43 AM, wrote: > From: Patrice Chotard > > For all clock's element inside SoC, add a fake reg property, > this allows to fix the following warnings when compiling > dtb with W=1 option : > > arch/arm/boot/dts/stih410-b2120.dtb: Warning (simple_bus_reg): > Node /clocks/cl

Re: [RFC PATCH 4/7] kconfig: support new special property shell=

2018-02-12 Thread Masahiro Yamada
2018-02-12 23:53 GMT+09:00 Ulf Magnusson : > On Mon, Feb 12, 2018 at 3:21 PM, Masahiro Yamada > wrote: >> 'syncconfig' in a more proper name > > Wonder if --update-config-files-for-build or something would be an > even better name. I want to use a name that ends with 'config' like any other confi

Re: [RFC PATCH 4/7] kconfig: support new special property shell=

2018-02-12 Thread Kees Cook
On Mon, Feb 12, 2018 at 6:39 AM, Masahiro Yamada wrote: > 2018-02-12 2:56 GMT+09:00 Kees Cook : >> I think it would work to skip KBUILD_CPPFLAGS right up until it >> didn't. Since we have the arch split, we can already add -m32 to the >> 32-bit case, etc. However, I worry about interaction with ot

Re: [patch v14 4/4] Documentation: jtag: Add ABI documentation

2018-02-12 Thread Pavel Machek
Hi! > @@ -0,0 +1,27 @@ > +What:/dev/jtag[0-9]+ > +Date:October 2017 > +KernelVersion: 4.15 > +Contact: oleksan...@mellanox.com > +Description: > + The misc device files /dev/jtag* are the interface > + between JTAG master interface

Re: INFO: rcu detected stall in __xfrm_decode_session

2018-02-12 Thread Dmitry Vyukov
On Mon, Feb 12, 2018 at 4:22 PM, syzbot wrote: > Hello, > > syzbot hit the following crash on net-next commit > d0adb51edb73c94a595bfa9d9bd8b35977e74fbf > > Unfortunately, I don't have any reproducer for this crash yet. > Raw console output is attached. > compiler: gcc (GCC) 7.1.1 20170620 > .conf

Re: [PATCH v2] i2c: i801: Register optional lis3lv02d i2c device on Dell machines

2018-02-12 Thread Andy Shevchenko
On Mon, Feb 12, 2018 at 12:03 AM, Michał Kępień wrote: >> Signed-off-by: Pali Rohár >> --- >> Changes since v1: >> * Added Dell Vostro V131 based on Michał Kępień testing > > I tested this patch on a Vostro V131 and it seems to work as expected: > "lis3lv02d: 8 bits sensor found" is logged duri

Re: INFO: rcu detected stall in _decode_session6

2018-02-12 Thread Dmitry Vyukov
On Mon, Feb 12, 2018 at 4:23 PM, syzbot wrote: > Hello, > > syzbot hit the following crash on net-next commit > d0adb51edb73c94a595bfa9d9bd8b35977e74fbf > > Unfortunately, I don't have any reproducer for this crash yet. > Raw console output is attached. > compiler: gcc (GCC) 7.1.1 20170620 > .conf

Re: [Letux-kernel] [PATCH v5 3/5] misc serdev: Add w2sg0004 (gps receiver) power control driver

2018-02-12 Thread Pavel Machek
Hi! > > Let's restart this discussion and focus on the main roadblock (others > > are minor details which can be sorted out later). > > > > If it feels like a hack, the key issue seems to me to be the choice of > > the API to present the GPS data to user space. Right? > > Or even more fundamenta

Re: [Letux-kernel] [PATCH v5 3/5] misc serdev: Add w2sg0004 (gps receiver) power control driver

2018-02-12 Thread Pavel Machek
Hi! > >> I'm sorry (and I know this discussion has been going on for a long > >> time),but this still feels like too much of a hack. > > Happy new year ... Happy new attempt... > > Let's restart this discussion and focus on the main roadblock (others are > minor > details which can be sorted ou

Re: INFO: rcu detected stall in xfrm_confirm_neigh

2018-02-12 Thread Dmitry Vyukov
On Mon, Feb 12, 2018 at 4:23 PM, syzbot wrote: > Hello, > > syzbot hit the following crash on net-next commit > 9515a2e082f91457db0ecff4b65371d0fb5d9aad (Thu Jan 25 03:37:38 2018 +) > net/ipv4: Allow send to local broadcast from a socket bound to a VRF > > So far this crash happened 6 times on

Re: [PATCH] x86/cpu, x86/pti: Do not enable PTI on AMD processors

2018-02-12 Thread Pavel Machek
On Tue 2017-12-26 23:43:54, Tom Lendacky wrote: > AMD processors are not subject to the types of attacks that the kernel > page table isolation feature protects against. The AMD microarchitecture > does not allow memory references, including speculative references, that > access higher privileged

[PATCH 1/2] x86/speculation: Correct Speculation Control microcode blacklist again

2018-02-12 Thread David Woodhouse
Arjan points out that the Intel document only clears the 0xc2 microcode on *some* parts with CPUID 506E3 (INTEL_FAM6_SKYLAKE_DESKTOP stepping 3). For the Skylake H/S platform it's OK but for Skylake E3 which has the same CPUID it isn't (yet) cleared. So removing it from the blacklist was premature

[PATCH 2/2] x86/speculation: Support "Enhanced IBRS" on future CPUs

2018-02-12 Thread David Woodhouse
The original IBRS hack in microcode is horribly slow. For the next generation of CPUs, as a stopgap until we get a proper fix, Intel promise an "Enhanced IBRS" which will be fast. The assumption is that predictions in the BTB/RSB will be tagged with the VMX mode and ring that they were learned in,

Re: [PATCH 5/6] Documentation for Pmalloc

2018-02-12 Thread Jonathan Corbet
On Fri, 9 Feb 2018 19:37:14 -0800 Matthew Wilcox wrote: > I've done this as the first line of my new documentation files: > > .. SPDX-License-Identifier: CC-BY-SA-4.0 > > I think this is the CC license that's closest in spirit to the GPL without > the unintended consequences of the GPL when use

Re: [PATCH v3 1/2] drm/virtio: Add window server support

2018-02-12 Thread Gerd Hoffmann
> > I was more thinking about a struct containing enough info to allow the > > proxy on the host side find the buffer, something like: > > > > struct { > >enum type { stdvga, virtio-cpu, ... } > >pcislot device; > >union { > > int stdvga_pcibar_offset; > >

Re: [RFC 2/2] Introduce sysctl(s) for the migration costs

2018-02-12 Thread Peter Zijlstra
On Thu, Feb 08, 2018 at 02:19:55PM -0800, Rohit Jain wrote: > This patch introduces the sysctl for sched_domain based migration costs. > These in turn can be used for performance tuning of workloads. Smells like a bad attempt to (again) revive commit: 0437e109e184 ("sched: zap the migration ini

Re: B43 driver no longer works in Linux 4.15 (bisected)

2018-02-12 Thread James Hogan
On Mon, Feb 12, 2018 at 05:08:10PM +0200, Kalle Valo wrote: > James Hogan writes: > > On Mon, Feb 05, 2018 at 01:23:31PM -0500, Adric Blake wrote: > >> I bisected to this "first bad commit:" > >> > >> commit 58eae1416b804d900014d84feadda7195007cc30 > >> Author: James Hogan > >> Date: Mon Jan 1

Re: [PATCH] x86/speculation: Clean up various Spectre related details

2018-02-12 Thread David Woodhouse
On Sun, 2018-02-11 at 20:43 +0100, Ingo Molnar wrote: > > And should these say 'Spectre v2' not just 'Spectre'? > > Yeah, you are probably right, but I didn't want to make the messages too > specific  > - do we really know that this is the end of Spectre-style speculation holes? Well... if a n

Re: [PATCH v2] i2c: i801: Register optional lis3lv02d i2c device on Dell machines

2018-02-12 Thread Pali Rohár
On Wednesday 31 January 2018 14:27:51 Andy Shevchenko wrote: > On Wed, Jan 31, 2018 at 2:03 PM, Pali Rohár wrote: > > On Sunday 28 January 2018 17:00:35 Andy Shevchenko wrote: > >> On Sun, Jan 28, 2018 at 4:45 PM, Pali Rohár wrote: > > >> > ACPI device name is SMO8800, SMO8810, ... Will that acp

Re: [PATCH 4/6] Protectable Memory

2018-02-12 Thread Mike Rapoport
On Mon, Feb 12, 2018 at 03:41:57PM +0200, Igor Stoppa wrote: > > > On 12/02/18 14:53, Mike Rapoport wrote: > > 'scripts/kernel-doc -v -none > > That has a quite interesting behavior. > > I run it on genalloc.c while I am in the process of adding the brackets > to the function names in the kern

Re: [PATCH 2/2] clk: meson-axg: Add AO Clock and Reset controller driver

2018-02-12 Thread Jerome Brunet
On Fri, 2018-02-09 at 15:00 +0800, Yixun Lan wrote: > Adds a Clock and Reset controller driver for the Always-On part > of the Amlogic Meson-AXG SoC. > > Signed-off-by: Qiufang Dai > Signed-off-by: Yixun Lan > --- > drivers/clk/meson/Makefile| 2 +- > drivers/clk/meson/axg-aoclk.c | 236

Re: [RFC PATCH 4/7] kconfig: support new special property shell=

2018-02-12 Thread Ulf Magnusson
On Mon, Feb 12, 2018 at 4:22 PM, Masahiro Yamada wrote: > 2018-02-12 23:53 GMT+09:00 Ulf Magnusson : >> On Mon, Feb 12, 2018 at 3:21 PM, Masahiro Yamada >> wrote: >>> 'syncconfig' in a more proper name >> >> Wonder if --update-config-files-for-build or something would be an >> even better name. >

Re: [PATCH] x86/cpu, x86/pti: Do not enable PTI on AMD processors

2018-02-12 Thread Brian Gerst
On Mon, Feb 12, 2018 at 10:26 AM, Pavel Machek wrote: > On Tue 2017-12-26 23:43:54, Tom Lendacky wrote: >> AMD processors are not subject to the types of attacks that the kernel >> page table isolation feature protects against. The AMD microarchitecture >> does not allow memory references, includ

Re: [PATCH v3 3/3] sched: update blocked load when newly idle

2018-02-12 Thread Peter Zijlstra
On Mon, Feb 12, 2018 at 03:34:44PM +0100, Vincent Guittot wrote: > Le Monday 12 Feb 2018 à 13:04:11 (+0100), Peter Zijlstra a écrit : > > On Mon, Feb 12, 2018 at 09:07:54AM +0100, Vincent Guittot wrote: > > So I really hate this one, also I suspect its broken, because we do this > > check before d

Re: [PATCH net v4 02/13] net/8390: Fix msg_enable patch snafu

2018-02-12 Thread David Miller
From: Finn Thain Date: Sun, 11 Feb 2018 22:08:43 -0500 (EST) > The lib8390 module parameter 'msg_enable' doesn't do anything useful: > it causes an ancient version string to be logged. Not true. You need to look at the various netif_*() et al. message logging interfaces, they check "p->msg_enab

Re: [PATCH v2 09/12] ARM: dts: STi: Add fake reg property for sound related nodes

2018-02-12 Thread Rob Herring
On Mon, Feb 12, 2018 at 8:43 AM, wrote: > From: Patrice Chotard > > Add fake reg property to sound, simple-audio-card, dai-link and > sti_sasg_codec nodes, this allows to fix the following warning > when compiling dtb with W=1 option: > > arch/arm/boot/dts/stih407-b2120.dtb: Warning (unit_addres

Re: [PATCH 4/6] Protectable Memory

2018-02-12 Thread Igor Stoppa
On 12/02/18 17:31, Mike Rapoport wrote: [...] > Seems that kernel-doc does not consider () as a valid match for the > identifier :) > > Can you please check with the below patch? yes, it works now, than you! -- igor

Re: [PATCH v3 1/1] mm: page_alloc: skip over regions of invalid pfns on UMA

2018-02-12 Thread Michal Hocko
On Sat 03-02-18 13:24:22, Eugeniu Rosca wrote: [...] > That said, I really hope this won't be the last comment in the thread > and appropriate suggestions will come on how to go forward. Just to make sure we are on the same page. I was suggesting the following. The patch is slightly larger just be

Re: ppc elf_map breakage with MAP_FIXED_NOREPLACE

2018-02-12 Thread Michal Hocko
Did you have any chance to test the following hack, Anshuman? On Thu 01-02-18 14:48:29, Michal Hocko wrote: [...] > Just a blind shot... Does the following make any difference? > --- > diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c > index 021fe78998ea..04b24d00c911 100644 > --- a/fs/binfmt_elf.c

Re: [RFC PATCH 4/7] kconfig: support new special property shell=

2018-02-12 Thread Kees Cook
On Mon, Feb 12, 2018 at 2:44 AM, Masahiro Yamada wrote: > Linus said: > >> But yes, I also reacted to your earlier " It can't silently rewrite it >> to _REGULAR because the compiler support for _STRONG regressed." >> Because it damn well can. If the compiler doesn't support >> -fstack-protector-st

Re: [PATCH 12/18] tracing: Add accessing direct address from function based events

2018-02-12 Thread Masami Hiramatsu
On Mon, 12 Feb 2018 11:06:44 +0900 Namhyung Kim wrote: > Hi Steve, > > On Fri, Feb 09, 2018 at 05:07:37PM -0500, Steven Rostedt wrote: > > On Fri, 9 Feb 2018 09:34:36 +0900 > > Namhyung Kim wrote: > > > > > Couldn't we use the symbol name directly? Maybe it needs a syntax to > > > indicate gl

Re: [RFC PATCH for 4.16 10/21] cpu_opv: Provide cpu_opv system call (v5)

2018-02-12 Thread Mathieu Desnoyers
Hi Al, Your feedback on this new cpu_opv system call would be welcome. This series is now aiming at the next merge window (4.17). The whole restartable sequences series can be fetched at: https://git.kernel.org/pub/scm/linux/kernel/git/rseq/linux-rseq.git/ tag: v4.15-rc9-rseq-20180122 Thanks!

Re: [PATCH] acpi, spcr: Make SPCR available to x86

2018-02-12 Thread Peter Zijlstra
On Mon, Feb 12, 2018 at 10:18:06AM -0500, Prarit Bhargava wrote: > > But when I specify "earlyprintk=serial,ttyS0,115200" this SPCR crud will > > not interfere? > > > > I tested "earlyprintk=serial,ttyS0,115200" on a system which is known to have > a > functional console with "console=ttyS0,1152

Re: [PATCH] blk: optimization for classic polling

2018-02-12 Thread Bart Van Assche
On 05/29/83 20:21, Nitesh Shetty wrote: [ ... ] Hello Nitesh, Can you check the clock of the system you used to send this e-mail? In the header of your e-mail I found the following: Date: Sun, 30 May 2083 09:51:06 +0530 Thanks, Bart.

Re: [PATCH 2/4 v6] lib: debugobjects: add global free list and the counter

2018-02-12 Thread Thomas Gleixner
On Tue, 6 Feb 2018, Yang Shi wrote: > + /* > + * The objs on the pool list might be allocated before the work is > + * run, so recheck if pool list it full or not, if not fill pool > + * list from the global free list > + */ > + while (obj_pool_free < debug_objects_pool_

Re: KASAN: stack-out-of-bounds Read in memcmp

2018-02-12 Thread Dmitry Vyukov
On Fri, Jan 5, 2018 at 11:06 PM, syzbot wrote: > Hello, > > syzkaller hit the following crash on > bcecb4bbf88aa03171c30652bca761cf27755a6b > git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git/master > compiler: gcc (GCC) 7.1.1 20170620 > .config is attached > Raw console output is a

[PATCH v2] clk: exynos5433: Extend list of available AUD_PLL output frequencies

2018-02-12 Thread Sylwester Nawrocki
Add one more entry to the exynos5433_aud_pll_rates table, this allows to support audio sample rates: 48000, 96000, 192000 Hz with minimum error. The M, P, S, K values re confirmed by the HW team. Signed-off-by: Sylwester Nawrocki --- drivers/clk/samsung/clk-exynos5433.c | 1 + 1 file changed, 1

4.9.80 compile failure with X86_VSYSCALL_EMULATION=n due to 9a0be5af

2018-02-12 Thread Lennart Sorensen
Commit 9a0be5af added a reference to vsyscall_pgprot in arch/x86/mm/kaiser.c but that is undefined if X86_VSYSCALL_EMULATION=n which on an embedded system where you know how all your software is compiled is quite likely. Of course the condition is always false with that config so the code will nev

Re: [PATCH] acpi, spcr: Make SPCR available to x86

2018-02-12 Thread Prarit Bhargava
On 02/12/2018 10:44 AM, Peter Zijlstra wrote: > On Mon, Feb 12, 2018 at 10:18:06AM -0500, Prarit Bhargava wrote: >>> But when I specify "earlyprintk=serial,ttyS0,115200" this SPCR crud will >>> not interfere? >>> >> >> I tested "earlyprintk=serial,ttyS0,115200" on a system which is known to >> h

Re: [PATCH 2/4 v6] lib: debugobjects: add global free list and the counter

2018-02-12 Thread Thomas Gleixner
On Mon, 12 Feb 2018, Thomas Gleixner wrote: > On Tue, 6 Feb 2018, Yang Shi wrote: > > + /* > > +* The objs on the pool list might be allocated before the work is > > +* run, so recheck if pool list it full or not, if not fill pool > > +* list from the global free list > > +*/ > >

Re: [PATCH v2] MAINTAINERS: add Freescale pin controllers

2018-02-12 Thread Joe Perches
On Mon, 2018-02-12 at 16:05 +0100, Stefan Agner wrote: > Add Dong Aisheng, Fabio Estevam, Shawn Guo and myself as maintainer > and the Pengutronix kernel team as reviewer. [] > diff --git a/MAINTAINERS b/MAINTAINERS [] > @@ -10768,6 +10768,17 @@ L: linux-g...@vger.kernel.org > S: Supported >

Re: [kmemleak] unreferenced object 0xcd9c1a80 (size 192):

2018-02-12 Thread Alexei Starovoitov
On Mon, Feb 12, 2018 at 09:28:33AM +0100, Daniel Borkmann wrote: > On 02/12/2018 06:47 AM, Yonghong Song wrote: > > On 2/11/18 11:18 AM, Mathieu Malaterre wrote: > >> On Sun, Feb 11, 2018 at 5:54 PM, Alexei Starovoitov > >> wrote: > >>> On Sun, Feb 11, 2018 at 7:24 AM, Mathieu Malaterre > >>> wr

Re: KASAN: use-after-free Read in do_raw_spin_unlock (2)

2018-02-12 Thread Dmitry Vyukov
On Mon, Feb 12, 2018 at 4:54 PM, syzbot wrote: > Hello, > > syzbot hit the following crash on upstream commit > f1517df8701c9f12dae9ce7f43a5d300a6917619 (Thu Feb 8 23:18:32 2018 +) > Merge tag 'nfsd-4.16' of git://linux-nfs.org/~bfields/linux > > C reproducer is attached. > syzkaller reproduce

Re: [PATCH 08/11] fuse: Support fuse filesystems outside of init_user_ns

2018-02-12 Thread Miklos Szeredi
On Fri, Dec 22, 2017 at 3:32 PM, Dongsu Park wrote: > From: Seth Forshee > > In order to support mounts from namespaces other than > init_user_ns, fuse must translate uids and gids to/from the > userns of the process servicing requests on /dev/fuse. This > patch does that, with a couple of restri

Re: KASAN: use-after-free Read in remove_wait_queue

2018-02-12 Thread Dmitry Vyukov
On Mon, Feb 12, 2018 at 4:54 PM, syzbot wrote: > Hello, > > syzbot hit the following crash on upstream commit > f1517df8701c9f12dae9ce7f43a5d300a6917619 (Thu Feb 8 23:18:32 2018 +) > Merge tag 'nfsd-4.16' of git://linux-nfs.org/~bfields/linux > > So far this crash happened 3 times on upstream.

Re: [PATCH v6 1/2] drivers: irqchip: pdc: Add PDC interrupt controller for QCOM SoCs

2018-02-12 Thread Lina Iyer
On Mon, Feb 12 2018 at 13:40 +, Thomas Gleixner wrote: On Fri, 9 Feb 2018, Lina Iyer wrote: +/* + * GIC does not handle falling edge or active low. To allow falling edge and + * active low interrupts to be handled at GIC, PDC has an inverter that inverts + * falling edge into a rising edge a

Re: [PATCHv2 05/12] arm64: Don't trap host pointer auth use to EL2

2018-02-12 Thread Mark Rutland
On Tue, Feb 06, 2018 at 01:39:06PM +0100, Christoffer Dall wrote: > Hi Mark, > > On Mon, Nov 27, 2017 at 04:37:59PM +, Mark Rutland wrote: > > To allow EL0 (and/or EL1) to use pointer authentication functionality, > > we must ensure that pointer authentication instructions and accesses to > >

Re: lost connection to test machine (4)

2018-02-12 Thread Dmitry Vyukov
On Mon, Feb 12, 2018 at 5:00 PM, syzbot wrote: > Hello, > > syzbot hit the following crash on bpf-next commit > 617aebe6a97efa539cc4b8a52adccd89596e6be0 (Sun Feb 4 00:25:42 2018 +) > Merge tag 'usercopy-v4.16-rc1' of > git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux > > So far this cr

Re: [PATCH v3 3/3] sched: update blocked load when newly idle

2018-02-12 Thread Vincent Guittot
On 12 February 2018 at 16:38, Peter Zijlstra wrote: > On Mon, Feb 12, 2018 at 03:34:44PM +0100, Vincent Guittot wrote: >> Le Monday 12 Feb 2018 à 13:04:11 (+0100), Peter Zijlstra a écrit : >> > On Mon, Feb 12, 2018 at 09:07:54AM +0100, Vincent Guittot wrote: > >> > So I really hate this one, also

Re: WARNING: suspicious RCU usage in rds_loop_conn_alloc

2018-02-12 Thread Sowmini Varadhan
> rcu_scheduler_active = 2, debug_locks = 1 > 1 lock held by syzkaller563791/4086: > #0: (rcu_read_lock){}, at: [] > __rds_conn_create+0xe46/0x1b50 net/rds/connection.c:218 > the rcu_read_lock() was added by ebeeb1ad9b. After we add that, everything in the rcu read critica

Re: ext4 iomap SEEK broken [was: [GIT PULL] ext4 updates for 4.15]

2018-02-12 Thread Theodore Ts'o
On Mon, Feb 12, 2018 at 01:14:07PM +0100, Jiri Slaby wrote: > On 02/12/2018, 11:02 AM, Jiri Slaby wrote: > > Given this happens only on 32bit kernel, I assume some 32bit overflow. > > But I am unable to see it (yet). > > Just to add, a diff of strace in good and bad kernels: > @@ -655,14 +655,4 @@

Re: WARNING in drm_modeset_lock_all

2018-02-12 Thread Dmitry Vyukov
On Tue, Oct 31, 2017 at 2:03 PM, Dmitry Vyukov wrote: > On Tue, Oct 31, 2017 at 3:45 PM, Chris Wilson > wrote: >> Quoting syzbot (2017-10-27 09:09:50) >>> This bug is generated by a dumb bot. It may contain errors. >>> See https://goo.gl/tpsmEJ for details. >>> Direct all questions to syzkal...@

Re: [RFC PATCH 4/7] kconfig: support new special property shell=

2018-02-12 Thread Masahiro Yamada
2018-02-13 0:46 GMT+09:00 Kees Cook : > On Mon, Feb 12, 2018 at 2:44 AM, Masahiro Yamada > wrote: >> Linus said: >> >>> But yes, I also reacted to your earlier " It can't silently rewrite it >>> to _REGULAR because the compiler support for _STRONG regressed." >>> Because it damn well can. If the c

Re: KASAN: use-after-free Read in __fput

2018-02-12 Thread Dmitry Vyukov
On Mon, Dec 4, 2017 at 7:43 PM, Al Viro wrote: > On Mon, Dec 04, 2017 at 07:39:29PM +0100, Dmitry Vyukov wrote: >> On Mon, Dec 4, 2017 at 5:44 PM, Al Viro wrote: >> > On Thu, Nov 02, 2017 at 04:05:01AM -0700, syzbot wrote: >> >> Hello, >> >> >> >> syzkaller hit the following crash on >> >> 3a99df

Re: BUG: sleeping function called from invalid context at mm/slab.h:LINE (3)

2018-02-12 Thread Sowmini Varadhan
#syz dup: WARNING: suspicious RCU usage in rds_loop_conn_alloc

Re: WARNING: suspicious RCU usage in rds_tcp_conn_alloc

2018-02-12 Thread Sowmini Varadhan
#syz dup: WARNING: suspicious RCU usage in rds_loop_conn_alloc

[PATCH v2 0/7] ASoC: samsung: Add HDMI sound support for tm2 board

2018-02-12 Thread Sylwester Nawrocki
This series adds support for HDMI audio on exynos5433 tm2 board, it includes a few fixes for the I2S driver and an extension of the existing card driver to support the I2S1<->HDMI transmitter path. In v2 only support for 48k/96k/192k samples rate is left, as adjusting the AUD PLL output frequency

[PATCH v2 7/7] ASoC: samsung: Add missing #sound-dai-cells property documentation

2018-02-12 Thread Sylwester Nawrocki
The #sound-dai-cells property might be helpful in selecting primary or secondary CPU DAI and it's already present in i2s nodes for some exynos SoCs so let's add it to the DT binding documentation. Signed-off-by: Sylwester Nawrocki --- Changes since v1: - the property moved to the "Optional SoC S

[PATCH v2 5/7] ASoC: samsung,tm2-audio DT binding documentation update

2018-02-12 Thread Sylwester Nawrocki
This patch documents additional entries of the audio-codec and i2s-controller properties required for the HDMI audio support. Signed-off-by: Sylwester Nawrocki Reviewed-by: Rob Herring Acked-by: Krzysztof Kozlowski --- .../devicetree/bindings/sound/samsung,tm2-audio.txt| 14 +--

Re: [PATCH] tracing/power: Don't share template for cpu_idle and cpu_frequency

2018-02-12 Thread kbuild test robot
Hi Changbin, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on tip/perf/core] [also build test WARNING on v4.16-rc1 next-20180212] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com

[PATCH v2 6/7] ASoC: samsung: Add support for HDMI audio on TM2 board

2018-02-12 Thread Sylwester Nawrocki
This patch defines I2S1 - HDMI DAI link and implements related hw_params callback. The AUD PLL frequency is configured through the CLK_SCLK_I2S1 leaf clock, the exynos5433 clock tree definitions are updated in a separate patch. The device tree parsing part is changed is a way it supports older DTB

[PATCH v2 1/7] ASoC: samsung: i2s: Update clock-output-names property documentation

2018-02-12 Thread Sylwester Nawrocki
The clock-output-names property is marked as deprecated. While at it, and few typos are fixed. Signed-off-by: Sylwester Nawrocki Acked-by: Krzysztof Kozlowski Reviewed-by: Rob Herring --- .../devicetree/bindings/sound/samsung-i2s.txt| 20 ++-- 1 file changed, 10 inserti

Re: [PATCH v3 1/1] mm: page_alloc: skip over regions of invalid pfns on UMA

2018-02-12 Thread Eugeniu Rosca
Hi Michal, On Mon, Feb 12, 2018 at 04:03:14PM +0100, Michal Hocko wrote: > On Sat 03-02-18 13:24:22, Eugeniu Rosca wrote: > [...] > > That said, I really hope this won't be the last comment in the thread > > and appropriate suggestions will come on how to go forward. > > Just to make sure we are

[PATCH v2 2/7] ASoC: samsung: i2s: Ensure names of supplied clocks are unique

2018-02-12 Thread Sylwester Nawrocki
In order to support multiple instances of the I2S IP block the platform device name is prepended to each clock registered by the driver. The clock-output-names property is now not used, this should not cause any issues as, for example, CDCLK clock is referenced through DT 'clocks' property, not by

[PATCH v2 4/7] ASoC: samsung: i2s: Define the parameters list for SAMSUNG_I2S_OPCLK

2018-02-12 Thread Sylwester Nawrocki
The SAMSUNG_I2S_OPCLK is not currently used by any card driver thus we can safely change semantics of 'dir' argument of the I2S set_sysclk() callback. Now an enumeration is exported instead of directly using register bit field values. Signed-off-by: Sylwester Nawrocki Acked-by: Krzysztof Kozlowsk

[PATCH v2 3/7] ASoC: samsung: i2s: Prevent external abort on exynos5433 I2S1 access

2018-02-12 Thread Sylwester Nawrocki
It seems both PCLK_I2S1 and SCLK_I2S1 clocks need to be enabled before I2S1 control registers can be accessed on exynos5433. If SCLK clock is disabled an exception is triggered. To fix this parent clock of the RCLK_SRC clock is assigned to pri_dai->op_clk so required gate clock is handled by the ru

Re: [tip:x86/pti] x86/speculation: Use IBRS if available before calling into firmware

2018-02-12 Thread Dave Hansen
On 02/12/2018 02:22 AM, Ingo Molnar wrote: >> +static inline void firmware_restrict_branch_speculation_end(void) >> +{ >> +alternative_msr_write(MSR_IA32_SPEC_CTRL, 0, >> + X86_FEATURE_USE_IBRS_FW); > BTW., there's a detail that only occurred to me today, this > enabli

Re: [PATCH 3/6] struct page: add field for vm_struct

2018-02-12 Thread Igor Stoppa
On 11/02/18 23:16, Matthew Wilcox wrote: > On Sun, Feb 11, 2018 at 05:19:17AM +0200, Igor Stoppa wrote: >> The struct page has a "mapping" field, which can be re-used, to store a >> pointer to the parent area. This will avoid more expensive searches. >> >> As example, the function find_vm_area is

Re: [PATCH 2/4 v6] lib: debugobjects: add global free list and the counter

2018-02-12 Thread Thomas Gleixner
On Tue, 6 Feb 2018, Yang Shi wrote: > + /* > + * Reuse objs from the global free list, they will be reinitialized > + * when allocating > + */ > + while (obj_nr_tofree > 0 && (obj_pool_free < obj_pool_min_free)) { > + raw_spin_lock_irqsave(&pool_lock, flags); > +

Re: [PATCH] tracing/power: Don't share template for cpu_idle and cpu_frequency

2018-02-12 Thread kbuild test robot
Hi Changbin, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on tip/perf/core] [also build test WARNING on v4.16-rc1 next-20180212] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com

Re: [PATCH -mm -v2] mm, swap, frontswap: Fix THP swap if frontswap enabled

2018-02-12 Thread Dan Streetman
On Thu, 8 Feb 2018, Minchan Kim wrote: > Hi Huang, > > On Thu, Feb 08, 2018 at 11:27:50PM +0800, huang ying wrote: > > On Wed, Feb 7, 2018 at 3:00 PM, Huang, Ying wrote: > > > From: Huang Ying > > > > > > It was reported by Sergey Senozhatsky that if THP (Transparent Huge > > > Page) and front

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