[PATCH] perf annotate: Fix objdump comment parsing for Intel mov dissassembly

2017-11-27 Thread Thomas Richter
The command 'perf annotate' parses the output of objdump and also investigates the comments produced by objdump. For example the output of objdump produces (on x86): 23eee: 4c 8b 3d 13 01 21 00 mov 0x210113(%rip),%r15 # 234008 and the

[PATCH] perf annotate: Fix objdump comment parsing for Intel mov dissassembly

2017-11-27 Thread Thomas Richter
The command 'perf annotate' parses the output of objdump and also investigates the comments produced by objdump. For example the output of objdump produces (on x86): 23eee: 4c 8b 3d 13 01 21 00 mov 0x210113(%rip),%r15 # 234008 and the function mov__parse() is

[PATCH 00/18] introduce a new tool, valid access checker

2017-11-27 Thread js1304
From: Joonsoo Kim Hello, This patchset introduces a new tool, valid access checker. Vchecker is a dynamic memory error detector. It provides a new debug feature that can find out an un-intended access to valid area. Valid area here means the memory which is allocated

[PATCH 00/18] introduce a new tool, valid access checker

2017-11-27 Thread js1304
From: Joonsoo Kim Hello, This patchset introduces a new tool, valid access checker. Vchecker is a dynamic memory error detector. It provides a new debug feature that can find out an un-intended access to valid area. Valid area here means the memory which is allocated and allowed to be accessed

[PATCH 04/18] vchecker: prepare per object memory for vchecker

2017-11-27 Thread js1304
From: Joonsoo Kim To prepare per object memory for vchecker, we need to change the layout of the object when kmem_cache initialization. Add such code on vchecker_cache_create() which is called when kmem_cache initialization. And, this memory should be initialized when

[PATCH 04/18] vchecker: prepare per object memory for vchecker

2017-11-27 Thread js1304
From: Joonsoo Kim To prepare per object memory for vchecker, we need to change the layout of the object when kmem_cache initialization. Add such code on vchecker_cache_create() which is called when kmem_cache initialization. And, this memory should be initialized when object is populated. Do it

Re: general protection fault in blkcipher_walk_done

2017-11-27 Thread Eric Biggers
On Mon, Nov 27, 2017 at 09:37:38PM -0800, Eric Biggers wrote: > On Mon, Nov 27, 2017 at 10:56:47AM -0800, syzbot wrote: > > Hello, > > > > syzkaller hit the following crash on > > 1ea8d039f9edcfefb20d8ddfe136930f6e551529 > > git://git.cmpxchg.org/linux-mmots.git/master > > compiler: gcc (GCC)

[PATCH 01/18] mm/kasan: make some kasan functions global

2017-11-27 Thread js1304
From: Joonsoo Kim They will be used for the vchecker in the following patch. Make it non-static and add declairation in header files. Signed-off-by: Joonsoo Kim --- include/linux/kasan.h | 1 + mm/kasan/kasan.c | 2 +- mm/kasan/kasan.h

[PATCH 01/18] mm/kasan: make some kasan functions global

2017-11-27 Thread js1304
From: Joonsoo Kim They will be used for the vchecker in the following patch. Make it non-static and add declairation in header files. Signed-off-by: Joonsoo Kim --- include/linux/kasan.h | 1 + mm/kasan/kasan.c | 2 +- mm/kasan/kasan.h | 2 ++ mm/kasan/report.c | 2 +- 4 files

Re: general protection fault in blkcipher_walk_done

2017-11-27 Thread Eric Biggers
On Mon, Nov 27, 2017 at 09:37:38PM -0800, Eric Biggers wrote: > On Mon, Nov 27, 2017 at 10:56:47AM -0800, syzbot wrote: > > Hello, > > > > syzkaller hit the following crash on > > 1ea8d039f9edcfefb20d8ddfe136930f6e551529 > > git://git.cmpxchg.org/linux-mmots.git/master > > compiler: gcc (GCC)

[PATCH 02/18] vchecker: introduce the valid access checker

2017-11-27 Thread js1304
From: Joonsoo Kim Vchecker is a dynamic memory error detector. It provides a new debug feature that can find out an un-intended access to valid area. Valid area here means the memory which is allocated and allowed to be accessed by memory owner and un-intended access

[PATCH 02/18] vchecker: introduce the valid access checker

2017-11-27 Thread js1304
From: Joonsoo Kim Vchecker is a dynamic memory error detector. It provides a new debug feature that can find out an un-intended access to valid area. Valid area here means the memory which is allocated and allowed to be accessed by memory owner and un-intended access means the read/write that is

[PATCH 07/18] lib/stackdepot: extend stackdepot API to support per-user stackdepot

2017-11-27 Thread js1304
From: Joonsoo Kim There is a usecase that check if stack trace is new or not during specific period. Since stackdepot library doesn't support removal of stack trace, it's impossible to know above thing. Since removal of stack trace is not easy in the design of stackdepot

[PATCH 07/18] lib/stackdepot: extend stackdepot API to support per-user stackdepot

