Re: [PATCH V12 00/14] Krait clocks + Krait CPUfreq

2018-08-14 Thread Sricharan R
Hi Craig, On 8/14/2018 5:42 PM, Sricharan R wrote: > [v12] > * Added my signed-off that was missing in some patches. > * Added Bjorn's acked that i missed earlier. > Can you give this a try on your 8974 device and check if the pvs version reporting, scaling for higher frequencies are fin

[PATCH RFC] usercopy: optimize stack check flow when the

2018-08-14 Thread Xiaofeng Yuan
The check_heap_object() checks the spanning multiple pages and slab. When the page-spanning test is disabled, the check_heap_object() is redundant for spanning multiple pages. However, the kernel stacks are multiple pages under certain conditions: CONFIG_ARCH_THREAD_STACK_ALLOCATOR is not defined a

[PATCH RFC] usercopy: optimize stack check flow when the page-spanning test is disabled

2018-08-14 Thread Xiaofeng Yuan
The check_heap_object() checks the spanning multiple pages and slab. When the page-spanning test is disabled, the check_heap_object() is redundant for spanning multiple pages. However, the kernel stacks are multiple pages under certain conditions: CONFIG_ARCH_THREAD_STACK_ALLOCATOR is not defined a

[GIT PULL] sound updates for 4.19-rc1

2018-08-14 Thread Takashi Iwai
Linus, please pull sound updates for v4.19-rc1 from: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-4.19-rc1 The topmost commit is f5b6c1fcb42fe7d6f2f6eb2220512e2a5f875133 sound updates for 4.19 It's

[PATCH 1/2] mmc: renesas_sdhi_internal_dmac: Whitelist r8a774a1

2018-08-14 Thread Fabrizio Castro
We need r8a774a1 to be whitelisted for SDHI to work on the RZ/G2M, but we don't care about the revision of the SoC, so just whitelist the generic part number. Signed-off-by: Fabrizio Castro Reviewed-by: Biju Das --- drivers/mmc/host/renesas_sdhi_internal_dmac.c | 1 + 1 file changed, 1 insertio

Re: [PATCH RFC] usercopy: optimize stack check flow when the

2018-08-14 Thread Matthew Wilcox
On Tue, Aug 14, 2018 at 08:17:31PM +0800, Xiaofeng Yuan wrote: > The check_heap_object() checks the spanning multiple pages and slab. > When the page-spanning test is disabled, the check_heap_object() is > redundant for spanning multiple pages. However, the kernel stacks are > multiple pages under

Re: [PATCH v2 2/3] mm/memory_hotplug: Drop mem_blk check from unregister_mem_sect_under_nodes

2018-08-14 Thread Oscar Salvador
On Tue, Aug 14, 2018 at 12:09:14PM +0200, David Hildenbrand wrote: > > Whatever you think is best. I have no idea what the general rules in MM > code are. Maybe dropping this check is totally fine. Well, if you ask me, callers should care for validating mem_blk before calling in. But a WARN_ON i

Re: [PATCH 2/2] clk: meson-g12a: Add AO Clock controller driver

2018-08-14 Thread Jerome Brunet
On Fri, 2018-08-10 at 17:54 +0800, Jian Hu wrote: > Add a Clock driver for the ALways-On part > of the Amlogic Meson-G12A SoC. > > Signed-off-by: Jian Hu > --- > drivers/clk/meson/Makefile | 2 +- > drivers/clk/meson/g12a-aoclk.c | 170 > + > driver

Re: [PATCH v4 2/2] mmc: host: iproc: Add ACPI support to IPROC SDHCI

2018-08-14 Thread Srinath Mannam
Hi Ulf Hansson, Please kindly provide your inputs. Regards, Srinath. On Mon, Aug 6, 2018 at 12:13 PM, Hunter, Adrian wrote: > Acked-by: Adrian Hunter > >> -Original Message- >> From: Srinath Mannam [mailto:srinath.man...@broadcom.com] >> Sent: Sunday, August 5, 2018 10:53 AM >> To: Ulf

WARNING in free_loaded_vmcs (2)

2018-08-14 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:112cbae26d18 Merge branch 'linus' of git://git.kernel.org/.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=161d8a3c40 kernel config: https://syzkaller.appspot.com/x/.config?x=152cb8ccd35b1f70 da

Re: [PATCH] linux/bitmap.h: fix BITMAP_LAST_WORD_MASK

2018-08-14 Thread Andy Shevchenko
On Tue, Aug 7, 2018 at 2:22 PM, Wei Wang wrote: > On 08/07/2018 06:26 PM, Andy Shevchenko wrote: > "there", I meant that user-space port, not in the kernel. > e.g. > Line 225 at https://github.com/qemu/qemu/blob/master/include/qemu/bitmap.h > (there are a couple of other places) So, means no pro

Re: [PATCH v9 05/22] KVM: s390: vsie: simulate VCPU SIE entry/exit

2018-08-14 Thread Tony Krowiak
On 08/14/2018 04:50 AM, Cornelia Huck wrote: On Mon, 13 Aug 2018 17:48:02 -0400 Tony Krowiak wrote: From: David Hildenbrand VCPU requests and VCPU blocking right now don't take care of the vSIE (as it was not necessary until now). But we want to have VCPU requests that will also be handled b

PCI Endpoint - Missing inbound mapping ops ?

2018-08-14 Thread Ramon Fried
Hi. I recently saw that the PCI endpoint API only supports outbound memory mapping: (AXI -> PCI) through the map_addr op. Why inbound mapping is missing (PCI->AXI) is missing ? In almost all of the PCI EP controllers I've worked with there was a need to map complete BARS or part of BARS to mmio/ape

