[PATCH v1 07/20] signal: make do_sigpending() void

2018-05-28 Thread Christian Brauner
do_sigpending() returned 0 unconditionally so it doesn't make sense to have it return at all. This allows us to simplify a bunch of syscall callers. Signed-off-by: Christian Brauner Acked-by: Al Viro --- v0->v1: * added Acked-By line from Al --- kernel/signal.c | 41

[PATCH v1 01/20] signal: make force_sigsegv() void

2018-05-28 Thread Christian Brauner
force_sigsegv() returned 0 unconditionally so it doesn't make sense to have it return at all. In addition, there are no callers that check force_sigsegv()'s return value. Signed-off-by: Christian Brauner --- v0->v1: * patch unchanged --- include/linux/sched/signal.h | 2 +- kernel/signal.c

Re: [RFT v3 1/4] perf cs-etm: Generate branch sample for missed packets

2018-05-28 Thread Mathieu Poirier
Leo and/or Robert, On Mon, May 28, 2018 at 04:45:00PM +0800, Leo Yan wrote: > Commit e573e978fb12 ("perf cs-etm: Inject capabilitity for CoreSight > traces") reworks the samples generation flow from CoreSight trace to > match the correct format so Perf report tool can display the samples > properl

[PATCH v1 06/20] signal: drop else branch in do_signal_stop()

2018-05-28 Thread Christian Brauner
do_signal_stop() already returns in the if branch so there's no need to keep the else branch around. Signed-off-by: Christian Brauner --- v0->v1: * patch unchanged --- kernel/signal.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/kernel/signal.c b/kernel/sign

[PATCH v1 12/20] signal: make sig_ignored() return bool

2018-05-28 Thread Christian Brauner
sig_ignored() already behaves like a boolean function. Let's actually declare it as such too. Signed-off-by: Christian Brauner --- v0->v1: * patch introduced --- kernel/signal.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/signal.c b/kernel/signal.c index c398

[PATCH v1 13/20] signal: make has_pending_signals() return bool

2018-05-28 Thread Christian Brauner
has_pending_signals() already behaves like a boolean function. Let's actually declare it as such too. Signed-off-by: Christian Brauner --- v0->v1: * patch introduced --- kernel/signal.c | 25 ++--- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/kernel/signal.

[PATCH v1 19/20] signal: make security_task_kill() return bool

2018-05-28 Thread Christian Brauner
security_task_kill() already behaves like a boolean function. Let's actually declare it as such too. Signed-off-by: Christian Brauner --- v0->v1: * patch introduced --- kernel/signal.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/signal.c b/kernel/signal.c ind

LKMM litmus test for Roman Penyaev's rcu-rr

2018-05-28 Thread Paul E. McKenney
Hello! The litmus test below is a first attempt to model Roman's rcu-rr round-robin RCU-protected linked list. His test code, which includes the algorithm under test, may be found here: https://github.com/rouming/rcu-rr/blob/master/rcu-rr.c The P0() process below roughly corresponds to remove_c

Re: [PATCH] doc: document scope NOFS, NOIO APIs

2018-05-28 Thread Dave Chinner
On Mon, May 28, 2018 at 11:19:23AM +0200, Michal Hocko wrote: > On Mon 28-05-18 09:48:54, Dave Chinner wrote: > > On Fri, May 25, 2018 at 10:16:24AM +0200, Michal Hocko wrote: > > > On Fri 25-05-18 08:17:15, Dave Chinner wrote: > > > > On Thu, May 24, 2018 at 01:43:41PM +0200, Michal Hocko wrote: >

Re: [PATCH] iptables-compat: homogenize error message

2018-05-28 Thread Pablo Neira Ayuso
On Sun, May 27, 2018 at 06:39:01PM +0530, Arushi Singhal wrote: > There is a difference between error messages in iptables and > iptables-compat: > > #sudo iptables-compat -D INPUT 4 > iptables: No chain/target/match by that name. > > #sudo iptables -D INPUT 4 > iptables: Index of deletion too bi

[PATCH v1 05/20] signal: flatten do_send_sig_info()

2018-05-28 Thread Christian Brauner
Let's return early when lock_task_sighand() fails and move send_signal() and unlock_task_sighand() out of the if block. Signed-off-by: Christian Brauner --- v0->v1: * patch unchanged --- kernel/signal.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/kernel/signal.

[PATCH v1 03/20] signal: make may_ptrace_stop() return bool

2018-05-28 Thread Christian Brauner
may_ptrace_stop() already behaves like a boolean function. Let's actually declare it as such too. Signed-off-by: Christian Brauner --- v0->v1: * patch unchanged --- kernel/signal.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/kernel/signal.c b/kernel/signal.c

[PATCH v1 00/20] signal: refactor some functions

2018-05-28 Thread Christian Brauner
Hey, This series refactors a bunch of functions in signal.c to simplify parts of the code. The greatest single change is declaring the static do_sigpending() helper as void which makes it possible to remove a bunch of unnecessary checks in the syscalls later on. Thanks! Christian Christian Braun

[PATCH v1 04/20] signal: add copy_pending() helper