2017-11-27 Thread js1304
From: Joonsoo Kim There is a usecase that check if stack trace is new or not during specific period. Since stackdepot library doesn't support removal of stack trace, it's impossible to know above thing. Since removal of stack trace is not easy in the design of stackdepot library, we need another

[PATCH] dt-bindings: pinctrl: uniphier: add UniPhier pinctrl binding

2017-11-27 Thread Masahiro Yamada
The driver has been in the tree for a while, but its binding document is missing. Hence, here it is. Signed-off-by: Masahiro Yamada --- .../pinctrl/socionext,uniphier-pinctrl.txt | 27 ++ MAINTAINERS

[PATCH] dt-bindings: pinctrl: uniphier: add UniPhier pinctrl binding

2017-11-27 Thread Masahiro Yamada
The driver has been in the tree for a while, but its binding document is missing. Hence, here it is. Signed-off-by: Masahiro Yamada --- .../pinctrl/socionext,uniphier-pinctrl.txt | 27 ++ MAINTAINERS| 1 + 2 files changed,

[PATCH 11/18] vchecker: consistently exclude vchecker's stacktrace

2017-11-27 Thread js1304
From: Joonsoo Kim Since there is a different callpath even in the vchecker, static skip value doesn't always exclude vchecker's stacktrace. Fix it through checking stacktrace dynamically. v2: skip two depth of stack at default, it's safe! Signed-off-by: Joonsoo Kim

[PATCH 11/18] vchecker: consistently exclude vchecker's stacktrace

2017-11-27 Thread js1304
From: Joonsoo Kim Since there is a different callpath even in the vchecker, static skip value doesn't always exclude vchecker's stacktrace. Fix it through checking stacktrace dynamically. v2: skip two depth of stack at default, it's safe! Signed-off-by: Joonsoo Kim --- mm/kasan/vchecker.c |

Re: [PATCH 16/24] x86/mm/kaiser: Use PCID feature to make user and kernel switches faster

2017-11-27 Thread Dave Hansen
On 11/27/2017 09:22 PM, Andy Lutomirski wrote: > On Mon, Nov 27, 2017 at 2:49 AM, Ingo Molnar wrote: >> From: Dave Hansen >> >> Short summary: Use x86 PCID feature to avoid flushing the TLB at all >> interrupts and syscalls. Speed them up. Makes

Re: [PATCH 16/24] x86/mm/kaiser: Use PCID feature to make user and kernel switches faster

2017-11-27 Thread Dave Hansen
On 11/27/2017 09:22 PM, Andy Lutomirski wrote: > On Mon, Nov 27, 2017 at 2:49 AM, Ingo Molnar wrote: >> From: Dave Hansen >> >> Short summary: Use x86 PCID feature to avoid flushing the TLB at all >> interrupts and syscalls. Speed them up. Makes context switches >> and TLB flushing slower. >

[PATCH 10/18] vchecker: Use __GFP_ATOMIC to save stacktrace

2017-11-27 Thread js1304
From: Namhyung Kim Since we're finding a cause of broken data, it'd be desired not to miss any suspects. It doesn't use GFP_ATOMIC since it includes __GFP_HIGH which is for system making forward progress. It also adds a WARN_ON whenever it fails to allocate pages even with

[PATCH 14/18] mm/vchecker: make callstack depth configurable

2017-11-27 Thread js1304
From: Joonsoo Kim Getting full callstack is heavy job so it's sometimes better to reduce this overhead by limiting callstack depth. So, this patch makes the callstack depth configurable by using debugfs interface. Signed-off-by: Joonsoo Kim ---

[PATCH 10/18] vchecker: Use __GFP_ATOMIC to save stacktrace

2017-11-27 Thread js1304
From: Namhyung Kim Since we're finding a cause of broken data, it'd be desired not to miss any suspects. It doesn't use GFP_ATOMIC since it includes __GFP_HIGH which is for system making forward progress. It also adds a WARN_ON whenever it fails to allocate pages even with __GFP_ATOMIC.

[PATCH 14/18] mm/vchecker: make callstack depth configurable

2017-11-27 Thread js1304
From: Joonsoo Kim Getting full callstack is heavy job so it's sometimes better to reduce this overhead by limiting callstack depth. So, this patch makes the callstack depth configurable by using debugfs interface. Signed-off-by: Joonsoo Kim --- mm/kasan/vchecker.c | 81

[PATCH 16/18] mm/vchecker: support allocation caller filter

2017-11-27 Thread js1304
From: Joonsoo Kim kmalloc() is used everywhere in the kernel and it doesn't distiniguish the callers since it doesn't much help to efficiently manage the memory. However, there is a difference in the view of the debugging. A bug usually happens on the objects allocated

[PATCH 15/18] mm/vchecker: pass allocation caller address to vchecker hook

2017-11-27 Thread js1304
From: Joonsoo Kim Vchecker requires kmalloc caller address to support validation on *specific* kmalloc user. Therefore, this patch passes slab allocation caller address to vchecker hook. This caller address will be used in the following patch. Signed-off-by: Joonsoo Kim