Re: [PATCH] eeprom: at24: Fix unexpected timeout under high load

2018-08-14 Thread Andy Shevchenko
On Mon, Aug 6, 2018 at 2:39 PM, Jonas Mark (BT-FIR/ENG1) wrote: > tout = jiffies + msecs_to_jiffies(at24_write_timeout); > do { > read_time = jiffies; > > ret = regmap_bulk_read(regmap, offset, buf, count); > dev_dbg(&client->dev, "read %zu@%d --> %d (%ld)\n", >

Re: PCI Endpoint - Missing inbound mapping ops ?

2018-08-14 Thread Kishon Vijay Abraham I
Hi, On Tuesday 14 August 2018 06:19 PM, Ramon Fried wrote: > Hi. > I recently saw that the PCI endpoint API only supports outbound memory > mapping: (AXI -> PCI) through the map_addr op. > Why inbound mapping is missing (PCI->AXI) is missing ? > In almost all of the PCI EP controllers I've worked

Re: PCI Endpoint - Missing inbound mapping ops ?

2018-08-14 Thread Ramon Fried
On Tue, Aug 14, 2018 at 1:53 PM Kishon Vijay Abraham I wrote: > > Hi, > > On Tuesday 14 August 2018 06:19 PM, Ramon Fried wrote: > > Hi. > > I recently saw that the PCI endpoint API only supports outbound memory > > mapping: (AXI -> PCI) through the map_addr op. > > Why inbound mapping is missing

Re: [PATCH] arm/mach-at91/pm: Do not double put the device node

2018-08-14 Thread Alexandre Belloni
On 14/08/2018 09:54:56+0800, zhong jiang wrote: > Device node iterators put the previous value of the index variable, > so an explicit put causes a double put. > While for_each_matching_node_and_match will get and put the node properly, there is also a call to of_find_device_by_node that will get

[RESEND PATCH] mfd: stmpe: honor gpio interrupt probe deferral

2018-08-14 Thread Marcel Ziswiler
From: Marcel Ziswiler Actually honor probe deferral in trying to get the GPIO interrupt as of_get_named_gpio_flags() in stmpe_of_probe() may as well just do so. Signed-off-by: Marcel Ziswiler --- drivers/mfd/stmpe.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mfd/stmpe.c b/

RE: [PATCH RFC] usercopy: optimize stack check flow when the page-spanning test is disabled

2018-08-14 Thread Yuanxiaofeng (XiAn)
1, When the THREAD_SIZE is less than PAGE_SIZE, the stack will allocate memory by kmem_cache_alloc_node(), it's slab memory and will execute __check_heap_object(). 2, When CONFIG_HARDENED_USERCOPY_PAGESPAN is enabled, the multiple-pages stacks will do some check in check_page_span(). So, I set

Re: PCI Endpoint - Missing inbound mapping ops ?

2018-08-14 Thread Kishon Vijay Abraham I
Hi, On Tuesday 14 August 2018 06:25 PM, Ramon Fried wrote: > On Tue, Aug 14, 2018 at 1:53 PM Kishon Vijay Abraham I wrote: >> >> Hi, >> >> On Tuesday 14 August 2018 06:19 PM, Ramon Fried wrote: >>> Hi. >>> I recently saw that the PCI endpoint API only supports outbound memory >>> mapping: (AXI ->

Re: PCI Endpoint - Missing inbound mapping ops ?

2018-08-14 Thread Ramon Fried
On Tue, Aug 14, 2018 at 2:04 PM Kishon Vijay Abraham I wrote: > > Hi, > > On Tuesday 14 August 2018 06:25 PM, Ramon Fried wrote: > > On Tue, Aug 14, 2018 at 1:53 PM Kishon Vijay Abraham I > > wrote: > >> > >> Hi, > >> > >> On Tuesday 14 August 2018 06:19 PM, Ramon Fried wrote: > >>> Hi. > >>> I

RE: [PATCH] bitfield: avoid gcc-8 -Wint-in-bool-context warning

2018-08-14 Thread David Laight
From: Arnd Bergmann > Sent: 14 August 2018 12:08 ... > > There are also a whole load of crappy __packed in that header file. > > There might be one or two 64bit items on 32bit boundaries but > > that can be solved without using __packed. > > Agreed, this likely causes problems on architectures wit

Re: PCI Endpoint - Missing inbound mapping ops ?

2018-08-14 Thread Miguel Ojeda
Hi Kishon, On Tue, Aug 14, 2018 at 2:53 PM, Kishon Vijay Abraham I wrote: > Hi, > > On Tuesday 14 August 2018 06:19 PM, Ramon Fried wrote: >> Hi. >> I recently saw that the PCI endpoint API only supports outbound memory >> mapping: (AXI -> PCI) through the map_addr op. >> Why inbound mapping is m

Re: [PATCH RFC] usercopy: optimize stack check flow when the page-spanning test is disabled

2018-08-14 Thread Matthew Wilcox
On Tue, Aug 14, 2018 at 01:02:55PM +, Yuanxiaofeng (XiAn) wrote: > 1, When the THREAD_SIZE is less than PAGE_SIZE, the stack will allocate > memory by kmem_cache_alloc_node(), it's slab memory and will execute > __check_heap_object(). > 2, When CONFIG_HARDENED_USERCOPY_PAGESPAN is enabled, th

gegenseitiger Nutzen

2018-08-14 Thread martin larcher
Lieber Freund Gruß mein guter Freund, wie geht es dir und Familie heute? Ich bin Rechtsanwalt Martin Larcher, Rechtsanwalt und ich habe Sie wegen einer Erbschaftstransaktion kontaktiert, die mit Ihrem Nachnamen zusammenhängt, von dem beide Familien profitieren. Ich werde Ihnen mehr Details über di

Re: [PATCH v2 1/5] watchdog: hpwdt: Initialize pretimeout from module parameter.

2018-08-14 Thread Guenter Roeck
On 08/08/2018 12:13 PM, Jerry Hoemann wrote: When the pretimeout is specified as a module parameter, the value should be reflected in hpwdt_dev.pretimeout. The default (on) case is correct. But, when disabling pretimeout, the value should be set to zero in hpwdt_dev. When compiling w/o CONFIG_

Re: [PATCH v2 3/5] watchdog: hpwdt: Display module parameters.

2018-08-14 Thread Guenter Roeck
On 08/08/2018 12:13 PM, Jerry Hoemann wrote: Print module parameters when the driver is loaded. Signed-off-by: Jerry Hoemann Reviewed-by: Guenter Roeck --- drivers/watchdog/hpwdt.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/watchdog/hpwdt.c b/dr

Re: [PATCH v2 2/5] watchdog: hpwdt: Claim NMI from iLO

2018-08-14 Thread Guenter Roeck
On 08/08/2018 12:13 PM, Jerry Hoemann wrote: The hwpdt driver is overloaded for handling both the iLO watchdog and the explicit "Generate NMI to System" virutal button. Hence NMI handler needs to claim NMI resulting from the virutal button. Claim if iLO generated accommodating firmware that mig

Re: [PATCH v2 4/5] watchdog: hpwdt: Module paramerter alias.

2018-08-14 Thread Guenter Roeck
On 08/08/2018 12:13 PM, Jerry Hoemann wrote: Add module parameter "timeout" as an alias to "soft_margin." This aligns hpwdt usage more closely with other WDT while retaining backwards compatibility. Signed-off-by: Jerry Hoemann Reviewed-by: Guenter Roeck --- drivers/watchdog/hpwdt.c | 3

Re: [PATCH v2 5/5] watchdog: hpwdt: Update version number.

2018-08-14 Thread Guenter Roeck
On 08/08/2018 12:13 PM, Jerry Hoemann wrote: Bump version number to reflect recent bug fixes. Signed-off-by: Jerry Hoemann Reviewed-by: Guenter Roeck --- drivers/watchdog/hpwdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog/hpwdt.c b/drivers/watch

Re: general protection fault in cgroup_reconfigure

2018-08-14 Thread Kirill Tkhai
JFI: Fixed by https://lkml.org/lkml/2018/8/3/351 On 07.07.2018 10:09, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:    526674536360 Add linux-next specific files for 20180706 > git tree:   linux-next > console output: https://syzkaller.appspot.com/x/log.txt

Re: [PATCH v3 1/2] RISC-V: Define sys_riscv_flush_icache when SMP=n

2018-08-14 Thread Christoph Hellwig
On Fri, Aug 10, 2018 at 11:27:37AM -0700, Palmer Dabbelt wrote: > I'm not sure. We can implement the syscall fine in !SMP, it's just that the > vDSO is expected to always eat these calls because in non-SMP mode you can > do a global fence.i by just doing a local fence.i (there's only one hart). >

Re: [PATCH v3 1/2] RISC-V: Define sys_riscv_flush_icache when SMP=n

2018-08-14 Thread Christoph Hellwig
> SYSCALL_DEFINE3(riscv_flush_icache, uintptr_t, start, uintptr_t, end, > uintptr_t, flags) > { > +#ifdef CONFIG_SMP > struct mm_struct *mm = current->mm; > bool local = (flags & SYS_RISCV_FLUSH_ICACHE_LOCAL) != 0; > +#endif > > /* Check the reserved flags. */ > if

Re: [PATCH v3 2/2] RISC-V: Don't use a global include guard for uapi/asm/syscalls.h

2018-08-14 Thread Christoph Hellwig
> index 818655b0d535..690beb002d1d 100644 > --- a/arch/riscv/include/uapi/asm/syscalls.h > +++ b/arch/riscv/include/uapi/asm/syscalls.h > @@ -1,10 +1,13 @@ > -/* SPDX-License-Identifier: GPL-2.0 */ > +// SPDX-License-Identifier: GPL-2.0 /* ... */ is the right style SPDX tag for headers, so please

Re: [PATCH 1/2] kconfig: report recursive dependency involving 'imply'

2018-08-14 Thread Dirk Gouders
Dirk Gouders writes: > Masahiro Yamada writes: > >> Currently, Kconfig does not report anything about the recursive >> dependency where 'imply' keywords are involved. >> >> [Test Code] >> >> config A >> bool "a" >> >> config B >> bool "b" >> imply A >>

Re: [PATCH v2 2/2] leds: lm3697: Introduce the lm3697 driver

2018-08-14 Thread Dan Murphy
Pavel Thanks for the review On 08/08/2018 02:59 PM, Pavel Machek wrote: > Hi! > >> Introduce the lm3697 LED driver for >> backlighting and display. >> >> Datasheet location: >> http://www.ti.com/lit/ds/symlink/lm3697.pdf >> >> Signed-off-by: Dan Murphy > >> + >> +#define LM3697_HVLED1_2_3_A

Re: sb_edac.c lacks PCI domain support?

2018-08-14 Thread Bjorn Helgaas
[+cc Mizuma-san, linux-pci] On Wed, Aug 08, 2018 at 08:18:03PM +, Luck, Tony wrote: > > I think sb_edac.c (and probably other EDAC stuff) lacks PCI domain > > support > > There's a patch queued to fix this. > > https://marc.info/?l=linux-edac&m=153256485215534&w=2 That's excellent, thank

[PATCH v2] ASoC: tegra: probe deferral error reporting

2018-08-14 Thread Marcel Ziswiler
From: Marcel Ziswiler Actually report the error codes from of_get_named_gpio() resp. devm_gpio_request_one() upon trying to get the codec reset resp. sync GPIOs unless it is just a probe deferral. Signed-off-by: Marcel Ziswiler --- Changes in v2: - Silence probe deferral as suggested by Stefa

Re: [PATCH] fix ifnullfree.cocci warnings

2018-08-14 Thread Mark Brown
On Tue, Aug 14, 2018 at 12:57:57PM +0200, Julia Lawall wrote: > From: kbuild test robot > > NULL check before some freeing functions is not needed. > > Based on checkpatch warning > "kfree(NULL) is safe this check is probably not required" > and kfreeaddr.cocci by Julia Lawall. > > Generate

[RESEND PATCH 2/6] ARM: multi_v7_defconfig: update order

2018-08-14 Thread Marcel Ziswiler
From: Marcel Ziswiler The order of some kernel configurations changed. Signed-off-by: Marcel Ziswiler --- arch/arm/configs/multi_v7_defconfig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig i

[RESEND PATCH 1/6] ARM: config: multi_v5: enable dynamic debug

2018-08-14 Thread Marcel Ziswiler
From: Marcel Ziswiler Dynamic debug is really helpful. Signed-off-by: Marcel Ziswiler --- arch/arm/configs/multi_v5_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v5_defconfig b/arch/arm/configs/multi_v5_defconfig index 318b76fa26d1..b302ac68d587 100644

[RESEND PATCH 4/6] ARM: defconfig: tegra: enable dynamic debug

2018-08-14 Thread Marcel Ziswiler
From: Marcel Ziswiler Dynamic debug is really helpful. Signed-off-by: Marcel Ziswiler --- arch/arm/configs/tegra_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/tegra_defconfig b/arch/arm/configs/tegra_defconfig index c7b99ebf5fcf..24e297659b55 100644 --- a/arc

[RESEND PATCH 6/6] ARM: defconfig: tegra: enable tegra raw nand driver

2018-08-14 Thread Marcel Ziswiler
From: Marcel Ziswiler Now with everything being merged actually enable it. Also enable MTD_OF_PARTS, MTD_BLOCK, MTD_NAND, MTD_UBI and UBIFS without which the former would not make much sense and is also in-line with multi_v7_defconfig. Signed-off-by: Marcel Ziswiler --- arch/arm/configs/tegr

[RESEND PATCH 3/6] ARM: multi_v7_defconfig: enable dynamic debug

2018-08-14 Thread Marcel Ziswiler
From: Marcel Ziswiler Dynamic debug is really helpful. Signed-off-by: Marcel Ziswiler --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 1299c0cf2f3a..65646b39430b 100644

[RESEND PATCH 5/6] ARM: multi_v7_defconfig: enable tegra raw nand driver

2018-08-14 Thread Marcel Ziswiler
From: Marcel Ziswiler Now with everything being merged actually enable it. Signed-off-by: Marcel Ziswiler --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 65646b39430b.

Re: [PATCH] fix ifnullfree.cocci warnings

2018-08-14 Thread Julia Lawall
On Tue, 14 Aug 2018, Mark Brown wrote: > On Tue, Aug 14, 2018 at 12:57:57PM +0200, Julia Lawall wrote: > > From: kbuild test robot > > > > NULL check before some freeing functions is not needed. > > > > Based on checkpatch warning > > "kfree(NULL) is safe this check is probably not required

Re: [RESEND PATCH 1/6] ARM: config: multi_v5: enable dynamic debug

2018-08-14 Thread Joe Perches
On Tue, 2018-08-14 at 16:06 +0200, Marcel Ziswiler wrote: > From: Marcel Ziswiler > > Dynamic debug is really helpful. It's useful, but perhaps not appropriate. Most arm configs are for small resource constrained systems. dynamic_debug adds a lot of additional text and a fair amount of data.

Re: [PATCH] spi:fix IDR collision on systems with both fixed and dynamic SPI bus numbers

2018-08-14 Thread Mark Brown
On Mon, Aug 13, 2018 at 07:48:10PM +0300, Kirill Kapranov wrote: > On systems where some controllers get a dynamic ID assigned and some have > a fixed number (e.g. from ACPI tables), the current implementation might > run into an IDR collision: in case of a fixed bus number is gotten by a > driver

Re: PCI: Add function 1 DMA alias quirk for Marvell 88SS9183

2018-08-14 Thread Bjorn Helgaas
On Mon, Aug 13, 2018 at 02:41:23PM -0500, Bjorn Helgaas wrote: > Hi, > > Thanks a lot for your new report > (https://bugzilla.kernel.org/show_bug.cgi?id=42679#c134). > > Can you confirm that the patch below is equivalent to what you tested and > it resolves the problem? If so, I'll try to includ

WARNING in __snd_rawmidi_transmit_ack (2)

2018-08-14 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:4e8b38549b50 Add linux-next specific files for 20180814 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=11f5e78c40 kernel config: https://syzkaller.appspot.com/x/.config?x=18edf0289d1b5ab

Re: [PATCH] Handle clock_gettime(CLOCK_TAI) in VDSO

2018-08-14 Thread Andy Lutomirski
[Added a whole bunch of ccs] On Mon, Aug 13, 2018 at 6:17 PM, Matt Rickard wrote: > Process clock_gettime(CLOCK_TAI) in VDSO. This makes the call about as fast as > CLOCK_REALTIME instead of taking about four times as long. > > Signed-off-by: Matt Rickard > --- > arch/x86/entry/vdso/vclock_gett

Re: general protection fault in cgroup_reconfigure

2018-08-14 Thread Dmitry Vyukov
On Tue, Aug 14, 2018 at 6:34 AM, Kirill Tkhai wrote: > JFI: Fixed by https://lkml.org/lkml/2018/8/3/351 Thanks! This is linux-next and the fix was squashed and no Reported-by tag... so, I don't know, let's do: #syz fix: kernfs, sysfs, cgroup, intel_rdt: Support fs_context > On 07.07.2018 10:0

Re: [PATCH] soc/tegra: pmc: fix child-node lookup

2018-08-14 Thread Thierry Reding
On Mon, Aug 13, 2018 at 04:33:17PM +0200, Johan Hovold wrote: > Hi Thierry, > > On Thu, Mar 22, 2018 at 03:24:32PM +0100, Thierry Reding wrote: > > On Wed, Nov 15, 2017 at 10:44:58AM +0100, Johan Hovold wrote: > > > Fix child-node lookup during probe, which ended up searching the whole > > > devic

Applied "ASoC: wm9712: fix replace codec to component" to the asoc tree

2018-08-14 Thread Mark Brown
The patch ASoC: wm9712: fix replace codec to component has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to

KASAN: use-after-free Read in vmx_vcpu_load

2018-08-14 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:1c2f2531cf8b Add linux-next specific files for 20180809 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=10129c7440 kernel config: https://syzkaller.appspot.com/x/.config?x=44657afb75515c8b dashb

Re: [PATCH v2 2/4] dt-bindings: soc: amlogic: add meson-canvas documentation

2018-08-14 Thread Rob Herring
On Mon, Aug 13, 2018 at 8:42 PM Maxime Jourdan wrote: > > 2018-08-13 21:07 GMT+02:00 Rob Herring : > > On Wed, Aug 08, 2018 at 12:00:09AM +0200, Maxime Jourdan wrote: > >> DT bindings doc for amlogic,meson-canvas > >> > >> Signed-off-by: Maxime Jourdan > >> --- > >> .../soc/amlogic/amlogic,meson

Re: [RFC PATCH] ASoC: core: Optimise suspend/resume of DAPM widgets

2018-08-14 Thread Mark Brown
On Mon, Aug 13, 2018 at 07:19:16PM +0100, Jon Hunter wrote: > > I had taken some ftrace graphs but there was not one thing that really > stood out. Looking again it seems that each call to > async_schedule_domain() can take tens of uS and so it there are a lot of > DAPM widgets (100+) this can tak

Warning when using eMMC and partprobe: generic_make_request: Trying to write to read-only block-device

2018-08-14 Thread Stefan Agner
Hi, Using Linux 4.18 on a i.MX 6Q I see the following warning during boot-up: [ 23.928916] [ cut here ] [ 23.933795] WARNING: CPU: 1 PID: 527 at block/blk-core.c:2161 generic_make_request_checks+0x868/0xa18 [ 23.943306] generic_make_request: Trying to write to read-o

How delete node or property in overlayd dts?

2018-08-14 Thread 张波
/delete-node/ /delete-prop/ could be used in dtsi files without device tree overlay. but with device tree overlay, /delete-node/ and /delete-prop/ are not work. How to delete property and node in overlay dts? for example, in basel.dts have following node node1 { property1; property3;

[PATCH] MAINTAINERS: Add me as a keys/trusted maintainer

2018-08-14 Thread Jarkko Sakkinen
As a TPM maintainer I have to review all these commits. This commit is just to make that documented. Signed-off-by: Jarkko Sakkinen --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 3119bba7971c..4b51c13ae2d8 100644 --- a/MAINTAINERS +++ b/MAINTA

Re: [PATCH] spi: spi-geni-qcom: Add SPI driver support for GENI based QUP

2018-08-14 Thread Mark Brown
On Tue, Aug 14, 2018 at 02:30:02PM +0530, dk...@codeaurora.org wrote: > On 2018-08-10 22:16, Mark Brown wrote: > > On Fri, Aug 10, 2018 at 09:59:46PM +0530, dk...@codeaurora.org wrote: > > > delay_usecs is for inter-transfer delays within a message rather than > > > after the initial chip select a

[GIT PULL] printk for 4.19

2018-08-14 Thread Petr Mladek
Linus, please pull the latest printk changes from git://git.kernel.org/pub/scm/linux/kernel/git/pmladek/printk tags/printk-for-4.19 - Different vendors have a different expectation about a console quietness. Make it configurable to reduce bike-shedding about the upstream d

[PATCH] Bluetooth: mediatek: Fix memory leak

2018-08-14 Thread Gustavo A. R. Silva
In case memory resources for *fw* were allocated, release them before return. Addresses-Coverity-ID: 1472611 ("Resource leak") Fixes: 7237c4c9ec92 ("Bluetooth: mediatek: Add protocol support for MediaTek serial devices") Signed-off-by: Gustavo A. R. Silva --- drivers/bluetooth/btmtkuart.c | 8 +

[GIT PULL] xfs: 4.19 merge, part 2

2018-08-14 Thread Darrick J. Wong
Hi Linus, This is the second part of the XFS changes for 4.19. The biggest changes are the removal of buffer heads frm XFS, a massive reworking of the deferred transaction operations handling code, the removal of the long defunct barrier/nobarrier mount options, and the addition of a few more onl

Re: [PATCH] arm64: mm: check for upper PAGE_SHIFT bits in pfn_valid()

2018-08-14 Thread Greg Hackmann
On 08/14/2018 03:40 AM, Will Deacon wrote: > Hi Greg, > > On Mon, Aug 13, 2018 at 12:30:11PM -0700, Greg Hackmann wrote: >> ARM64's pfn_valid() shifts away the upper PAGE_SHIFT bits of the input >> before seeing if the PFN is valid. This leads to false positives when >> some of the upper bits are

Re: [PATCH v3 02/14] sched/core: uclamp: map TASK's clamp values into CPU's clamp groups

2018-08-14 Thread Patrick Bellasi
Hi Pavan, On 14-Aug 16:55, Pavan Kondeti wrote: > On Mon, Aug 06, 2018 at 05:39:34PM +0100, Patrick Bellasi wrote: > I see that we drop reference on the previous clamp group when a task changes > its clamp limits. What about exiting tasks which claimed clamp groups? should > not we drop the refer

Re: Warning when using eMMC and partprobe: generic_make_request: Trying to write to read-only block-device

2018-08-14 Thread Ilya Dryomov
On Tue, Aug 14, 2018 at 4:41 PM Stefan Agner wrote: > > Hi, > > Using Linux 4.18 on a i.MX 6Q I see the following warning during > boot-up: > > [ 23.928916] [ cut here ] > [ 23.933795] WARNING: CPU: 1 PID: 527 at block/blk-core.c:2161 > generic_make_request_checks+0x868

[for-next][PATCH 2/2] Uprobe: Additional argument arch_uprobe to uprobe_write_opcode()

2018-08-14 Thread Steven Rostedt
From: Ravi Bangoria Add addition argument 'arch_uprobe' to uprobe_write_opcode(). We need this in later set of patches. Link: http://lkml.kernel.org/r/20180809041856.1547-3-ravi.bango...@linux.ibm.com Reviewed-by: Song Liu Acked-by: Srikar Dronamraju Signed-off-by: Ravi Bangoria Signed-off-b

[for-next][PATCH 1/2] Uprobes: Simplify uprobe_register() body

2018-08-14 Thread Steven Rostedt
From: Ravi Bangoria Simplify uprobe_register() function body and let __uprobe_register() handle everything. Also move dependency functions around to avoid build failures. Link: http://lkml.kernel.org/r/20180809041856.1547-2-ravi.bango...@linux.ibm.com Reviewed-by: Song Liu Acked-by: Srikar Dro

[for-next][PATCH 0/2] tracing: A couple of uprobe updates for 4.19

2018-08-14 Thread Steven Rostedt
git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git for-next Head SHA1: 6d43743e9079ac0531b60cde7eadd0f042873344 Ravi Bangoria (2): Uprobes: Simplify uprobe_register() body Uprobe: Additional argument arch_uprobe to uprobe_write_opcode() arch/arm/probes/upr

Re: [PATCH] arm64: mm: check for upper PAGE_SHIFT bits in pfn_valid()

2018-08-14 Thread Will Deacon
On Tue, Aug 14, 2018 at 08:17:48AM -0700, Greg Hackmann wrote: > On 08/14/2018 03:40 AM, Will Deacon wrote: > > Hi Greg, > > > > On Mon, Aug 13, 2018 at 12:30:11PM -0700, Greg Hackmann wrote: > >> ARM64's pfn_valid() shifts away the upper PAGE_SHIFT bits of the input > >> before seeing if the PFN

[PATCH v2 1/2] x86: corruption-check: Passing memory_corruption_check to command line causes panic

2018-08-14 Thread zhe.he
From: He Zhe memory_corruption_check[{_period|_size}]'s handlers do not check input argument before passing it to kstrtoul or simple_strtoull. The argument would be a NULL pointer if each of the kernel parameters, without its value, is set in command line and thus cause the following panic. PANI

[PATCH v2 2/2] x86: corruption-check: Change printk to the right fashion

2018-08-14 Thread zhe.he
From: He Zhe pr_* is preferred according to scripts/checkpatch.pl. Signed-off-by: He Zhe --- v2: - Split printk cleanups into a single patch - Add pr_fmt for mod name arch/x86/kernel/check.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/arch/x86/kernel/check.c

Re: [PATCH v3 03/14] sched/core: uclamp: add CPU's clamp groups accounting

2018-08-14 Thread Dietmar Eggemann
On 08/06/2018 06:39 PM, Patrick Bellasi wrote: [...] +/** + * uclamp_cpu_put_id(): decrease reference count for a clamp group on a CPU + * @p: the task being dequeued from a CPU + * @cpu: the CPU from where the clamp group has to be released + * @clamp_id: the utilization clamp (e.g. min or max

Re: [PATCH v5] cpuidle: menu: Handle stopped tick more aggressively

2018-08-14 Thread leo . yan
On Tue, Aug 14, 2018 at 12:34:40PM +0200, Rafael J . Wysocki wrote: > From: Rafael J. Wysocki > > Commit 87c9fe6ee495 (cpuidle: menu: Avoid selecting shallow states > with stopped tick) missed the case when the target residencies of > deep idle states of CPUs are above the tick boundary which may

Re: [PATCH 18/18] cpupower: change strncpy+truncation to strlcpy

2018-08-14 Thread Daniel Díaz
Hello! On 12 July 2018 at 20:26, Dominique Martinet wrote: > Generated by scripts/coccinelle/misc/strncpy_truncation.cocci > > Signed-off-by: Dominique Martinet > --- > > Please see https://marc.info/?l=linux-kernel&m=153144450722324&w=2 (the > first patch of the serie) for the motivation behin

Re: [PATCH 2/5] nvme: register ns_id attributes as default sysfs groups

2018-08-14 Thread Bart Van Assche
On Tue, 2018-08-14 at 17:39 +0200, Hannes Reinecke wrote: > While I have considered having nvme_nvm_register_sysfs() returning a > pointer I would then have to remove the 'static' declaration from the > nvm_dev_attr_group_12/20. > Which I didn't really like, either. Hmm ... I don't see why the sta

[PATCH 1/2] KVM: vmx: Add defines for SGX ENCLS exiting

2018-08-14 Thread Sean Christopherson
Hardware support for basic SGX virtualization adds a new execution control (ENCLS_EXITING), VMCS field (ENCLS_EXITING_BITMAP) and exit reason (ENCLS), that enables a VMM to intercept specific ENCLS leaf functions, e.g. to inject faults when the VMM isn't exposing SGX to a VM. When ENCLS_EXITING is

RE: [PATCH 4/4] PCI: xilinx-nwl: Add method to setup_platform_service_irq hook

2018-08-14 Thread Bharat Kumar Gogada
Agreed, will Fix it in next version. Regards, Bharat > -Original Message- > From: kbuild test robot [mailto:l...@intel.com] > Sent: Monday, August 13, 2018 2:39 PM > To: Bharat Kumar Gogada > Cc: kbuild-...@01.org; linux-...@vger.kernel.org; linux- > ker...@vger.kernel.org; bhelg...@googl

Re: [PATCH 1/3] arm64: implement ftrace with regs

2018-08-14 Thread Steven Rostedt
On Tue, 14 Aug 2018 09:33:52 +0100 Julien Thierry wrote: > On 14/08/18 03:03, Steven Rostedt wrote: > > On Mon, 13 Aug 2018 11:54:06 +0100 > > Julien Thierry wrote: > > > >>> --- a/arch/arm64/Makefile > >>> +++ b/arch/arm64/Makefile > >>> @@ -78,6 +78,15 @@ ifeq ($(CONFIG_ARM64_MODULE_PLTS),y

Re: [PATCH v5 1/2] tpm: add ptr to the tpm_space struct to file_priv

2018-08-14 Thread Jarkko Sakkinen
On Mon, Aug 13, 2018 at 01:32:53PM -0700, Tadeusz Struk wrote: > Add a ptr to struct tpm_space to the file_priv to have an easy > access to it in the async job without the need to allocate memory. > This also allows to consolidate of the write operations for > the two interfaces. > > Tested-by: Ph

Re: [PATCH v5 1/2] tpm: add ptr to the tpm_space struct to file_priv

2018-08-14 Thread Jarkko Sakkinen
On Tue, Aug 14, 2018 at 07:06:05PM +0300, Jarkko Sakkinen wrote: > On Mon, Aug 13, 2018 at 01:32:53PM -0700, Tadeusz Struk wrote: > > Add a ptr to struct tpm_space to the file_priv to have an easy > > access to it in the async job without the need to allocate memory. > > This also allows to consoli

Re: [PATCH] PCI: Equalize hotplug memory for non/occupied slots

2018-08-14 Thread Derrick, Jonathan
It's been a few weeks. Thoughts on this one? On Wed, 2018-07-25 at 17:02 -0600, Jon Derrick wrote: > Currently, a hotplug bridge will be given hpmemsize additional memory > if > available, in order to satisfy any future hotplug allocation > requirements. > > These calculations don't consider the

Re: [RFC PATCH 1/2] dt-bindings: dmaengine: xilinx_dma: Add binding for Xilinx MCDMA IP

2018-08-14 Thread Rob Herring
On Tue, Jul 31, 2018 at 11:16:12PM +0530, Radhey Shyam Pandey wrote: > Add devicetree binding for Xilinx AXI Multichannel Direct Memory Access > (AXI MCDMA) IP. The AXI MCDMA provides high-bandwidth direct memory > access between memory and AXI4-Stream target peripherals. The AXI MCDMA > core provi

Re: [PATCH 1/2] rtc:rtc-digicolor: Use PTR_ERR_OR_ZERO to replace the open code

2018-08-14 Thread Alexandre Belloni
Hi, On 13/08/2018 19:31:24+0800, zhong jiang wrote: > PTR_ERR_OR_ZERO has implemented the if(IS_ERR(...)) + PTR_ERR, So > just replace them rather than duplicating its implement. > > Signed-off-by: zhong jiang > --- > drivers/rtc/rtc-digicolor.c | 4 +--- > 1 file changed, 1 insertion(+), 3 del

Re: [PATCH v3 0/7] perf: Add ioctl for PMU driver configuration

2018-08-14 Thread Mathieu Poirier
On Mon, 13 Aug 2018 at 11:46, Kim Phillips wrote: > > On Wed, 18 Jul 2018 15:48:00 -0600 > Mathieu Poirier wrote: > > > This set adds the capability to communiate event specific configuration > > to the PMU kernel driver using an ioctl(). The functionatlity is made > > generic enough for anyone

[PATCH] mm: shmem: Correctly annotate new inodes

2018-08-14 Thread Joel Fernandes (Google)
Directories and inodes don't necessarily need to be in the same lockdep class. For ex, hugetlbfs splits them out too to prevent false positives in lockdep. Annotate correctly after new inode creation. If its a directory inode, it will be put into a different class. This should fix a lockdep splat

Re: [RFC PATCH 1/2] ARM: dt: fpga: Added binding docs for Xilinx zynqmp FPGA manager

2018-08-14 Thread Rob Herring
On Wed, Aug 01, 2018 at 03:34:56PM +0530, Nava kishore Manne wrote: > New bindings document for zynqmp fpga manager. > > Signed-off-by: Nava kishore Manne > --- > .../devicetree/bindings/fpga/xlnx,zynqmp-pcap-fpga.txt | 9 + > 1 file changed, 9 insertions(+) > create mode 100644 > Do

Re: Warning when using eMMC and partprobe: generic_make_request: Trying to write to read-only block-device

2018-08-14 Thread Linus Torvalds
On Tue, Aug 14, 2018 at 8:24 AM Ilya Dryomov wrote: > > Looks like it's coming from that fsync(): > > sys_fsync > do_fsync > vfs_fsync_range > blkdev_fsync > blkdev_issue_flush > > I think we need to teach blkdev_issue_flush() to bail out if the bdev > is read-only, s

Re: Applied "ASoC: dt-bindings: add dt bindings for wcd9335 audio codec" to the asoc tree

2018-08-14 Thread Rob Herring
On Wed, Aug 01, 2018 at 12:20:20PM +0100, Mark Brown wrote: > The patch > >ASoC: dt-bindings: add dt bindings for wcd9335 audio codec > > has been applied to the asoc tree at > >https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git Why is this applied when I had requested c

Re: Warning when using eMMC and partprobe: generic_make_request: Trying to write to read-only block-device

2018-08-14 Thread Jens Axboe
On 8/14/18 10:22 AM, Linus Torvalds wrote: > On Tue, Aug 14, 2018 at 8:24 AM Ilya Dryomov wrote: >> >> Looks like it's coming from that fsync(): >> >> sys_fsync >> do_fsync >> vfs_fsync_range >> blkdev_fsync >> blkdev_issue_flush >> >> I think we need to teach blkdev_

[PATCH RFC] Make call_srcu() available during very early boot

2018-08-14 Thread Paul E. McKenney
Event tracing is moving to SRCU in order to take advantage of the fact that SRCU may be safely used from idle and even offline CPUs. However, event tracing can invoke call_srcu() very early in the boot process, even before workqueue_init_early() is invoked (let alone rcu_init()). Therefore, call_s

Re: [PATCH 2/2] bcache: add undef for macro in function

2018-08-14 Thread Coly Li
On 2018/8/14 10:59 PM, cdb...@163.com wrote: > Hi Coly, > The three macros is only locally used in func "__cached_dev",I think > they should be undefined before leaving the func. > Hi Dongbo, It is worthy to do this if there is a potential conflict. But they are defined in sysfs.c and not export

Re: Warning when using eMMC and partprobe: generic_make_request: Trying to write to read-only block-device

2018-08-14 Thread Jens Axboe
On 8/14/18 10:24 AM, Jens Axboe wrote: > On 8/14/18 10:22 AM, Linus Torvalds wrote: >> On Tue, Aug 14, 2018 at 8:24 AM Ilya Dryomov wrote: >>> >>> Looks like it's coming from that fsync(): >>> >>> sys_fsync >>> do_fsync >>> vfs_fsync_range >>> blkdev_fsync >>> blkdev_

Re: [PATCH] Handle clock_gettime(CLOCK_TAI) in VDSO

2018-08-14 Thread David Woodhouse
On Tue, 2018-08-14 at 07:20 -0700, Andy Lutomirski wrote: > > +   /* Doubled switch statement to work around kernel Makefile error */ > > +   /* See: > > https://www.mail-archive.com/gcc-bugs@gcc.gnu.org/msg567499.html */ > > NAK. > > The issue here (after reading that thread) is that, w

Re: [PATCH 2/5] vmbus: add driver_override support

2018-08-14 Thread Stephen Hemminger
On Mon, 13 Aug 2018 19:30:50 + "Michael Kelley (EOSG)" wrote: > > +/* > > + * Return a matching hv_vmbus_device_id pointer. > > + * If there is no match, return NULL. > > + */ > > +static const struct hv_vmbus_device_id *hv_vmbus_get_id(struct hv_driver > > *drv, > > +

Re: [PATCH v8 3/6] Uprobes: Support SDT markers having reference count (semaphore)

2018-08-14 Thread Song Liu
On Mon, Aug 13, 2018 at 9:37 PM, Ravi Bangoria wrote: > Hi Song, > > On 08/13/2018 10:42 PM, Song Liu wrote: >> On Mon, Aug 13, 2018 at 6:17 AM, Oleg Nesterov wrote: >>> On 08/13, Ravi Bangoria wrote: > But damn, process creation (exec) is trivial. We could add a new > uprobe_exec()

RE: [PATCH net-next 5/9] net: hns3: Fix for vf vlan delete failed problem

2018-08-14 Thread Salil Mehta
Hi Dave, > -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Monday, August 13, 2018 4:57 PM > To: Salil Mehta > Cc: Zhuangyuzeng (Yisen) ; lipeng (Y) > ; mehta.salil@gmail.com; > net...@vger.kernel.org; linux-kernel@vger.kernel.org; Linuxarm > ; linyunsheng

Re: [PATCH v3 03/14] sched/core: uclamp: add CPU's clamp groups accounting

2018-08-14 Thread Patrick Bellasi
Hi Dietmar! On 14-Aug 17:44, Dietmar Eggemann wrote: > On 08/06/2018 06:39 PM, Patrick Bellasi wrote: [...] > >+/** > >+ * uclamp_cpu_put_id(): decrease reference count for a clamp group on a CPU > >+ * @p: the task being dequeued from a CPU > >+ * @cpu: the CPU from where the clamp group has to

Re: [PATCH RFC] Make call_srcu() available during very early boot

2018-08-14 Thread Steven Rostedt
On Tue, 14 Aug 2018 09:24:48 -0700 "Paul E. McKenney" wrote: > Event tracing is moving to SRCU in order to take advantage of the fact > that SRCU may be safely used from idle and even offline CPUs. However, > event tracing can invoke call_srcu() very early in the boot process, > even before work

<    1   2   3   4   5   6   7   8   9   >