2018-05-28 Thread Christian Brauner
Instead of using a goto for this let's add a simple helper copy_pending() which can be called in both places. Signed-off-by: Christian Brauner --- v0->v1: * patch unchanged --- kernel/signal.c | 54 +++-- 1 file changed, 30 insertions(+), 24 deletions(

Proposal

2018-05-28 Thread Miss Zeliha Omer Faruk
-- Hello I have been trying to contact you. Did you get my business proposal? Best Regards, Miss.Zeliha ömer faruk Esentepe Mahallesi Büyükdere Caddesi Kristal Kule Binasi No:215 Sisli - Istanbul, Turke

Re: [PATCH v3] vfio: platform: Fix using devices in PM Domains

2018-05-28 Thread Geert Uytterhoeven
Hi Eric, On Mon, May 28, 2018 at 10:27 PM, Auger Eric wrote: > On 05/28/2018 05:26 PM, Geert Uytterhoeven wrote: >> If a device is part of a PM Domain (e.g. power and/or clock domain), its >> power state is managed using Runtime PM. Without Runtime PM, the device >> may not be powered up or cloc

Re: [PATCH] perf docu: Update section on cpu topology

2018-05-28 Thread Arnaldo Carvalho de Melo
Em Mon, May 28, 2018 at 09:44:33AM +0200, Thomas Richter escreveu: > Add an explanation of each cpu's core and socket > identifier to the documentation. Thanks, applying. I guess it is not that worth to mention that older files may have just the string lists, right? - Arnaldo > Signed-off-by: T

Re: [PATCH] perf docu: Update section on cpu description

2018-05-28 Thread Arnaldo Carvalho de Melo
Em Mon, May 28, 2018 at 09:49:03AM +0200, Thomas Richter escreveu: > Fix the section HEADER_CPUDESC so the documentation > matches code. Swap the two members of struct nr_cpus. > > Signed-off-by: Thomas Richter I have this one already in my perf/core branch: https://git.kernel.org/acme/c/ec6fb

Re: [PATCH v2] sched: Remove obscure comment from select_task_rq_fair

2018-05-28 Thread Joel Fernandes
On Mon, May 28, 2018 at 09:15:08AM +0200, Peter Zijlstra wrote: > On Sun, May 27, 2018 at 06:24:47PM -0700, Joel Fernandes (Google) wrote: > > This patch removes the obscure comment which was > > saying this path can be entered only for wake-balance. > > The comment was meant to ask if we want to

Re: [RFT v3 0/4] Perf script: Add python script for CoreSight trace disassembler

2018-05-28 Thread Arnaldo Carvalho de Melo
Em Mon, May 28, 2018 at 04:44:59PM +0800, Leo Yan escreveu: > This patch series is to support for using 'perf script' for CoreSight > trace disassembler, for this purpose this patch series adds a new > python script to parse CoreSight tracing event and use command 'objdump' > for disassembled lines

Re: [PATCH v3 1/2] rtmutex: allow specifying a subclass for nested locking