[PATCH 16/18] mm/vchecker: support allocation caller filter

2017-11-27 Thread js1304
From: Joonsoo Kim kmalloc() is used everywhere in the kernel and it doesn't distiniguish the callers since it doesn't much help to efficiently manage the memory. However, there is a difference in the view of the debugging. A bug usually happens on the objects allocated by specific allocation

[PATCH 15/18] mm/vchecker: pass allocation caller address to vchecker hook

2017-11-27 Thread js1304
From: Joonsoo Kim Vchecker requires kmalloc caller address to support validation on *specific* kmalloc user. Therefore, this patch passes slab allocation caller address to vchecker hook. This caller address will be used in the following patch. Signed-off-by: Joonsoo Kim ---

[PATCH 17/18] lib/vchecker_test: introduce a sample for vchecker test

2017-11-27 Thread js1304
From: Joonsoo Kim It's not easy to understand what can be done by the vchecker. This sample could explain it and help to understand the vchecker. Signed-off-by: Joonsoo Kim --- lib/Kconfig.kasan | 9 lib/Makefile| 1 +

[PATCH 17/18] lib/vchecker_test: introduce a sample for vchecker test

2017-11-27 Thread js1304
From: Joonsoo Kim It's not easy to understand what can be done by the vchecker. This sample could explain it and help to understand the vchecker. Signed-off-by: Joonsoo Kim --- lib/Kconfig.kasan | 9 lib/Makefile| 1 + lib/vchecker_test.c | 117

[PATCH 06/18] lib/stackdepot: Add is_new arg to depot_save_stack

2017-11-27 Thread js1304
From: Namhyung Kim The is_new argument is to check whether the given stack trace was already in the stack depot or newly added. It'll be used by vchecker callstack in the next patch. Also add WARN_ONCE if stack depot failed to allocate stack slab for some reason. This is

[PATCH 06/18] lib/stackdepot: Add is_new arg to depot_save_stack

2017-11-27 Thread js1304
From: Namhyung Kim The is_new argument is to check whether the given stack trace was already in the stack depot or newly added. It'll be used by vchecker callstack in the next patch. Also add WARN_ONCE if stack depot failed to allocate stack slab for some reason. This is unusual as it

[PATCH 13/18] mm/vchecker: support inline KASAN build

2017-11-27 Thread js1304
From: Joonsoo Kim There is no reason not to support inline KASAN build. Support it. Note that vchecker_check() function is now placed on kasan report function to support inline build because gcc generates the inline check code and then directly jump to kasan report

[PATCH 09/18] vchecker: Support toggle on/off of callstack check

2017-11-27 Thread js1304
From: Namhyung Kim By default, callstack checker only collects callchains. When a user writes 'on' to the callstack file in debugfs, it checks and reports new callstacks. Writing 'off' to disable it again. # cd /sys/kernel/debug/vchecker # echo 0 8 >

[PATCH 08/18] vchecker: Add 'callstack' checker

2017-11-27 Thread js1304
From: Namhyung Kim The callstack checker is to find invalid code paths accessing to a certain field in an object. Currently it only saves all stack traces at the given offset. Reporting will be added in the next patch. The below example checks callstack of anon_vma: #

[PATCH 13/18] mm/vchecker: support inline KASAN build

2017-11-27 Thread js1304
From: Joonsoo Kim There is no reason not to support inline KASAN build. Support it. Note that vchecker_check() function is now placed on kasan report function to support inline build because gcc generates the inline check code and then directly jump to kasan report function when poisoned value

[PATCH 09/18] vchecker: Support toggle on/off of callstack check

2017-11-27 Thread js1304
From: Namhyung Kim By default, callstack checker only collects callchains. When a user writes 'on' to the callstack file in debugfs, it checks and reports new callstacks. Writing 'off' to disable it again. # cd /sys/kernel/debug/vchecker # echo 0 8 > anon_vma/callstack # echo 1 >

[PATCH 08/18] vchecker: Add 'callstack' checker

2017-11-27 Thread js1304
From: Namhyung Kim The callstack checker is to find invalid code paths accessing to a certain field in an object. Currently it only saves all stack traces at the given offset. Reporting will be added in the next patch. The below example checks callstack of anon_vma: # cd

[PATCH 18/18] doc: add vchecker document

2017-11-27 Thread js1304
From: Joonsoo Kim This is a main document for vchecker user. Signed-off-by: Joonsoo Kim --- Documentation/dev-tools/vchecker.rst | 200 +++ 1 file changed, 200 insertions(+) create mode 100644

[PATCH 18/18] doc: add vchecker document

2017-11-27 Thread js1304
From: Joonsoo Kim This is a main document for vchecker user. Signed-off-by: Joonsoo Kim --- Documentation/dev-tools/vchecker.rst | 200 +++ 1 file changed, 200 insertions(+) create mode 100644 Documentation/dev-tools/vchecker.rst diff --git

