Re: [PATCH v4 3/6] dt-bindings: power: Introduce properties to present the battery OCV capacity table

2018-10-18 Thread Rob Herring
On Mon, Oct 15, 2018 at 04:09:22PM +0800, Baolin Wang wrote: > Some battery driver will use the open circuit voltage (OCV) value to look > up the corresponding battery capacity percent in one certain degree Celsius. > Thus this patch provides some battery properties to present the OCV table > tempe

Re: [PATCH v5 1/2] dt-bindings: nand: meson: add Amlogic NAND controller driver

2018-10-18 Thread Rob Herring
On Thu, 18 Oct 2018 13:09:04 +0800, Jianxin Pan wrote: > From: Liang Yang > > Add Amlogic NAND controller dt-bindings for Meson SoC, > Current this driver support GXBB/GXL/AXG platform. > > Signed-off-by: Liang Yang > Signed-off-by: Yixun Lan > Signed-off-by: Jianxin Pan > --- > .../devicetr

Re: [RFC PATCH 1/5] x86: introduce preemption disable prefix

2018-10-18 Thread Nadav Amit
at 8:51 PM, Andy Lutomirski wrote: > On Wed, Oct 17, 2018 at 8:12 PM Nadav Amit wrote: >> at 6:22 PM, Andy Lutomirski wrote: >> On Oct 17, 2018, at 5:54 PM, Nadav Amit wrote: It is sometimes beneficial to prevent preemption for very few instructions, or prevent preemption

Re: [PATCH 05/11] x86/fpu: set PKRU state for kernel threads

2018-10-18 Thread Andy Lutomirski
> On Oct 18, 2018, at 9:26 AM, Sebastian Andrzej Siewior > wrote: > >> On 2018-10-12 11:02:18 [-0700], Andy Lutomirski wrote: >> On Fri, Oct 12, 2018 at 10:54 AM Dave Hansen >> wrote: >>> On 10/04/2018 07:05 AM, Sebastian Andrzej Siewior wrote: The PKRU value is not set for kernel

[PATCH] scsi: hisi_sas: Fix NULL pointer dereference

2018-10-18 Thread Gustavo A. R. Silva
There is a NULL pointer dereference in case *slot* happens to be NULL at line 1878: struct hisi_sas_cq *cq = &hisi_hba->cq[slot->dlvry_queue]; Notice that *slot* is being NULL checked at line 1881: if (slot), which implies it may be NULL. Fix this by placing the declaration and definitio

Re: [PATCH V2 3/4] vmbus: add per-channel sysfs info

2018-10-18 Thread Stephen Hemminger
On Thu, 18 Oct 2018 15:32:35 + Michael Kelley wrote: > From Olaf Hering Sent: Thursday, October 18, 2018 8:20 AM > > > > > This extends existing vmbus related sysfs structure to provide per-channel > > > state information. This is useful when diagnosing issues with multiple > > > queues in

Re: [PATCH 1/4] Adds -Wshadow=local on KBUILD_HOSTCFLAGS

2018-10-18 Thread Masahiro Yamada
On Thu, Oct 18, 2018 at 6:18 PM Borislav Petkov wrote: > > On Wed, Oct 17, 2018 at 09:40:53PM -0300, Leonardo Bras wrote: > > The idea was to put it as default and fix all the shadowing warnings. > > What do you think? I am open to suggestions. > > That's Masahiro's call. In the rest of the kerne

Re: [PATCH V2 3/4] vmbus: add per-channel sysfs info

2018-10-18 Thread Stephen Hemminger
On Thu, 18 Oct 2018 17:19:53 +0200 Olaf Hering wrote: > Am Sun, 17 Sep 2017 20:54:18 -0700 > schrieb k...@exchange.microsoft.com: > > > This extends existing vmbus related sysfs structure to provide per-channel > > state information. This is useful when diagnosing issues with multiple > > queues

Re: [PATCH 05/11] x86/fpu: set PKRU state for kernel threads

2018-10-18 Thread Sebastian Andrzej Siewior
On 2018-10-12 11:02:18 [-0700], Andy Lutomirski wrote: > On Fri, Oct 12, 2018 at 10:54 AM Dave Hansen > wrote: > > > > On 10/04/2018 07:05 AM, Sebastian Andrzej Siewior wrote: > > > The PKRU value is not set for kernel threads because they do not have > > > the ->initialized value set. As a result

[PATCH 3/4] ARM: mm: fix build error in fix_to_virt with CONFIG_CC_OPTIMIZE_FOR_DEBUGGING

2018-10-18 Thread Du Changbin
From: Changbin Du With '-Og' optimization level, GCC would not optimize a count for a loop as a constant value. But BUILD_BUG_ON() only accept compile-time constant values. Let's use __fix_to_virt() to avoid the error. arch/arm/mm/mmu.o: In function `fix_to_virt': /home/changbin/work/linux/./inc

[PATCH 4/4] kernel hacking: new config CC_OPTIMIZE_FOR_DEBUGGING to apply GCC -Og optimization

2018-10-18 Thread Du Changbin
From: Changbin Du This will apply GCC '-Og' optimization level which is supported since GCC 4.8. This optimization level offers a reasonable level of optimization while maintaining fast compilation and a good debugging experience. It is similar to '-O1' while perferring to keep debug ability over

[PATCH 1/4] x86/mm: surround level4_kernel_pgt with #ifdef CONFIG_X86_5LEVEL...#endif

2018-10-18 Thread Du Changbin
From: Changbin Du The level4_kernel_pgt is only defined when X86_5LEVEL is enabled. So surround level4_kernel_pgt with #ifdef CONFIG_X86_5LEVEL...#endif to make code correct. Signed-off-by: Changbin Du Acked-by: Steven Rostedt (VMware) --- arch/x86/include/asm/pgtable_64.h | 2 ++ arch/x86/k

