BUG: unable to handle kernel paging request in rb_erase

2020-05-17 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:9b1f2cbd Merge tag 'clk-fixes-for-linus' of git://git.kern.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=15dfdeaa10 kernel config: https://syzkaller.appspot.com/x/.config?x=c14212794ed9ad24 das

[PATCH 1/2] KVMM: export needed symbols

2020-05-17 Thread Anastassios Nanos
Expose a set of KVM functions to the kernel, in order to be able to spawn a VM instance without assistance from user-space. To handle a guest instance, the system needs access to the following functions: kvm_arch_vcpu_run_map_fp kvm_arch_vcpu_ioctl_get_regs kvm_arch_vcpu_ioctl_set_regs

[PATCH 0/2] Expose KVM API to Linux Kernel

2020-05-17 Thread Anastassios Nanos
To spawn KVM-enabled Virtual Machines on Linux systems, one has to use QEMU, or some other kind of VM monitor in user-space to host the vCPU threads, I/O threads and various other book-keeping/management mechanisms. This is perfectly fine for a large number of reasons and use cases: for instance, r

drivers/iommu/exynos-iommu.c:673:54: error: 'struct dev_archdata' has no member named 'iommu'

2020-05-17 Thread kbuild test robot
Hi Krzysztof, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: b9bbe6ed63b2b9f2c9ee5cbd0f2c946a2723f4ce commit: e93a1695d7fb551376b1c1220a267d032b6ad159 iommu: Enable compile testing for some of drivers date: 3 m

RE: [PATCH v1 2/2] phy: phy-cadence-torrent: Use PHY kernel APIs to set PHY attributes

2020-05-17 Thread Swapnil Kashinath Jakhade
Hi Kishon, > -Original Message- > From: Kishon Vijay Abraham I > Sent: Wednesday, May 13, 2020 8:08 AM > To: Tomi Valkeinen ; Maxime Ripard > ; Swapnil Kashinath Jakhade > > Cc: Yuti Suresh Amonkar ; linux- > ker...@vger.kernel.org; mark.rutl...@arm.com; jsa...@ti.com; > prane...@ti.com;

Re: [PATCH v2 23/33] iommu/mediatek-v1 Convert to probe/release_device() call-backs

2020-05-17 Thread Yong Wu
On Fri, 2020-05-15 at 12:07 +0200, Joerg Roedel wrote: > Hi, > > On Fri, May 15, 2020 at 03:44:59PM +0800, Yong Wu wrote: > > On Tue, 2020-04-14 at 15:15 +0200, Joerg Roedel wrote: > > > - return iommu_device_link(&data->iommu, dev); > > > + err = arm_iommu_attach_device(dev, mtk_mapping); > > > +

Re: [sched/fair] 0b0695f2b3: phoronix-test-suite.compress-gzip.0.seconds 19.8% regression

2020-05-17 Thread Oliver Sang
On Fri, May 15, 2020 at 10:12:26PM +0800, Hillf Danton wrote: > > On Fri, 15 May 2020 09:43:39 +0800 Oliver Sang wrote: > > On Thu, May 14, 2020 at 07:09:35PM +0200, Vincent Guittot wrote: > > > Hi Oliver, > > > > > > On Thu, 14 May 2020 at 16:05, kernel test robot > > > wrote: > > > > > > > >

Re: [PATCH v2 3/3] tty: n_gsm: Fix waking up upper tty layer when room available

2020-05-17 Thread Jiri Slaby
On 12. 05. 20, 13:53, Gregory CLEMENT wrote: > Warn the upper layer when n_gms is ready to receive data > again. Without this the associated virtual tty remains blocked > indefinitely. > > Fixes: e1eaea46bb40 ("tty: n_gsm line discipline") > Signed-off-by: Gregory CLEMENT > --- > drivers/tty/n_g

[RFC V2] mm/vmstat: Add events for PMD based THP migration without split

2020-05-17 Thread Anshuman Khandual
This adds the following two new VM events which will help in validating PMD based THP migration without split. Statistics reported through these events will help in performance debugging. 1. THP_PMD_MIGRATION_SUCCESS 2. THP_PMD_MIGRATION_FAILURE Cc: Naoya Horiguchi Cc: Zi Yan Cc: John Hubbard

Re: [PATCH 09/14] fs: don't change the address limit for ->write_iter in __kernel_write