[PATCH 05/18] vchecker: store/report callstack of value writer

2017-11-27 Thread js1304
From: Joonsoo Kim The purpose of the value checker is finding invalid user writing invalid value at the moment that the value is written. However, there is not enough infrastructure so that we cannot easily detect this case in time. However, by following way, we can

[PATCH 12/18] vchecker: fix 'remove' handling on callstack checker

2017-11-27 Thread js1304
From: Joonsoo Kim Since stack depot library doesn't support removal operation, after removing and adding again callstack cb, callstack checker cannot correctly judge whether this callstack is new or not for current cb if the same callstack happens for previous cb. This

[PATCH 05/18] vchecker: store/report callstack of value writer

2017-11-27 Thread js1304
From: Joonsoo Kim The purpose of the value checker is finding invalid user writing invalid value at the moment that the value is written. However, there is not enough infrastructure so that we cannot easily detect this case in time. However, by following way, we can emulate similar effect. 1.

[PATCH 12/18] vchecker: fix 'remove' handling on callstack checker

2017-11-27 Thread js1304
From: Joonsoo Kim Since stack depot library doesn't support removal operation, after removing and adding again callstack cb, callstack checker cannot correctly judge whether this callstack is new or not for current cb if the same callstack happens for previous cb. This problem can be fixed by

[PATCH 03/18] vchecker: mark/unmark the shadow of the allocated objects

2017-11-27 Thread js1304
From: Joonsoo Kim Mark/unmark the shadow of the objects that is allocated before the vchecker is enabled/disabled. It is necessary to fully debug the system. Since there is no synchronization way to prevent slab object free, we cannot synchronously mark/unmark the shadow

[PATCH 03/18] vchecker: mark/unmark the shadow of the allocated objects

2017-11-27 Thread js1304
From: Joonsoo Kim Mark/unmark the shadow of the objects that is allocated before the vchecker is enabled/disabled. It is necessary to fully debug the system. Since there is no synchronization way to prevent slab object free, we cannot synchronously mark/unmark the shadow of the allocated object.

Re: omapfb/dss: Delete an error message for a failed memory allocation in three functions

2017-11-27 Thread Julia Lawall
On Tue, 28 Nov 2017, SF Markus Elfring wrote: > >> It seems that I got no responses so far for clarification requests > >> according to the documentation in a direction I hoped for. > > > > That's because you are pretty unresponsive to direction. > > From which places did you get this

Re: omapfb/dss: Delete an error message for a failed memory allocation in three functions

2017-11-27 Thread Julia Lawall
On Tue, 28 Nov 2017, SF Markus Elfring wrote: > >> It seems that I got no responses so far for clarification requests > >> according to the documentation in a direction I hoped for. > > > > That's because you are pretty unresponsive to direction. > > From which places did you get this

Re: [PATCH 1/1] kasan: fix livelock in qlist_move_cache

2017-11-27 Thread Dmitry Vyukov
On Tue, Nov 28, 2017 at 5:05 AM, Zhouyi Zhou wrote: > When there are huge amount of quarantined cache allocates in system, > number of entries in global_quarantine[i] will be great. Meanwhile, > there is no relax in while loop in function qlist_move_cache which > hold

Re: [PATCH 1/1] kasan: fix livelock in qlist_move_cache

2017-11-27 Thread Dmitry Vyukov
On Tue, Nov 28, 2017 at 5:05 AM, Zhouyi Zhou wrote: > When there are huge amount of quarantined cache allocates in system, > number of entries in global_quarantine[i] will be great. Meanwhile, > there is no relax in while loop in function qlist_move_cache which > hold quarantine_lock. As a

Re: ALSA: nm256: Fine-tuning for three function implementations

2017-11-27 Thread Takashi Iwai
On Thu, 16 Nov 2017 20:30:24 +0100, SF Markus Elfring wrote: > > >> There is a general source code transformation pattern involved. > >> So I find that it is systematic. > >> > >> But I did not dare to develop a script variant for the semantic patch > >> language (Coccinelle software) which can

Re: ALSA: nm256: Fine-tuning for three function implementations

2017-11-27 Thread Takashi Iwai
On Thu, 16 Nov 2017 20:30:24 +0100, SF Markus Elfring wrote: > > >> There is a general source code transformation pattern involved. > >> So I find that it is systematic. > >> > >> But I did not dare to develop a script variant for the semantic patch > >> language (Coccinelle software) which can

[PATCH] rtc: add mxc driver for i.MX53

2017-11-27 Thread linux-kernel-dev
From: Patrick Bruenn Neither rtc-imxdi nor rtc-mxc are compatible with i.MX53. Add a modernized version of mxc_v2 from here: http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/drivers/rtc/rtc-mxc_v2.c?h=imx_2.6.35_11.09.01 Changes to that version: - updated

[PATCH] rtc: add mxc driver for i.MX53

