pull request: linux-firmware: update cxgb4 firmware

2018-01-17 Thread Ganesh Goudar
Hi, Kindly pull the new firmware from the following URL. git://git.chelsio.net/pub/git/linux-firmware.git for-upstream Thanks Ganesh The following changes since commit 3f1ab9f5f381515992c51baab7bd30d46126b068: cxgb4: update firmware to revision 1.17.14.0 (2018-01-17 02:48:30 -0800) are avail

[tip:x86/urgent] x86/intel_rdt/cqm: Prevent use after free

2018-01-17 Thread tip-bot for Thomas Gleixner
Commit-ID: d47924417319e3b6a728c0b690f183e75bc2a702 Gitweb: https://git.kernel.org/tip/d47924417319e3b6a728c0b690f183e75bc2a702 Author: Thomas Gleixner AuthorDate: Tue, 16 Jan 2018 19:59:59 +0100 Committer: Thomas Gleixner CommitDate: Wed, 17 Jan 2018 11:56:47 +0100 x86/intel_rdt/cqm:

Re: [PATCH] Documentation: Fix misconversion of #if

2018-01-17 Thread Mauro Carvalho Chehab
Em Tue, 16 Jan 2018 19:40:55 -0800 Matthew Wilcox escreveu: > From: Matthew Wilcox > > At some stage of the conversion pipeline, something thought that the > DocBook entity # should be rendered as NUM instead of #. > > Signed-off-by: Matthew Wilcox Reviewed-by: Mauro Carvalho Chehab > --- >

Re: tun: memory leak in tun_set_iff

