Re: [PATCH v6 1/3] dt-bindings: pinctrl: renesas,rzn1-pinctrl: documentation

2018-09-27 Thread Geert Uytterhoeven
On Thu, Sep 27, 2018 at 3:59 PM Phil Edworthy wrote: > The Renesas RZ/N1 device family PINCTRL node description. > > Based on a patch originally written by Michel Pollet at Renesas. > > Signed-off-by: Phil Edworthy > Reviewed-by: Jacopo Mondi > --- > v6: > - Instead of combining the pin nr and

[PATCH v3] staging: ks7010: Add null pointer check for skb

2018-09-27 Thread Aymen Qader
Add a null pointer check for the socket buffer in ks_hostif.c to avoid a possible null pointer deference, and remove a later now-redundant null pointer check. Signed-off-by: Aymen Qader --- v2: Remove redundant pointer check v3: Style fix drivers/staging/ks7010/ks_hostif.c | 6 +- 1 file ch

Re: [RFC workqueue/driver-core PATCH 2/5] async: Add support for queueing on specific NUMA node

2018-09-27 Thread Alexander Duyck
On 9/26/2018 5:31 PM, Dan Williams wrote: On Wed, Sep 26, 2018 at 2:51 PM Alexander Duyck wrote: This patch introduces four new variants of the async_schedule_ functions that allow scheduling on a specific NUMA node. The first two functions are async_schedule_near and async_schedule_near_d

Re: [PATCH net-next v6 07/23] zinc: ChaCha20 ARM and ARM64 implementations

2018-09-27 Thread Jason A. Donenfeld
Hey again Thomas, On Thu, Sep 27, 2018 at 3:26 PM Jason A. Donenfeld wrote: > > Hi Thomas, > > I'm trying to optimize this for crypto performance while still taking > into account preemption concerns. I'm having a bit of trouble figuring > out a way to determine numerically what the upper bounds

Re: [PATCH 2/2] mmc: sdhci-msm: Re-initialize DLL if MCLK is gated dynamically

2018-09-27 Thread Doug Anderson
Hi, On Thu, Sep 27, 2018 at 4:00 AM Veerabhadrarao Badiganti wrote: > > Hi Doug, > > > On 9/26/2018 3:58 AM, Doug Anderson wrote: > > Hi, > > > > On Tue, Sep 25, 2018 at 8:05 AM Veerabhadrarao Badiganti > > wrote: > >> + /* > >> +* Whenever core-clock is gated dynamically, it's need

Re: [PATCH 06/12] drm/sun4i: sun6i_mipi_dsi: Fix VBP size calculation

2018-09-27 Thread Maxime Ripard
On Thu, Sep 27, 2018 at 05:18:44PM +0530, Jagan Teki wrote: > According to horizontal and vertical timings are defined > per the diagram from include/drm/drm_modes.h > > Back porch = [hv]total - [hv]sync_end > > So, update SUN6I_DSI_BASIC_SIZE0_VBP calculation as > mode->vtotal - mode->vsync_end >

Re: WARNING: kmalloc bug in input_mt_init_slots

2018-09-27 Thread Christopher Lameter
On Thu, 27 Sep 2018, Dmitry Vyukov wrote: > On Thu, Sep 27, 2018 at 4:16 PM, Christopher Lameter wrote: > > On Thu, 27 Sep 2018, Dmitry Vyukov wrote: > > > >> On Tue, Sep 25, 2018 at 4:04 PM, Christopher Lameter > >> wrote: > >> > On Tue, 25 Sep 2018, Dmitry Vyukov wrote: > >> > > >> >> Assumin

Re: [PATCH v3 0/9] add support for relative references in jump tables

2018-09-27 Thread Ard Biesheuvel
On 19 September 2018 at 15:08, Peter Zijlstra wrote: > On Tue, Sep 18, 2018 at 11:51:35PM -0700, Ard Biesheuvel wrote: > >> Ard Biesheuvel (8): >> kernel/jump_label: abstract jump_entry member accessors >> kernel/jump_label: implement generic support for relative references >> arm64/kernel:

Re: [PATCH] mt76: fix building without CONFIG_MT76x0U

2018-09-27 Thread kbuild test robot
://github.com/0day-ci/linux/commits/Arnd-Bergmann/mt76-fix-building-without-CONFIG_MT76x0U/20180927-101346 base: https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers-next.git master config: i386-allmodconfig (attached as .config) compiler: gcc-7 (Debian 7.3.0-1) 7.3.0 reproduce

Re: [PATCH] bcache: add separate workqueue for journal_write to avoid deadlock

2018-09-27 Thread Coly Li
On 9/27/18 9:45 PM, guoju wrote: After write SSD completed, bcache schedule journal_write work to system_wq, that is a public workqueue in system, without WQ_MEM_RECLAIM flag. system_wq is also a bound wq, and there may be no idle kworker on current processor. Creating a new kworker may unfortu

[PATCH][mtd-next] mtd: rawnand: fix spelling mistake "card_registred" -> "card_registered"

2018-09-27 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake struct field name, rename it. Signed-off-by: Colin Ian King --- drivers/mtd/nand/raw/r852.c | 14 +++--- drivers/mtd/nand/raw/r852.h | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/mtd/nand/raw/r852.c

Re: [STABLE PATCH] slub: make ->cpu_partial unsigned int

2018-09-27 Thread Christopher Lameter
On Thu, 27 Sep 2018, zhong jiang wrote: > From: Alexey Dobriyan > > /* > * cpu_partial determined the maximum number of objects > * kept in the per cpu partial lists of a processor. > */ > > Can't be negative. True. > I hit a real issue that it will result in

Re: [RFC workqueue/driver-core PATCH 3/5] driver core: Probe devices asynchronously instead of the driver

2018-09-27 Thread Alexander Duyck
On 9/26/2018 5:48 PM, Dan Williams wrote: On Wed, Sep 26, 2018 at 2:51 PM Alexander Duyck wrote: This change makes it so that we probe devices asynchronously instead of the driver. This results in us seeing the same behavior if the device is registered before the driver or after. This way w

