kernel panic: corrupted stack end in wb_workfn

2018-12-30 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:195303136f19 Merge tag 'kconfig-v4.21-2' of git://git.kern.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=176c0ebf40 kernel config: https://syzkaller.appspot.com/x/.config?x=5e7dc790609552d7 da

Re: kernel panic: corrupted stack end in wb_workfn

2018-12-30 Thread Qian Cai
Ah, it has KASAN_EXTRA. Need this patch then. https://lore.kernel.org/lkml/20181228020639.80425-1-...@lca.pw/ or to use GCC from the HEAD which suppose to reduce the stack-size in half. shrink_page_list shrink_inactive_list Those things are 7k each, so 32k would be soon gone. On 12/30/18 10:41

Re: [PATCH] netfilter: account ebt_table_info to kmemcg

2018-12-30 Thread Shakeel Butt
On Sun, Dec 30, 2018 at 12:00 AM Michal Hocko wrote: > > On Sun 30-12-18 08:45:13, Michal Hocko wrote: > > On Sat 29-12-18 11:34:29, Shakeel Butt wrote: > > > On Sat, Dec 29, 2018 at 2:06 AM Michal Hocko wrote: > > > > > > > > On Sat 29-12-18 10:52:15, Florian Westphal wrote: > > > > > Michal Hoc

Re: [PATCH] netfilter: account ebt_table_info to kmemcg

2018-12-30 Thread Shakeel Butt
On Sat, Dec 29, 2018 at 11:45 PM Michal Hocko wrote: > > On Sat 29-12-18 11:34:29, Shakeel Butt wrote: > > On Sat, Dec 29, 2018 at 2:06 AM Michal Hocko wrote: > > > > > > On Sat 29-12-18 10:52:15, Florian Westphal wrote: > > > > Michal Hocko wrote: > > > > > On Fri 28-12-18 17:55:24, Shakeel But

[PATCH] kbuild: clean up rule_dtc_dt_yaml

2018-12-30 Thread Masahiro Yamada
Commit 3a2429e1faf4 ("kbuild: change if_changed_rule for multi-line recipe") and commit 4f0e3a57d6eb ("kbuild: Add support for DT binding schema checks") came in via different sub-systems. This is a follow-up cleanup. Signed-off-by: Masahiro Yamada --- scripts/Makefile.lib | 4 ++-- 1 file cha

WARNING in batadv_mcast_mla_tt_retract

2018-12-30 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:eed9688f8513 Merge branch 'ras-core-for-linus' of git://gi.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=103bffaf40 kernel config: https://syzkaller.appspot.com/x/.config?x=fa5c63e12fd85b25 da

[GIT PULL] security: integrity updates for v4.21

2018-12-30 Thread James Morris
>From Mimi: "In Linux 4.19, a new LSM hook named security_kernel_load_data was upstreamed, allowing LSMs and IMA to prevent the kexec_load syscall.  Different signature verification methods exist for verifying the kexec'ed kernel image.  This pull request adds additional support in IMA to prev

[GIT PULL] security: seccomp changes for v4.21

2018-12-30 Thread James Morris
>From Kees: "- Add SECCOMP_RET_USER_NOTIF - seccomp fixes for sparse warnings and s390 build (Tycho)" The following changes since commit 1072bd678547f8663cfb81a22fdb50c589e4976e: security: fs: make inode explicitly non-modular (2018-12-12 14:58:51 -0800) are available in the Git repository

[GIT PULL] security: Smack changes for v4.21

