Re: [PATCH] x86/mm/mem_encrypt_identity : fix error useage to sizeof

2018-12-29 Thread Borislav Petkov
On Sat, Dec 29, 2018 at 02:34:12PM +0800, Peng Hao wrote: > Fix error usage to sizeof. It should not use sizeof to pointer. ... because? The commit message needs to explain what the potential issue could be and why it doesn't matter in this case. Thx. -- Regards/Gruss, Boris. ECO tip

[PATCH v4] soc/fsl/qe: fix err handling of ucc_of_parse_tdm

2018-12-29 Thread Peng Hao
From: Wen Yang Currently there are some issues with the ucc_of_parse_tdm function: 1, a possible null pointer dereference in ucc_of_parse_tdm, detected by the semantic patch deref_null.cocci, with the following warning: drivers/soc/fsl/qe/qe_tdm.c:177:21-24: ERROR: pdev is NULL but dereferenced.

[PATCH] i3c: master: Fix an error checking typo in 'cdns_i3c_master_probe()'

2018-12-29 Thread Christophe JAILLET
Fix a cut'n'paste typo. Checking 'master->sysclk' is expected here. Fixes: 603f2bee2c54 ("i3c: master: Add driver for Cadence IP") Signed-off-by: Christophe JAILLET --- drivers/i3c/master/i3c-master-cdns.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [PATCH 4.19 00/46] 4.19.13-stable review

2018-12-29 Thread Harsh Shandilya
On 28 December 2018 5:21:54 PM IST, Greg Kroah-Hartman wrote: >This is the start of the stable review cycle for the 4.19.13 release. >There are 46 patches in this series, all will be posted as a response >to this one. If anyone has any issues with these being applied, please >let me know. >

Re: [PATCH -mmotm] efi: drop kmemleak_ignore() for page allocator

2018-12-29 Thread Ard Biesheuvel
On Fri, 28 Dec 2018 at 04:04, Andrew Morton wrote: > > On Wed, 26 Dec 2018 16:31:59 +0100 Ard Biesheuvel > wrote: > > > Please stop sending EFI patches if you can't be bothered to > > test/reproduce against the EFI tree. > > um, sorry, but that's a bit strong. Finding (let alone fixing) a bug

INFO: trying to register non-static key in __flush_work

2018-12-29 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:5694cecdb092 Merge tag 'arm64-upstream' of git://git.kerne.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=124eebc740 kernel config: https://syzkaller.appspot.com/x/.config?x=91a256823ef17263

[PATCH] ipv6: fix typo in net/ipv6/reassembly.c

2018-12-29 Thread Su Yanjun
Signed-off-by: Su Yanjun --- net/ipv6/reassembly.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv6/reassembly.c b/net/ipv6/reassembly.c index a5bb59e..36a3d8d 100644 --- a/net/ipv6/reassembly.c +++ b/net/ipv6/reassembly.c @@ -210,7 +210,7 @@ static int

Re: [PATCH] mm: Reuse only-pte-mapped KSM page in do_wp_page()

2018-12-29 Thread Kirill Tkhai
Hi, Andrew! How do you look at this patch? It had been reviewed. Thanks, Kirill On 13.12.2018 18:29, Kirill Tkhai wrote: > This patch adds an optimization for KSM pages almost > in the same way, that we have for ordinary anonymous > pages. If there is a write fault in a page, which is > mapped

[PATCH V4] dt-bindings: timer: gpt: update binding doc

2018-12-29 Thread Anson Huang
The i.MX GPT timer driver binding doc is out of date, update it according to current GPT timer driver. Signed-off-by: Anson Huang --- ChangeLog since V3: be more specific about the backwards compatible of each SoC; --- .../devicetree/bindings/timer/fsl,imxgpt.txt | 39

Re: [PATCH] netfilter: account ebt_table_info to kmemcg

2018-12-29 Thread Florian Westphal
Michal Hocko wrote: > On Fri 28-12-18 17:55:24, Shakeel Butt wrote: > > The [ip,ip6,arp]_tables use x_tables_info internally and the underlying > > memory is already accounted to kmemcg. Do the same for ebtables. The > > syzbot, by using setsockopt(EBT_SO_SET_ENTRIES), was able to OOM the > >

Re: Re: [PATCH] netfilter: account ebt_table_info to kmemcg

2018-12-29 Thread Kirill Tkhai
Hi, Michal! On 29.12.2018 10:33, Michal Hocko wrote: > On Fri 28-12-18 17:55:24, Shakeel Butt wrote: >> The [ip,ip6,arp]_tables use x_tables_info internally and the underlying >> memory is already accounted to kmemcg. Do the same for ebtables. The >> syzbot, by using

Re: [PATCH 4.19 00/46] 4.19.13-stable review

2018-12-29 Thread Greg Kroah-Hartman
On Fri, Dec 28, 2018 at 01:08:02PM -0700, shuah wrote: > On 12/28/18 4:51 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.19.13 release. > > There are 46 patches in this series, all will be posted as a response > > to this one. If anyone has any issues

[PATCH] ARM: dts: imx6sx: correct backward compatible of gpt