2017-11-27 Thread linux-kernel-dev
From: Patrick Bruenn Neither rtc-imxdi nor rtc-mxc are compatible with i.MX53. Add a modernized version of mxc_v2 from here: http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/drivers/rtc/rtc-mxc_v2.c?h=imx_2.6.35_11.09.01 Changes to that version: - updated to v4.15-rc1 - removed

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

2017-11-27 Thread Stephan Mueller
Am Dienstag, 28. November 2017, 08:29:44 CET schrieb Eric Biggers: Hi Eric, > > Sometimes you have to reboot to get the reproducer to work, because the bug > has to do with referencing counting of the "null skcipher" which is a > global resource. Here's a patch that fixes it, it seems: > >

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

2017-11-27 Thread Stephan Mueller
Am Dienstag, 28. November 2017, 08:29:44 CET schrieb Eric Biggers: Hi Eric, > > Sometimes you have to reboot to get the reproducer to work, because the bug > has to do with referencing counting of the "null skcipher" which is a > global resource. Here's a patch that fixes it, it seems: > >

Re: [PATCH 1/1] usb: early: Correct the endpoint type value for bulk in endpoint

2017-11-27 Thread Lu Baolu
Hi, On 11/28/2017 03:29 PM, Greg Kroah-Hartman wrote: > On Tue, Nov 28, 2017 at 12:52:24PM +0800, Lu Baolu wrote: >> This corrects the endpiont type value set to the DbC bulk in endpoint. >> The previous value doesn't cause any problems because that we now only >> use the bulk out endpoint. Set

Re: [PATCH 1/1] usb: early: Correct the endpoint type value for bulk in endpoint

2017-11-27 Thread Lu Baolu
Hi, On 11/28/2017 03:29 PM, Greg Kroah-Hartman wrote: > On Tue, Nov 28, 2017 at 12:52:24PM +0800, Lu Baolu wrote: >> This corrects the endpiont type value set to the DbC bulk in endpoint. >> The previous value doesn't cause any problems because that we now only >> use the bulk out endpoint. Set

Re: omapfb/dss: Delete an error message for a failed memory allocation in three functions

2017-11-27 Thread SF Markus Elfring
>> It seems that I got no responses so far for clarification requests >> according to the documentation in a direction I hoped for. > > That's because you are pretty unresponsive to direction. >From which places did you get this impression? > You've gotten _many_ replies to your patches I got

Re: omapfb/dss: Delete an error message for a failed memory allocation in three functions

2017-11-27 Thread SF Markus Elfring
>> It seems that I got no responses so far for clarification requests >> according to the documentation in a direction I hoped for. > > That's because you are pretty unresponsive to direction. >From which places did you get this impression? > You've gotten _many_ replies to your patches I got

Re: [Ocfs2-devel] [PATCH 2/3] ocfs2: add ocfs2_overwrite_io function

2017-11-27 Thread Gang He
Hi Alex, >>> > Hi Gang, > > On 2017/11/28 13:33, Gang He wrote: >> Hello Alex, >> >> > >>> Hi Gang, >>> >>> On 2017/11/27 17:46, Gang He wrote: Add ocfs2_overwrite_io function, which is used to judge if overwrite allocated blocks, otherwise, the write will bring extra

Re: [Ocfs2-devel] [PATCH 2/3] ocfs2: add ocfs2_overwrite_io function

2017-11-27 Thread Gang He
Hi Alex, >>> > Hi Gang, > > On 2017/11/28 13:33, Gang He wrote: >> Hello Alex, >> >> > >>> Hi Gang, >>> >>> On 2017/11/27 17:46, Gang He wrote: Add ocfs2_overwrite_io function, which is used to judge if overwrite allocated blocks, otherwise, the write will bring extra

Re: [PATCH 15/24] x86/mm: Allow flushing for future ASID switches

2017-11-27 Thread Dave Hansen
On 11/27/2017 09:16 PM, Andy Lutomirski wrote: > We need to split up __flush_tlb_one() into __flush_tlb_one() and > __flush_tlb_one_kernel(). We've gotten away with having a single > function for both this long because we've never had PCID on and > nonglobal kernel mappings around. So we're

Re: [PATCH 15/24] x86/mm: Allow flushing for future ASID switches

2017-11-27 Thread Dave Hansen
On 11/27/2017 09:16 PM, Andy Lutomirski wrote: > We need to split up __flush_tlb_one() into __flush_tlb_one() and > __flush_tlb_one_kernel(). We've gotten away with having a single > function for both this long because we've never had PCID on and > nonglobal kernel mappings around. So we're

Re: [PATCH 2/3] ALSA: korg1212: Delete a duplicate function call "release_firmware" in snd_korg1212_create()

2017-11-27 Thread Takashi Iwai
On Thu, 16 Nov 2017 12:52:41 +0100, SF Markus Elfring wrote: > > From: Markus Elfring > Date: Thu, 16 Nov 2017 11:22:26 +0100 > > The function "release_firmware" is called in the current implementation of > the function "_request_firmware" after a failure was

