[v3 PATCH] iov_iter: Move unnecessary inclusion of crypto/hash.h

2020-06-11 Thread Herbert Xu
The header file linux/uio.h includes crypto/hash.h which pulls in most of the Crypto API. Since linux/uio.h is used throughout the kernel this means that every tiny bit of change to the Crypto API causes the entire kernel to get rebuilt. This patch fixes this by moving it into lib/iov_iter.c inst

Re: [PATCH v3 1/4] fs, net: Standardize on file_receive helper to move fds across processes

2020-06-11 Thread Kees Cook
On Thu, Jun 11, 2020 at 04:49:37PM -0700, Kees Cook wrote: > I think I prefer the last one. Here's where I am with things: https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git/log/?h=devel/seccomp/addfd/v3.3 If we can agree on the ioctl numbering solution, I can actually send the serie

Re: [PATCH] page_alloc: consider highatomic reserve in wmartermark fast

2020-06-11 Thread Minchan Kim
On Thu, Jun 11, 2020 at 05:54:12PM +0900, Jaewon Kim wrote: > > > On 2020년 06월 10일 10:21, Minchan Kim wrote: > > Hi Jaewon, > > > > On Tue, Jun 09, 2020 at 06:51:28PM +0900, Jaewon Kim wrote: > >> zone_watermark_fast was introduced by commit 48ee5f3696f6 ("mm, > >> page_alloc: shortcut watermark

[PATCH V3 0/2] Fix issues related to register access in IPQ NAND

2020-06-11 Thread Sivaprakash Murugesan
Patch 1: avoids register write to unavailable SFLASHC_BURST_CFG register Patch 2: set BAM mode only if not set by bootloader [V3] * Addressed review comments from Miquel [V2] * As per review comments from Miquèl split the original patch into two addressing independent issues. Sivaprakash M

[PATCH V3 2/2] mtd: rawnand: qcom: set BAM mode only if not set already

2020-06-11 Thread Sivaprakash Murugesan
BAM is DMA controller on QCOM ipq platforms, BAM mode on NAND driver is set by writing BAM_MODE_EN bit on NAND_CTRL register. NAND_CTRL is an operational register and in BAM mode operational registers are read only. So, before writing into NAND_CTRL register check if BAM mode is already enabled b

Re: [PATCH v3] crypto: DRBG - always try to free Jitter RNG instance

2020-06-11 Thread Herbert Xu
On Sun, Jun 07, 2020 at 03:20:26PM +0200, Stephan Müller wrote: > The Jitter RNG is unconditionally allocated as a seed source follwoing > the patch 97f2650e5040. Thus, the instance must always be deallocated. > > Reported-by: syzbot+2e635807decef724a...@syzkaller.appspotmail.com > Fixes: 97f2650e

[PATCH V3 1/2] mtd: rawnand: qcom: avoid write to unavailable register

2020-06-11 Thread Sivaprakash Murugesan
SFLASHC_BURST_CFG is only available on older ipq nand platforms, this register has been removed when the NAND controller is moved as part of qpic controller. avoid register writes to this register on devices which are based on qpic NAND controllers. Fixes: a0637834 (mtd: nand: qcom: support for I

RE: arch/powerpc/kexec/core.c:246:29: sparse: sparse: incorrect type in assignment (different base types)

2020-06-11 Thread Xia, Hui
61d00ed394fcdd488 powerpc/kexec: Move >kexec files into a dedicated subdir. >> date: 7 months ago >> config: powerpc-randconfig-s032-20200611 (attached as .config) >> compiler: powerpc-linux-gcc (GCC) 9.3.0 >> reproduce: >> # apt-get instal

Re: [PATCH] [v2] hwrng: ks-sa - Fix runtime PM imbalance on error

2020-06-11 Thread Herbert Xu
On Thu, May 28, 2020 at 03:21:04PM +0800, Dinghao Liu wrote: > pm_runtime_get_sync() increments the runtime PM usage counter even > the call returns an error code. Thus a pairing decrement is needed > on the error handling path to keep the counter balanced. > > Signed-off-by: Dinghao Liu > --- >

drivers/firmware/broadcom/bcm47xx_sprom.c:563:6: warning: no previous prototype for 'bcm47xx_fill_sprom'

2020-06-11 Thread kernel test robot
Hi Florian, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: b791d1bdf9212d944d749a5c7ff6febdba241771 commit: 5699ad0aaf1091824f22492a708478912c38c7d2 firmware: bcm47xx_nvram: Allow COMPILE_TEST date: 10 months a

Re: [PATCH 1/1] crypto: caam - fix typo

2020-06-11 Thread Herbert Xu
On Thu, Jun 04, 2020 at 04:40:13AM +0200, Heinrich Schuchardt wrote: > %s/suppying/supplying/ > > Signed-off-by: Heinrich Schuchardt > --- > drivers/crypto/caam/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondo

Re: [PATCH v2 1/1] crypto: caam - fix typos

2020-06-11 Thread Herbert Xu
On Thu, Jun 04, 2020 at 12:39:47PM +0200, Heinrich Schuchardt wrote: > Fix CAAM related typos. > > Signed-off-by: Heinrich Schuchardt > --- > v2: > fix additional typos as indicated by Horia > replaces https://lkml.org/lkml/2020/6/3/1129 > --- > drivers/crypto/caam/Kconfig | 2 +- >

Re: [PATCH] dt-bindings: Remove redundant 'maxItems'

2020-06-11 Thread Thierry Reding
On Thu, Jun 11, 2020 at 01:47:38PM -0600, Rob Herring wrote: > There's no need to specify 'maxItems' with the same value as the number > of entries in 'items'. A meta-schema update will catch future cases. > > Cc: Stephen Boyd > Cc: Shawn Guo > Cc: Sascha Hauer > Cc: Thierry Reding > Cc: Anson

Re: [PATCH] ACPI: sysfs: Fix pm_profile_attr type

2020-06-11 Thread Nathan Chancellor
On Thu, Jun 11, 2020 at 11:17:14PM -0700, Kees Cook wrote: > On Thu, Jun 11, 2020 at 09:51:50PM -0700, Nathan Chancellor wrote: > > When running a kernel with Clang's Control Flow Integrity implemented, > > there is a violation that happens when accessing > > /sys/firmware/acpi/pm_profile: > > > >

Re: [PATCH] 9p/trans_fd: Fix concurrency del of req_list in p9_fd_cancelled/p9_read_work

2020-06-11 Thread Dominique Martinet
wanghai (M) wrote on Fri, Jun 12, 2020: > You are right, I got a syzkaller bug. > > "p9_read_work+0x7c3/0xd90" points to list_del(&m->rreq->req_list); > > [ 62.733598] kasan: CONFIG_KASAN_INLINE enabled > [ 62.734484] kasan: GPF could be caused by NULL-ptr deref or user memory > access > [

Re: [PATCH] xdp_rxq_info_user: Replace malloc/memset w/calloc

2020-06-11 Thread Jesper Dangaard Brouer
On Thu, 11 Jun 2020 20:36:40 -0400 Gaurav Singh wrote: > Replace malloc/memset with calloc > > Fixes: 0fca931a6f21 ("samples/bpf: program demonstrating access to > xdp_rxq_info") > Signed-off-by: Gaurav Singh Above is the correct use of Fixes + Signed-off-by. Now you need to update/improve t

Re: Re: [PATCH v4 0/2] Recommend denylist/allowlist instead of blacklist/whitelist

2020-06-11 Thread SeongJae Park
On Thu, 11 Jun 2020 03:43:32 -0700 Joe Perches wrote: > On Thu, 2020-06-11 at 10:32 +0200, Jiri Slaby wrote: > > On 11. 06. 20, 10:30, SeongJae Park wrote: > > > For example, as it seems at least you and I agree on the f-word to hug > > > replacement, we could add ``fuck||hug`` in the `deprecated

Re: [PATCH 0/3] Bluetooth: btmrvl_sdio: Refactor remote wakeup support

2020-06-11 Thread Marcel Holtmann
Hi Abhishek, > This patch series is refactoring the btmrvl driver to add better support > for controlling remote wakeup during suspend. Previously, the hci device > was getting created as /sys/devices/virtual/bluetooth/hci0 and there > wasn't a way to control wakeup for the device from userspace.

Re: [LKP] [sched/fair] 070f5e860e: reaim.jobs_per_min -10.5% regression

2020-06-11 Thread Xing Zhengjun
Hi Vincent, We test the regression still existed in v5.7, do you have time to look at it? Thanks. = tbox_group/testcase/rootfs/kconfig/compiler/runtime/nr_task/debug-setup/test/cpufreq_governor/ucode: l

KVM guest freeze on Linux > 4.19

2020-06-11 Thread Garry Filakhtov
Good time of the day, Hope you all are staying safe during these challenging times. I have been struggling with KVM guest freezes after the upgrade from 4.19 LTS to 5.4 LTS. Searching through the internet lead me to https://www.reddit.com/r/VFIO/comments/b1xx0g/windows_10_qemukvm_freezes_after_5

[PATCH] IB/mad: fix possible memory leak in ib_mad_post_receive_mads()

2020-06-11 Thread Guo Fan
From: Fan Guo If ib_dma_mapping_error() returns non-zero value, ib_mad_post_receive_mads will jump out of loops and return -ENOMEM without freeing mad_priv. We fix this memory-leak problem by freeing mad_priv in this case. Fixes: 2c34e68f4261 ("IB/mad: Check and handle potential DMA mapping erro

net/sunrpc/svcsock.c:226:5: warning: "ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE" is not defined

2020-06-11 Thread kernel test robot
Hi Chuck, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: b791d1bdf9212d944d749a5c7ff6febdba241771 commit: ca07eda33e01eafa7a26ec06974f7eacee6a89c8 SUNRPC: Refactor svc_recvfrom() date: 3 weeks ago config: i386-ran

[RFC PATCH] hugetlb: hugetlbfs_file_operations can be static

2020-06-11 Thread kernel test robot
Signed-off-by: kernel test robot --- inode.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/hugetlbfs/inode.c b/fs/hugetlbfs/inode.c index 5c0c50a88c84b..98d044be8a5cf 100644 --- a/fs/hugetlbfs/inode.c +++ b/fs/hugetlbfs/inode.c @@ -41,7 +41,7 @@ static const struc

[PATCH] habanalabs: increase GAUDI QMAN ARB WDT timeout

2020-06-11 Thread Oded Gabbay
The current timeout is too low for some of the workloads and we see false errors as a result. Signed-off-by: Oded Gabbay --- drivers/misc/habanalabs/gaudi/gaudi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/habanalabs/gaudi/gaudi.c b/drivers/misc/habanalabs/

Re: [RFC] MFD's relationship with Device Tree (OF)

2020-06-11 Thread Lee Jones
On Thu, 11 Jun 2020, Frank Rowand wrote: > Please add me to the distribution list for future versions of this. The solution patch is already on v2. https://lore.kernel.org/lkml/20200611191002.2256570-1-lee.jo...@linaro.org/ I'll bounce it to you. -- Lee Jones [李琼斯] Senior Technical Lead - Dev

[v2] drm/msm/dpu: request for display color blocks based on hw catalog entry

2020-06-11 Thread Krishna Manikandan
From: Kalyan Thota Request for color processing blocks only if they are available in the display hw catalog and they are sufficient in number for the selection. Changes in v2: - Include Fixes tag in commit message (Rob Clark) - Adding the Tested by tag as there are no code

RE: [PATCH] nios2: enable HAVE_COPY_THREAD_TLS, switch to kernel_clone_args

2020-06-11 Thread Tan, Ley Foon
> -Original Message- > From: Christian Brauner > Sent: Sunday, May 24, 2020 6:06 PM > To: Tan, Ley Foon ; Arnd Bergmann > > Cc: linux-kernel@vger.kernel.org; Thomas Gleixner ; > Sebastian Andrzej Siewior ; Christian Brauner > > Subject: [PATCH] nios2: enable HAVE_COPY_THREAD_TLS, swit

Re: [PATCH v2 1/7] Bluetooth: Add definitions for advertisement monitor features

2020-06-11 Thread Miao-chen Chou
Hi Marcel, Thanks for reviewing. Please see v3 for the update. I am trying to settle down the name of Add Advertisement Pattern Monitor command with Luiz on the other thread. I will post the update here once it is sorted out. Regards, Miao On Wed, Jun 10, 2020 at 10:57 AM Marcel Holtmann wrote:

RE: [PATCH] nios2: signal: Mark expected switch fall-through

2020-06-11 Thread Tan, Ley Foon
> -Original Message- > From: Gustavo A. R. Silva > Sent: Tuesday, June 9, 2020 1:37 AM > To: Tan, Ley Foon ; Christian Brauner > > Cc: linux-kernel@vger.kernel.org; Gustavo A. R. Silva > > Subject: [PATCH] nios2: signal: Mark expected switch fall-through > > Mark switch cases where w

Re: [PATCH] ACPI: sysfs: Fix pm_profile_attr type

2020-06-11 Thread Kees Cook
On Thu, Jun 11, 2020 at 09:51:50PM -0700, Nathan Chancellor wrote: > When running a kernel with Clang's Control Flow Integrity implemented, > there is a violation that happens when accessing > /sys/firmware/acpi/pm_profile: > > $ cat /sys/firmware/acpi/pm_profile > 0 > > $ dmesg > ... > [ 17.35

[PATCH v3 4/7] Bluetooth: Add handler of MGMT_OP_REMOVE_ADV_MONITOR

2020-06-11 Thread Miao-chen Chou
This adds the request handler of MGMT_OP_REMOVE_ADV_MONITOR command. Note that the controller-based monitoring is not yet in place. This removes the internal monitor(s) without sending HCI traffic, so the request returns immediately. The following test was performed. - Issue btmgmt advmon-remove w

[PATCH v3 1/7] Bluetooth: Add definitions for advertisement monitor features

2020-06-11 Thread Miao-chen Chou
This adds support for Advertisement Monitor API. Here are the commands and events added. - Read Advertisement Monitor Feature command - Add Advertisement Pattern Monitor command - Remove Advertisement Monitor command - Advertisement Monitor Added event - Advertisement Monitor Removed event Signed-

[PATCH v3 5/7] Bluetooth: Notify adv monitor added event

2020-06-11 Thread Miao-chen Chou
This notifies management sockets on MGMT_EV_ADV_MONITOR_ADDED event. The following test was performed. - Start two btmgmt consoles, issue a btmgmt advmon-add command on one console and observe a MGMT_EV_ADV_MONITOR_ADDED event on the other Signed-off-by: Miao-chen Chou --- Changes in v3: - Conv

[PATCH v3 2/7] Bluetooth: Add handler of MGMT_OP_READ_ADV_MONITOR_FEATURES

2020-06-11 Thread Miao-chen Chou
This adds the request handler of MGMT_OP_READ_ADV_MONITOR_FEATURES command. Since the controller-based monitoring is not yet in place, this report only the supported features but not the enabled features. The following test was performed. - Issuing btmgmt advmon-features. Signed-off-by: Miao-chen

[PATCH v3 6/7] Bluetooth: Notify adv monitor removed event

2020-06-11 Thread Miao-chen Chou
This notifies management sockets on MGMT_EV_ADV_MONITOR_REMOVED event. The following test was performed. - Start two btmgmt consoles, issue a btmgmt advmon-remove command on one console and observe a MGMT_EV_ADV_MONITOR_REMOVED event on the other. Signed-off-by: Miao-chen Chou --- Changes in v3

[PATCH v3 7/7] Bluetooth: Update background scan and report device based on advertisement monitors

2020-06-11 Thread Miao-chen Chou
This calls hci_update_background_scan() when there is any update on the advertisement monitors. If there is at least one advertisement monitor, the filtering policy of scan parameters should be 0x00. This also reports device found mgmt events if there is at least one monitor. The following cases w

RE: [PATCH] ASoC: SOF: Intel: hda: unsolicited RIRB response

2020-06-11 Thread Lu, Brent
> > Now I noticed that the legacy driver already addressed it recently via commit > 6d011d5057ff > ALSA: hda: Clear RIRB status before reading WP > > We should have checked SOF at the same time, too... > > > thanks, > > Takashi Hi Takashi-san, Yes you are correct. I tested Chrome v5.4 on

[PATCH v3 3/7] Bluetooth: Add handler of MGMT_OP_ADD_ADV_PATTERNS_MONITOR

2020-06-11 Thread Miao-chen Chou
This adds the request handler of MGMT_OP_ADD_ADV_PATTERNS_MONITOR command. Note that the controller-based monitoring is not yet in place. This tracks the content of the monitor without sending HCI traffic, so the request returns immediately. The following manual test was performed. - Issue btmgmt

[PATCH] mptcp: use list_first_entry_or_null

2020-06-11 Thread Geliang Tang
Use list_first_entry_or_null to simplify the code. Signed-off-by: Geliang Tang --- net/mptcp/protocol.h | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/net/mptcp/protocol.h b/net/mptcp/protocol.h index 86d265500cf6..55c65abcad64 100644 --- a/net/mptcp/protocol.h +++ b/net

[PATCH v2] ASoC: SOF: Intel: hda: unsolicited RIRB response

2020-06-11 Thread Brent Lu
Port commit 6d011d5057ff ("ALSA: hda: Clear RIRB status before reading WP") from legacy HDA driver to fix the get response timeout issue. Current SOF driver does not suffer from this issue because sync write is enabled in hda_init. The issue will come back if the sync write is disabled for some rea

drivers/media/platform/atmel/atmel-sama5d2-isc.c:323:34: warning: unused variable 'atmel_isc_of_match'

2020-06-11 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: b791d1bdf9212d944d749a5c7ff6febdba241771 commit: 0a0e265515db7619d0da9331d74245d02c741f07 media: atmel: atmel-isc: split driver into driver base and isc date: 12 months ago config: x86_64-randconfig-a012-2

drivers/net/can/kvaser_pciefd.c:801:17: sparse: sparse: cast removes address space '' of expression

2020-06-11 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: b791d1bdf9212d944d749a5c7ff6febdba241771 commit: 26ad340e582d3d5958ed8456a1911d79cfb567b4 can: kvaser_pciefd: Add driver for Kvaser PCIEcan devices date: 11 months ago config: m68k-randconfig-s032-20200612

Re: [PATCH] i2c: imx: Fix external abort on early interrupt

2020-06-11 Thread Oleksij Rempel
Hi Krzysztof, thank you for your patch. On Wed, Jun 10, 2020 at 03:46:42PM +0200, Krzysztof Kozlowski wrote: > If interrupt comes early (could be triggered with CONFIG_DEBUG_SHIRQ), > the i2c_imx_isr() will access registers before the I2C hardware is > initialized. This leads to external abort o

Re: [PATCH 4.19 24/25] uprobes: ensure that uprobe->offset and ->ref_ctr_offset are properly aligned

2020-06-11 Thread Greg Kroah-Hartman
On Thu, Jun 11, 2020 at 06:51:17PM +0200, Oleg Nesterov wrote: > On 06/10, Greg Kroah-Hartman wrote: > > > > > Greg, please let me know if you want me to send the patches for > > > 4.9/4.14/4.19. > > > > Please do. I tried to backport it to those trees, and it seems to > > build/boot/run, but I w

[GIT PULL] xen: branch for v5.8-rc1

2020-06-11 Thread Juergen Gross
Linus, Please git pull the following tag: git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git for-linus-5.8b-rc1-tag xen: branch for v5.8-rc1 It contains the following patches: - several smaller cleanups - a fix for a Xen guest regression with CPU offlining - a small fix in the xen p

[PATCH] usb: replace hardcoded maximum usb string length by definition

2020-06-11 Thread Macpaul Lin
Replace hardcoded maximum usb string length (126 bytes) by definition "MAX_USB_STRING_LEN". Signed-off-by: Macpaul Lin --- drivers/usb/gadget/composite.c |4 ++-- drivers/usb/gadget/configfs.c |3 ++- drivers/usb/gadget/usbstring.c |5 +++-- include/linux/usb.h|2 ++

Re: [PATCH v2 01/14] Documentation: PCI: Add specification for the *PCI NTB* function device

2020-06-11 Thread Kishon Vijay Abraham I
Hi Matthew, On 6/11/2020 8:43 PM, Matthew Wilcox wrote: > On Thu, Jun 11, 2020 at 06:35:12PM +0530, Kishon Vijay Abraham I wrote: >> +++ b/Documentation/PCI/endpoint/pci-ntb-function.rst >> @@ -0,0 +1,344 @@ >> +.. SPDX-License-Identifier: GPL-2.0 >> + >> += >> +PCI NTB Function >>

Re: [PATCH RFC] x86/entry: Ask RCU if it needs rcu_irq_{enter,exit}()

2020-06-11 Thread Andy Lutomirski
On Thu, Jun 11, 2020 at 4:53 PM Paul E. McKenney wrote: > > RCU needs to detect when one if its interrupt handlers interrupted an idle > state, where an idle state is either the idle loop itself or nohz_full > userspace execution. When a CPU has been interrupted from one of these > idle states, R

[PATCH] mptcp: unify MPTCP_PM_MAX_ADDR and MPTCP_PM_ADDR_MAX

2020-06-11 Thread Geliang Tang
Unify these two duplicate macros into 8. Signed-off-by: Geliang Tang --- net/mptcp/pm_netlink.c | 2 -- net/mptcp/protocol.h | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/net/mptcp/pm_netlink.c b/net/mptcp/pm_netlink.c index b78edf237ba0..b694f13caba8 100644 --- a/net/m

Re: [RFC] dt-bindings: mailbox: add doorbell support to ARM MHU

2020-06-11 Thread Viresh Kumar
On 11-06-20, 19:34, Jassi Brar wrote: > In the first post in this thread, Viresh lamented that mailbox > introduces "a few ms" delay in the scheduler path. > Your own tests show that is certainly not the case -- average is the > same as proposed virtual channels 50-100us, the best case is 3us vs >

RE: [PATCH v1 01/11] perf/x86/core: Support KVM to assign a dedicated counter for guest PEBS

2020-06-11 Thread Kang, Luwei
> > > Suppose your KVM thing claims counter 0/2 (ICL/SKL) for some random > > > PEBS event, and then the host wants to use PREC_DIST.. Then one of > > > them will be screwed for no reason what so ever. > > > > > > > The multiplexing should be triggered. > > > > For host, if both user A and user B r

[tip:locking/urgent] BUILD SUCCESS 37f8173dd84936ea78000ed1cad24f8b18d48ebb

2020-06-11 Thread kernel test robot
rhel-kconfig powerpc allmodconfig powerpc allnoconfig powerpc defconfig i386 randconfig-a006-20200611 i386 randconfig-a002-20200611 i386 randconfig-a001

Re: [PATCH v8 5/7] iommu/arm-smmu: Add implementation for the adreno GPU SMMU

2020-06-11 Thread kernel test robot
Hi Jordan, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on next-20200611] [cannot apply to iommu/next robh/for-next arm/for-next keystone/next rockchip/for-next arm64/for-next/core shawnguo/for-next soc/for-next v5.7] [if your

Re: [PATCH v4] powerpc/fadump: fix race between pstore write and fadump crash trigger

2020-06-11 Thread kernel test robot
Hi Sourabh, Thank you for the patch! Yet something to improve: [auto build test ERROR on powerpc/next] [also build test ERROR on linus/master linux/master v5.7 next-20200611] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest

Re: arch/powerpc/kexec/core.c:246:29: sparse: sparse: incorrect type in assignment (different base types)

2020-06-11 Thread Christophe Leroy
: 7 months ago config: powerpc-randconfig-s032-20200611 (attached as .config) compiler: powerpc-linux-gcc (GCC) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.1-250-g42323db3-dirty git checkout 793b08e2efff3ec020c5c5861d00ed394fcdd488 # save the

Re: [Linaro-mm-sig] [PATCH 04/18] dma-fence: prime lockdep annotations

2020-06-11 Thread Daniel Vetter
On Fri, Jun 12, 2020 at 1:35 AM Felix Kuehling wrote: > > Am 2020-06-11 um 10:15 a.m. schrieb Jason Gunthorpe: > > On Thu, Jun 11, 2020 at 10:34:30AM +0200, Daniel Vetter wrote: > >>> I still have my doubts about allowing fence waiting from within shrinkers. > >>> IMO ideally they should use a try

drivers/net/ethernet/brocade/bna/bfa_ioc.c:1905:24: sparse: sparse: incorrect type in argument 1 (different base types)

2020-06-11 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: b791d1bdf9212d944d749a5c7ff6febdba241771 commit: 05933aac7b11911955de307a329dc2a7a14b7bd0 ia64: remove now unused machvec indirections date: 10 months ago config: ia64-randconfig-s031-20200612 (attached as

Re: Regression bisected to f2f84b05e02b (bug: consolidate warn_slowpath_fmt() usage)

2020-06-11 Thread Michael Cree
On Thu, Jun 11, 2020 at 09:23:52PM -0700, Matt Turner wrote: > Since I noticed earlier that using maxcpus=1 on a 2-CPU system > prevented the system from hanging, I tried disabling CONFIG_SMP on my > 1-CPU system as well. In doing so, I discovered that the RCU torture > module (RCU_TORTURE_TEST) tr

[PATCH] drm/msm: fix potential memleak issue

2020-06-11 Thread Bernard Zhao
Function msm_gpu_crashstate_capture maybe called for several times, and then the state->bos is a potential memleak. Also the state->pos maybe alloc failed, but now without any handle. This change is to fix some potential memleak and add error handle when alloc failed. Signed-off-by: Bernard Zhao

Re: Regression bisected to f2f84b05e02b (bug: consolidate warn_slowpath_fmt() usage)

2020-06-11 Thread Kees Cook
On Fri, Jun 12, 2020 at 04:47:57PM +1200, Michael Cree wrote: > On Thu, Jun 11, 2020 at 09:23:52PM -0700, Matt Turner wrote: > > Since I noticed earlier that using maxcpus=1 on a 2-CPU system > > prevented the system from hanging, I tried disabling CONFIG_SMP on my > > 1-CPU system as well. In doin

Re: [RFC PATCH v2 3/3] ASoC: fsl_asrc_dma: Reuse the dma channel if available in Back-End

2020-06-11 Thread Nicolin Chen
On Fri, Jun 12, 2020 at 10:17:08AM +0800, Shengjiu Wang wrote: > > > diff --git a/sound/soc/fsl/fsl_asrc_common.h > > > b/sound/soc/fsl/fsl_asrc_common.h > > > + * @req_dma_chan_dev_to_dev: flag for release dev_to_dev chan > > > > Since we only have dma_request call for back-end only: > > + * @r

[RFC PATCH] watchdog: f71808e_wdt: fintek_variants[] can be static

2020-06-11 Thread kernel test robot
Signed-off-by: kernel test robot --- f71808e_wdt.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog/f71808e_wdt.c b/drivers/watchdog/f71808e_wdt.c index c866d05e8788b..849620041c0ef 100644 --- a/drivers/watchdog/f71808e_wdt.c +++ b/drivers/watchdog/f71808e

Re: [PATCH v1 8/8] watchdog: f71808e_wdt: rename variant-independent identifiers appropriately

2020-06-11 Thread kernel test robot
Hi Ahmad, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on hwmon/hwmon-next] [also build test WARNING on linus/master linux/master v5.7 next-20200611] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also

[PATCH] ACPI: sysfs: Fix pm_profile_attr type

2020-06-11 Thread Nathan Chancellor
When running a kernel with Clang's Control Flow Integrity implemented, there is a violation that happens when accessing /sys/firmware/acpi/pm_profile: $ cat /sys/firmware/acpi/pm_profile 0 $ dmesg ... [ 17.352564] [ cut here ] [ 17.352568] CFI failure (target: acpi_sho

[PATCH 2/2] gpiolib: cdev: fix file comment

2020-06-11 Thread Kent Gibson
Replace file comment carried over from gpiolib.c with one more appropriate for gpiolib-cdev.c. Signed-off-by: Kent Gibson --- drivers/gpio/gpiolib-cdev.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/gpio/gpiolib-cdev.c b/drivers/gpio/gpiolib-cdev.c index 580

[PATCH 1/2] gpiolib: cdev: fix -Wmissing-prototypes warnings

2020-06-11 Thread Kent Gibson
Fix -Wmissing-prototypes warnings by including module's header. Fixes: f6d984418ffd (gpiolib: split character device into gpiolib-cdev) Reported-by: kernel test robot Signed-off-by: Kent Gibson --- drivers/gpio/gpiolib-cdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpio/gpio

[PATCH 0/2] gpiolib: cdev: fixes for split from gpiolib.c

2020-06-11 Thread Kent Gibson
A couple of minor fixes for the recent split from gpiolib.c: The first fixes a couple of W=1 build warnings by including the module's own header. The second fixes the file comment. This was in v3 of the split patch, but v2 got merged... Kent Gibson (2): gpiolib: cdev: fix -Wmissing-prototypes w

Re: [PATCH] extend IMA boot_aggregate with kernel measurements

2020-06-11 Thread kernel test robot
Hi Maurizio, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on integrity/next-integrity] [also build test WARNING on next-20200611] [cannot apply to v5.7] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we

Re: [PATCH 4/6] spi: altera: use regmap instead of direct mmio register access

2020-06-11 Thread Xu Yilun
On Thu, Jun 11, 2020 at 12:02:11PM +0100, Mark Brown wrote: > On Thu, Jun 11, 2020 at 11:25:09AM +0800, Xu Yilun wrote: > > > + if (pdata && pdata->use_parent_regmap) { > > + hw->regmap = dev_get_regmap(pdev->dev.parent, NULL); > > + if (!hw->regmap) { > > +

Re: [PATCH stable 4.9 00/21] Unbreak 32-bit DVB applications on 64-bit kernels

2020-06-11 Thread Florian Fainelli
On 6/5/2020 9:24 AM, Florian Fainelli wrote: > Hi all, > > This long patch series was motivated by backporting Jaedon's changes > which add a proper ioctl compatibility layer for 32-bit applications > running on 64-bit kernels. We have a number of Android TV-based products > currently running o

[PATCH stable 4.9] arm64: entry: Place an SB sequence following an ERET instruction

2020-06-11 Thread Florian Fainelli
From: Will Deacon commit 679db70801da9fda91d26caf13bf5b5ccc74e8e8 upstream Some CPUs can speculate past an ERET instruction and potentially perform speculative accesses to memory before processing the exception return. Since the register state is often controlled by a lower privilege level at th

[tip:ras/core] BUILD SUCCESS 7ccddc4613db446dc3cbb69a3763ba60ec651d13

2020-06-11 Thread kernel test robot
powerpc defconfig i386 randconfig-a006-20200611 i386 randconfig-a002-20200611 i386 randconfig-a001-20200611 i386 randconfig-a004-20200611 i386 randconfig-a005-20200611 i386

[v2 PATCH] printk: Make linux/printk.h self-contained

2020-06-11 Thread Herbert Xu
As it stands if you include printk.h by itself it will fail to compile because it requires definitions from ratelimit.h. However, simply including ratelimit.h from printk.h does not work due to inclusion loops involving sched.h and kernel.h. This patch solves this by moving bits from ratelimit.h

[tip:x86/entry] BUILD SUCCESS f0178fc01fe46bab6a95415f5647d1a74efcad1b

2020-06-11 Thread kernel test robot
defconfig i386 randconfig-a006-20200611 i386 randconfig-a002-20200611 i386 randconfig-a001-20200611 i386 randconfig-a004-20200611 i386 randconfig-a005-20200611 i386 randconfig-a003-20200611

[tip:master] BUILD SUCCESS 8a7fd399f1a0bcf4943245dc87d75964546596a8

2020-06-11 Thread kernel test robot
ig powerpc allnoconfig x86_64 randconfig-a015-20200611 x86_64 randconfig-a011-20200611 x86_64 randconfig-a016-20200611 x86_64 randconfig-a012-20200611 x86_64 randconfig-a014-20200611 x86_64 randconfig-a013-202

[tip:locking/kcsan] BUILD SUCCESS 1f44328ea24c9de368a3cfe5cc0e110b949afb2e

2020-06-11 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git locking/kcsan branch HEAD: 1f44328ea24c9de368a3cfe5cc0e110b949afb2e compiler_types.h, kasan: Use __SANITIZE_ADDRESS__ instead of CONFIG_KASAN to decide inlining elapsed time: 628m configs tested: 96 configs skipped: 1 T

sound/soc/fsl/fsl-asoc-card.c:684:45: sparse: sparse: incorrect type in argument 3 (different base types)

2020-06-11 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: b791d1bdf9212d944d749a5c7ff6febdba241771 commit: 859e364302c510cfdd9abda13a3c4c1d1bc68c57 ASoC: fsl-asoc-card: Support new property fsl, asrc-format date: 7 weeks ago config: arm-randconfig-s032-20200612 (

Re: [PATCH v8 4/7] iommu/arm-smmu: Add a pointer to the attached device to smmu_domain

2020-06-11 Thread kernel test robot
Hi Jordan, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v5.7 next-20200611] [cannot apply to iommu/next robh/for-next arm/for-next keystone/next rockchip/for-next arm64/for-next/core shawnguo/for-next soc/for-next] [if your

Re: [RFC PATCH 2/5] scsi: ufs: Add UFS-feature layer

2020-06-11 Thread Bart Van Assche
On 2020-06-11 19:27, Daejun Park wrote: >>> @@ -2525,6 +2525,8 @@ static int ufshcd_queuecommand(struct Scsi_Host >>> *host, struct scsi_cmnd *cmd) >>> >>>ufshcd_comp_scsi_upiu(hba, lrbp); >>> >>> + ufsf_ops_prep_fn(hba, lrbp); >>> + >>>err = ufshcd_map_sg(hba, lrbp); >>>if (err)

Re: Regression bisected to f2f84b05e02b (bug: consolidate warn_slowpath_fmt() usage)

2020-06-11 Thread Matt Turner
On Tue, Jun 2, 2020 at 11:03 AM Kees Cook wrote: > > On Mon, Jun 01, 2020 at 07:48:04PM -0700, Matt Turner wrote: > > I bisected a regression on alpha to f2f84b05e02b (bug: consolidate > > warn_slowpath_fmt() usage) which looks totally innocuous. > > > > Reverting it on master confirms that it som

Re: [PATCH 1/3] usb: typec: Add QCOM PMIC typec detection driver

2020-06-11 Thread Wesley Cheng
On 6/10/2020 12:37 PM, Bjorn Andersson wrote: >> along with USB_BASE @ 0x1300, is it ok to allow this driver to access >> registers outside of its 'reg' base (0x1500 according to the DT >> bindings)? >> > > Depending on how entangled a future driver for the charger blocks would > be one could e

Re: [PATCH 1/3] usb: typec: Add QCOM PMIC typec detection driver

2020-06-11 Thread Wesley Cheng
On 6/9/2020 7:27 PM, Jun Li wrote: >> +static int qcom_pmic_typec_probe(struct platform_device *pdev) >> +{ >> + struct device *dev = &pdev->dev; >> + struct qcom_pmic_typec *qcom_usb; >> + struct typec_capability *cap; >> + const char *buf; >> + int ret, irq, role;

Re: [PATCH 1/3] usb: typec: Add QCOM PMIC typec detection driver

2020-06-11 Thread Wesley Cheng
On 6/9/2020 2:20 PM, Randy Dunlap wrote: > On 6/9/20 1:58 PM, Wesley Cheng wrote: >> diff --git a/drivers/usb/typec/Kconfig b/drivers/usb/typec/Kconfig >> index 559dd06..8de2520 100644 >> --- a/drivers/usb/typec/Kconfig >> +++ b/drivers/usb/typec/Kconfig >> @@ -73,6 +73,17 @@ config TYPEC_TPS659

Re: [PATCH] x86/entry: Treat BUG/WARN as NMI-like entries

2020-06-11 Thread Andy Lutomirski
On Thu, Jun 11, 2020 at 8:26 PM Andy Lutomirski wrote: > > If we BUG or WARN in a funny RCU context, we cleverly optimize the > BUG/WARN using the ud2 hack, which takes us through the > idtentry_enter...() paths, which might helpfully WARN that the RCU > context is invalid, which results in infini

linux-next: Fixes tag needs some work in the drm-msm tree

2020-06-11 Thread Stephen Rothwell
Hi all, In commit 5fddd4f5db87 ("drm/msm/dpu: request for display color blocks based on hw catalog entry") Fixes tag Fixes: e47616df008b ("drm/msm/dpu: add support for color processing has these problem(s): - Subject has leading but no trailing parentheses - Subject has leading but n

Re: [RFC] MFD's relationship with Device Tree (OF)

2020-06-11 Thread Frank Rowand
Hi Lee, On 2020-06-09 06:01, Lee Jones wrote: > Good morning, > > After a number of reports/queries surrounding a known long-term issue > in the MFD core, including the submission of a couple of attempted > solutions, I've decided to finally tackle this one myself. > > Currently, when a child pl

linux-next: Fixes tag needs some work in the ext4 tree

2020-06-11 Thread Stephen Rothwell
Hi all, In commit 811985365378 ("ext4: mballoc: Use this_cpu_read instead of this_cpu_ptr") Fixes tag Fixes: 42f56b7a4a7d ("ext4: mballoc: introduce pcpu seqcnt for freeing PA has these problem(s): - Subject has leading but no trailing parentheses - Subject has leading but no trailing

Re: [RFC] MFD's relationship with Device Tree (OF)

2020-06-11 Thread Frank Rowand
Hi Lee, Please add me to the distribution list for future versions of this. -Frank On 2020-06-09 06:01, Lee Jones wrote: > Good morning, > > After a number of reports/queries surrounding a known long-term issue > in the MFD core, including the submission of a couple of attempted > solutions, I'

[PATCH v6 3/3] regulator: Add driver for cros-ec-regulator

2020-06-11 Thread Pi-Hsun Shih
Add driver for cros-ec-regulator, representing a voltage regulator that is connected and controlled by ChromeOS EC, and is controlled by kernel with EC host commands. Signed-off-by: Pi-Hsun Shih Reviewed-by: Prashant Malani Reviewed-by: Enric Balletbo i Serra --- Changes from v5: * Move introdu

[PATCH v6 0/3] Add support for voltage regulator on ChromeOS EC.

2020-06-11 Thread Pi-Hsun Shih
Add support for controlling voltage regulator that is connected and controlled by ChromeOS EC. Kernel controls these regulators through newly added EC host commands. Changes from v5: * Move new host command to a separate patch. * Use devm_regulator_register. * Address review comments. Changes fro

[PATCH v6 1/3] dt-bindings: regulator: Add DT binding for cros-ec-regulator

2020-06-11 Thread Pi-Hsun Shih
Add DT binding documentation for cros-ec-regulator, a voltage regulator controlled by ChromeOS EC. Signed-off-by: Pi-Hsun Shih Reviewed-by: Enric Balletbo i Serra --- Changes from v5: * No change Changes from v4: * Change compatible name from regulator-cros-ec to cros-ec-regulator. Changes fro

[PATCH v6 2/3] platform/chrome: cros_ec: Add command for regulator control.

2020-06-11 Thread Pi-Hsun Shih
Add host commands for voltage regulator control through ChromeOS EC. Signed-off-by: Pi-Hsun Shih Reviewed-by: Enric Balletbo i Serra --- Changes from v5: * Extract into a separate patch. --- drivers/platform/chrome/cros_ec_trace.c | 5 ++ .../linux/platform_data/cros_ec_commands.h| 8

Re: [PATCH -tip v3 1/2] kcov: Make runtime functions noinstr-compatible

2020-06-11 Thread Dmitry Vyukov
On Thu, Jun 11, 2020 at 11:55 PM Peter Zijlstra wrote: > > On Mon, Jun 08, 2020 at 01:01:08PM +0200, Peter Zijlstra wrote: > > On Mon, Jun 08, 2020 at 09:57:39AM +0200, Dmitry Vyukov wrote: > > > > > As a crazy idea: is it possible to employ objtool (linker script?) to > > > rewrite all coverage c

Good Day!

2020-06-11 Thread Mr Abd Manaf
Dear how are you, How Are You? I Know That This Mail May Come To You Almost A Surprise As We Never Met Before And Please Before You Proceed Reading This mail,This Is True and not An Well I Saw Your Contact Email From Yahoo Search when I Was Looking For a Foreign Partner, please I don’t now if you

[PATCH v4 2/2] phy: intel: Add Keem Bay eMMC PHY support

2020-06-11 Thread Wan Ahmad Zainie
Add support for eMMC PHY on Intel Keem Bay SoC. Signed-off-by: Wan Ahmad Zainie --- drivers/phy/intel/Kconfig| 8 + drivers/phy/intel/Makefile | 1 + drivers/phy/intel/phy-keembay-emmc.c | 316 +++ 3 files changed, 325 insertions(+) create mode

[PATCH v4 1/2] dt-bindings: phy: intel: Add Keem Bay eMMC PHY bindings

2020-06-11 Thread Wan Ahmad Zainie
Binding description for Intel Keem Bay eMMC PHY. Signed-off-by: Wan Ahmad Zainie --- .../bindings/phy/intel,keembay-emmc-phy.yaml | 45 +++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/intel,keembay-emmc-phy.yaml diff --git a/Docum

[PATCH v4 0/2] phy: intel: Add Keem Bay eMMC PHY support

2020-06-11 Thread Wan Ahmad Zainie
Hi. The first part is to document DT bindings for Keem Bay eMMC PHY. The second is the driver file, loosely based on phy-rockchip-emmc.c and phy-intel-emmc.c. The latter is not being reused as there are quite a number of differences i.e. registers offset, supported clock rates, bitfield to set.

Re: [RFC PATCH 4/5] scsi: ufs: L2P map management for HPB read

2020-06-11 Thread Daejun Park
> > +static struct ufshpb_req *ufshpb_get_map_req(struct ufshpb_lu *hpb, > > +struct ufshpb_subregion *srgn) > > +{ > > + struct ufshpb_req *map_req; > > + struct request *req; > > + struct bio *bio; > > + > > + map_req = kmem_cache_alloc(hpb->map_req

Re: [RFC PATCH 5/5] scsi: ufs: Prepare HPB read for cached sub-region

2020-06-11 Thread Daejun Park
On 2020-06-04 18:38, Daejun Park wrote: > > + if (total_srgn_cnt != 0) { > > +dev_err(hba->dev, "ufshpb(%d) error total_subregion_count %d", > > + hpb->lun, total_srgn_cnt); > > +goto release_srgn_table; > > + } > > + > > + return 0; > > +release_srgn_table: > > + for (i = 0; i < r

[PATCH v3] usb: usbtest: fix missing kfree(dev->buf) in usbtest_disconnect

2020-06-11 Thread qiang.zhang
From: Zqiang BUG: memory leak unreferenced object 0x888055046e00 (size 256): comm "kworker/2:9", pid 2570, jiffies 4294942129 (age 1095.500s) hex dump (first 32 bytes): 00 70 04 55 80 88 ff ff 18 bb 5a 81 ff ff ff ff .p.U..Z. f5 96 78 81 ff ff ff ff 37 de 8e 81 ff ff ff f

  1   2   3   4   5   6   7   8   9   10   >