[PATCH 2/4] kernel hacking: new config NO_AUTO_INLINE to disable compiler auto-inline optimizations

2018-10-18 Thread Du Changbin
From: Changbin Du This patch add a new kernel hacking option NO_AUTO_INLINE. Selecting this option will prevent the compiler from optimizing the kernel by auto-inlining functions not marked with the inline keyword. With this option, only functions explicitly marked with "inline" will be inlined.

[PATCH 0/4] kernel hacking: GCC optimization for better debug experience (-Og)

2018-10-18 Thread Du Changbin
Hi all, I have posted this series several months ago but interrupted by personal affairs. Now I get time to complete this task. Thanks for all of the reviewers. I know some kernel developers was searching for a method to dissable GCC optimizations, probably they want to apply GCC '-O0' option. But

Photos 40

2018-10-18 Thread Nancy
We are an image team who can process 400+ images each day. If you need any image editing service, please let us know. Image cut out and clipping path, masking. Such as for ecommerce photos, jewelry photos retouching, beauty and skin images and wedding photos. We give test editing for your photo

Re: [PATCH] softirq: modify comments about PF_MEMALLOC in __do_softirq

2018-10-18 Thread Frank Lee
>On Thu, 18 Oct 2018 >Ingo Molnar wrote: >* Yangtao Li wrote: > >> --- >> kernel/softirq.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/kernel/softirq.c b/kernel/softirq.c >> index 6f584861d329..6193e1d1b30d 100644 >> --- a/kernel/softirq.c >> +++ b/kernel/softirq.

Re: [RFC PATCH 0/7] Introduce thermal pressure

2018-10-18 Thread Thara Gopinath
On 10/18/2018 02:48 AM, Ingo Molnar wrote: > > * Thara Gopinath wrote: > >> On 10/16/2018 03:33 AM, Ingo Molnar wrote: >>> >>> * Thara Gopinath wrote: >>> >> Regarding testing, basic build, boot and sanity testing have been >> performed on hikey960 mainline kernel with debian file syste

[PATCH] arm64: defconfig: Enable some IPMI configs

2018-10-18 Thread John Garry
The arm64 port now runs on servers which use IPMI. This patch enables relevant core configs to save manually enabling them when testing mainline. Signed-off-by: John Garry diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index db8d364..fe8c097 100644 --- a/arch/arm64/conf

[tip:irq/core] softirq: Fix typo in __do_softirq() comments

2018-10-18 Thread tip-bot for Yangtao Li
Commit-ID: e45506ac0af9b56b221863e9649fe122d8bb42ff Gitweb: https://git.kernel.org/tip/e45506ac0af9b56b221863e9649fe122d8bb42ff Author: Yangtao Li AuthorDate: Thu, 18 Oct 2018 10:21:33 -0400 Committer: Ingo Molnar CommitDate: Thu, 18 Oct 2018 18:10:23 +0200 softirq: Fix typo in __do_so

[tip:perf/core] kprobes, x86/ptrace.h: Make regs_get_kernel_stack_nth() not fault on bad stack

2018-10-18 Thread tip-bot for Steven Rostedt (VMware)
Commit-ID: c2712b858187f5bcd7b042fe4daa3ba3a12635c0 Gitweb: https://git.kernel.org/tip/c2712b858187f5bcd7b042fe4daa3ba3a12635c0 Author: Steven Rostedt (VMware) AuthorDate: Wed, 17 Oct 2018 16:59:51 -0400 Committer: Ingo Molnar CommitDate: Thu, 18 Oct 2018 08:28:35 +0200 kprobes, x86/pt

Re: [PATCH 04/11] x86/fpu: eager switch PKRU state

2018-10-18 Thread Sebastian Andrzej Siewior
On 2018-10-12 10:51:34 [-0700], Dave Hansen wrote: > > diff --git a/arch/x86/include/asm/fpu/internal.h > > b/arch/x86/include/asm/fpu/internal.h > > index 16c4077ffc945..956d967ca824a 100644 > > --- a/arch/x86/include/asm/fpu/internal.h > > +++ b/arch/x86/include/asm/fpu/internal.h > > @@ -570,11

Re: [PATCH 2/3] uapi: get rid of STATX_ALL

2018-10-18 Thread Florian Weimer
* Amir Goldstein: > On Thu, Oct 18, 2018 at 4:11 PM Miklos Szeredi wrote: >> >> Constants of the *_ALL type can be actively harmful due to the fact that >> developers will usually fail to consider the possible effects of future >> changes to the definition. >> >> Remove STATX_ALL from the uapi, w

Re: [PATCH] softirq: modify comments about PF_MEMALLOC in __do_softirq

2018-10-18 Thread Ingo Molnar
* Yangtao Li wrote: > --- > kernel/softirq.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/kernel/softirq.c b/kernel/softirq.c > index 6f584861d329..6193e1d1b30d 100644 > --- a/kernel/softirq.c > +++ b/kernel/softirq.c > @@ -257,7 +257,7 @@ asmlinkage __visible void

Re: statx(2) API and documentation

2018-10-18 Thread David Howells
Miklos Szeredi wrote: > I'm trying to implement statx for fuse and ran into the following issues: > > - Need a STATX_ATTRIBUTES bit, so that userspace can explicitly ask > for stx_attribute; otherwise if querying has non-zero cost, then > filesystem cannot do it without regressing performance.

Re: [PATCH] softirq: modify comments about PF_MEMALLOC in __do_softirq