2018-12-30 Thread James Morris
>From Casey: "I have two Smack patches for 4.21. One Jose's patch adds missing documentation and Zoran's fleshes out the access checks on keyrings." The following changes since commit 1072bd678547f8663cfb81a22fdb50c589e4976e: security: fs: make inode explicitly non-modular (2018-12-12 14:58:51

WARNING in batadv_mcast_mla_update

2018-12-30 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:eed9688f8513 Merge branch 'ras-core-for-linus' of git://gi.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=10785d5740 kernel config: https://syzkaller.appspot.com/x/.config?x=fa5c63e12fd85b25 da

[GIT PULL] security: TPM changes for v4.21

2018-12-30 Thread James Morris
>From Jarkko: " * Support for partial reads of /dev/tpm0. * Clean up for TPM 1.x code: move the commands to tpm1-cmd.c and make everything to use the same data structure for building TPM commands i.e. struct tpm_buf. " The following changes since commit 8bd8ea195f6d135a8d85201116314eb5237ad7

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

2018-12-30 Thread David Miller
From: Peng Hao Date: Sat, 29 Dec 2018 16:47:32 +0800 > +static struct resource *ucc_get_resource_by_nodename(char *name) > +{ > + struct device_node *np; > + struct platform_device *pdev; > + > + np = of_find_compatible_node(NULL, NULL, name); > + if (!np) > + return E

RE: [PATCH v2 5/5] usb:cdns3 Add Cadence USB3 DRD Driver

2018-12-30 Thread Pawel Laszczak
Hi Peter, > >> > >> >@@ -299,6 +306,7 @@ int cdns3_drd_init(struct cdns3 *cdns) >> >cdns->version = CDNS3_CONTROLLER_V0; >> >cdns->otg_v1_regs = NULL; >> >cdns->otg_regs = regs; >> >+ writel(0x1, &cdns->otg_v0_regs->simulate); >> >

RE: [PATCH v1 1/2] dt-bindings: add binding for USBSS-DRD controller.

2018-12-30 Thread Pawel Laszczak
Hi Bob, >> >> >On Mon, Dec 10, 2018 at 12:39:14PM +, Pawel Laszczak wrote: >> >> This patch aim at documenting USB related dt-bindings for the >> >> Cadence USBSS-DRD controller. >> >> >> >> Signed-off-by: Pawel Laszczak > >[...] > >> >> + - phys: reference to the USB PHY >> >> + - phy-names:

[PATCH] block/amiflop: Don't log error message on invalid ioctl

2018-12-30 Thread Finn Thain
Cc: linux-m...@lists.linux-m68k.org Signed-off-by: Finn Thain --- drivers/block/amiflop.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/block/amiflop.c b/drivers/block/amiflop.c index bf996bd44cfc..0903e0803ec8 100644 --- a/drivers/block/amiflop.c +++ b/drivers/block/amiflop.c @@ -

[PATCH] block/swim3: Fix regression on PowerBook G3

2018-12-30 Thread Finn Thain
As of v4.20, the swim3 driver crashes when loaded on a PowerBook G3 (Wallstreet). MacIO PCI driver attached to Gatwick chipset MacIO PCI driver attached to Heathrow chipset swim3 0.00015000:floppy: [fd0] SWIM3 floppy controller in media bay 0.00013020:ch-a: ttyS0 at MMIO 0xf3013020 (irq = 16, base

[PATCH] block/swim3: Fix -EBUSY error when re-opening device after unmount

2018-12-30 Thread Finn Thain
When the block device is opened with FMODE_EXCL, ref_count is set to -1. This value doesn't get reset when the device is closed which means the device cannot be opened again. Fix this by checking for refcount <= 0 in the release method. Reported-and-tested-by: Stan Johnson Fixes: 1da177e4c3f4 ("L

[PATCH] block/swim3: Remove dead return statement

2018-12-30 Thread Finn Thain
Cc: linuxppc-...@lists.ozlabs.org Signed-off-by: Finn Thain --- drivers/block/swim3.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/block/swim3.c b/drivers/block/swim3.c index c1c676a33e4a..ba1190f1276b 100644 --- a/drivers/block/swim3.c +++ b/drivers/block/swim3.c @@ -1151,7 +1151,6

KASAN: use-after-free Read in batadv_interface_tx

2018-12-30 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:903b77c63167 Merge tag 'linux-kselftest-4.21-rc1' of git:/.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=168acbdd40 kernel config: https://syzkaller.appspot.com/x/.config?x=53a2f2aa0b1f7606 da

RE: [PATCH v1 0/2] Virtio: fix some vq allocation issues

2018-12-30 Thread Wang, Wei W
On Sunday, December 30, 2018 2:06 PM, Halil Pasic wrote: > > I guess you are the first one trying to read virtio config from within > interrupt > context. AFAICT this never worked. I'm not sure about "never worked". It seems to work well with virtio-pci. But looking forward to hearing a solid re

Re: [PATCH v7 4/4] Bluetooth: btqca: inject command complete event during fw download

2018-12-30 Thread Balakrishna Godavarthi
Hi Marcel, On 2018-12-30 13:40, Marcel Holtmann wrote: Hi Balakrishna, Latest qualcomm chips are not sending an command complete event for every firmware packet sent to chip. They only respond with a vendor specific event for the last firmware packet. This optimization will decrease the BT ON

Re: [PATCH] infiniband: bnxt_re: qplib: Check the return value of send_message

2018-12-30 Thread Devesh Sharma
On Thu, Dec 27, 2018 at 12:26 AM Aditya Pakki wrote: > > In bnxt_qplib_map_tc2cos(), bnxt_qplib_rcfw_send_message() can return > an error value. The fix returns the error from the latter function > upstream. > > Signed-off-by: Aditya Pakki > --- > drivers/infiniband/hw/bnxt_re/qplib_sp.c | 5 ++-

Re: [PATCH] include/linux/gfp.h: fix typo

2018-12-30 Thread Mike Rapoport
On Thu, Dec 27, 2018 at 03:23:54PM -0800, Kyle Spiers wrote: > Fix misspelled "satisfied" > > Signed-off-by: Kyle Spiers Acked-by: Mike Rapoport > --- > include/linux/gfp.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/linux/gfp.h b/include/linux/gfp.h > in

Re: kernel panic: corrupted stack end in wb_workfn

2018-12-30 Thread Dmitry Vyukov
On Mon, Dec 31, 2018 at 4:47 AM Qian Cai wrote: > > Ah, it has KASAN_EXTRA. Need this patch then. > > https://lore.kernel.org/lkml/20181228020639.80425-1-...@lca.pw/ > > or to use GCC from the HEAD which suppose to reduce the stack-size in half. > > shrink_page_list > shrink_inactive_list > > Thos

Re: general protection fault in put_pid

2018-12-30 Thread Dmitry Vyukov
On Sun, Dec 30, 2018 at 10:31 AM Dmitry Vyukov wrote: > > On Wed, Dec 26, 2018 at 10:03 AM Dmitry Vyukov wrote: > > > > Hello Dmitry, > > > > > > > > On 12/23/18 11:42 AM, Dmitry Vyukov wrote: > > > > > Actually was able to reproduce this with a syzkaller program: > > > > > ./syz-execprog -repeat

Re: KASAN: stack-out-of-bounds Read in __schedule (2)

2018-12-30 Thread Dmitry Vyukov
On Thu, Dec 6, 2018 at 8:51 PM syzbot wrote: > > Hello, > > syzbot found the following crash on: > > HEAD commit:d08970904582 Merge tag 'for-4.20-rc5-tag' of git://git.ker.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=106a5dd540 > kernel config:

BUG: unable to handle kernel paging request in init_srcu_struct_fields

2018-12-30 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:65e08c5e8631 Merge tag 'linux-kselftest-4.20-rc7' of git:/.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=16ca3d2b40 kernel config: https://syzkaller.appspot.com/x/.config?x=c8970c89a0efbb23 da

BUG: corrupted list in account_entity_enqueue

2018-12-30 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:00c569b567c7 Merge tag 'locks-v4.21-1' of git://git.kernel.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=136d858f40 kernel config: https://syzkaller.appspot.com/x/.config?x=fbee5876573727cd da

general protection fault in rb_next (2)

2018-12-30 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:edeca3a769ad Merge tag 'sound-4.20-rc4' of git://git.kerne.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=13316f7b40 kernel config: https://syzkaller.appspot.com/x/.config?x=73e2bc0cb6463446 da

Re: general protection fault in rb_next (2)

2018-12-30 Thread Dmitry Vyukov
On Mon, Dec 31, 2018 at 8:14 AM syzbot wrote: > > Hello, > > syzbot found the following crash on: > > HEAD commit:edeca3a769ad Merge tag 'sound-4.20-rc4' of git://git.kerne.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=13316f7b40 > kernel config:

[RFC v2 4/6] x86: interface for accessing indirect branch locations

2018-12-30 Thread Nadav Amit
Adding a C interface to access the locations of indirect branches. To be used for dynamic patching. Signed-off-by: Nadav Amit --- arch/x86/include/asm/sections.h | 2 ++ include/linux/module.h | 9 + kernel/module.c | 8 3 files changed, 19 insertions(+)

[RFC v2 5/6] x86: learning and patching indirect branch targets

2018-12-30 Thread Nadav Amit
During runtime, we collect the targets of indirect branch targets and patch them in. Patching is done asynchronously, by modifying each of the relpoline code-paths separately while diverting code execution to the other path during patching. Preemption is disabled while the code runs, and we wait fo

[RFC v2 6/6] x86: outline optpoline

2018-12-30 Thread Nadav Amit
When there is more than a single target, we can set an outline block to hold optimized for few more targets. This is done dynamically during runtime, limiting the potential memory consumption. If preemption is performed while we are running the outline block, we jump to the indirect thunk, and con

[RFC v2 1/6] x86: introduce kernel restartable sequence

2018-12-30 Thread Nadav Amit
It is sometimes beneficial to have a restartable sequence - very few instructions which if they are preempted jump to a predefined point. To provide such functionality on x86-64, we use an empty REX-prefix (opcode 0x40) as an indication for instruction in such a sequence. Before calling the schedu

[RFC v2 2/6] objtool: ignore instructions

2018-12-30 Thread Nadav Amit
In certain cases there is a need to suppress objtool warnings on specific instructions. Provide an interface to achieve this goal. Signed-off-by: Nadav Amit --- tools/objtool/check.c | 21 +++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/tools/objtool/check.c

[RFC v2 0/6] x86: dynamic indirect branch promotion

2018-12-30 Thread Nadav Amit
This is a revised version of optpolines (formerly named retpolines) for dynamic indirect branch promotion in order to reduce retpoline overheads [1]. This version address some of the concerns that were raised before. Accordingly, the code was slightly simplified and patching is now done using the

[RFC v2 3/6] x86: patch indirect branch promotion

2018-12-30 Thread Nadav Amit
To perform indirect branch promotion, we need to find all the locations and patch them, while ignore various code sections (e.g., init, alternatives). Using a GCC plugin allows us to do so. It is also possible to add on top of this plugin and opt-in/out mechanism. Signed-off-by: Nadav Amit --- a

BUG: unable to handle kernel NULL pointer dereference in kmem_cache_free (2)

2018-12-30 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:345671ea0f92 Merge branch 'akpm' (patches from Andrew) git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1044271340 kernel config: https://syzkaller.appspot.com/x/.config?x=5c0a49d2b5210087 dashboar

Re: [PATCH v2 2/3] clk: ti: check clock type before doing autoidle ops

2018-12-30 Thread Tero Kristo
On 28/12/2018 22:02, Tony Lindgren wrote: * Andreas Kemnade [181227 20:13]: Hi, On Tue, 4 Dec 2018 08:45:57 -0800 Tony Lindgren wrote: * Andreas Kemnade [181204 06:17]: On Mon, 3 Dec 2018 07:39:10 -0800 Tony Lindgren wrote: The consumer device stays active just fine with PM runtime call

Re: BUG: unable to handle kernel NULL pointer dereference in kmem_cache_free (2)

2018-12-30 Thread Dmitry Vyukov
On Mon, Dec 31, 2018 at 8:23 AM syzbot wrote: > > Hello, > > syzbot found the following crash on: > > HEAD commit:345671ea0f92 Merge branch 'akpm' (patches from Andrew) > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=1044271340 > kernel config: https

INFO: rcu detected stall in ndisc_alloc_skb

2018-12-30 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:ef4ab8447aa2 selftests: bpf: install script with_addr.sh git tree: bpf-next console output: https://syzkaller.appspot.com/x/log.txt?x=14a28b6e40 kernel config: https://syzkaller.appspot.com/x/.config?x=7e7e2279c0020d5f dashbo

BUG: unable to handle kernel NULL pointer dereference in unlink_file_vma

2018-12-30 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:3d647e62686f Merge tag 's390-4.19-4' of git://git.kernel.o.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1316f4a540 kernel config: https://syzkaller.appspot.com/x/.config?x=88e9a8a39dc0be2d da

BUG: unable to handle kernel NULL pointer dereference in qlist_free_all (6)

2018-12-30 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:5f179793f0a7 Merge tag 'for_linus' of git://git.kernel.org.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=17a713d540 kernel config: https://syzkaller.appspot.com/x/.config?x=8110fb1cd164e8f das

Re: INFO: rcu detected stall in ndisc_alloc_skb

2018-12-30 Thread Dmitry Vyukov
On Mon, Dec 31, 2018 at 8:42 AM syzbot wrote: > > Hello, > > syzbot found the following crash on: > > HEAD commit:ef4ab8447aa2 selftests: bpf: install script with_addr.sh > git tree: bpf-next > console output: https://syzkaller.appspot.com/x/log.txt?x=14a28b6e40 > kernel config: htt

Re: BUG: unable to handle kernel NULL pointer dereference in unlink_file_vma

2018-12-30 Thread Dmitry Vyukov
On Mon, Dec 31, 2018 at 8:44 AM syzbot wrote: > > Hello, > > syzbot found the following crash on: > > HEAD commit:3d647e62686f Merge tag 's390-4.19-4' of git://git.kernel.o.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=1316f4a540 > kernel config:

Re: BUG: unable to handle kernel NULL pointer dereference in qlist_free_all (6)

2018-12-30 Thread Dmitry Vyukov
On Mon, Dec 31, 2018 at 8:49 AM syzbot wrote: > > Hello, > > syzbot found the following crash on: > > HEAD commit:5f179793f0a7 Merge tag 'for_linus' of git://git.kernel.org.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=17a713d540 > kernel config:

KMSAN: uninit-value in mpol_rebind_mm

2018-12-30 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:79fc24ff6184 kmsan: highmem: use kmsan_clear_page() in cop.. git tree: kmsan console output: https://syzkaller.appspot.com/x/log.txt?x=13c48b6740 kernel config: https://syzkaller.appspot.com/x/.config?x=901dd030b2cc57e7 dashb

Re: [PATCH] netfilter: account ebt_table_info to kmemcg

2018-12-30 Thread Michal Hocko
On Sun 30-12-18 08:45:13, Michal Hocko wrote: > On Sat 29-12-18 11:34:29, Shakeel Butt wrote: > > On Sat, Dec 29, 2018 at 2:06 AM Michal Hocko wrote: > > > > > > 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: >

COMPLIMENT OF THE SEASON,

2018-12-30 Thread Mrs. Aisha
Dear Friend, I came across your e-mail contact prior a private search while in need of your assistance. My name is Aisha Gaddafi a single Mother and a Widow with three Children. I am the only biological Daughter of late Libyan President (Late Colonel Muammar Gaddafi). I have an investment funds

Re: [PATCH v7 4/4] Bluetooth: btqca: inject command complete event during fw download

2018-12-30 Thread Marcel Holtmann
Hi Balakrishna, >>> Latest qualcomm chips are not sending an command complete event for >>> every firmware packet sent to chip. They only respond with a vendor >>> specific event for the last firmware packet. This optimization will >>> decrease the BT ON time. Due to this we are seeing a timeout e

[PATCH v14 1/3] pps: descriptor-based gpio

2018-12-30 Thread Tom Burkart
This patch changes the GPIO access for the pps-gpio driver from the integer based API to the descriptor based API. Reviewed-by: Philipp Zabel Signed-off-by: Tom Burkart --- drivers/pps/clients/pps-gpio.c | 67 +++--- include/linux/pps-gpio.h | 3 +- 2

[PATCH v14 2/3] dt-bindings: pps: pps-gpio PPS ECHO implementation

2018-12-30 Thread Tom Burkart
This patch implements the device tree binding changes required for the pps echo functionality for pps-gpio, that sysfs claims is available already. This patch was originally written by Lukas Senger as part of a masters thesis project and modified for inclusion into the linux kernel by Tom Burkart.

[PATCH v14 0/3] PPS: pps-gpio PPS ECHO implementation

2018-12-30 Thread Tom Burkart
Hi all, please find attached the PPS-GPIO PPS ECHO implementation patch. The driver claims to have echo functionality in the sysfs interface but this functionality is not present. This patch provides this functionality. Part 1 of the patch change the original driver from the number based GPIO API

[PATCH v14 3/3] pps: pps-gpio pps-echo implementation

2018-12-30 Thread Tom Burkart
This patch implements the pps echo functionality for pps-gpio, that sysfs claims is available already. Configuration is done via device tree bindings. This patch was originally written by Lukas Senger as part of a masters thesis project and modified for inclusion into the linux kernel by Tom Burk

Re: [PATCH v4 8/8] arm64: dts: qcom: sdm845: Add Q6V5 MSS node

2018-12-30 Thread kbuild test robot
Hi Sibi, Thank you for the patch! Yet something to improve: [auto build test ERROR on agross/for-next] [also build test ERROR on v4.20 next-20181224] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/comm

Re: [GIT PULL] sound updates for 4.21

2018-12-30 Thread Takashi Iwai
On Fri, 28 Dec 2018 20:04:48 +0100, Linus Torvalds wrote: > > On Fri, Dec 28, 2018 at 9:07 AM Takashi Iwai wrote: > > > > 1) Whether ASoC driver cannot work with these Dell machines at all > > I'm willing to test patches. > > Right now, the reason it fails to even load is that "codec_mask" is 0

Re: general protection fault in put_pid

2018-12-30 Thread Dmitry Vyukov
On Wed, Dec 26, 2018 at 10:03 AM Dmitry Vyukov wrote: > > > Hello Dmitry, > > > > > > On 12/23/18 11:42 AM, Dmitry Vyukov wrote: > > > > Actually was able to reproduce this with a syzkaller program: > > > > ./syz-execprog -repeat=0 -procs=10 prog > > > > ... > > > > kasan: CONFIG_KASAN_INLINE enab

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

2018-12-30 Thread Kirill Tkhai
On 30.12.2018 00:40, Andrew Morton wrote: > On Thu, 13 Dec 2018 18:29:08 +0300 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 to an only pte, an

Re: [PATCH] media: tw9910: add missed clk_disable_unprepare() on failure path

2018-12-30 Thread Jacopo Mondi
Hi Alexey, thanks for the patch On Sun, Dec 30, 2018 at 12:35:20AM +0300, Alexey Khoroshilov wrote: > If gpiod_get_optional() fails in tw9910_power_on(), clk is left undisabled. > Correct, thanks for spotting this. I think pdn_gpio should also be handled if rstb_gpio fails. What's your opinio

epoll and vb2_poll: can't wake_up

2018-12-30 Thread Yi Qingliang
Hello, I encountered a "can't wake_up" problem when use camera on imx6. if delay some time after 'streamon' the /dev/video0, then add fd through epoll_ctl, then the process can't be waken_up after some time. I checked both the epoll / vb2_poll(videobuf2_core.c) code. epoll will pass 'poll_table'

Re: [PATCH V2 00/10] unify the interface of the proportional-share policy in blkio/io

2018-12-30 Thread Paolo Valente
> Il giorno 28 dic 2018, alle ore 00:41, Tejun Heo ha scritto: > > Hello, Paolo. > > On Sun, Dec 23, 2018 at 12:00:14PM +0100, Paolo Valente wrote: >> 4.21 is coming ... and the legacy proportional share interface will >> be gone with cfq. This will break legacy code using the >> proportion

WARNING in batadv_is_on_batman_iface

2018-12-30 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:d8924c0d76aa Merge tag 'devprop-4.21-rc1' of git://git.ker.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=122a373f40 kernel config: https://syzkaller.appspot.com/x/.config?x=91a256823ef17263 da

Re: [PATCH v2] driver core: platform: Add an error message to platform_get_irq*()

2018-12-30 Thread Andy Shevchenko
On Fri, Dec 28, 2018 at 11:56 PM Stephen Boyd wrote: > > A grep of the kernel shows that many drivers print an error message if > they fail to get the irq they're looking for. Furthermore, those drivers > all decide to print the device name, or not, and the irq they were > requesting, or not, etc.

[GIT PULL] kgdb changes v4.21-rc1

2018-12-30 Thread Daniel Thompson
Hi Linus Happy new year! The following changes since commit 2595646791c319cadfdbf271563aac97d0843dc7: Linux 4.20-rc5 (2018-12-02 15:07:55 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/danielt/linux.git/ tags/kgdb-4.21-rc1 for you to fetch c

Re: [PATCH v3 lora-next 5/5] net: lora: sx125x sx1301: allow radio to register as a clk provider

2018-12-30 Thread Andreas Färber
+ linux-spi, LAKML Am 29.12.18 um 21:16 schrieb Andreas Färber: > Am 29.12.18 um 20:25 schrieb Andreas Färber: >> Am 12.10.18 um 18:26 schrieb Ben Whitten: >>> +static int sx125x_register_clock_provider(struct sx125x_priv *priv) >>> +{ >>> + struct device *dev = priv->dev; >>> + struct clk_ini

Re: WARNING in batadv_is_on_batman_iface

2018-12-30 Thread Sven Eckelmann
On Sunday, 30 December 2018 11.41.03 CET syzbot wrote: [...] > HEAD commit:d8924c0d76aa Merge tag 'devprop-4.21-rc1' of git://git.ker.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=122a373f40 > kernel config: https://syzkaller.appspot.com/x/.config

Re: [PATCH] x86/asm: Use CC_SET/CC_OUT in percpu_cmpxchg16b_double

2018-12-30 Thread Uros Bizjak
On 12/28/18, Uros Bizjak wrote: > Use CC_SET(z)/CC_OUT(z) instead of explicit setz instruction. > Using these two defines, the compiler that supports generation of > condition code outputs from inline assembly flags generates one > conditional jump instruction, e.g: Unfortunatelly, the 0day kerne

Re: WARNING in batadv_is_on_batman_iface

2018-12-30 Thread Dmitry Vyukov
On Sun, Dec 30, 2018 at 12:00 PM Sven Eckelmann wrote: > > On Sunday, 30 December 2018 11.41.03 CET syzbot wrote: > [...] > > HEAD commit:d8924c0d76aa Merge tag 'devprop-4.21-rc1' of git://git.ker.. > > git tree: upstream > > console output: https://syzkaller.appspot.com/x/log.txt?x=122a

Re: [PATCH] media: tw9910: add missed clk_disable_unprepare() on failure path

2018-12-30 Thread Alexey Khoroshilov
Hi Jacopo, On 30.12.2018 12:49, Jacopo Mondi wrote: > On Sun, Dec 30, 2018 at 12:35:20AM +0300, Alexey Khoroshilov wrote: >> If gpiod_get_optional() fails in tw9910_power_on(), clk is left undisabled. > > Correct, thanks for spotting this. > > I think pdn_gpio should also be handled if rstb_gpio

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

2018-12-30 Thread Ingo Molnar
* 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 into tools/include/nolibc/ will make it

Re: general protection fault in fdb_find_rcu

2018-12-30 Thread Nikolay Aleksandrov
On 30/12/2018 06:01, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:    90cadbbf341d Merge git://git.kernel.org/pub/scm/linux/kern.. > git tree:   net-next > console output: https://syzkaller.appspot.com/x/log.txt?x=1745c69b40 > kernel config:  https://syz

[PATCH] arm64: dts: hikey: Give wifi some time after power-on

2018-12-30 Thread Jan Kiszka
From: Jan Kiszka Somewhere along recent changes to power control of the wl1835, power-on became very unreliable on the hikey, failing like this: wl1271_sdio: probe of mmc2:0001:1 failed with error -16 wl1271_sdio: probe of mmc2:0001:2 failed with error -16 After playing with some dt parameters

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

2018-12-30 Thread Willy Tarreau
On Sun, Dec 30, 2018 at 12:25:02PM +0100, Ingo Molnar wrote: Could we please also use the opportunity and move > nolibc.h to a more prominent place, like in tools/include/nolibc/nolibc.h > or so? It's exactly what the last patch does, I followed your suggestion :-) Willy

[PATCH v2 1/2] media: tw9910: fix failure handling in tw9910_power_on()

2018-12-30 Thread Alexey Khoroshilov
If gpiod_get_optional() fails in tw9910_power_on(), clk is left undisabled. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- v2: reset pdn_gpio as well as Jacopo Mondi suggested. drivers/media/i2c/tw9910.c | 5 + 1 file changed, 5 inserti

[PATCH v2 2/2] media: tw9910: add helper function for setting gpiod value

2018-12-30 Thread Alexey Khoroshilov
tw9910 driver tries to sleep for the smae period of time after each gpiod_set_value(). The patch moves duplicated code to a helper function. Signed-off-by: Alexey Khoroshilov --- drivers/media/i2c/tw9910.c | 30 +- 1 file changed, 13 insertions(+), 17 deletions(-) di

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

2018-12-30 Thread Ingo Molnar
* Willy Tarreau wrote: > On Sun, Dec 30, 2018 at 12:25:02PM +0100, Ingo Molnar wrote: > Could we please also use the opportunity and move > > nolibc.h to a more prominent place, like in tools/include/nolibc/nolibc.h > > or so? > > It's exactly what the last patch does, I followed your sugges

[GIT PULL REQUEST] watchdog - v4.21 Merge window

2018-12-30 Thread Wim Van Sebroeck
Hi Linus, Please pull the watchdog changes for the v4.21 release cycle. This series contains: * add TQ-Systems TQMX86 watchdog driver * add Qualcomm PM8916 watchdog driver * w83627hf_wdt: add quirk for Inves system * renesas_wdt: several improvements and document r8a774c0 support * mena21_wdt, mt

Re: [PATCH] sched: fix infinity loop in update_blocked_averages

2018-12-30 Thread Ingo Molnar
* Vincent Guittot wrote: > > Reported-by: Zhipeng Xie > > Cc: Bin Li > > Cc: [4.10+] > > Fixes: 9c2791f936ef (sched/fair: Fix hierarchical order in > > rq->leaf_cfs_rq_list) > > If it only happens in update_blocked_averages(), the del leaf has been added > by: > a9e7f6544b9c (sched

[PATCH] sched: Fix infinite loop in update_blocked_averages() by reverting a9e7f6544b9c

2018-12-30 Thread Ingo Molnar
* Ingo Molnar wrote: > > * Vincent Guittot wrote: > > > > Reported-by: Zhipeng Xie > > > Cc: Bin Li > > > Cc: [4.10+] > > > Fixes: 9c2791f936ef (sched/fair: Fix hierarchical order in > > > rq->leaf_cfs_rq_list) > > > > If it only happens in update_blocked_averages(), the del leaf

[PATCH] kallsyms: lower alignment on ARM

2018-12-30 Thread Mathias Krause
As mentioned in the info pages of gas, the '.align' pseudo op's interpretation of the alignment value is architecture specific. It might either be a byte value or taken to the power of two. On ARM it's actually the latter which leads to unnecessary large alignments of 16 bytes for 32 bit builds or

Re: [PATCH] sched: fix infinity loop in update_blocked_averages

2018-12-30 Thread Vincent Guittot
On Sun, 30 Dec 2018 at 13:04, Ingo Molnar wrote: > > > * Vincent Guittot wrote: > > > > Reported-by: Zhipeng Xie > > > Cc: Bin Li > > > Cc: [4.10+] > > > Fixes: 9c2791f936ef (sched/fair: Fix hierarchical order in > > > rq->leaf_cfs_rq_list) > > > > If it only happens in update_blocked_

[PATCH] vmlinux.lds.h: drop unused __vermagic

2018-12-30 Thread Mathias Krause
The reference to '__vermagic' is a relict from v2.5 times. And even there it had a very short life time, from v2.5.59 (commit 1d411b80ee18 ("Module Sanity Check") in the historic tree) to v2.5.69 (commit 67ac5b866bda ("[PATCH] complete modinfo section")). Neither current kernels nor modules contai

Re: [PATCH] sched: fix infinity loop in update_blocked_averages

2018-12-30 Thread Ingo Molnar
* Vincent Guittot wrote: > On Sun, 30 Dec 2018 at 13:04, Ingo Molnar wrote: > > > > > > * Vincent Guittot wrote: > > > > > > Reported-by: Zhipeng Xie > > > > Cc: Bin Li > > > > Cc: [4.10+] > > > > Fixes: 9c2791f936ef (sched/fair: Fix hierarchical order in > > > > rq->leaf_cfs_rq_li

[tip:sched/urgent] sched/fair: Fix infinite loop in update_blocked_averages() by reverting a9e7f6544b9c

2018-12-30 Thread tip-bot for Linus Torvalds
Commit-ID: c40f7d74c741a907cfaeb73a7697081881c497d0 Gitweb: https://git.kernel.org/tip/c40f7d74c741a907cfaeb73a7697081881c497d0 Author: Linus Torvalds AuthorDate: Thu, 27 Dec 2018 13:46:17 -0800 Committer: Ingo Molnar CommitDate: Sun, 30 Dec 2018 13:54:31 +0100 sched/fair: Fix infinite

Re: tpm_tis TPM2.0 not detected on cold boot

2018-12-30 Thread Michael Niewöhner
On Sat, 2018-12-29 at 22:33 -0500, Mimi Zohar wrote: > On Tue, 2018-12-25 at 14:55 +0100, Michael Niewöhner wrote: > > On Sun, 2018-12-23 at 12:55 +0100, Michael Niewöhner wrote: > > > Hi Mimi, > > > > > > On Sat, 2018-12-22 at 17:53 -0500, Mimi Zohar wrote: > > > > On Sat, 2018-12-22 at 14:47 +01

[PATCH] mt76: make const array 'data' static, shrinks object size

2018-12-30 Thread Colin King
From: Colin Ian King Don't populate the const array 'data' on the stack but instead make it static. Makes the object code smaller by 78 bytes: Before: textdata bss dec hex filename 54381080 065181976 mediatek/mt76/mt76x2/usb_mcu.o After: textdata

[PATCH 1/2] sysfs: Add hook for checking the file capable for opener

2018-12-30 Thread Lee, Chun-Yi
Base on the discussion in the following mail loop about checking capability in sysfs write handler: https://lkml.org/lkml/2018/9/13/978 Some sysfs write handler are checking the writer's capability by using capable(). Base on CVE-2013-1959, those code should use file_ns_capable() to check the

[PATCH 0/2] [RFC] sysfs: Add hook for checking the file capability of opener

2018-12-30 Thread Lee, Chun-Yi
There have some discussion in the following mail loop about checking capability in sysfs write handler: https://lkml.org/lkml/2018/9/13/978 Sometimes we check the capability in sysfs implementation by using capable function. But the checking can be bypassed by opening sysfs file within an unpr

[PATCH 2/2] PM / Sleep: Check the file capability when writing wake lock interface

2018-12-30 Thread Lee, Chun-Yi
The wake lock/unlock sysfs interfaces check that the writer must has CAP_BLOCK_SUSPEND capability. But the checking logic can be bypassed by opening sysfs file within an unprivileged process and then writing the file within a privileged process. The tricking way has been exposed by Andy Lutomirski

[PATCH] NFC: st95hf: clean up indentation, add in missing tab on return statement

2018-12-30 Thread Colin King
From: Colin Ian King A return statement is not indented enough, fix this by adding the missing tab. Signed-off-by: Colin Ian King --- drivers/nfc/st95hf/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nfc/st95hf/core.c b/drivers/nfc/st95hf/core.c index a50a95

[PATCH] crypto: virtio: clean up indentation, replace spaces with tab

2018-12-30 Thread Colin King
From: Colin Ian King A statement is indented with spaces and not indented enough, fix this replacing spaces with a tab. Signed-off-by: Colin Ian King --- drivers/crypto/virtio/virtio_crypto_algs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/virtio/virtio_

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

2018-12-30 Thread Peter Maydell
On Sat, 29 Dec 2018 at 16:49, Andy Lutomirski wrote: > > Could you use a prctl to set whether you were running in 32 or 64 bit > > mode? Or do you change which kind of task you're emulating too often > > to make this a good idea? QEMU's linux-user mode always only runs the single process, which

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

2018-12-30 Thread Heiko Stuebner
Am Samstag, 29. Dezember 2018, 14:33:12 CET schrieb 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 n

Re: [PATCH] perf annotate: pass filename to objdump via execl

2018-12-30 Thread Ivan Krylov
On Sun, 14 Oct 2018 16:04:51 +0200 Jiri Olsa wrote: > Acked-by: Jiri Olsa Is there anything I could do to improve the patch? Should I wrap the path to objdump executable in a similar way? -- Best regards, Ivan

Re: [PATCH 0/2] [RFC] sysfs: Add hook for checking the file capability of opener

2018-12-30 Thread Greg Kroah-Hartman
On Sun, Dec 30, 2018 at 09:28:54PM +0800, Lee, Chun-Yi wrote: > There have some discussion in the following mail loop about checking > capability in sysfs write handler: > https://lkml.org/lkml/2018/9/13/978 A sysfs callback should not care about stuff like this. Worst case, do a simple:

Re: [PATCH 2/2] PM / Sleep: Check the file capability when writing wake lock interface

2018-12-30 Thread Greg Kroah-Hartman
On Sun, Dec 30, 2018 at 09:28:56PM +0800, Lee, Chun-Yi wrote: > The wake lock/unlock sysfs interfaces check that the writer must has > CAP_BLOCK_SUSPEND capability. But the checking logic can be bypassed > by opening sysfs file within an unprivileged process and then writing > the file within a pri

[GIT PULL] pin control bulk changes for the v4.21 kernel

2018-12-30 Thread Linus Walleij
Hi Linus, here is the big pull request for pin control changes this merge window. It took some days to stabilize some last minute Kconfig changes and I wanted some build coverage before sending the pull request. We have no core changes but lots of incremental development in drivers all over the

[PATCH] jump_label: move 'asm goto' support test to Kconfig

2018-12-30 Thread Masahiro Yamada
Currently, CONFIG_JUMP_LABEL just means "I _want_ to use jump label". The jump label is controlled by HAVE_JUMP_LABEL, which is defined like this: #if defined(CC_HAVE_ASM_GOTO) && defined(CONFIG_JUMP_LABEL) # define HAVE_JUMP_LABEL #endif We can improve this by testing 'asm goto' support i

[PATCH v2] x86/trace: set TRACE_INCLUDE_PATH correctly instead of header search path

2018-12-30 Thread Masahiro Yamada
Set TRACE_INCLUDE_PATH correctly for exceptions.h and irq_vectors.h This is consistent with fpu.h, hyperv.h, mpx.h in the same directory. The ugly include paths will go away. Signed-off-by: Masahiro Yamada --- Changes in v2: - Rebase arch/x86/include/asm/trace/exceptions.h | 2 +- arch/x86/

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

2018-12-30 Thread Andrea Arcangeli
Hello, On Sun, Dec 30, 2018 at 08:48:05AM +0100, Dmitry Vyukov wrote: > On Wed, Dec 12, 2018 at 10:58 AM Dmitry Vyukov wrote: > > > > On Wed, Dec 12, 2018 at 10:45 AM syzbot > > wrote: > > > > > > Hello, > > > > > > syzbot found the following crash on: > > > > > > HEAD commit:14cf8c1d5b90 Ad

  1   2   3   >