2018-12-29 Thread Anson Huang
i.MX6SX has same GPT type as i.MX6DL, in GPT driver, it uses below TIMER_OF_DECLARE, so the backward compatible should be "fsl,imx6dl-gpt", correct it. TIMER_OF_DECLARE(imx6sx_timer, "fsl,imx6sx-gpt", imx6dl_timer_init_dt); Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx6sx.dtsi | 2 +- 1

Re: [PATCH] mm/slub.c: freelist is ensured to be NULL when new_slab() fails

2018-12-29 Thread Pekka Enberg
On 29/12/2018 8.25, Peng Wang wrote: new_slab_objects() will return immediately if freelist is not NULL. if (freelist) return freelist; One more assignment operation could be avoided. Signed-off-by: Peng Wang Reviewed-by: Pekka Enberg --- mm/slub.c | 3 +--

Re: [PATCH] netfilter: account ebt_table_info to kmemcg

2018-12-29 Thread Michal Hocko
On Sat 29-12-18 10:52:15, Florian Westphal wrote: > Michal Hocko wrote: > > On Fri 28-12-18 17:55:24, Shakeel Butt wrote: > > > The [ip,ip6,arp]_tables use x_tables_info internally and the underlying > > > memory is already accounted to kmemcg. Do the same for ebtables. The > > > syzbot, by using

inconsistent lock state in nr_find_socket

2018-12-29 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:5694cecdb092 Merge tag 'arm64-upstream' of git://git.kerne.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=129ee73f40 kernel config: https://syzkaller.appspot.com/x/.config?x=91a256823ef17263

[PATCH v8 0/2] add uart DMA function

2018-12-29 Thread Long Cheng
In Mediatek SOCs, the uart can support DMA function. Base on DMA engine formwork, we add the DMA code to support uart. And put the code under drivers/dma. This series contains document bindings, Kconfig to control the function enable or not, device tree including interrupt and dma device node,

[PATCH v8 1/2] dmaengine: 8250_mtk_dma: add MediaTek uart DMA support

2018-12-29 Thread Long Cheng
In DMA engine framework, add 8250 uart dma to support MediaTek uart. If MediaTek uart enabled(SERIAL_8250_MT6577), and want to improve the performance, can enable the function. Signed-off-by: Long Cheng --- drivers/dma/mediatek/8250_mtk_dma.c | 694 +++

[PATCH v8 2/2] arm: dts: mt2712: add uart APDMA to device tree

2018-12-29 Thread Long Cheng
1. add uart APDMA controller device node 2. add uart 0/1/2/3/4/5 DMA function Signed-off-by: Long Cheng --- arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 50 + 1 file changed, 50 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi

Re: [PATCH] regmap: regmap-irq: silently ignore unsupported type settings

2018-12-29 Thread Geert Uytterhoeven
Hi Matti, On Thu, Dec 27, 2018 at 9:44 AM Matti Vaittinen wrote: > Do not return error if irq-type setting is requested for > controlloer which does not support this. This is how > regmap-irq has previously handled the undupported type > settings and existing drivers seem to be upset if failure

[PATCH] regulator: lochnagar: Set up correct .data field for "cirrus,lochnagar2-mic2vdd"

2018-12-29 Thread Axel Lin
Fix trival copy-n-paste mistake. Signed-off-by: Axel Lin --- drivers/regulator/lochnagar-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/lochnagar-regulator.c b/drivers/regulator/lochnagar-regulator.c index 5a89e6d4b9a6..818d20410518 100644 ---

[PATCH 2/3] qcom: spmi-gpio: add support for hierarchical IRQ chip

2018-12-29 Thread Brian Masney
spmi-gpio did not have any irqchip support so consumers of this in device tree would need to call gpio[d]_to_irq() in order to get the proper IRQ on the underlying PMIC. IRQ chips in device tree should be usable from the start without the consumer having to make an additional call to get the

[PATCH 0/3] qcom: spmi: add support for hierarchical IRQ chip

2018-12-29 Thread Brian Masney
This patch series adds hierarchical IRQ chip support to spmi-gpio so that device tree consumers can request an IRQ directly from the GPIO block rather than having to request an IRQ from the underlying PMIC. The first patch in this series converts pmic-arb to use the version 2 IRQ interface and

[PATCH 1/3] spmi: pmic-arb: convert to v2 irq interfaces to support hierarchical IRQ chips

2018-12-29 Thread Brian Masney
Convert the spmi-pmic-arb IRQ code to use the version 2 IRQ interface in order to support hierarchical IRQ chips. Code was tested on a LG Nexus 5 (hammerhead) phone. Signed-off-by: Brian Masney --- drivers/spmi/spmi-pmic-arb.c | 91 +--- 1 file changed, 64

[PATCH 3/3] ARM: dts: qcom: msm8974: add interrupt properties

2018-12-29 Thread Brian Masney
Add interrupt properties now that spmi-gpio is a proper hierarchical IRQ chip. Signed-off-by: Brian Masney --- arch/arm/boot/dts/qcom-pm8941.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/qcom-pm8941.dtsi b/arch/arm/boot/dts/qcom-pm8941.dtsi index

[PATCH] tty/n_hdlc: fix sleep in !TASK_RUNNING state warning