2018-10-18 Thread Frank Lee
This place looks like a small mistake. :-) -- Yangtao Li >On Thu, 18 Oct 2018 >Steven Rostedt (VMware) wrote: >I don't know if the trivial tree is dead or not, but this would be a >prime candidate. > >Acked-by: Steven Rostedt (VMware) > >-- Steve > > >On Thu, 18 Oct 2018 10:21:33 -0400 >Yangtao

Photos 39

2018-10-18 Thread Nancy
We are an image team who can process 400+ images each day. If you need any image editing service, please let us know. Image cut out and clipping path, masking. Such as for ecommerce photos, jewelry photos retouching, beauty and skin images and wedding photos. We give test editing for your photo

[PATCH v2 00/10] Add support for TISCI irqchip drivers

2018-10-18 Thread Lokesh Vutla
TISCI abstracts the handling of IRQ routes where interrupt sources are not directly connected to host interrupt controller. This series adds support for: - TISCI commands needed for IRQ configuration - Interrupt Router(INTR) and Interrupt Aggregator(INTA) drivers More information on TISCI IRQ mana

[PATCH v2 01/10] firmware: ti_sci: Add support to get TISCI handle using of_phandle

2018-10-18 Thread Lokesh Vutla
From: Grygorii Strashko TISCI has been updated to have support for Resource management(likes interrupts etc..). And there can be multiple device instances of a resource type in a SoC. So every driver corresponding to a resource type should get a TISCI handle so that it can make TISCI calls. And e

[PATCH v2 05/10] firmware: ti_sci: Add helper apis to manage resources

2018-10-18 Thread Lokesh Vutla
Each resource with in the device can be uniquely identified by a type and subtype as defined by TISCI. Since this is generic across the devices, resource allocation also can be made generic instead of each client driver handling the resource. So add helper apis to manage the resource. Signed-off-b

[PATCH v2 08/10] dt-bindings: irqchip: Introduce TISCI Interrupt Aggregator bindings

2018-10-18 Thread Lokesh Vutla
Add the DT binding documentation for Interrupt Aggregator driver. Signed-off-by: Lokesh Vutla --- Changes since v1: - New patch .../interrupt-controller/ti,sci-inta.txt | 74 +++ MAINTAINERS | 1 + 2 files changed, 75 insertions(+) create

[PATCH v2 07/10] irqchip: ti-sci-intr: Add support for Interrupt Router driver

2018-10-18 Thread Lokesh Vutla
Texas Instruments' K3 generation SoCs has an IP Interrupt Router that does allows for multiplexing of input interrupts to host interrupt controller. Interrupt Router inputs are either from a peripheral or from an Interrupt Aggregator which is another interrupt controller. Configuration of the inte

[PATCH v2 10/10] soc: ti: am6: Enable interrupt controller drivers

2018-10-18 Thread Lokesh Vutla
Select all the TISCI dependent interrupt controller drivers for AM6 SoC. Suggested-by: Marc Zyngier Signed-off-by: Lokesh Vutla --- Changes since v1: - new patch drivers/soc/ti/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/soc/ti/Kconfig b/drivers/soc/ti/Kconfig index

[PATCH v2 02/10] firmware: ti_sci: Add support for RM core ops

2018-10-18 Thread Lokesh Vutla
TISCI provides support for getting the resources(IRQ, RING etc..) assigned to a specific device. These resources can be handled by the client and in turn sends TISCI cmd to configure the resources. It is very important that client should keep track on usage of these resources. Add support for TIS

[PATCH v2 09/10] irqchip: ti-sci-inta: Add support for Interrupt Aggregator driver

2018-10-18 Thread Lokesh Vutla
Texas Instruments' K3 generation SoCs has an IP Interrupt Aggregator which is an interrupt controller that does the following: - Converts events to interrupts that can be understood by an interrupt router. - Allows for multiplexing of events to interrupts. - Allows for grouping of multiple events

[PATCH v2 06/10] dt-bindings: irqchip: Introduce TISCI Interrupt router bindings

2018-10-18 Thread Lokesh Vutla
Add the DT binding documentation for Interrupt router driver. Signed-off-by: Lokesh Vutla --- Changes since v1: - Drop dependency on GIC - Updated supported interrupt types. .../interrupt-controller/ti,sci-intr.txt | 81 +++ MAINTAINERS |

[PATCH v2 03/10] firmware: ti_sci: Add support for IRQ management

2018-10-18 Thread Lokesh Vutla
TISCI abstracts the handling of IRQ routes where interrupt sources are not directly connected to interrupt controller. Add support for the set of TISCI commands for requesting and releasing IRQs. Signed-off-by: Lokesh Vutla --- Changes since v1: - None. drivers/firmware/ti_sci.c |

[PATCH v2 04/10] firmware: ti_sci: Add RM mapping table for am654

2018-10-18 Thread Lokesh Vutla
From: Peter Ujfalusi Add the resource mapping table for AM654 SoC as defined in http://downloads.ti.com/tisci/esd/latest/5_soc_doc/am6x/resasg_types.html Introduce a new compatible for AM654 "ti,am654-sci" for using this resource map table. Signed-off-by: Peter Ujfalusi Signed-off-by: Lokesh Vu

Re: [PATCH 5/5] mm/memory-hotplug: Rework unregister_mem_sect_under_nodes

2018-10-18 Thread Jonathan Cameron
On Thu, 18 Oct 2018 17:02:21 +0200 Oscar Salvador wrote: > On Thu, Oct 18, 2018 at 03:24:34PM +0100, Jonathan Cameron wrote: > > Tested-by: Jonathan Cameron > > Thanks a lot Jonathan for having tested it! > > Did you test the whole serie or only this patch? > Since you have caught some bugs