Re: [PATCH 2/3] ALSA: korg1212: Delete a duplicate function call "release_firmware" in snd_korg1212_create()

2017-11-27 Thread Takashi Iwai
On Thu, 16 Nov 2017 12:52:41 +0100, SF Markus Elfring wrote: > > From: Markus Elfring > Date: Thu, 16 Nov 2017 11:22:26 +0100 > > The function "release_firmware" is called in the current implementation of > the function "_request_firmware" after a failure was detected. > Link: >

Re: [Ocfs2-devel] [PATCH 2/3] ocfs2: add ocfs2_overwrite_io function

2017-11-27 Thread Changwei Ge
On 2017/11/28 13:44, Gang He wrote: > Hi Changwei, > > >> Hi, >> Gang >> >> On 2017/11/27 17:48, Gang He wrote: >>> Add ocfs2_overwrite_io function, which is used to judge if >>> overwrite allocated blocks, otherwise, the write will bring extra >>> block allocation overhead. >>> >> >> Can

[PATCH] dt-bindings: uniphier: add bindings for UniPhier SoC family

2017-11-27 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada --- Documentation/devicetree/bindings/arm/uniphier.txt | 40 ++ MAINTAINERS| 1 + 2 files changed, 41 insertions(+) create mode 100644

Re: [Ocfs2-devel] [PATCH 2/3] ocfs2: add ocfs2_overwrite_io function

2017-11-27 Thread Changwei Ge
On 2017/11/28 13:44, Gang He wrote: > Hi Changwei, > > >> Hi, >> Gang >> >> On 2017/11/27 17:48, Gang He wrote: >>> Add ocfs2_overwrite_io function, which is used to judge if >>> overwrite allocated blocks, otherwise, the write will bring extra >>> block allocation overhead. >>> >> >> Can

[PATCH] dt-bindings: uniphier: add bindings for UniPhier SoC family

2017-11-27 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada --- Documentation/devicetree/bindings/arm/uniphier.txt | 40 ++ MAINTAINERS| 1 + 2 files changed, 41 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/uniphier.txt diff --git

[PATCH v7 0/6] Mediatek MT2712 clock and scpsys support

2017-11-27 Thread Weiyi Lu
This series is based on v4.15-rc1 and composed of scpsys control (PATCH 1-4) and device tree (PATCH 5-6) changes since v6: - Rebase to v4.15-rc1. changes since v5: - Refine bus protection with proper variable name and better implementation for the if statement. changes since v4: - Refine

[PATCH v7 0/6] Mediatek MT2712 clock and scpsys support

2017-11-27 Thread Weiyi Lu
This series is based on v4.15-rc1 and composed of scpsys control (PATCH 1-4) and device tree (PATCH 5-6) changes since v6: - Rebase to v4.15-rc1. changes since v5: - Refine bus protection with proper variable name and better implementation for the if statement. changes since v4: - Refine

[PATCH v7 1/6] dt-bindings: soc: add MT2712 power dt-bindings

2017-11-27 Thread Weiyi Lu
Add power dt-bindings for MT2712. Acked-by: Rob Herring Signed-off-by: Weiyi Lu --- .../devicetree/bindings/soc/mediatek/scpsys.txt| 3 +++ include/dt-bindings/power/mt2712-power.h | 26 ++ 2 files changed, 29

[PATCH v7 1/6] dt-bindings: soc: add MT2712 power dt-bindings

2017-11-27 Thread Weiyi Lu
Add power dt-bindings for MT2712. Acked-by: Rob Herring Signed-off-by: Weiyi Lu --- .../devicetree/bindings/soc/mediatek/scpsys.txt| 3 +++ include/dt-bindings/power/mt2712-power.h | 26 ++ 2 files changed, 29 insertions(+) create mode 100644

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

2017-11-27 Thread Eric Biggers
On Tue, Nov 28, 2017 at 07:30:46AM +0100, Stephan Mueller wrote: > Am Montag, 27. November 2017, 23:43:08 CET schrieb Eric Biggers: > > Hi Eric, > > > No, that doesn't help. I tested v4.15-rc1 with all the extra commits from > > crypto-2.6.git/master applied: > > > > crypto: algif_aead -

[PATCH v7 2/6] soc: mediatek: extend bus protection API

2017-11-27 Thread Weiyi Lu
MT2712 add "set/clear" bus control register to each control register set instead of providing only one "enable" control register, we could avoid the read-modify-write racing by declaring "bus_prot_reg_update" as "false" in scp_soc_data or declaring as "true" to use the legacy update method. By

[PATCH v7 5/6] arm: dts: mt2712: Add clock controller device nodes

2017-11-27 Thread Weiyi Lu
Add clock controller nodes for MT2712, include topckgen, infracfg, pericfg, mcucfg and apmixedsys. This patch also add six oscillators that provide clocks for MT2712. Signed-off-by: Weiyi Lu --- arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 115

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