2020-05-17 Thread Christoph Hellwig
On Sat, May 16, 2020 at 11:04:36AM +0800, Hillf Danton wrote: > > + if (file->f_op->write_iter) { > > + struct kvec iov = { .iov_base = (void *)buf, .iov_len = count }; > > + struct kiocb kiocb; > > + struct iov_iter iter; > > + > > + init_sync_kiocb(&kiocb

Re: RTL8723BS driver doesn't work for,me but I can help testing

2020-05-17 Thread Tobias Baumann
yet and there's a reason for that ;-) I have changed the GPIO_ACTIVE_* polarity for the two GPIOs in the sdio_pwrseq node if you want to do that by yourself. Best regards, Martin [0] https://github.com/xdarklight/linux/tree/meson-mx-integration-5.8-20200517 -- Diese E-Mail wurde von AVG a

Re: [PATCH v2 1/3] tty: n_gsm: Improve debug output

2020-05-17 Thread Jiri Slaby
On 12. 05. 20, 13:53, Gregory CLEMENT wrote: > Use appropriate print helpers for debug messages. > > Signed-off-by: Gregory CLEMENT > --- > drivers/tty/n_gsm.c | 14 ++ > 1 file changed, 2 insertions(+), 12 deletions(-) > > diff --git a/drivers/tty/n_gsm.c b/drivers/tty/n_gsm.c > in

Re: [PATCH] clk/ti/adpll: Add a NULL check for devm_kasprintf()

2020-05-17 Thread kbuild test robot
Hi Xu, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on clk/clk-next] [also build test WARNING on v5.7-rc6 next-20200515] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' optio

Re: [PATCH] swap: Add percpu cluster_next to reduce lock contention on swap cache

2020-05-17 Thread Huang, Ying
Daniel Jordan writes: > On Thu, May 14, 2020 at 03:04:24PM +0800, Huang Ying wrote: >> And the pmbench score increases 15.9%. > > What metric is that, and how long did you run the benchmark for? I run the benchmark for 1800s. The metric comes from the following output of the pmbench, [1] Bench

[PATCH v3 3/4] kasan: add tests for call_rcu stack recording

2020-05-17 Thread Walter Wu
Test call_rcu() call stack recording whether it correctly is printed in KASAN report. Signed-off-by: Walter Wu Cc: Andrey Ryabinin Cc: Dmitry Vyukov Cc: Alexander Potapenko Cc: Matthias Brugger --- lib/test_kasan.c | 30 ++ 1 file changed, 30 insertions(+) diff -

[PATCH v3 4/4] kasan: update documentation for generic kasan

2020-05-17 Thread Walter Wu
Generic KASAN will support to record the last two call_rcu() call stacks and print them in KASAN report. so we update documentation. Signed-off-by: Walter Wu Cc: Andrey Ryabinin Cc: Dmitry Vyukov Cc: Alexander Potapenko Cc: Jonathan Corbet --- Documentation/dev-tools/kasan.rst | 3 +++ 1 fil

Re: [PATCH 4/4] ipv6: symbol_get to access a sit symbol

2020-05-17 Thread Christoph Hellwig
On Sat, May 16, 2020 at 01:55:48PM -0700, David Miller wrote: > From: Christoph Hellwig > Date: Fri, 15 May 2020 08:33:24 +0200 > > > My initial plan was to add a ->tunnel_ctl method to the net_device_ops, > > and lift the copy_{to,from}_user for SIOCADDTUNNEL, SIOCCHGTUNNEL, > > SIOCDELTUNNEL an

[PATCH 1/4] ipv6: lift copy_from_user out of ipv6_route_ioctl

2020-05-17 Thread Christoph Hellwig
Prepare for better compat ioctl handling by moving the user copy out of ipv6_route_ioctl. Signed-off-by: Christoph Hellwig --- include/net/ip6_route.h | 3 ++- net/ipv6/af_inet6.c | 16 +-- net/ipv6/route.c| 44 +++-- 3 files changed,

[PATCH 2/4] ipv6: move SIOCADDRT and SIOCDELRT handling into ->compat_ioctl

2020-05-17 Thread Christoph Hellwig
To prepare removing the global routing_ioctl hack start lifting the code into a newly added ipv6 ->compat_ioctl handler. Signed-off-by: Christoph Hellwig --- include/net/ipv6.h | 2 ++ net/dccp/ipv6.c | 1 + net/ipv6/af_inet6.c | 53 + net/ipv6/raw.c

[PATCH 3/4] appletalk: factor out a atrtr_ioctl_addrt helper

2020-05-17 Thread Christoph Hellwig
Add a helper than can be shared with the upcoming compat ioctl handler. Signed-off-by: Christoph Hellwig --- net/appletalk/ddp.c | 33 - 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/net/appletalk/ddp.c b/net/appletalk/ddp.c index b41375d4d295d..

move the SIOCDELRT and SIOCADDRT compat_ioctl handlers v3

2020-05-17 Thread Christoph Hellwig
Hi Dave, this series moves the compat_ioctl handlers into the protocol handlers, avoiding the need to override the address space limited as in the current handler. Changes since v3: - moar variable reordering Changes since v1: - reorder a bunch of variable declarations

[PATCH 4/4] ipv4,appletalk: move SIOCADDRT and SIOCDELRT handling into ->compat_ioctl

2020-05-17 Thread Christoph Hellwig
To prepare removing the global routing_ioctl hack start lifting the code into the ipv4 and appletalk ->compat_ioctl handlers. Unlike the existing handler we don't bother copying in the name - there are no compat issues for char arrays. Signed-off-by: Christoph Hellwig --- include/net/compat.h |

[PATCH v3 2/4] kasan: record and print the free track

2020-05-17 Thread Walter Wu
Move free track from slub alloc meta-data to slub free meta-data in order to make struct kasan_free_meta size is 16 bytes. It is a good size because it is the minimal redzone size and a good number of alignment. For free track in generic KASAN, we do the modification in struct kasan_alloc_meta and

Re: [PATCH 0/3] arm64: perf: Add support for Perf NMI interrupts

2020-05-17 Thread Lecopzer Chen
HI Sumit, Thanks for your information. I've already implemented IPI (same as you did [1], little difference in detail), hardlockup detector and perf in last year(2019) for debuggability. And now we tend to upstream to reduce kernel maintaining effort. I'm glad if someone in ARM can do this work :

[PATCH v3 1/4] rcu/kasan: record and print call_rcu() call stack

2020-05-17 Thread Walter Wu
This feature will record the last two call_rcu() call stack and prints up to 2 call_rcu() call stacks in KASAN report. When call_rcu() is called, we store the call_rcu() call stack into slub alloc meta-data, so that the KASAN report can print rcu stack. [1]https://bugzilla.kernel.org/show_bug.cgi

[PATCH v3 0/4] kasan: memorize and print call_rcu stack

2020-05-17 Thread Walter Wu
This patchset improves KASAN reports by making them to have call_rcu() call stack information. It is useful for programmers to solve use-after-free or double-free memory issue. The KASAN report was as follows(cleaned up slightly): BUG: KASAN: use-after-free in kasan_rcu_reclaim+0x58/0x60 Freed b

Re: [PATCH] orangefs: convert get_user_pages() --> pin_user_pages()

2020-05-17 Thread John Hubbard
On 2020-05-17 23:01, John Hubbard wrote: This code was using get_user_pages*(), in a "Case 2" scenario (DMA/RDMA), using the categorization from [1]. That means that it's time to convert the get_user_pages*() + put_page() calls to pin_user_pages*() + unpin_user_pages() calls. Oops, actually, ma

[PATCH v3] staging: wfx: Typo fix

2020-05-17 Thread Mohamed Dawod
Fixing some typo errors in traces.h file Signed-off-by: Mohamed Dawod --- Chagnes in v2: - Modifying the mail subject and the commit message Chagnes in v1: - Fixing some typo errors in wfx/traces.h file drivers/staging/wfx/traces.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions

Re: next-20200514 - build issue in drivers/md/dm-zoned-target.c

2020-05-17 Thread Hannes Reinecke
On 5/16/20 1:19 PM, Valdis Klētnieks wrote: Am seeing a build error in next-0514. -0420 built OK. building a 'make allmodconfig' on a RPi4 in 32-bit mode. MODPOST 7575 modules ERROR: modpost: "__aeabi_uldivmod" [drivers/md/dm-zoned.ko] undefined! objdump and 'make drivers/md/dm-zoned-target

Re: [PATCH] drm/i915: Mark check_shadow_context_ppgtt as maybe unused

2020-05-17 Thread Zhenyu Wang
On 2020.05.15 19:35:45 -0700, Nathan Chancellor wrote: > When CONFIG_DRM_I915_DEBUG_GEM is not set, clang warns: > > drivers/gpu/drm/i915/gvt/scheduler.c:884:1: warning: function > 'check_shadow_context_ppgtt' is not needed and will not be emitted > [-Wunneeded-internal-declaration] > check_shadow

Re: [PATCH v5] hugetlbfs: Get unmapped area below TASK_UNMAPPED_BASE for hugetlbfs

2020-05-17 Thread Hushijie
>On 5/16/20 12:47 AM, Hushijie wrote: >>> On 5/14/20 7:31 AM, Shijie Hu wrote: + if (mm->get_unmapped_area == arch_get_unmapped_area) + return hugetlb_get_unmapped_area_bottomup(file, addr, len, + pgoff, flags); + return hugetlb_get_unmapped_a

Re: [PATCH 0/3] fs: reduce export usage of kerne_read*() calls

2020-05-17 Thread Christoph Hellwig
On Fri, May 15, 2020 at 09:29:33PM +, Luis Chamberlain wrote: > On Wed, May 13, 2020 at 11:17:36AM -0700, Christoph Hellwig wrote: > > Can you also move kernel_read_* out of fs.h? That header gets pulled > > in just about everywhere and doesn't really need function not related > > to the gener

[PATCH V2] dt-bindings: interrupt-controller: Convert imx irqsteer to json-schema

2020-05-17 Thread Anson Huang
Convert the i.MX IRQSTEER binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- Changes since V1: - Add "fsl,imx8m-irqsteer" compatible back. - Use "Multiplexer" instead of "multiplexer" for title. --- .../bindings/interrupt-controller/fsl,irqsteer.txt | 3

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

2020-05-17 Thread Bjorn Andersson
On Sun 17 May 22:16 PDT 2020, Stephen Rothwell wrote: > Hi all, > > On Mon, 20 Apr 2020 19:41:56 -0700 John Stultz wrote: > > > > On Mon, Apr 20, 2020 at 4:29 PM Stephen Rothwell > > wrote: > > > > > > On Tue, 14 Apr 2020 18:18:11 -0700 John Stultz > > > wrote: > > > > > > > > On Tue, Apr

Re: [PATCH] printk/kdb: Redirect printk messages into kdb in any context

2020-05-17 Thread Sumit Garg
On Fri, 15 May 2020 at 22:22, Doug Anderson wrote: > > Hi, > > On Fri, May 15, 2020 at 9:36 AM Sergey Senozhatsky > wrote: > > > > On (20/05/15 17:32), Sumit Garg wrote: > > > > Can I please have some context what problem does this solve? > > > > > > You can find the problem description here [1]

Re: [PATCH v12 00/18] Enable FSGSBASE instructions

2020-05-17 Thread Christoph Hellwig
On Mon, May 11, 2020 at 12:52:53AM -0400, Sasha Levin wrote: > Benefits: > Currently a user process that wishes to read or write the FS/GS base must > make a system call. But recent X86 processors have added new instructions > for use in 64-bit mode that allow direct access to the FS and GS segment

Re: [PATCH rdma-next v1 00/10] Enable asynchronous event FD per object

2020-05-17 Thread Leon Romanovsky
On Sun, May 17, 2020 at 08:37:13PM -0300, Jason Gunthorpe wrote: > On Wed, May 06, 2020 at 11:24:34AM +0300, Leon Romanovsky wrote: > > > RDMA/core: Consolidate ib_create_srq flows > > IB/uverbs: Cleanup wq/srq context usage from uverbs layer > > IB/uverbs: Fix create WQ to use the given user

[PATCH] MIPS: Remove useless parameter of the bootcmdline_init()

2020-05-17 Thread Zhi Li
The parameter "cmdline_p" is useless in bootcmdline_init(), remove it. Signed-off-by: Zhi Li --- arch/mips/kernel/setup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c index 8db533c..7b537fa 100644 --- a/arch/mips/kern

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

2020-05-17 Thread Martin Blumenstingl
Hi Stephen, On Mon, May 18, 2020 at 6:27 AM Stephen Rothwell wrote: > > Hi all, > > After merging the mmc tree, today's linux-next build (x86_64 allmodconfig) > failed like this: > > WARNING: modpost: missing MODULE_LICENSE() in > drivers/mmc/host/meson-mx-sdhc-clkc.o > see include/linux/module.

[PATCH] mmc: host: meson-mx-sdhc: fix building with CONFIG_MMC_MESON_MX_SDHC=m

2020-05-17 Thread Martin Blumenstingl
For an x86_64 allmodconfig build Stephen reports that building meson-mx-sdhc-clkc.o warns that MODULE_LICENSE is missing and when linking meson_mx_sdhc_register_clkc cannot be found. Compile the MMC controller driver together with the build-in clock controller driver into one module rather than us

RE: [PATCH] dt-bindings: interrupt-controller: Convert imx irqsteer to json-schema

2020-05-17 Thread Anson Huang
> Subject: RE: [PATCH] dt-bindings: interrupt-controller: Convert imx irqsteer > to > json-schema > > > From: Anson Huang > > Sent: Monday, May 18, 2020 1:20 PM > > > > > Subject: RE: [PATCH] dt-bindings: interrupt-controller: Convert imx > > > irqsteer to json-schema > > > > > > ... > > > > +

Re: [PATCH v3 1/2] usb: serial: Add MaxLinear/Exar USB to Serial driver

2020-05-17 Thread Greg KH
On Fri, May 01, 2020 at 12:19:23AM +0530, m...@kernel.org wrote: > +static int xr_set_reg(struct usb_serial_port *port, u8 block, u8 reg, > + u8 val) > +{ > + struct usb_serial *serial = port->serial; > + int ret = -EINVAL; > + > + /* XR21V141X uses custom command for

RE: [PATCH] dt-bindings: pwm: Convert mxs pwm to json-schema

2020-05-17 Thread Aisheng Dong
> From: Anson Huang > Sent: Monday, May 18, 2020 1:32 PM > > > Subject: RE: [PATCH] dt-bindings: pwm: Convert mxs pwm to json-schema > > > > > +title: Freescale MXS PWM controller > > > + > > > +maintainers: > > > + - Shawn Guo > > > + - Anson Huang > > > + > > > +properties: > > > + compati

RE: [PATCH] dt-bindings: interrupt-controller: Convert imx irqsteer to json-schema

2020-05-17 Thread Aisheng Dong
> From: Anson Huang > Sent: Monday, May 18, 2020 1:20 PM > > > Subject: RE: [PATCH] dt-bindings: interrupt-controller: Convert imx > > irqsteer to json-schema > > > > ... > > > + > > > +title: Freescale IRQSTEER Interrupt multiplexer > > > + > > > +maintainers: > > > + - Lucas Stach > > > + > >

[PATCH] orangefs: convert get_user_pages() --> pin_user_pages()

2020-05-17 Thread John Hubbard
This code was using get_user_pages*(), in a "Case 2" scenario (DMA/RDMA), using the categorization from [1]. That means that it's time to convert the get_user_pages*() + put_page() calls to pin_user_pages*() + unpin_user_pages() calls. There is some helpful background in [2]: basically, this is a

RE: [PATCH 2/2] dt-bindings: pwm: Convert imx tpm pwm to json-schema

2020-05-17 Thread Aisheng Dong
> From: Anson Huang > Sent: Thursday, May 14, 2020 2:54 PM > > Convert the imx tpm pwm binding to DT schema format using json-schema. > > Signed-off-by: Anson Huang > --- > .../devicetree/bindings/pwm/imx-tpm-pwm.txt| 22 - > .../devicetree/bindings/pwm/imx-tpm-pwm.yaml |

RE: [PATCH 1/2] dt-bindings: pwm: Convert imx pwm to json-schema

2020-05-17 Thread Aisheng Dong
> From: Anson Huang > Sent: Thursday, May 14, 2020 2:54 PM > > Convert the imx pwm binding to DT schema format using json-schema. > > Signed-off-by: Anson Huang > --- > Documentation/devicetree/bindings/pwm/imx-pwm.txt | 27 - > Documentation/devicetree/bindings/pwm/imx-pwm.yaml | 66 >

[PATCH 4/4] fs: Include FMODE_EXEC when converting flags to f_mode

2020-05-17 Thread Kees Cook
Include FMODE_EXEC when building the f_mode field, so that code can actually test the correct field and values. Only three places actually examine f_flags for FMODE_EXEC: fs/open.c: if (unlikely((f->f_mode & FMODE_EXEC) && !S_ISREG(inode->i_mode))) { include/linux/fsnotify.h: i

[PATCH 3/4] exec: Relocate path_noexec() check

2020-05-17 Thread Kees Cook
The path_noexec() check, like the regular file check, was happening too late, letting LSMs see impossible execve()s. Check it earlier as well and collect the redundant fs/exec.c path_noexec() test under the same robustness comment as the S_ISREG() check. My notes on the call path, and related argu

[PATCH 2/4] exec: Relocate S_ISREG() check

2020-05-17 Thread Kees Cook
The execve(2)/uselib(2) syscalls have always rejected non-regular files. Recently, it was noticed that a deadlock was introduced when trying to execute pipes, as the S_ISREG() test was happening too late. This was fixed in commit 73601ea5b7b1 ("fs/open.c: allow opening only regular files during exe

[PATCH 0/4] Relocate execve() sanity checks

2020-05-17 Thread Kees Cook
Hi, While looking at the code paths for the proposed O_MAYEXEC flag, I saw some things that looked like they should be fixed up. exec: Change uselib(2) IS_SREG() failure to EACCES This just regularizes the return code on uselib(2). exec: Relocate S_ISREG() check This moves th

[PATCH 1/4] exec: Change uselib(2) IS_SREG() failure to EACCES

2020-05-17 Thread Kees Cook
Change uselib(2)' S_ISREG() error return to EACCES instead of EINVAL so the behavior matches execve(2), and the seemingly documented value. The "not a regular file" failure mode of execve(2) is explicitly documented[1], but it is not mentioned in uselib(2)[2] which does, however, say that open(2) a

Re: Default enable RCU list lockdep debugging with PROVE_RCU

2020-05-17 Thread Rong Chen
On 5/18/20 5:47 AM, Paul E. McKenney wrote: On Fri, May 15, 2020 at 02:36:26PM -0400, Qian Cai wrote: On May 14, 2020, at 2:13 PM, Paul E. McKenney wrote: Fair enough! And yes, the Linux kernel is quite large, so I certainly am not asking you to test the whole thing yourself. Ok, I saw

Re: [PATCH v2] staging: wfx: Typo fix

2020-05-17 Thread Greg Kroah-Hartman
On Mon, May 18, 2020 at 07:47:29AM +0200, Mohamed Dawod wrote: > Fixing some typo errors in traces.h file > > Signed-off-by: Mohamed Dawod > --- > drivers/staging/wfx/traces.h | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) What changed from v1? Always put that below the --- line

Re: [PATCH] swap: Add percpu cluster_next to reduce lock contention on swap cache

2020-05-17 Thread Huang, Ying
Hi, Andrew, Andrew Morton writes: > On Thu, 14 May 2020 15:04:24 +0800 Huang Ying wrote: >> diff --git a/mm/swapfile.c b/mm/swapfile.c >> index 35be7a7271f4..9f1343b066c1 100644 >> --- a/mm/swapfile.c >> +++ b/mm/swapfile.c >> @@ -746,7 +746,16 @@ static int scan_swap_map_slots(struct swap_info

Re: [patch V6 04/37] x86: Make hardware latency tracing explicit

2020-05-17 Thread Andy Lutomirski
On Sun, May 17, 2020 at 1:48 AM Thomas Gleixner wrote: > > Andy Lutomirski writes: > > On Fri, May 15, 2020 at 5:10 PM Thomas Gleixner wrote: > >> > >> > >> The hardware latency tracer calls into trace_sched_clock and ends up in > >> various instrumentable functions which is problemeatic vs. the

[PATCH v2] staging: wfx: Typo fix

2020-05-17 Thread Mohamed Dawod
Fixing some typo errors in traces.h file Signed-off-by: Mohamed Dawod --- drivers/staging/wfx/traces.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/wfx/traces.h b/drivers/staging/wfx/traces.h index bb9f7e9..80e131c 100644 --- a/drivers/staging/wfx/tra

Re: [PATCH 0/3] arm64: perf: Add support for Perf NMI interrupts

2020-05-17 Thread Sumit Garg
+ Julien Hi Lecopzer, On Sat, 16 May 2020 at 18:20, Lecopzer Chen wrote: > > These series implement Perf NMI funxtionality and depends on > Pseudo NMI [1] which has been upstreamed. > > In arm64 with GICv3, Pseudo NMI was implemented for NMI-like interruts. > That can be extended to Perf NMI whi

Re: linux-next: manual merge of the kvm tree with the rcu tree

2020-05-17 Thread Stephen Rothwell
Hi all, On Mon, 18 May 2020 15:42:40 +1000 Stephen Rothwell wrote: > > Today's linux-next merge of the kvm tree got a conflict in: > > arch/x86/kvm/svm/svm.c > > between commit: > > 9f24847d8fdb ("kvm/svm: Disable KCSAN for svm_vcpu_run()") > > from the rcu tree and commits: > > a9ab

Re: general protection fault vs Oops

2020-05-17 Thread Subhashini Rao Beerisetty
On Mon, May 18, 2020 at 2:16 AM Cong Wang wrote: > > On Sat, May 16, 2020 at 9:16 AM Subhashini Rao Beerisetty > wrote: > > Yes, those are out-of-tree modules. Basically, my question is, in > > general what is the difference between 'general protection fault' and > > 'Oops' failure in kernel mode

linux-next: manual merge of the kvm tree with the rcu tree

2020-05-17 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the kvm tree got a conflict in: arch/x86/kvm/svm/svm.c between commit: 9f24847d8fdb ("kvm/svm: Disable KCSAN for svm_vcpu_run()") from the rcu tree and commits: a9ab13ff6e84 ("KVM: X86: Improve latency for single target IPI fastpath") 404d5d7bff0d (

[PATCH] drm/etnaviv: convert get_user_pages() --> pin_user_pages()

2020-05-17 Thread John Hubbard
This code was using get_user_pages*(), in a "Case 2" scenario (DMA/RDMA), using the categorization from [1]. That means that it's time to convert the get_user_pages*() + put_page() calls to pin_user_pages*() + unpin_user_pages() calls. There is some helpful background in [2]: basically, this is a

[PATCH 1/1] ALSA: hda/realtek - Fix silent output on Gigabyte X570 Aorus Xtreme

2020-05-17 Thread Christian Lachner
The Gigabyte X570 Aorus Xtreme motherboard with ALC1220 codec requires a similar workaround for Clevo laptops to enforce the DAC/mixer connection path. Set up a quirk entry for that. BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=205275 Signed-off-by: Christian Lachner --- sound/pci/hda/pa

[PATCH 0/1] Fix silent output on Gigabyte X570 Aorus Xtreme

2020-05-17 Thread Christian Lachner
The Gigabyte X570 Aorus Xtreme motherboard with ALC1220 codec requires a similar workaround for Clevo laptops to enforce the DAC/mixer connection path. This patch sets up a quirk entry for that. It was successfully tested by a user on BugZilla (see BugLink). BugLink: https://bugzilla.kernel.org/sh

Re: [PATCH 2/9] fs/ext4: Disallow verity if inode is DAX

2020-05-17 Thread Ira Weiny
On Fri, May 15, 2020 at 06:49:16PM -0700, Eric Biggers wrote: > On Tue, May 12, 2020 at 10:43:17PM -0700, ira.we...@intel.com wrote: > > From: Ira Weiny > > > > Verity and DAX are incompatible. Changing the DAX mode due to a verity > > flag change is wrong without a corresponding address_space_o

RE: [PATCH] dt-bindings: pwm: Convert mxs pwm to json-schema

2020-05-17 Thread Anson Huang
> Subject: RE: [PATCH] dt-bindings: pwm: Convert mxs pwm to json-schema > > > +title: Freescale MXS PWM controller > > + > > +maintainers: > > + - Shawn Guo > > + - Anson Huang > > + > > +properties: > > + compatible: > > +enum: > > + - fsl,imx23-pwm > > + > > + reg: > > +maxI

[PATCH] vlan: fix the bug that cannot create vlan4095

2020-05-17 Thread Huang Qijun
According to the 8021q standard, the VLAN id range is 1 to 4095. But in the register_vlan_device function, the range is 1 to 4094, because ">= VLAN_VID_MASK" is used to determine whether the id is illegal. This will prevent the creation of the vlan4095 interface: $ vconfig add sit0 4095 vco

RE: [PATCH] dt-bindings: pwm: Convert mxs pwm to json-schema

2020-05-17 Thread Aisheng Dong
> +title: Freescale MXS PWM controller > + > +maintainers: > + - Shawn Guo > + - Anson Huang > + > +properties: > + compatible: > +enum: > + - fsl,imx23-pwm > + > + reg: > +maxItems: 1 > + > + "#pwm-cells": > +const: 3 Seems you missed the reference to pwm.yaml. Regards Ai

RE: [PATCH] dt-bindings: interrupt-controller: Convert imx irqsteer to json-schema

2020-05-17 Thread Anson Huang
> Subject: RE: [PATCH] dt-bindings: interrupt-controller: Convert imx irqsteer > to > json-schema > > ... > > + > > +title: Freescale IRQSTEER Interrupt multiplexer > > + > > +maintainers: > > + - Lucas Stach > > + > > +properties: > > + compatible: > > +const: fsl,imx-irqsteer > > You

Re: [PATCH v5 27/38] xen: gntdev: fix common struct sg_table related issues

2020-05-17 Thread Jürgen Groß
On 13.05.20 15:32, Marek Szyprowski wrote: The Documentation/DMA-API-HOWTO.txt states that the dma_map_sg() function returns the number of the created entries in the DMA address space. However the subsequent calls to the dma_sync_sg_for_{device,cpu}() and dma_unmap_sg must be called with the orig

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

2020-05-17 Thread Stephen Rothwell
Hi all, On Mon, 20 Apr 2020 19:41:56 -0700 John Stultz wrote: > > On Mon, Apr 20, 2020 at 4:29 PM Stephen Rothwell > wrote: > > > > On Tue, 14 Apr 2020 18:18:11 -0700 John Stultz > > wrote: > > > > > > On Tue, Apr 14, 2020 at 5:41 PM Stephen Rothwell > > > wrote: > > > > > > > > After m

linux-next: manual merge of the tip tree with Linus' tree

2020-05-17 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in: include/linux/compiler.h between commit: a9a3ed1eff36 ("x86: Fix early boot crash on gcc-10, third try") from Linus' tree and commit: f670269a42bf ("x86: Fix early boot crash on gcc-10, next try") from the tip tree. I

[PATCH v3 3/3] mm/memory.c: Add memory read privilege before filling PTE entry

2020-05-17 Thread Bibo Mao
On mips platform, hw PTE entry valid bit is set in pte_mkyoung function, it is used to set physical page with readable privilege. Here add pte_mkyoung function to make page readable on MIPS platform during page fault handling. This patch improves page fault latency about 10% on my MIPS machine wit

[PATCH v3 2/3] mm/memory.c: Update local TLB if PTE entry exists

2020-05-17 Thread Bibo Mao
If two threads concurrently fault at the same address, the thread that won the race updates the PTE and its local TLB. For now, the other thread gives up, simply does nothing, and continues. It could happen that this second thread triggers another fault, whereby it only updates its local TLB while

[PATCH v3 1/3] MIPS: Do not flush tlb page when updating PTE entry

2020-05-17 Thread Bibo Mao
It is not necessary to flush tlb page on all CPUs if suitable PTE entry exists already during page fault handling, just updating TLB is fine. Here redefine flush_tlb_fix_spurious_fault as empty on MIPS system. Change in v2: - split flush_tlb_fix_spurious_fault and tlb update into two patches - co

Re: [PATCH] clk/ti/adpll: Add a NULL check for devm_kasprintf()

2020-05-17 Thread kbuild test robot
Hi Xu, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on clk/clk-next] [also build test WARNING on v5.7-rc6 next-20200515] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' optio

[RFC PATCH linus] RISC-V: gp_in_global can be static

2020-05-17 Thread kbuild test robot
Fixes: 52e7c52d2ded ("RISC-V: Stop relying on GCC's register allocator's hueristics") Signed-off-by: kbuild test robot --- process.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/kernel/process.c b/arch/riscv/kernel/process.c index 610c11e916068..3b2933839d4

Re: [PATCH 3/9] fs/ext4: Disallow encryption if inode is DAX

2020-05-17 Thread Ira Weiny
On Fri, May 15, 2020 at 07:02:53PM -0700, Eric Biggers wrote: > On Tue, May 12, 2020 at 10:43:18PM -0700, ira.we...@intel.com wrote: > > From: Ira Weiny > > > > Encryption and DAX are incompatible. Changing the DAX mode due to a > > change in Encryption mode is wrong without a corresponding > >

Re: [PATCH v2] drm/exynos: dsi: Remove bridge node reference in error handling path in probe function

2020-05-17 Thread Inki Dae
20. 5. 16. 오후 7:57에 Christophe JAILLET 이(가) 쓴 글: > 'exynos_dsi_parse_dt()' takes a reference to 'dsi->in_bridge_node'. > This must be released in the error handling path. Picked it up. Thanks, Inki Dae > > In order to do that, add an error handling path and move the > 'exynos_dsi_parse_dt()'

[GIT PULL] exfat fixes for 5.7-rc7

2020-05-17 Thread Namjae Jeon
Hi Linus, This is exfat fixes pull request for v5.7-rc7. I add description of this pull request on below. Please pull exfat with following fixes. Thanks! The following changes since commit b9bbe6ed63b2b9f2c9ee5cbd0f2c946a2723f4ce: Linux 5.7-rc6 (2020-05-17 16:48:37 -0700) are available in th

linux-next: build failure after merge of the keys tree

2020-05-17 Thread Stephen Rothwell
Hi all, After merging the keys tree, today's linux-next build (x86_64 allmodconfig) failed like this: x86_64-linux-gnu-ld: security/keys/big_key.o: in function `big_key_read': big_key.c:(.text+0x562): undefined reference to `chacha20poly1305_decrypt' x86_64-linux-gnu-ld: security/keys/big_key.o:

Re: [PATCH] staging: qlge: unmap dma when lock failed

2020-05-17 Thread Benjamin Poirier
On 2020-05-17 13:46 +0800, Xiangyang Zhang wrote: > DMA not unmapped when lock failed, this patch fixed it. > Fixes: 4322c5bee85e ("qlge: Expand coverage of hw lock for config register.") > Signed-off-by: Xiangyang Zhang > --- > drivers/staging/qlge/qlge_main.c | 3 ++- > 1 file changed, 2 ins

Re: [PATCH] kvm: x86: Use KVM CPU capabilities to determine CR4 reserved bits

2020-05-17 Thread Xiaoyao Li
On 5/6/2020 5:44 PM, Paolo Bonzini wrote: Using CPUID data can be useful for the processor compatibility check, but that's it. Using it to compute guest-reserved bits can have both false positives (such as LA57 and UMIP which we are already handling) and false negatives: in particular, with

Re: [PATCH v3 3/5] serial: 8250: Support separate rs485 rx-enable GPIO

2020-05-17 Thread Lukas Wunner
On Sun, May 17, 2020 at 11:56:08PM +0200, Heiko Stuebner wrote: > @@ -1457,6 +1458,7 @@ void serial8250_em485_stop_tx(struct uart_8250_port *p) >* Enable previously disabled RX interrupts. >*/ > if (!(p->port.rs485.flags & SER_RS485_RX_DURING_TX)) { > + gpiod_set_v

[PATCH] selftests/exec: Verify execve of non-regular files fail

2020-05-17 Thread Kees Cook
Add a named pipe as an exec target to make sure that non-regular files are rejected by execve() with EACCES. This can help verify commit 73601ea5b7b1 ("fs/open.c: allow opening only regular files during execve()"). Signed-off-by: Kees Cook --- tools/testing/selftests/exec/.gitignore | 1 + tools

[PATCH] ASoC: amd: raven: Make the driver name consistent across files

2020-05-17 Thread Akshu Agrawal
This fixes the issue of driver not getting auto loaded with MODULE_ALIAS. With this patch: $find /sys/devices -name modalias -print0 | xargs -0 grep -i acp3x /sys/devices/pci:00/:00:08.1/:03:00.5/acp3x_i2s_playcap.2/ modalias:platform:acp3x_i2s_playcap /sys/devices/pci:00/:00:0

RE: [PATCH] ALSA: pcm: fix incorrect hw_base increase

2020-05-17 Thread Lu, Brent
> > I tried to imagine a negative impact for this hw_ptr_jiffies update when the > DMA position is not updated from the driver and I haven't found any so far. > > Let's apply this and we'll see in future :-) > > And yes, the patch description should be improved (DMA ptr is not updated / > stream

[PATCH v2] ALSA: pcm: fix incorrect hw_base increase

2020-05-17 Thread Brent Lu
There is a corner case that ALSA keeps increasing the hw_ptr but DMA already stop working/updating the position for a long time. In following log we can see the position returned from DMA driver does not move at all but the hw_ptr got increased at some point of time so snd_pcm_avail() will return

Re: [PATCH V3 07/15] arch/kunmap_atomic: Consolidate duplicate code

2020-05-17 Thread Guenter Roeck
On Sun, May 17, 2020 at 08:49:39PM -0700, Ira Weiny wrote: > On Sat, May 16, 2020 at 03:33:06PM -0700, Guenter Roeck wrote: > > On Thu, May 07, 2020 at 07:59:55AM -0700, ira.we...@intel.com wrote: > > > From: Ira Weiny > > > > > > Every single architecture (including !CONFIG_HIGHMEM) calls... > >

linux-next: build failure after merge of the mmc tree

2020-05-17 Thread Stephen Rothwell
Hi all, After merging the mmc tree, today's linux-next build (x86_64 allmodconfig) failed like this: WARNING: modpost: missing MODULE_LICENSE() in drivers/mmc/host/meson-mx-sdhc-clkc.o see include/linux/module.h for more information ERROR: modpost: "meson_mx_sdhc_register_clkc" [drivers/mmc/hos

Re: [PATCH v6 09/10] arm64: efi: Export screen_info

2020-05-17 Thread Nikhil Mahale
On 5/13/20 7:56 PM, Nikhil Mahale wrote: > On 3/20/20 3:16 AM, Michael Kelley wrote: >> From: Arnd Bergmann Sent: Wednesday, March 18, 2020 2:27 AM >>> >>> On Wed, Mar 18, 2020 at 1:18 AM Michael Kelley >>> wrote: From: Arnd Bergmann > On Sat, Mar 14, 2020 at 4:36 PM Michael Kelley >

Re: [RFC PATCH v3 1/2] arm64: tlb: Detect the ARMv8.4 TLBI RANGE feature

2020-05-17 Thread Anshuman Khandual
On 05/11/2020 05:55 PM, Zhenyu Ye wrote: > On 2020/5/5 18:14, Mark Rutland wrote: >> On Tue, Apr 14, 2020 at 07:28:34PM +0800, Zhenyu Ye wrote: >>> ARMv8.4-TLBI provides TLBI invalidation instruction that apply to a >>> range of input addresses. This patch detect this feature. >>> >>> Signed-off

Re: [PATCH v5] hugetlbfs: Get unmapped area below TASK_UNMAPPED_BASE for hugetlbfs

2020-05-17 Thread Mike Kravetz
On 5/16/20 12:47 AM, Hushijie wrote: >> On 5/14/20 7:31 AM, Shijie Hu wrote: >>> + if (mm->get_unmapped_area == arch_get_unmapped_area) >>> + return hugetlb_get_unmapped_area_bottomup(file, addr, len, >>> + pgoff, flags); >>> + return hugetlb_get_unmapped_are

Nice to Meet you

2020-05-17 Thread info
How are you and your family? my name is Prashant Wong Lin, i am a native of Hong Kong but resides and a citizen of United Kingdom. I work with an Oil and Gas Company here in London, tell me about you? Your work etc -- This email has been checked for viruses by Avast antivirus software. https://w

[PATCH] drivers/mic/scif: convert get_user_pages() --> pin_user_pages()

2020-05-17 Thread John Hubbard
This code was using get_user_pages*(), in a "Case 2" scenario (DMA/RDMA), using the categorization from [1]. That means that it's time to convert the get_user_pages*() + put_page() calls to pin_user_pages*() + unpin_user_pages() calls. There is some helpful background in [2]: basically, this is a

Re:Re: Re:Re: [PATCH v2] drm/arm: fixes pixel clock enabled with wrong format

2020-05-17 Thread Bernard
发件人:Liviu Dudau 发送日期:2020-05-15 22:41:49 收件人:Bernard 抄送人:Brian Starkey ,David Airlie ,Daniel Vetter ,dri-de...@lists.freedesktop.org,linux-kernel@vger.kernel.org,opensource.ker...@vivo.com 主题:Re: Re:Re: [PATCH v2] drm/arm: fixes pixel clock enabled with wrong format>Hi Bernard, > >On Fri, May

Re: [PATCH v5 01/10] input: elants: document some registers and values

2020-05-17 Thread Dmitry Torokhov
On Sun, Apr 26, 2020 at 07:47:49PM +0200, Michał Mirosław wrote: > Add information found in downstream kernels, to make the code less > magic. > > Signed-off-by: Michał Mirosław > Reviewed-by: Dmitry Osipenko > Tested-by: Dmitry Osipenko > --- > drivers/input/touchscreen/elants_i2c.c | 29

Re: [PATCH v5 07/10] input: elants: support 0x66 reply opcode for reporting touches

2020-05-17 Thread Dmitry Torokhov
On Sun, Apr 26, 2020 at 07:47:52PM +0200, Michał Mirosław wrote: > From: Dmitry Osipenko > > eKTF3624 touchscreen firmware uses two variants of the reply opcodes for > reporting touch events: one is 0x63 (used by older firmware) and other is > 0x66 (used by newer firmware). The 0x66 variant is eq

Re: [PATCH v5 05/10] input: elants: refactor elants_i2c_execute_command()

2020-05-17 Thread Dmitry Torokhov
On Sun, Apr 26, 2020 at 07:47:51PM +0200, Michał Mirosław wrote: > Apply some DRY-ing to elants_i2c_execute_command() callers. This pulls > polling and error printk()s into a single function. > > Signed-off-by: Michał Mirosław Applied, thank you. -- Dmitry

Re: [PATCH v5 04/10] input: elants: override touchscreen info with DT properties

2020-05-17 Thread Dmitry Torokhov
On Sun, Apr 26, 2020 at 07:47:51PM +0200, Michał Mirosław wrote: > Allow overriding of information from hardware and support additional > common DT properties like axis inversion. This is required for eg. > Nexus 7 and TF300T where the programmed values in firmware differ > from reality. > > Signe

  1   2   3   4   5   >