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

2019-01-02 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.

Re: kernel: xhci_hcd 0000:00:14.0: ERROR unknown event type 37 - Kernel 4.19.13

2019-01-02 Thread Nathan Royce
...But then again, maybe it wasn't the cable. It's acting up again. On Tue, Jan 1, 2019 at 3:14 PM Nathan Royce wrote: > > Looks like this particular issue may have been due to a touchy/finicky > connection. > > I removed my tuner from my hub and removed the hub from my > motherboard's USB and pu

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

2019-01-02 Thread LEROY Christophe
Peng Hao a écrit : 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

Re: [PATCH V4 1/3] mmc: sdhci: add support for using external DMA devices

2019-01-02 Thread Faiz Abbas
Adrian, On 27/12/18 1:32 PM, Chunyan Zhang wrote: > On Thu, 27 Dec 2018 at 15:44, Adrian Hunter wrote: >> >> On 11/12/18 11:12 AM, Chunyan Zhang wrote: >>> Some standard SD host controllers can support both external dma >>> controllers as well as ADMA/SDMA in which the SD host controller >>> acts

Re: [LINUX PATCH v12] mtd: rawnand: pl353: Add basic driver for arm pl353 smc nand interface

2019-01-02 Thread Miquel Raynal
Hi Romain, Switching Boris address. Romain Perier wrote on Fri, 21 Dec 2018 10:17:50 +0100: > Hello, > > I have rebased this patch onto 4.19.11. I use it on a Zynq7000-based > board with a NAND chip Micron MT29F4G08ABADAH4, since ~2 weeks now. > The only problem I have to report is that when I

crash in gart_unmap_page() with master snapshot (commit e1ef035d272e)

2019-01-02 Thread Michal Kubecek
Hello, today I encountered a crash with kernel built from master branch snapshot (commit e1ef035d272e): CPU: 1 PID: 0 Comm: swapper/1 Kdump: loaded Tainted: GE 4.21.0-rc0-1.gd3c9245-default #1 openSUSE Tumbleweed (unreleased) Hardware name: MICRO-STAR INTERANTIONAL CO.,LTD MS-737

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

2019-01-02 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.

possible deadlock in __wake_up_common_lock

2019-01-02 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:f346b0becb1b Merge branch 'akpm' (patches from Andrew) git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1510cefd40 kernel config: https://syzkaller.appspot.com/x/.config?x=c255c77ba370fe7c dashboar

[PATCH] drm/mediatek: Add MTK Framebuffer-Device (mt7623)

2019-01-02 Thread Frank Wunderlich
From: CK Hu This patch adds Framebuffer-Driver for Mediatek currently tested on mt7623, maybe works on other platforms MTK-FBDev written by CK Hu and ported from 4.4 based on patchset drm/hdmi for 7623 v5 (except last part included in 4.20) https://patchwork.kernel.org/project/linux-mediatek/

[RFC v3 2/3] vmalloc: add test driver to analyse vmalloc allocator

2019-01-02 Thread Uladzislau Rezki (Sony)
This adds a new kernel module for analysis of vmalloc allocator. It is only enabled as a module. There are two main reasons this module should be used for: performance evaluation and stressing of vmalloc subsystem. It consists of several test cases. As of now there are 8. The module has five param

[RFC v3 0/3] test driver to analyse vmalloc allocator

2019-01-02 Thread Uladzislau Rezki (Sony)
Hello. This is v3. The first RFC was here: https://lkml.org/lkml/2018/11/13/957 Please have a look there for detailed description and discussion. Changes in v3: - Export __vmalloc_node_range() with _GPL-only prefix; - Add skip cases if the test can not be executed in current environment.

[RFC v3 1/3] vmalloc: export __vmalloc_node_range for CONFIG_TEST_VMALLOC_MODULE

2019-01-02 Thread Uladzislau Rezki (Sony)
Export __vmaloc_node_range() function if CONFIG_TEST_VMALLOC_MODULE is enabled. Some test cases in vmalloc test suite module require and make use of that function. Please note, that it is not supposed to be used for other purposes. We need it only for performance analysis, stressing and stability

[RFC v3 3/3] selftests/vm: add script helper for CONFIG_TEST_VMALLOC_MODULE

2019-01-02 Thread Uladzislau Rezki (Sony)
Add the test script for the kernel test driver to analyse vmalloc allocator for benchmarking and stressing purposes. It is just a kernel module loader. You can specify and pass different parameters in order to investigate allocations behaviour. See "usage" output for more details. Also add basic v

WARNING in mem_cgroup_update_lru_size

2019-01-02 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:8e143b90e4d4 Merge tag 'iommu-updates-v4.21' of git://git... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1250f37740 kernel config: https://syzkaller.appspot.com/x/.config?x=c2ab9708c613a224 da

Re: [PATCH v8 08/10] PM / Domains: Add a simple_opp_to_performance_state() helper