2017-11-27 Thread Eric Biggers
On Tue, Nov 28, 2017 at 07:30:46AM +0100, Stephan Mueller wrote: > Am Montag, 27. November 2017, 23:43:08 CET schrieb Eric Biggers: > > Hi Eric, > > > No, that doesn't help. I tested v4.15-rc1 with all the extra commits from > > crypto-2.6.git/master applied: > > > > crypto: algif_aead -

[PATCH v7 2/6] soc: mediatek: extend bus protection API

2017-11-27 Thread Weiyi Lu
MT2712 add "set/clear" bus control register to each control register set instead of providing only one "enable" control register, we could avoid the read-modify-write racing by declaring "bus_prot_reg_update" as "false" in scp_soc_data or declaring as "true" to use the legacy update method. By

[PATCH v7 5/6] arm: dts: mt2712: Add clock controller device nodes

2017-11-27 Thread Weiyi Lu
Add clock controller nodes for MT2712, include topckgen, infracfg, pericfg, mcucfg and apmixedsys. This patch also add six oscillators that provide clocks for MT2712. Signed-off-by: Weiyi Lu --- arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 115 ++ 1 file changed, 115

[PATCH v7 4/6] soc: mediatek: add MT2712 scpsys support

2017-11-27 Thread Weiyi Lu
add scpsys driver for MT2712 Signed-off-by: Weiyi Lu --- drivers/soc/mediatek/mtk-scpsys.c | 106 +++--- 1 file changed, 100 insertions(+), 6 deletions(-) diff --git a/drivers/soc/mediatek/mtk-scpsys.c b/drivers/soc/mediatek/mtk-scpsys.c

[PATCH v7 0/6] Mediatek MT2712 clock and scpsys support

2017-11-27 Thread Weiyi Lu
This series is based on v4.15-rc1 and composed of scpsys control (PATCH 1-4) and device tree (PATCH 5-6) changes since v6: - Rebase to v4.15-rc1. changes since v5: - Refine bus protection with proper variable name and better implementation for the if statement. changes since v4: - Refine

[PATCH v7 0/6] Mediatek MT2712 clock and scpsys support

2017-11-27 Thread Weiyi Lu
This series is based on v4.15-rc1 and composed of scpsys control (PATCH 1-4) and device tree (PATCH 5-6) changes since v6: - Rebase to v4.15-rc1. changes since v5: - Refine bus protection with proper variable name and better implementation for the if statement. changes since v4: - Refine

[PATCH v7 4/6] soc: mediatek: add MT2712 scpsys support

2017-11-27 Thread Weiyi Lu
add scpsys driver for MT2712 Signed-off-by: Weiyi Lu --- drivers/soc/mediatek/mtk-scpsys.c | 106 +++--- 1 file changed, 100 insertions(+), 6 deletions(-) diff --git a/drivers/soc/mediatek/mtk-scpsys.c b/drivers/soc/mediatek/mtk-scpsys.c index c0f3219..435ce5e

[PATCH v7 6/6] arm: dts: Add power controller device node of MT2712

2017-11-27 Thread Weiyi Lu
add power controller node for MT2712 Signed-off-by: Weiyi Lu --- arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi b/arch/arm64/boot/dts/mediatek/mt2712e.dtsi index

[PATCH v7 6/6] arm: dts: Add power controller device node of MT2712

2017-11-27 Thread Weiyi Lu
add power controller node for MT2712 Signed-off-by: Weiyi Lu --- arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi b/arch/arm64/boot/dts/mediatek/mt2712e.dtsi index 5703793..61dd763 100644

Re: [PATCH 1/1] usb: early: Correct the endpoint type value for bulk in endpoint

2017-11-27 Thread Greg Kroah-Hartman
On Tue, Nov 28, 2017 at 12:52:24PM +0800, Lu Baolu wrote: > This corrects the endpiont type value set to the DbC bulk in endpoint. > The previous value doesn't cause any problems because that we now only > use the bulk out endpoint. Set the hardware with the correct value any > way. > >

[PATCH v7 3/6] soc: mediatek: add dependent clock jpgdec/audio for scpsys

2017-11-27 Thread Weiyi Lu
There are dependent clock jpgdec/audio in scpsys on MT2712, and will exist three dependent clocks on MT2712 VDEC. Signed-off-by: Weiyi Lu --- drivers/soc/mediatek/mtk-scpsys.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git

Re: [PATCH 1/1] usb: early: Correct the endpoint type value for bulk in endpoint

2017-11-27 Thread Greg Kroah-Hartman
On Tue, Nov 28, 2017 at 12:52:24PM +0800, Lu Baolu wrote: > This corrects the endpiont type value set to the DbC bulk in endpoint. > The previous value doesn't cause any problems because that we now only > use the bulk out endpoint. Set the hardware with the correct value any > way. > >

[PATCH v7 3/6] soc: mediatek: add dependent clock jpgdec/audio for scpsys

2017-11-27 Thread Weiyi Lu
There are dependent clock jpgdec/audio in scpsys on MT2712, and will exist three dependent clocks on MT2712 VDEC. Signed-off-by: Weiyi Lu --- drivers/soc/mediatek/mtk-scpsys.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/soc/mediatek/mtk-scpsys.c