Re: [PATCH 2/5] dma-direct: add an explicit dma_direct_get_required_mask

2018-09-27 Thread Christoph Hellwig
On Thu, Sep 27, 2018 at 03:12:25PM +0100, Robin Murphy wrote: >> +u64 dma_direct_get_required_mask(struct device *dev) >> +{ >> +u64 max_dma = phys_to_dma_direct(dev, (max_pfn - 1) << PAGE_SHIFT); >> + >> +return (1ULL << (fls64(max_dma) - 1)) * 2 - 1; > > I think that may as well just use

Re: WARNING: kmalloc bug in input_mt_init_slots

2018-09-27 Thread Dmitry Vyukov
On Thu, Sep 27, 2018 at 5:22 PM, Christopher Lameter wrote: > On Thu, 27 Sep 2018, Dmitry Vyukov wrote: > >> On Thu, Sep 27, 2018 at 4:16 PM, Christopher Lameter wrote: >> > On Thu, 27 Sep 2018, Dmitry Vyukov wrote: >> > >> >> On Tue, Sep 25, 2018 at 4:04 PM, Christopher Lameter >> >> wrote: >>

Re: [PATCH 3/5] dma-direct: refine dma_direct_alloc zone selection

2018-09-27 Thread Christoph Hellwig
On Thu, Sep 27, 2018 at 03:30:20PM +0100, Robin Murphy wrote: >> +static gfp_t __dma_direct_optimal_gfp_mask(struct device *dev, u64 >> dma_mask, >> +u64 *phys_mask) >> +{ >> +if (force_dma_unencrypted()) >> +*phys_mask = __dma_to_phys(dev, dma_mask); >> +else >>

Re: [PATCH v8 1/2] dt-bindings: cpufreq: Introduce QCOM CPUFREQ Firmware bindings

2018-09-27 Thread Rob Herring
On Sun, Sep 23, 2018 at 04:03:12PM +0530, Taniya Das wrote: > Add QCOM cpufreq firmware device bindings for Qualcomm Technology Inc's > SoCs. This is required for managing the cpu frequency transitions which are > controlled by the hardware engine. > > Signed-off-by: Taniya Das > --- > .../bindi

Re: [PATCH 4/5] dma-direct: implement complete bus_dma_mask handling

2018-09-27 Thread Christoph Hellwig
On Thu, Sep 27, 2018 at 03:58:04PM +0100, Robin Murphy wrote: >> } >> #endif /* !CONFIG_ARCH_HAS_PHYS_TO_DMA */ >> diff --git a/kernel/dma/direct.c b/kernel/dma/direct.c >> index 3c404e33d946..64466b7ef67b 100644 >> --- a/kernel/dma/direct.c >> +++ b/kernel/dma/direct.c >> @@ -43,10 +43,11 @@

[PATCH resend] proc: restrict kernel stack dumps to root

2018-09-27 Thread Jann Horn
Restrict the ability to inspect kernel stacks of arbitrary tasks to root in order to prevent a local attacker from exploiting racy stack unwinding to leak kernel task stack contents. See the added comment for a longer rationale. There don't seem to be any users of this userspace API that can't gra

Re: [PATCH net V2] vhost-vsock: fix use after free

2018-09-27 Thread Stefan Hajnoczi
On Thu, Sep 27, 2018 at 08:22:04PM +0800, Jason Wang wrote: > The access of vsock is not protected by vhost_vsock_lock. This may > lead to use after free since vhost_vsock_dev_release() may free the > pointer at the same time. > > Fix this by holding the lock during the access. > > Reported-by: s

Re: [PATCH] ARM: dts: add omap3-gta04a5one to Makefile

2018-09-27 Thread Tony Lindgren
* H. Nikolaus Schaller [180925 06:09]: > We have defined a new DTS and it should be compiled. Applying into omap-for-v4.20/dt thanks. Tony

Re: [PATCH 2/5] dma-direct: add an explicit dma_direct_get_required_mask

2018-09-27 Thread Robin Murphy
On 27/09/18 16:28, Christoph Hellwig wrote: On Thu, Sep 27, 2018 at 03:12:25PM +0100, Robin Murphy wrote: +u64 dma_direct_get_required_mask(struct device *dev) +{ + u64 max_dma = phys_to_dma_direct(dev, (max_pfn - 1) << PAGE_SHIFT); + + return (1ULL << (fls64(max_dma) - 1)) * 2 - 1;

Re: [linux-next] BUG triggered in ptraceme

2018-09-27 Thread Jann Horn
On Wed, Sep 19, 2018 at 6:13 PM Cyrill Gorcunov wrote: > > On Wed, Sep 19, 2018 at 04:16:50PM +0200, Jann Horn wrote: > ... > > > > > > Heh, actually not :) It is due to commit > > > > > > commit 1f8266ff58840d698a1e96d2274189de1bdf7969 > > > Author: Jann Horn > > > Date: Thu Sep 13 18:12:09 20

[PATCH v4 0/3] Stingray thermal driver support

2018-09-27 Thread Srinath Mannam
These patches adds the stingray thermal driver and its corresponding DT nodes with documentation. Changes from v3 - Addressed Daniel lezcano comments. - Elaborated commit description of thermal driver patch. - Added brcm,max-crit-temp DT parameter. Changes from v2: - All stingray TMON DT

[PATCH v4 3/3] thermal: broadcom: Add Stingray thermal driver

2018-09-27 Thread Srinath Mannam
From: Pramod Kumar Stingray SoC has six temperature sensor and those are configured, controlled and accessed to read temperature and update in DDR memory using m0 firmware. All six sensors has been given 4 bytes of memory in DDR to write temperature in millivolts. This thermal driver read temper

[PATCH v4 1/3] dt-bindings: thermal: Add binding document for SR thermal

2018-09-27 Thread Srinath Mannam
From: Pramod Kumar Add binding document for supported thermal implementation in Stingray. Signed-off-by: Pramod Kumar Signed-off-by: Srinath Mannam Reviewed-by: Ray Jui Reviewed-by: Scott Branden --- .../bindings/thermal/brcm,sr-thermal.txt | 25 ++ 1 file chan

[PATCH v4 2/3] arm64: dts: stingray: Add Stingray Thermal DT support.

2018-09-27 Thread Srinath Mannam
From: Pramod Kumar Add DT nodes for thermal zones memory base address to read temperature. Signed-off-by: Pramod Kumar Signed-off-by: Srinath Mannam Reviewed-by: Ray Jui Reviewed-by: Scott Branden --- arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi | 14 ++ 1 file changed, 1

Re: [PATCH 3/5] dma-direct: refine dma_direct_alloc zone selection

2018-09-27 Thread Robin Murphy
On 27/09/18 16:30, Christoph Hellwig wrote: On Thu, Sep 27, 2018 at 03:30:20PM +0100, Robin Murphy wrote: +static gfp_t __dma_direct_optimal_gfp_mask(struct device *dev, u64 dma_mask, + u64 *phys_mask) +{ + if (force_dma_unencrypted()) + *phys_mask = __dma_to

For editing of your photos 18

2018-09-27 Thread Jessica
Do you have needs for your photos cutting out and retouching? We do editing for e-commerce photos, portrait photos and wedding photos. You may choose to send us one or tow photos, we will provide testing to check quality. Thanks, Jessica

Re: [PATCH v14 09/19] x86/mm: x86/sgx: Signal SEGV_SGXERR for #PFs w/ PF_SGX

2018-09-27 Thread Jarkko Sakkinen
On Thu, Sep 27, 2018 at 07:58:41AM -0700, Dave Hansen wrote: > On 09/27/2018 06:42 AM, Jarkko Sakkinen wrote: > >>This flag is 1 if the exception is unrelated to paging and > >>resulted from violation of SGX-specific access-control > >>requirements. ... such a violation can occur only i

Re: [PATCH 3/5] dma-direct: refine dma_direct_alloc zone selection

2018-09-27 Thread Christoph Hellwig
On Thu, Sep 27, 2018 at 04:38:31PM +0100, Robin Murphy wrote: > On 27/09/18 16:30, Christoph Hellwig wrote: >> On Thu, Sep 27, 2018 at 03:30:20PM +0100, Robin Murphy wrote: +static gfp_t __dma_direct_optimal_gfp_mask(struct device *dev, u64 dma_mask, + u64 *phys_mask) >>>

Re: [PATCH v5 4/4] mm: Defer ZONE_DEVICE page initialization to the point where we init pgmap

2018-09-27 Thread David Hildenbrand
On 27/09/2018 16:50, Oscar Salvador wrote: > On Thu, Sep 27, 2018 at 03:13:29PM +0200, Michal Hocko wrote: >> On Thu 27-09-18 14:25:37, Oscar Salvador wrote: >>> On Thu, Sep 27, 2018 at 01:09:26PM +0200, Michal Hocko wrote: > So there were a few things I wasn't sure we could pull outside of the

[PATCH v3] staging: mt7621-mmc: Remove #if 0 blocks and fix macros in sd.c

2018-09-27 Thread Nishad Kamdar
This patch removes #if 0 code blocks and usages of the functions defined in the #if 0 code block. It removes the macro msdc_irq_restore() and replaces its usage with call to the function called in the macro definition. Issue found by checkpatch. Signed-off-by: Nishad Kamdar --- Changes in v3: -

Re: [linux-next] BUG triggered in ptraceme

2018-09-27 Thread Cyrill Gorcunov
On Thu, Sep 27, 2018 at 05:35:10PM +0200, Jann Horn wrote: ... > > > > Lets wait for fs people opinions. > > No reply yet - I guess I should just fix up the traceme case for now. Yes please.

[PATCH v3] Revert: "f2fs: check last page index in cached bio to decide submission"

2018-09-27 Thread Chao Yu
From: Chao Yu There is one case that we can leave bio in f2fs, result in hanging page writeback waiter. Thread AThread B - f2fs_write_cache_pages - f2fs_submit_page_write page #0 cached in bio #0 of cold log - f2fs_submit_page_write page #1 cached in bio #1 of

Re: [PATCH] fix error handling in drivers/staging/rtl8192u/ieee80211/ieee80211_module.c

2018-09-27 Thread Kees Cook
On Thu, Sep 27, 2018 at 7:24 AM, Dan Carpenter wrote: > On Wed, Sep 26, 2018 at 01:52:17PM -0400, valdis.kletni...@vt.edu wrote: >> John notes that if the kzalloc of ieee->pHTInfo fails, we fail to call >> ieee80211_networks_free(). In addition, that function has an un-needed check >> before kfre

Re: [PATCH] use STORE_LOCKED instead of STORE macro

2018-09-27 Thread Coly Li
On 9/27/18 1:31 PM, Dongbo Cao wrote: merge sysfs_writeback_running attr and sysfs_writeback_percent attr together with other attrs of cached_dev. Signed-off-by: Dongbo Cao Could you please to explain more what you want to do, and why you make this change? Thanks. Coly Li --- driv

Re: [PATCH v3 0/9] add support for relative references in jump tables

2018-09-27 Thread Kees Cook
On Wed, Sep 19, 2018 at 6:08 AM, Peter Zijlstra wrote: > On Tue, Sep 18, 2018 at 11:51:35PM -0700, Ard Biesheuvel wrote: > >> Ard Biesheuvel (8): >> kernel/jump_label: abstract jump_entry member accessors >> kernel/jump_label: implement generic support for relative references >> arm64/kernel

Re: [STABLE PATCH] slub: make ->cpu_partial unsigned int

2018-09-27 Thread Greg KH
On Thu, Sep 27, 2018 at 10:43:40PM +0800, zhong jiang wrote: > From: Alexey Dobriyan > > /* > * cpu_partial determined the maximum number of objects > * kept in the per cpu partial lists of a processor. > */ > > Can't be negative. > > I hit a real issue that i

Re: [PATCH V6 07/33] csky: MMU and page table management

2018-09-27 Thread Christoph Hellwig
> +static void *csky_dma_alloc_atomic( > + struct device *dev, > + size_t size, > + dma_addr_t *dma_handle > + ) Can you please use normal kernel coding style? Closing brace on the same line, either two tab indents for the arguments or align them to the first argument: static voi

Re: WARNING: kmalloc bug in input_mt_init_slots

2018-09-27 Thread Christopher Lameter
On Thu, 27 Sep 2018, Dmitry Vyukov wrote: > > Please post on the mailing list > > It is on the mailing lists: > https://lkml.org/lkml/2018/9/27/802 Ok then lets continue the discussion there.

Re: kernel 4.18.5 Realtek 8111G network adapter stops responding under high system load

2018-09-27 Thread Ortwin Glück
On 25.09.18 23:03, Heiner Kallweit wrote: It seems that all chip versions from 34 (= RTL8168E-VL) with the exception of version 39 (= RTL8106E, first sub-version) need bit TXCFG_AUTO_FIFO. And indeed, due to reordering of calls this bit is overwritten. Following patch moves setting the bit from

Re: [PATCH v5 3/5] SELinux: Prepare for PTRACE_MODE_SCHED

2018-09-27 Thread Stephen Smalley
On 09/26/2018 04:34 PM, Casey Schaufler wrote: From: Casey Schaufler A ptrace access check with mode PTRACE_MODE_SCHED gets called from process switching code. This precludes the use of audit or avc, as the locking is incompatible. The only available check that can be made without using avc is

Re: [PATCH V6 10/33] csky: IRQ handling

2018-09-27 Thread Christoph Hellwig
> --- /dev/null > +++ b/arch/csky/include/asm/irq.h > @@ -0,0 +1,9 @@ > +// SPDX-License-Identifier: GPL-2.0 > +// Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. > + > +#ifndef __ASM_CSKY_IRQ_H > +#define __ASM_CSKY_IRQ_H > + > +#include > + > +#endif /* __ASM_CSKY_IRQ_H */ Just wire thi

For editing of your photos 17

2018-09-27 Thread Jessica
Do you have needs for your photos cutting out and retouching? We do editing for e-commerce photos, portrait photos and wedding photos. You may choose to send us one or tow photos, we will provide testing to check quality. Thanks, Jessica

Re: [PATCH] mm: don't warn about large allocations for slab

2018-09-27 Thread Christopher Lameter
On Thu, 27 Sep 2018, Dmitry Vyukov wrote: > From: Dmitry Vyukov > > This warning does not seem to be useful. Most of the time it fires when > allocation size depends on syscall arguments. We could add __GFP_NOWARN > to these allocation sites, but having a warning only to suppress it > does not ma

[PATCH v2] perf/x86/amd/uncore: Set ThreadMask and SliceMask for L3 Cache perf events

2018-09-27 Thread Natarajan, Janakarajan
In Family 17h, some L3 Cache Performance events require the ThreadMask and SliceMask to be set. For other events, these fields do not affect the count either way. Set ThreadMask and SliceMask to 0xFF and 0xF respectively. Signed-off-by: Janakarajan Natarajan --- v2: Changed L3 Slice and L3 Threa

Re: [PATCH v2 5/7] arm64: make arm uprobes code reusable by arm64

2018-09-27 Thread Julien Thierry
Hi Maciej, I think that it would be good to move the renaming changes out of this patch. On 26/09/18 13:12, Maciej Slodczyk wrote: There are many segments of ARM32 uprobes code that is very specific to 32-bit ARM arch and many differences between the two architectures that could be made porta

Re: [PATCH v14 09/19] x86/mm: x86/sgx: Signal SEGV_SGXERR for #PFs w/ PF_SGX

2018-09-27 Thread Dave Hansen
On 09/27/2018 08:39 AM, Jarkko Sakkinen wrote: > On Thu, Sep 27, 2018 at 07:58:41AM -0700, Dave Hansen wrote: >> On 09/27/2018 06:42 AM, Jarkko Sakkinen wrote: This flag is 1 if the exception is unrelated to paging and resulted from violation of SGX-specific access-control r

[PATCH linux-kselftest-next] selftests: watchdog: Fix ioctl SET* error paths to take oneshot exit path

2018-09-27 Thread Shuah Khan (Samsung OSG)
When ioctls for WDIOC_SETOPTIONS (WDIOS_DISABLECARD or WDIOS_ENABLECARD), WDIOC_SETTIMEOUT, and WDIOC_SETPRETIMEOUT fail, the error path continues to handler watchdog timer until user terminates it. When ioctl returns error, it might not be safe to let the watchdog tick. The error could be due an u

Re: [PATCH 3/3] virtio-pmem: Add virtio pmem driver

2018-09-27 Thread Dan Williams
On Thu, Sep 27, 2018 at 6:07 AM Pankaj Gupta wrote: [..] > > We are plugging VIRTIO based flush callback for virtio_pmem driver. If pmem > > driver (pmem_make_request) has to queue request we have to plug "blk_mq_ops" > > callbacks for corresponding VIRTIO vqs. AFAICU there is no existing > > mul

[RFC PATCH 0/5] tracing: Unifying dynamic event interface

2018-09-27 Thread Masami Hiramatsu
Hi, This is an RFC series of unifying dynamic event interface on ftrace. Currently ftrace has 3 dynamic event interfaces, kprobes, uprobes and synthetic. This series unifies kprobes and uprobes event interface on "dynamic_events". This enables us to add new dynamic events easily on same interface,

[RFC PATCH 1/5] tracing/uprobes: Add busy check when cleanup all uprobes

2018-09-27 Thread Masami Hiramatsu
Add a busy check loop in cleanup_all_probes() before trying to remove all events in uprobe_events as same as kprobe_events does. Without this change, writing null to uprobe_events will try to remove events but if one of them is enabled, it stopped there but some of events are already cleared. Wit

Re: [PATCH] bcache: add separate workqueue for journal_write to avoid deadlock

2018-09-27 Thread Eddie Chapman
On 27/09/18 16:23, Coly Li wrote: On 9/27/18 9:45 PM, guoju wrote: After write SSD completed, bcache schedule journal_write work to system_wq, that is a public workqueue in system, without WQ_MEM_RECLAIM flag. system_wq is also a bound wq, and there may be no idle kworker on current processor.

[RFC PATCH 3/5] tracing/kprobes: Use dyn_event framework for kprobe events

2018-09-27 Thread Masami Hiramatsu
Use dyn_event framework for kprobe events. This shows kprobe events on "tracing/dynamic_events" file. User can also define new events via tracing/dynamic_events. Signed-off-by: Masami Hiramatsu --- Documentation/trace/kprobetrace.rst |3 + kernel/trace/Kconfig|1 kernel

[RFC PATCH 2/5] tracing: Add a unified dynamic event framework

2018-09-27 Thread Masami Hiramatsu
Add an unified dynamic event framework for kprobes and uprobes. Those dynamic events can be co-exist on same file because those syntax doesn't over-wrapped. This introduces a framework part which provides a unified tracefs interface and operations. Signed-off-by: Masami Hiramatsu --- kernel/tra

[RFC PATCH 4/5] tracing/uprobes: Use dyn_event framework for uprobe events

2018-09-27 Thread Masami Hiramatsu
Use dyn_event framework for uprobe events. This shows uprobe events on "dynamic_events" file. User can also define new uprobe events via dynamic_events. Signed-off-by: Masami Hiramatsu --- Documentation/trace/uprobetracer.rst |4 + kernel/trace/trace_uprobe.c | 158

Re: [PATCH 2/3] perf report: use the offset address to find inline frames

2018-09-27 Thread Jiri Olsa
On Wed, Sep 26, 2018 at 03:52:06PM +0200, Milian Wolff wrote: > To correctly find inlined frames, we have to use the file offset > instead of the virtual memory address. This was already fixed for > displaying srcline information while displaying in commit > 2a9d5050dc84fa20 ("perf script: Show cor

[RFC PATCH 5/5] tracing: Add generic event-name based remove event method

2018-09-27 Thread Masami Hiramatsu
Add a generic method to remove event from dynamic event list. This is same as other system under ftrace. You just need to pass the event name with '!' prefix, e.g. # echo p:new_grp/new_event _do_fork > dynamic_events This creates an event, and # echo '!new_grp/new_event' > dynamic_events

Re: perf segmentation fault from NULL dereference

2018-09-27 Thread Jiri Olsa
On Tue, Sep 25, 2018 at 04:53:40PM +0100, John Garry wrote: > Hi, > > I am seeing this perf crash on my arm64-based system: > > root@localhost:~# ./perf_debug_ record -e armv8_pmuv3_0/br_mis_pred/ sleep 1 > perf: Segmentation fault > Obtained 9 stack frames. > ./perf_debug_() [0x4c5ef8] > [0x

[tip:core/core] jump_label: Implement generic support for relative references

2018-09-27 Thread tip-bot for Ard Biesheuvel
Commit-ID: 50ff18ab497aa22f6a59444625df7508c8918237 Gitweb: https://git.kernel.org/tip/50ff18ab497aa22f6a59444625df7508c8918237 Author: Ard Biesheuvel AuthorDate: Tue, 18 Sep 2018 23:51:37 -0700 Committer: Thomas Gleixner CommitDate: Thu, 27 Sep 2018 17:56:47 +0200 jump_label: Implemen

Re: [PATCH 1/3] perf report: don't try to map ip to invalid map

2018-09-27 Thread Jiri Olsa
On Wed, Sep 26, 2018 at 03:52:05PM +0200, Milian Wolff wrote: > Fixes a crash when the report encounters an address that > could not be associated with an mmaped region: > > #0 0x557bdc4a in callchain_srcline (ip= Cannot access memory at address 0x38>, sym=0x0, map=0x0) at > util/machine

Re: [PATCH v1] perf record: encode -k clockid frequency into Perf trace

2018-09-27 Thread Jiri Olsa
On Thu, Sep 27, 2018 at 03:54:03PM +0300, Alexey Budankov wrote: > > Store -k clockid frequency into Perf trace to enable timestamps > derived metrics conversion into wall clock time on reporting stage. > > Below is the example of perf report output: > > tools/perf/perf record -k raw -- ../../m

Re: [PATCH 47/48] perf record: Spread maps for --threads option

2018-09-27 Thread Jiri Olsa
On Wed, Sep 26, 2018 at 08:23:17AM +0200, Jiri Olsa wrote: SNIP > > I agree with Namhyung, with a slight difference: perhaps we should set > > perf_event_attr.mmap on one of the events of the per-cpu mmap, that way > > we don't need that dummy event, right? > > currently it's all based on having

[tip:core/core] jump_label: Abstract jump_entry member accessors

2018-09-27 Thread tip-bot for Ard Biesheuvel
Commit-ID: 9ae033aca8d600e36034d4d0743aad624cec92ed Gitweb: https://git.kernel.org/tip/9ae033aca8d600e36034d4d0743aad624cec92ed Author: Ard Biesheuvel AuthorDate: Tue, 18 Sep 2018 23:51:36 -0700 Committer: Thomas Gleixner CommitDate: Thu, 27 Sep 2018 17:56:46 +0200 jump_label: Abstract

[tip:core/core] arm64/kernel: jump_label: Switch to relative references

2018-09-27 Thread tip-bot for Ard Biesheuvel
Commit-ID: c296146c058c87e9ed53001b6a3988519dbbb6a5 Gitweb: https://git.kernel.org/tip/c296146c058c87e9ed53001b6a3988519dbbb6a5 Author: Ard Biesheuvel AuthorDate: Tue, 18 Sep 2018 23:51:38 -0700 Committer: Thomas Gleixner CommitDate: Thu, 27 Sep 2018 17:56:47 +0200 arm64/kernel: jump_l

[tip:core/core] x86: Add support for 64-bit place relative relocations

2018-09-27 Thread tip-bot for Ard Biesheuvel
Commit-ID: b40a142b12b5c4312171140ff2bc92971b8a7a09 Gitweb: https://git.kernel.org/tip/b40a142b12b5c4312171140ff2bc92971b8a7a09 Author: Ard Biesheuvel AuthorDate: Tue, 18 Sep 2018 23:51:39 -0700 Committer: Thomas Gleixner CommitDate: Thu, 27 Sep 2018 17:56:47 +0200 x86: Add support for

[tip:core/core] x86/jump_label: Switch to jump_entry accessors

2018-09-27 Thread tip-bot for Ard Biesheuvel
Commit-ID: 9fc0f798ab8a6c042d811e45086260eb59be45c1 Gitweb: https://git.kernel.org/tip/9fc0f798ab8a6c042d811e45086260eb59be45c1 Author: Ard Biesheuvel AuthorDate: Tue, 18 Sep 2018 23:51:40 -0700 Committer: Thomas Gleixner CommitDate: Thu, 27 Sep 2018 17:56:48 +0200 x86/jump_label: Swit

[tip:core/core] x86/jump_table: Use relative references

2018-09-27 Thread tip-bot for Ard Biesheuvel
Commit-ID: b34006c4258c9c86597b6b7123d6a9a3513d6cd7 Gitweb: https://git.kernel.org/tip/b34006c4258c9c86597b6b7123d6a9a3513d6cd7 Author: Ard Biesheuvel AuthorDate: Tue, 18 Sep 2018 23:51:41 -0700 Committer: Thomas Gleixner CommitDate: Thu, 27 Sep 2018 17:56:48 +0200 x86/jump_table: Use

[tip:core/core] jump_label: Annotate entries that operate on __init code earlier

2018-09-27 Thread tip-bot for Ard Biesheuvel
Commit-ID: 19483677684b6ca01606f58503cb79cdfbbc7c72 Gitweb: https://git.kernel.org/tip/19483677684b6ca01606f58503cb79cdfbbc7c72 Author: Ard Biesheuvel AuthorDate: Tue, 18 Sep 2018 23:51:42 -0700 Committer: Thomas Gleixner CommitDate: Thu, 27 Sep 2018 17:56:48 +0200 jump_label: Annotate

Re: [v2 PATCH 1/2 -mm] mm: mremap: dwongrade mmap_sem to read when shrinking

2018-09-27 Thread Yang Shi
On 9/27/18 4:50 AM, Vlastimil Babka wrote: On 9/26/18 8:10 PM, Yang Shi wrote: Subject: [v2 PATCH 1/2 -mm] mm: mremap: dwongrade mmap_sem to read when shrinking "downgrade" in the subject Will fix in the next version. Thanks, Yang Other than munmap, mremap might be used to shrink mem

Re: [PATCH 2/2] hwmon: ina3221: Add enable sysfs nodes

2018-09-27 Thread Guenter Roeck
Hi Nicolin, On Wed, Sep 26, 2018 at 02:55:06PM -0700, Nicolin Chen wrote: > On Wed, Sep 26, 2018 at 01:44:55PM -0700, Guenter Roeck wrote: > > On Wed, Sep 26, 2018 at 01:25:20PM -0700, Nicolin Chen wrote: > > > Hello, > > > > > > On Wed, Sep 26, 2018 at 12:58:17PM -0700, Guenter Roeck wrote: > >

Re: Fix 80d20d35af1e ("nohz: Fix local_timer_softirq_pending()") may have revealed another problem

2018-09-27 Thread Thomas Gleixner
On Tue, 28 Aug 2018, Frederic Weisbecker wrote: > On Fri, Aug 24, 2018 at 07:06:32PM +0200, Heiner Kallweit wrote: > > I tested it and Frederic is right, it doesn't help. Can it be somehow > > related to > > the cpu being brought down during suspend? Because I get the warning only > > during > >

Re: [v2 PATCH 2/2 -mm] mm: brk: dwongrade mmap_sem to read when shrinking

2018-09-27 Thread Yang Shi
On 9/27/18 5:14 AM, Vlastimil Babka wrote: On 9/26/18 8:10 PM, Yang Shi wrote: Again, "downgrade" in the subject brk might be used to shinrk memory mapping too other than munmap(). ^ shrink So, it may hold write mmap_sem for long time when shrinking large mapping,

[tip:core/core] jump_table: Move entries into ro_after_init region

2018-09-27 Thread tip-bot for Ard Biesheuvel
Commit-ID: e872267b8bcbb179e21ccc7118f258873d6e7a59 Gitweb: https://git.kernel.org/tip/e872267b8bcbb179e21ccc7118f258873d6e7a59 Author: Ard Biesheuvel AuthorDate: Tue, 18 Sep 2018 23:51:43 -0700 Committer: Thomas Gleixner CommitDate: Thu, 27 Sep 2018 17:56:49 +0200 jump_table: Move ent

[tip:core/core] s390/jump_label: Switch to relative references

2018-09-27 Thread tip-bot for Heiko Carstens
Commit-ID: 13ddb52c165ba47d153b7b040931a5cbe9220866 Gitweb: https://git.kernel.org/tip/13ddb52c165ba47d153b7b040931a5cbe9220866 Author: Heiko Carstens AuthorDate: Tue, 18 Sep 2018 23:51:44 -0700 Committer: Thomas Gleixner CommitDate: Thu, 27 Sep 2018 17:56:49 +0200 s390/jump_label: Swi

Re: [v2 PATCH 2/2 -mm] mm: brk: dwongrade mmap_sem to read when shrinking

2018-09-27 Thread Yang Shi
On 9/27/18 5:50 AM, Kirill A. Shutemov wrote: On Thu, Sep 27, 2018 at 02:10:34AM +0800, Yang Shi wrote: brk might be used to shinrk memory mapping too other than munmap(). s/shinrk/shrink/ So, it may hold write mmap_sem for long time when shrinking large mapping, as what commit ("mm: mmap:

Re: [PATCH] Reduce boot header size with 1 byte

2018-09-27 Thread Randy Dunlap
On 9/27/18 6:41 AM, xypr...@archlinux.org wrote: > From: Alexander F. Rødseth > > Only ah needs to be set to 0 before calling interrupt 0x16 for waiting > for a keypress. > > This patch changes the line that uses xor so that it only zeroes "ah" instead > of "ax". > This saves a byte. > > Signe

Re: [PATCH] printk: inject caller information into the body of message

2018-09-27 Thread Tetsuo Handa
On 2018/09/24 17:11, Tetsuo Handa wrote: > On 2018/09/19 20:02, Tetsuo Handa wrote: >> On 2018/09/14 21:22, Sergey Senozhatsky wrote: >>> The "SMP-safe" comment becomes a bit tricky when pr_line is used with a >>> static buffer. Either we need to require synchronization - umm... and >>> document it

Re: [PATCH v7 RESEND 1/4] x86/ioremap: add a function ioremap_encrypted() to remap kdump old memory

2018-09-27 Thread Borislav Petkov
On Thu, Sep 27, 2018 at 10:53:47PM +0800, lijiang wrote: > If no need to break this line, it will cause a warning of exceeding 80 > characters per line. That's fine - we don't take the 80 cols rule blindly but apply common sense. In this particular case the lines can stick out because they're sim

[PATCH] b43: fix spelling mistake "hw_registred" -> "hw_registered"

2018-09-27 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake struct field name, rename it. Signed-off-by: Colin Ian King --- drivers/net/wireless/broadcom/b43/b43.h | 2 +- drivers/net/wireless/broadcom/b43/main.c | 8 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/ne

Re: [PATCH 4/5] dma-direct: implement complete bus_dma_mask handling

2018-09-27 Thread Robin Murphy
On 27/09/18 16:32, Christoph Hellwig wrote: On Thu, Sep 27, 2018 at 03:58:04PM +0100, Robin Murphy wrote: } #endif /* !CONFIG_ARCH_HAS_PHYS_TO_DMA */ diff --git a/kernel/dma/direct.c b/kernel/dma/direct.c index 3c404e33d946..64466b7ef67b 100644 --- a/kernel/dma/direct.c +++ b/kernel/dma

Re: [RFC] net;sched: Try to find idle cpu for RPS to handle packets

2018-09-27 Thread Willem de Bruijn
On Wed, Sep 19, 2018 at 12:02 PM Kirill Tkhai wrote: > > On 19.09.2018 18:49, Eric Dumazet wrote: > > On Wed, Sep 19, 2018 at 8:41 AM Kirill Tkhai wrote: > >> > >> On 19.09.2018 17:55, Eric Dumazet wrote: > >>> On Wed, Sep 19, 2018 at 5:29 AM Kirill Tkhai wrote: > > Many workloads have

Re: [PATCH v2 7/7] arm64: uprobes - ARM32 instruction probing

2018-09-27 Thread Julien Thierry
Hi Maciej, On 26/09/18 13:12, Maciej Slodczyk wrote: Detect what kind of instruction is being probed and depending on the result: - if an A64 instruction handle it the old way, using existing A64 instructions probing code, - if an A32 instruction decode it and handle using the new code, moved fr

Re: [PATCH 1/12 v2] switchtec: Remove immediate status check after submit a MRPC command

2018-09-27 Thread Logan Gunthorpe
Wesley, I'm going to suggest you send patches to me before sending them to the community until you have a better handle of the tools and process. The subject suggests you have 11 other patches in this series so you've mishandled the tools. On 2018-09-26 11:57 p.m., wesley.sh...@microchip.com wrote

Re: [PATCH 06/12] drm/sun4i: sun6i_mipi_dsi: Fix VBP size calculation

2018-09-27 Thread Jagan Teki
On Thu, Sep 27, 2018 at 8:51 PM Maxime Ripard wrote: > > On Thu, Sep 27, 2018 at 05:18:44PM +0530, Jagan Teki wrote: > > According to horizontal and vertical timings are defined > > per the diagram from include/drm/drm_modes.h > > > > Back porch = [hv]total - [hv]sync_end > > > > So, update SUN6I_

Re: [PATCH v7 3/6] seccomp: add a way to get a listener fd from ptrace

2018-09-27 Thread Jann Horn
On Thu, Sep 27, 2018 at 5:11 PM Tycho Andersen wrote: > As an alternative to SECCOMP_FILTER_FLAG_GET_LISTENER, perhaps a ptrace() > version which can acquire filters is useful. There are at least two reasons > this is preferable, even though it uses ptrace: > > 1. You can control tasks that aren't

Re: [PATCH 1/9] mm: infrastructure for page fault page caching

2018-09-27 Thread Matthew Wilcox
On Wed, Sep 26, 2018 at 05:08:48PM -0400, Josef Bacik wrote: > We want to be able to cache the result of a previous loop of a page > fault in the case that we use VM_FAULT_RETRY, so introduce > handle_mm_fault_cacheable that will take a struct vm_fault directly, add > a ->cached_page field to vm_fa

Re: [PATCH v6 1/3] dt-bindings: pinctrl: renesas,rzn1-pinctrl: documentation

2018-09-27 Thread Rob Herring
On Thu, Sep 27, 2018 at 05:15:54PM +0200, Geert Uytterhoeven wrote: > On Thu, Sep 27, 2018 at 3:59 PM Phil Edworthy > wrote: > > The Renesas RZ/N1 device family PINCTRL node description. > > > > Based on a patch originally written by Michel Pollet at Renesas. > > > > Signed-off-by: Phil Edworthy

Re: [PATCH] RDMA/ucontext: fix building with CONFIG_MMU=n

2018-09-27 Thread Jason Gunthorpe
On Thu, Sep 27, 2018 at 12:10:03PM +0200, Arnd Bergmann wrote: > The zap_vma_ptes() is declared but not defined on NOMMU kernels, > causing a link error for the newly added uverbs code: > > drivers/infiniband/core/uverbs_main.o: In function > `uverbs_user_mmap_disassociate': > uverbs_main.c:(.tex

RE: [PATCH v5 3/5] SELinux: Prepare for PTRACE_MODE_SCHED

2018-09-27 Thread Schaufler, Casey
> -Original Message- > From: Stephen Smalley [mailto:s...@tycho.nsa.gov] > Sent: Thursday, September 27, 2018 8:50 AM > To: Schaufler, Casey ; kernel- > harden...@lists.openwall.com; linux-kernel@vger.kernel.org; linux-security- > mod...@vger.kernel.org; seli...@tycho.nsa.gov; Hansen, Dave

Re: [linux-sunxi] Re: [PATCH 04/12] drm/sun4i: sun6i_mipi_dsi: Enable missing DSI bus clock

2018-09-27 Thread Jagan Teki
On Thu, Sep 27, 2018 at 7:47 PM Chen-Yu Tsai wrote: > > On Thu, Sep 27, 2018 at 9:44 PM Jagan Teki wrote: > > > > On Thu, Sep 27, 2018 at 6:13 PM Chen-Yu Tsai wrote: > > > > > > Hi, > > > > > > On Thu, Sep 27, 2018 at 7:49 PM Jagan Teki > > > wrote: > > > > > > > > DSI bus_clk is already avail

Re: [PATCH 4/5] dma-direct: implement complete bus_dma_mask handling

2018-09-27 Thread Christoph Hellwig
On Thu, Sep 27, 2018 at 05:14:56PM +0100, Robin Murphy wrote: >> This just seemed more readable to me than min_not_zero, but if others >> prefer min_not_zero I can switch. > > Nah, just checking whether there were any intentionally different > assumptions compared to the couple of other places in

Re: [PATCH v8 01/12] dt-bindings: Add a document of PECI subsystem

2018-09-27 Thread Jae Hyun Yoo
On 9/27/2018 8:10 AM, Rob Herring wrote: On Tue, 18 Sep 2018 14:51:13 -0700, Jae Hyun Yoo wrote: This commit adds a document of generic PECI bus, adapter and client driver. Cc: Rob Herring Cc: Mark Rutland Cc: Andrew Jeffery Cc: Joel Stanley Signed-off-by: Jae Hyun Yoo Reviewed-by: Haiyue

Re: [PATCH net-next v6 07/23] zinc: ChaCha20 ARM and ARM64 implementations

2018-09-27 Thread Andy Lutomirski
> On Sep 27, 2018, at 8:19 AM, Jason A. Donenfeld wrote: > > Hey again Thomas, > >> On Thu, Sep 27, 2018 at 3:26 PM Jason A. Donenfeld wrote: >> >> Hi Thomas, >> >> I'm trying to optimize this for crypto performance while still taking >> into account preemption concerns. I'm having a bit o

Re: [PATCH v8 07/12] dt-bindings: mfd: Add a document for PECI client MFD

2018-09-27 Thread Jae Hyun Yoo
On 9/27/2018 8:15 AM, Rob Herring wrote: On Tue, 18 Sep 2018 14:51:19 -0700, Jae Hyun Yoo wrote: This commit adds a dt-bindings document for PECI client MFD. Cc: Lee Jones Cc: Rob Herring Cc: Mark Rutland Cc: Andrew Jeffery Cc: James Feist Cc: Jason M Biils Cc: Joel Stanley Cc: Vernon Ma

Re: [QUEUED v20180920 01/16] stm class: Rework policy node fallback

2018-09-27 Thread Mathieu Poirier
Hi Alex, On Thu, Sep 20, 2018 at 03:45:38PM +0300, Alexander Shishkin wrote: > Currently, if no matching policy node can be found for a trace source, > we'll try to use "default" policy node, then, if that doesn't exist, > we'll pick the first node, in order of creation. If that also fails, > we'l

Re: [linux-sunxi] Re: [PATCH 04/12] drm/sun4i: sun6i_mipi_dsi: Enable missing DSI bus clock

2018-09-27 Thread Chen-Yu Tsai
On Fri, Sep 28, 2018 at 12:26 AM Jagan Teki wrote: > > On Thu, Sep 27, 2018 at 7:47 PM Chen-Yu Tsai wrote: > > > > On Thu, Sep 27, 2018 at 9:44 PM Jagan Teki > > wrote: > > > > > > On Thu, Sep 27, 2018 at 6:13 PM Chen-Yu Tsai wrote: > > > > > > > > Hi, > > > > > > > > On Thu, Sep 27, 2018 at 7

Re: [PATCH v7 3/6] seccomp: add a way to get a listener fd from ptrace

2018-09-27 Thread Tycho Andersen
On Thu, Sep 27, 2018 at 06:20:23PM +0200, Jann Horn wrote: > On Thu, Sep 27, 2018 at 5:11 PM Tycho Andersen wrote: > > As an alternative to SECCOMP_FILTER_FLAG_GET_LISTENER, perhaps a ptrace() > > version which can acquire filters is useful. There are at least two reasons > > this is preferable, e

Re: [PATCH 0/2] boot to a mapped device

2018-09-27 Thread Kees Cook
On Thu, Sep 27, 2018 at 7:23 AM, Mike Snitzer wrote: > On Wed, Sep 26 2018 at 3:16am -0400, > Richard Weinberger wrote: > >> Helen, >> >> On Wed, Sep 26, 2018 at 7:01 AM Helen Koike >> wrote: >> > >> > This series is reviving an old patchwork. >> > Booting from a mapped device requires an init

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