2018-12-29 Thread Tetsuo Handa
syzbot is hitting __might_sleep() warning [1], for commit 1035b63d3c6fc34a ("n_hdlc: fix read and write locking") changed to set TASK_INTERRUPTIBLE state before calling copy_to_user(). Let's set TASK_INTERRUPTIBLE state immediately before calling schedule(). [1]

Re: [PATCH 4.19 00/46] 4.19.13-stable review

2018-12-29 Thread Greg Kroah-Hartman
On Fri, Dec 28, 2018 at 11:54:22AM -0600, Dan Rue wrote: > On Fri, Dec 28, 2018 at 12:51:54PM +0100, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.19.13 release. > > There are 46 patches in this series, all will be posted as a response > > to this one. If

Re: [PATCH 4.19 00/46] 4.19.13-stable review

2018-12-29 Thread Greg Kroah-Hartman
On Sat, Dec 29, 2018 at 02:31:33PM +0530, Harsh Shandilya wrote: > On 28 December 2018 5:21:54 PM IST, Greg Kroah-Hartman > wrote: > >This is the start of the stable review cycle for the 4.19.13 release. > >There are 46 patches in this series, all will be posted as a response > >to this one. If

Re: [PATCH 4.19 00/46] 4.19.13-stable review

2018-12-29 Thread Greg Kroah-Hartman
On Fri, Dec 28, 2018 at 01:29:09PM -0800, Guenter Roeck wrote: > On Fri, Dec 28, 2018 at 12:51:54PM +0100, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.19.13 release. > > There are 46 patches in this series, all will be posted as a response > > to this one.

Re: [PATCH v3 treewide] headers: separate linux/mod_devicetable.h from linux/platform_device.h

2018-12-29 Thread Greg Kroah-Hartman
On Sat, Dec 29, 2018 at 12:32:30PM +1100, NeilBrown wrote: > On Sat, Jul 07 2018, Greg Kroah-Hartman wrote: > > > On Tue, Jun 19, 2018 at 10:47:28PM -0700, Randy Dunlap wrote: > >> From: Randy Dunlap > >> > >> At over 4000 #includes, is the 9th most > >> #included header file in the Linux

Re: [PATCH 2/2] ARM: Wrap '--pic-veneer' with ld-option

2018-12-29 Thread Stefan Agner
On 05.12.2018 20:45, Nathan Chancellor wrote: > On Wed, Dec 05, 2018 at 07:39:55PM +0100, Ard Biesheuvel wrote: >> On Wed, 5 Dec 2018 at 19:36, Nathan Chancellor >> wrote: >> > >> > On Wed, Dec 05, 2018 at 09:09:56AM +0100, Ard Biesheuvel wrote: >> > > (+ Arnd) >> > > >> > > On Wed, 5 Dec 2018

Re: [RFC PATCH V2 3/3] vhost: access vq metadata through kernel virtual address