2018-01-17 Thread Xin Long
On Wed, Jan 10, 2018 at 2:20 AM, Dmitry Vyukov wrote: > Hello, > > syzkaller has hit the following memory leak on 4.15-rc7. > Reproducer is attached. > > unreeferenced object 0x88002c9ac400 (size 4096): > comm "syz-executor0", pid 12349, jiffies 4295751114 (age 10.067s) > hex dump (first 3

Re: [mm 4.15-rc8] Random oopses under memory pressure.

2018-01-17 Thread Tetsuo Handa
Linus Torvalds wrote: > > It turned out that CONFIG_FLATMEM was irrelevant. I just did not hit it. > > So have you actually been able to see the problem with FLATMEM, or is > this based on the bisect? Because I really think the bisect is pretty > much guaranteed to be wrong. Oops, this "it" is "a

Re: [PATCH] USB TYPEC: RT1711H Type-C Chip Driver

2018-01-17 Thread Heikki Krogerus
Hi, On Wed, Jan 17, 2018 at 09:30:45AM +, shufan_lee(?) wrote: > Dear Heikki, > > Sorry for bothering. > > Just want to check is there anything we need to modify? I'll check the patch this week, but please note that we are -rc8, so nothing is going to happen before -rc1 is out.

Re: [v2] Coccinelle: kzalloc-simple: Rename kzalloc-simple to zalloc-simple

2018-01-17 Thread SF Markus Elfring
> Applied to linux-kbuild/misc. How would you like to get a related document updated? https://bottest.wiki.kernel.org/coccicheck#types_of_tests Regards, Markus

Re: dangers of bots on the mailing lists was Re: divide error in ___bpf_prog_run

2018-01-17 Thread Dmitry Vyukov
On Wed, Jan 17, 2018 at 10:49 AM, Daniel Borkmann wrote: > Don't know if there's such a possibility, but it would be nice if we could > target fuzzing for specific subsystems in related subtrees directly (e.g. > for bpf in bpf and bpf-next trees as one example). Dmitry? Hi Daniel, It's doable. L

Re: [PATCH v2] powerpc/mm: Fix growth direction for hugepages mmaps with slice

2018-01-17 Thread Christophe LEROY
Le 17/01/2018 à 04:19, Aneesh Kumar K.V a écrit : On 01/16/2018 10:18 PM, Christophe LEROY wrote: Le 16/01/2018 à 17:03, Aneesh Kumar K.V a écrit : Christophe Leroy writes: An application running with libhugetlbfs fails to allocate additional pages to HEAP due to the hugemap being done

Re: [PATCH 0/2] PM / core: genpd fix and pm_runtime_force_suspend|resume() rework

2018-01-17 Thread Rafael J. Wysocki
On Wednesday, January 17, 2018 10:14:23 AM CET Geert Uytterhoeven wrote: > Hi Rafael, > > On Mon, Jan 15, 2018 at 5:17 PM, Rafael J. Wysocki wrote: > > On Mon, Jan 15, 2018 at 3:26 PM, Ulf Hansson wrote: > >> On 15 January 2018 at 14:22, Geert Uytterhoeven > >> wrote: > > > > [cut] > > > >>> >

Re: [PATCH] USB TYPEC: RT1711H Type-C Chip Driver

2018-01-17 Thread Greg KH
On Wed, Jan 17, 2018 at 01:08:58PM +0200, Heikki Krogerus wrote: > Hi, > > On Wed, Jan 17, 2018 at 09:30:45AM +, shufan_lee(?) wrote: > > Dear Heikki, > > > > Sorry for bothering. > > > > Just want to check is there anything we need to modify? > > I'll check the patch this week,

[PATCH][next] staging: fsl-mc: make function its_fsl_mc_msi_init static

2018-01-17 Thread Colin King
From: Colin Ian King The function its_fsl_mc_msi_init is local to the source and does not need to be in global scope, so make it static. Cleans up sparse warning: symbol 'its_fsl_mc_msi_init' was not declared. Should it be static? Signed-off-by: Colin Ian King --- drivers/staging/fsl-mc/bus/i

Re: [PATCH 4/6] s390: add system call to run tasks with modified branch prediction

2018-01-17 Thread Christian Borntraeger
On 01/17/2018 11:03 AM, Florian Weimer wrote: > On 01/17/2018 10:48 AM, Martin Schwidefsky wrote: >> rc = syscall(__NR_s390_modify_bp); >> if (rc) { >> perror("s390_modify_bp"); >> exit(EXIT_FAILURE); >> } > > Isn't this traditionally

Re: [PATCH 4/5] Expand the INIT_SIGNALS and INIT_SIGHAND macros and remove

2018-01-17 Thread Thomas Gleixner
On Tue, 2 Jan 2018, David Howells wrote: > Thomas Gleixner wrote: > > > > #define INIT_CPU_TIMERS(s) > > > \ > > ... > > That macro is only used in init_task.c Why not moving it there and get rid > > of the whole macro maze in the header file? > >

[tip:x86/urgent] x86/apic/vector: Fix off by one in error path

2018-01-17 Thread tip-bot for Thomas Gleixner
Commit-ID: 45d55e7bac4028af93f5fa324e69958a0b868e96 Gitweb: https://git.kernel.org/tip/45d55e7bac4028af93f5fa324e69958a0b868e96 Author: Thomas Gleixner AuthorDate: Tue, 16 Jan 2018 12:20:18 +0100 Committer: Thomas Gleixner CommitDate: Wed, 17 Jan 2018 12:11:36 +0100 x86/apic/vector: Fi

Re: [PATCH 5/6] KVM: s390: wire up seb feature

2018-01-17 Thread Christian Borntraeger
Paolo, while this is kvm code, my current plan is to submit the "final" version after review and probably some fixes/renames via Martin together with the other patches. Are you ok with that? Right now it seems that the CAP number is still fine. Christian On 01/17/2018 10:48 AM, Martin Schwidefs

[PATCH -next] dm crypt: fix error return code in crypt_ctr()

2018-01-17 Thread Wei Yongjun
Fix to return error code -ENOMEM from the mempool_create_kmalloc_pool() error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun --- drivers/md/dm-crypt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/md/dm-crypt.c b/drivers/md/dm-crypt.c ind

[PATCH -next] mtd: onenand: omap2: Remove redundant dev_err call in omap2_onenand_probe()

2018-01-17 Thread Wei Yongjun
There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Signed-off-by: Wei Yongjun --- drivers/mtd/onenand/omap2.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/mtd/onenand/omap2.c b/drivers/mtd/

[PATCH -next] ipmi/powernv: Fix error return code in ipmi_powernv_probe()

2018-01-17 Thread Wei Yongjun
Fix to return a negative error code from the request_irq() error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun --- drivers/char/ipmi/ipmi_powernv.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/char/ipmi/ipmi_powernv

[PATCH -next] perf: hisi: Remove redundant dev_err call

2018-01-17 Thread Wei Yongjun
There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Signed-off-by: Wei Yongjun --- drivers/perf/hisilicon/hisi_uncore_ddrc_pmu.c | 4 +--- drivers/perf/hisilicon/hisi_uncore_hha_pmu.c | 4 +--- drivers/perf/hisilicon/hisi_un

Re: [PATCH 5/6] KVM: s390: wire up seb feature

2018-01-17 Thread Paolo Bonzini
> while this is kvm code, my current plan is to submit the "final" > version after review and probably some fixes/renames via Martin > together with the other patches. Are you ok with that? Right now it > seems that the CAP number is still fine. Sure, though there will be a capability introduced b

[PATCH -next] phy: usb: phy-brcm-usb: Remove redundant return value check of platform_get_resource()

2018-01-17 Thread Wei Yongjun
Remove unneeded error handling on the result of a call to platform_get_resource() when the value is passed to devm_ioremap_resource(). Signed-off-by: Wei Yongjun --- drivers/phy/broadcom/phy-brcm-usb.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/phy/broadcom/phy-brcm-usb.c b/

[PATCH][devlink-next] devlink: make functions a couple of new functions static

2018-01-17 Thread Colin King
From: Colin Ian King The functions devlink_resource_find and devlink_resource_validate_children are local to the source and do not need to be in global scope, so make them static. Cleans up sparse warnings: symbol 'devlink_resource_find' was not declared. Should it be static? warning: symbol 'de

[PATCH -next] memory: ti-emif-sram: remove redundant dev_err call in ti_emif_probe()

2018-01-17 Thread Wei Yongjun
There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Signed-off-by: Wei Yongjun --- drivers/memory/ti-emif-pm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/memory/ti-emif-pm.c b/drivers/memory/ti-emif-pm.c inde

Applied "ASoC: Intel: remove second duplicated assignment to pointer 'res'" to the asoc tree

2018-01-17 Thread Mark Brown
The patch ASoC: Intel: remove second duplicated assignment to pointer 'res' 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 2

[PATCH -next] slimbus: qcom: remove redundant dev_err call in qcom_slim_probe()

2018-01-17 Thread Wei Yongjun
There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Signed-off-by: Wei Yongjun --- drivers/slimbus/qcom-ctrl.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/slimbus/qcom-ctrl.c b/drivers/slim

Re: [PATCH 5/6] KVM: s390: wire up seb feature

2018-01-17 Thread Christian Borntraeger
On 01/17/2018 12:22 PM, Paolo Bonzini wrote: >> while this is kvm code, my current plan is to submit the "final" >> version after review and probably some fixes/renames via Martin >> together with the other patches. Are you ok with that? Right now it >> seems that the CAP number is still fine. >

Re: [PATCH 5/6] KVM: s390: wire up seb feature

2018-01-17 Thread Christian Borntraeger
On 01/17/2018 12:28 PM, Christian Borntraeger wrote: > > > On 01/17/2018 12:22 PM, Paolo Bonzini wrote: >>> while this is kvm code, my current plan is to submit the "final" >>> version after review and probably some fixes/renames via Martin >>> together with the other patches. Are you ok with

Re: [PATCH 5/6] KVM: s390: wire up seb feature

2018-01-17 Thread Paolo Bonzini
On 17/01/2018 12:29, Christian Borntraeger wrote: >> The problem is not that I announce the facility, I in fact announce that the >> programmatic interface is available (the sebc sync reg and the usage of that >> field). >> (So the CAP is part of this patch to have both in lockstep) >> A non-exist

[PATCH] MIPS: ftrace: Remove pointer comparison to 0 in prepare_ftrace_return

2018-01-17 Thread Mathieu Malaterre
Replace pointer comparison to 0 with NULL in prepare_ftrace_return to improve code readability. Identified with coccinelle script 'badzero.cocci'. Signed-off-by: Mathieu Malaterre --- arch/mips/kernel/ftrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/kernel/f

Re: [PATCH 5/6] KVM: s390: wire up seb feature

2018-01-17 Thread David Hildenbrand
> #define ECB_GS 0x40 > #define ECB_TE 0x10 > #define ECB_SRSI 0x04 > diff --git a/arch/s390/include/uapi/asm/kvm.h > b/arch/s390/include/uapi/asm/kvm.h > index 38535a57..20b9e9f 100644 > --- a/arch/s390/include/uapi/asm/kvm.h > +++ b/arch/s390/include/uapi/asm/

Re: [PATCH v2 05/13] iommu/rockchip: Fix error handling in init

2018-01-17 Thread Robin Murphy
On 17/01/18 05:26, Tomasz Figa wrote: On Tue, Jan 16, 2018 at 10:25 PM, Jeffy Chen wrote: It's hard to undo bus_set_iommu() in the error path, so move it to the end of rk_iommu_probe(). Does this work fine now? I remember we used to need this called in an early initcall for all the ARM/ARM64

Re: [PATCH 5/6] KVM: s390: wire up seb feature

2018-01-17 Thread Christian Borntraeger
On 01/17/2018 12:33 PM, David Hildenbrand wrote: > >> #define ECB_GS 0x40 >> #define ECB_TE 0x10 >> #define ECB_SRSI0x04 >> diff --git a/arch/s390/include/uapi/asm/kvm.h >> b/arch/s390/include/uapi/asm/kvm.h >> index 38535a57..20b9e9f 100644 >> --- a/arch/s390/i

Re: tun: memory leak in tun_set_iff

2018-01-17 Thread Jason Wang
On 2018年01月17日 19:07, Xin Long wrote: On Wed, Jan 10, 2018 at 2:20 AM, Dmitry Vyukov wrote: Hello, syzkaller has hit the following memory leak on 4.15-rc7. Reproducer is attached. unreeferenced object 0x88002c9ac400 (size 4096): comm "syz-executor0", pid 12349, jiffies 4295751114 (ag

Re: linux-next: manual merge of the kvm tree with Linus' tree

2018-01-17 Thread Thomas Gleixner
On Wed, 17 Jan 2018, Stephen Rothwell wrote: > [This is the same conflict I reported the day before yesterday, but one > of the commits has moved and another that contributed has been dropped.] > diff --cc arch/x86/include/asm/cpufeatures.h > index aa09559b2c0b,19f35be95f16.. > --- a/ar

Re: [PATCH 07/11] signal/arm64: Document conflicts with SI_USER and SIGFPE, SIGTRAP, SIGBUS

2018-01-17 Thread Dave Martin
On Tue, Jan 16, 2018 at 04:28:50PM -0600, Eric W. Biederman wrote: > Dave Martin writes: > > > On Mon, Jan 15, 2018 at 11:23:03AM -0600, Eric W. Biederman wrote: > >> Dave Martin writes: > >> > >> > On Thu, Jan 11, 2018 at 06:59:36PM -0600, Eric W. Biederman wrote: > >> >> Setting si_code to 0

Re: [patch -mm 0/4] mm, memcg: introduce oom policies

2018-01-17 Thread Roman Gushchin
On Tue, Jan 16, 2018 at 06:14:58PM -0800, David Rientjes wrote: > There are three significant concerns about the cgroup aware oom killer as > it is implemented in -mm: > > (1) allows users to evade the oom killer by creating subcontainers or > using other controllers since scoring is done pe

Re: [PATCH] x86/acpi: check rsdp address received via bootparams to be valid

2018-01-17 Thread Rafael J. Wysocki
On Tue, Jan 16, 2018 at 2:57 PM, Juergen Gross wrote: > There seem to exist several grub2 versions trashing > boot_params.hdr.acpi_rsdp_addr. > > So don't just believe this address to be valid, but verify it pointing > to a valid RSDP table. > > Signed-off-by: Juergen Gross > --- > To be applied

Re: [PATCH 4/6] s390: add system call to run tasks with modified branch prediction

2018-01-17 Thread Paolo Bonzini
On 17/01/2018 12:14, Christian Borntraeger wrote: > > > On 01/17/2018 11:03 AM, Florian Weimer wrote: >> On 01/17/2018 10:48 AM, Martin Schwidefsky wrote: >>> rc = syscall(__NR_s390_modify_bp); >>> if (rc) { >>> perror("s390_modify_bp"); >>> exi

[PATCH] kernel: time: forward timer base before migrating timers

2018-01-17 Thread Lingutla Chandrasekhar
In case when timers are migrated to a CPU, after it exits idle, but before timer base is forwarded, either from run_timer_softirq()/mod_timer()/add_timer_on(), it's possible that migrated timers are queued, based on older clock value. This can cause delays in handling those timers. For example, co

Re: Missing watchdog after ACPI watchdog creation failure

2018-01-17 Thread Takashi Iwai
On Wed, 10 Jan 2018 16:43:23 +0100, Takashi Iwai wrote: > > On Wed, 10 Jan 2018 16:23:43 +0100, > Mika Westerberg wrote: > > > > On Wed, Jan 10, 2018 at 04:13:51PM +0100, Takashi Iwai wrote: > > > Hi, > > > > > > on the recent kernels, i2c-i801 skips the creation of iTCO wdt when > > > ACPI WDAT

[PATCH] USB: serial: remove redundant initializations of 'mos_parport'

2018-01-17 Thread Colin King
From: Colin Ian King The pointer mos_parport is being initialized to pp->private_data and then the assignment is duplicated after a spin lock. Remove the initialization as it occurs before the spin lock and it is a redundant assignment. Cleans up clang warnings: drivers/usb/serial/mos7720.c:521

[PATCH v2 0/6] arm64: provide pseudo NMI with GICv3

2018-01-17 Thread Julien Thierry
Hi, This series is a continuation of the work started by Daniel [1]. The goal is to use GICv3 interrupt priorities to simulate an NMI. To achieve this, set two priorities, one for standard interrupts and another, higher priority, for NMIs. Whenever we want to disable interrupts, we mask the stand

[PATCH v2 1/6] arm64: cpufeature: Allow early detect of specific features

2018-01-17 Thread Julien Thierry
From: Daniel Thompson Currently it is not possible to detect features of the boot CPU until the other CPUs have been brought up. This prevents us from reacting to features of the boot CPU until fairly late in the boot process. To solve this we allow a subset of features (that are likely to be co

[PATCH v2 3/6] arm64: irqflags: Use ICC sysregs to implement IRQ masking

2018-01-17 Thread Julien Thierry
From: Daniel Thompson Currently irqflags is implemented using the PSR's I bit. It is possible to implement irqflags by using the co-processor interface to the GIC. Using the co-processor interface makes it feasible to simulate NMIs using GIC interrupt prioritization. This patch changes the irqfl

[PATCH v2 4/6] irqchip/gic: Add functions to access irq priorities

2018-01-17 Thread Julien Thierry
Add functions to read/write priorities to the GIC [re]distributor. Signed-off-by: Julien Thierry Cc: Thomas Gleixner Cc: Jason Cooper Cc: Marc Zyngier --- drivers/irqchip/irq-gic-common.c | 10 ++ drivers/irqchip/irq-gic-common.h | 2 ++ 2 files changed, 12 insertions(+) diff --git

[PATCH v2 6/6] arm64: Add support for pseudo-NMIs

2018-01-17 Thread Julien Thierry
arm64 does not provide native NMIs. Emulate the NMI behaviour using GIC priorities. Add the possibility to set an IRQ as an NMI and the handling of the NMI. If the view of GIC priorities is the secure one (i.e. SCR_EL3.FIQ == 0), do not allow the use of NMIs. Emit a warning when attempting to set

[PATCH v2 5/6] arm64: Detect current view of GIC priorities

2018-01-17 Thread Julien Thierry
The values non secure EL1 needs to use for priority registers depends on the value of SCR_EL3.FIQ. Since we don't have access to SCR_EL3, we fake an interrupt and compare the GIC priority with the one present in the [re]distributor. Also, add firmware requirements related to SCR_EL3. Signed-off-

[PATCH v2 2/6] arm64: alternative: Apply alternatives early in boot process

2018-01-17 Thread Julien Thierry
From: Daniel Thompson Currently alternatives are applied very late in the boot process (and a long time after we enable scheduling). Some alternative sequences, such as those that alter the way CPU context is stored, must be applied much earlier in the boot sequence. Introduce apply_alternatives

Re: [PATCH 4/6] s390: add system call to run tasks with modified branch prediction

2018-01-17 Thread Martin Schwidefsky
On Wed, 17 Jan 2018 12:14:52 +0100 Christian Borntraeger wrote: > On 01/17/2018 11:03 AM, Florian Weimer wrote: > > On 01/17/2018 10:48 AM, Martin Schwidefsky wrote: > >> rc = syscall(__NR_s390_modify_bp); > >> if (rc) { > >> perror("s390_modify_bp"); > >>    

Re: [PATCH 07/11] signal/arm64: Document conflicts with SI_USER and SIGFPE, SIGTRAP, SIGBUS

2018-01-17 Thread Russell King - ARM Linux
On Tue, Jan 16, 2018 at 04:28:50PM -0600, Eric W. Biederman wrote: > I will keep FPE_FIXME as a place holder until this gets sorted out. > > There is a second issue I am looking at in this location, > and maybe I don't have to address it now. But it looks like the code is > calling send_sig_info

Re: [PATCH v5 12/44] clk: davinci: Add platform information for TI DA850 PSC

2018-01-17 Thread Sekhar Nori
On Tuesday 16 January 2018 10:51 PM, David Lechner wrote: > On 01/16/2018 08:00 AM, Sekhar Nori wrote: >> On Monday 08 January 2018 07:47 AM, David Lechner wrote: >>> +void __init da850_psc_clk_init(void __iomem *psc0, void __iomem *psc1) >>> +{ >>> +    struct clk_onecell_data *clk_data; >>> + >>>

Re: [PATCH] USB TYPEC: RT1711H Type-C Chip Driver

2018-01-17 Thread Heikki Krogerus
Hi Greg, On Wed, Jan 17, 2018 at 12:14:02PM +0100, Greg KH wrote: > On Wed, Jan 17, 2018 at 01:08:58PM +0200, Heikki Krogerus wrote: > > Hi, > > > > On Wed, Jan 17, 2018 at 09:30:45AM +, shufan_lee(?) wrote: > > > Dear Heikki, > > > > > > Sorry for bothering. > > > > > > Just wa

Re: [PATCH 0/6] s390: improve speculative execution handling

2018-01-17 Thread Cornelia Huck
On Wed, 17 Jan 2018 10:48:33 +0100 Martin Schwidefsky wrote: > This patch series implements multiple mitigations for the speculative > execution findings: > 1. The definition of the gmb() barrier as currently used by the >distributions, we may have to find a better name for it > 2. The archit

Re: [PATCH] efi/arm*: Only register page tables when they exist

2018-01-17 Thread Ard Biesheuvel
On 17 January 2018 at 10:19, Will Deacon wrote: > On Tue, Jan 16, 2018 at 02:08:32PM +, Mark Rutland wrote: >> Currently the arm/arm64 runtime code registers the runtime servies >> pagetables with ptdump regardless of whether runtime services page >> tables have been created. >> >> As efi_mm.p

Re: [Suspected-Phishing]Re: [PATCH V3 1/2] nvme: split resetting state into reset_prepate and resetting

2018-01-17 Thread Sagi Grimberg
see V4 discussion.. :) I didn't see any v4

Re: [PATCH] proc: fix coredump vs read /proc/*/stat race

2018-01-17 Thread John Ogness
Hi Alexey, On 2018-01-16, Alexey Dobriyan wrote: > do_task_stat() accesses IP and SP of a task without bumping reference > count of a stack (which became an entity with independent lifetime at > some point). > > Steps to reproduce: > > #include > #include > #include > #include > #include > #

Re: [PATCH v5 1/2] printk: Add console owner and waiter logic to load balance console writes

2018-01-17 Thread Petr Mladek
On Wed 2018-01-17 11:19:53, Byungchul Park wrote: > On 1/10/2018 10:24 PM, Petr Mladek wrote: > > From: Steven Rostedt > > By Petr Mladek about possible new deadlocks: > > > > The thing is that we move console_sem only to printk() call > > that normally calls console_unlock() as well. It means th

Re: [PATCH 0/6] s390: improve speculative execution handling

2018-01-17 Thread Christian Borntraeger
On 01/17/2018 01:00 PM, Cornelia Huck wrote: > On Wed, 17 Jan 2018 10:48:33 +0100 > Martin Schwidefsky wrote: > >> This patch series implements multiple mitigations for the speculative >> execution findings: >> 1. The definition of the gmb() barrier as currently used by the >>distributions,

Re: [PATCH] kernel: time: forward timer base before migrating timers

2018-01-17 Thread Thomas Gleixner
On Wed, 17 Jan 2018, Lingutla Chandrasekhar wrote: > In case when timers are migrated to a CPU, after it exits > idle, but before timer base is forwarded, either from > run_timer_softirq()/mod_timer()/add_timer_on(), it's > possible that migrated timers are queued, based on older > clock value. Th

Re: [PATCH] kernel: time: forward timer base before migrating timers

2018-01-17 Thread Thomas Gleixner
On Wed, 17 Jan 2018, Thomas Gleixner wrote: > On Wed, 17 Jan 2018, Lingutla Chandrasekhar wrote: And please fix the subject line: kernel: time: is not the proper subsystem prefix. git log should give you a hint. Aside of that the text after the prefix starts with an uppercase letter. Than

[PATCH] net/mlx5e: Fix trailing semicolon

2018-01-17 Thread Luis de Bethencourt
The trailing semicolon is an empty statement that does no operation. Removing it since it doesn't do anything. Signed-off-by: Luis de Bethencourt --- Hi, After fixing the same thing in drivers/staging/rtl8723bs/, Joe Perches suggested I fix it treewide [0]. Best regards, Luis [0] http://dri

Re: [PATCH v2 0/6] arm64: provide pseudo NMI with GICv3

2018-01-17 Thread Julien Thierry
Hi, On 17/01/18 11:54, Julien Thierry wrote: This series is a continuation of the work started by Daniel [1]. The goal is to use GICv3 interrupt priorities to simulate an NMI. I have submitted a separate series making use of this feature for the ARM PMUv3 interrupt [1]. [1] https://www.sp

Re: [PATCH] Bluetooth: 6lowpan: Fix disconnect bug in 6lowpan

2018-01-17 Thread Luiz Augusto von Dentz
Hi, On Wed, Jan 17, 2018 at 1:47 AM, Guo Yi wrote: > This patch fix the bluetooth 6lowpan disconnect fail bug. > > The type of the same address type have different define value in HCI layer > and L2CAP layer.That makes disconnect fail due to wrong network type.User > will not be able to disconnec

Re: [PATCH 07/11] signal/arm64: Document conflicts with SI_USER and SIGFPE, SIGTRAP, SIGBUS

2018-01-17 Thread Dave Martin
On Wed, Jan 17, 2018 at 11:57:09AM +, Russell King - ARM Linux wrote: > On Tue, Jan 16, 2018 at 04:28:50PM -0600, Eric W. Biederman wrote: > > I will keep FPE_FIXME as a place holder until this gets sorted out. > > > > There is a second issue I am looking at in this location, > > and maybe I d

Re: linux-next: manual merge of the kvm tree with Linus' tree

2018-01-17 Thread Paolo Bonzini
On 17/01/2018 12:45, Thomas Gleixner wrote: > On Wed, 17 Jan 2018, Stephen Rothwell wrote: >> [This is the same conflict I reported the day before yesterday, but one >> of the commits has moved and another that contributed has been dropped.] >> diff --cc arch/x86/include/asm/cpufeatures.h >> index

Re: [PATCH v2 01/13] iommu/rockchip: Request irqs in rk_iommu_probe()

2018-01-17 Thread Robin Murphy
On 16/01/18 13:25, Jeffy Chen wrote: Suggested-by: Robin Murphy Signed-off-by: Jeffy Chen --- Changes in v2: None drivers/iommu/rockchip-iommu.c | 38 +++--- 1 file changed, 11 insertions(+), 27 deletions(-) diff --git a/drivers/iommu/rockchip-iommu.c b/dri

Re: [PATCH] x86/acpi: check rsdp address received via bootparams to be valid

2018-01-17 Thread Juergen Gross
On 17/01/18 12:49, Rafael J. Wysocki wrote: > On Tue, Jan 16, 2018 at 2:57 PM, Juergen Gross wrote: >> There seem to exist several grub2 versions trashing >> boot_params.hdr.acpi_rsdp_addr. >> >> So don't just believe this address to be valid, but verify it pointing >> to a valid RSDP table. >> >>

Re: [PATCH v5 11/44] clk: davinci: Add platform information for TI DA830 PSC

2018-01-17 Thread Sekhar Nori
On Tuesday 16 January 2018 10:46 PM, David Lechner wrote: >>> +static const struct davinci_psc_clk_info da830_psc0_info[] >>> __initconst = { >>> +    LPSC(0, 0, tpcc, pll0_sysclk2, LPSC_ALWAYS_ENABLED), >>> +    LPSC(1, 0, tptc0, pll0_sysclk2, LPSC_ALWAYS_ENABLED), >>> +    LPSC(2, 0, tptc1, pll0

Re: [PATCH 2/2 v3] lib: debugobjects: touch watchdog to avoid softlockup when !CONFIG_PREEMPT

2018-01-17 Thread Thomas Gleixner
On Thu, 4 Jan 2018, Yang Shi wrote: > There are nested loops on debug objects free path, sometimes it may take > over hundred thousands of loops, then cause soft lockup with !CONFIG_PREEMPT > occasionally, like below: Please trim back traces. The whole module info and whatever is completely irrel

Re: UBSAN: Undefined behaviour in net/wireless/nl80211.c:718:4: -1665903437 * 100 cannot be represented in type 'int'

2018-01-17 Thread Paul Menzel
Dear Johannes, On 01/04/18 16:08, Johannes Berg wrote: Hi, Can you reproduce this? [ 54.426491] UBSAN: Undefined behaviour in net/wireless/nl80211.c:718:4 [ 54.426492] signed integer overflow: [ 54.426493] -1665903437 * 100 cannot be represented in type 'int' Obviously. However, it

Re: linux-next: manual merge of the kvm tree with Linus' tree

2018-01-17 Thread Thomas Gleixner
On Wed, 17 Jan 2018, Paolo Bonzini wrote: > On 17/01/2018 12:45, Thomas Gleixner wrote: > > On Wed, 17 Jan 2018, Stephen Rothwell wrote: > >> [This is the same conflict I reported the day before yesterday, but one > >> of the commits has moved and another that contributed has been dropped.] > >> di

Re: [PATCH] arm64: Run enable method for errata work arounds on late CPUs

2018-01-17 Thread Dave Martin
On Wed, Jan 17, 2018 at 10:05:56AM +, Suzuki K Poulose wrote: > When a CPU is brought up after we have finalised the system > wide capabilities (i.e, features and errata), we make sure the > new CPU doesn't need a new errata work around which has not been > detected already. However we don't ru

Re: [PATCH v5 10/44] clk: davinci: New driver for davinci PSC clocks

2018-01-17 Thread Sekhar Nori
On Tuesday 16 January 2018 10:21 PM, David Lechner wrote: >>> +static struct clk *davinci_psc_clk_register(const char *name, >>> +    const char *parent_name, >>> +    struct regmap *regmap, >>> +    u32 lpsc, u32 pd, u32 flags) >>> +{ >>

Re: [PATCH v2 05/13] iommu/rockchip: Fix error handling in init

2018-01-17 Thread Tomasz Figa
On Wed, Jan 17, 2018 at 4:19 PM, Tomasz Figa wrote: > > P.S. Looks like your email client is set to HTML messages. Your > messages might end up dropped from the mailing list. Never mind. Looks like gmail started displaying quotations in plain text as graphics. Best regards, Tomasz

Re: [PATCH] x86/acpi: check rsdp address received via bootparams to be valid

2018-01-17 Thread Juergen Gross
On 16/01/18 17:35, Ingo Molnar wrote: > > * Juergen Gross wrote: > >> On 16/01/18 16:46, Ingo Molnar wrote: >>> >>> * Juergen Gross wrote: >>> There seem to exist several grub2 versions trashing boot_params.hdr.acpi_rsdp_addr. So don't just believe this address to be valid,

Re: [PATCH v2 09/13] iommu/rockchip: Use iommu_group_get_for_dev() for add_device

2018-01-17 Thread Robin Murphy
On 16/01/18 13:25, Jeffy Chen wrote: IOMMU drivers are supposed to call this function instead of manually creating a group in their .add_device callback. This behavior is not strictly required by ARM DMA mapping implementation, but ARM64 already relies on it. This patch fixes the rockchip-iommu d

Re: [PATCH] print kdump kernel loaded status in stack dump

2018-01-17 Thread Dave Young
Hi, Thanks for your comments. On 01/17/18 at 09:57am, Petr Mladek wrote: > On Wed 2018-01-17 12:50:57, Dave Young wrote: > > It is useful to print kdump kernel loaded status in dump_stack() > > especially when panic happens so that we can differenciate > > kdump kernel early hang and a normal p

Re: linux-next: manual merge of the kvm tree with Linus' tree

2018-01-17 Thread Paolo Bonzini
On 17/01/2018 13:23, Thomas Gleixner wrote: > On Wed, 17 Jan 2018, Paolo Bonzini wrote: >> On 17/01/2018 12:45, Thomas Gleixner wrote: >>> On Wed, 17 Jan 2018, Stephen Rothwell wrote: [This is the same conflict I reported the day before yesterday, but one of the commits has moved and anot

Re: linux-next: manual merge of the kvm tree with Linus' tree

2018-01-17 Thread Thomas Gleixner
On Wed, 17 Jan 2018, Paolo Bonzini wrote: > On 17/01/2018 13:23, Thomas Gleixner wrote: > > No. Keep it and lets next time coordinate the relevant bits and pieces > > better. I reserve that bit 20 and let Linus sort out the trivial conflict > > when merging the stuff. > > Thank you. In the future

[PATCH 0/1] perf stat: Add support to print counts for fixed times

2018-01-17 Thread ufo19890607
From: yuzhoujian Introduce a new option to print counts for fixed number of times and update perf-stat documentation accordingly. Show below is the output of the new option for perf stat. $perf stat -I 1000 --times-print 2 -e cycles -a # time counts unit ev

[PATCH 1/1] perf stat: Add support to print counts for fixed times

2018-01-17 Thread ufo19890607
From: yuzhoujian Introduce a new option to print counts for fixed number of times and update perf-stat documentation accordingly. Show below is the output of the new option for perf stat. $perf stat -I 1000 --times-print 2 -e cycles -a # time counts unit ev

Re: [PATCH 07/11] signal/arm64: Document conflicts with SI_USER and SIGFPE, SIGTRAP, SIGBUS

2018-01-17 Thread Russell King - ARM Linux
On Wed, Jan 17, 2018 at 12:15:05PM +, Dave Martin wrote: > On Wed, Jan 17, 2018 at 11:57:09AM +, Russell King - ARM Linux wrote: > > On Tue, Jan 16, 2018 at 04:28:50PM -0600, Eric W. Biederman wrote: > > > I will keep FPE_FIXME as a place holder until this gets sorted out. > > > > > > Ther

[PATCH v2 0/3] tty: Make __do_SAK() less greedy in regard to tasklist_lock

2018-01-17 Thread Kirill Tkhai
Hi, this patchset makes __do_SAK() to take tasklist_lock for very small time in comparison to that it does now. Though this function is executed in process context and it takes tasklist_lock read locked with interrupts enabled, another tasks may want to take it for writing with interrupt disabled

[PATCH v2 3/3] tty: Use RCU read lock to iterate tasks and threads in __do_SAK()

2018-01-17 Thread Kirill Tkhai
There were made several efforts to make __do_SAK() working in process context long ago, but it does not solves the problem completely. Since __do_SAK() may take tasklist_lock for a long time, the concurent processes, waiting for write lock with interrupts disabled (e.g., forking), get into the same

[PATCH v2 1/3] Revert "do_SAK: Don't recursively take the tasklist_lock"

2018-01-17 Thread Kirill Tkhai
This reverts commit 20ac94378de5. send_sig() does not take tasklist_lock for a long time, so this commit and the problem it solves are not relevant anymore. Also, the problem of force_sig() is it clears SIGNAL_UNKILLABLE flag, thus even global init may be killed by __do_SAK(), which is definitely

[PATCH v2 2/3] tty: Avoid threads files iterations in __do_SAK()

2018-01-17 Thread Kirill Tkhai
From: Oleg Nesterov The patch makes __do_SAK() iterate a next thread files only in case of the thread's files are different to previous. I.e., if all threads points the same files_struct, the files will be iterated only once. Since all threads have the same files_struct is the generic case for m

Re: [PATCH 2/6] s390: implement nospec_[load|ptr]

2018-01-17 Thread Jiri Kosina
On Wed, 17 Jan 2018, Martin Schwidefsky wrote: > Implement nospec_load() and nospec_ptr() for s390 with the new > gmb() barrier between the boundary condition and the load that > may not be done speculatively. FWIW the naming seems to be changing constantly. The latest patchset from Dan Williams

Re: linux-next: manual merge of the kvm tree with Linus' tree

2018-01-17 Thread Stephen Rothwell
Hi Thomas, On Wed, 17 Jan 2018 13:23:17 +0100 (CET) Thomas Gleixner wrote: > > On Wed, 17 Jan 2018, Paolo Bonzini wrote: > > On 17/01/2018 12:45, Thomas Gleixner wrote: > > > On Wed, 17 Jan 2018, Stephen Rothwell wrote: > > >> [This is the same conflict I reported the day before yesterday, b

[PATCH v1] timer: Forward timer base before migrating timers

2018-01-17 Thread Lingutla Chandrasekhar
In case when timers are migrated to a CPU, after it exits idle, but before timer base is forwarded, either from run_timer_softirq()/mod_timer()/add_timer_on(), it's possible that migrated timers are queued, based on older clock value. This can cause delays in handling those timers. For example, co

[lkp-robot] [hugetlbfs] c0033af7ee: BUG_hugetlbfs_inode_cache(Not_tainted):Objects_remaining_in_hugetlbfs_inode_cache_on__kmem_cache_shutdown()

2018-01-17 Thread kernel test robot
FYI, we noticed the following commit (built with gcc-7): commit: c0033af7eec3e728c6b70d75950e632ace4c8a55 ("hugetlbfs: Convert to fs_context") https://git.kernel.org/cgit/linux/kernel/git/dhowells/linux-fs.git mount-context in testcase: trinity with following parameters: runtime: 300s

Re: [PATCH v2 01/13] iommu/rockchip: Request irqs in rk_iommu_probe()

2018-01-17 Thread JeffyChen
Hi Robin, On 01/17/2018 08:18 PM, Robin Murphy wrote: @@ -91,7 +92,6 @@ struct rk_iommu { void __iomem **bases; int num_mmu; int *irq; Nit: irq seems to be redundant now as well. oops, will fix it. -int num_irq; bool reset_disabled; struct iommu_device io

Re: [PATCH] kernel: time: forward timer base before migrating timers

2018-01-17 Thread Chandra Sekhar Lingutla
Hi, Sorry for the basic mistakes, posted new patch V1. On 1/17/2018 5:39 PM, Thomas Gleixner wrote: On Wed, 17 Jan 2018, Thomas Gleixner wrote: On Wed, 17 Jan 2018, Lingutla Chandrasekhar wrote: And please fix the subject line: kernel: time: is not the proper subsystem prefix. git log

Re: [PATCH v2 09/13] iommu/rockchip: Use iommu_group_get_for_dev() for add_device

2018-01-17 Thread JeffyChen
Hi Robin, On 01/17/2018 08:31 PM, Robin Murphy wrote: On 16/01/18 13:25, Jeffy Chen wrote: IOMMU drivers are supposed to call this function instead of manually creating a group in their .add_device callback. This behavior is not strictly required by ARM DMA mapping implementation, but ARM64 alr

Re: [PATCH 3/4] tty: Iterate only thread group leaders in __do_SAK()

2018-01-17 Thread Kirill Tkhai
On 17.01.2018 00:13, Oleg Nesterov wrote: > On 01/16, Kirill Tkhai wrote: >> >> On 15.01.2018 23:51, Oleg Nesterov wrote: >>> kill: - force_sig(SIGKILL, p); + send_sig(SIGKILL, p, 1); >>> >>> Agreed, I didn't actually want to use force_sig(SIGKILL), copy-and-paste

Re: linux-next: manual merge of the kvm tree with Linus' tree

2018-01-17 Thread Thomas Gleixner
On Wed, 17 Jan 2018, Stephen Rothwell wrote: > On Wed, 17 Jan 2018 13:23:17 +0100 (CET) Thomas Gleixner > wrote: > > No. Keep it and lets next time coordinate the relevant bits and pieces > > better. I reserve that bit 20 and let Linus sort out the trivial conflict > > when merging the stuff. >

Re: [PATCH v2 09/13] iommu/rockchip: Use iommu_group_get_for_dev() for add_device

2018-01-17 Thread JeffyChen
On 01/17/2018 08:47 PM, JeffyChen wrote: +static struct iommu_group *rk_iommu_device_group(struct device *dev) +{ +struct iommu_group *group; +int ret; + +group = iommu_group_get(dev); +if (!group) { This check is pointless - if dev->iommu_group were non-NULL you wouldn't have

Re: [PATCH arm/aspeed/ast2500 v1] ipmi: add an Aspeed KCS IPMI BMC driver

2018-01-17 Thread Avi Fishman
Sounds great for us (Nuvoton). Avi. On Wed, Jan 17, 2018 at 8:32 AM, Wang, Haiyue wrote: > > > On 2018-01-17 07:06, Joel Stanley wrote: >> >> On Tue, Jan 16, 2018 at 2:59 PM, Corey Minyard wrote: >>> >>> On 01/16/2018 05:43 AM, Haiyue Wang wrote: The KCS (Keyboard Controller Style) in

Re: [PATCH 1/2] microblaze: fix endian handling

2018-01-17 Thread Michal Simek
On 15.1.2018 11:19, Arnd Bergmann wrote: > On Mon, Jan 15, 2018 at 11:14 AM, Michal Simek wrote: >> On 15.1.2018 10:29, Arnd Bergmann wrote: >>> On Sun, Jan 14, 2018 at 2:01 AM, kbuild test robot wrote: Hi Arnd, I love your patch! Yet something to improve: [auto build tes

Re: [PATCH v2 13/13] iommu/rockchip: Support sharing IOMMU between masters

2018-01-17 Thread Robin Murphy
On 16/01/18 13:25, Jeffy Chen wrote: There would be some masters sharing the same IOMMU device. Put them in the same iommu group and share the same iommu domain. Signed-off-by: Jeffy Chen --- Changes in v2: None drivers/iommu/rockchip-iommu.c | 39 +++ 1

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