2018-05-28 Thread Joel Fernandes
On Mon, May 28, 2018 at 09:17:51AM +0200, Peter Zijlstra wrote: > On Sun, May 27, 2018 at 10:19:36PM -0700, Joel Fernandes wrote: > > > > +static inline void __rt_mutex_lock(struct rt_mutex *lock, unsigned int > > > subclass) > > > +{ > > > + might_sleep(); > > > + > > > + mutex_acquire(&lock->de

Re: [PATCH 2/3] x86/mce: Fix incorrect "Machine check from unknown source" message

2018-05-28 Thread Borislav Petkov
On Fri, May 25, 2018 at 02:41:55PM -0700, Tony Luck wrote: > @@ -1287,12 +1292,17 @@ void do_machine_check(struct pt_regs *regs, long > error_code) > no_way_out = worst >= MCE_PANIC_SEVERITY; > } else { > /* > - * Local MCE skipped calling mce

Proposal

2018-05-28 Thread Miss Zeliha Omer Faruk
-- Hello I have been trying to contact you. Did you get my business proposal? Best Regards, Miss.Zeliha ömer faruk Esentepe Mahallesi Büyükdere Caddesi Kristal Kule Binasi No:215 Sisli - Istanbul, Turke

Re: [PATCH] perf tools: Fix indexing for decoder packet queue

2018-05-28 Thread Arnaldo Carvalho de Melo
Em Mon, May 28, 2018 at 11:13:59AM +0800, Leo Yan escreveu: > On Fri, May 25, 2018 at 05:10:54PM -0600, Mathieu Poirier wrote: > > The tail of a queue is supposed to be pointing to the next available slot > > in a queue. In this implementation the tail is incremented before it is > > used and as s

[PATCH v3] mailbox: arm_mhu: add support for mhuv2

2018-05-28 Thread Samarth Parikh
ARM has launched a next version of MHU i.e. MHUv2 with its latest subsystems. The main change is that the MHUv2 is now a distributed IP with different peripheral views (registers) for the sender and receiver. Also, the peripheral views (registers) for Secure & Non-Secure have been separated out int

Linux and autoconfig of kernel on iso-image boot.

2018-05-28 Thread Phillip Hugo
Hi all, thanks for your work. Linux should have "make grab_config" that sets loaded modules to be built in the kernel build and make modules. Obviously this is so when you boot for the first time, a fully stocked kernel of modules, your first kernel build will have sensible settings for your syst

[PATCH 1/3] ubi: fastmap: Correctly handle interrupted erasures in EBA

2018-05-28 Thread Richard Weinberger
Fastmap cannot track the LEB unmap operation, therefore it can happen that after an interrupted erasure the mapping still looks good from Fastmap's point of view, while reading from the PEB will cause an ECC error and confuses the upper layer. Instead of teaching users of UBI how to deal with that

Re: [patch v22 4/4] Documentation: jtag: Add ABI documentation

2018-05-28 Thread Randy Dunlap
On 05/28/2018 05:00 AM, Oleksandr Shamray wrote: > Added document that describe the ABI for JTAG class drivrer > > Signed-off-by: Oleksandr Shamray > Acked-by: Arnd Bergmann > --- > --- > Documentation/ABI/testing/jtag-dev | 27 + > Documentation/jtag/overview| 28 +

[PATCH 3/3] ubi: fastmap: Detect EBA mismatches on-the-fly

2018-05-28 Thread Richard Weinberger
Now we have the machinery to detect EBA mismatches on-the-fly by comparing the in-memory volume ID and LEB number with the found VID header. This helps to detect malfunction of Fastmap. Signed-off-by: Richard Weinberger --- drivers/mtd/ubi/eba.c | 17 + 1 file changed, 17 inserti

[PATCH 2/3] ubi: fastmap: Check each mapping only once

2018-05-28 Thread Richard Weinberger
Maintain a bitmap to keep track of which LEB->PEB mapping was checked already. That way we have to read back VID headers only once. Signed-off-by: Richard Weinberger --- drivers/mtd/ubi/build.c | 1 + drivers/mtd/ubi/eba.c | 4 drivers/mtd/ubi/fastmap.c | 20 dr

Re: [PATCH][RFC] [powerpc] arch_ptrace() uses of access_ok() are pointless

2018-05-28 Thread Al Viro
> Maybe this is just an RFC, but: > > CALL../arch/powerpc/kernel/systbl_chk.sh > ../arch/powerpc/kernel/ptrace.c: In function ‘arch_ptrace’: > ../arch/powerpc/kernel/ptrace.c:3086:4: error: expected ‘)’ before ‘return’ > return -EFAULT; > ^~ and the same a few lines later. Wh

Re: [RFC PATCH] m68k: set dma and coherent masks for Macintosh SONIC based ethernet

2018-05-28 Thread Michael Schmitz
Hi Geert, my preference would be Finn's patch introducing a m68k arch_setup_pdev_archdata(). It nicely preserves what bus code sets up prior to registering a platform device (important for Zorro devices using platform or mfd devices), and allows overriding by drivers that need it. If ever a kerne

Re: [PATCH 4.16 000/272] 4.16.13-stable review

2018-05-28 Thread Naresh Kamboju
On 28 May 2018 at 15:30, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.16.13 release. > There are 272 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses

Re: WARNING and PANIC in irq_matrix_free

2018-05-28 Thread Thomas Gleixner
On Mon, 28 May 2018, Song Liu wrote: > This doesn't fix the issue with bnxt. Here is a trace with this patch: That's just the backtrace which is not really helpful. The real question is what leads to this scenaria. What I was asking for is to enable the irq_vector and irq_matrix trace points alon

Re: [PATCH v3] vfio: platform: Fix using devices in PM Domains

2018-05-28 Thread Auger Eric
Hi Geert, On 05/28/2018 05:26 PM, Geert Uytterhoeven wrote: > If a device is part of a PM Domain (e.g. power and/or clock domain), its > power state is managed using Runtime PM. Without Runtime PM, the device > may not be powered up or clocked, causing subtle failures, crashes, or > system lock-u

Re: [PATCH] vfio/pci: remove a bogus cast in vfio_msi_set_block()

2018-05-28 Thread Auger Eric
Hi Dan, On 05/28/2018 09:47 AM, Dan Carpenter wrote: > This cast is confusing... The "start" variable is an unsigned int. We > absolutely do not want to cast it to a negative int so why is the cast > there? It turns out, when you look at the context, it's a no-op and we > can just remove it. >

Re: [PATCH][RFC] [powerpc] arch_ptrace() uses of access_ok() are pointless

2018-05-28 Thread Mathieu Malaterre
On Mon, May 28, 2018 at 12:34 AM, Al Viro wrote: > make it use copy_{from,to}_user(), rather than access_ok() + > __copy_... > > Signed-off-by: Al Viro > --- > arch/powerpc/kernel/ptrace.c | 22 +++--- > 1 file changed, 7 insertions(+), 15 deletions(-) > > diff --git a/arch/power

[PATCH v2] Documentation: dt-bindings: Explicitly mark Samsung Exynos SoC bindings as unstable

2018-05-28 Thread Krzysztof Kozlowski
From: Marek Szyprowski Samsung Exynos SoCs and boards related bindings evolved since the initial introduction, but initially the bindings were minimal and a bit incomplete (they never described all the hardware modules available in the SoCs). Since then some significant (not fully compatible) cha

Re: [PATCH] IB: Revert "remove redundant INFINIBAND kconfig dependencies"

2018-05-28 Thread Greg Thelen
Jason Gunthorpe wrote: On Fri, May 25, 2018 at 05:32:52PM -0700, Greg Thelen wrote: On Fri, May 25, 2018 at 2:32 PM Arnd Bergmann wrote: > Several subsystems depend on INFINIBAND_ADDR_TRANS, which in turn depends > on INFINIBAND. However, when with CONFIG_INIFIBAND=m, this leads to a > l

[PATCH v4 6/6] arm64: defconfig: add CONFIG_ARM_SP805_WATCHDOG

2018-05-28 Thread Ray Jui
Enable the SP805 watchdog timer Signed-off-by: Ray Jui --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index ecf6137..3fe5eb5 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defcon

[PATCH v4 3/6] watchdog: sp805: add 'timeout-sec' DT property support

2018-05-28 Thread Ray Jui
Add support for optional devicetree property 'timeout-sec'. 'timeout-sec' is used in the driver if specified in devicetree. Otherwise, fall back to driver default, i.e., 60 seconds Signed-off-by: Ray Jui Reviewed-by: Scott Branden Reviewed-by: Guenter Roeck --- drivers/watchdog/sp805_wdt.c | 9

[PATCH v4 1/6] Documentation: DT: Consolidate SP805 binding docs

2018-05-28 Thread Ray Jui
Consolidate two SP805 binding documents "arm,sp805.txt" and "sp805-wdt.txt" into "arm,sp805.txt" that matches the naming of the desired compatible string to be used Signed-off-by: Ray Jui --- .../devicetree/bindings/watchdog/arm,sp805.txt | 27 ++- .../devicetree/bindings/wat

[PATCH v4 5/6] arm64: dt: set initial SR watchdog timeout to 60 seconds

2018-05-28 Thread Ray Jui
Set initial Stingray watchdog timeout to 60 seconds By the time when the userspace watchdog daemon is ready and taking control over, the watchdog timeout will then be reset to what's configured in the daemon Signed-off-by: Ray Jui Reviewed-by: Vladimir Olovyannikov Reviewed-by: Scott Branden -

[PATCH v4 4/6] watchdog: sp805: set WDOG_HW_RUNNING when appropriate

2018-05-28 Thread Ray Jui
If the watchdog hardware is already enabled during the boot process, when the Linux watchdog driver loads, it should reset the watchdog and tell the watchdog framework. As a result, ping can be generated from the watchdog framework, until the userspace watchdog daemon takes over control Signed-off

Re: WARNING and PANIC in irq_matrix_free

2018-05-28 Thread Song Liu
> On May 28, 2018, at 3:53 AM, Thomas Gleixner wrote: > > On Fri, 25 May 2018, Song Liu wrote: >> On Wed, May 23, 2018 at 1:49 AM, Thomas Gleixner wrote: >>> On Wed, 23 May 2018, Tariq Toukan wrote: I have your patch merged into my internal branch, it prints the following: [ 4

[PATCH] scsi: qla2xxx: Fix crash on qla2x00_mailbox_command

2018-05-28 Thread Rodrigo R. Galvao
This patch fixes a crash on qla2x00_mailbox_command caused when the driver is on UNLOADING state and tries to call qla2x00_poll, which triggers a NULL pointer dereference. Signed-off-by: Rodrigo R. Galvao Signed-off-by: Mauro S. M. Rodrigues --- drivers/scsi/qla2xxx/qla_mbx.c | 8 1 fi

Re: [PATCH] dm: writecache: add DAX dependency

2018-05-28 Thread Dan Williams
On Mon, May 28, 2018 at 8:38 AM, Arnd Bergmann wrote: > The new dm-writecache driver inconditionally uses the dax > subsystem, leading to link errors in some configurations: > > drivers/md/dm-writecache.o: In function `writecache_ctr': > dm-writecache.c:(.text+0x1fdc): undefined reference to `dax_

Re: [PATCH v8 3/6] cpuset: Add cpuset.sched.load_balance flag to v2

2018-05-28 Thread Waiman Long
On 05/28/2018 08:45 AM, Peter Zijlstra wrote: > On Thu, May 24, 2018 at 02:55:25PM -0400, Waiman Long wrote: >> On 05/24/2018 11:43 AM, Peter Zijlstra wrote: >>> I'm confused... why exactly do we have both domain and load_balance ? >> The domain is for partitioning the CPUs only. It doesn't change

[PATCH v4 2/6] Documentation: DT: Add optional 'timeout-sec' property for sp805

2018-05-28 Thread Ray Jui
Update the SP805 binding document to add optional 'timeout-sec' devicetree property Signed-off-by: Ray Jui --- Documentation/devicetree/bindings/watchdog/arm,sp805.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/watchdog/arm,sp805.txt b/Documentation/

Re: [PATCH] crypto: morus - Hide Kconfig option for glue code

2018-05-28 Thread Ondrej Mosnáček
(Resending in plaintext because Gmail for Android sucks...) Hi Arnd, I have already addressed that in a follow-up patch here: https://patchwork.kernel.org/patch/10416245/ Regards, Ondrej 2018-05-28 17:47 GMT+02:00 Arnd Bergmann : > Enabling the glue drivers for morus640 and/or morus1280 leads

Re: INFO: rcu detected stall in is_bpf_text_address

2018-05-28 Thread Marcelo Ricardo Leitner
On Sun, May 20, 2018 at 04:26:03PM +0800, Xin Long wrote: > On Sat, May 19, 2018 at 11:57 PM, Eric Dumazet wrote: > > SCTP experts, please take a look. > > > > On 05/19/2018 08:55 AM, syzbot wrote: > >> Hello, > >> > >> syzbot found the following crash on: > >> > >> HEAD commit:73fcb1a370c7 Me

[PATCH v2] kbuild: add endianness flag to CHEKCFLAGS

2018-05-28 Thread Luc Van Oostenryck
The kernel depends on macros like __BYTE_ORDER__, __BIG_ENDIAN__ or __LITTLE_ENDIAN__. OTOH, sparse doesn't know about the endianness of the kernel and by default uses the same as the machine on which sparse was built. Ensure that sparse can predefine the macros corresponding to how the kernel wa

Re: [RFC 2/2] perf: Sharing PMU counters across compatible events

2018-05-28 Thread Song Liu
On May 28, 2018, at 4:24 AM, Peter Zijlstra wrote: > > On Fri, May 04, 2018 at 04:11:02PM -0700, Song Liu wrote: >> On the critical paths, perf_events are added to/removed from the >> active_dup list of the perf_event. The first event added to the list >> will be the master event, and the only ev

[PATCH] dt-bindings: arm: Remove obsolete insignal-boards.txt

2018-05-28 Thread Krzysztof Kozlowski
The compatibles mentioned in insignal-boards.txt are already documented under devicetree/bindings/arm/samsung/samsung-boards.txt. Also the contents of insignal-boards.txt is not accurate, e.g. does not mention Arndale boards. Signed-off-by: Krzysztof Kozlowski --- Documentation/devicetree/bindi

Re: [PATCH] kbuild: add endianness flag to CHEKCFLAGS

2018-05-28 Thread Luc Van Oostenryck
On Mon, May 28, 2018 at 10:31:58AM -0700, Randy Dunlap wrote: > On 05/28/2018 10:00 AM, Luc Van Oostenryck wrote: > > +# insure the checker run with the right endianness > > +CHECKFLAGS += $(if $(CONFIG_CPU_BIG_ENDIAN),-mbig,-mlittle) > > Does this need to be -mbig-endian

Re: [RFC 2/2] perf: Sharing PMU counters across compatible events

2018-05-28 Thread Song Liu
> On May 28, 2018, at 4:15 AM, Peter Zijlstra wrote: > > On Fri, May 04, 2018 at 04:11:02PM -0700, Song Liu wrote: >> Connection among perf_event and perf_event_dup are built with function >> rebuild_event_dup_list(cpuctx). This function is only called when events >> are added/removed or when

Re: [PATCH v2] mm/THP: use hugepage_vma_check() in khugepaged_enter_vma_merge()

2018-05-28 Thread Song Liu
> On May 28, 2018, at 3:57 AM, Kirill A. Shutemov wrote: > > On Tue, May 22, 2018 at 12:44:30PM -0700, Song Liu wrote: >> khugepaged_enter_vma_merge() is using a different approach to check >> whether a vma is valid for khugepaged_enter(): >> >>if (!vma->anon_vma) >>/* >>

[PATCH v3] mm/THP: use hugepage_vma_check() in khugepaged_enter_vma_merge()

2018-05-28 Thread Song Liu
khugepaged_enter_vma_merge() is using a different approach to check whether a vma is valid for khugepaged_enter(): if (!vma->anon_vma) /* * Not yet faulted in so we will register later in the * page fault if needed. */ return 0;

Re: WARNING and PANIC in irq_matrix_free

2018-05-28 Thread Song Liu
> On May 28, 2018, at 7:27 AM, Thomas Gleixner wrote: > > On Mon, 28 May 2018, Tariq Toukan wrote: >> On 28/05/2018 1:53 PM, Thomas Gleixner wrote: >>> On Fri, 25 May 2018, Song Liu wrote: On Wed, May 23, 2018 at 1:49 AM, Thomas Gleixner wrote: > On Wed, 23 May 2018, Tariq Touka

[PATCH v4 0/6] Enhance support for the SP805 WDT

2018-05-28 Thread Ray Jui
This patch series enhances the support for the SP805 watchdog timer. First of all, 'timeout-sec' devicetree property is added. In addition, support is also added to allow the driver to reset the watchdog if it has been detected that watchdot has been started in the bootloader. In this case, the dri

Re: INFO: rcu detected stall in is_bpf_text_address

2018-05-28 Thread Marcelo Ricardo Leitner
On Sun, May 20, 2018 at 04:26:03PM +0800, Xin Long wrote: > On Sat, May 19, 2018 at 11:57 PM, Eric Dumazet wrote: > > SCTP experts, please take a look. > > > > On 05/19/2018 08:55 AM, syzbot wrote: > >> Hello, > >> > >> syzbot found the following crash on: > >> > >> HEAD commit:73fcb1a370c7 Me

Re: [PATCH] KVM: irqfd: fix race between EPOLLHUP and irq_bypass_register_consumer

2018-05-28 Thread David Hildenbrand
On 28.05.2018 13:31, Paolo Bonzini wrote: > A comment warning against this bug is there, but the code is not doing what > the comment says. Therefore it is possible that an EPOLLHUP races against > irq_bypass_register_consumer. The EPOLLHUP handler schedules irqfd_shutdown, > and if that runs soo

Re: [PATCH 3/8] signal: make may_ptrace_stop() return bool

2018-05-28 Thread Christian Brauner
On Mon, May 28, 2018 at 03:12:19PM +0100, Al Viro wrote: > On Mon, May 28, 2018 at 03:49:11PM +0200, Christian Brauner wrote: > > may_ptrace_stop() already behaves like a boolean function. Let's actually > > declare it as such too. > > > > Signed-off-by: Christian Brauner > > --- > > kernel/sign

Re: [PATCH 2/8] signal: make kill_as_cred_perm() return bool

2018-05-28 Thread Christian Brauner
On Mon, May 28, 2018 at 03:07:49PM +0100, Al Viro wrote: > On Mon, May 28, 2018 at 03:49:10PM +0200, Christian Brauner wrote: > > kill_as_cred_perm() already behaves like a boolean function. Let's actually > > declare it as such too. > > > > Signed-off-by: Christian Brauner > > --- > > kernel/si

Re: [PATCH v6 4/4] vsprintf: Add command line option debug_boot_weak_hash

2018-05-28 Thread Randy Dunlap
On 05/27/2018 06:46 PM, Tobin C. Harding wrote: > Currently printing [hashed] pointers requires enough entropy to be > available. Early in the boot sequence this may not be the case > resulting in a dummy string '(ptrval)' being printed. This > makes debugging the early boot sequence diff

[PATCH] ceph: fix use-after-free in ceph_statfs

2018-05-28 Thread Luis Henriques
KASAN found an UAF in ceph_statfs. This was a one-off bug but looking at the code it looks like the monmap access needs to be protected as it can be modified while we're accessing it. Fix this by protecting the access with the monc->mutex. [ 234.282067] BUG: KASAN: use-after-free in ceph_statfs

[PATCH 2/5] ARM: clk-imx6q: add EPIT clock support

2018-05-28 Thread Clément Péron
From: Colin Didier Add EPIT clock support to the i.MX6Q clocking infrastructure. Signed-off-by: Colin Didier Signed-off-by: Clément Peron --- drivers/clk/imx/clk-imx6q.c | 2 ++ include/dt-bindings/clock/imx6qdl-clock.h | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-)

[PATCH 1/5] ARM: imx: remove inexistant EPIT timer init

2018-05-28 Thread Clément Péron
From: Clément Peron i.MX EPIT timer has been removed but not the init function declaration. Signed-off-by: Clément Peron --- arch/arm/mach-imx/common.h | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/mach-imx/common.h b/arch/arm/mach-imx/common.h index c8d68e918b2f..18aae76fa2da 10

[PATCH] cpuidle/powernv : Add Description for cpuidle state

2018-05-28 Thread Abhishek Goel
Names of cpuidle states were being used for description of states in POWER as no descriptions were added in device tree. This patch reads description for idle states which have been added in device tree. The description for idle states in case of POWER can be printed using "cpupower monitor -l" or

Re: possible deadlock in bpf_tcp_close

2018-05-28 Thread syzbot
syzbot has found a reproducer for the following crash on: HEAD commit:7a1a98c171ea Merge branch 'bpf-sendmsg-hook' git tree: bpf-next console output: https://syzkaller.appspot.com/x/log.txt?x=149ae2b780 kernel config: https://syzkaller.appspot.com/x/.config?x=e4078980b886800c dashb

[PATCH 0/5] Reintroduce i.MX EPIT Timer

2018-05-28 Thread Clément Péron
From: Clément Peron As suggested in the commit message we have added the device tree support, proper bindings and we moved the driver into the correct folder. Moreover we made some changes like use of relaxed IO accesor, implement sched_clock, delay_timer and reduce the clockevents min_delta. S

[PATCH 3/5] Documentation: DT: add i.MX EPIT timer binding

2018-05-28 Thread Clément Péron
From: Clément Peron Add devicetree binding document for NXP's i.MX SoC specific EPIT timer driver. Signed-off-by: Clément Peron --- .../devicetree/bindings/clock/imx6q,epit.txt | 25 +++ 1 file changed, 25 insertions(+) create mode 100644 Documentation/devicetree/bindings/clo

[PATCH 4/5] clocksource: add driver for i.MX EPIT timer

2018-05-28 Thread Clément Péron
From: Colin Didier Add driver for NXP's EPIT timer used in i.MX 6 family of SoC. Signed-off-by: Clément Peron --- drivers/clocksource/Kconfig | 12 ++ drivers/clocksource/Makefile | 1 + drivers/clocksource/timer-imx-epit.c | 254 +++ 3 files changed

[PATCH 5/5] ARM: dts: imx6qdl: add missing compatible and clock properties for EPIT

2018-05-28 Thread Clément Péron
From: Colin Didier Add missing compatible and clock properties for EPIT node. Signed-off-by: Colin Didier Signed-off-by: Clément Peron --- arch/arm/boot/dts/imx6qdl.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl.dtsi b/arch/arm/boot/dts/imx6qd

Re: [REGRESSION] (>= v4.12) IO w/dmcrypt causing audio underruns

2018-05-28 Thread Vito Caputo
On Mon, May 28, 2018 at 07:01:36PM +0200, Enric Balletbo Serra wrote: > Hi Vito, > > cc: dm-devel, Alasdair and Mike Snitzer > > 2018-05-28 5:32 GMT+02:00 Vito Caputo : > > On Thu, Jan 25, 2018 at 12:33:21AM -0800, vcap...@pengaru.com wrote: > >> On Fri, Jan 19, 2018 at 11:57:32AM +0100, Enric Ba

[PATCH v2] x86/xen: Combine PV features to be disabled in xen_nopv

2018-05-28 Thread Joao Martins
From: Konrad Rzeszutek Wilk Extend 'xen_nopv' parameter to disable individual features in the following format: xen_nopv={ [spin,][ipi] | all } 'spin' to disable PV spinlocks 'ipi' to disable PV IPI 'all' to disable all of the above and PV drivers 'all' ideally would be the set of features tha

Re: [PATCH] kbuild: add endianness flag to CHEKCFLAGS

2018-05-28 Thread Randy Dunlap
On 05/28/2018 10:00 AM, Luc Van Oostenryck wrote: > The kernel depends on macros like __BYTE_ORDER__, > __BIG_ENDIAN__ or __LITTLE_ENDIAN__. > > OTOH, sparse doesn't know about the endianness of the kernel and > by default uses the same as the machine on which sparse was built. > > Ensure that sp

Re: [PATCH] perf test: Use header file util/debug.h

2018-05-28 Thread Arnaldo Carvalho de Melo
Em Mon, May 28, 2018 at 03:48:17PM +0200, Thomas Richter escreveu: > Use the header file util/debug.h instead of > declaration of verbose variable. Thanks, applied. - Arnaldo

Re: [PATCH] memcg: force charge kmem counter too

2018-05-28 Thread Shakeel Butt
On Mon, May 28, 2018 at 2:11 AM, Michal Hocko wrote: > On Sat 26-05-18 15:37:05, Shakeel Butt wrote: >> On Sat, May 26, 2018 at 11:51 AM, Vladimir Davydov >> wrote: >> > On Fri, May 25, 2018 at 11:55:01AM -0700, Shakeel Butt wrote: >> >> Based on several conditions the kernel can decide to force

Re: [REGRESSION] (>= v4.12) IO w/dmcrypt causing audio underruns

2018-05-28 Thread Enric Balletbo Serra
Hi Vito, cc: dm-devel, Alasdair and Mike Snitzer 2018-05-28 5:32 GMT+02:00 Vito Caputo : > On Thu, Jan 25, 2018 at 12:33:21AM -0800, vcap...@pengaru.com wrote: >> On Fri, Jan 19, 2018 at 11:57:32AM +0100, Enric Balletbo Serra wrote: >> > Hi Vito, >> > >> > 2018-01-17 23:48 GMT+01:00 : >> > > On

Re: [PATCH] Use an IDR to allocate apparmor secids

2018-05-28 Thread Matthew Wilcox
ping? I have this queued up in my XArray tree. If I don't hear from you before -rc1, I'll be submitting it as part of the XArray conversion. On Tue, May 22, 2018 at 02:32:59AM -0700, Matthew Wilcox wrote: > Replace the custom usage of the radix tree to store a list of free IDs > with the IDR.

[PATCH] kbuild: add endianness flag to CHEKCFLAGS

2018-05-28 Thread Luc Van Oostenryck
The kernel depends on macros like __BYTE_ORDER__, __BIG_ENDIAN__ or __LITTLE_ENDIAN__. OTOH, sparse doesn't know about the endianness of the kernel and by default uses the same as the machine on which sparse was built. Ensure that sparse can predefine the macros corresponding to how the kernel wa

Re: [PATCH v2 3/6] mtd: rawnand: add NVIDIA Tegra NAND Flash controller driver

2018-05-28 Thread Boris Brezillon
On Mon, 28 May 2018 18:41:26 +0200 Benjamin Lindqvist wrote: > Note that it's certainly possible to encode U-Boot and kernel with > RS[4] and still use RS[8] for the rootfs even if the boot rom doesn't > support it. Not if you want to read/write from/to the uboot partition from Linux. Per-parti

Re: [PATCH 9/9] clk: davinci: Fix link errors when not all SoCs are enabled

2018-05-28 Thread David Lechner
On 05/28/2018 08:43 AM, Sekhar Nori wrote: On Friday 25 May 2018 11:41 PM, David Lechner wrote: This fixes linker errors due to undefined symbols when one or more of the TI DaVinci SoCs is not enabled in the kernel config. Signed-off-by: David Lechner --- drivers/clk/davinci/pll.c | 16 +++

Re: [PATCH V3 rdma-next 4/4] RDMA/hns: Implement the disassociate_ucontext API

2018-05-28 Thread Jason Gunthorpe
On Sat, May 26, 2018 at 04:41:47PM +0800, Wei Hu (Xavier) wrote: > This patch implemented the IB core disassociate_ucontext API. > > Signed-off-by: Wei Hu (Xavier) > > v2->v3: Addressed the comments from Jason. The related link: > https://lkml.org/lkml/2018/5/22/967 > v1->v2: no change. >

[PATCH 3.18 002/185] MIPS: Fix ptrace(2) PTRACE_PEEKUSR and PTRACE_POKEUSR accesses to o32 FGRs

2018-05-28 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Maciej W. Rozycki commit 9a3a92ccfe3620743d4ae57c987dc8e9c5f88996 upstream. Check the TIF_32BIT_FPREGS task setting of the tracee rather than the tracer in determining the layout of floating-p

[PATCH 3.18 014/185] PCI: Add function 1 DMA alias quirk for Marvell 9128

2018-05-28 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Alex Williamson [ Upstream commit aa008206634363ef800fbd5f0262016c9ff81dea ] The Marvell 9128 is the original device generating bug 42679, from which many other Marvell DMA alias quirks have b

[PATCH 3.18 015/185] tools lib traceevent: Fix get_field_str() for dynamic strings

2018-05-28 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: "Steven Rostedt (VMware)" [ Upstream commit d777f8de99b05d399c0e4e51cdce016f26bd971b ] If a field is a dynamic string, get_field_str() returned just the offset/size value and not the string. H

[PATCH 3.18 013/185] tracing/hrtimer: Fix tracing bugs by taking all clock bases and modes into account

2018-05-28 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Anna-Maria Gleixner [ Upstream commit 91633eed73a3ac37aaece5c8c1f93a18bae616a9 ] So far only CLOCK_MONOTONIC and CLOCK_REALTIME were taken into account as well as HRTIMER_MODE_ABS/REL in the h

[PATCH 3.18 017/185] nfs: Do not convert nfs_idmap_cache_timeout to jiffies

2018-05-28 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Jan Chochol [ Upstream commit cbebc6ef4fc830f4040d4140bf53484812d5d5d9 ] Since commit 57e62324e469 ("NFS: Store the legacy idmapper result in the keyring") nfs_idmap_cache_timeout changed unit

[PATCH 3.18 003/185] KVM: Fix spelling mistake: "cop_unsuable" -> "cop_unusable"

2018-05-28 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Colin Ian King commit ba3696e94d9d590d9a7e55f68e81c25dba515191 upstream. Trivial fix to spelling mistake in debugfs_entries text. Fixes: 669e846e6c4e ("KVM/MIPS32: MIPS arch specific APIs for

[PATCH 3.18 020/185] kconfig: Fix automatic menu creation mem leak

2018-05-28 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Ulf Magnusson [ Upstream commit ae7440ef0c8013d68c00dad6900e7cce5311bb1c ] expr_trans_compare() always allocates and returns a new expression, giving the following leak outline: ...

[PATCH 3.18 023/185] scsi: fas216: fix sense buffer initialization

2018-05-28 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann [ Upstream commit 96d5eaa9bb74d299508d811d865c2c41b38b0301 ] While testing with the ARM specific memset() macro removed, I ran into a compiler warning that shows an old bug: dri

[PATCH 3.18 021/185] kconfig: Fix expr_free() E_NOT leak

2018-05-28 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Ulf Magnusson [ Upstream commit 5b1374b3b3c2fc4f63a398adfa446fb8eff791a4 ] Only the E_NOT operand and not the E_NOT node itself was freed, due to accidentally returning too early in expr_free(

[PATCH 3.18 030/185] mm/mempolicy: add nodes_empty check in SYSC_migrate_pages

2018-05-28 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Yisheng Xie [ Upstream commit 0486a38bcc4749808edbc848f1bcf232042770fc ] As in manpage of migrate_pages, the errno should be set to EINVAL when none of the node IDs specified by new_nodes are

[PATCH 3.18 024/185] HID: roccat: prevent an out of bounds read in kovaplus_profile_activated()

2018-05-28 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Dan Carpenter [ Upstream commit 7ad81482cad67cbe1ec808490d1ddfc420c42008 ] We get the "new_profile_index" value from the mouse device when we're handling raw events. Smatch taints it as untru

[PATCH 3.18 026/185] RDMA/mlx5: Avoid memory leak in case of XRCD dealloc failure

2018-05-28 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Leon Romanovsky [ Upstream commit b081808a66345ba725b77ecd8d759bee874cd937 ] Failure in XRCD FW deallocation command leaves memory leaked and returns error to the user which he can't do anythi

[PATCH 3.18 028/185] ocfs2/acl: use ip_xattr_sem to protect getting extended attribute

2018-05-28 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: piaojun [ Upstream commit 16c8d569f5704a84164f30ff01b29879f3438065 ] The race between *set_acl and *get_acl will cause getting incomplete xattr data as below: processA

[PATCH 3.18 031/185] asm-generic: provide generic_pmdp_establish()

2018-05-28 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: "Kirill A. Shutemov" [ Upstream commit c58f0bb77ed8bf93dfdde762b01cb67eebbdfc29 ] Patch series "Do not lose dirty bit on THP pages", v4. Vlastimil noted that pmdp_invalidate() is not atomic a

[PATCH 3.18 027/185] ocfs2: return -EROFS to mount.ocfs2 if inode block is invalid

2018-05-28 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: piaojun [ Upstream commit 025bcbde3634b2c9b316f227fed13ad6ad6817fb ] If metadata is corrupted such as 'invalid inode block', we will get failed by calling 'mount()' and then set filesystem rea

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