2018-12-29 Thread Jason Wang
On 2018/12/29 上午3:34, David Miller wrote: From: Jason Wang Date: Fri, 28 Dec 2018 15:55:37 +0800 +static int vhost_invalidate_vmap(struct vhost_virtqueue *vq, +struct vhost_vmap *map, +unsigned long uaddr, +

[RFC PATCH V3 0/5] Hi:

2018-12-29 Thread Jason Wang
This series tries to access virtqueue metadata through kernel virtual address instead of copy_user() friends since they had too much overheads like checks, spec barriers or even hardware feature toggling. Test shows about 24% improvement on TX PPS. It should benefit other cases as well. Changes

[RFC PATCH V3 2/5] vhost: fine grain userspace memory accessors

2018-12-29 Thread Jason Wang
This is used to hide the metadata address from virtqueue helpers. This will allow to implement a vmap based fast accessing to metadata. Signed-off-by: Jason Wang --- drivers/vhost/vhost.c | 94 +++ 1 file changed, 77 insertions(+), 17 deletions(-) diff

[RFC PATCH V3 1/5] vhost: generalize adding used elem

2018-12-29 Thread Jason Wang
Use one generic vhost_copy_to_user() instead of two dedicated accessor. This will simplify the conversion to fine grain accessors. About 2% improvement of PPS were seen during vitio-user txonly test. Signed-off-by: Jason Wang --- drivers/vhost/vhost.c | 11 +-- 1 file changed, 1

[RFC PATCH V3 4/5] vhost: introduce helpers to get the size of metadata area

2018-12-29 Thread Jason Wang
Signed-off-by: Jason Wang --- drivers/vhost/vhost.c | 46 ++- 1 file changed, 28 insertions(+), 18 deletions(-) diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index 27b5c03feaac..54b43feef8d9 100644 --- a/drivers/vhost/vhost.c +++

[RFC PATCH V3 5/5] vhost: access vq metadata through kernel virtual address

2018-12-29 Thread Jason Wang
It was noticed that the copy_user() friends that was used to access virtqueue metdata tends to be very expensive for dataplane implementation like vhost since it involves lots of software checks, speculation barrier, hardware feature toggling (e.g SMAP). The extra cost will be more obvious when

[RFC PATCH V3 3/5] vhost: rename vq_iotlb_prefetch() to vq_meta_prefetch()

2018-12-29 Thread Jason Wang
Rename the function to be more accurate since it actually tries to prefetch vq metadata address in IOTLB. And this will be used by following patch to prefetch metadata virtual addresses. Signed-off-by: Jason Wang --- drivers/vhost/net.c | 4 ++-- drivers/vhost/vhost.c | 4 ++--

Re: [PATCH] usb: devio: update max count of DPs per interval for ISOC

2018-12-29 Thread Greg Kroah-Hartman
On Sat, Dec 29, 2018 at 10:48:40AM +0800, Chunfeng Yun wrote: > Hi, > On Fri, 2018-12-28 at 11:51 +0100, Greg Kroah-Hartman wrote: > > On Fri, Dec 28, 2018 at 06:27:44PM +0800, Chunfeng Yun wrote: > > > The host shall be able to accept and send up to 96 DPs for > > > devices operating at Gen 2

Re: [PATCH 1/2] ARM: Remove '-p' from LDFLAGS

2018-12-29 Thread Stefan Agner
On 05.12.2018 02:42, Nathan Chancellor wrote: > This option is not supported by lld: > > ld.lld: error: unknown argument: -p > > This has been a no-op in binutils since 2004 (see commit dea514f51da1 in > that tree). Given that the lowest officially supported of binutils for > the kernel is

Linux 4.19.13

2018-12-29 Thread Greg KH
I'm announcing the release of the 4.19.13 kernel. All users of the 4.19 kernel series must upgrade. The updated 4.19.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.19.y and can be browsed at the normal kernel.org git web

Re: Linux 4.19.13

2018-12-29 Thread Greg KH
diff --git a/Makefile b/Makefile index 9770f29a690a..892ff14cbc9d 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 4 PATCHLEVEL = 19 -SUBLEVEL = 12 +SUBLEVEL = 13 EXTRAVERSION = NAME = "People's Front" diff --git

Linux 4.14.91

2018-12-29 Thread Greg KH
I'm announcing the release of the 4.14.91 kernel. All users of the 4.14 kernel series must upgrade. The updated 4.14.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.14.y and can be browsed at the normal kernel.org git web

Re: Linux 4.14.91

2018-12-29 Thread Greg KH
diff --git a/Makefile b/Makefile index 280c7193e246..a6fb3b158a19 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 4 PATCHLEVEL = 14 -SUBLEVEL = 90 +SUBLEVEL = 91 EXTRAVERSION = NAME = Petit Gorille diff --git

Linux 4.9.148

2018-12-29 Thread Greg KH
I'm announcing the release of the 4.9.148 kernel. All users of the 4.9 kernel series must upgrade. The updated 4.9.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.9.y and can be browsed at the normal kernel.org git web browser:

Re: Linux 4.9.148

2018-12-29 Thread Greg KH
diff --git a/Makefile b/Makefile index 351a57ce..1b71b11ea63e 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 9 -SUBLEVEL = 147 +SUBLEVEL = 148 EXTRAVERSION = NAME = Roaring Lionus diff --git a/arch/x86/kernel/cpu/mtrr/if.c b/arch/x86/kernel/cpu/mtrr/if.c

[PATCH] n_tty: update comment for WAKEUP_CHARS define

2018-12-29 Thread Valentin Vidic
Give a better descriptions of what WAKEUP_CHARS represents. Signed-off-by: Valentin Vidic --- drivers/tty/n_tty.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/tty/n_tty.c b/drivers/tty/n_tty.c index 3ad460219fd6..1dfbd45746da 100644 --- a/drivers/tty/n_tty.c

[PATCH v2 3/7] drm: rockchip: vop: add rk3066 vop definitions

2018-12-29 Thread Johan Jonker
From: Mark Yao This patch adds the rk3066 VOP definitions. The VOP or LCD Controller serves as interface between framebuffer memory and a display device (LCD panel or TV set). This SOC has two symmetrical LCDC's for a dual panel application. A LCDC has 5 display layers. Only 3 are used here.

[PATCH v2 6/7] ARM: dts: rockchip: add rk3066 hdmi nodes

2018-12-29 Thread Johan Jonker
From: Zheng Yang This patch adds the hdmi nodes to rk3066. Signed-off-by: Zheng Yang Signed-off-by: Johan Jonker --- arch/arm/boot/dts/rk3066a.dtsi | 44 ++ 1 file changed, 44 insertions(+) diff --git a/arch/arm/boot/dts/rk3066a.dtsi

[PATCH v2 5/7] ARM: dts: rockchip: add rk3066 vop display nodes

2018-12-29 Thread Johan Jonker
From: Mark Yao This patch adds the core display subsystem and vop nodes to rk3066. Signed-off-by: Mark Yao Signed-off-by: Johan Jonker --- arch/arm/boot/dts/rk3066a.dtsi | 47 ++ 1 file changed, 47 insertions(+) diff --git

[PATCH v2 4/7] drm: rockchip: introduce rk3066 hdmi

2018-12-29 Thread Johan Jonker
From: Zheng Yang Introduce rk3066 hdmi. Signed-off-by: Zheng Yang Signed-off-by: Johan Jonker --- drivers/gpu/drm/rockchip/Kconfig| 8 + drivers/gpu/drm/rockchip/Makefile | 1 + drivers/gpu/drm/rockchip/rk3066_hdmi.c | 928

[PATCH v2 0/7] Enable rk3066 VOP and HDMI for MK808

2018-12-29 Thread Johan Jonker
DISCLAIMER: Use at your own risk. For testing only! Version: V2 Title: Enable rk3066 VOP and HDMI for MK808. This patch serie only works in combination with a MK808 TV stick and a rk3066 processor. Other boxes and tablets with a rk3066 need extra software for power management and lcd's. What

[PATCH v2 2/7] clk: rockchip: rk3188: add CLK_SET_RATE_PARENT for lcdc dclk

2018-12-29 Thread Johan Jonker
From: Finley Xiao Add CLK_SET_RATE_PARENT for lcdc dclk. Signed-off-by: Finley Xiao Signed-off-by: Johan Jonker --- drivers/clk/rockchip/clk-rk3188.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/rockchip/clk-rk3188.c b/drivers/clk/rockchip/clk-rk3188.c

[PATCH v2 7/7] ARM: dts: rockchip: rk3066a-mk808: enable vop0 and hdmi nodes

2018-12-29 Thread Johan Jonker
This patch enables the vop0 and hdmi nodes for a MK808 with rk3066 processor. Signed-off-by: Johan Jonker --- arch/arm/boot/dts/rk3066a-mk808.dts | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/rk3066a-mk808.dts b/arch/arm/boot/dts/rk3066a-mk808.dts index

[PATCH v2 1/7] ARM: dts: rockchip: rk3066: add HCLK_HDMI to pmu node

2018-12-29 Thread Johan Jonker
A MK808 TV stick with rk3066 processor boots normal with logo and console, but after booting the monitor remains black. This patch fixes a vblank wait time out by adding HCLK_HDMI to the pmu node. The HCLK_HDMI clock is now part of the logic that enables the RK3066_PD_VIO power domain.

[PATCH] irqchip/gic-v3: use __init where appropriate

2018-12-29 Thread Stefan Agner
Compiling with section mismatch debugging enabled prints the following warning: WARNING: vmlinux.o(.text+0xffa1b8): Section mismatch in reference from the function gic_smp_init() to the function .init.text:set_smp_cross_call() Avoid this warning by adding __init to gic_smp_init(). While add

[PATCH] perf tools: util: remove redundant va_end() in strbuf_addv()

2018-12-29 Thread Mattias Jacobsson
Each call to va_copy() should have one, and only one, corresponding call to va_end(). In strbuf_addv() some code paths result in va_end() getting called multiple times. Remove the superfluous va_end(). Fixes: ce49d8436cff ("perf strbuf: Match va_{add,copy} with va_end") Signed-off-by: Mattias

Re: [PATCH] Raise the minimum required gcc version to 4.6

2018-12-29 Thread Geert Uytterhoeven
Hi Joe, On Fri, Aug 24, 2018 at 12:00 AM Joe Perches wrote: > On Thu, 2018-08-23 at 23:52 +0200, Geert Uytterhoeven wrote: > > Does gcc 8.x gives again the same warnings as my venerable old gcc 4.1.2, > > that no one else seems to see? Or will the real bugs I detect this way stay > > unfixed?

Re: [PATCH] gdrom: fix a memory leak bug

2018-12-29 Thread Jens Axboe
On 12/26/18 7:15 PM, Wenwen Wang wrote: > In probe_gdrom(), the buffer pointed by 'gd.cd_info' is allocated through > kzalloc() and is used to hold the information of the gdrom device. To > register and unregister the device, the pointer 'gd.cd_info' is passed to > the functions register_cdrom()

Re: [Qemu-devel][PATCH 2/4] Add CET SHSTK and IBT CPUID feature-word definitions.

2018-12-29 Thread Yang Weijiang
On Fri, Dec 28, 2018 at 03:25:10PM +0100, Paolo Bonzini wrote: Thanks a lot Paolo for the comments! I'll fix the issue in next version. > On 26/12/18 09:25, Yang Weijiang wrote: > > @@ -1233,6 +1252,14 @@ static const ExtSaveArea x86_ext_save_areas[] = { > >{ .feature = FEAT_7_0_ECX,

Re: [GIT PULL] libnvdimm for 4.21

2018-12-29 Thread Konstantin Ryabitsev
On Fri, Dec 28, 2018 at 09:57:28PM -0800, Linus Torvalds wrote: > Hmm. > > This pull request doesn't seem to have gotten an automatic pr-tracker > reply, even though I pulled it, and even though it was cc'd to lkml. > > Konstantin, any idea why the automation didn't trigger? I'm not seeing >

Re: [PATCH v6 0/1] ns: introduce binfmt_misc namespace

2018-12-29 Thread Laurent Vivier
Ping Thanks, Laurent Le 29/11/2018 à 14:05, Laurent Vivier a écrit : > Le 01/11/2018 à 15:16, Eric W. Biederman a écrit : >> Laurent Vivier writes: >> >>> On 01/11/2018 04:51, Jann Horn wrote: On Thu, Nov 1, 2018 at 3:59 AM James Bottomley wrote: > > On Tue, 2018-10-16 at

[PATCH] media: s5p-jpeg: Check for fmt_ver_flag when doing fmt enumeration

2018-12-29 Thread Paweł Chmiel
Previously when doing format enumeration, it was returning all formats supported by driver, even if they're not supported by hw. Add missing check for fmt_ver_flag, so it'll be fixed and only those supported by hw will be returned. Similar thing is already done in s5p_jpeg_find_format. It was

[PATCH 0/3] rcutorture: minor nolibc fixes

2018-12-29 Thread Willy Tarreau
While working on adding some documentation to the nolibc header provided with rcutorture, I noticed a few accidently deleted lines losing clobbered registers and some leftover spaces that I fixed. In addition, I finally added some documentation to the file, as requested by Ingo. Willy Tarreau

[PATCH 3/3] rcutorture/nolibc: add a bit of documentation to explain how to use nolibc

2018-12-29 Thread Willy Tarreau
Ingo rightfully asked for a bit more documentation in the nolibc header, so this patch adds some explanation about its purpose, how it's made, and how to use it. Cc: Ingo Molnar Cc: Paul E. McKenney Signed-off-by: Willy Tarreau --- tools/testing/selftests/rcutorture/bin/nolibc.h | 90

[PATCH 2/3] rcutorture/nolibc: fix some poor indentation and alignment

2018-12-29 Thread Willy Tarreau
A few macros had their rightmost backslash misaligned, and the pollfd struct definition resisted the previous code reindent. Nothing else changed. Cc: Paul E. McKenney Signed-off-by: Willy Tarreau --- tools/testing/selftests/rcutorture/bin/nolibc.h | 14 +++--- 1 file changed, 7

[PATCH 1/3] rcutorture/nolibc: fix the clobbered registers in the MIPS syscall definition

2018-12-29 Thread Willy Tarreau
A last-minute checkpatch cleanup caused most of list of clobbered registers to be lost in the MIPS syscall definition. As it is right now the code is not used on MIPS, but it's better to fix it before it gets used. Cc: Paul E. McKenney Signed-off-by: Willy Tarreau ---

Re: [PATCH] media: s5p-jpeg: Check for fmt_ver_flag when doing fmt enumeration

2018-12-29 Thread Jacek Anaszewski
Hi Paweł, Thank you for the patch. On 12/29/18 4:46 PM, Paweł Chmiel wrote: Previously when doing format enumeration, it was returning all formats supported by driver, even if they're not supported by hw. Add missing check for fmt_ver_flag, so it'll be fixed and only those supported by hw

Re: 答复: [PATCH 1/1] net-next/hinic:add shutdown callback

2018-12-29 Thread David Miller
From: xuechaojing Date: Sat, 29 Dec 2018 09:20:54 + > Sorry, I didn't explain this patch clearly. > if there is no shutdown callback, our board will report pcie UNF errors after > restarting. > Attached is our log. I want you to remove the "dev_info()" call from your patch because it is

Re: [Qemu-devel] d_off field in struct dirent and 32-on-64 emulation

2018-12-29 Thread Andy Lutomirski
> On Dec 28, 2018, at 6:54 PM, Matthew Wilcox wrote: > >> On Sat, Dec 29, 2018 at 12:12:27AM +, Peter Maydell wrote: >> On Fri, 28 Dec 2018 at 23:16, Andreas Dilger wrot >>> On Dec 28, 2018, at 4:18 AM, Peter Maydell wrote: The problem is that there is no 32-bit API in some cases

Re: [PATCH 3/3] rcutorture/nolibc: add a bit of documentation to explain how to use nolibc

2018-12-29 Thread Randy Dunlap
On 12/29/18 7:58 AM, Willy Tarreau wrote: > Ingo rightfully asked for a bit more documentation in the nolibc header, > so this patch adds some explanation about its purpose, how it's made, and > how to use it. > > Cc: Ingo Molnar > Cc: Paul E. McKenney > Signed-off-by: Willy Tarreau Hi Willy,

Re: [PATCH v8 01/25] scsi/atari_scsi: Don't select CONFIG_NVRAM

2018-12-29 Thread LEROY Christophe
Michael Schmitz a écrit : Hi Finn, Am 29.12.2018 um 14:06 schrieb Finn Thain: On Fri, 28 Dec 2018, LEROY Christophe wrote: diff --git a/drivers/scsi/atari_scsi.c b/drivers/scsi/atari_scsi.c index 89f5154c40b6..99e5729d910d 100644 --- a/drivers/scsi/atari_scsi.c +++

Re: [PATCH v8 20/25] powerpc, fbdev: Use arch_nvram_ops methods instead of nvram_read_byte() and nvram_write_byte()

2018-12-29 Thread LEROY Christophe
Finn Thain a écrit : Make use of arch_nvram_ops in device drivers so that the nvram_* function exports can be removed. Since they are no longer global symbols, rename the PPC32 nvram_* functions appropriately. Signed-off-by: Finn Thain --- arch/powerpc/kernel/setup_32.c | 8

[PATCH] nvme: pci: Use the same attributes when freeing host_mem_desc_bufs.

2018-12-29 Thread Liviu Dudau
When using HMB the PCIe host driver allocates host_mem_desc_bufs using dma_alloc_attrs() but frees them using dma_free_coherent(). Use the correct dma_free_attrs() function to free the buffers. Found out while doing some code inspection to figure out broken NVMe support in linux-next-20181224.

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

2018-12-29 Thread Joerg Reuter
On Fri, Dec 28, 2018 at 02:51:04PM -0800, syzbot wrote: > BUG: KASAN: use-after-free in ax25_fillin_cb_from_dev net/ax25/af_ax25.c:450 > [inline] > BUG: KASAN: use-after-free in ax25_fillin_cb+0x6d5/0x810 > net/ax25/af_ax25.c:477 > Read of size 4 at addr 8881ccecc438 by task

KASAN: use-after-free Read in delete_and_unsubscribe_port

2018-12-29 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:8fe28cb58bcb Linux 4.20 git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=166859b340 kernel config: https://syzkaller.appspot.com/x/.config?x=7d581260bae0899a dashboard link:

Re: [PATCH 3/3] rcutorture/nolibc: add a bit of documentation to explain how to use nolibc

2018-12-29 Thread Willy Tarreau
Hi Randy, On Sat, Dec 29, 2018 at 08:50:09AM -0800, Randy Dunlap wrote: > This is a good summary IMO. Thanks. > And it's in good shape -- doesn't *require* any fixes. > But if you do make any changes to it, here are a few suggestions. :) Thanks very much. > > + * This file is designed to be

