Re: [PATCH 1/1] docs: dev-tools: coccinelle: underlines

2020-06-04 Thread Julia Lawall
On Fri, 5 Jun 2020, Heinrich Schuchardt wrote: > Underline lengths should match the lengths of headings to avoid build > warnings with Sphinx. > > Signed-off-by: Heinrich Schuchardt Acked-by: Julia Lawall Thanks for your help. > --- > Documentation/dev-tools/coccinelle.rst | 8

Re: [PATCH] PCI: tegra: handle failure case of pm_runtime_get_sync

2020-06-04 Thread Jon Hunter
On 05/06/2020 04:12, Navid Emamdoost wrote: > Calling pm_runtime_get_sync increments the counter even in case of > failure, causing incorrect ref count. Call pm_runtime_put if > pm_runtime_get_sync fails. > > Signed-off-by: Navid Emamdoost > --- > drivers/pci/controller/pci-tegra.c | 1 + > 1

linux-next: manual merge of the akpm tree with the sh tree

2020-06-04 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm tree got a conflict in: arch/sh/include/asm/pgtable_64.h between commit: 37744feebc08 ("sh: remove sh5 support") from the sh tree and patch: "mm: consolidate pte_index() and pte_offset_*() definitions" from the akpm tree. I fixed it up

Re: [PATCH] dmaengine: tegra210-adma: handle pm_runtime_get_sync failure cases

2020-06-04 Thread Jon Hunter
On 04/06/2020 21:10, Navid Emamdoost wrote: > Calling pm_runtime_get_sync increments the counter even in case of > failure, causing incorrect ref count. Call pm_runtime_put if > pm_runtime_get_sync fails. > > Signed-off-by: Navid Emamdoost > --- > drivers/dma/tegra210-adma.c | 3 ++- > 1 file

drivers/tty/serial/ucc_uart.c:264:21: sparse: sparse: incorrect type in argument 1 (different address spaces)

2020-06-04 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 435faf5c218a47fd6258187f62d9bb1009717896 commit: 5a35435ef4e6e4bd2aabd6706b146b298a9cffe5 soc: fsl: qe: remove PPC32 dependency from CONFIG_QUICC_ENGINE date: 6 months ago config:

linux-next: manual merge of the akpm tree with the sh tree

2020-06-04 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm tree got conflicts in: arch/sh/kernel/traps_64.c arch/sh/kernel/signal_64.c arch/sh/kernel/ptrace_64.c arch/sh/kernel/process_64.c between commit: 37744feebc08 ("sh: remove sh5 support") from the sh tree and patch: "mm: don't include

Re: [PATCH v2] coccinelle: api: add kzfree script

2020-06-04 Thread Markus Elfring
> On the other hand, do you really require E to be a pointer? > If you do that, it will have to find the type of E. I suggest to reconsider this information. > If E refers to a structure field, then the type might not be available > in the current function, and you may need command line

linux-next: manual merge of the akpm tree with the sh tree

