x86/kprobes: kretprobe fails to triggered if kprobe at function entry is not optimized (trigger by int3 breakpoint)

2020-08-24 Thread eddy...@trendmicro.com
Greetings! Starting from kernel 5.8 (x86_64), kretprobe handler will always missed if corresponding kprobe on function entry is not optimized (using break point instead). Step to reproduce this: 1) Build the kretprobe example module (CONFIG_SAMPLE_KRETPROBES=m) 2) Disable jump optimization (`sys

Re: [PATCH v2 1/2] Add UFFD_USER_MODE_ONLY

2020-08-24 Thread Sebastian Andrzej Siewior
On 2020-08-21 18:40:17 [-0700], Lokesh Gidra wrote: > --- a/fs/userfaultfd.c > +++ b/fs/userfaultfd.c > @@ -1966,6 +1969,7 @@ static void init_once_userfaultfd_ctx(void *mem) > > SYSCALL_DEFINE1(userfaultfd, int, flags) > { > + static const int uffd_flags = UFFD_USER_MODE_ONLY; > stru

Re: [PATCH] ALSA: hda/realtek: Add quirk for Samsung Galaxy Book Ion 15 inches

2020-08-24 Thread Alex Dewar
My mistake -- I didn't read your changelog properly. Sorry! On 24/08/2020 13:30, Alex Dewar wrote: There's a mistake in this. The ID numbers are the wrong way round. Alex

[PATCH] sched/fair: Fix wrong cpu selecting from isolated domain

2020-08-24 Thread Xunlei Pang
We've met problems that occasionally tasks with full cpumask (e.g. by putting it into a cpuset or setting to full affinity) were migrated to our isolated cpus in production environment. After some analysis, we found that it is due to the current select_idle_smt() not considering the sched_domain m

Re: [PATCH] ALSA: hda/realtek: Add quirk for Samsung Galaxy Book Ion 15 inches

2020-08-24 Thread Alex Dewar
There's a mistake in this. The ID numbers are the wrong way round. Alex

Re: [mm] c566586818: BUG:kernel_hang_in_early-boot_stage,last_printk:Probing_EDD(edd=off_to_disable)...ok

2020-08-24 Thread Qian Cai
On Mon, Aug 24, 2020 at 10:47:20AM +0800, Rong Chen wrote: > > > On 8/21/20 9:01 AM, Qian Cai wrote: > > On Tue, Aug 18, 2020 at 08:23:51AM +0800, kernel test robot wrote: > > > Greeting, > > > > > > FYI, we noticed the following commit (built with gcc-9): > > > > > > commit: c5665868183fec689d

[PATCH] media: dvbdev: Fix memleak in dvb_register_device

2020-08-24 Thread Dinghao Liu
When device_create() fails, dvbdev and dvbdevfops should be freed just like when dvb_register_media_device() fails. Signed-off-by: Dinghao Liu --- drivers/media/dvb-core/dvbdev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/media/dvb-core/dvbdev.c b/drivers/media/dvb-core/dvbde

[PATCH 3/5] Add manpage for fspick(2)

2020-08-24 Thread David Howells
Add a manual page to document the fspick() system call. Signed-off-by: David Howells --- man2/fspick.2 | 180 + 1 file changed, 180 insertions(+) create mode 100644 man2/fspick.2 diff --git a/man2/fspick.2 b/man2/fspick.2 new file mode

[PATCH 4/5] Add manpage for fsopen(2) and fsmount(2)

2020-08-24 Thread David Howells
Add a manual page to document the fsopen() and fsmount() system calls. Signed-off-by: David Howells --- man2/fsmount.2 |1 man2/fsopen.2 | 245 2 files changed, 246 insertions(+) create mode 100644 man2/fsmount.2 create mode 1006

[PATCH 2/5] Add manpages for move_mount(2)

2020-08-24 Thread David Howells
Add manual pages to document the move_mount() system call. Signed-off-by: David Howells --- man2/move_mount.2 | 267 + 1 file changed, 267 insertions(+) create mode 100644 man2/move_mount.2 diff --git a/man2/move_mount.2 b/man2/move_mount.2

[PATCH 1/5] Add manpage for open_tree(2)

2020-08-24 Thread David Howells
Add a manual page to document the open_tree() system call. Signed-off-by: David Howells --- man2/open_tree.2 | 249 ++ 1 file changed, 249 insertions(+) create mode 100644 man2/open_tree.2 diff --git a/man2/open_tree.2 b/man2/open_tree.2 ne

[PATCH 5/5] Add manpage for fsconfig(2)

2020-08-24 Thread David Howells
Add a manual page to document the fsconfig() system call. Signed-off-by: David Howells --- man2/fsconfig.2 | 277 +++ 1 file changed, 277 insertions(+) create mode 100644 man2/fsconfig.2 diff --git a/man2/fsconfig.2 b/man2/fsconfig.2 new fi

[RFD] x86: Curing the exception and syscall trainwreck in hardware

2020-08-24 Thread Thomas Gleixner
It's a sad state of affairs that I have to write this mail at all and it's nothing else than an act of desperation. The x86 exception handling including the various ways of syscall entry/exit are a constant source of trouble. Aside of being a functional disaster quite some of these issues have sev

Re: [RFC PATCH 1/3] opp: Reduce code duplication in _set_required_opps()

2020-08-24 Thread Stephan Gerhold
On Mon, Aug 24, 2020 at 05:40:04PM +0530, Viresh Kumar wrote: > On 24-08-20, 13:30, Stephan Gerhold wrote: > > You're right. Not sure why I removed it. > > > > I suspect I had it in _set_required_opp() at some point, but I moved > > code around several times until I was happy with the result. > >

Re: [PATCH v6 12/12] mm,hwpoison: double-check page count in __get_any_page()

2020-08-24 Thread Oscar Salvador
On Thu, Aug 06, 2020 at 06:49:23PM +, nao.horigu...@gmail.com wrote: > From: Naoya Horiguchi > > Soft offlining could fail with EIO due to the race condition with > hugepage migration. This issuse became visible due to the change by > previous patch that makes soft offline handler take page r

[PATCH] MAINTAINERS: Update Cavium/Marvell entries

2020-08-24 Thread Robert Richter
I am leaving Marvell and already do not have access to my @marvell.com email address. So switching over to my korg mail address or removing my address there another maintainer is already listed. For the entries there no other maintainer is listed I will keep looking into patches for Cavium systems

Re: [PATCH 06/11] evm: Allow setxattr() and setattr() if metadata digest won't change

2020-08-24 Thread Mimi Zohar
On Thu, 2020-06-18 at 18:04 +0200, Roberto Sassu wrote: > If metadata are immutable, they cannot be changed. If metadata are already > set to the final value before cp and tar restore the value from the source, > those applications display an error even if the operation is legitimate > (they don't

Re: [PATCH 07/11] evm: Set IMA_CHANGE_XATTR/ATTR bit if EVM_ALLOW_METADATA_WRITES is set

2020-08-24 Thread Mimi Zohar
On Thu, 2020-06-18 at 18:04 +0200, Roberto Sassu wrote: > When EVM_ALLOW_METADATA_WRITES is set, EVM allows any operation on > metadata. Its main purpose is to allow users to freely set metadata when > they are protected by a portable signature, until the HMAC key is loaded. > > However, IMA is no

Re: [PATCH 05/11] evm: Allow xattr/attr operations for portable signatures if check fails

2020-08-24 Thread Mimi Zohar
On Thu, 2020-06-18 at 18:01 +0200, Roberto Sassu wrote: > If files with portable signatures are copied from one location to another > or are extracted from an archive, verification can temporarily fail until > all xattrs/attrs are set in the destination. Portable signatures are the > only ones that

[PATCH] ALSA: hda/realtek: Add quirk for Samsung Galaxy Book Ion 15 inches

2020-08-24 Thread Adrien Crivelli
The Galaxy Book Ion 15 inches uses the same ALC298 codec as other Samsung laptops which have the no headphone sound bug. I confirmed on my own hardware that this fixes the bug. Commit e17f02d05 mixed up 13 inches and 15 inches models. This clarifies the situation with the correct model names. Bug

Re: [PATCHv2 1/3] ext4: Refactor ext4_overwrite_io() to take ext4_map_blocks as argument

2020-08-24 Thread Dan Carpenter
Hi Ritesh, I love your patch! Perhaps something to improve: [auto build test WARNING on v5.9-rc1] [cannot apply to ext4/dev next-20200821] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm

Re: [PATCH 04/11] evm: Check size of security.evm before using it

2020-08-24 Thread Mimi Zohar
On Thu, 2020-06-18 at 18:01 +0200, Roberto Sassu wrote: > This patch checks the size for the EVM_IMA_XATTR_DIGSIG and > EVM_XATTR_PORTABLE_DIGSIG types to ensure that the algorithm is read from > the buffer returned by vfs_getxattr_alloc(). > > Cc: sta...@vger.kernel.org # 4.19.x > Fixes: 5feeb611

Re: [RFC PATCH 1/3] opp: Reduce code duplication in _set_required_opps()

2020-08-24 Thread Viresh Kumar
On 24-08-20, 13:30, Stephan Gerhold wrote: > You're right. Not sure why I removed it. > > I suspect I had it in _set_required_opp() at some point, but I moved > code around several times until I was happy with the result. > > We should just add it back. > Should I send a v2 with it fixed or would

Re: [PATCH] i2c: i2c-rcar: Auto select RESET_CONTROLLER

2020-08-24 Thread Wolfram Sang
> + select RESET_CONTROLLER Only needed for Gen3, so 'if ARCH_RCAR_GEN3'? signature.asc Description: PGP signature

Re: [PATCH v2 10/10] mm/memory_hotplug: mark pageblocks MIGRATE_ISOLATE while onlining memory

2020-08-24 Thread Oscar Salvador
On Wed, Aug 19, 2020 at 07:59:57PM +0200, David Hildenbrand wrote: > Currently, it can happen that pages are allocated (and freed) via the buddy > before we finished basic memory onlining. > > For example, pages are exposed to the buddy and can be allocated before > we actually mark the sections o

Re: [RESEND PATCH v3 7/8] mtd: spi-nor: Convert cadence-quadspi to use spi-mem framework

2020-08-24 Thread Jan Kiszka
On 24.08.20 13:44, Vignesh Raghavendra wrote: > Hi Jan, > > On 8/24/20 11:25 AM, Jan Kiszka wrote: > [...] > >>> +MODULE_AUTHOR("Vignesh Raghavendra "); >>> >> On the AM65x, this changes mtd->name (thus mtd-id for >> parser/cmdlinepart) from 4704.spi.0 to spi7.0. The besides having to >> deal

Re: [RESEND PATCH v3 7/8] mtd: spi-nor: Convert cadence-quadspi to use spi-mem framework

2020-08-24 Thread Boris Brezillon
On Mon, 24 Aug 2020 17:14:56 +0530 Vignesh Raghavendra wrote: > Hi Jan, > > On 8/24/20 11:25 AM, Jan Kiszka wrote: > [...] > > >> +MODULE_AUTHOR("Vignesh Raghavendra "); > >> > > On the AM65x, this changes mtd->name (thus mtd-id for > > parser/cmdlinepart) from 4704.spi.0 to spi7.0. The b

Re: [PATCH 01/12] staging: wfx: fix BA when device is AP and MFP is enabled

2020-08-24 Thread Jérôme Pouiller
On Monday 24 August 2020 11:50:42 CEST Dan Carpenter wrote: > On Thu, Aug 20, 2020 at 05:58:47PM +0200, Jerome Pouiller wrote: > > From: Jérôme Pouiller > > > > The protection of the management frames is mainly done by mac80211. > > However, frames for the management of the BlockAck sessions are d

Re: [PATCH 2/3] memory: samsung: exynos5422-dmc: remove unused exynos5_dmc members

2020-08-24 Thread Krzysztof Kozlowski
On Mon, Aug 24, 2020 at 12:43:33PM +0100, Lukasz Luba wrote: > Hi Krzysztof, > > On 8/22/20 5:32 PM, Krzysztof Kozlowski wrote: > > The struct exynos5_dmc members bypass_rate, mx_mspll_ccore_phy, > > mout_mx_mspll_ccore_phy and opp_bypass are not actually used. > > > > Apparently there was a plan

Re: [PATCH] workqueue: Use wake_up_worker() to wake up first idle worker

2020-08-24 Thread linmiaohe
friendly ping :) >Miaohe Lin wrote: >From: Miaohe Lin > >Use wrapper function wake_up_worker() to wake up first idle worker. > >Signed-off-by: Miaohe Lin >--- > kernel/workqueue.c | 10 -- > 1 file changed, 4 insertions(+), 6 deletions(-) > >diff --git a/kernel/workqueue.c b/kernel/workq

Re: [PATCH v2 5/8] x86/debug: Simplify #DB signal code

2020-08-24 Thread peterz
On Mon, Aug 24, 2020 at 12:26:01PM +0100, Andrew Cooper wrote: > > INT1 is a trap, > > instruction breakpoint is a fault > > > > So if you have: > > > > INT1 > > 1: some-instr > > > > and set an X breakpoint on 1, we'll loose the INT1, right? > > You should get two.  First with a dr6 of 0 (I

Re: [PATCH v2 09/10] mm: pass migratetype into memmap_init_zone() and move_pfn_range_to_zone()

2020-08-24 Thread Oscar Salvador
On Wed, Aug 19, 2020 at 07:59:56PM +0200, David Hildenbrand wrote: > On the memory onlining path, we want to start with MIGRATE_ISOLATE, to > un-isolate the pages after memory onlining is complete. Let's allow > passing in the migratetype. > > Acked-by: Michal Hocko > Cc: Andrew Morton > Cc: Mic

Re: [PATCH] netlink: remove duplicated nla_need_padding_for_64bit() check

2020-08-24 Thread linmiaohe
friendly ping :) >Miaohe Lin wrote: >From: Miaohe Lin > >The need for padding 64bit is implicitly checked by nla_align_64bit(), so >remove this explicit one. > >Signed-off-by: Miaohe Lin >--- > lib/nlattr.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > >diff --git a/lib/nlattr.c b

Re: [RFC PATCH 3/3] opp: Power on (virtual) power domains managed by the OPP core

2020-08-24 Thread Stephan Gerhold
On Mon, Aug 24, 2020 at 04:57:44PM +0530, Viresh Kumar wrote: > On 30-07-20, 10:01, Stephan Gerhold wrote: > > dev_pm_opp_attach_genpd() allows attaching an arbitrary number of > > power domains to an OPP table. In that case, the genpd core will > > create a virtual device for each of the power dom

[PATCH] mm/mempool: Add 'else' to split mutually exclusive case

2020-08-24 Thread Miaohe Lin
Add else to split mutually exclusive case and avoid some unnecessary check. Signed-off-by: Miaohe Lin --- mm/mempool.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/mm/mempool.c b/mm/mempool.c index 79bff63ecf27..73fb2e548b43 100644 --- a/mm/mempool.c +++ b/mm/me

Re: Re:Re: [PATCH] powerpc: Fix a bug in __div64_32 if divisor is zero

2020-08-24 Thread Guohua Zhong
>> Yet, I have noticed that there is no checking of 'base' in these functions. >> But I am not sure how to check is better.As we know that the result is >> undefined when divisor is zero. It maybe good to print error and dump stack. >> Let the process to know that the divisor is zero by sending S

Re: [PATCH v2 0/6] kasan: add workqueue and timer stack for generic KASAN

2020-08-24 Thread Marco Elver
On Mon, 24 Aug 2020 at 10:07, Walter Wu wrote: > > Syzbot reports many UAF issues for workqueue or timer, see [1] and [2]. > In some of these access/allocation happened in process_one_work(), > we see the free stack is useless in KASAN report, it doesn't help > programmers to solve UAF on workqueu

Re: [PATCH v2 5/6] kasan: add tests for workqueue stack recording

2020-08-24 Thread Marco Elver
On Mon, 24 Aug 2020 at 10:14, Walter Wu wrote: > > Adds a test to verify workqueue stack recording and print it in > KASAN report. > > The KASAN report was as follows(cleaned up slightly): > > BUG: KASAN: use-after-free in kasan_workqueue_uaf > > Freed by task 54: > kasan_save_stack+0x24/0x50

Re: [PATCH v2 6/6] kasan: update documentation for generic kasan

2020-08-24 Thread Marco Elver
On Mon, 24 Aug 2020 at 10:14, Walter Wu wrote: > > Generic KASAN support to record the last two timer and workqueue > stacks and print them in KASAN report. So that need to update > documentation. > > Signed-off-by: Walter Wu > Cc: Andrey Ryabinin > Cc: Dmitry Vyukov > Cc: Alexander Potapenko

[PATCH] net: Use helper macro RT_TOS() in __icmp_send()

2020-08-24 Thread Miaohe Lin
Use helper macro RT_TOS() to get tos in __icmp_send(). Signed-off-by: Miaohe Lin --- net/ipv4/icmp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/ipv4/icmp.c b/net/ipv4/icmp.c index cf36f955bfe6..3b387dc3864f 100644 --- a/net/ipv4/icmp.c +++ b/net/ipv4/icmp.c @@ -6

Re: [RESEND PATCH v3 7/8] mtd: spi-nor: Convert cadence-quadspi to use spi-mem framework

2020-08-24 Thread Vignesh Raghavendra
Hi Jan, On 8/24/20 11:25 AM, Jan Kiszka wrote: [...] >> +MODULE_AUTHOR("Vignesh Raghavendra "); >> > On the AM65x, this changes mtd->name (thus mtd-id for > parser/cmdlinepart) from 4704.spi.0 to spi7.0. The besides having to > deal with both names now, "spi7" sounds like it could easily chan

Re: [RESEND PATCH v3 5/8] mtd: spi-nor: cadence-quadspi: Handle probe deferral while requesting DMA channel

2020-08-24 Thread Vignesh Raghavendra
On 8/22/20 11:35 PM, Jan Kiszka wrote: > On 01.06.20 09:04, Vignesh Raghavendra wrote: >> dma_request_chan_by_mask() can throw EPROBE_DEFER if DMA provider >> is not yet probed. Currently driver just falls back to using PIO mode >> (which is less efficient) in this case. Instead return probe def

Re: [PATCH v2 3/7] KVM: SVM: refactor msr permission bitmap allocation

2020-08-24 Thread Maxim Levitsky
On Thu, 2020-08-20 at 14:26 -0700, Jim Mattson wrote: > On Thu, Aug 20, 2020 at 6:34 AM Maxim Levitsky wrote: > > Replace svm_vcpu_init_msrpm with svm_vcpu_alloc_msrpm, that also allocates > > the msr bitmap and add svm_vcpu_free_msrpm to free it. > > > > This will be used later to move the neste

Re: [PATCH 2/3] memory: samsung: exynos5422-dmc: remove unused exynos5_dmc members

2020-08-24 Thread Lukasz Luba
Hi Krzysztof, On 8/22/20 5:32 PM, Krzysztof Kozlowski wrote: The struct exynos5_dmc members bypass_rate, mx_mspll_ccore_phy, mout_mx_mspll_ccore_phy and opp_bypass are not actually used. Apparently there was a plan to store the OPP for the bypass mode in opp_bypass member, but drivers fails to

Re: [PATCH v4 2/2] staging: android: Remove BUG from ion_system_heap.c

2020-08-24 Thread Dan Carpenter
On Mon, Aug 24, 2020 at 02:27:08PM +0300, Dan Carpenter wrote: > On Mon, Aug 24, 2020 at 02:24:57PM +0300, Dan Carpenter wrote: > > On Fri, Aug 21, 2020 at 09:25:26AM -0700, Randy Dunlap wrote: > > > On 8/21/20 8:28 AM, Tomer Samara wrote: > > > > Remove BUG() from ion_sytem_heap.c > > > > > > > >

Re: [RFC PATCH 2/3] opp: Set required OPPs in reverse order when scaling down

2020-08-24 Thread Stephan Gerhold
On Mon, Aug 24, 2020 at 05:00:27PM +0530, Viresh Kumar wrote: > On 21-08-20, 18:31, Stephan Gerhold wrote: > > This patch does not apply anymore after the cleanup you pushed to > > opp/linux-next. I would be happy to send a v2 with that fixed. > > > > On my other OPP patch set you mentioned that y

Re: [PATCH 1/2] Revert "drivers: qcom: rpmh-rsc: Use rcuidle tracepoints for rpmh"

2020-08-24 Thread Ulf Hansson
On Wed, 19 Aug 2020 at 12:08, Maulik Shah wrote: > > This change was done based on an test results of unmerged series of > adding RSC power domain and using .power_off callback of genpd to > invoke rpmh_flush(). > > Call trace: > dump_backtrace+0x0/0x174 > show_stack+0x20/0x2c >

Re: [PATCH V2 1/2] opp: Allow dev_pm_opp_get_opp_table() to return -EPROBE_DEFER

2020-08-24 Thread Stephan Gerhold
On Mon, Aug 24, 2020 at 02:39:32PM +0530, Viresh Kumar wrote: > From: Stephan Gerhold > > The OPP core manages various resources, e.g. clocks or interconnect paths. > These resources are looked up when the OPP table is allocated once > dev_pm_opp_get_opp_table() is called the first time (either d

Re: [PATCH 00/18] Convert arch/arm to use iommu-dma

2020-08-24 Thread Marek Szyprowski
Hi Robin, On 20.08.2020 17:08, Robin Murphy wrote: > Hi all, > > After 5 years or so of intending to get round to this, finally the > time comes! The changes themselves actualy turn out to be relatively > mechanical; the bigger concern appears to be how to get everything > merged across about 5 di

Re: [PATCH v2 2/7] KVM: nSVM: rename nested 'vmcb' to vmcb12_gpa in few places

2020-08-24 Thread Maxim Levitsky
On Thu, 2020-08-20 at 14:00 -0700, Jim Mattson wrote: > On Thu, Aug 20, 2020 at 6:33 AM Maxim Levitsky wrote: > > No functional changes. > > > > Signed-off-by: Maxim Levitsky > > --- > > arch/x86/kvm/svm/nested.c | 10 +- > > arch/x86/kvm/svm/svm.c| 13 +++-- > > arch/x86/kv

Re: [PATCH v1 3/6] leds: Add driver for Acer Iconia Tab A500

2020-08-24 Thread Dmitry Osipenko
24.08.2020 01:30, Pavel Machek пишет: >> +orange_led->cdev.name = "power-button-orange"; > > "orange:power" -- or what is this LED usually used for? The orange LED is supposed to indicate that battery is charging up.

[PATCH] net: gain ipv4 mtu when mtu is not locked

2020-08-24 Thread Miaohe Lin
When mtu is locked, we should not obtain ipv4 mtu as we return immediately in this case and leave acquired ipv4 mtu unused. Signed-off-by: Miaohe Lin --- net/ipv4/route.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/ipv4/route.c b/net/ipv4/route.c index 8ca6bcab7b03.

RE: [PATCH 1/5] dt-bindings: pci: rcar-pci-ep: Document r8a774a1 and r8a774b1

2020-08-24 Thread Yoshihiro Shimoda
Hi Lad-san, > From: Lad Prabhakar, Sent: Saturday, August 15, 2020 2:31 AM > > Document the support for R-Car PCIe EP on R8A774A1 and R8A774B1 SoC > devices. > > Also constify "renesas,rcar-gen3-pcie-ep" so that it can be used as > fallback compatible string for R-Car Gen3 and RZ/G2 devices as t

Re: [PATCH 2/2] ARM: dts: exynos: Remove interrupts from DMC controller in Exynos5422

2020-08-24 Thread Lukasz Luba
On 8/21/20 7:32 AM, Krzysztof Kozlowski wrote: On Fri, 21 Aug 2020 at 08:31, Krzysztof Kozlowski wrote: On Mon, 17 Aug 2020 at 19:17, Lukasz Luba wrote: Hi Krzysztof, On 8/17/20 4:50 PM, Krzysztof Kozlowski wrote: On Wed, Jul 08, 2020 at 04:34:20PM +0100, Lukasz Luba wrote: The interr

[PATCH stable-5.4.y backport 2/2] KVM: arm64: Only reschedule if MMU_NOTIFIER_RANGE_BLOCKABLE is not set

2020-08-24 Thread Will Deacon
commit b5331379bc62611d1026173a09c73573384201d9 upstream. When an MMU notifier call results in unmapping a range that spans multiple PGDs, we end up calling into cond_resched_lock() when crossing a PGD boundary, since this avoids running into RCU stalls during VM teardown. Unfortunately, if the VM

[PATCH stable-5.7.y backport 1/2] KVM: Pass MMU notifier range flags to kvm_unmap_hva_range()

2020-08-24 Thread Will Deacon
commit fdfe7cbd58806522e799e2a50a15aee7f2cbb7b6 upstream. The 'flags' field of 'struct mmu_notifier_range' is used to indicate whether invalidate_range_{start,end}() are permitted to block. In the case of kvm_mmu_notifier_invalidate_range_start(), this field is not forwarded on to the architecture

Re: [RFC PATCH 1/3] opp: Reduce code duplication in _set_required_opps()

2020-08-24 Thread Stephan Gerhold
On Mon, Aug 24, 2020 at 04:48:20PM +0530, Viresh Kumar wrote: > On 30-07-20, 10:01, Stephan Gerhold wrote: > > Move call to dev_pm_genpd_set_performance_state() to a separate > > function so we can avoid duplicating the code for the single and > > multiple genpd case. > > > > Signed-off-by: Stepha

Re: [RFC] Design proposal for upstream core-scheduling interface

2020-08-24 Thread Vineeth Pillai
> Let me know your thoughts and looking forward to a good LPC MC discussion! > Nice write up Joel, thanks for taking time to compile this with great detail! After going through the details of interface proposal using cgroup v2 controllers, and based on our discussion offline, would like to note d

[PATCH stable-5.8.y backport 1/2] KVM: Pass MMU notifier range flags to kvm_unmap_hva_range()

2020-08-24 Thread Will Deacon
commit fdfe7cbd58806522e799e2a50a15aee7f2cbb7b6 upstream. The 'flags' field of 'struct mmu_notifier_range' is used to indicate whether invalidate_range_{start,end}() are permitted to block. In the case of kvm_mmu_notifier_invalidate_range_start(), this field is not forwarded on to the architecture

[PATCH stable-5.7.y backport 2/2] KVM: arm64: Only reschedule if MMU_NOTIFIER_RANGE_BLOCKABLE is not set

2020-08-24 Thread Will Deacon
commit b5331379bc62611d1026173a09c73573384201d9 upstream. When an MMU notifier call results in unmapping a range that spans multiple PGDs, we end up calling into cond_resched_lock() when crossing a PGD boundary, since this avoids running into RCU stalls during VM teardown. Unfortunately, if the VM

[PATCH stable-5.8.y backport 2/2] KVM: arm64: Only reschedule if MMU_NOTIFIER_RANGE_BLOCKABLE is not set

2020-08-24 Thread Will Deacon
commit b5331379bc62611d1026173a09c73573384201d9 upstream. When an MMU notifier call results in unmapping a range that spans multiple PGDs, we end up calling into cond_resched_lock() when crossing a PGD boundary, since this avoids running into RCU stalls during VM teardown. Unfortunately, if the VM

[PATCH stable-5.4.y backport 1/2] KVM: Pass MMU notifier range flags to kvm_unmap_hva_range()

2020-08-24 Thread Will Deacon
commit fdfe7cbd58806522e799e2a50a15aee7f2cbb7b6 upstream. The 'flags' field of 'struct mmu_notifier_range' is used to indicate whether invalidate_range_{start,end}() are permitted to block. In the case of kvm_mmu_notifier_invalidate_range_start(), this field is not forwarded on to the architecture

Re: [RFC PATCH 2/3] opp: Set required OPPs in reverse order when scaling down

2020-08-24 Thread Viresh Kumar
On 21-08-20, 18:31, Stephan Gerhold wrote: > This patch does not apply anymore after the cleanup you pushed to > opp/linux-next. I would be happy to send a v2 with that fixed. > > On my other OPP patch set you mentioned that you might apply these > directly with some of your own changes - would yo

[PATCH stable-4.19.y backport 1/2] KVM: Pass MMU notifier 'blockable' flag to kvm_unmap_hva_range()

2020-08-24 Thread Will Deacon
commit fdfe7cbd58806522e799e2a50a15aee7f2cbb7b6 upstream. The 'blockable' flag passed to the 'invalidate_range_start()' call back of 'struct mmu_notifier' is used to indicate whether the function is permitted to block. In the case of kvm_mmu_notifier_invalidate_range_start(), this field is not for

[PATCH stable-4.19.y backport 2/2] KVM: arm64: Only reschedule if 'blockable'

2020-08-24 Thread Will Deacon
commit b5331379bc62611d1026173a09c73573384201d9 upstream. When an MMU notifier call results in unmapping a range that spans multiple PGDs, we end up calling into cond_resched_lock() when crossing a PGD boundary, since this avoids running into RCU stalls during VM teardown. Unfortunately, if the VM

[PATCH stable-4.9.y backport] KVM: arm/arm64: Don't reschedule in unmap_stage2_range()

2020-08-24 Thread Will Deacon
Upstream commits fdfe7cbd5880 ("KVM: Pass MMU notifier range flags to kvm_unmap_hva_range()") and b5331379bc62 ("KVM: arm64: Only reschedule if MMU_NOTIFIER_RANGE_BLOCKABLE is not set") fix a "sleeping from invalid context" BUG caused by unmap_stage2_range() attempting to reschedule when called on

[PATCH stable-4.14.y backport] KVM: arm/arm64: Don't reschedule in unmap_stage2_range()

2020-08-24 Thread Will Deacon
Upstream commits fdfe7cbd5880 ("KVM: Pass MMU notifier range flags to kvm_unmap_hva_range()") and b5331379bc62 ("KVM: arm64: Only reschedule if MMU_NOTIFIER_RANGE_BLOCKABLE is not set") fix a "sleeping from invalid context" BUG caused by unmap_stage2_range() attempting to reschedule when called on

[PATCH stable-4.4.y backport] KVM: arm/arm64: Don't reschedule in unmap_stage2_range()

2020-08-24 Thread Will Deacon
Upstream commits fdfe7cbd5880 ("KVM: Pass MMU notifier range flags to kvm_unmap_hva_range()") and b5331379bc62 ("KVM: arm64: Only reschedule if MMU_NOTIFIER_RANGE_BLOCKABLE is not set") fix a "sleeping from invalid context" BUG caused by unmap_stage2_range() attempting to reschedule when called on

Re: [RFC PATCH 3/3] opp: Power on (virtual) power domains managed by the OPP core

2020-08-24 Thread Viresh Kumar
On 30-07-20, 10:01, Stephan Gerhold wrote: > dev_pm_opp_attach_genpd() allows attaching an arbitrary number of > power domains to an OPP table. In that case, the genpd core will > create a virtual device for each of the power domains. > > At the moment, the OPP core only calls > dev_pm_genpd_set_p

Re: [PATCH v4 2/2] staging: android: Remove BUG from ion_system_heap.c

2020-08-24 Thread Dan Carpenter
On Mon, Aug 24, 2020 at 02:24:57PM +0300, Dan Carpenter wrote: > On Fri, Aug 21, 2020 at 09:25:26AM -0700, Randy Dunlap wrote: > > On 8/21/20 8:28 AM, Tomer Samara wrote: > > > Remove BUG() from ion_sytem_heap.c > > > > > > this fix the following checkpatch issue: > > > Avoid crashing the kernel -

Re: [PATCH v4 2/2] staging: android: Remove BUG from ion_system_heap.c

2020-08-24 Thread Dan Carpenter
On Fri, Aug 21, 2020 at 09:25:26AM -0700, Randy Dunlap wrote: > On 8/21/20 8:28 AM, Tomer Samara wrote: > > Remove BUG() from ion_sytem_heap.c > > > > this fix the following checkpatch issue: > > Avoid crashing the kernel - try using WARN_ON & > > recovery code ratherthan BUG() or BUG_ON(). > > >

Re: [PATCH v2 5/8] x86/debug: Simplify #DB signal code

2020-08-24 Thread Andrew Cooper
On 24/08/2020 12:05, pet...@infradead.org wrote: > On Sun, Aug 23, 2020 at 04:09:42PM -0700, Andy Lutomirski wrote: >> On Fri, Aug 21, 2020 at 3:21 AM Peter Zijlstra wrote: >>> Get rid of the two variables, avoid computing si_code when not needed >>> and be consistent about which dr6 value is used

Re: [PATCH] spi: spi-fsl-dspi: Add ACPI support

2020-08-24 Thread Mark Brown
On Sat, Aug 22, 2020 at 06:21:18PM +0300, Vladimir Oltean wrote: > On Sat, Aug 22, 2020 at 07:37:25PM +0530, Kuldip Dwivedi wrote: > > > The whole point with the device property API is that it works with > > > both DT and ACPI without needing separate parsing, though in this > > > case I'm wonderi

Re: [PATCH v4 1/2] staging: android: Remove BUG_ON from ion_page_pool.c

2020-08-24 Thread Dan Carpenter
On Fri, Aug 21, 2020 at 06:27:37PM +0300, Tomer Samara wrote: > BUG_ON() is removed at ion_page_pool.c > > Fixes the following issue: > Avoid crashing the kernel - try using WARN_ON & recovery code ratherthan > BUG() or BUG_ON(). > > Signed-off-by: Tomer Samara > --- You should put a note here

[PATCH] mailmap: add entry for

2020-08-24 Thread Mark Starovoytov
Map the address to my private mail, because my Marvell account has been suspended. Signed-off-by: Mark Starovoytov --- .mailmap | 1 + 1 file changed, 1 insertion(+) diff --git a/.mailmap b/.mailmap index 332c7833057f..4cf029cff065 100644 --- a/.mailmap +++ b/.mailmap @@ -191,6 +191,7 @@ Macie

Re: [PATCH v5 2/2] Add Intel LGM soc DMA support.

2020-08-24 Thread Peter Ujfalusi
Hi, On 24/08/2020 5.30, Reddy, MallikarjunaX wrote: >>> +static void dma_free_desc_resource(struct virt_dma_desc *vdesc) >>> +{ >>> +    struct dw2_desc_sw *ds = to_lgm_dma_desc(vdesc); >>> +    struct ldma_chan *c = ds->chan; >>> + >>> +    dma_pool_free(c->desc_pool, ds->desc_hw, ds->desc_phys)

[PATCH] workqueue: Warning when work try to flush own workqueue

2020-08-24 Thread Qianli Zhao
From: Qianli Zhao In a work process context,flush own workqueue or work self will cause process blocked(enter state D),leading to a deadlock,catch this wrong use,warn when the issue happened crash> ps 10856 PIDPPID CPU TASK ST COMM 108562 2 ffc873428080 UN [kworke

Re: [RFC PATCH 1/3] opp: Reduce code duplication in _set_required_opps()

2020-08-24 Thread Viresh Kumar
On 30-07-20, 10:01, Stephan Gerhold wrote: > Move call to dev_pm_genpd_set_performance_state() to a separate > function so we can avoid duplicating the code for the single and > multiple genpd case. > > Signed-off-by: Stephan Gerhold > --- > drivers/opp/core.c | 40 +-

Re: [PATCH v2 00/13] extcon: ptn5150: Improvements and fixes

2020-08-24 Thread Chanwoo Choi
Hi, On 8/24/20 7:36 PM, Ramuthevar, Vadivel MuruganX wrote: > Hi, > >  Thank you for the patches and optimized the code as well. >  I have applied your patches and tested, it's working fine >  with few minor changes as per Intel's LGM board. Thanks for the test. > >  can I send the patches alo

[PATCH] net: Avoid access icmp_err_convert when icmp code is ICMP_FRAG_NEEDED

2020-08-24 Thread Miaohe Lin
There is no need to fetch errno and fatal info from icmp_err_convert when icmp code is ICMP_FRAG_NEEDED. Signed-off-by: Miaohe Lin --- net/ipv4/raw.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/net/ipv4/raw.c b/net/ipv4/raw.c index 6fd4330287c2..ea4c36e93824 100644 -

Re: [PATCH 4.9 15/39] jbd2: add the missing unlock_buffer() in the error path of jbd2_write_superblock()

2020-08-24 Thread zhangyi (F)
Hi,Greg The problem this patch want to fix only exists on the kernel both 538bcaa6261b and 742b06b5628f these two upstream patches were merged, but 538bcaa6261b was not merged to 4.9, so we don't need this patch for 4.9. Thanks, Yi. On 2020/8/24 16:31, Greg Kroah-Hartman wrote: > From: zhangyi (

Re: [PATCH v3] usb-serial:cp210x: add support to software flow control

2020-08-24 Thread Johan Hovold
On Mon, Aug 24, 2020 at 10:16:13AM +, Wang, Sheng Long wrote: > Hi, Johan > > So, Is it currently possible for me to use which Branch? :) > > https://github.com/torvalds/linux master branch > > Or use https://git.kernel.org/pub/scm/linux/kernel/git/johan/usb-serial.git Please use t

Re: [PATCH] staging: rtl8192e: fix missing failure check on a call to dev_alloc_name

2020-08-24 Thread Dan Carpenter
On Fri, Aug 21, 2020 at 02:15:12PM +0100, Colin King wrote: > From: Colin Ian King > > Currently the second call to dev_alloc_name is not checking if this > failed. Add the check and perform necessary cleanup on an error. > > Addresses-Coverity: ("Unchecked return value") > Fixes: 94a799425eee

Re: [PATCH v2 00/13] extcon: ptn5150: Improvements and fixes

2020-08-24 Thread Chanwoo Choi
Hi Krzysztof, On 8/17/20 3:59 PM, Krzysztof Kozlowski wrote: > Hi, > > Changes since v1: > 1. Mutex unlock fix in patch 8/13. > > Best regards, > Krzysztof > > Applied them. Thanks. -- Best Regards, Chanwoo Choi Samsung Electronics

Re: [PATCH v5 2/3] dmaengine: ptdma: register PTDMA controller as a DMA resource

2020-08-24 Thread Sanjay R Mehta
On 7/3/2020 1:07 PM, Vinod Koul wrote: > > On 16-06-20, 20:11, Sanjay R Mehta wrote: > >> --- a/drivers/dma/ptdma/Makefile >> +++ b/drivers/dma/ptdma/Makefile >> @@ -5,6 +5,7 @@ >> >> obj-$(CONFIG_AMD_PTDMA) += ptdma.o >> >> -ptdma-objs := ptdma-dev.o >> +ptdma-objs := ptdma-dev.o \ >> +

Re: [PATCH v2 1/2] PM / Domains: Add GENPD_FLAG_NO_SUSPEND/RESUME flags

2020-08-24 Thread Ulf Hansson
On Fri, 21 Aug 2020 at 22:49, Sibi Sankar wrote: > > Add GENPD_FLAG_NO_SUSPEND/RESUME flags to instruct genpd to keep the > status of the PM domain unaltered during suspend/resume respectively. > The flags are aimed at power domains coupled to co-processors which > enter low-power modes independen

Re: [net v2 PATCH 2/2] net: ethernet: ti: cpsw_new: fix clean up of vlan mc entries for host port

2020-08-24 Thread Murali Karicheri
On 8/21/20 4:00 PM, Jesse Brandeburg wrote: Murali Karicheri wrote: To flush the vid + mc entries from ALE, which is required when a VLAN interface is removed, driver needs to call cpsw_ale_flush_multicast() with ALE_PORT_HOST for port mask as these entries are added only for host port. With

Re: [PATCH V2 1/2] opp: Allow dev_pm_opp_get_opp_table() to return -EPROBE_DEFER

2020-08-24 Thread Ulf Hansson
On Mon, 24 Aug 2020 at 11:09, Viresh Kumar wrote: > > From: Stephan Gerhold > > The OPP core manages various resources, e.g. clocks or interconnect paths. > These resources are looked up when the OPP table is allocated once > dev_pm_opp_get_opp_table() is called the first time (either directly >

Re: BUG: Bad page state in process true pfn:a8fed on arm

2020-08-24 Thread Matthew Wilcox
On Mon, Aug 24, 2020 at 03:14:55PM +0530, Naresh Kamboju wrote: > [ 67.545247] BUG: Bad page state in process true pfn:a8fed > [ 67.550767] page:9640c0ab refcount:0 mapcount:-1024 Somebody freed a page table without calling __ClearPageTable() on it.

Re: [PATCH v2 5/8] x86/debug: Simplify #DB signal code

2020-08-24 Thread peterz
On Sun, Aug 23, 2020 at 04:09:42PM -0700, Andy Lutomirski wrote: > On Fri, Aug 21, 2020 at 3:21 AM Peter Zijlstra wrote: > > > > Get rid of the two variables, avoid computing si_code when not needed > > and be consistent about which dr6 value is used. > > > > > - if (tsk->thread.debugreg6 &

Re: [PATCH v3 1/2] regulator: mt6360: Add support for MT6360 regulator

2020-08-24 Thread Mark Brown
On Mon, Aug 24, 2020 at 06:23:19PM +0800, Gene Chen wrote: > Mark Brown 於 2020年8月20日 週四 下午7:45寫道: > > This device only exists in the context of a single parent device, there > > should be no need for a compatible string here - this is just a detail > > of how Linux does things. The MFD should ju

Re: [PATCH] drm/etnaviv: fix external abort seen on GC600 rev 0x19

2020-08-24 Thread Lucas Stach
Hi Russell, Am Sonntag, den 23.08.2020, 20:19 +0100 schrieb Russell King - ARM Linux admin: > On Sun, Aug 23, 2020 at 09:10:25PM +0200, Christian Gmeiner wrote: > > Hi > > > > > I have formally tested the patch with 5.7.10 - and it doesn't resolve > > > the issue - sadly :( > > > > > > From my t

Re: [PATCH 3/3] memory: samsung: exynos5422-dmc: add missing and fix kerneldoc

2020-08-24 Thread Lukasz Luba
On 8/22/20 5:32 PM, Krzysztof Kozlowski wrote: Add missing kerneldoc to struct exynos5_dmc and correct the existing kerneldoc in other places to fix W=1 warnings like: drivers/memory/samsung/exynos5422-dmc.c:107: warning: Function parameter or member 'freq_hz' not described in 'dmc_opp_

Re: [PATCH v2 3/6] regulator: Add regulator driver for ATC260x PMICs

2020-08-24 Thread Mark Brown
On Sat, Aug 22, 2020 at 01:19:49AM +0300, Cristian Ciocaltea wrote: > +static int atc260x_set_voltage_time_sel(struct regulator_dev *rdev, > + unsigned int old_selector, > + unsigned int new_selector) > +{ > + struct atc26

[gustavoars-linux:testing/fallthrough] BUILD SUCCESS df561f6688fef775baa341a0f5d960becd248b11

2020-08-24 Thread kernel test robot
allmodconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig powerpc defconfig i386 randconfig-a002-20200824 i386 randconfig-a004

Re: [PATCH] clocksource/drivers/timer-ti-dm: Do reset before enable

2020-08-24 Thread Daniel Lezcano
On 17/08/2020 11:24, Tony Lindgren wrote: > Commit 6cfcd5563b4f ("clocksource/drivers/timer-ti-dm: Fix suspend and > resume for am3 and am4") exposed a new issue for type2 dual mode timers > on at least omap5 where the clockevent will stop when the SoC starts > entering idle states during the boot.

Re: [PATCH net-next 2/2] enetc: use napi_schedule to be compatible with PREEMPT_RT

2020-08-24 Thread Vladimir Oltean
Hi Sasha, On Wed, Aug 12, 2020 at 05:34:30PM +0300, Vladimir Oltean wrote: > On Wed, Aug 12, 2020 at 03:51:44PM +0200, Sebastian Andrzej Siewior wrote: > > On 2020-08-03 18:21:45 [-0700], David Miller wrote: > > > From: Vladimir Oltean > > > > The driver calls napi_schedule_irqoff() from a contex

Re: [PATCH v2 08/10] mm/page_alloc: drop stale pageblock comment in memmap_init_zone*()

2020-08-24 Thread Oscar Salvador
On Wed, Aug 19, 2020 at 07:59:55PM +0200, David Hildenbrand wrote: > Commit ac5d2539b238 ("mm: meminit: reduce number of times pageblocks are > set during struct page init") moved the actual zone range check, leaving > only the alignment check for pageblocks. > > Let's drop the stale comment and m

Re: [PATCH 1/3] memory: samsung: exynos5422-dmc: rename timing register fields variables

2020-08-24 Thread Lukasz Luba
On 8/22/20 5:32 PM, Krzysztof Kozlowski wrote: The driver has file-scope arrays defining fields of timing registers (e.g. struct timing_reg timing_row) and actual values for these registers per each OPP in state container (struct exynos5_dmc.timing_row). The meanings of these are different so

Re: [PATCH] ext4: flag as supporting buffered async reads

2020-08-24 Thread Jens Axboe
On 8/22/20 9:48 AM, Jens Axboe wrote: > On 8/22/20 8:33 AM, Theodore Y. Ts'o wrote: >> On Fri, Aug 21, 2020 at 03:26:35PM -0600, Jens Axboe wrote: >> Resending this one, as I've been carrying it privately since May. The >> necessary bits are now upstream (and XFS/btrfs equiv changes as well

<    9   10   11   12   13   14   15   16   17   18   >