[PATCH-v2 0/3] rcutorture: minor nolibc fixes

2018-12-29 Thread Willy Tarreau
While working on adding some documentation to the nolibc header provided with rcutorture, I noticed a few accidently deleted lines losing clobbered registers and some leftover spaces that I fixed. In addition, I finally added some documentation to the file, as requested by Ingo. v2: fixed some

[PATCH 1/4] rcutorture/nolibc: fix the clobbered registers in the MIPS syscall definition

2018-12-29 Thread Willy Tarreau
A last-minute checkpatch cleanup caused most of list of clobbered registers to be lost in the MIPS syscall definition. As it is right now the code is not used on MIPS, but it's better to fix it before it gets used. Cc: Paul E. McKenney Signed-off-by: Willy Tarreau ---

[PATCH 2/4] rcutorture/nolibc: fix some poor indentation and alignment

2018-12-29 Thread Willy Tarreau
A few macros had their rightmost backslash misaligned, and the pollfd struct definition resisted the previous code reindent. Nothing else changed. Cc: Paul E. McKenney Signed-off-by: Willy Tarreau --- tools/testing/selftests/rcutorture/bin/nolibc.h | 14 +++--- 1 file changed, 7

[PATCH 3/4] rcutorture/nolibc: add a bit of documentation to explain how to use nolibc