Re: [PATCH] ALSA: gus: Delete an error message for a failed memory allocation in snd_gf1_dma_transfer_block()

2017-11-27 Thread Takashi Iwai
On Wed, 22 Nov 2017 17:47:14 +0100, SF Markus Elfring wrote: > > From: Markus Elfring > Date: Wed, 22 Nov 2017 17:43:25 +0100 > > Omit an extra message for a memory allocation failure in this function. > > This issue was detected by using the Coccinelle software.

Re: [PATCH] ALSA: gus: Delete an error message for a failed memory allocation in snd_gf1_dma_transfer_block()

2017-11-27 Thread Takashi Iwai
On Wed, 22 Nov 2017 17:47:14 +0100, SF Markus Elfring wrote: > > From: Markus Elfring > Date: Wed, 22 Nov 2017 17:43:25 +0100 > > Omit an extra message for a memory allocation failure in this function. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus

Re: [PATCH] staging: most: Fix build errors

2017-11-27 Thread Greg Kroah-Hartman
On Mon, Nov 27, 2017 at 09:12:39PM +, Chris Coffey wrote: > This patch fixes build errors that occur when trying to build the > MOST modules. For example, the cdev module build fails with: > > make[3]: *** No rule to make target 'drivers/staging/most/aim-cdev/cdev.o', > needed by

Re: [PATCH] staging: most: Fix build errors

2017-11-27 Thread Greg Kroah-Hartman
On Mon, Nov 27, 2017 at 09:12:39PM +, Chris Coffey wrote: > This patch fixes build errors that occur when trying to build the > MOST modules. For example, the cdev module build fails with: > > make[3]: *** No rule to make target 'drivers/staging/most/aim-cdev/cdev.o', > needed by

Re: [Ocfs2-devel] [PATCH 2/3] ocfs2: add ocfs2_overwrite_io function

2017-11-27 Thread Gang He
Hello Joseph, >>> > > On 17/11/28 11:35, Gang He wrote: >> Hello Joseph, >> >> > >>> Hi Gang, >>> >>> On 17/11/27 17:46, Gang He wrote: Add ocfs2_overwrite_io function, which is used to judge if overwrite allocated blocks, otherwise, the write will bring extra block

Re: [Ocfs2-devel] [PATCH 2/3] ocfs2: add ocfs2_overwrite_io function

2017-11-27 Thread Gang He
Hello Joseph, >>> > > On 17/11/28 11:35, Gang He wrote: >> Hello Joseph, >> >> > >>> Hi Gang, >>> >>> On 17/11/27 17:46, Gang He wrote: Add ocfs2_overwrite_io function, which is used to judge if overwrite allocated blocks, otherwise, the write will bring extra block

[tip:x86/urgent] x86/idt: Load idt early in start_secondary

2017-11-27 Thread tip-bot for Chunyu Hu
Commit-ID: 55d2d0ad2fb4325f615d1950486fbc5e6fba1769 Gitweb: https://git.kernel.org/tip/55d2d0ad2fb4325f615d1950486fbc5e6fba1769 Author: Chunyu Hu AuthorDate: Mon, 27 Nov 2017 22:21:39 +0800 Committer: Thomas Gleixner CommitDate: Tue, 28 Nov 2017

Re: [PATCH linux-next v2 1/1] ASoC: rsnd: ssiu: clear SSI_MODE for non TDM Extended modes

2017-11-27 Thread Kuninori Morimoto
Hi Jiada > register SSI_MODE is set when SSI works in TDM Extended, > but it isn't reset when SSI starts to work in other modes, > thus causes issues. > > This patch clearss SSI_MODE register when SSI works in modes > other than TDM Extended. > > Fixes: 186fadc132f0 ("ASoC: rsnd: add TDM

[tip:x86/urgent] x86/idt: Load idt early in start_secondary

2017-11-27 Thread tip-bot for Chunyu Hu
Commit-ID: 55d2d0ad2fb4325f615d1950486fbc5e6fba1769 Gitweb: https://git.kernel.org/tip/55d2d0ad2fb4325f615d1950486fbc5e6fba1769 Author: Chunyu Hu AuthorDate: Mon, 27 Nov 2017 22:21:39 +0800 Committer: Thomas Gleixner CommitDate: Tue, 28 Nov 2017 08:15:40 +0100 x86/idt: Load idt early

Re: [PATCH linux-next v2 1/1] ASoC: rsnd: ssiu: clear SSI_MODE for non TDM Extended modes

2017-11-27 Thread Kuninori Morimoto
Hi Jiada > register SSI_MODE is set when SSI works in TDM Extended, > but it isn't reset when SSI starts to work in other modes, > thus causes issues. > > This patch clearss SSI_MODE register when SSI works in modes > other than TDM Extended. > > Fixes: 186fadc132f0 ("ASoC: rsnd: add TDM

  1   2   3   4   5   6   7   8   9   10   >