2020-06-04 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm tree got a conflict in: arch/sh/mm/tlbex_64.c arch/sh/mm/cache-sh5.c between commit: 37744feebc08 ("sh: remove sh5 support") from the sh tree and commit: "sh: add support for folded p4d page tables" from the akpm tree. I fixed it up (the

linux-next: manual merge of the akpm tree with the sh tree

2020-06-04 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm tree got a conflict in: arch/sh/include/asm/pgtable_64.h between commit: 37744feebc08 ("sh: remove sh5 support") from the sh tree and patch: "sh: drop __pXd_offset() macros that duplicate pXd_index() ones" from the akpm tree. I fixed it up

linux-next: manual merge of the akpm tree with the sh tree

2020-06-04 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm tree got a conflict in: arch/sh/kernel/process_64.c between commit: 37744feebc08 ("sh: remove sh5 support") from the sh tree and patch: "kernel: rename show_stack_loglvl() => show_stack()" from the akpm tree. I fixed it up (the former

linux-next 04 June: warning: "ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE" is not defined

2020-06-04 Thread Christophe Leroy
Hi all, Getting the following warning on linux-next from yesterday, CC net/sunrpc/svcsock.o net/sunrpc/svcsock.c:227:5: warning: "ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE" is not defined [-Wundef] #if ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE ^ Bisected to ca07eda33e01 (refs/bisect/bad)

Re: 答复: [PATCH][v6] KVM: X86: support APERF/MPERF registers

2020-06-04 Thread Like Xu
On 2020/6/5 12:23, Li,Rongqing wrote: -邮件原件- 发件人: Xu, Like [mailto:like...@intel.com] 发送时间: 2020年6月5日 10:32 收件人: Li,Rongqing 抄送: linux-kernel@vger.kernel.org; k...@vger.kernel.org; x...@kernel.org; h...@zytor.com; b...@alien8.de; mi...@redhat.com; t...@linutronix.de;

[PATCH] irqchip/gic-v4.1: Use readx_poll_timeout_atomic() to fix sleep in atomic

2020-06-04 Thread Zenghui Yu
readx_poll_timeout() can sleep if @sleep_us is specified by the caller, and is therefore unsafe to be used inside the atomic context, which is this case when we use it to poll the GICR_VPENDBASER.Dirty bit in irq_set_vcpu_affinity() callback. Let's convert to its atomic version instead which

[PATCH v2 1/1] riscv: Select ARCH_SUPPORTS_ATOMIC_RMW by default

2020-06-04 Thread Chenxi Mao
Select ARCH_SUPPORTS_ATOMIC_RMW by default to enabel osqlocks. PS2: Add signed off info. Signed-off-by: Chenxi Mao --- arch/riscv/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index a31e1a41913a..cbdc605d20d9 100644 --- a/arch/riscv/Kconfig

Re: [PATCH v3] mm: Fix mremap not considering huge pmd devmap

2020-06-04 Thread Fan Yang
Hi Ajay, > On Jun 5, 2020 at 02:23,Ajay Kaher wrote: > > So, v4.9.y should be vulnerable, however not able to reproduce on v4.9.y. > Does any specific scenerio need to test for v4.9.y? > > For v4.9, modified test program as MAP_SHARED_VALIDATE is not available: > - return mmap(NULL,

Re: [PATCH] drm/i915/gvt: print actionable error message when gm runs out

2020-06-04 Thread Zhenyu Wang
On 2020.06.03 14:33:21 +0200, Julian Stecklina wrote: > When a user tries to allocate too many or too big vGPUs and runs out > of graphics memory, the resulting error message is not actionable and > looks like an internal error. > > Change the error message to clearly point out what actions a

Re: [PATCH][v6] KVM: X86: support APERF/MPERF registers

2020-06-04 Thread Xiaoyao Li
On 6/5/2020 9:44 AM, Li RongQing wrote: Guest kernel reports a fixed cpu frequency in /proc/cpuinfo, this is confused to user when turbo is enable, and aperf/mperf can be used to show current cpu frequency after 7d5905dc14a "(x86 / CPU: Always show current CPU frequency in /proc/cpuinfo)" so

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

2020-06-04 Thread Sudeep Holla
On Thu, Jun 04, 2020 at 10:15:55AM -0500, Jassi Brar wrote: > On Thu, Jun 4, 2020 at 4:20 AM Sudeep Holla wrote: > > > > On Wed, Jun 03, 2020 at 01:32:42PM -0500, Jassi Brar wrote: > > > On Wed, Jun 3, 2020 at 1:04 PM Sudeep Holla wrote: > > > > > > > > On Fri, May 29, 2020 at 09:37:58AM +0530,

[GIT PULL] first round of SCSI updates for the 5.6+ merge window

2020-06-04 Thread James Bottomley
This series consists of the usual driver updates (qla2xxx, ufs, zfcp, target, scsi_debug, lpfc, qedi, qedf, hisi_sas, mpt3sas) plus a host of other minor updates. There are no major core changes in this series apart from a refactoring in scsi_lib.c. The patch is available here:

Re: [PATCH v1] Bluetooth: hci_qca: Fix double free during SSR timeout

2020-06-04 Thread Abhishek Pandit-Subedi
Hi, On Thu, Jun 4, 2020 at 6:59 AM Venkata Lakshmi Narayana Gubba wrote: > > Due to race conditions between qca_hw_error and qca_controller_memdump > during SSR timeout,the same pointer is freed twice. Which results to > double free error. Now a lock is acquired while SSR state moved to timeout.

Re: [PATCH v5 5/7] blktrace: fix debugfs use after free

2020-06-04 Thread Bart Van Assche
On 2020-06-01 10:05, Luis Chamberlain wrote: > diff --git a/kernel/trace/blktrace.c b/kernel/trace/blktrace.c > index a55cbfd060f5..5b0310f38e11 100644 > --- a/kernel/trace/blktrace.c > +++ b/kernel/trace/blktrace.c > @@ -511,6 +511,11 @@ static int do_blk_trace_setup(struct request_queue *q, >

Re: [PATCH v2 1/2] PCI/ERR: Fix fatal error recovery for non-hotplug capable devices

2020-06-04 Thread Jay Vosburgh
sathyanarayanan.kuppusw...@linux.intel.com wrote: >From: Kuppuswamy Sathyanarayanan > >Fatal (DPC) error recovery is currently broken for non-hotplug >capable devices. With current implementation, after successful >fatal error recovery, non-hotplug capable device state won't be >restored

Re: linux-next: manual merge of the livepatching tree with the modules tree

2020-06-04 Thread Stephen Rothwell
Hi all, On Fri, 8 May 2020 18:05:24 +1000 Stephen Rothwell wrote: > > Today's linux-next merge of the livepatching tree got a conflict in: > > kernel/module.c > > between commits: > > db991af02f11 ("module: break nested ARCH_HAS_STRICT_MODULE_RWX and > STRICT_MODULE_RWX #ifdefs") >

答复: [PATCH][v6] KVM: X86: support APERF/MPERF registers

2020-06-04 Thread Li,Rongqing
> -邮件原件- > 发件人: Xu, Like [mailto:like...@intel.com] > 发送时间: 2020年6月5日 10:32 > 收件人: Li,Rongqing > 抄送: linux-kernel@vger.kernel.org; k...@vger.kernel.org; x...@kernel.org; > h...@zytor.com; b...@alien8.de; mi...@redhat.com; t...@linutronix.de; > jmatt...@google.com; wanpen...@tencent.com;

Re: [PATCH] scsi: megaraid_sas: fix kdump kernel boot hung caused by JBOD

2020-06-04 Thread Kai Liu
On 2020/06/05 Fri 01:05, Chandrakanth Patil wrote: Hi Kai Liu, Gen3 (Invader) and Gen3.5 (Ventura/Aero) generations of controllers are affected. Hi Chandrakanth, My card is not one of these but it's also problematic: # lspci -nn|grep 3408 02:00.0 RAID bus controller [0104]: Broadcom / LSI

Re: [PATCH] Bluetooth: Allow suspend even when preparation has failed

2020-06-04 Thread Abhishek Pandit-Subedi
Sent a v2 with proper fixes and reported-by tags. Thanks Abhishek On Thu, Jun 4, 2020 at 3:46 AM Rafael J. Wysocki wrote: > > On Wed, Jun 3, 2020 at 10:22 PM Abhishek Pandit-Subedi > wrote: > > > > It is preferable to allow suspend even when Bluetooth has problems > > preparing for sleep. When

[PATCH v2] Bluetooth: Allow suspend even when preparation has failed

2020-06-04 Thread Abhishek Pandit-Subedi
It is preferable to allow suspend even when Bluetooth has problems preparing for sleep. When Bluetooth fails to finish preparing for suspend, log the error and allow the suspend notifier to continue instead. To also make it clearer why suspend failed, change bt_dev_dbg to bt_dev_err when handling

[PATCH] f2fs: add F2FS_IOC_TRIM_FILE ioctl

2020-06-04 Thread Daeho Jeong
From: Daeho Jeong Added a new ioctl to send discard commands to whole data area of a regular file for security reason. Signed-off-by: Daeho Jeong --- fs/f2fs/f2fs.h | 1 + fs/f2fs/file.c | 129 + 2 files changed, 130 insertions(+) diff --git

Re: general protection fault in kobject_get (2)

2020-06-04 Thread Eric Biggers
On Wed, May 20, 2020 at 07:56:41AM +0200, Greg KH wrote: > On Tue, May 19, 2020 at 09:53:16PM -0700, syzbot wrote: > > Hello, > > > > syzbot found the following crash on: > > > > HEAD commit:d00f26b6 Merge git://git.kernel.org/pub/scm/linux/kernel/g.. > > git tree: net-next > > console

Re: memory leak in do_eventfd

2020-06-04 Thread Eric Biggers
[+Cc kvm mailing list] On Wed, May 20, 2020 at 06:12:17PM -0700, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:5a9ffb95 Merge tag '5.7-rc5-smb3-fixes' of git://git.samba.. > git tree: upstream > console output:

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

2020-06-04 Thread Eric Biggers
On Sat, May 23, 2020 at 10:04:14AM -0700, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:c11d28ab Add linux-next specific files for 20200522 > git tree: linux-next > console output: https://syzkaller.appspot.com/x/log.txt?x=119c3f0610 > kernel

Re: [PATCH 0/2] proc: use subset option to hide some top-level procfs entries

2020-06-04 Thread Eric W. Biederman
Alexey Gladkov writes: > On Thu, Jun 04, 2020 at 03:33:25PM -0500, Eric W. Biederman wrote: >> Alexey Gladkov writes: >> >> > Greetings! >> > >> > Preface >> > --- >> > This patch set can be applied over: >> > >> > git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace.git >> >

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

2020-06-04 Thread Eric Biggers
On Sat, May 23, 2020 at 10:04:14AM -0700, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:c11d28ab Add linux-next specific files for 20200522 > git tree: linux-next > console output: https://syzkaller.appspot.com/x/log.txt?x=114e4f0610 > kernel

Re: possible deadlock in media_devnode_release

2020-06-04 Thread Eric Biggers
On Sat, May 23, 2020 at 10:38:50AM -0700, Randy Dunlap wrote: > On 5/23/20 10:04 AM, syzbot wrote: > > Hello, > > > > syzbot found the following crash on: > > > > HEAD commit:c11d28ab Add linux-next specific files for 20200522 > > git tree: linux-next > > console output:

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

2020-06-04 Thread Eric Biggers
On Sun, May 24, 2020 at 03:24:12AM -0700, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:c11d28ab Add linux-next specific files for 20200522 > git tree: linux-next > console output: https://syzkaller.appspot.com/x/log.txt?x=1587269a10 > kernel

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

2020-06-04 Thread Eric Biggers
On Sun, May 24, 2020 at 01:22:44PM +0200, Greg KH wrote: > On Sun, May 24, 2020 at 03:24:12AM -0700, syzbot wrote: > > Hello, > > > > syzbot found the following crash on: > > > > HEAD commit:c11d28ab Add linux-next specific files for 20200522 > > git tree: linux-next > > console

Re: linux-next test error: BUG: using smp_processor_id() in preemptible [ADDR] code: kworker/u4:LINE/6740

2020-06-04 Thread Eric Biggers
On Tue, Jun 02, 2020 at 05:20:16AM -0700, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:0e21d462 Add linux-next specific files for 20200602 > git tree: linux-next > console output: https://syzkaller.appspot.com/x/log.txt?x=13f3dcca10 > kernel

Re: linux-next test error: BUG: using smp_processor_id() in preemptible [ADDR] code: systemd-rfkill/6731

2020-06-04 Thread Eric Biggers
On Tue, Jun 02, 2020 at 05:20:16AM -0700, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:0e21d462 Add linux-next specific files for 20200602 > git tree: linux-next > console output: https://syzkaller.appspot.com/x/log.txt?x=102c59ce10 > kernel

Re: linux-next test error: BUG: using smp_processor_id() in preemptible [ADDR] code: syz-fuzzer/6927

2020-06-04 Thread Eric Biggers
On Tue, Jun 02, 2020 at 04:20:17AM -0700, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:0e21d462 Add linux-next specific files for 20200602 > git tree: linux-next > console output: https://syzkaller.appspot.com/x/log.txt?x=1597f2fe10 > kernel

Re: linux-next test error: BUG: using smp_processor_id() in preemptible [ADDR] code: systemd-rfkill/6726

2020-06-04 Thread Eric Biggers
On Tue, Jun 02, 2020 at 05:19:16AM -0700, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:0e21d462 Add linux-next specific files for 20200602 > git tree: linux-next > console output: https://syzkaller.appspot.com/x/log.txt?x=13a7ffe210 > kernel

Re: linux-next test error: BUG: using smp_processor_id() in preemptible [ADDR] code: systemd-rfkill/6728

2020-06-04 Thread Eric Biggers
On Thu, Jun 04, 2020 at 09:02:20PM -0700, Eric Biggers wrote: > Introduced by: > > commit 42f56b7a4a7db127a9d281da584152dc3d525d25 > Author: Ritesh Harjani > Date: Wed May 20 12:10:34 2020 +0530 > > ext4: mballoc: introduce pcpu seqcnt for freeing PA to improve ENOSPC > handling > Hmm,

Re: linux-next test error: BUG: using smp_processor_id() in preemptible [ADDR] code: kworker/u4:LINE/46

2020-06-04 Thread Eric Biggers
On Tue, Jun 02, 2020 at 04:20:16AM -0700, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:0e21d462 Add linux-next specific files for 20200602 > git tree: linux-next > console output: https://syzkaller.appspot.com/x/log.txt?x=17fee51610 > kernel

Re: [PATCH] pwm: Add missing "CONFIG_" prefix

2020-06-04 Thread Joe Perches
On Thu, 2020-06-04 at 14:52 -0700, Kees Cook wrote: > On Wed, Jun 03, 2020 at 04:04:31PM -0700, Joe Perches wrote: > > On Wed, 2020-06-03 at 15:40 -0700, Kees Cook wrote: > > > The IS_ENABLED() use was missing the CONFIG_ prefix which would have > > > lead to skipping this code. > > > > > >

Re: BUG: using smp_processor_id() in preemptible code in debug_smp_processor_id

2020-06-04 Thread Eric Biggers
On Thu, Jun 04, 2020 at 07:42:18AM -0700, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:065fcfd4 selftests: net: ip_defrag: ignore EPERM > git tree: net-next > console output: https://syzkaller.appspot.com/x/log.txt?x=15c3e51610 > kernel config:

Re: linux-next test error: BUG: using smp_processor_id() in preemptible [ADDR] code: systemd-rfkill/6728

2020-06-04 Thread Eric Biggers
Introduced by: commit 42f56b7a4a7db127a9d281da584152dc3d525d25 Author: Ritesh Harjani Date: Wed May 20 12:10:34 2020 +0530 ext4: mballoc: introduce pcpu seqcnt for freeing PA to improve ENOSPC handling On Thu, Jun 04, 2020 at 07:02:18PM -0700, syzbot wrote: > Hello, > > syzbot found

Re: [PATCH v6 0/4] kdb: Improve console handling

2020-06-04 Thread Sergey Senozhatsky
On (20/06/04 15:31), Sumit Garg wrote: > > drivers/tty/serial/kgdb_nmi.c | 2 +- > drivers/tty/serial/kgdboc.c | 32 +-- > drivers/usb/early/ehci-dbgp.c | 3 +- > include/linux/kgdb.h | 5 ++- > kernel/debug/kdb/kdb_io.c | 72 >

Re: BUG: using smp_processor_id() in preemptible code in radix_tree_node_alloc

2020-06-04 Thread Eric Biggers
[+Cc Matthew Wilcox] Possibly a bug in lib/radix-tree.c? this_cpu_ptr() in radix_tree_node_alloc() can be reached without a prior preempt_disable(). Or is the caller of idr_alloc() doing something wrong? On Thu, Jun 04, 2020 at 07:02:18PM -0700, syzbot wrote: > Hello, > > syzbot found the

[PATCH] usb: gadget: function: printer: fix use-after-free in __lock_acquire

2020-06-04 Thread qiang.zhang
From: Zqiang Fix this by increase object reference count. BUG: KASAN: use-after-free in __lock_acquire+0x3fd4/0x4180 kernel/locking/lockdep.c:3831 Read of size 8 at addr 8880683b0018 by task syz-executor.0/3377 CPU: 1 PID: 3377 Comm: syz-executor.0 Not tainted 5.6.11 #1 Hardware name: QEMU

Re: [PATCH RFC 03/13] vhost: batching fetches

2020-06-04 Thread Jason Wang
On 2020/6/4 下午4:59, Michael S. Tsirkin wrote: On Wed, Jun 03, 2020 at 03:27:39PM +0800, Jason Wang wrote: On 2020/6/2 下午9:06, Michael S. Tsirkin wrote: With this patch applied, new and old code perform identically. Lots of extra optimizations are now possible, e.g. we can fetch multiple

Re: [PATCH V2] mm/vmstat: Add events for THP migration without split

2020-06-04 Thread Anshuman Khandual
On 06/04/2020 10:19 PM, Zi Yan wrote: > On 4 Jun 2020, at 12:36, Matthew Wilcox wrote: > >> On Thu, Jun 04, 2020 at 09:51:10AM -0400, Zi Yan wrote: >>> On 4 Jun 2020, at 7:34, Matthew Wilcox wrote: On Thu, Jun 04, 2020 at 09:30:45AM +0530, Anshuman Khandual wrote: > +Quantifying

[PATCH 1/1] riscv: Select ARCH_SUPPORTS_ATOMIC_RMW by default

2020-06-04 Thread Chenxi Mao
Select ARCH_SUPPORTS_ATOMIC_RMW by default to enabel osqlocks. PS2: Add signed off info. Signed-off-by: Chenxi Mao --- arch/riscv/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index a31e1a41913a..cbdc605d20d9 100644 --- a/arch/riscv/Kconfig

[PATCH] can: xilinx_can: handle failure cases of pm_runtime_get_sync

2020-06-04 Thread Navid Emamdoost
Calling pm_runtime_get_sync increments the counter even in case of failure, causing incorrect ref count. Call pm_runtime_put if pm_runtime_get_sync fails. Signed-off-by: Navid Emamdoost --- drivers/net/can/xilinx_can.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

Re: [GIT PULL] Devicetree updates for v5.8

2020-06-04 Thread pr-tracker-bot
The pull request you sent on Thu, 4 Jun 2020 16:04:59 -0600: > git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git > tags/devicetree-for-5.8 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/571d54ed91c0fae174d933683c0c2e11c84843d9 Thank you! --

Re: [GIT PULL] RISC-V Patches for the 5.8 Merge Window, Part 1

2020-06-04 Thread pr-tracker-bot
The pull request you sent on Thu, 04 Jun 2020 11:57:25 -0700 (PDT): > git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git > tags/riscv-for-linus-5.8-mw0 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/435faf5c218a47fd6258187f62d9bb1009717896 Thank you! --

[PATCH] wlcore: mesh: handle failure case of pm_runtime_get_sync

2020-06-04 Thread Navid Emamdoost
Calling pm_runtime_get_sync increments the counter even in case of failure, causing incorrect ref count. Call pm_runtime_put if pm_runtime_get_sync fails. Signed-off-by: Navid Emamdoost --- drivers/net/wireless/ti/wlcore/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff

[PATCH] PCI: rcar: handle the failure case of pm_runtime_get_sync

2020-06-04 Thread Navid Emamdoost
Calling pm_runtime_get_sync increments the counter even in case of failure, causing incorrect ref count. Call pm_runtime_put if pm_runtime_get_sync fails. Signed-off-by: Navid Emamdoost --- drivers/pci/controller/pcie-rcar.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git

[PATCH] Staging: comedi: Added blank lines to fix coding style issue

2020-06-04 Thread Divyansh Kamboj
Fixed a coding style issue by adding a blank line after declarations Signed-off-by: Divyansh Kamboj --- drivers/staging/comedi/comedi_fops.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/staging/comedi/comedi_fops.c b/drivers/staging/comedi/comedi_fops.c index

Re: [PATCH v2 5/6] block: nr_sects_write(): Disable preemption on seqcount write

2020-06-04 Thread Jens Axboe
On 6/3/20 8:49 AM, Ahmed S. Darwish wrote: > For optimized block readers not holding a mutex, the "number of sectors" > 64-bit value is protected from tearing on 32-bit architectures by a > sequence counter. > > Disable preemption before entering that sequence counter's write side > critical

Re: stress-ng --hrtimers hangs system

2020-06-04 Thread Paul E. McKenney
On Fri, Jun 05, 2020 at 04:47:51AM +0300, Vladimir Oltean wrote: > Hi, > > I was testing stress-ng on an ARM64 box and I found that it can be killed > instantaneously with a --hrtimers 1 test: > https://github.com/ColinIanKing/stress-ng/blob/master/stress-hrtimers.c > The console shell locks up

[PATCH] PCI: dwc: pci-dra7xx: handle failure case of pm_runtime_get_sync

2020-06-04 Thread Navid Emamdoost
Calling pm_runtime_get_sync increments the counter even in case of failure, causing incorrect ref count. Call pm_runtime_put if pm_runtime_get_sync fails. Signed-off-by: Navid Emamdoost --- drivers/pci/controller/dwc/pci-dra7xx.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff

[PATCH] block: Fix use-after-free in blkdev_get()

2020-06-04 Thread Jason Yan
In blkdev_get() we call __blkdev_get() to do some internal jobs and if there is some errors in __blkdev_get(), the bdput() is called which means we have released the refcount of the bdev (actually the refcount of the bdev inode). This means we cannot access bdev after that point. But accually bdev

[PATCH] PCI: qcom: handle pm_runtime_get_sync failure case

2020-06-04 Thread Navid Emamdoost
Calling pm_runtime_get_sync increments the counter even in case of failure, causing incorrect ref count. Call pm_runtime_put if pm_runtime_get_sync fails. Signed-off-by: Navid Emamdoost --- drivers/pci/controller/dwc/pcie-qcom.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff

Re: [PATCH] sata_rcar: handle pm_runtime_get_sync failure cases

2020-06-04 Thread Jens Axboe
On 6/4/20 9:06 PM, Navid Emamdoost wrote: > Calling pm_runtime_get_sync increments the counter even in case of > failure, causing incorrect ref count. Call pm_runtime_put if > pm_runtime_get_sync fails. Applied, thanks. -- Jens Axboe

Re: [PATCH] loop: Fix wrong masking of status flags

2020-06-04 Thread Jens Axboe
On 6/4/20 2:25 PM, Martijn Coenen wrote: > In faf1d25440d6, loop_set_status() now assigns lo_status directly from > the passed in lo_flags, but then fixes it up by masking out flags that > can't be set by LOOP_SET_STATUS; unfortunately the mask was negated. > > Re-ran all ltp ioctl_loop tests,

[PATCH] PCI: tegra: handle failure case of pm_runtime_get_sync

2020-06-04 Thread Navid Emamdoost
Calling pm_runtime_get_sync increments the counter even in case of failure, causing incorrect ref count. Call pm_runtime_put if pm_runtime_get_sync fails. Signed-off-by: Navid Emamdoost --- drivers/pci/controller/pci-tegra.c | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [PATCH] iomap: Handle I/O errors gracefully in page_mkwrite

2020-06-04 Thread Dave Chinner
On Thu, Jun 04, 2020 at 07:24:51PM -0700, Matthew Wilcox wrote: > On Fri, Jun 05, 2020 at 10:31:59AM +1000, Dave Chinner wrote: > > On Thu, Jun 04, 2020 at 04:50:50PM -0700, Matthew Wilcox wrote: > > > > Sure, but that's not really what I was asking: why isn't this > > > > !uptodate state caught

[PATCH] sata_rcar: handle pm_runtime_get_sync failure cases

2020-06-04 Thread Navid Emamdoost
Calling pm_runtime_get_sync increments the counter even in case of failure, causing incorrect ref count. Call pm_runtime_put if pm_runtime_get_sync fails. Signed-off-by: Navid Emamdoost --- drivers/ata/sata_rcar.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git

Re: [PATCH] checkpatch: Avoid missing typo suggestions

2020-06-04 Thread Kees Cook
On Thu, Jun 04, 2020 at 06:02:05PM -0700, Joe Perches wrote: > Huh? Did you test this? I didn't, no. I was going off my earlier discoveries about how the "msdos" thing got parsed weird. My apologies! > $ ./scripts/checkpatch.pl --strict -f test_spell.c > CHECK: 'Cambridg' may be misspelled -

[PATCH 1/1] docs: dev-tools: coccinelle: underlines

2020-06-04 Thread Heinrich Schuchardt
Underline lengths should match the lengths of headings to avoid build warnings with Sphinx. Signed-off-by: Heinrich Schuchardt --- Documentation/dev-tools/coccinelle.rst | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Documentation/dev-tools/coccinelle.rst

[PATCH] sdhci: tegra: Add comment for PADCALIB and PAD_CONTROL NVQUIRKS

2020-06-04 Thread Sowjanya Komatineni
This patch adds comments about NVQUIRKS HAS_PADCALIB and NEEDS_PAD_CONTROL. Signed-off-by: Sowjanya Komatineni --- drivers/mmc/host/sdhci-tegra.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c index 3a372ab..0a3f9d0

[PATCH] gpio: arizona: put pm_runtime in case of failure

2020-06-04 Thread Navid Emamdoost
Calling pm_runtime_get_sync increments the counter even in case of failure, causing incorrect ref count if pm_runtime_put is not called in error handling paths. Call pm_runtime_put if pm_runtime_get_sync fails. Signed-off-by: Navid Emamdoost --- drivers/gpio/gpio-arizona.c | 6 +- 1 file

Re: [exec] 166d03c9ec: ltp.execveat02.fail

2020-06-04 Thread Kees Cook
On Mon, May 25, 2020 at 05:14:20PM +0800, kernel test robot wrote: > execveat02.c:64: PASS: execveat() fails as expected: EBADF (9) > execveat02.c:64: PASS: execveat() fails as expected: EINVAL (22) > execveat02.c:61: FAIL: execveat() fails unexpectedly, expected: ELOOP: EACCES > (13) >

[PATCH] usb: gadget: function: printer: fix use-after-free in __lock_acquire

2020-06-04 Thread qiang.zhang
From: Zqiang Fix this by increase object reference count. BUG: KASAN: use-after-free in __lock_acquire+0x3fd4/0x4180 kernel/locking/lockdep.c:3831 Read of size 8 at addr 8880683b0018 by task syz-executor.0/3377 CPU: 1 PID: 3377 Comm: syz-executor.0 Not tainted 5.6.11 #1 Hardware name: QEMU

Re: [PATCH v4 7/7] mtd: spi-nor: macronix: Add Octal 8D-8D-8D supports for Macronix mx25uw51245g

2020-06-04 Thread masonccyang
> > > > > > > > +#define MXIC_CR2_DUMMY_SET_ADDR 0x300 > > > > + > > > > +/* Fixup the dummy cycles to device and setup octa_dtr_enable() */ > > > > +static void mx25uw51245g_post_sfdp_fixups(struct spi_nor *nor) > > > > +{ > > > > + struct spi_nor_flash_parameter *params = nor->params; > >

[PATCH] gpio: arizona: handle pm_runtime_get_sync failure case

2020-06-04 Thread Navid Emamdoost
Calling pm_runtime_get_sync increments the counter even in case of failure, causing incorrect ref count. Call pm_runtime_put if pm_runtime_get_sync fails. Signed-off-by: Navid Emamdoost --- drivers/gpio/gpio-arizona.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH] gpio: rcar: handle pm_runtime_get_sync failure case

2020-06-04 Thread Navid Emamdoost
Calling pm_runtime_get_sync increments the counter even in case of failure, causing incorrect ref count. Call pm_runtime_put if pm_runtime_get_sync fails. Signed-off-by: Navid Emamdoost --- drivers/gpio/gpio-rcar.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[PATCH] mfd: arizona: handle pm_runtime_get_sync failure case

2020-06-04 Thread Navid Emamdoost
Calling pm_runtime_get_sync increments the counter even in case of failure, causing incorrect ref count. Call pm_runtime_put_sync if pm_runtime_get_sync fails. Signed-off-by: Navid Emamdoost --- drivers/mfd/arizona-core.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[PATCH] io: pressure: zpa2326: handle pm_runtime_get_sync failure

2020-06-04 Thread Navid Emamdoost
Calling pm_runtime_get_sync increments the counter even in case of failure, causing incorrect ref count. Call pm_runtime_put if pm_runtime_get_sync fails. Signed-off-by: Navid Emamdoost --- drivers/iio/pressure/zpa2326.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

RE: [PATCH v8 00/13] add ecspi ERR009165 for i.mx6/7 soc family

2020-06-04 Thread Robin Gong
On 2020/06/03 Matthias Schiffer wrote: > On Wed, 2020-06-03 at 09:50 +, Robin Gong wrote: > > On 2020/06/03 Matthias Schiffer > > wrote: > > > On Thu, 2020-05-21 at 04:34 +0800, Robin Gong wrote: > > > > There is ecspi ERR009165 on i.mx6/7 soc family, which cause FIFO > > > > transfer to be

Re: [GIT PULL v2] x86/mm changes for v5.8

2020-06-04 Thread Linus Torvalds
On Thu, Jun 4, 2020 at 10:29 AM Ingo Molnar wrote: > > Yeah, sure - here's the updated pull request for the rest: > >git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-mm-2020-06-04 > ># HEAD: bd1de2a7aace4d1d312fb1be264b8fafdb706208 x86/tlb/uv: Add a forward > declaration for

[PATCH] hfs: fix null-ptr-deref in hfs_find_init()

2020-06-04 Thread Yang Yingliang
There is a null-ptr-deref in hfs_find_init(): [ 107.092729] hfs: continuing without an alternate MDB [ 107.097632] general protection fault, probably for non-canonical address 0xdc08: [#1] SMP KASAN PTI [ 107.104679] KASAN: null-ptr-deref in range

Re: [PATCH v3 2/6] PCI: uniphier: Add misc interrupt handler to invoke PME and AER

2020-06-04 Thread Kunihiko Hayashi
Hi Marc, On 2020/06/04 19:11, Marc Zyngier wrote: On 2020-06-04 10:43, Kunihiko Hayashi wrote: [...] -static void uniphier_pcie_irq_handler(struct irq_desc *desc) +static void uniphier_pcie_misc_isr(struct pcie_port *pp)  { -    struct pcie_port *pp = irq_desc_get_handler_data(desc);

Re: [PATCH v12 1/2] dt-bindings: drm/bridge: anx7625: MIPI to DP transmitter DT schema

2020-06-04 Thread Xin Ji
On Thu, Jun 04, 2020 at 04:24:02PM -0600, Rob Herring wrote: > On Thu, 04 Jun 2020 15:56:36 +0800, Xin Ji wrote: > > anx7625: MIPI to DP transmitter DT schema > > > > Signed-off-by: Xin Ji > > --- > > .../bindings/display/bridge/analogix,anx7625.yaml | 95 > > ++ > > 1

Re: [PATCH 0/2] overlayfs: C/R enhancements

2020-06-04 Thread Amir Goldstein
On Fri, Jun 5, 2020 at 12:34 AM Alexander Mikhalitsyn wrote: > > Hello, > > >But overlayfs won't accept these "output only" options as input args, > which is a problem. > > Will it be problematic if we simply ignore "lowerdir_mnt_id" and > "upperdir_mnt_id" options in ovl_parse_opt()? > That

Re: [PATCH v12 2/2] drm/bridge: anx7625: Add anx7625 MIPI DSI/DPI to DP

2020-06-04 Thread Xin Ji
On Thu, Jun 04, 2020 at 11:08:05AM +0300, Laurent Pinchart wrote: > Hello Xin, > > Thank you for the patch. > > On Thu, Jun 04, 2020 at 03:58:05PM +0800, Xin Ji wrote: > > The ANX7625 is an ultra-low power 4K Mobile HD Transmitter designed > > for portable device. It converts MIPI DSI/DPI to

Re: [PATCH][v6] KVM: X86: support APERF/MPERF registers

2020-06-04 Thread Xu, Like
Hi RongQing, On 2020/6/5 9:44, Li RongQing wrote: Guest kernel reports a fixed cpu frequency in /proc/cpuinfo, this is confused to user when turbo is enable, and aperf/mperf can be used to show current cpu frequency after 7d5905dc14a "(x86 / CPU: Always show current CPU frequency in

Re: 回复: Re: [RFC PATCH 0/8] dax: Add a dax-rmap tree to support reflink

2020-06-04 Thread Ruan Shiyang
On 2020/6/5 上午9:30, Dave Chinner wrote: On Thu, Jun 04, 2020 at 07:51:07AM -0700, Darrick J. Wong wrote: On Thu, Jun 04, 2020 at 03:37:42PM +0800, Ruan Shiyang wrote: On 2020/4/28 下午2:43, Dave Chinner wrote: On Tue, Apr 28, 2020 at 06:09:47AM +, Ruan, Shiyang wrote: 在 2020/4/27

Re: [PATCH v8 0/5] support reserving crashkernel above 4G on arm64 kdump

2020-06-04 Thread John Donnelly
On 6/4/20 12:01 PM, Nicolas Saenz Julienne wrote: On Thu, 2020-06-04 at 01:17 +0530, Bhupesh Sharma wrote: Hi All, On Wed, Jun 3, 2020 at 9:03 PM John Donnelly wrote: On Jun 3, 2020, at 8:20 AM, chenzhou wrote: Hi, On 2020/6/3 19:47, Prabhakar Kushwaha wrote: Hi Chen, On Tue, Jun

Re: [RFC PATCH v4 04/10] vfio/pci: let vfio_pci know number of vendor regions and vendor irqs

2020-06-04 Thread Yan Zhao
On Thu, Jun 04, 2020 at 05:25:15PM +0200, Cornelia Huck wrote: > On Sun, 17 May 2020 22:49:44 -0400 > Yan Zhao wrote: > > > This allows a simpler VFIO_DEVICE_GET_INFO ioctl in vendor driver > > > > Cc: Kevin Tian > > Signed-off-by: Yan Zhao > > --- > > drivers/vfio/pci/vfio_pci.c |

Re: [PATCH] iomap: Handle I/O errors gracefully in page_mkwrite

2020-06-04 Thread Matthew Wilcox
On Fri, Jun 05, 2020 at 10:31:59AM +1000, Dave Chinner wrote: > On Thu, Jun 04, 2020 at 04:50:50PM -0700, Matthew Wilcox wrote: > > > Sure, but that's not really what I was asking: why isn't this > > > !uptodate state caught before the page fault code calls > > > ->page_mkwrite? The page fault

[PATCH] docs: deprecated.rst: Add zero-length and one-element arrays

2020-06-04 Thread Gustavo A. R. Silva
Add zero-length and one-element arrays to the list. While I continue replacing zero-length and one-element arrays with flexible-array members, I need a reference to point people to, so they don't introduce more instances of such arrays. And while here, add a note to the "open-coded arithmetic in

Re: [PATCH 1/2] proc: use subset option to hide some top-level procfs entries

2020-06-04 Thread kernel test robot
Hi Alexey, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on next-20200604] [cannot apply to kees/for-next/pstore linus/master linux/master v5.7 v5.7-rc7 v5.7-rc6 v5.7] [if your patch is applied to the wrong git tree, please drop us a note to help improve

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

2020-06-04 Thread Daejun Park
This patch changes the read I/O to the HPB read I/O. If the logical address of the read I/O belongs to active sub-region, the HPB driver modifies the read I/O command to HPB read. It modifies the upiu command of UFS instead of modifying the existing SCSI command. In the HPB version 1.0, the

[PATCH] proc: fix boolreturn.cocci warnings

2020-06-04 Thread kernel test robot
From: kernel test robot fs/proc/generic.c:204:9-10: WARNING: return of 0/1 in function 'is_pde_visible' with return type bool Return statements in functions returning bool should use true/false instead of 1/0. Generated by: scripts/coccinelle/misc/boolreturn.cocci CC: Alexey Gladkov

Re: linux-next: build failure after merge of the sound-current tree

2020-06-04 Thread Macpaul Lin
On Fri, 2020-06-05 at 08:43 +1000, Stephen Rothwell wrote: > Hi all, > > After merging the sound-current tree, today's linux-next build (arm > multi_v7_defconfig) failed like this: > > /home/sfr/next/next/sound/usb/card.c: In function 'snd_usb_autoresume': >

Re: [RFC PATCH v4 02/10] vfio/pci: macros to generate module_init and module_exit for vendor modules

2020-06-04 Thread Yan Zhao
On Thu, Jun 04, 2020 at 05:01:06PM +0200, Cornelia Huck wrote: > On Sun, 17 May 2020 22:45:10 -0400 > Yan Zhao wrote: > > > vendor modules call macro module_vfio_pci_register_vendor_handler to > > generate module_init and module_exit. > > It is necessary to ensure that vendor modules always call

Re: [RFC PATCH v4 07/10] vfio/pci: introduce a new irq type VFIO_IRQ_TYPE_REMAP_BAR_REGION

2020-06-04 Thread Yan Zhao
On Wed, Jun 03, 2020 at 10:10:58PM -0600, Alex Williamson wrote: > On Wed, 3 Jun 2020 22:42:28 -0400 > Yan Zhao wrote: > > > On Wed, Jun 03, 2020 at 05:04:52PM -0600, Alex Williamson wrote: > > > On Tue, 2 Jun 2020 21:40:58 -0400 > > > Yan Zhao wrote: > > > > > > > On Tue, Jun 02, 2020 at

Re: 回复: Re: [RFC PATCH 0/8] dax: Add a dax-rmap tree to support reflink

2020-06-04 Thread Ruan Shiyang
On 2020/6/4 下午10:51, Darrick J. Wong wrote: On Thu, Jun 04, 2020 at 03:37:42PM +0800, Ruan Shiyang wrote: On 2020/4/28 下午2:43, Dave Chinner wrote: On Tue, Apr 28, 2020 at 06:09:47AM +, Ruan, Shiyang wrote: 在 2020/4/27 20:28:36, "Matthew Wilcox" 写道: On Mon, Apr 27, 2020 at

[PATCH V3 0/3] firmware: imx: fix/update cm4 and add resource check

2020-06-04 Thread peng . fan
From: Peng Fan V3: Fix comments Add R-b tag V2: Add R-b tag Drop patch 3/4 from V1 Add comments and update Copyright for patch 2/3 keep code consistency in Patch 3/3 V1: https://patchwork.kernel.org/cover/11505045/ Fix cm40 power domain, update to add more cm4 resources Add resource

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

2020-06-04 Thread Daejun Park
This is a patch for managing L2P map in HPB module. The HPB divides logical addresses into several regions. A region consists of several sub-regions. The sub-region is a basic unit where L2P mapping is managed. The driver loads L2P mapping data of each sub-region. The loaded sub-region is called

  1   2   3   4   5   6   7   8   9   10   >