2018-12-29 Thread Willy Tarreau
Ingo rightfully asked for a bit more documentation in the nolibc header, so this patch adds some explanation about its purpose, how it's made, and how to use it. Cc: Ingo Molnar Cc: Paul E. McKenney Cc: Randy Dunlap Signed-off-by: Willy Tarreau ---

Re: [GIT PULL] libnvdimm for 4.21

2018-12-29 Thread Dan Williams
On Sat, Dec 29, 2018 at 7:36 AM Konstantin Ryabitsev wrote: > > On Fri, Dec 28, 2018 at 09:57:28PM -0800, Linus Torvalds wrote: > > Hmm. > > > > This pull request doesn't seem to have gotten an automatic pr-tracker > > reply, even though I pulled it, and even though it was cc'd to lkml. > > > >

[PATCH] tools headers: move the nolibc header from rcutorture to tools/include/nolibc/

2018-12-29 Thread Willy Tarreau
As suggested by Ingo, this header file might benefit other tools than just rcutorture. For now it's quite limited, but is easy to extend, so exposing it into tools/include/nolibc/ will make it much easier to adopt by other tools. The mkinitrd.sh script in rcutorture was updated to use this new

[PATCH] doc: net: fix bad references to network drivers

2018-12-29 Thread Otto Sabart
Fix "reference to nonexisting document" warnings. Signed-off-by: Otto Sabart --- Documentation/networking/index.rst | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/Documentation/networking/index.rst b/Documentation/networking/index.rst index

