[PATCH v2 0/2] crypto: virtio: Fix two crash issue

2020-05-25 Thread Longpeng(Mike)
Link: https://lkml.org/lkml/2020/1/23/205 Changes since v1: - remove some redundant checks [Jason] - normalize the commit message [Markus] Cc: Gonglei Cc: Herbert Xu Cc: "Michael S. Tsirkin" Cc: Jason Wang Cc: "David S. Miller" Cc: Markus Elfring Cc: virtualizat...@lists.linux-foundation.

INFO: trying to register non-static key in calculate_sigpending

2020-05-25 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:d2f8825a Merge tag 'for_linus' of git://git.kernel.org/pub.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=12470c2610 kernel config: https://syzkaller.appspot.com/x/.config?x=b3368ce0cc5f5ace das

Lieber Freund (Assalamu Alaikum),?

2020-05-25 Thread AISHA GADDAFI
-- Lieber Freund (Assalamu Alaikum), Ich bin vor einer privaten Suche auf Ihren E-Mail-Kontakt gestoßen Ihre Hilfe. Mein Name ist Aisha Al-Qaddafi, eine alleinerziehende Mutter und eine Witwe mit drei Kindern. Ich bin die einzige leibliche Tochter des Spätlibyschen Präsident (verstorbener Oberst

linux-next: manual merge of the net-next tree with the bpf tree

2020-05-25 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: net/xdp/xdp_umem.c between commit: b16a87d0aef7 ("xsk: Add overflow check for u64 division, stored into u32") from the bpf tree and commit: 2b43470add8c ("xsk: Introduce AF_XDP buffer allocation API") from the net

[PATCH v2] bluetooth: hci_qca: Fix qca6390 enable failure after warm reboot

2020-05-25 Thread Zijun Hu
Warm reboot can not restore qca6390 controller baudrate to default due to lack of controllable BT_EN pin or power supply, so fails to download firmware after warm reboot. Fixed by sending EDL_SOC_RESET VSC to reset controller within added device shutdown implementation. Signed-off-by: Zijun Hu -

Re: [PATCH][V3] arm64: perf: Get the wrong PC value in REGS_ABI_32 mode

2020-05-25 Thread Jiping Ma
Hi, Will Please help to review the change. Thanks, Jiping On 05/11/2020 10:52 AM, Jiping Ma wrote: Modified the patch subject and the change description. PC value is get from regs[15] in REGS_ABI_32 mode, but correct PC is regs->pc(regs[PERF_REG_ARM64_PC]) in arm64 kernel, which caused that p

RE: [EXT] Re: [PATCH] arm64: dts: ls1028a: add one more thermal zone support

2020-05-25 Thread Andy Tang
-Original Message- From: Daniel Lezcano Sent: 2020年5月25日 19:08 To: Andy Tang ; shawn...@kernel.org; robh...@kernel.org; mark.rutl...@arm.com; catalin.mari...@arm.com; will.dea...@arm.com Cc: devicet...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; linux-kernel@vger.kernel.org

Re: [PATCH v1] clk: mediatek: assign the initial value to clk_init_data of mtk_mux

2020-05-25 Thread Weiyi Lu
On Mon, 2020-05-25 at 11:08 +0200, Matthias Brugger wrote: > > On 25/05/2020 08:41, Weiyi Lu wrote: > > It'd be dangerous when struct clk_core have new memebers. > > Add the missing initial value to clk_init_data. > > > > Sorry I don't really understand this commit message, can please explain. >

Re: [PATCH v3 1/6] arm64: Detect the ARMv8.4 TTL feature

2020-05-25 Thread Anshuman Khandual
Hello Zhenyu, On 05/25/2020 06:22 PM, Zhenyu Ye wrote: > diff --git a/arch/arm64/include/asm/sysreg.h b/arch/arm64/include/asm/sysreg.h > index c4ac0ac25a00..477d84ba1056 100644 > --- a/arch/arm64/include/asm/sysreg.h > +++ b/arch/arm64/include/asm/sysreg.h > @@ -725,6 +725,7 @@ > > /* id_aa64m

[PATCH] PCI: qcom: fix several error-hanlding problem.

2020-05-25 Thread wu000273
From: Qiushi Wu In function qcom_pcie_probe(), there are several error-handling problem. 1. pm_runtime_put() should be called after pm_runtime_get_sync() failed, because refcount will be increased even pm_runtime_get_sync() returns an error. 2. pm_runtime_disable() are called twice, after the ca

RE: [PATCH] exfat: optimize dir-cache

2020-05-25 Thread Sungjong Seo
> Optimize directory access based on exfat_entry_set_cache. > - Hold bh instead of copied d-entry. > - Modify bh->data directly instead of the copied d-entry. > - Write back the retained bh instead of rescanning the d-entry-set. > And > - Remove unused cache related definitions. > > Signed-off

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

2020-05-25 Thread chenzhou
Hi Baoquan, Thanks for your suggestions. You are right, some details should be made in the commit log. Thanks, Chen Zhou On 2020/5/26 9:42, Baoquan He wrote: > On 05/21/20 at 05:38pm, Chen Zhou wrote: >> This patch series enable reserving crashkernel above 4G in arm64. >> >> There are follo

Re: [RESEND] kunit: use --build_dir=.kunit as default

2020-05-25 Thread Vitor Massaru Iha
On Mon, 2020-05-25 at 22:52 -0300, Vitor Massaru Iha wrote: > Hi Shuah, > > On Fri, 2020-05-22 at 16:40 -0600, shuah wrote: > > On 4/16/20 5:11 PM, Brendan Higgins wrote: > > > On Tue, Apr 14, 2020 at 4:09 PM Vitor Massaru Iha < > > > vi...@massaru.org> wrote: > > > > To make KUnit easier to use,

[PATCH] Input: elantech - Remove read/write registers in attr.

2020-05-25 Thread Jingle.Wu
New Elan IC would not be accessed with the specific regiters. Signed-off-by: Jingle Wu --- drivers/input/mouse/elantech.c | 20 1 file changed, 20 deletions(-) diff --git a/drivers/input/mouse/elantech.c b/drivers/input/mouse/elantech.c index 2d8434b7b623..fa1aa5f441f5 1006

[PATCH] Input: elantench - Remove read registers in attr Signed-off-by: Jingle Wu

2020-05-25 Thread Jingle.Wu
--- drivers/input/mouse/elantech.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/input/mouse/elantech.c b/drivers/input/mouse/elantech.c index 2d8434b7b623..5bdf2b19118e 100644 --- a/drivers/input/mouse/elantech.c +++ b/drivers/input/mouse/elantech.c @@ -1280,

Re: [RFC PATCH 0/7] kvm: arm64: Support stage2 hardware DBM

2020-05-25 Thread zhukeqian
Hi Marc, On 2020/5/25 23:44, Marc Zyngier wrote: > On 2020-05-25 12:23, Keqian Zhu wrote: >> This patch series add support for stage2 hardware DBM, and it is only >> used for dirty log for now. >> >> It works well under some migration test cases, including VM with 4K >> pages or 2M THP. I checked

Re: [v2] workqueue: Fix double kfree for rescuer

2020-05-25 Thread qzhang2
Thanks for your advice. The rescuer null pointer is intentionally passed by a data structure? and also I read the code of workqueue again, when destroy_workqueue is called, after "wq->rescuer = NULL" was executed, The scenario described below does not happen "if non-null pointers (according to

Re: [f2fs-dev] [PATCH v3] f2fs: avoid inifinite loop to wait for flushing node pages at cp_error

2020-05-25 Thread Jaegeuk Kim
On 05/26, Chao Yu wrote: > On 2020/5/26 9:11, Chao Yu wrote: > > On 2020/5/25 23:06, Jaegeuk Kim wrote: > >> On 05/25, Chao Yu wrote: > >>> On 2020/5/25 11:56, Jaegeuk Kim wrote: > Shutdown test is somtimes hung, since it keeps trying to flush dirty > node pages > >>> > >>> IMO, for umou

[PATCH] f2fs: compress: don't compress any datas after cp stop

2020-05-25 Thread Chao Yu
While compressed data writeback, we need to drop dirty pages like we did for non-compressed pages if cp stops, however it's not needed to compress any data in such case, so let's detect cp stop condition in cluster_may_compress() to avoid redundant compressing and let following f2fs_write_raw_pages

Re: [RESEND] kunit: use --build_dir=.kunit as default

2020-05-25 Thread Vitor Massaru Iha
Hi Shuah, On Fri, 2020-05-22 at 16:40 -0600, shuah wrote: > On 4/16/20 5:11 PM, Brendan Higgins wrote: > > On Tue, Apr 14, 2020 at 4:09 PM Vitor Massaru Iha < > > vi...@massaru.org> wrote: > > > To make KUnit easier to use, and to avoid overwriting object and > > > .config files, the default KUnit

Re: [RFC PATCH 0/5] x86/hw_breakpoint: protects more cpu entry data

2020-05-25 Thread Lai Jiangshan
On Mon, May 25, 2020 at 11:27 PM Peter Zijlstra wrote: > > On Mon, May 25, 2020 at 02:50:57PM +, Lai Jiangshan wrote: > > Hello > > > > The patchset is based on (tag: entry-v9-the-rest, tglx-devel/x86/entry). > > And it is complement of 3ea11ac991d > > ("x86/hw_breakpoint: Prevent data breakpo

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

2020-05-25 Thread Baoquan He
On 05/21/20 at 05:38pm, Chen Zhou wrote: > This patch series enable reserving crashkernel above 4G in arm64. > > There are following issues in arm64 kdump: > 1. We use crashkernel=X to reserve crashkernel below 4G, which will fail > when there is no enough low memory. > 2. Currently, crashkernel=Y

[RFC PATCH V2 4/7] x86/hw_breakpoint: Prevent data breakpoints on user_pcid_flush_mask

2020-05-25 Thread Lai Jiangshan
The percpu user_pcid_flush_mask is used for CPU entry If a data breakpoint on it, it will cause an unwanted #DB. Protect the full cpu_tlbstate structure to be sure. There are some other percpu data used in CPU entry, but they are either in already-protected cpu_tss_rw or are safe to trigger #DB (e

[RFC PATCH V2 2/7] x86/hw_breakpoint: Prevent data breakpoints on direct GDT

2020-05-25 Thread Lai Jiangshan
A data breakpoint on the GDT is terrifying and should be avoided. The GDT on CPU entry area is already protected. The direct GDT should be also protected, although it is seldom used and only used for short time. Cc: Andy Lutomirski Cc: Peter Zijlstra (Intel) Cc: Thomas Gleixner Cc: x...@kernel.

[RFC PATCH V2 7/7] x86/entry: remove DB1 stack and DB2 hole from cpu entry area

2020-05-25 Thread Lai Jiangshan
IST-shift code is removed from entry code, #DB will stick to DB stack only. So we remove the DB1 stack and the DB2 hole. Cc: Andy Lutomirski Cc: Peter Zijlstra (Intel) Cc: Thomas Gleixner Cc: x...@kernel.org Signed-off-by: Lai Jiangshan --- arch/x86/include/asm/cpu_entry_area.h | 12 +++--

[RFC PATCH V2 6/7] x86/entry: is_debug_stack() don't check of DB1 stack

2020-05-25 Thread Lai Jiangshan
IST-shift code is removed from entry code, #DB will not at DB1 stack. So we remove the check of DB1 stack in is_debug_stack(). Cc: Andy Lutomirski Cc: Peter Zijlstra (Intel) Cc: Thomas Gleixner Cc: x...@kernel.org Signed-off-by: Lai Jiangshan --- arch/x86/kernel/nmi.c | 7 +-- 1 file chan

[RFC PATCH V2 1/7] x86/hw_breakpoint: add within_area() to check data breakpoints

2020-05-25 Thread Lai Jiangshan
within_area() is added for checking if the data breakpoints overlap with cpu_entry_area, and will be used for checking if the data breakpoints overlap with GDT, IDT, or TSS in places other than cpu_entry_area next patches. Cc: Andy Lutomirski Cc: Peter Zijlstra (Intel) Cc: Thomas Gleixner Cc: x

[RFC PATCH V2 5/7] x86/entry: don't shift stack on #DB

2020-05-25 Thread Lai Jiangshan
debug_enter() will disable #DB, there should be no recursive #DB. Cc: Andy Lutomirski Cc: Peter Zijlstra (Intel) Cc: Thomas Gleixner Cc: x...@kernel.org Signed-off-by: Lai Jiangshan --- arch/x86/entry/entry_64.S| 17 - arch/x86/kernel/asm-offsets_64.c | 1 - 2 files c

[RFC PATCH V2 0/7] x86/DB: protects more cpu entry data and

2020-05-25 Thread Lai Jiangshan
Hello The patchset is based on (tag: entry-v9-the-rest, tglx-devel/x86/entry). And it is complement of 3ea11ac991d ("x86/hw_breakpoint: Prevent data breakpoints on cpu_entry_area"). After reading the code, we can see that more data needs to be protected against hw_breakpoint, otherwise it may cau

[RFC PATCH V2 3/7] x86/hw_breakpoint: Prevent data breakpoints on per_cpu cpu_tss_rw

2020-05-25 Thread Lai Jiangshan
cpu_tss_rw is not directly referenced by hardware, but cpu_tss_rw is also used in CPU entry code, especially when #DB shifts its stacks. If a data breakpoint is on the cpu_tss_rw.x86_tss.ist[IST_INDEX_DB], it will cause recursive #DB (and then #DF soon for #DB is generated after the access, IST-shi

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

2020-05-25 Thread Walter Wu
On Mon, 2020-05-25 at 11:56 +0200, Dmitry Vyukov wrote: > On Fri, May 22, 2020 at 4:01 AM Walter Wu wrote: > > > > This feature will record the last two call_rcu() call stacks and > > prints up to 2 call_rcu() call stacks in KASAN report. > > > > When call_rcu() is called, we store the call_rcu()

Re: [f2fs-dev] [PATCH v3] f2fs: avoid inifinite loop to wait for flushing node pages at cp_error

2020-05-25 Thread Chao Yu
On 2020/5/26 9:11, Chao Yu wrote: > On 2020/5/25 23:06, Jaegeuk Kim wrote: >> On 05/25, Chao Yu wrote: >>> On 2020/5/25 11:56, Jaegeuk Kim wrote: Shutdown test is somtimes hung, since it keeps trying to flush dirty node pages >>> >>> IMO, for umount case, we should drop dirty reference a

Re: [PATCH v4 00/36] Large pages in the page cache

2020-05-25 Thread Matthew Wilcox
On Tue, May 26, 2020 at 09:07:51AM +1000, Dave Chinner wrote: > On Thu, May 21, 2020 at 08:05:53PM -0700, Matthew Wilcox wrote: > > On Fri, May 22, 2020 at 12:57:51PM +1000, Dave Chinner wrote: > > > Again, why is this dependent on THP? We can allocate compound pages > > > without using THP, so why

Re: [f2fs-dev] [PATCH v3] f2fs: avoid inifinite loop to wait for flushing node pages at cp_error

2020-05-25 Thread Chao Yu
On 2020/5/25 23:06, Jaegeuk Kim wrote: > On 05/25, Chao Yu wrote: >> On 2020/5/25 11:56, Jaegeuk Kim wrote: >>> Shutdown test is somtimes hung, since it keeps trying to flush dirty node >>> pages >> >> IMO, for umount case, we should drop dirty reference and dirty pages on >> meta/data >> pages l

Re: [PATCH] bridge: mrp: Fix out-of-bounds read in br_mrp_parse

2020-05-25 Thread David Miller
From: Horatiu Vultur Date: Mon, 25 May 2020 09:55:41 + > The issue was reported by syzbot. When the function br_mrp_parse was > called with a valid net_bridge_port, the net_bridge was an invalid > pointer. Therefore the check br->stp_enabled could pass/fail > depending where it was pointing i

[ANNOUNCE] Reiser5: Data Tiering. Burst Buffers. Speedup synchronous modifications

2020-05-25 Thread Edward Shishkin
Reiser5: Data Tiering. Burst Buffers Speedup synchronous modifications Dumping peaks of IO load to a proxy device Now you can add a small high-performance block device to your large logical volume composed of relatively slow commodity disks and g

Re: [PATCH] qlcnic: fix missing release in qlcnic_83xx_interrupt_test.

2020-05-25 Thread David Miller
From: wu000...@umn.edu Date: Mon, 25 May 2020 03:24:39 -0500 > From: Qiushi Wu > > In function qlcnic_83xx_interrupt_test(), function > qlcnic_83xx_diag_alloc_res() is not handled by function > qlcnic_83xx_diag_free_res() after a call of the function > qlcnic_alloc_mbx_args() failed. Fix this is

Re: [PATCH] drivers: ipa: print dev_err info accurately

2020-05-25 Thread David Miller
From: Wang Wenhu Date: Sun, 24 May 2020 23:29:51 -0700 > Print certain name string instead of hard-coded "memory" for dev_err > output, which would be more accurate and helpful for debugging. > > Signed-off-by: Wang Wenhu Applied to net-next, thanks.

Re: [PATCH v8 2/5] arm64: kdump: reserve crashkenel above 4G for crash dump kernel

2020-05-25 Thread Baoquan He
On 05/21/20 at 05:38pm, Chen Zhou wrote: > Crashkernel=X tries to reserve memory for the crash dump kernel under > 4G. If crashkernel=X,low is specified simultaneously, reserve spcified > size low memory for crash kdump kernel devices firstly and then reserve > memory above 4G. Wondering why crash

Re: [PATCH v8 1/5] x86: kdump: move reserve_crashkernel_low() into crash_core.c

2020-05-25 Thread Baoquan He
On 05/21/20 at 05:38pm, Chen Zhou wrote: > In preparation for supporting reserve_crashkernel_low in arm64 as > x86_64 does, move reserve_crashkernel_low() into kernel/crash_core.c. > BTW, move x86 CRASH_ALIGN to 2M. The reason is? > > Note, in arm64, we reserve low memory if and only if crash

Re: [PATCH v1 07/25] lockdep: Add preemption disabled assertion API

2020-05-25 Thread Ahmed S. Darwish
Peter Zijlstra wrote: > On Sun, May 24, 2020 at 12:41:32AM +0200, Peter Zijlstra wrote: > > On Sat, May 23, 2020 at 04:59:42PM +0200, Sebastian A. Siewior wrote: > > > > > > Any "static inline" in the header file using > > > lockdep_assert_preemption_disabled() will tro to complain about missing >

Re: [PATCH] drivers: ipa: print dev_err info accurately

2020-05-25 Thread Alex Elder
On 5/25/20 1:29 AM, Wang Wenhu wrote: Print certain name string instead of hard-coded "memory" for dev_err output, which would be more accurate and helpful for debugging. Signed-off-by: Wang Wenhu Cc: Alex Elder Good idea. Reviewed-by: Alex Elder --- drivers/net/ipa/ipa_clock.c | 4 ++-

arch/powerpc/boot/decompress.c:137: undefined reference to `__decompress'

2020-05-25 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: b85051e755b0e9d6dd8f17ef1da083851b83287d commit: 1cc9a21b0bb36debdf96dbcc4b139d6639373018 powerpc/boot: Add lzma support for uImage config: powerpc-randconfig-r012-20200520 (attached as .config) compiler: po

Re: [PATCH v3 3/3] vfio-pci: Invalidate mmaps and block MMIO access on disabled memory

2020-05-25 Thread John Hubbard
On 2020-05-25 17:37, Jason Gunthorpe wrote: ... commit 318b275fbca1ab9ec0862de71420e0e92c3d1aa7 Author: Gleb Natapov Date: Tue Mar 22 16:30:51 2011 -0700 mm: allow GUP to fail instead of waiting on a page GUP user may want to try to acquire a reference to a page if it is already

Re: [PATCH v3 3/3] vfio-pci: Invalidate mmaps and block MMIO access on disabled memory

2020-05-25 Thread Jason Gunthorpe
On Mon, May 25, 2020 at 01:56:28PM -0700, John Hubbard wrote: > On 2020-05-25 09:56, Jason Gunthorpe wrote: > > On Mon, May 25, 2020 at 11:11:42AM -0400, Peter Xu wrote: > > > On Mon, May 25, 2020 at 11:46:51AM -0300, Jason Gunthorpe wrote: > > > > On Mon, May 25, 2020 at 10:28:06AM -0400, Peter Xu

Re: [PATCH 0/4] x86/boot: Remove runtime relocations from compressed kernel

2020-05-25 Thread Fangrui Song
On 2020-05-24, Arvind Sankar wrote: The compressed kernel currently contains bogus runtime relocations in the startup code in head_{32,64}.S, which are generated by the linker, but must not actually be processed at runtime. This generates warnings when linking with the BFD linker, and errors wit

Re: [PATCH] IB/sa: Resolving use-after-free in ib_nl_send_msg.

2020-05-25 Thread Jason Gunthorpe
On Thu, May 14, 2020 at 08:11:24AM -0700, Divya Indi wrote: > static void ib_nl_set_path_rec_attrs(struct sk_buff *skb, >struct ib_sa_query *query) > { > @@ -889,6 +904,15 @@ static int ib_nl_make_request(struct ib_sa_query *query, > gfp_t gfp_mask) >

Re: [PATCH] riscv: Remove unnecessary path for syscall_trace

2020-05-25 Thread Guo Ren
Hi Tycho, On Mon, May 25, 2020 at 10:36 PM Tycho Andersen wrote: > > On Mon, May 25, 2020 at 02:18:26PM +, guo...@kernel.org wrote: > > From: Guo Ren > > > > Obviously, there is no need to recover a0-a7 in reject path. > > > > Previous modification is from commit af33d243 by Tycho, to > > fi

Re: [PATCH 01/24] KVM: nSVM: fix condition for filtering async PF

2020-05-25 Thread Sasha Levin
Hi [This is an automated email] This commit has been processed because it contains a -stable tag. The stable tag indicates that it's relevant for the following trees: all The bot has tested the following trees: v5.6.14, v5.4.42, v4.19.124, v4.14.181, v4.9.224, v4.4.224. v5.6.14: Failed to appl

Re: [PATCH 02/24] KVM: nSVM: leave ASID aside in copy_vmcb_control_area

2020-05-25 Thread Sasha Levin
Hi [This is an automated email] This commit has been processed because it contains a -stable tag. The stable tag indicates that it's relevant for the following trees: all The bot has tested the following trees: v5.6.14, v5.4.42, v4.19.124, v4.14.181, v4.9.224, v4.4.224. v5.6.14: Failed to appl

Re: [PATCH 00/19] perf: ftrace enhancement

2020-05-25 Thread Changbin Du
On Wed, May 20, 2020 at 05:31:28PM -0300, Arnaldo Carvalho de Melo wrote: > Em Sun, May 10, 2020 at 11:06:09PM +0800, Changbin Du escreveu: > > The perf has basic kernel ftrace support but lack support of most tracing > > options. This serias is target to enhance the perf ftrace functionality so >

Re: [PATCH 1/2] software node: implement software_node_unregister()

2020-05-25 Thread Randy Dunlap
On 5/24/20 8:30 AM, Greg Kroah-Hartman wrote: > Sometimes it is better to unregister individual nodes instead of trying > to do them all at once with software_node_unregister_nodes(), so create > software_node_unregister() so that you can unregister them one at a > time. > > This is especially imp

Re: [RFC 04/11] net: phy: Handle c22 regs presence better

2020-05-25 Thread Russell King - ARM Linux admin
On Mon, May 25, 2020 at 06:42:50PM -0500, Jeremy Linton wrote: > Hi, > > On 5/25/20 6:33 PM, Russell King - ARM Linux admin wrote: > > On Mon, May 25, 2020 at 06:22:19PM -0500, Jeremy Linton wrote: > > > On 5/25/20 6:09 PM, Russell King - ARM Linux admin wrote: > > > > On Mon, May 25, 2020 at 05:2

mmotm 2020-05-25-16-56 uploaded

2020-05-25 Thread Andrew Morton
The mm-of-the-moment snapshot 2020-05-25-16-56 has been uploaded to http://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: http://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You wi

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

2020-05-25 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: [RFC 04/11] net: phy: Handle c22 regs presence better

2020-05-25 Thread Andrew Lunn
On Mon, May 25, 2020 at 06:46:10PM -0500, Jeremy Linton wrote: > Hi, > > > On 5/25/20 6:12 PM, Andrew Lunn wrote: > > > arch/powerpc/boot/dts/fsl/t4240rdb.dts: compatible = > > > "ethernet-phy-id13e5.1002"; > > > arch/powerpc/boot/dts/fsl/t4240rdb.dts: compatible = > > > "ethernet-phy-id13e5.10

Re: [RFC 04/11] net: phy: Handle c22 regs presence better

2020-05-25 Thread Andrew Lunn
> Right, which is what I sort of expected. Because its falling back to a > device list of 0x, which means probe every single MMD. > > Combined with the lack of filtering means that your getting a bunch of MMD > IDs that potentially are invalid, along with any that happen to be valid. > Its

Re: [RFC 04/11] net: phy: Handle c22 regs presence better

2020-05-25 Thread Jeremy Linton
Hi, On 5/25/20 6:12 PM, Andrew Lunn wrote: arch/powerpc/boot/dts/fsl/t4240rdb.dts: compatible = "ethernet-phy-id13e5.1002"; arch/powerpc/boot/dts/fsl/t4240rdb.dts: compatible = "ethernet-phy-id13e5.1002"; arch/powerpc/boot/dts/fsl/t4240rdb.dts: compatible = "ethernet-phy-id13e5.1002"; arch/powe

Re: [RFC 04/11] net: phy: Handle c22 regs presence better

2020-05-25 Thread Jeremy Linton
Hi, On 5/25/20 6:33 PM, Russell King - ARM Linux admin wrote: On Mon, May 25, 2020 at 06:22:19PM -0500, Jeremy Linton wrote: On 5/25/20 6:09 PM, Russell King - ARM Linux admin wrote: On Mon, May 25, 2020 at 05:22:07PM -0500, Jeremy Linton wrote: On 5/25/20 5:01 PM, Russell King - ARM Linux ad

Re: [PATCH RFCv2 0/9] kvm/arm64: Support Async Page Fault

2020-05-25 Thread Gavin Shan
On 5/8/20 1:29 PM, Gavin Shan wrote: There are two stages of page faults and the stage one page fault is handled by guest itself. The guest is trapped to host when the page fault is caused by stage 2 page table, for example missing. The guest is suspended until the requested page is populated. Th

Re: [PATCH] power: reset: vexpress: fix build issue

2020-05-25 Thread Valdis Klētnieks
On Sun, 24 May 2020 15:20:25 -0700, Nathan Chancellor said: > arm-linux-gnueabi-ld: drivers/power/reset/vexpress-poweroff.o: in function > `vexpress_reset_probe': > vexpress-poweroff.c:(.text+0x36c): undefined reference to > `devm_regmap_init_vexpress_config' The part I can't figure out is that

Re: [RFC 04/11] net: phy: Handle c22 regs presence better

2020-05-25 Thread Russell King - ARM Linux admin
On Mon, May 25, 2020 at 06:22:19PM -0500, Jeremy Linton wrote: > On 5/25/20 6:09 PM, Russell King - ARM Linux admin wrote: > > On Mon, May 25, 2020 at 05:22:07PM -0500, Jeremy Linton wrote: > > > On 5/25/20 5:01 PM, Russell King - ARM Linux admin wrote: > > > > On Mon, May 25, 2020 at 04:51:16PM -0

[PATCH v2] tee: convert get_user_pages() --> pin_user_pages()

2020-05-25 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: Some -serious- BPF-related litmus tests

2020-05-25 Thread Andrii Nakryiko
On Mon, May 25, 2020 at 3:01 PM Akira Yokosawa wrote: > > On Mon, 25 May 2020 11:31:27 -0700, Andrii Nakryiko wrote: > > On Sun, May 24, 2020 at 5:09 AM Akira Yokosawa wrote: > >> > >> On Fri, 22 May 2020 12:38:21 -0700, Andrii Nakryiko wrote: > >>> On 5/22/20 10:43 AM, Paul E. McKenney wrote: >

Re: [RFC 04/11] net: phy: Handle c22 regs presence better

2020-05-25 Thread Russell King - ARM Linux admin
On Mon, May 25, 2020 at 06:16:18PM -0500, Jeremy Linton wrote: > Hi, > > On 5/25/20 5:01 PM, Russell King - ARM Linux admin wrote: > > On Mon, May 25, 2020 at 04:51:16PM -0500, Jeremy Linton wrote: > > > So, my goals here have been to first, not break anything, and then do a > > > slightly better

Re: [PATCH v3] vt: keyboard: avoid signed integer overflow in k_ascii

2020-05-25 Thread Dmitry Torokhov
[ Sorry, forgot to CC Kyungtae ] On Mon, May 25, 2020 at 04:27:40PM -0700, Dmitry Torokhov wrote: > When k_ascii is invoked several times in a row there is a potential for > signed integer overflow: > > UBSAN: Undefined behaviour in drivers/tty/vt/keyboard.c:888:19 signed integer > overflow: > 1

[PATCH v3] vt: keyboard: avoid signed integer overflow in k_ascii

2020-05-25 Thread Dmitry Torokhov
When k_ascii is invoked several times in a row there is a potential for signed integer overflow: UBSAN: Undefined behaviour in drivers/tty/vt/keyboard.c:888:19 signed integer overflow: 10 * 11 cannot be represented in type 'int' CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.6.11 #1 Hardware

Re: [RFC 04/11] net: phy: Handle c22 regs presence better

2020-05-25 Thread Jeremy Linton
On 5/25/20 6:09 PM, Russell King - ARM Linux admin wrote: On Mon, May 25, 2020 at 05:22:07PM -0500, Jeremy Linton wrote: On 5/25/20 5:01 PM, Russell King - ARM Linux admin wrote: On Mon, May 25, 2020 at 04:51:16PM -0500, Jeremy Linton wrote: Hi, On 5/25/20 5:06 AM, Russell King - ARM Linux ad

Re: [RFC 04/11] net: phy: Handle c22 regs presence better

2020-05-25 Thread Jeremy Linton
Hi, On 5/25/20 5:01 PM, Russell King - ARM Linux admin wrote: On Mon, May 25, 2020 at 04:51:16PM -0500, Jeremy Linton wrote: Hi, On 5/25/20 5:06 AM, Russell King - ARM Linux admin wrote: On Sun, May 24, 2020 at 10:34:13PM -0500, Jeremy Linton wrote: Hi, On 5/23/20 1:37 PM, Russell King - AR

Re: [PATCH] xtensa: Fix spelling/grammar in comment

2020-05-25 Thread Max Filippov
On Mon, May 25, 2020 at 4:04 PM Chris Packham wrote: > > Change 'excpetion' to 'exception', 'handeled' to 'handled' and 'the the' > to 'the'. > > Signed-off-by: Chris Packham > --- > arch/xtensa/kernel/entry.S | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Thanks, applied to my xte

Re: [RFC 04/11] net: phy: Handle c22 regs presence better

2020-05-25 Thread Andrew Lunn
> arch/powerpc/boot/dts/fsl/t4240rdb.dts: compatible = > "ethernet-phy-id13e5.1002"; > arch/powerpc/boot/dts/fsl/t4240rdb.dts: compatible = > "ethernet-phy-id13e5.1002"; > arch/powerpc/boot/dts/fsl/t4240rdb.dts: compatible = > "ethernet-phy-id13e5.1002"; > arch/powerpc/boot/dts/fsl/t4240rdb.dts:

Re: [RFC 04/11] net: phy: Handle c22 regs presence better

2020-05-25 Thread Russell King - ARM Linux admin
On Mon, May 25, 2020 at 05:22:07PM -0500, Jeremy Linton wrote: > On 5/25/20 5:01 PM, Russell King - ARM Linux admin wrote: > > On Mon, May 25, 2020 at 04:51:16PM -0500, Jeremy Linton wrote: > > > Hi, > > > > > > On 5/25/20 5:06 AM, Russell King - ARM Linux admin wrote: > > > > On Sun, May 24, 2020

Re: [PATCH v4 00/36] Large pages in the page cache

2020-05-25 Thread Dave Chinner
On Thu, May 21, 2020 at 08:05:53PM -0700, Matthew Wilcox wrote: > On Fri, May 22, 2020 at 12:57:51PM +1000, Dave Chinner wrote: > > On Thu, May 21, 2020 at 05:04:11PM -0700, Matthew Wilcox wrote: > > > On Fri, May 22, 2020 at 08:49:06AM +1000, Dave Chinner wrote: > > > > Ok, so the main issue I hav

Re: [RFC 04/11] net: phy: Handle c22 regs presence better

2020-05-25 Thread Russell King - ARM Linux admin
On Mon, May 25, 2020 at 05:17:27PM -0500, Jeremy Linton wrote: > Hi, > > On 5/25/20 5:06 PM, Andrew Lunn wrote: > > > Yes, we know even for the NXP reference hardware, one of the phy's doesn't > > > probe out correctly because it doesn't respond to the ieee defined > > > registers. I think at this

Re: [RFC 04/11] net: phy: Handle c22 regs presence better

2020-05-25 Thread Andrew Lunn
> I know for sure we find phys that previously weren't found. That is in itself somewhat dangerous. Those using primitive configuration systems are probably going to use phy_find_first(), rather than an address on the bus. I always recommend against that, because if another PHY suddenly pops up o

[PATCH] xtensa: Fix spelling/grammar in comment

2020-05-25 Thread Chris Packham
Change 'excpetion' to 'exception', 'handeled' to 'handled' and 'the the' to 'the'. Signed-off-by: Chris Packham --- arch/xtensa/kernel/entry.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/xtensa/kernel/entry.S b/arch/xtensa/kernel/entry.S index 06fbb0a171f1..696b1

[PATCH] HID: logitech-dj: Fix spelling in comment

2020-05-25 Thread Chris Packham
Change 'unhandeled' to 'unhandled'. Signed-off-by: Chris Packham --- drivers/hid/hid-logitech-dj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hid/hid-logitech-dj.c b/drivers/hid/hid-logitech-dj.c index ed9b1c1f460d..51e1305cc375 100644 --- a/drivers/hid/hid-logit

[PATCH] bpf: Fix spelling in comment

2020-05-25 Thread Chris Packham
Change 'handeled' to 'handled'. Signed-off-by: Chris Packham --- kernel/bpf/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/bpf/core.c b/kernel/bpf/core.c index 916f5132a984..1ff8e73e9b12 100644 --- a/kernel/bpf/core.c +++ b/kernel/bpf/core.c @@ -1543,7 +1543,7

[PATCH v2 0/4] x86/boot: Remove runtime relocations from compressed kernel

2020-05-25 Thread Arvind Sankar
The compressed kernel currently contains bogus runtime relocations in the startup code in head_{32,64}.S, which are generated by the linker, but must not actually be processed at runtime. This generates warnings when linking with the BFD linker, and errors with LLD, which defaults to erroring on r

[PATCH v2 1/4] x86/boot: Add .text.* to setup.ld

2020-05-25 Thread Arvind Sankar
gcc puts the main function into .text.startup when compiled with -Os (or -O2). This results in arch/x86/boot/main.c having a .text.startup section which is currently not included explicitly in the linker script setup.ld in the same directory. The BFD linker places this orphan section immediately a

[PATCH v2 3/4] x86/boot: Remove runtime relocations from head_{32,64}.S

2020-05-25 Thread Arvind Sankar
The BFD linker generates runtime relocations for z_input_len and z_output_len, even though they are absolute symbols. This is fixed for binutils-2.35 [1]. Work around this for earlier versions by defining two variables input_len and output_len in addition to the symbols, and use them via position-

[PATCH v2 2/4] x86/boot: Remove run-time relocations from .head.text code

2020-05-25 Thread Arvind Sankar
The assembly code in head_{32,64}.S, while meant to be position-independent, generates run-time relocations because it uses instructions such as lealgdt(%edx), %eax which make the assembler and linker think that the code is using %edx as an index into gdt, and hence gdt needs to be relo

[PATCH v2 4/4] x86/boot: Check that there are no runtime relocations

2020-05-25 Thread Arvind Sankar
Add a linker script check that there are no runtime relocations, and remove the old one that tries to check via looking for specially-named sections in the object files. Drop the tests for -fPIE compiler option and -pie linker option, as they are available in all supported gcc and binutils version

Re: [PATCH] net: sctp: Fix spelling in Kconfig help

2020-05-25 Thread Marcelo Ricardo Leitner
On Tue, May 26, 2020 at 10:55:59AM +1200, Chris Packham wrote: > Change 'handeled' to 'handled' in the Kconfig help for SCTP. > > Signed-off-by: Chris Packham Acked-by: Marcelo Ricardo Leitner

[PATCH] net: sctp: Fix spelling in Kconfig help

2020-05-25 Thread Chris Packham
Change 'handeled' to 'handled' in the Kconfig help for SCTP. Signed-off-by: Chris Packham --- net/sctp/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/sctp/Kconfig b/net/sctp/Kconfig index 6e2eb1dd64ed..68934438ee19 100644 --- a/net/sctp/Kconfig +++ b/net/sctp/Kco

Re: [PATCH v2] vt: keyboard: avoid integer overflow in k_ascii

2020-05-25 Thread Dmitry Torokhov
On Mon, May 25, 2020 at 09:15:07AM +0200, Greg KH wrote: > On Sun, May 24, 2020 at 05:08:23PM -0700, Dmitry Torokhov wrote: > > On Sat, May 23, 2020 at 11:09:35PM +, Kyungtae Kim wrote: > > > @@ -884,8 +884,11 @@ static void k_ascii(struct vc_data *vc, unsigned > > > char value, char up_flag)

Re: [PATCH 2/2] kobject: send KOBJ_REMOVE uevent when the object is removed from sysfs

2020-05-25 Thread Dmitry Torokhov
On Sun, May 24, 2020 at 8:34 AM Greg Kroah-Hartman wrote: > > It is possible for a KOBJ_REMOVE uevent to be sent to userspace way > after the files are actually gone from sysfs, due to how reference > counting for kobjects work. This should not be a problem, but it would > be good to properly sen

Re: [RFC 08/11] net: phy: Allow mdio buses to auto-probe c45 devices

2020-05-25 Thread Russell King - ARM Linux admin
On Mon, May 25, 2020 at 05:09:56PM -0500, Jeremy Linton wrote: > Hi, > > On 5/25/20 3:25 AM, Russell King - ARM Linux admin wrote: > > On Sun, May 24, 2020 at 11:28:52PM -0500, Jeremy Linton wrote: > > > Hi, > > > > > > On 5/24/20 9:44 AM, Andrew Lunn wrote: > > > > > +++ b/include/linux/phy.h >

Re: [PATCH] bitops: simplify get_count_order_long()

2020-05-25 Thread Andrew Morton
On Mon, 25 May 2020 21:57:41 + Wei Yang wrote: > I see the patch just merged, so I suppose to add the above test code into that > one? Well, that's not really test code. But yes, something which tests both the 32-bit and 64-bit functions would be nice, sometime.

Re: [PATCH] MAINTAINERS: adjust entry in XDP SOCKETS to actual file name

2020-05-25 Thread Daniel Borkmann
- Björn, please pick this minor non-urgent patch. applies to next-20200525 on top of the commits mentioned above Thanks Lukas! Daniel/Alexei, this should go to the bpf-next tree. Yep, applied, thanks!

Re: [RFC 04/11] net: phy: Handle c22 regs presence better

2020-05-25 Thread Jeremy Linton
On 5/25/20 5:01 PM, Russell King - ARM Linux admin wrote: On Mon, May 25, 2020 at 04:51:16PM -0500, Jeremy Linton wrote: Hi, On 5/25/20 5:06 AM, Russell King - ARM Linux admin wrote: On Sun, May 24, 2020 at 10:34:13PM -0500, Jeremy Linton wrote: Hi, On 5/23/20 1:37 PM, Russell King - ARM Lin

Re: [PATCH v2 1/3] scsi: ufshcd: Update the set frequency to devfreq

2020-05-25 Thread Jeffrey Hugo
On Wed, Mar 25, 2020 at 12:29 PM Asutosh Das wrote: > > Currently, the frequency that devfreq provides the > driver to set always leads the clocks to be scaled up. > Hence, round the clock-rate to the nearest frequency > before deciding to scale. > > Also update the devfreq statistics of current f

Re: clean up and streamline probe_kernel_* and friends v4

2020-05-25 Thread Andrew Morton
On Thu, 21 May 2020 17:22:38 +0200 Christoph Hellwig wrote: > this series start cleaning up the safe kernel and user memory probing > helpers in mm/maccess.c, and then allows architectures to implement > the kernel probing without overriding the address space limit and > temporarily allowing acce

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

2020-05-25 Thread Stephen Rothwell
Hi John, On Mon, 25 May 2020 11:18:46 -0700 John Hubbard wrote: > > Yes, looks good. And in fact, Andrew has the same fix-up in the mmotm branch > of > linux-next.git, as > > commit a76c281a8ddd > ("mmap-locking-api-rename-mmap_sem-to-mmap_lock-fix"). For some reason that was not include

[PATCH v3] fpga: dfl: afu: convert get_user_pages() --> pin_user_pages()

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

[PATCH v3 18/18] MAINTAINERS: Add entry for the Nitro Enclaves driver

2020-05-25 Thread Andra Paraschiv
Signed-off-by: Andra Paraschiv --- Changelog v2 -> v3 * Update file entries to be in alphabetical order. v1 -> v2 * No changes. --- MAINTAINERS | 13 + 1 file changed, 13 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 50659d76976b..56d529256ba4 100644 --- a/MAINTAINER

[PATCH v3 16/18] nitro_enclaves: Add sample for ioctl interface usage

2020-05-25 Thread Andra Paraschiv
Signed-off-by: Alexandru Vasile Signed-off-by: Andra Paraschiv --- Changelog v2 -> v3 * Remove the include directory to use the uapi from the kernel. * Remove the GPL additional wording as SPDX-License-Identifier is already in place. v1 -> v2 * New in v2. --- samples/nitro_enclaves/.gitignor

Re: [RFC 04/11] net: phy: Handle c22 regs presence better

2020-05-25 Thread Jeremy Linton
Hi, On 5/25/20 5:06 PM, Andrew Lunn wrote: Yes, we know even for the NXP reference hardware, one of the phy's doesn't probe out correctly because it doesn't respond to the ieee defined registers. I think at this point, there really isn't anything we can do about that unless we involve the (ACPI)

[PATCH v3 17/18] nitro_enclaves: Add overview documentation

2020-05-25 Thread Andra Paraschiv
Signed-off-by: Andra Paraschiv --- Changelog v2 -> v3 * No changes. v1 -> v2 * New in v2. --- Documentation/nitro_enclaves/ne_overview.txt | 86 1 file changed, 86 insertions(+) create mode 100644 Documentation/nitro_enclaves/ne_overview.txt diff --git a/Documentation/n

[PATCH v3 12/18] nitro_enclaves: Add logic for enclave start

2020-05-25 Thread Andra Paraschiv
After all the enclave resources are set, the enclave is ready for beginning to run. Add ioctl command logic for starting an enclave after all its resources, memory regions and CPUs, have been set. The enclave start information includes the local channel addressing - vsock CID - and the flags asso

<    1   2   3   4   5   6   7   8   9   10   >