Re: [PATCH 1/2] arm64: dts: qcom: sdm845: add UFS controller

2018-10-18 Thread Evan Green
On Thu, Oct 18, 2018 at 4:33 AM Vivek Gautam wrote: > > Hi Evan, > > On Wed, Oct 17, 2018 at 10:55 PM Evan Green wrote: > > > > This change adds the UFS controller and PHY to SDM845. > > > > Signed-off-by: Evan Green > > Signed-off-by: Douglas Anderson > > --- > > arch/arm64/boot/dts/qcom/sdm8

[PATCH] firmware: coreboot: Fix a missing-check bug

2018-10-18 Thread Wenwen Wang
In coreboot_table_init(), a for loop is used to copy the entries of the coreboot table. For each entry, the header of the entry, which is a structure coreboot_table_entry and includes the size of the entry, is firstly copied from the IO region 'ptr_entry' to 'entry' through the first memcpy_fromio(

Re: [PATCH] pstore/ram: Clarify resource reservation labels

2018-10-18 Thread Dan Williams
[ add Ross ] On Thu, Oct 18, 2018 at 12:15 AM Kees Cook wrote: > > On Wed, Oct 17, 2018 at 5:49 PM, Dan Williams > wrote: > > On Wed, Oct 17, 2018 at 5:29 PM Kees Cook wrote: > >> > >> When ramoops reserved a memory region in the kernel, it had an unhelpful > >> label of "persistent_memory". W

RE: [PATCH V2 3/4] vmbus: add per-channel sysfs info

2018-10-18 Thread Michael Kelley
>From Olaf Hering Sent: Thursday, October 18, 2018 8:20 AM > > > This extends existing vmbus related sysfs structure to provide per-channel > > state information. This is useful when diagnosing issues with multiple > > queues in networking and storage. > > > +++ b/drivers/hv/vmbus_drv.c > > +stat

Re: [Patch v3 13/13] x86/speculation: Create PRCTL interface to restrict indirect branch speculation

2018-10-18 Thread Thomas Gleixner
On Wed, 17 Oct 2018, Tim Chen wrote: > --- a/Documentation/admin-guide/kernel-parameters.txt > +++ b/Documentation/admin-guide/kernel-parameters.txt > @@ -4196,7 +4196,10 @@ > lite - turn on mitigation for non-dumpable >processes (i.e. protec

Re: [PATCH v12 06/12] livepatch: Simplify API by removing registration step

2018-10-18 Thread Josh Poimboeuf
On Thu, Oct 18, 2018 at 04:54:56PM +0200, Petr Mladek wrote: > On Mon 2018-10-15 18:01:43, Miroslav Benes wrote: > > On Fri, 12 Oct 2018, Petr Mladek wrote: > > > > > On Wed 2018-09-05 11:34:06, Miroslav Benes wrote: > > > > On Tue, 28 Aug 2018, Petr Mladek wrote: > > > > > Also the API and logic

Re: linux-next: Tree for Oct 18

2018-10-18 Thread Guenter Roeck
On Thu, Oct 18, 2018 at 06:02:16PM +1100, Stephen Rothwell wrote: > Hi all, > > News: I will not be doing linux-next releases next week. Unfortunately > this will probably be the first week of the merge window. :-( > Note: Every individual on Cc: might want to have a look. Either one of your pa

Re: linux-next: Tree for Oct 18 (cpufreq: intel_pstate)

2018-10-18 Thread Randy Dunlap
On 10/18/18 12:02 AM, Stephen Rothwell wrote: > Hi all, > > News: I will not be doing linux-next releases next week. Unfortunately > this will probably be the first week of the merge window. :-( > > Changes since 20181017: > on x86_64 or i386: ../drivers/cpufreq/intel_pstate.c: In function 's

RE: [PATCH v4 4/4] perf/smmuv3_pmu: Enable HiSilicon Erratum 162001800 quirk

2018-10-18 Thread Shameerali Kolothum Thodi
> -Original Message- > From: Linuxarm [mailto:linuxarm-boun...@huawei.com] On Behalf Of > Shameerali Kolothum Thodi > Sent: 18 October 2018 14:34 > To: Robin Murphy ; lorenzo.pieral...@arm.com; > jean-philippe.bruc...@arm.com > Cc: mark.rutl...@arm.com; vkil...@codeaurora.org; > neil.m.le

Re: [PATCH V2 3/4] vmbus: add per-channel sysfs info

2018-10-18 Thread Olaf Hering
Am Sun, 17 Sep 2017 20:54:18 -0700 schrieb k...@exchange.microsoft.com: > This extends existing vmbus related sysfs structure to provide per-channel > state information. This is useful when diagnosing issues with multiple > queues in networking and storage. > +++ b/drivers/hv/vmbus_drv.c > +stati

Re: [PATCH 3/3] statx: add STATX_ATTRIBUTES flag

2018-10-18 Thread David Howells
Miklos Szeredi wrote: > + /* Having anything in attributes_mask means attributes are valid. */ > + if (tmp.stx_attributes_mask) > + tmp.stx_mask |= STATX_ATTRIBUTES; That would be superfluous, since userspace can make this check too. Note that fsinfo() might inform you bette

Re: [PATCH stable v4.4+] usb: gadget: serial: fix oops when data rx'd after close

2018-10-18 Thread Greg Kroah-Hartman
On Thu, Oct 18, 2018 at 04:28:20PM +0200, Krzysztof Kozlowski wrote: > From: Stephen Warren > > commit daa35bd95634a2a2d72d1049c93576a02711cb1a upstream > > When the gadget serial device has no associated TTY, do not pass any > received data into the TTY layer for processing; simply drop it inst

Re: [Patch v3 12/13] x86/speculation: Protect non-dumpable processes against Spectre v2 attack

2018-10-18 Thread Thomas Gleixner
On Wed, 17 Oct 2018, Tim Chen wrote: > +void arch_set_dumpable(struct task_struct *tsk, unsigned int value) > +{ > + bool update; > + > + if (!static_branch_unlikely(&spectre_v2_app_lite)) > + return; > + if (!static_cpu_has(X86_FEATURE_STIBP)) > + return; > +

Re: rdma-core doesn't install driver.h, broke libibscif

2018-10-18 Thread Sudeep Dutt
On Wed, 2018-10-17 at 01:54 -0700, Christoph Hellwig wrote: > On Mon, Oct 15, 2018 at 05:53:44PM +, Woodruff, Robert J wrote: > > James Harvey wrote, > > > > >Short: Is libibscif dead, and should OS repositories remove it? > > > > Libibscif is for an old product, Intel's KNC, that is no long

Re: [PATCH 2/3] uapi: get rid of STATX_ALL

2018-10-18 Thread David Howells
Miklos Szeredi wrote: > Constants of the *_ALL type can be actively harmful due to the fact that > developers will usually fail to consider the possible effects of future > changes to the definition. > > Remove STATX_ALL from the uapi, while no damage has been done yet. You don't know that some

Re: [Patch v3 11/13] x86/speculation: Add Spectre v2 lite app to app protection mode

2018-10-18 Thread Thomas Gleixner
On Wed, 17 Oct 2018, Tim Chen wrote: > Currently the STIBP is always turned on for CPUs vulnerable to Spectre V2. > A new lite protection mode option is created. In this new mode, we protect > security sensitive processes with STIBP and IBPB against application to > application attack based on it

Re: [PATCH] softirq: modify comments about PF_MEMALLOC in __do_softirq

2018-10-18 Thread Steven Rostedt
I don't know if the trivial tree is dead or not, but this would be a prime candidate. Acked-by: Steven Rostedt (VMware) -- Steve On Thu, 18 Oct 2018 10:21:33 -0400 Yangtao Li wrote: > --- > kernel/softirq.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/kernel/s

[PATCH v2 2/2] phy: ocelot-serdes: fix out-of-bounds read

2018-10-18 Thread Gustavo A. R. Silva
Currently, there is an out-of-bounds read on array ctrl->phys, once variable i reaches the maximum array size of SERDES_MAX in the for loop. Fix this by changing the condition in the for loop from i <= SERDES_MAX to i < SERDES_MAX. Addresses-Coverity-ID: 1473966 ("Out-of-bounds read") Addresses-C

RE: [PATCH V2 5/5] Tools: hv: kvp: Fix a warning of buffer overflow with gcc 8.0.1

2018-10-18 Thread David Laight
From: Dan Carpenter > Sent: 18 October 2018 07:33 > > On Thu, Oct 18, 2018 at 05:09:32AM +, k...@linuxonhyperv.com wrote: > > From: Dexuan Cui > > > > The patch fixes: > > > > hv_kvp_daemon.c: In function 'kvp_set_ip_info': > > hv_kvp_daemon.c:1305:2: note: 'snprintf' output between 41 and 41

Re: [PATCH 5/5] pinctrl: mediatek: Add initial pinctrl driver for MT6797 SoC

2018-10-18 Thread Sean Wang
On Tue, Oct 16, 2018 at 10:01 PM Matthias Brugger wrote: > > > > On 11/10/2018 18:44, Manivannan Sadhasivam wrote: > > On Thu, Oct 11, 2018 at 05:50:19PM +0200, Matthias Brugger wrote: > >> > >> > >> On 08/10/2018 21:14, Manivannan Sadhasivam wrote: > >>> Add initial pinctrl driver for Mediatek MT

[PATCH v2 0/2] phy: ocelot-serdes: fix out-of-bounds read

2018-10-18 Thread Gustavo A. R. Silva
This patchset aims to fix an out-of-bounds bug in the phy-ocelot-serdes driver. Currently, there is an out-of-bounds read on array ctrl->phys, once variable i reaches the maximum array size of SERDES_MAX in the for loop. Quentin Schulz pointed out that SERDES_MAX is a valid value to index ctrl->p

[PATCH v2 1/2] dt-bindings: phy: Update SERDES_MAX to be SERDES_MAX + 1

2018-10-18 Thread Gustavo A. R. Silva
SERDES_MAX is a valid value to index ctrl->phys in drivers/phy/mscc/phy-ocelot-serdes.c. But, currently, there is an out-of-bounds bug in the mentioned driver when reading from ctrl->phys, because the size of array ctrl->phys is SERDES_MAX. Partially fix this by updating SERDES_MAX to be SERDES6G_

Re: [PATCH 5/5] mm/memory-hotplug: Rework unregister_mem_sect_under_nodes

2018-10-18 Thread Oscar Salvador
On Thu, Oct 18, 2018 at 03:24:34PM +0100, Jonathan Cameron wrote: > Tested-by: Jonathan Cameron Thanks a lot Jonathan for having tested it! Did you test the whole serie or only this patch? Since you have caught some bugs testing the memory-hotplug code on ARM64, I wonder if you could test it wit

Re: [PATCH v2 2/4] nfc: pn532_uart: Add NXP PN532 to devicetree docs

2018-10-18 Thread Marcel Holtmann
Hi Lars, > Add pn532 to the trivial-devices.txt binding doc. > > Signed-off-by: Lars Poeschel > --- > Documentation/devicetree/bindings/trivial-devices.txt | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/Documentation/devicetree/bindings/trivial-devices.txt > b/Documentation/devicetree

Re: [Ksummit-discuss] [PATCH v3 1/3] code-of-conduct: Fix the ambiguity about collecting email addresses

2018-10-18 Thread James Bottomley
On Wed, 2018-10-17 at 12:53 -0700, Frank Rowand wrote: > On 10/17/18 12:08, James Bottomley wrote: [...] > > > Trying to understand how you are understanding my comment vs what > > > I intended to communicate, it seems to me that you are focused on > > > the "where allowed" and I am focused on the

Re: [PATCH 1/1] Perf: Compile failed when compile with libelf.

2018-10-18 Thread Arnaldo Carvalho de Melo
Em Thu, Oct 18, 2018 at 04:36:46PM +0800, Nickhu escreveu: > The error message: > = > util/symbol-elf.c:46:12: error: static declaration of 'elf_getphdrnum' > follows non-static declaration > static int elf_getphdrnum(Elf *elf, siz

Re: [PATCH v12 06/12] livepatch: Simplify API by removing registration step

2018-10-18 Thread Petr Mladek
On Mon 2018-10-15 18:01:43, Miroslav Benes wrote: > On Fri, 12 Oct 2018, Petr Mladek wrote: > > > On Wed 2018-09-05 11:34:06, Miroslav Benes wrote: > > > On Tue, 28 Aug 2018, Petr Mladek wrote: > > > > Also the API and logic is much easier. It is enough to call > > > > klp_enable_patch() in module

Re: [PATCH 2/3] uapi: get rid of STATX_ALL

2018-10-18 Thread Amir Goldstein
On Thu, Oct 18, 2018 at 4:11 PM Miklos Szeredi wrote: > > Constants of the *_ALL type can be actively harmful due to the fact that > developers will usually fail to consider the possible effects of future > changes to the definition. > > Remove STATX_ALL from the uapi, while no damage has been don

[PATCH v2 2/4] nfc: pn532_uart: Add NXP PN532 to devicetree docs

2018-10-18 Thread Lars Poeschel
Add pn532 to the trivial-devices.txt binding doc. Signed-off-by: Lars Poeschel --- Documentation/devicetree/bindings/trivial-devices.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/trivial-devices.txt b/Documentation/devicetree/bindings/trivial-devices.

[PATCH v2 1/4] nfc: pn533: add UART phy driver

2018-10-18 Thread Lars Poeschel
This adds the UART phy interface for the pn533 driver. The pn533 driver can be used through UART interface this way. It is implemented as a serdev device. Signed-off-by: Lars Poeschel --- Changes in v2: - switched from tty line discipline to serdev, resulting in many simplifications - SPDX Lice

Re: [PATCH] arm64/pvpanic-mmio : add pvpanic mmio device

2018-10-18 Thread Mark Rutland
On Thu, Oct 18, 2018 at 09:56:11AM +0800, peng.h...@zte.com.cn wrote: > >Hi, > > > >[adding devicetree] > > > >On Wed, Oct 17, 2018 at 06:08:23PM +0800, Peng Hao wrote: [...] > >> +#define PVPANIC_MMIO_CRASHED(1 << 0) > > > >This looks like it's identical to PVPANIC_PANICKED in the existing A

Re: [PATCH v5 1/3] dt-bindings: thermal: Add binding document for SR thermal

2018-10-18 Thread Rob Herring
On Tue, 16 Oct 2018 20:41:18 +0530, Srinath Mannam wrote: > From: Pramod Kumar > > Add binding document for supported thermal implementation > in Stingray. > > Signed-off-by: Pramod Kumar > Signed-off-by: Srinath Mannam > Reviewed-by: Ray Jui > Reviewed-by: Scott Branden > --- > .../binding

Re: [PATCH 2/3] uapi: get rid of STATX_ALL

2018-10-18 Thread Miklos Szeredi
On Thu, Oct 18, 2018 at 4:32 PM, Miklos Szeredi wrote: > On Thu, Oct 18, 2018 at 3:15 PM, Florian Weimer wrote: >> * Miklos Szeredi: >> >>> #define STATX__RESERVED 0x8000U /* Reserved for >>> future struct statx expansion */ >> >> What about this? Isn't it similar to STATX

Re: [PATCH 2/3] uapi: get rid of STATX_ALL

2018-10-18 Thread Miklos Szeredi
On Thu, Oct 18, 2018 at 3:15 PM, Florian Weimer wrote: > * Miklos Szeredi: > >> #define STATX__RESERVED 0x8000U /* Reserved for future >> struct statx expansion */ > > What about this? Isn't it similar to STATX_ALL in the sense that we > don't know yet what it will mean? K

Re: [PATCH 5/5] nds32: Add document for NDS32 PMU.

2018-10-18 Thread Mark Rutland
On Thu, Oct 18, 2018 at 04:43:17PM +0800, Nickhu wrote: > The document for how to add NDS32 PMU > in devicetree. > > Signed-off-by: Nickhu > --- > Documentation/devicetree/bindings/nds32/pmu.txt | 17 + > 1 file changed, 17 insertions(+) > create mode 100644 Documentation/device

Re: [PATCH V9 18/21] dt-bindings: csky CPU Bindings

2018-10-18 Thread Rob Herring
On Tue, 16 Oct 2018 10:58:37 +0800, Guo Ren wrote: > This patch adds the documentation to describe that how to add cpu nodes in > dts for SMP. > > Signed-off-by: Guo Ren > Cc: Rob Herring > --- > Changelog: > - Add compatible. > - Remove status part. > --- > --- > Documentation/devicetree/bin

Re: [PATCH v3] mm: memcontrol: Don't flood OOM messages with no eligible task.

2018-10-18 Thread Petr Mladek
On Thu 2018-10-18 13:27:39, Sergey Senozhatsky wrote: > On (10/18/18 11:46), Tetsuo Handa wrote: > > Sergey Senozhatsky wrote: > > > > > > int printk_ratelimit_interval(void) > > > { > > >int ret = DEFAULT_RATELIMIT_INTERVAL; > > >struct tty_driver *driver = NULL; > > >spee

Re: [PATCH 4/5] nds32: Fix perf multiple events map to same counter.

2018-10-18 Thread Mark Rutland
On Thu, Oct 18, 2018 at 04:43:16PM +0800, Nickhu wrote: > When there are multiple events map to the same counter, the counter > counts inaccurately. This is because each counter only counts one event > in the same time. > So when there are multiple events map to same counter, they have to take > tu

[PATCH stable v4.4+] usb: gadget: serial: fix oops when data rx'd after close

2018-10-18 Thread Krzysztof Kozlowski
From: Stephen Warren commit daa35bd95634a2a2d72d1049c93576a02711cb1a upstream When the gadget serial device has no associated TTY, do not pass any received data into the TTY layer for processing; simply drop it instead. This prevents the TTY layer from calling back into the gadget serial driver,

Re: [PATCH 2/5] nds32: Fix bug in bitfield.h

2018-10-18 Thread Mark Rutland
On Thu, Oct 18, 2018 at 04:43:14PM +0800, Nickhu wrote: > There two bitfield bug for perfomance counter > in bitfield.h: > > PFM_CTL_offSEL1 21 --> 16 > PFM_CTL_offSEL2 27 --> 22 > > This commit fix it. > > Signed-off-by: Nickhu This patch should probably be move be

Re: [PATCH 5/5] mm/memory-hotplug: Rework unregister_mem_sect_under_nodes

2018-10-18 Thread Jonathan Cameron
On Mon, 15 Oct 2018 17:30:34 +0200 Oscar Salvador wrote: > From: Oscar Salvador > > This tries to address another issue about accessing > unitiliazed pages. > > Jonathan reported a problem [1] where we can access steal pages > in case we hot-remove memory without onlining it first. > > This t

Re: [PATCH v5 2/2] mtd: rawnand: meson: add support for Amlogic NAND flash controller

2018-10-18 Thread Boris Brezillon
On Thu, 18 Oct 2018 13:09:05 +0800 Jianxin Pan wrote: > +static int meson_nfc_exec_op(struct nand_chip *chip, > + const struct nand_operation *op, bool check_only) > +{ > + struct mtd_info *mtd = nand_to_mtd(chip); > + struct meson_nfc *nfc = nand_get_controller_d

Re: [PATCH 2/5] arm64: dts: mediatek: mt6797: Add pinctrl support

2018-10-18 Thread Sean Wang
On Tue, Oct 9, 2018 at 3:16 AM Manivannan Sadhasivam wrote: > > Add pinctrl support for Mediatek MT6797 SoC. > > Signed-off-by: Manivannan Sadhasivam > --- > arch/arm64/boot/dts/mediatek/mt6797.dtsi | 14 ++ > 1 file changed, 14 insertions(+) > > diff --git a/arch/arm64/boot/dts/medi

Re: [PATCH 1/5] nds32: Perf porting

2018-10-18 Thread Mark Rutland
HI, On Thu, Oct 18, 2018 at 04:43:13PM +0800, Nickhu wrote: > +#define PFM_CTL_OVF(idx) PFM_CTL_mskOVF ## idx > +#define PFM_CTL_EN(idx) PFM_CTL_mskEN ## idx > +#define PFM_CTL_OFFSEL(idx) PFM_CTL_offSEL ## idx > +#define PFM_CTL_IE(idx)

Re: [PATCH] perf: Set PLT entry/header sizes properly on Sparc.

2018-10-18 Thread Arnaldo Carvalho de Melo
Em Wed, Oct 17, 2018 at 12:08:59PM -0700, David Miller escreveu: > > Using the sh_entsize for both values isn't correct. It happens > to be correct on x86... > > For both 32-bit and 64-bit sparc, there are four PLT entries in the > PLT section. Thanks, applied. - Arnaldo

[PATCH] softirq: modify comments about PF_MEMALLOC in __do_softirq

2018-10-18 Thread Yangtao Li
--- kernel/softirq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/softirq.c b/kernel/softirq.c index 6f584861d329..6193e1d1b30d 100644 --- a/kernel/softirq.c +++ b/kernel/softirq.c @@ -257,7 +257,7 @@ asmlinkage __visible void __softirq_entry __do_softirq(void)

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

2018-10-18 Thread Shuah Khan
On 10/18/2018 04:51 AM, Paolo Bonzini wrote: > On 18/10/2018 06:50, Stephen Rothwell wrote: >> Hi Shuah, >> >> Today's linux-next merge of the kselftest tree got a conflict in: >> >> tools/testing/selftests/kvm/dirty_log_test.c >> >> between commit: >> >> fff8dcd7b4a2 ("kvm: selftests: port dir

My Greeting?

2018-10-18 Thread Mr. David Keller
My Greeting, How are you today? Did you receive the letter i sent to you. Please answer me. Best Regard, Mr. David Keller.

Re: [PATCH] ata: add Buddha PATA controller driver

2018-10-18 Thread Geert Uytterhoeven
Hi Bartlomiej, Christoph, On Thu, Oct 18, 2018 at 3:12 PM Bartlomiej Zolnierkiewicz wrote: > On 10/18/2018 02:41 PM, Christoph Hellwig wrote: > >> +static int __init pata_buddha_init_one(void) > >> +{ > >> +struct zorro_dev *z = NULL; > >> + > >> +while ((z = zorro_find_device(ZORRO_WILDC

Re: [PATCH 2/3] uapi: get rid of STATX_ALL

2018-10-18 Thread Florian Weimer
* Miklos Szeredi: > #define STATX__RESERVED 0x8000U /* Reserved for future > struct statx expansion */ What about this? Isn't it similar to STATX_ALL in the sense that we don't know yet what it will mean?

Re: [PATCH] [sound/i2c/cs8427] Fix int to char conversion

2018-10-18 Thread Takashi Iwai
On Thu, 18 Oct 2018 15:47:55 +0200, Philipp K wrote: > > [1 ] > > On Thu, Oct 18, 2018, 15:46 Takashi Iwai wrote: > > On Thu, 18 Oct 2018 12:33:02 +0200, > Philipp Klocke wrote: > > > > Compiling with clang yields the following warning: > > > > sound/i2c/cs8427.c:140:31

Re: [Patch v3 10/13] x86/speculation: Add per thread STIBP flag

2018-10-18 Thread Thomas Gleixner
On Wed, 17 Oct 2018, Tim Chen wrote: Again the subject is misleading, It's suggesting that it adds a per thread flag. But the patch does way more than that. > Add per thread STIBP flag. When context switching to a process thread that > has the STIBP flag, the STIBP bit in the SPEC_CTRL MSR will b

Re: [Patch v3 09/13] x86/speculation: Reorganize SPEC_CTRL MSR update

2018-10-18 Thread Thomas Gleixner
On Wed, 17 Oct 2018, Tim Chen wrote: > Reorganize the spculation control MSR update code. Currently it is limited > to only dynamic update of the Speculative Store Bypass Disable bit. > This patch consolidates the logic to check for AMD CPUs that may or may # git grep 'This patch' Documentation/p

Re: [PATCH] [sound/i2c/cs8427] Fix int to char conversion

2018-10-18 Thread Takashi Iwai
On Thu, 18 Oct 2018 12:33:02 +0200, Philipp Klocke wrote: > > Compiling with clang yields the following warning: > > sound/i2c/cs8427.c:140:31: warning: implicit conversion from 'int' > to 'char' changes value from 160 to -96 [-Wconstant-conversion] > data[0] = CS8427_REG_AUTOINC | CS8427_REG

Re: [PATCH v2 0/3] Randomize free memory

2018-10-18 Thread Michal Hocko
On Thu 11-10-18 11:03:07, Dan Williams wrote: > On Thu, Oct 11, 2018 at 4:56 AM Michal Hocko wrote: [...] > > In any case, I believe the change itself is not controversial as long it > > is opt-in (potentially autotuned based on specific HW) > > Do you mean disable shuffling on systems that don't

Re: [Patch v3 08/13] x86/speculation: Rename SSBD update functions

2018-10-18 Thread Thomas Gleixner
On Wed, 17 Oct 2018, Tim Chen wrote: > This is a clean up patch that doesn't change any This is not a cleanup. It's a preparatory patch and again you want to explain first the context and then what you are doing. > functionality. We rename intel_set_ssb_state to > spec_ctrl_update_msr, speculat

Re: [PATCH v4 8/8] watchdog: stpmic1: add stpmic1 watchdog driver

2018-10-18 Thread Guenter Roeck
On 10/18/2018 02:02 AM, Pascal PAILLET-LME wrote: From: pascal paillet The stpmic1 PMIC embeds a watchdog which is disabled by default. As soon as the watchdog is started, it must be refreshed periodically otherwise the PMIC goes off. Signed-off-by: pascal paillet --- changes in v4: * fix sto

Re: [PATCH v13 00/12] livepatch: Atomic replace feature

2018-10-18 Thread Josh Poimboeuf
On Mon, Oct 15, 2018 at 02:37:01PM +0200, Petr Mladek wrote: > The atomic replace allows to create cumulative patches. They > are useful when you maintain many livepatches and want to remove > one that is lower on the stack. In addition it is very useful when > more patches touch the same function

RE: [PATCH v4 4/4] perf/smmuv3_pmu: Enable HiSilicon Erratum 162001800 quirk

2018-10-18 Thread Shameerali Kolothum Thodi
Hi Robin, > -Original Message- > From: Robin Murphy [mailto:robin.mur...@arm.com] > Sent: 18 October 2018 12:44 > To: Shameerali Kolothum Thodi ; > lorenzo.pieral...@arm.com; jean-philippe.bruc...@arm.com > Cc: will.dea...@arm.com; mark.rutl...@arm.com; Guohanjun (Hanjun Guo) > ; John Garr

[PATCH] MAINTAINERS: Add Kishon as maintainer of PHY bindings

2018-10-18 Thread Rob Herring
DT bindings normally go in via subsystem maintainers, so add PHY bindings under generic PHY framework. Reported-by: Gustavo A. R. Silva Cc: Kishon Vijay Abraham I Signed-off-by: Rob Herring --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9ad0

Re: [Patch v3 07/13] x86/process Add arch_set_dumpable

2018-10-18 Thread Thomas Gleixner
On Wed, 17 Oct 2018, Tim Chen wrote: > Add arch_set_dumpable for setting architecture specific security > modifications on processes according to its dumpable properties. > Non dumpable processes are security sensitive and they can be modified > to gain architecture specific security defenses via

Re: [Patch v3 06/13] mm: Pass task instead of task->mm as argument to set_dumpable

2018-10-18 Thread Thomas Gleixner
On Wed, 17 Oct 2018, Tim Chen wrote: > Change the argument to set_dumpable from task->mm to task. This allows us > to later add hooks to modify a task's property according to whether it is > a non-dumpable task. Non dumpable tasks demand a higher level of security. > Changes the dumpable value fr

<    1   2   3   4   5   6   7   8   >