Re: [GIT PULL] nds32 new features and bug fix for 4.21

2018-12-29 Thread pr-tracker-bot
The pull request you sent on Fri, 28 Dec 2018 16:24:01 +0800: > ssh://g...@gitolite.kernel.org/pub/scm/linux/kernel/git/greentime/linux.git > tags/nds32-for-linus-4.21 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/889bb74302e5aba85d987b4093344150984d7cda Thank you!

Re: [PULL 00/25] Xtensa updates for v4.21

2018-12-29 Thread pr-tracker-bot
The pull request you sent on Fri, 28 Dec 2018 10:31:20 -0800: > git://github.com/jcmvbkbc/linux-xtensa.git tags/xtensa-20181228 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/9ef10340749e1da0c7fde609cedd5360f8484a0b Thank you! -- Deet-doot-dot, I am a bot.

Re: [PATCH v2] media: venus: add debugfs support

2018-12-29 Thread kbuild test robot
Hi Malathi, Thank you for the patch! Yet something to improve: [auto build test ERROR on linuxtv-media/master] [also build test ERROR on next-20181224] [cannot apply to v4.20] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [PATCH] tools headers: move the nolibc header from rcutorture to tools/include/nolibc/

2018-12-29 Thread Paul E. McKenney
On Sat, Dec 29, 2018 at 07:04:53PM +0100, Willy Tarreau wrote: > As suggested by Ingo, this header file might benefit other tools than > just rcutorture. For now it's quite limited, but is easy to extend, so > exposing it into tools/include/nolibc/ will make it much easier to > adopt by other

