Re: [PATCH] watchdog: sbsa_gwdt: add shutdown hook to driver

2020-08-27 Thread Guenter Roeck
On Thu, Aug 27, 2020 at 07:55:31AM +, Qiang Zhao wrote: > On 8/24/20 21:29 AM, Guenter Roeck wrote: > > > -Original Message- > > From: Guenter Roeck On Behalf Of Guenter Roeck > > Sent: 2020年8月24日 21:29 > > To: Qiang Zhao ; w...@linux-watchdog.org > > Cc: linux-watch...@vger.kernel.o

Re: [PATCH 02/20] dt-bindings: thermal: rcar-gen3-thermal: Add r8a774e1 support

2020-08-27 Thread Lad, Prabhakar
Hi Zhang,Daniel,Amit, On Wed, Jul 15, 2020 at 12:09 PM Lad Prabhakar wrote: > > Document RZ/G2H (R8A774E1) SoC bindings. > > Signed-off-by: Lad Prabhakar > --- > Documentation/devicetree/bindings/thermal/rcar-gen3-thermal.yaml | 1 + > 1 file changed, 1 insertion(+) > Gentle ping. Cheers, Prab

Help with Realtek RTL8156 USB 2.5G NIC not working and cdc_ncm syslog flooding

2020-08-27 Thread Jody Bruchon
Note: please CC me in replies since I'm not subscribed to LKML. I have a RTL8156-based USB 3.0 to 2.5G NBASE-T ethernet adapter made by Plugable and I'm using a recently compiled Linux 5.8.1 (I checked changelogs up to the current 5.8.5 release and didn't see anything relevant mentioned). It's

Re: [PATCH v1 02/10] powerpc/kernel/iommu: Align size for IOMMU_PAGE_SIZE on iommu_*_coherent()

2020-08-27 Thread Leonardo Bras
On Sat, 2020-08-22 at 20:07 +1000, Alexey Kardashevskiy wrote: > > On 18/08/2020 09:40, Leonardo Bras wrote: > > Both iommu_alloc_coherent() and iommu_free_coherent() assume that once > > size is aligned to PAGE_SIZE it will be aligned to IOMMU_PAGE_SIZE. > > The only case when it is not aligned

Re: [PATCH] PCI/ASPM: Enable ASPM for links under VMD domain

2020-08-27 Thread h...@infradead.org
On Thu, Aug 27, 2020 at 04:45:53PM +, Derrick, Jonathan wrote: > Just a few benefits and there are other users with unique use cases: > 1. Passthrough of the endpoint to OSes which don't natively support > hotplug can enable hotplug for that OS using the guest VMD driver Or they could just wri

Re: [PATCH v8 1/2] Add a "nosymfollow" mount option.

2020-08-27 Thread Ross Zwisler
On Fri, Aug 28, 2020 at 01:41:39AM +1000, Aleksa Sarai wrote: > On 2020-08-27, Al Viro wrote: > > On Wed, Aug 26, 2020 at 02:48:19PM -0600, Ross Zwisler wrote: > > > > > Al, now that the changes to fs/namei.c have landed and we're past the > > > merge > > > window for v5.9, what are your thought

Re: [PATCH] usb: atm: don't use snprintf() for sysfs attrs

2020-08-27 Thread Kees Cook
On Tue, Aug 25, 2020 at 10:24:06AM +0200, Greg Kroah-Hartman wrote: > On Tue, Aug 25, 2020 at 08:12:05AM +, David Laight wrote: > > From: Alex Dewar > > > Sent: 24 August 2020 23:23 > > > kernel/cpu.c: don't use snprintf() for sysfs attrs > > > > > > As per the documentation (Documentation/fil

[PATCH] x86: Use XORL r32,r32 in __get_user_asm

2020-08-27 Thread Uros Bizjak
Use XORL r32,r32 for all operand sizes. x86_64 zero extends 32bit operations, so for 64bit operands, XORL r32,r32 is functionally equal to XORL r64,r64, but avoids a REX prefix byte when legacy registers are used. 32bit operation also avoids 0x66 size prefix for 16bit operands and REX prefix when

Re: [PATCH] PCI/ASPM: Enable ASPM for links under VMD domain

2020-08-27 Thread Derrick, Jonathan
On Thu, 2020-08-27 at 17:23 +0100, h...@infradead.org wrote: > On Thu, Aug 27, 2020 at 04:13:44PM +, Derrick, Jonathan wrote: > > On Thu, 2020-08-27 at 06:34 +, h...@infradead.org wrote: > > > On Wed, Aug 26, 2020 at 09:43:27PM +, Derrick, Jonathan wrote: > > > > Feel free to review my

Re: [PATCH] staging: ion: remove from the tree

2020-08-27 Thread Shuah Khan
On 8/27/20 6:36 AM, Greg Kroah-Hartman wrote: The ION android code has long been marked to be removed, now that we dma-buf support merged into the real part of the kernel. It was thought that we could wait to remove the ion kernel at a later time, but as the out-of-tree Android fork of the ion c

Re: [PATCH v3 2/3] usb typec: mt6360: Rename driver/Kconfig/Makefile from mt6360 to mt636x

2020-08-27 Thread Guenter Roeck
On Thu, Aug 27, 2020 at 07:18:56PM +0800, cy_huang wrote: > From: ChiYuan Huang > > 1. Rename file form tcpci_mt6360.c to tcpci_mt636x.c > 2. Rename internal function from mt6360 to mt636x, except the register > definition. > 3. Change Kconfig/Makefile from MT6360 to MT636X. > > Signed-off-by: C

[PATCH v3 10/16] powerpc: kprobes: Use generic kretprobe trampoline handler

2020-08-27 Thread Masami Hiramatsu
Signed-off-by: Masami Hiramatsu --- Changes in v2: Fix to use correct trampoline_address. --- arch/powerpc/kernel/kprobes.c | 55 - 1 file changed, 5 insertions(+), 50 deletions(-) diff --git a/arch/powerpc/kernel/kprobes.c b/arch/powerpc/kernel/kpro

[PATCH v3 14/16] kprobes: Remove NMI context check

2020-08-27 Thread Masami Hiramatsu
Since the commit 9b38cc704e84 ("kretprobe: Prevent triggering kretprobe from within kprobe_flush_task") sets a dummy current kprobe in the trampoline handler by kprobe_busy_begin/end(), it is not possible to run a kretprobe pre handler in kretprobe trampoline handler context even with the NMI. If t

[PATCH v3 15/16] kprobes: Free kretprobe_instance with rcu callback

2020-08-27 Thread Masami Hiramatsu
Free kretprobe_instance with rcu callback instead of directly freeing the object in the kretprobe handler context. This will make kretprobe run safer in NMI context. Signed-off-by: Masami Hiramatsu --- Changes in v3: - Stick the rcu_head with hlist_node in kretprobe_instance - Make recycl

[PATCH v3 16/16] kprobes: Make local used functions static

2020-08-27 Thread Masami Hiramatsu
Since we unified the kretprobe trampoline handler from arch/* code, some functions and objects no need to be exported anymore. Signed-off-by: Masami Hiramatsu --- include/linux/kprobes.h | 15 --- kernel/kprobes.c| 12 2 files changed, 8 insertions(+), 19 del

antworte bitte

2020-08-27 Thread Shayma
Dobrý deň, dúfam, že ste dostali moju správu. Potrebujem rýchlu reakciu Ďakujem michelle

[PATCH v3 11/16] s390: kprobes: Use generic kretprobe trampoline handler

2020-08-27 Thread Masami Hiramatsu
Signed-off-by: Masami Hiramatsu --- arch/s390/kernel/kprobes.c | 81 ++-- 1 file changed, 4 insertions(+), 77 deletions(-) diff --git a/arch/s390/kernel/kprobes.c b/arch/s390/kernel/kprobes.c index d2a71d872638..6009f08836f4 100644 --- a/arch/s390/kernel

[PATCH v3 13/16] sparc: kprobes: Use generic kretprobe trampoline handler

2020-08-27 Thread Masami Hiramatsu
Signed-off-by: Masami Hiramatsu --- arch/sparc/kernel/kprobes.c | 52 +++ 1 file changed, 4 insertions(+), 48 deletions(-) diff --git a/arch/sparc/kernel/kprobes.c b/arch/sparc/kernel/kprobes.c index dfbca2470536..cd34aeaa3ebb 100644 --- a/arch/sparc/ker

Re: [PATCH 6/9] dt-bindings: gpio: renesas,rcar-gpio: Add r8a774e1 support

2020-08-27 Thread Lad, Prabhakar
Hi Linus and Bartosz, On Mon, Jul 13, 2020 at 10:35 PM Lad Prabhakar wrote: > > Document Renesas RZ/G2H (R8A774E1) GPIO blocks compatibility within the > relevant dt-bindings. > > Signed-off-by: Lad Prabhakar > --- > Documentation/devicetree/bindings/gpio/renesas,rcar-gpio.yaml | 1 + > 1 file

[PATCH v3 06/16] csky: kprobes: Use generic kretprobe trampoline handler

2020-08-27 Thread Masami Hiramatsu
Signed-off-by: Masami Hiramatsu --- arch/csky/kernel/probes/kprobes.c | 78 + 1 file changed, 3 insertions(+), 75 deletions(-) diff --git a/arch/csky/kernel/probes/kprobes.c b/arch/csky/kernel/probes/kprobes.c index f0f733b7ac5a..a891fb422e76 100644 --- a/a

[PATCH v3 12/16] sh: kprobes: Use generic kretprobe trampoline handler

2020-08-27 Thread Masami Hiramatsu
Signed-off-by: Masami Hiramatsu --- arch/sh/kernel/kprobes.c | 59 +++--- 1 file changed, 4 insertions(+), 55 deletions(-) diff --git a/arch/sh/kernel/kprobes.c b/arch/sh/kernel/kprobes.c index 318296f48f1a..118927ab63af 100644 --- a/arch/sh/kernel/kprob

[PATCH v3 05/16] arc: kprobes: Use generic kretprobe trampoline handler

2020-08-27 Thread Masami Hiramatsu
Signed-off-by: Masami Hiramatsu --- arch/arc/kernel/kprobes.c | 55 ++--- 1 file changed, 3 insertions(+), 52 deletions(-) diff --git a/arch/arc/kernel/kprobes.c b/arch/arc/kernel/kprobes.c index 7d3efe83cba7..da615684240b 100644 --- a/arch/arc/kernel/kp

[PATCH v3 09/16] parisc: kprobes: Use generic kretprobe trampoline handler

2020-08-27 Thread Masami Hiramatsu
Signed-off-by: Masami Hiramatsu --- arch/parisc/kernel/kprobes.c | 78 +++--- 1 file changed, 6 insertions(+), 72 deletions(-) diff --git a/arch/parisc/kernel/kprobes.c b/arch/parisc/kernel/kprobes.c index 77ec51818916..2f9389ae91a3 100644 --- a/arch/parisc/

Re: [PATCH 5.8 130/232] sched/uclamp: Protect uclamp fast path code with static key

2020-08-27 Thread Qais Yousef
On 08/27/20 17:55, Greg Kroah-Hartman wrote: > On Thu, Aug 27, 2020 at 02:53:31PM +0100, Qais Yousef wrote: > > On 08/20/20 11:19, Greg Kroah-Hartman wrote: > > > From: Qais Yousef > > > > > > [ Upstream commit 46609ce227039fd192e0ecc7d940bed587fd2c78 ] > > > > > > There is a report that when uc

[PATCH v3 07/16] ia64: kprobes: Use generic kretprobe trampoline handler

2020-08-27 Thread Masami Hiramatsu
Signed-off-by: Masami Hiramatsu --- arch/ia64/kernel/kprobes.c | 79 ++-- 1 file changed, 4 insertions(+), 75 deletions(-) diff --git a/arch/ia64/kernel/kprobes.c b/arch/ia64/kernel/kprobes.c index 7a7df944d798..0e725ca9c60d 100644 --- a/arch/ia64/kernel

[PATCH v3 08/16] mips: kprobes: Use generic kretprobe trampoline handler

2020-08-27 Thread Masami Hiramatsu
Signed-off-by: Masami Hiramatsu --- arch/mips/kernel/kprobes.c | 55 +++- 1 file changed, 4 insertions(+), 51 deletions(-) diff --git a/arch/mips/kernel/kprobes.c b/arch/mips/kernel/kprobes.c index d043c2f897fc..b58f49b7555e 100644 --- a/arch/mips/kernel

[PATCH v3 00/16] kprobes: Unify kretprobe trampoline handlers

2020-08-27 Thread Masami Hiramatsu
Hi, Here is the 3rd version of the series to unify the kretprobe trampoline handler implementation across all architectures which are currently kprobes supported. Previous version is here; https://lkml.kernel.org/r/159852811819.707944.12798182250041968537.stgit@devnote2 This series removes the

[PATCH v3 03/16] arm: kprobes: Use generic kretprobe trampoline handler

2020-08-27 Thread Masami Hiramatsu
Use the generic kretprobe trampoline handler. Use regs->ARM_fp for framepointer verification. Signed-off-by: Masami Hiramatsu --- Changes in v2: - Fix to cast frame_pointer type to void *. --- arch/arm/probes/kprobes/core.c | 79 ++-- 1 file changed, 4

[PATCH v3 02/16] x86/kprobes: Use generic kretprobe trampoline handler

2020-08-27 Thread Masami Hiramatsu
Signed-off-by: Masami Hiramatsu --- arch/x86/kernel/kprobes/core.c | 109 +--- 1 file changed, 4 insertions(+), 105 deletions(-) diff --git a/arch/x86/kernel/kprobes/core.c b/arch/x86/kernel/kprobes/core.c index fdadc37d72af..7c6473a12cee 100644 --- a/arch/x8

Re: [PATCH] ptp: ptp_ines: Remove redundant null check

2020-08-27 Thread Richard Cochran
On Wed, Aug 26, 2020 at 03:12:51AM +, Xu Wang wrote: > Because kfree_skb already checked NULL skb parameter, > so the additional check is unnecessary, just remove it. > > Signed-off-by: Xu Wang Acked-by: Richard Cochran

[PATCH RFC] netlabel: remove unused param from audit_log_format()

2020-08-27 Thread Alex Dewar
Commit d3b990b7f327 ("netlabel: fix problems with mapping removal") added a check to return an error if ret_val != 0, before ret_val is later used in a log message. Now it will unconditionally print "... res=0". So don't print res anymore. Addresses-Coverity: ("Dead code") Fixes: d3b990b7f327 ("ne

[PATCH v3 04/16] arm64: kprobes: Use generic kretprobe trampoline handler

2020-08-27 Thread Masami Hiramatsu
Use the generic kretprobe trampoline handler, and use the kernel_stack_pointer(regs) for framepointer verification. Signed-off-by: Masami Hiramatsu --- arch/arm64/kernel/probes/kprobes.c | 79 ++-- 1 file changed, 4 insertions(+), 75 deletions(-) diff --git a/a

Re: [Intel-gfx] [PATCH] drm/i915/vlv_dsi_pll: fix spelling mistake "Cant" -> "Can't"

2020-08-27 Thread Ville Syrjälä
On Mon, Aug 10, 2020 at 10:59:52AM +0100, Colin King wrote: > From: Colin Ian King > > There is a spelling mistake in a drm_err message. Fix it. Thanks. Applied to dinq. > > Signed-off-by: Colin Ian King > --- > drivers/gpu/drm/i915/display/vlv_dsi_pll.c | 2 +- > 1 file changed, 1 insertion

[PATCH v3 01/16] kprobes: Add generic kretprobe trampoline handler

2020-08-27 Thread Masami Hiramatsu
Add a generic kretprobe trampoline handler for unifying the all cloned /arch/* kretprobe trampoline handlers. The generic kretprobe trampoline handler is based on the x86 implementation, because it is the latest implementation. It has frame pointer checking, kprobe_busy_begin/end and return addres

Re: [PATCH v3] memory: omap-gpmc: Fix build error without CONFIG_OF

2020-08-27 Thread Roger Quadros
On 27/08/2020 16:21, Krzysztof Kozlowski wrote: On Thu, Aug 27, 2020 at 08:53:16PM +0800, YueHaibing wrote: If CONFIG_OF is n, gcc fails: drivers/memory/omap-gpmc.o: In function `gpmc_omap_onenand_set_timings': omap-gpmc.c:(.text+0x2a88): undefined reference to `gpmc_read_settings_dt' Add g

Re: [RFC][PATCH 6/7] freelist: Lock less freelist

2020-08-27 Thread peterz
On Thu, Aug 27, 2020 at 06:12:43PM +0200, Peter Zijlstra wrote: > +struct freelist_node { > + atomic_trefs; > + struct freelist_node*next; > +}; Bah, the next patch relies on this structure to be ordered the other way around. Clearly writing code and listening to talks

From Mich

2020-08-27 Thread Shayma
Dobrý deň, dúfam, že ste dostali moju správu. Potrebujem rýchlu reakciu Ďakujem michelle

KASAN: use-after-free Read in snd_pcm_oss_release

2020-08-27 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:f37be724 Add linux-next specific files for 20200826 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=137c7cb990 kernel config: https://syzkaller.appspot.com/x/.config?x=1e5a1cf036089d95 dashboard

[RFD PATCH] x86/mce: Make sure to send SIGBUS even after losing the race to poison a page

2020-08-27 Thread Tony Luck
For discussion ... I'm 100% sure the patch below is the wrong way to fix this ... for one thing it doesn't provide the virtual address of the error to the user signal handler. For another it just looks like a hack. I'm just not sure whether to delve deep into the memory_failure() path to make sure

[PATCH 1/3] SVM: nSVM: correctly restore GIF on vmexit from nesting after migration

2020-08-27 Thread Maxim Levitsky
Currently code in svm_set_nested_state copies the current vmcb control area to L1 control area (hsave->control), under assumption that it mostly reflects the defaults that kvm choose, and later qemu overrides these defaults with L2 state using standard KVM interfaces, like KVM_SET_REGS. However n

[PATCH 2/3] SVM: nSVM: setup nested msr permission bitmap on nested state load

2020-08-27 Thread Maxim Levitsky
This code was missing and was forcing the L2 run with L1's msr permission bitmap Signed-off-by: Maxim Levitsky --- arch/x86/kvm/svm/nested.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/kvm/svm/nested.c b/arch/x86/kvm/svm/nested.c index 95fdf068fe4c1..e90bc436f5849 100644 ---

[PATCH 0/3] Few nSVM bugfixes

2020-08-27 Thread Maxim Levitsky
This patch series contains few nested SVM fixes from testing I did this weekend. Patch #1 fixes issue where we were setting the GIF (global interrupt flag) on first nested VMexit, after migration thus making the nested guest crash from unexpected interrupts. Patch #2 is my observation that we nev

[PATCH 3/3] KVM: nSVM: more strict SMM checks when returning to nested guest

2020-08-27 Thread Maxim Levitsky
* check that guest is 64 bit guest, otherwise the SVM related fields in the smm state area are not defined * If the SMM area indicates that SMM interrupted a running guest, check that EFER.SVME which is also saved in this area is set, otherwise the guest might have tampered with SMM save are

Re: lib/crypto/chacha.c:65:1: warning: the frame size of 1604 bytes is larger than 1024 bytes

2020-08-27 Thread Arnd Bergmann
On Thu, Aug 27, 2020 at 1:51 PM Herbert Xu wrote: > > On Thu, Aug 27, 2020 at 12:41:53PM +0200, Ard Biesheuvel wrote: > > > > That does not help, unfortunately. > > > > What does seem to work is > > > > struct chacha_state { u32 x[16]; }; > > > > struct chacha_state chacha_permute(struct chacha_st

RE: [PATCH v2 08/10] fs/ntfs3: Add Kconfig, Makefile and doc

2020-08-27 Thread Konstantin Komarov
From: Pali Rohár Sent: Sunday, August 23, 2020 1:17 PM > > On Friday 21 August 2020 16:25:37 Konstantin Komarov wrote: > > +Mount Options > > += > > + > > +The list below describes mount options supported by NTFS3 driver in > > addtion to > > +generic ones. > > + > > +===

Re: [PATCH] PCI/ASPM: Enable ASPM for links under VMD domain

2020-08-27 Thread h...@infradead.org
On Thu, Aug 27, 2020 at 04:13:44PM +, Derrick, Jonathan wrote: > On Thu, 2020-08-27 at 06:34 +, h...@infradead.org wrote: > > On Wed, Aug 26, 2020 at 09:43:27PM +, Derrick, Jonathan wrote: > > > Feel free to review my set to disable the MSI remapping which will > > > make > > > it perfo

[PATCH v2 08/13] phy: cadence-torrent: Add PHY link configuration sequences for single link

2020-08-27 Thread Swapnil Jakhade
Add support to configure link_cmn_vals and xcvr_diag_vals in case of single link PHY configuration. Signed-off-by: Swapnil Jakhade --- drivers/phy/cadence/phy-cadence-torrent.c | 44 +++ 1 file changed, 44 insertions(+) diff --git a/drivers/phy/cadence/phy-cadence-torrent.c

[RFC][PATCH 7/7] kprobes: Replace rp->free_instance with freelist

2020-08-27 Thread Peter Zijlstra
Gets rid of rp->lock, and as a result kretprobes are now fully lockless. Signed-off-by: Peter Zijlstra (Intel) --- include/linux/kprobes.h | 11 ++-- kernel/kprobes.c| 63 +++- 2 files changed, 34 insertions(+), 40 deletions(-) --- a/i

[RFC][PATCH 2/7] sched: Fix try_invoke_on_locked_down_task() semantics

2020-08-27 Thread Peter Zijlstra
Signed-off-by: Peter Zijlstra (Intel) --- kernel/sched/core.c |9 - 1 file changed, 4 insertions(+), 5 deletions(-) --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -3006,15 +3006,14 @@ try_to_wake_up(struct task_struct *p, un */ bool try_invoke_on_locked_down_task(struct

[RFC][PATCH 5/7] asm-generic/atomic: Add try_cmpxchg() fallbacks

2020-08-27 Thread Peter Zijlstra
Only x86 provides try_cmpxchg() outside of the atomic_t interfaces, provide generic fallbacks to create this interface from the widely available cmpxchg() function. Signed-off-by: Peter Zijlstra (Intel) Acked-by: Will Deacon --- arch/x86/include/asm/atomic.h |2 arch/x86/includ

Re: [PATCH v2 1/9] docs: Document IO Address Space ID (IOASID) APIs

2020-08-27 Thread Auger Eric
Hi Jacob, On 8/24/20 12:32 PM, Jean-Philippe Brucker wrote: > On Fri, Aug 21, 2020 at 09:35:10PM -0700, Jacob Pan wrote: >> IOASID is used to identify address spaces that can be targeted by device >> DMA. It is a system-wide resource that is essential to its many users. >> This document is an attem

[RFC][PATCH 0/7] kprobes: Make kretprobes lockless

2020-08-27 Thread Peter Zijlstra
Hi, These are on top of Masami's generic kretprobe handler patches (v1): https://lkml.kernel.org/r/159844957216.510284.17683703701627367133.stgit@devnote2 They are very lightly tested, esp. the freelist stuff has basically only been translated to kernel C without much thinking (while attendin

[RFC][PATCH 3/7] kprobes: Remove kretprobe hash

2020-08-27 Thread Peter Zijlstra
The kretprobe hash is mostly superfluous, replace it with a per-task variable. This gets rid of the task hash and it's related locking. The whole invalidate_rp_inst() is tedious and could go away once we drop rp specific ri size. Signed-off-by: Peter Zijlstra (Intel) --- include/linux/kprobes.

[RFC][PATCH 1/7] llist: Add nonatomic __llist_add()

2020-08-27 Thread Peter Zijlstra
Signed-off-by: Peter Zijlstra (Intel) --- drivers/gpu/drm/i915/i915_request.c |6 -- include/linux/llist.h | 15 +++ 2 files changed, 15 insertions(+), 6 deletions(-) --- a/drivers/gpu/drm/i915/i915_request.c +++ b/drivers/gpu/drm/i915/i915_request.c @@ -35

[RFC][PATCH 6/7] freelist: Lock less freelist

2020-08-27 Thread Peter Zijlstra
Cc: came...@moodycamel.com Cc: o...@redhat.com Cc: w...@kernel.org Signed-off-by: Peter Zijlstra (Intel) --- include/linux/freelist.h | 129 +++ 1 file changed, 129 insertions(+) --- /dev/null +++ b/include/linux/freelist.h @@ -0,0 +1,129 @@ +// SP

[RFC][PATCH 4/7] kprobe: Dont kfree() from breakpoint context

2020-08-27 Thread Peter Zijlstra
Breakpoint context might not be a safe context for kfree(), push it out to RCU. Signed-off-by: Peter Zijlstra (Intel) --- include/linux/kprobes.h |2 +- kernel/kprobes.c| 27 ++- 2 files changed, 7 insertions(+), 22 deletions(-) --- a/include/linux/kprobes.

[PATCH v2 09/13] phy: cadence-torrent: Configure PHY_PLL_CFG as part of link_cmn_vals

2020-08-27 Thread Swapnil Jakhade
Include PHY_PLL_CFG as a first register value to configure in link_cmn_vals array values. Signed-off-by: Swapnil Jakhade --- drivers/phy/cadence/phy-cadence-torrent.c | 22 ++ 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/drivers/phy/cadence/phy-cadence-torre

[PATCH v2 07/13] phy: cadence-torrent: Add clk changes for multilink configuration

2020-08-27 Thread Swapnil Jakhade
Prepare and enable clock in probe instead of phy_init. Also, remove phy_exit callback. Signed-off-by: Swapnil Jakhade --- drivers/phy/cadence/phy-cadence-torrent.c | 41 ++- 1 file changed, 17 insertions(+), 24 deletions(-) diff --git a/drivers/phy/cadence/phy-cadence-torren

Re: INFO: task can't die in p9_fd_close

2020-08-27 Thread Dominique Martinet
Mark Brown wrote on Wed, Aug 26, 2020: > On Wed, Aug 26, 2020 at 03:38:15AM -0700, syzbot wrote: > > > console output: https://syzkaller.appspot.com/x/log.txt?x=10615b3690 > > kernel config: https://syzkaller.appspot.com/x/.config?x=a61d44f28687f508 > > dashboard link: https://syzkaller.appsp

Re: [PATCH v2 1/1] EDAC/ghes: Fix for NULL pointer dereference in ghes_edac_register()

2020-08-27 Thread Borislav Petkov
On Thu, Aug 27, 2020 at 03:04:50PM +0100, Shiju Jose wrote: > After the 'commit b9cae27728d1 ("EDAC/ghes: Scan the system once on driver > init")' > applied, following error has occurred in the ghes_edac_register() when > CONFIG_DEBUG_TEST_DRIVER_REMOVE is enabled. The null ghes_hw.dimms pointer >

RE: [PATCH v2 02/10] fs/ntfs3: Add initialization of super block

2020-08-27 Thread Konstantin Komarov
From: Pali Rohár Sent: Sunday, August 23, 2020 12:55 PM > > On Friday 21 August 2020 16:25:03 Konstantin Komarov wrote: > > + case Opt_nls: > > + match_strlcpy(nls_name, &args[0], sizeof(nls_name)); > > + break; > > + > > + /* unknown option

RE: [PATCH v2 04/10] fs/ntfs3: Add file operations and implementation

2020-08-27 Thread Konstantin Komarov
From: Pali Rohár Sent: Sunday, August 23, 2020 12:49 PM > > Hello Konstantin! > > On Friday 21 August 2020 16:25:15 Konstantin Komarov wrote: > > diff --git a/fs/ntfs3/dir.c b/fs/ntfs3/dir.c > > new file mode 100644 > > index ..5f1105f1283c > > --- /dev/null [] > > +#include > > +#i

Re: [PATCH V2] drm/sun4i: add missing put_device() call in sun8i_r40_tcon_tv_set_mux()

2020-08-27 Thread Maxime Ripard
On Wed, Aug 26, 2020 at 09:08:26AM +0800, Yu Kuai wrote: > If sun8i_r40_tcon_tv_set_mux() succeed, sun8i_r40_tcon_tv_set_mux() > doesn't have a corresponding put_device(). Thus add put_device() > to fix the exception handling for this function implementation. > > Fixes: 0305189afb32 ("drm/sun4i: t

Re: [GIT PULL] fscache rewrite -- please drop for now

2020-08-27 Thread Dominique Martinet
David Howells wrote on Thu, Aug 27, 2020: > Christoph Hellwig wrote: > > > FYI, a giant rewrite dropping support for existing consumer is always > > rather awkward. Is there any way you could pre-stage some infrastructure > > changes, and then do a temporary fscache2, which could then be renamed

[PATCH v2 12/13] phy: cadence-torrent: Add PCIe + USB multilink configuration

2020-08-27 Thread Swapnil Jakhade
Add PCIe + USB Unique SSC multilink configuration sequences. Signed-off-by: Swapnil Jakhade --- drivers/phy/cadence/phy-cadence-torrent.c | 216 ++ 1 file changed, 216 insertions(+) diff --git a/drivers/phy/cadence/phy-cadence-torrent.c b/drivers/phy/cadence/phy-cadence-tor

[PATCH v2 13/13] phy: cadence-torrent: Add USB + SGMII/QSGMII multilink configuration

2020-08-27 Thread Swapnil Jakhade
Add USB + SGMII/QSGMII multilink configuration sequences. Signed-off-by: Swapnil Jakhade --- drivers/phy/cadence/phy-cadence-torrent.c | 254 ++ 1 file changed, 254 insertions(+) diff --git a/drivers/phy/cadence/phy-cadence-torrent.c b/drivers/phy/cadence/phy-cadence-torren

[PATCH v2 11/13] phy: cadence-torrent: Add single link USB register sequences

2020-08-27 Thread Swapnil Jakhade
Add support for single link USB configuration. Signed-off-by: Swapnil Jakhade --- drivers/phy/cadence/phy-cadence-torrent.c | 260 +- 1 file changed, 259 insertions(+), 1 deletion(-) diff --git a/drivers/phy/cadence/phy-cadence-torrent.c b/drivers/phy/cadence/phy-cadence-to

[PATCH v2 00/13] PHY: Add support for multilink configurations in Cadence Torrent PHY driver

2020-08-27 Thread Swapnil Jakhade
Cadence Torrent PHY is a multiprotocol PHY supporting different multilink PHY configurations including DisplayPort, PCIe, USB, SGMII, QSGMII etc. This patch series extends functionality of Torrent PHY driver to support following configurations: - Single link PCIe configuration - PCIe + SGMII/QSGMII

Re: [PATCH] Documentation: kunit: Add naming guidelines

2020-08-27 Thread David Gow
On Thu, Aug 27, 2020 at 9:14 PM Marco Elver wrote: > > On Thu, Jul 02, 2020 at 12:14AM -0700, David Gow wrote: > > As discussed in [1], KUnit tests have hitherto not had a particularly > > consistent naming scheme. This adds documentation outlining how tests > > and test suites should be named, in

[PATCH v2 02/13] phy: cadence-torrent: Check cmn_ready assertion during PHY power on

2020-08-27 Thread Swapnil Jakhade
Check if cmn_ready is set after both PLL0 and PLL1 are locked. Signed-off-by: Swapnil Jakhade --- drivers/phy/cadence/phy-cadence-torrent.c | 31 ++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/drivers/phy/cadence/phy-cadence-torrent.c b/drivers/phy/cadence

[PATCH v2 10/13] phy: cadence-torrent: Add single link SGMII/QSGMII register sequences

2020-08-27 Thread Swapnil Jakhade
Add support for single link SGMII/QSGMII configuration. Signed-off-by: Swapnil Jakhade --- drivers/phy/cadence/phy-cadence-torrent.c | 89 +++ 1 file changed, 89 insertions(+) diff --git a/drivers/phy/cadence/phy-cadence-torrent.c b/drivers/phy/cadence/phy-cadence-torrent.c

Re: [PATCH net v4] net: ethernet: ti: cpsw_new: fix error handling in cpsw_ndo_vlan_rx_kill_vid()

2020-08-27 Thread David Miller
From: Murali Karicheri Date: Thu, 27 Aug 2020 10:38:39 -0400 > This patch fixes a bunch of issues in cpsw_ndo_vlan_rx_kill_vid() > > - pm_runtime_get_sync() returns non zero value. This results in >non zero value return to caller which will be interpreted as error. >So overwrite ret wit

[PATCH v2 01/13] phy: cadence-torrent: Add single link PCIe support

2020-08-27 Thread Swapnil Jakhade
Add single link PCIe register sequences in Torrent PHY driver. Also, add support for getting SSC type from DT. Signed-off-by: Swapnil Jakhade --- drivers/phy/cadence/phy-cadence-torrent.c | 296 +++--- 1 file changed, 266 insertions(+), 30 deletions(-) diff --git a/drivers/phy/c

[PATCH v2 06/13] phy: cadence-torrent: Update PHY reset for multilink configuration

2020-08-27 Thread Swapnil Jakhade
For multilink configuration, deassert PHY and link reset after PHY registers are configured in probe and only check link status in power_on callback. Signed-off-by: Swapnil Jakhade --- drivers/phy/cadence/phy-cadence-torrent.c | 28 +-- 1 file changed, 21 insertions(+), 7 del

[PATCH v2 05/13] phy: cadence-torrent: Add support for PHY multilink configuration

2020-08-27 Thread Swapnil Jakhade
Added support for multilink configuration of Torrent PHY. Currently, maximum two links are supported. In case of multilink configuration, PHY needs to be configured for both the protocols simultaneously at the beginning as per the requirement of Torrent PHY. Also, register sequences for PCIe + SGMI

[PATCH v2 04/13] dt-bindings: phy: Add PHY_TYPE_QSGMII definition

2020-08-27 Thread Swapnil Jakhade
Add definition for QSGMII phy type. Signed-off-by: Swapnil Jakhade Acked-by: Rob Herring --- include/dt-bindings/phy/phy.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-bindings/phy/phy.h b/include/dt-bindings/phy/phy.h index 36e8c241cf48..887a31b250a8 100644 --- a/include/dt-b

[PATCH v2 03/13] phy: cadence-torrent: Add PHY APB reset support

2020-08-27 Thread Swapnil Jakhade
Add support for PHY APB reset and make it optional. Signed-off-by: Swapnil Jakhade --- drivers/phy/cadence/phy-cadence-torrent.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/phy/cadence/phy-cadence-torrent.c b/drivers/phy/cadence/phy-cadence-torrent.c index af307af

Re: [PATCH v2 08/10] fs/ntfs3: Add Kconfig, Makefile and doc

2020-08-27 Thread Joe Perches
On Thu, 2020-08-27 at 16:01 +, Konstantin Komarov wrote: > From: Randy Dunlap > Sent: Friday, August 21, 2020 8:23 PM [] > > > +- Full journaling support (currently journal replaying is supported) > > > over JBD. > > > > journalling > > seems to be preferred. > > > Have to disagre

Re: [PATCH v36 12/24] x86/sgx: Add SGX_IOC_ENCLAVE_CREATE

2020-08-27 Thread Borislav Petkov
On Thu, Aug 27, 2020 at 04:24:36PM +0300, Jarkko Sakkinen wrote: > I have not checked if this passes checkpatch.pl yet, but I would > be surprised if that did not pass (obviously I'll check that). Right, when you're done with the patchset, just do checkpatch.pl -g ... on it before sending and yo

Re: [PATCH v2] null_blk: add support for max open/active zone limit for zoned devices

2020-08-27 Thread Randy Dunlap
On 8/27/20 8:04 AM, Damien Le Moal wrote: > On 2020/08/27 23:51, Randy Dunlap wrote: >> On 8/27/20 6:50 AM, Niklas Cassel wrote: >>> Add support for user space to set a max open zone and a max active zone >>> limit via configfs. By default, the default values are 0 == no limit. >> >> Hi, >> >> How

Re: [PATCH v2] efi/efivars: Create efivars mount point via efivars abstraction

2020-08-27 Thread joeyli
On Wed, Aug 26, 2020 at 11:56:33PM +0800, Joey Lee wrote: > Hi Ard, > > On Wed, Aug 26, 2020 at 02:08:18PM +0200, Ard Biesheuvel wrote: > > On Wed, 26 Aug 2020 at 02:46, Lee, Chun-Yi wrote: > > > > > > This patch creates efivars mount point when active efivars abstraction > > > be set. It is usef

RE: [PATCH v2 02/10] fs/ntfs3: Add initialization of super block

2020-08-27 Thread Konstantin Komarov
From: Joe Perches Sent: Friday, August 21, 2020 10:39 PM > > On Fri, 2020-08-21 at 16:25 +, Konstantin Komarov wrote: > > Initialization of super block for fs/ntfs3 > [] > > diff --git a/fs/ntfs3/super.c b/fs/ntfs3/super.c > [] > > + > > +/** > > + * ntfs_trace() - print preformated ntfs spec

Re: [PATCH] PCI/ASPM: Enable ASPM for links under VMD domain

2020-08-27 Thread Derrick, Jonathan
On Thu, 2020-08-27 at 06:34 +, h...@infradead.org wrote: > On Wed, Aug 26, 2020 at 09:43:27PM +, Derrick, Jonathan wrote: > > Feel free to review my set to disable the MSI remapping which will > > make > > it perform as well as direct-attached: > > > > https://patchwork.kernel.org/project/

Re: [PATCH 08/23] jfs: use ASSERT_FAIL()/ASSERT_WARN() to cleanup some code

2020-08-27 Thread kernel test robot
Hi Chunguang, Thank you for the patch! Yet something to improve: [auto build test ERROR on mkp-scsi/for-next] [also build test ERROR on scsi/for-next block/for-next linus/master asm-generic/master v5.9-rc2 next-20200827] [If your patch is applied to the wrong git tree, kindly drop us a note

RE: [PATCH v2 00/10] fs: NTFS read-write driver GPL implementation by Paragon Software.

2020-08-27 Thread Konstantin Komarov
From: Joe Perches Sent: Friday, August 21, 2020 10:21 PM > > On Fri, 2020-08-21 at 16:24 +, Konstantin Komarov wrote: > > This patch adds NTFS Read-Write driver to fs/ntfs3. > > Thanks. > Proper ntfs read/write support will be great addition. > > Trivia: > > If this patchset is submitted a

Re: [PATCH] net: exit immediately when encounter ipv6 fragment in skb_checksum_setup_ipv6()

2020-08-27 Thread David Miller
From: Miaohe Lin Date: Thu, 27 Aug 2020 07:21:59 -0400 > skb_checksum_setup_ipv6() always return -EPROTO if ipv6 packet is fragment. > So we should not continue to parse other header type in this case. Also > remove unnecessary local variable 'fragment'. > > Signed-off-by: Miaohe Lin Again, th

Re: [PATCH] net: Call ip_hdrlen() when skbuff is not fragment

2020-08-27 Thread David Miller
From: Miaohe Lin Date: Thu, 27 Aug 2020 07:17:59 -0400 > When skbuff is fragment, we exit immediately and leave ip_hdrlen() as > unused. And remove the unnecessary local variable fragment. > > Signed-off-by: Miaohe Lin I don't think this is a useful optimization sorry, the common case will be

Re: [PATCH] net: Add 'else' to split mutually exclusive case

2020-08-27 Thread David Miller
From: Miaohe Lin Date: Thu, 27 Aug 2020 07:15:52 -0400 > Add else to split mutually exclusive case and avoid unnecessary check. > > Signed-off-by: Miaohe Lin I see no value to this, the compiler is doing the right thing already and this does not add to code readability either. I'm not applyin

Re: [PATCH] MAINTAINERS: Add security docs to SECURITY CONTACT

2020-08-27 Thread Greg Kroah-Hartman
On Thu, Aug 27, 2020 at 03:20:16PM +0200, Krzysztof Kozlowski wrote: > On Thu, Aug 27, 2020 at 03:18:27PM +0200, Greg Kroah-Hartman wrote: > > On Thu, Aug 27, 2020 at 03:13:30PM +0200, Krzysztof Kozlowski wrote: > > > When changing the documents related to kernel security workflow, notify > > > the

Re: [PATCH] staging: ion: remove from the tree

2020-08-27 Thread Greg Kroah-Hartman
On Thu, Aug 27, 2020 at 09:31:27AM -0400, Laura Abbott wrote: > On 8/27/20 8:36 AM, Greg Kroah-Hartman wrote: > > The ION android code has long been marked to be removed, now that we > > dma-buf support merged into the real part of the kernel. > > > > It was thought that we could wait to remove th

RE: [PATCH v2 02/10] fs/ntfs3: Add initialization of super block

2020-08-27 Thread Konstantin Komarov
From: Randy Dunlap Sent: Friday, August 21, 2020 8:36 PM > On 8/21/20 9:25 AM, Konstantin Komarov wrote: > > > > +/* O:BAG:BAD:(A;OICI;FA;;;WD) */ > > What is that notation, please? > Apologies. It's MS's SSDL. We will have it explained a bit more in V3. > > +const u8 s_dir_security[] __alig

RE: [PATCH v2 08/10] fs/ntfs3: Add Kconfig, Makefile and doc

2020-08-27 Thread Konstantin Komarov
From: Randy Dunlap Sent: Friday, August 21, 2020 8:23 PM > > On 8/21/20 9:25 AM, Konstantin Komarov wrote: > > This adds fs/ntfs3 Kconfig, Makefile and Documentation file [] > > + > > +- This driver implements NTFS read/write support for normal, sparsed and > >

Re: [PATCH v5 00/20] gpio: cdev: add uAPI v2

2020-08-27 Thread Bartosz Golaszewski
On Thu, Aug 27, 2020 at 5:53 PM Linus Walleij wrote: > > On Thu, Aug 27, 2020 at 4:00 PM Kent Gibson wrote: > > > This patchset defines and implements a new version of the > > GPIO CDEV uAPI to address existing 32/64-bit alignment issues, add > > support for debounce, event sequence numbers, and

Re: [PATCH v6 02/76] KVM: SVM: Add GHCB definitions

2020-08-27 Thread Arvind Sankar
On Tue, Aug 25, 2020 at 01:04:46PM +0200, Borislav Petkov wrote: > On Tue, Aug 25, 2020 at 11:22:24AM +0200, Joerg Roedel wrote: > > I don't think so, if I look at the history of these checks their whole > > purpose seems to be to alert the developer/maintainer when their size > > changes and that

Re: [PATCH V2 0/2] Enable DVFS support for IPQ6018

2020-08-27 Thread Kathiravan T
Bjorn, Can you help to share your comments on this series? Thanks, Kathiravan T. On 8/17/2020 12:48 PM, Kathiravan T wrote: Add A53 PLL, APCS clock, RPM Glink, RPM message RAM, cpu-opp-table, SMPA2 regulator to enable the cpu frequency on IPQ6018. [v2] - Rebased on v5.9-rc1

RE: [PATCH 01/10] fs: don't allow kernel reads and writes without iter ops

2020-08-27 Thread David Laight
From: Christoph Hellwig > Sent: 27 August 2020 16:00 > > Don't allow calling ->read or ->write with set_fs as a preparation for > killing off set_fs. All the instances that we use kernel_read/write on > are using the iter ops already. > > If a file has both the regular ->read/->write methods and

[PATCH] fs/affs: Fix basic permission bits to actually work

2020-08-27 Thread Max Staudt
The basic permission bits (protection bits in AmigaOS) have been broken in Linux' affs - it would only set bits, but never delete them. Also, contrary to the documentation, the Archived bit was not handled. Let's fix this for good, and set the bits such that Linux and classic AmigaOS can coexist i

[PATCH][next] drm/amdgpu/swsmu: fix potential uint32_t multiplication overflow

2020-08-27 Thread Colin King
From: Colin Ian King The calculation of tmp64 is performed using a 32 bit multiply and then is stored in the uint64_t variable tmp64. This indicates that a 64 bit result may be expected, so cast crystal_clock_freq to a uint64_t to ensure a 64 bit multiplication is being performed to avoid any pot

Re: [PATCH] deprecated.rst: Remove now removed uninitialized_var

2020-08-27 Thread Joe Perches
On Thu, 2020-08-27 at 07:58 -0700, Kees Cook wrote: > On Wed, Aug 26, 2020 at 08:12:01PM -0700, Joe Perches wrote: > > It's now gone from the kernel so remove it from the deprecated API text. > > > > Signed-off-by: Joe Perches > > Oh! Right, thank you. I forgot to rewrite this. I'd like to keep

[PATCH net] rxrpc: Fix memory leak in rxkad_verify_response()

2020-08-27 Thread David Howells
From: Dinghao Liu Fix a memory leak in rxkad_verify_response() whereby the response buffer doesn't get freed if we fail to allocate a ticket buffer. Fixes: ef68622da9cc ("rxrpc: Handle temporary errors better in rxkad security") Signed-off-by: Dinghao Liu Signed-off-by: David Howells --- net

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