2019-01-02 Thread Viresh Kumar
On 21-12-18, 14:26, Rajendra Nayak wrote: > +unsigned int simple_opp_to_performance_state(struct generic_pm_domain *genpd, > + struct dev_pm_opp *opp, Maybe name it as: dev_pm_opp_read_u32_prop(). -- viresh

BUG: unable to handle kernel paging request in h4_recv_buf

2019-01-02 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:28e8c4bc8eb4 Merge tag 'rtc-4.21' of git://git.kernel.org/.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=14a063fd40 kernel config: https://syzkaller.appspot.com/x/.config?x=c2ab9708c613a224 da

[PATCH 2/2] fs: support direct IO in a multi-device FS

2019-01-02 Thread sunqiuyang
From: Qiuyang Sun Don't use the bdev pointer in struct buffer_head for dio_bio_alloc(), since it may have been changed to another device in the FS in get_more_blocks(). Signed-off-by: Qiuyang Sun --- fs/direct-io.c | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) dif

[PATCH 1/2] f2fs-dev: support multi-device direct IO

2019-01-02 Thread sunqiuyang
From: Qiuyang Sun The physical blocks in struct f2fs_map_blocks must be in the same device. Signed-off-by: Qiuyang Sun --- fs/f2fs/data.c | 20 +++- fs/f2fs/f2fs.h | 2 -- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index e5c

Re: [PATCH] rtl8723bs/ioctl_linux: Add a security check to copy_from_user()

2019-01-02 Thread Dan Carpenter
On Sun, Dec 23, 2018 at 06:13:02PM -0600, Aditya Pakki wrote: > diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c > b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c > index b8631baf128d..9992caa8c839 100644 > --- a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c > +++ b/drivers/staging/rt

Re: [PATCH v1 1/2] binderfs: implement "max" mount option

2019-01-02 Thread Dan Carpenter
On Sun, Dec 23, 2018 at 03:35:49PM +0100, Christian Brauner wrote: > static inline struct binderfs_info *BINDERFS_I(const struct inode *inode) > @@ -110,10 +132,16 @@ static int binderfs_binder_device_create(struct inode > *ref_inode, > > /* Reserve new minor number for the new device. */

RE: [LINUX PATCH v12] mtd: rawnand: pl353: Add basic driver for arm pl353 smc nand interface

2019-01-02 Thread Naga Sureshkumar Relli
Hi, > -Original Message- > From: Miquel Raynal [mailto:miquel.ray...@bootlin.com] > Sent: Wednesday, January 2, 2019 2:04 PM > To: Romain Perier > Cc: Naga Sureshkumar Relli ; Boris Brezillon > ; linux-...@lists.infradead.org; > peterpand...@micron.com; > linux-kernel@vger.kernel.org > S

Re: [PATCH] net: sfc: checks status of efx_mcdi_rpc

2019-01-02 Thread Bert Kenward
Hello, On 26/12/18 05:05, Kangjie Lu wrote: > efx_mcdi_rpc() could fail. The fix checks its status and issues an error > message if it fails. > > Signed-off-by: Kangjie Lu > --- > drivers/net/ethernet/sfc/mcdi.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/net/ethernet/s

Re: [PATCHv3 1/2] mm/memblock: extend the limit inferior of bottom-up after parsing hotplug attr

2019-01-02 Thread Mike Rapoport
On Wed, Jan 02, 2019 at 02:47:34PM +0800, Pingfan Liu wrote: > On Mon, Dec 31, 2018 at 4:40 PM Mike Rapoport wrote: > > > > On Fri, Dec 28, 2018 at 11:00:01AM +0800, Pingfan Liu wrote: > > > The bottom-up allocation style is introduced to cope with movable_node, > > > where the limit inferior of a

Re: [PATCHv3 2/2] x86/kdump: bugfix, make the behavior of crashkernel=X consistent with kaslr

2019-01-02 Thread Mike Rapoport
On Wed, Jan 02, 2019 at 02:47:54PM +0800, Pingfan Liu wrote: > On Mon, Dec 31, 2018 at 4:46 PM Mike Rapoport wrote: > > > > On Fri, Dec 28, 2018 at 11:00:02AM +0800, Pingfan Liu wrote: > > > Customer reported a bug on a high end server with many pcie devices, where > > > kernel bootup with crashke

Dolgozói juttatások

2019-01-02 Thread László Péter
Üdvözlöm! 2019-től majdnem az összes kiegészítő juttatás jövedelemként fog adózni (kivéve a SZÉP kártyát). Szeretném az Önök figyelmébe ajánlani juttatás kártyáinkat, melyek az új tehetségek megnyerésének és a dolgozók megtartásának és motiválásának versenyképes eszközei. A SZÉP kártya megold

Re: [RFC PATCH 1/2] optee: model OP-TEE as a platform device/driver

2019-01-02 Thread Jens Wiklander
Hi Ard and Arnd, On Thu, Dec 27, 2018 at 8:01 PM Ard Biesheuvel wrote: > > To simplify adding ACPI support to the OP-TEE driver, model it as > a platform driver. This will permit us to use the generic device > property layer for parsing additional properties, regardless of > whether DT or ACPI is

Re: [PATCH v5 18/20] iommu/mediatek: Fix VLD_PA_RANGE register backup when suspend

2019-01-02 Thread Yong Wu
On Wed, 2019-01-02 at 14:54 +0800, Nicolas Boichat wrote: > On Tue, Jan 1, 2019 at 11:59 AM Yong Wu wrote: > > > > The register VLD_PA_RNG(0x118) was forgot to backup while adding 4GB > > mode support for mt2712. this patch add it. > > > > Fixes: 30e2fccf9512 ("iommu/mediatek: Enlarge the validate

Re: [PATCH v5 11/20] iommu/mediatek: Move vld_pa_rng into plat_data

2019-01-02 Thread Yong Wu
On Wed, 2019-01-02 at 14:45 +0800, Nicolas Boichat wrote: > On Tue, Jan 1, 2019 at 11:58 AM Yong Wu wrote: > > > > Both mt8173 and mt8183 don't have this vld_pa_rng(valid physical address > > range) register while mt2712 have. Move it into the plat_data. > > > > Signed-off-by: Yong Wu > > --- > >

Re: [PATCH v5 09/20] iommu/mediatek: Refine protect memory definition

2019-01-02 Thread Yong Wu
On Wed, 2019-01-02 at 14:23 +0800, Nicolas Boichat wrote: > On Tue, Jan 1, 2019 at 11:58 AM Yong Wu wrote: > > > > The protect memory setting is a little different in the different SoCs. > > In the register REG_MMU_CTRL_REG(0x110), the TF_PROT(translation fault > > protect) shift bit is normally 4

Re: [regression from v4.19] Re: 4.20.0-rc6-next-20181210, v4.20-rc1: list_del corruption on thinkpad x220, graphics related?

2019-01-02 Thread Joonas Lahtinen
Quoting Pavel Machek (2018-12-27 10:34:39) > Hi! > > > > > > If you think it is useful, I can try to update my machine to > > > > > linux-next. > > > > > > > > linux-next is closer to drm-tip, so it's better. Do you have some > > > > specific reason for not wanting to run drm-tip (but linux-next

Re: [PATCH] fsi:fsi-sbefifo: Fix possible concurrency use-after-free bugs in sbefifo_user_release

2019-01-02 Thread David Howells
Jia-Ju Bai wrote: > + mutex_lock(&user->file_lock); > sbefifo_release_command(user); > free_page((unsigned long)user->cmd_page); > + mutex_unlock(&user->file_lock); It shouldn't be necessary to do the free_page() call inside the locked section. David

Re: [PATCH v4 08/11] ASoC: Intel: atom: Make PCI dependency explicit

2019-01-02 Thread Rafael J. Wysocki
On Sun, Dec 30, 2018 at 8:56 PM Sinan Kaya wrote: > > Code does unconditional select for IOSF_MBI. IOSF_MBI driver depends on > CONFIG_PCI set but this is not specified anywhere. IMO it would be better to say "After commit 5d32a66541c46 (PCI/ACPI: Allow ACPI to be built without CONFIG_PCI set) d

[PATCH][next] cgroup: fix spelling mistake "paramter" -> "parameter"

2019-01-02 Thread Colin King
From: Colin Ian King There is a spelling mistake in the message in a cg_invalf call, fix it. Signed-off-by: Colin Ian King --- kernel/cgroup/cgroup-v1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/cgroup/cgroup-v1.c b/kernel/cgroup/cgroup-v1.c index e20a08ce9655.

Re: [PATCH v4 08/11] ASoC: Intel: atom: Make PCI dependency explicit

2019-01-02 Thread Rafael J. Wysocki
On Wed, Jan 2, 2019 at 10:34 AM Rafael J. Wysocki wrote: > > On Sun, Dec 30, 2018 at 8:56 PM Sinan Kaya wrote: > > > > Code does unconditional select for IOSF_MBI. IOSF_MBI driver depends on > > CONFIG_PCI set but this is not specified anywhere. > > IMO it would be better to say > > "After commit

Re: [PATCH 07/21] PCI: designware: Make use of IS_ALIGNED()

2019-01-02 Thread Gustavo Pimentel
Hi, On 21/12/2018 07:27, Andrey Smirnov wrote: > Make the intent a bit more clear as well as get rid of explicit > arithmetic by using IS_ALIGNED() to determine if "addr" is aligned to > "size". No functional change intended. > > Cc: Lorenzo Pieralisi > Cc: Bjorn Helgaas > Cc: Fabio Estevam >

Re: [PATCH] fs: proc: check status of register_filesystem

2019-01-02 Thread David Howells
Kangjie Lu wrote: > + pr_err("failed to register the filesystem.\n"); Is it worth saying which filesystem? David

Re: [PATCH] fs: proc: check status of register_filesystem

2019-01-02 Thread David Howells
Alexey Dobriyan wrote: > > - register_filesystem(&proc_fs_type); > > + if (register_filesystem(&proc_fs_type)) > > + pr_err("failed to register the filesystem.\n"); > > No, register_filesystem() should do it. +1 David

KASAN: use-after-free Read in dev_expire_timer

2019-01-02 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:28e8c4bc8eb4 Merge tag 'rtc-4.21' of git://git.kernel.org/.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=11eceee740 kernel config: https://syzkaller.appspot.com/x/.config?x=c2ab9708c613a224 da

Re: [PATCH] debugfs: debugfs_use_start/finish do not exist anymore

2019-01-02 Thread Rafael J. Wysocki
On Sun, Dec 30, 2018 at 4:49 AM Sergey Senozhatsky wrote: > > debugfs_use_file_start() and debugfs_use_file_finish() do not exist > since commit c9afbec27089 ("debugfs: purge obsolete SRCU based removal > protection"); tweak debugfs_create_file_unsafe() comment. > > Signed-off-by: Sergey Senozhats

Re: iommu_intel or i915 regression in 4.18, 4.19.12 and drm-tip

2019-01-02 Thread Joonas Lahtinen
Quoting Eric Wong (2018-12-27 13:49:48) > I just got a used Thinkpad X201 (Core i5 M 520, Intel QM57 > chipset) and hit some kernel panics while trying to view > image/animation-intensive stuff in Firefox (X11) unless I use > "iommu_intel=igfx_off". > > With Debian stable backport kernels, "linux-

Re: general protection fault in transparent_hugepage_enabled

2019-01-02 Thread Vlastimil Babka
On 1/2/19 10:42 AM, Dmitry Vyukov wrote: > On Wed, Jan 2, 2019 at 8:42 AM Vlastimil Babka wrote: >> >> On 12/24/18 4:48 PM, syzbot wrote: >>> Hello, >>> >>> syzbot found the following crash on: >>> >>> HEAD commit:6a1d293238c1 Add linux-next specific files for 20181224 >>> git tree: linu

Re: [PATCH] staging: wlan-ng: prism2fw.c: Fix "Possible unnecessary 'out of memory' message" checkpatch.pl warning"

2019-01-02 Thread Dan Carpenter
The subject is too long. On Mon, Dec 24, 2018 at 08:11:28AM -0800, Prathamesh Deshpande wrote: > This patch removes unnecessary out of memory warning > message from wlan-ng prism2fw.c file. > > Signed-off-by: Prathamesh Deshpande > --- > drivers/staging/wlan-ng/prism2fw.c | 1 - > 1 file change

Re: general protection fault in transparent_hugepage_enabled

2019-01-02 Thread Dmitry Vyukov
On Wed, Jan 2, 2019 at 8:42 AM Vlastimil Babka wrote: > > On 12/24/18 4:48 PM, syzbot wrote: > > Hello, > > > > syzbot found the following crash on: > > > > HEAD commit:6a1d293238c1 Add linux-next specific files for 20181224 > > git tree: linux-next > > console output: https://syzkaller.

Re: [PATCH] n_tty: update comment for WAKEUP_CHARS define

2019-01-02 Thread Valentin Vidic
On Wed, Jan 02, 2019 at 07:48:42AM +0100, Jiri Slaby wrote: > On 29. 12. 18, 13:48, Valentin Vidic wrote: > > Give a better descriptions of what WAKEUP_CHARS represents. > > > > Signed-off-by: Valentin Vidic > > I am not a native speaker, but this is much better than the current text. > > Acked

Re: [virtio-dev] RE: [PATCH v1 0/2] Virtio: fix some vq allocation issues

2019-01-02 Thread Cornelia Huck
On Tue, 1 Jan 2019 00:40:19 +0100 Halil Pasic wrote: > On Mon, 31 Dec 2018 06:03:51 + > "Wang, Wei W" wrote: > > > 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. A

RE: [PATCH] net: core: Fix to store new mtu setting in netdevice.

2019-01-02 Thread Murali Krishna Policharla
> Hi Andrew, >Currently net/dsa/slave.c does not have > ndo_change_mtu function. But shortly I will be submitting a separate > patch outside this fix that has ndo_change_mtu function support added to > DSA switch. As part of testing the newly added ndo_change_mtu funct

[PATCH][next] x86/mpx/selftests: fix spelling mistake "succeded" -> "succeeded"

2019-01-02 Thread Colin King
From: Colin Ian King There is a spelling mistake eprintf error message, fix it. Signed-off-by: Colin Ian King --- tools/testing/selftests/x86/mpx-mini-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/x86/mpx-mini-test.c b/tools/testing/selftes

Re: [LKP] bea5b158ff BUG: kernel reboot-without-warning in boot-around-mounting-root stage

2019-01-02 Thread Greg Kroah-Hartman
On Wed, Jan 02, 2019 at 09:15:12AM +0800, kernel test robot wrote: > Greetings, > > 0day kernel testing robot got the below dmesg and the first bad commit is > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > > commit bea5b158ff0da9c7246ff391f754f5f38e34577a > Author

Re: [PATCH v2] kobject: add kernel/uevent_features sysfs file

2019-01-02 Thread Peter Rajnoha
On 12/19/18 10:24 AM, Greg KH wrote: > On Fri, Dec 07, 2018 at 01:28:52PM +0100, Peter Rajnoha wrote: >> On 12/7/18 1:01 PM, Greg KH wrote: >>> On Fri, Dec 07, 2018 at 12:46:07PM +0100, Peter Rajnoha wrote: This patch adds /sys/kernel/uevent_features file which currently lists 'synthargs'

Re: general protection fault in transparent_hugepage_enabled

2019-01-02 Thread Dmitry Vyukov
On Wed, Jan 2, 2019 at 10:47 AM Vlastimil Babka wrote: > > On 1/2/19 10:42 AM, Dmitry Vyukov wrote: > > On Wed, Jan 2, 2019 at 8:42 AM Vlastimil Babka wrote: > >> > >> On 12/24/18 4:48 PM, syzbot wrote: > >>> Hello, > >>> > >>> syzbot found the following crash on: > >>> > >>> HEAD commit:6a1d

Re: [PATCH] [v2] test_rhashtable: remove semaphore usage

2019-01-02 Thread Geert Uytterhoeven
Hi Arnd, On Sun, Dec 16, 2018 at 8:50 PM Arnd Bergmann wrote: > This is one of only two files that initialize a semaphore to a negative > value. We don't really need the two semaphores here at all, but can do > the same thing in more conventional and more effient way, by using a > single waitqueu

Re: KMSAN: kernel-infoleak in copy_page_to_iter (2)

2019-01-02 Thread Alexander Potapenko
On Wed, Dec 19, 2018 at 2:23 PM Jens Axboe wrote: > > On 12/19/18 3:23 AM, Alexander Potapenko wrote: > > On Thu, Sep 13, 2018 at 11:23 AM Alexander Potapenko > > wrote: > >> > >> On Thu, Sep 13, 2018 at 11:18 AM syzbot > >> wrote: > >>> > >>> Hello, > >>> > >>> syzbot found the following crash

Re: WARNING in enqueue_task_dl

2019-01-02 Thread luca abeni
Hi all, (and, happy new year to everyone!) this looks similar to a bug we have seen some time ago (a task switching from SCHED_OTHER to SCHED_DEADLINE while inheriting a deadline from a SCHED_DEADLINE task triggers the warning)... Juri, I think you found a fix for such a bug; has it been committe

Re: [PATCHv3 1/2] mm/memblock: extend the limit inferior of bottom-up after parsing hotplug attr

2019-01-02 Thread Baoquan He
On 01/02/19 at 11:27am, Mike Rapoport wrote: > On Wed, Jan 02, 2019 at 02:47:34PM +0800, Pingfan Liu wrote: > > On Mon, Dec 31, 2018 at 4:40 PM Mike Rapoport wrote: > > > > > > On Fri, Dec 28, 2018 at 11:00:01AM +0800, Pingfan Liu wrote: > > > > The bottom-up allocation style is introduced to cope

Re: [PATCH 09/10] PCI: dwc: Remove Keystone specific dw_pcie_host_ops

2019-01-02 Thread Gustavo Pimentel
Hi, On 19/12/2018 12:42, Kishon Vijay Abraham I wrote: > Now that Keystone started using it's own msi_irq_chip, remove > Keystone specific callback function defined in dw_pcie_host_ops. > > Signed-off-by: Kishon Vijay Abraham I > --- > .../pci/controller/dwc/pcie-designware-host.c | 45 ++--

Re: [PATCH 07/10] PCI: dwc: Add support to use non default msi_irq_chip

2019-01-02 Thread Gustavo Pimentel
Hi, On 19/12/2018 12:42, Kishon Vijay Abraham I wrote: > Platforms using Designware IP uses dw_pci_msi_bottom_irq_chip for > configuring the MSI controller logic within the Designware IP. However > certain platforms like Keystone (K2G) which uses Desingware IP has > it's own MSI controller logic.

Re: [PATCH 10/10] PCI: dwc: Do not write to MSI control registers if the platform doesn't use it

2019-01-02 Thread Gustavo Pimentel
Hi, On 19/12/2018 12:42, Kishon Vijay Abraham I wrote: > Platforms which populate msi_host_init, has it's own MSI controller > logic. Writing to MSI control registers on platforms which doesn't use > Designware's MSI controller logic might have side effects. To > be safe, do not write to MSI contr

KASAN: use-after-free Read in nr_rx_frame

2019-01-02 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:e1ef035d272e Merge tag 'armsoc-defconfig' of git://git.ker.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=166315fd40 kernel config: https://syzkaller.appspot.com/x/.config?x=9c6a26e22579190b da

Re: [PATCH 18/52] virtio-fs: Map cache using the values from the capabilities

2019-01-02 Thread Stefan Hajnoczi
On Tue, Dec 18, 2018 at 06:25:27PM +0100, David Hildenbrand wrote: > On 18.12.18 18:13, Cornelia Huck wrote: > > On Mon, 17 Dec 2018 14:56:38 + > > Stefan Hajnoczi wrote: > > > >> On Mon, Dec 17, 2018 at 11:53:46AM +0100, David Hildenbrand wrote: > >>> On 14.12.18 14:44, Stefan Hajnoczi wrote

Re: general protection fault in transparent_hugepage_enabled

2019-01-02 Thread Vlastimil Babka
On 1/2/19 11:03 AM, Dmitry Vyukov wrote: > On Wed, Jan 2, 2019 at 10:47 AM Vlastimil Babka wrote: >> >> Actually the fix was folded into the patch that caused the bug, and was >> already sent to and merged by Linus, commit >> 7635d9cbe8327e131a1d3d8517dc186c2796ce2e > > > But the email thread yo

Re: [PATCH 08/21] PCI: designware: Share code for dw_pcie_rd/wr_other_conf()

2019-01-02 Thread Gustavo Pimentel
Hi, On 21/12/2018 07:27, Andrey Smirnov wrote: > Default implementation of pcie_rd_other_conf() and > dw_pcie_wd_other_conf() share more than 80% of their code. Move shared > code into a dedicated subroutine and convert pcie_rd_other_conf() and > dw_pcie_wd_other_conf() to use it. No functional ch

[PATCH v7 5/6] rtc: rk808: add RK809 and RK817 support.

2019-01-02 Thread Tony Xie
RK809 and RK817 are power management IC chips for multimedia products. Most of their functions and registers are same, including the rtc. Signed-off-by: Tony Xie Acked-by: Alexandre Belloni --- drivers/rtc/Kconfig | 4 +-- drivers/rtc/rtc-rk808.c | 68 --

[PATCH v7 1/6] mfd: rk808: remove the id_table

2019-01-02 Thread Tony Xie
Remove the id_table because it's not used. Signed-off-by: Tony Xie --- drivers/mfd/rk808.c | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/mfd/rk808.c b/drivers/mfd/rk808.c index 216fbf6adec9..94377782d208 100644 --- a/drivers/mfd/rk808.c +++ b/drivers/mfd/rk808.c @@ -568,14

[PATCH v7 0/6] support a new type of PMIC,including two chips(rk817 and rk809)

2019-01-02 Thread Tony Xie
Most of functions and registers of the rk817 and rk808 are the same, so they can share allmost all codes. Their specifications are as follows: 1) The RK809 and RK809 consist of 5 DCDCs, 9 LDOs and have the same registers for these components except dcdc5. 2) The dcdc5 is a boost dcdc for

[PATCH v7 2/6] mfd: rk808: Add RK817 and RK809 support

2019-01-02 Thread Tony Xie
The RK809 and RK817 are a Power Management IC (PMIC) for multimedia and handheld devices. They contains the following components: - Regulators - RTC - Clocking Both RK809 and RK817 chips are using a similar register map, so we can reuse the RTC and Clocking functionality. Most of regulators

[PATCH v7 3/6] regulator: rk808: add RK809 and RK817 support.

2019-01-02 Thread Tony Xie
Add support for the rk809 and rk817 regulator driver. Their specifications are as follows: 1. The RK809 and RK809 consist of 5 DCDCs, 9 LDOs and have the same registers for these components except dcdc5. 2. The dcdc5 is a boost dcdc for RK817 and is a buck for RK809. 3. T

[PATCH v7 4/6] dt-bindings: mfd: rk808: Add binding information for RK809 and RK817.

2019-01-02 Thread Tony Xie
Add device tree bindings documentation for Rockchip's RK809 & RK817 PMIC. Signed-off-by: Tony Xie Reviewed-by: Rob Herring Acked-for-MFD-by: Lee Jones --- .../devicetree/bindings/mfd/rk808.txt | 44 +++ 1 file changed, 44 insertions(+) diff --git a/Documentation/device

[PATCH v7 6/6] clk: RK808: add RK809 and RK817 support.

2019-01-02 Thread Tony Xie
RK809 and RK817 are power management IC chips for multimedia products. most of their functions and registers are same, including the clkout funciton. Signed-off-by: Tony Xie Acked-by: Stephen Boyd --- drivers/clk/Kconfig | 9 +++--- drivers/clk/clk-rk808.c | 64

Re: [PATCH] rts5208: fix a missing check of the status of sd_init_power

2019-01-02 Thread Dan Carpenter
On Tue, Dec 25, 2018 at 02:33:32AM -0600, Kangjie Lu wrote: > sd_init_power() could fail. The fix inserts a check of its status. If it > fails, returns STATUS_FAIL. > > Signed-off-by: Kangjie Lu > --- > drivers/staging/rts5208/sd.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >

possible deadlock in nr_destroy_socket

2019-01-02 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:e1ef035d272e Merge tag 'armsoc-defconfig' of git://git.ker.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=159934e340 kernel config: https://syzkaller.appspot.com/x/.config?x=9c6a26e22579190b da

KASAN: use-after-free Read in posix_lock_inode

2019-01-02 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:e1ef035d272e Merge tag 'armsoc-defconfig' of git://git.ker.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=16bb4c4b40 kernel config: https://syzkaller.appspot.com/x/.config?x=9c6a26e22579190b da

WARNING in hsr_forward_skb

2019-01-02 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=10abf75740 kernel config: https://syzkaller.appspot.com/x/.config?x=5e7dc790609552d7 da

Re: general protection fault in transparent_hugepage_enabled

2019-01-02 Thread Dmitry Vyukov
On Wed, Jan 2, 2019 at 11:24 AM Vlastimil Babka wrote: > > On 1/2/19 11:03 AM, Dmitry Vyukov wrote: > > On Wed, Jan 2, 2019 at 10:47 AM Vlastimil Babka wrote: > >> > >> Actually the fix was folded into the patch that caused the bug, and was > >> already sent to and merged by Linus, commit > >> 76

Re: [BUG] net: sungem: device driver frees DMA memory with wrong function

2019-01-02 Thread Corentin Labbe
On Fri, Dec 28, 2018 at 12:36:21AM -0800, Christoph Hellwig wrote: > Please try this patch: > The error type change to "DMA-API: gem :00:0f.0: device driver failed to check map error" (I will send patch for fixing this). Note that I used the patch from your just sent DMA series (since the pa

[GIT PULL] Device properties framework fixes for v4.21-rc1

2019-01-02 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ devprop-4.21-rc1-2 with top-most commit f4747b9c68b8864cac32cddc45fdcfdfafb3397c drivers: base: swnode: check if swnode is NULL before dereferencing it on top of commit d8924c0d76aaa52e481

Re: [PATCH v2] rtl8712: add a check for the status of register_netdev

2019-01-02 Thread Dan Carpenter
On Tue, Dec 25, 2018 at 08:39:53PM -0600, Kangjie Lu wrote: > register_netdev() may fail, so let's check its return value, and if it > fails, issue an error message. > > Signed-off-by: Kangjie Lu > --- > drivers/staging/rtl8712/hal_init.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions

KASAN: use-after-free Read in refcount_inc_not_zero_checked

2019-01-02 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:6a1d293238c1 Add linux-next specific files for 20181224 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=100ff080c0 kernel config: https://syzkaller.appspot.com/x/.config?x=af046212050aa3ac dashb

Re: [PATCH] arm/mm/pmsa-v8 : remove unneeded semicolon

2019-01-02 Thread Vladimir Murzin
On 12/27/18 6:26 AM, Peng Hao wrote: > Remove unneeded semicolon. > > Signed-off-by: Peng Hao > --- > arch/arm/mm/pmsa-v8.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/arm/mm/pmsa-v8.c b/arch/arm/mm/pmsa-v8.c > index 617a83d..0d7d5fb 100644 > --- a/arch/arm

KASAN: use-after-free Read in lock_sock_nested

2019-01-02 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:e1ef035d272e Merge tag 'armsoc-defconfig' of git://git.ker.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1674b0bb40 kernel config: https://syzkaller.appspot.com/x/.config?x=9c6a26e22579190b da

general protection fault in __smc_diag_dump

2019-01-02 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:28e8c4bc8eb4 Merge tag 'rtc-4.21' of git://git.kernel.org/.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=10c040d340 kernel config: https://syzkaller.appspot.com/x/.config?x=c2ab9708c613a224 da

KASAN: use-after-free Read in __smc_diag_dump

2019-01-02 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=17fd7ae740 kernel config: https://syzkaller.appspot.com/x/.config?x=5e7dc790609552d7 da

Re: hns3: Compilation of hns3_enet.c is triggered without changes

2019-01-02 Thread John Garry
On 29/12/2018 13:10, Stefan Wahren wrote: Hi, during development i noticed that hns3_enet.c is compiled even without any changes to this file. I think the reason for this is the usage of VERMAGIC_STRING in this file. So it would be nice if you could somehow replace this define. Kind regards

Re: [PATCH 2/2] reset: Add Broadcom STB SW_INIT reset controller driver

2019-01-02 Thread Philipp Zabel
Hi Florian, On Thu, 2018-12-20 at 17:34 -0800, Florian Fainelli wrote: > Add support for resetting blocks through the Linux reset controller > subsystem when reset lines are provided through a SW_INIT-style reset > controller on Broadcom STB SoCs. > > Signed-off-by: Florian Fainelli Thank you,

Re: [RFC PATCH 1/1] PM / Domains: Add multi PM domains support for attach_dev

2019-01-02 Thread Ulf Hansson
On Sat, 29 Dec 2018 at 07:43, Aisheng Dong wrote: > > > From: Ulf Hansson [mailto:ulf.hans...@linaro.org] > > Sent: Friday, December 28, 2018 11:37 PM > > > > On Thu, 27 Dec 2018 at 18:14, Aisheng Dong > > wrote: > > > > > > Currently attach_dev() in power domain infrastructure still does not > >

Re: [PATCH] staging: rts5208: Add a check for ms_read_extra_data

2019-01-02 Thread Dan Carpenter
On Thu, Dec 27, 2018 at 01:35:53PM -0600, Aditya Pakki wrote: > In ms_copy_page, the function ms_read_extra_data may fail for many > reasons. The fix adds a check similar to other invocation to return > error upstream. > > Signed-off-by: Aditya Pakki Yup. It doesn't make sense to use stale "ext

Re: [PATCH 2/2] arm64: dts: meson: libretech-cc: switch eMMC to 1.8v

2019-01-02 Thread Jerome Brunet
On Sat, 2018-12-22 at 18:01 +0100, Martin Blumenstingl wrote: > Hi Jerome, > > On Thu, Dec 20, 2018 at 5:11 PM Jerome Brunet wrote: > > While some 3.3v eMMC 4.0 are available from libretech, the default > > option for the aml-s905x-cc seems to 1.8v 5.0 modules. > nit-pick: > can you please state

WARNING in hsr_addr_subst_dest

2019-01-02 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=14fcd2e740 kernel config: https://syzkaller.appspot.com/x/.config?x=5e7dc790609552d7 da

Re: [PATCH v5 7/9] videobuf2/videobuf2-dma-sg.c: Convert to use vm_insert_range

2019-01-02 Thread Souptick Joarder
On Mon, Dec 24, 2018 at 6:53 PM Souptick Joarder wrote: > > Convert to use vm_insert_range to map range of kernel memory > to user vma. > > Signed-off-by: Souptick Joarder > Reviewed-by: Matthew Wilcox > Acked-by: Marek Szyprowski > Acked-by: Mauro Carvalho Chehab > --- > drivers/media/common

[PATCH v2] x86/gart/kcore: Exclude GART aperture from kcore

2019-01-02 Thread Kairui Song
On machines where the GART aperture is mapped over physical RAM, /proc/kcore contains the GART aperture range and reading it may lead to kernel panic. In 'commit 2a3e83c6f96c ("x86/gart: Exclude GART aperture from vmcore")', a special workaround is applied for vmcore to let /proc/vmcore return zer

Re: [PATCH v3 1/4] clk: core: clarify the check for runtime PM

2019-01-02 Thread Miquel Raynal
Hi Stephen, Stephen Boyd wrote on Thu, 20 Dec 2018 13:09:19 -0800: > Quoting Miquel Raynal (2018-12-19 00:03:31) > > Hi Stephen, > > > > Stephen Boyd wrote on Tue, 18 Dec 2018 16:03:29 > > -0800: > > > > > Quoting Miquel Raynal (2018-12-04 11:24:37) > > > > Currently, the core->dev entry

Re: [PATCH -next] mm: Mark 'stack_vm_area' with __maybe_unused

2019-01-02 Thread Dan Carpenter
On Fri, Dec 28, 2018 at 09:58:04AM +0100, Michal Hocko wrote: > On Fri 28-12-18 02:46:30, YueHaibing wrote: > > Fixes gcc '-Wunused-but-set-variable' warning when > > CONFIG_VMAP_STACK is not set: > > Isn't this warning disabled? I can see the following > # These warnings generated too much noise

WARNING: lock held when returning to user space! (3)

2019-01-02 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=1424673b40 kernel config: https://syzkaller.appspot.com/x/.config?x=53a2f2aa0b1f7606 da

KASAN: use-after-free Read in x25_write_internal

2019-01-02 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:7418e6520f22 isdn: hisax: hfc_pci: Fix a possible concurre.. git tree: net console output: https://syzkaller.appspot.com/x/log.txt?x=137658e740 kernel config: https://syzkaller.appspot.com/x/.config?x=fbee5876573727cd dashboa

Re: [PATCH] Staging: vt6655: Fix camel case of variable

2019-01-02 Thread Dan Carpenter
On Sat, Dec 29, 2018 at 11:59:52PM +0100, Petr Sedlák wrote: > Replace variable uDelayUnit with u_delay_unit. Issue found by > checkpatch. > > Signed-off-by: Petr Sedlák > --- > drivers/staging/vt6655/upc.h | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers

KASAN: slab-out-of-bounds Read in kvm_clear_dirty_log_protect

2019-01-02 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:f12e840c819b Merge branch 'for-linus' of git://git.kernel... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=17b03ee740 kernel config: https://syzkaller.appspot.com/x/.config?x=76d28549be7c27cf da

[PATCH] cpufreq / Documentation: Update cpufreq MAINTAINERS entry

2019-01-02 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Update the MAINTAINERS entry for cpufreq by making it clear that it is not just drivers and adding current documentation records to it. Signed-off-by: Rafael J. Wysocki --- MAINTAINERS |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) Index: linux-pm/MAINTAIN

Re: [PATCH v1 1/2] binderfs: implement "max" mount option

2019-01-02 Thread Christian Brauner
On Wed, Jan 02, 2019 at 12:17:31PM +0300, Dan Carpenter wrote: > On Sun, Dec 23, 2018 at 03:35:49PM +0100, Christian Brauner wrote: > > static inline struct binderfs_info *BINDERFS_I(const struct inode *inode) > > @@ -110,10 +132,16 @@ static int binderfs_binder_device_create(struct inode > > *re

Re: [PATCH v5 7/9] videobuf2/videobuf2-dma-sg.c: Convert to use vm_insert_range

2019-01-02 Thread Russell King - ARM Linux
On Wed, Jan 02, 2019 at 04:23:15PM +0530, Souptick Joarder wrote: > On Mon, Dec 24, 2018 at 6:53 PM Souptick Joarder wrote: > > > > Convert to use vm_insert_range to map range of kernel memory > > to user vma. > > > > Signed-off-by: Souptick Joarder > > Reviewed-by: Matthew Wilcox > > Acked-by:

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

2019-01-02 Thread Michael Ellerman
Masahiro Yamada writes: > 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 i

Re: WARNING: lock held when returning to user space! (3)

2019-01-02 Thread Dmitry Vyukov
On Wed, Jan 2, 2019 at 11:59 AM syzbot wrote: > > 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=1424673b40 > kernel config:

  1   2   3   4   5   6   >