Re: [PATCH 2/2] leds: lp5024: Add the LP5024/18 RGB LED driver

2018-12-29 Thread Jacek Anaszewski
On 12/21/18 2:05 PM, Dan Murphy wrote: On 12/21/2018 01:32 AM, Jacek Anaszewski wrote: On 12/20/18 9:31 PM, Jacek Anaszewski wrote: On 12/19/18 10:50 PM, Dan Murphy wrote: On 12/19/2018 03:36 PM, Jacek Anaszewski wrote: Hi Dan and Pavel, On 12/19/18 9:41 PM, Dan Murphy wrote: Pavel On

Re: [PATCH] tools headers: move the nolibc header from rcutorture to tools/include/nolibc/

2018-12-29 Thread Willy Tarreau
On Sat, Dec 29, 2018 at 10:25:08AM -0800, Paul E. McKenney wrote: > On Sat, Dec 29, 2018 at 07:04:53PM +0100, Willy Tarreau wrote: > > As suggested by Ingo, this header file might benefit other tools than > > just rcutorture. For now it's quite limited, but is easy to extend, so > > exposing it

Re: [PATCH 2/2] dt-bindings: edac: Aspeed AST2500

2018-12-29 Thread schaecsn
Hello Rob, > From: Rob Herring > > On Sun, Dec 16, 2018 at 10:01:57PM -0800, Stefan Schaeckeler wrote: > > From: Stefan M Schaeckeler > > > > Add support for the Aspeed AST2500 SoC EDAC driver. > > > > Signed-off-by: Stefan M Schaeckeler > > --- > > .../bindings/edac/aspeed-sdram-edac.txt

Re: [PATCH] doc: net: fix bad references to network drivers

2018-12-29 Thread Matthew Wilcox
On Sat, Dec 29, 2018 at 07:05:18PM +0100, Otto Sabart wrote: > Fix "reference to nonexisting document" warnings. > > Signed-off-by: Otto Sabart Fixes: b255e500c8dc ("net: documentation: build a directory structure for drivers")

Re: [GIT PULL] security: general updates for v4.21

2018-12-29 Thread Casey Schaufler
On 12/28/2018 8:15 PM, Linus Torvalds wrote: > On Fri, Dec 28, 2018 at 8:09 PM James Morris wrote: >> Yep, I understand what you mean. I can't find the discussion from several >> years ago, but developers asked to be able to work with more current >> kernels, and I recall you saying that if you

[PATCH] input_event: Provide override for sparc64

2018-12-29 Thread Deepa Dinamani
The usec part of the timeval is defined as __kernel_suseconds_ttv_usec; /* microseconds */ Arnd noticed that sparc64 is the only architecture that defines __kernel_suseconds_t as int rather than long. This breaks the current y2038 fix for kernel as we only access and define the timeval

KASAN: use-after-free Read in x25_device_event

2018-12-29 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:38355a5f9a22 bnx2x: Fix NULL pointer dereference in bnx2x_.. git tree: net console output: https://syzkaller.appspot.com/x/log.txt?x=144e49ed40 kernel config: https://syzkaller.appspot.com/x/.config?x=7321a72d3309c029

Re: [PATCH v8 01/25] scsi/atari_scsi: Don't select CONFIG_NVRAM

2018-12-29 Thread Michael Schmitz
Christophe, Am 30.12.2018 um 05:55 schrieb LEROY Christophe: Michael Schmitz a écrit : Hi Finn, Am 29.12.2018 um 14:06 schrieb Finn Thain: On Fri, 28 Dec 2018, LEROY Christophe wrote: diff --git a/drivers/scsi/atari_scsi.c b/drivers/scsi/atari_scsi.c index 89f5154c40b6..99e5729d910d

Re: [PATCH 2/2] leds: lp5024: Add the LP5024/18 RGB LED driver

2018-12-29 Thread Pavel Machek
Hi! > >>With the "color" sysfs file it will make more sense to allow for user > >>defined color palettes. > >> > > > >I think defining these values in the device tree or acpi severely limits the > >devices > >capabilities. Especially in development phases. If the knobs were exposed > >then

KASAN: stack-out-of-bounds Write in ax25_getname

2018-12-29 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:8fe28cb58bcb Linux 4.20 git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1604d02d40 kernel config: https://syzkaller.appspot.com/x/.config?x=7d581260bae0899a dashboard link:

Re: How to force RC to forward p2p TLPs

2018-12-29 Thread Logan Gunthorpe
On 2018-12-28 7:29 p.m., Bjorn Helgaas wrote: >> We use the p2p DMA to transfer data between these two endpoint SOCs, >> and if the host server is not enable ACS in BIOS, the p2p works well, >> but when ACS is enabled in BIOS, the p2p is always failed. With the >> help of a protocol analyzer,

Re: [GIT PULL] Documentation for 5.0

2018-12-29 Thread Linus Torvalds
On Fri, Dec 28, 2018 at 8:06 AM Jonathan Corbet wrote: > > git://git.lwn.net/linux.git tags/docs-5.0 New signing key? And one that you forgot to push out to keyservers? Linus

  1   2   >