[PATCH] Arm: mm: ftrace: Only set text back to ro after kernel has been marked ro

2017-08-23 Thread Steven Rostedt
ftrace needs to modify the kernel text in order to enable function tracing. For security reasons, the kernel text is marked to read-only (ro) at the end of system bootup. When enabling function tracing after that, ftrace calls arch specific code that needs to enable the modification of kernel text

Re: [PATCH v7 1/2] PCI: iproc: Retry request when CRS returned from EP

2017-08-23 Thread Bjorn Helgaas
On Wed, Aug 23, 2017 at 09:32:06PM +0530, Oza Oza wrote: > On Wed, Aug 23, 2017 at 9:22 PM, Sinan Kaya wrote: > > Hi Oza, > > > >> In working Enumuration case I get following: > >> [9.125976] pci :00:00.0: bridge configuration invalid ([bus > >> 00-00]), re-configuring > >> [9.134267]

[PATCH v1 0/1] Reversed logic in memblock_discard

2017-08-23 Thread Pavel Tatashin
One line fix for reversed logic where static array is freed instead of allocated one Pavel Tatashin (1): mm: Reversed logic in memblock_discard mm/memblock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.14.1

[PATCH v1 1/1] mm: Reversed logic in memblock_discard

2017-08-23 Thread Pavel Tatashin
In recently introduced memblock_discard() there is a reversed logic bug. Memory is freed of static array instead of dynamically allocated one. Fixes: 3010f876500f ("mm: discard memblock data later") Reported-and-tested-by: Woody Suwalski Signed-off-by: Pavel Tatashin --- mm/memblock.c | 2 +-

Re: [patch v5 1/3] drivers: jtag: Add JTAG core driver

2017-08-23 Thread kbuild test robot
Hi Oleksandr, [auto build test WARNING on linus/master] [also build test WARNING on v4.13-rc6 next-20170823] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Oleksandr-Shamray/JTAG-driver

Re: [v5 2/4] mm, oom: cgroup-aware OOM killer

2017-08-23 Thread Roman Gushchin
On Wed, Aug 23, 2017 at 01:24:41PM -0400, Johannes Weiner wrote: > Hi, > > On Wed, Aug 23, 2017 at 05:20:31PM +0100, Roman Gushchin wrote: > > On Tue, Aug 22, 2017 at 01:03:44PM -0400, Johannes Weiner wrote: > > > > + css_task_iter_start(&memcg->css, 0, &it); > > > > + while ((task = c

Re: Stable apply request

2017-08-23 Thread David Miller
From: Jiri Slaby Date: Wed, 23 Aug 2017 09:29:44 +0200 > On 06/27/2017, 07:32 PM, Marcel Holtmann wrote: >>> It looks like bnep_session has same pattern as the issue reported in >>> old rfcomm: >>> >>> while (1) { >>> set_current_state(TASK_INTERRUPTIBLE); >>> if (cond

RE: [Patch v2 13/19] CIFS: SMBD: Use registered memory RDMA read for SMB write

2017-08-23 Thread Long Li
> -Original Message- > From: Leon Romanovsky [mailto:l...@kernel.org] > Sent: Wednesday, August 23, 2017 6:52 AM > To: Long Li > Cc: Steve French ; linux-c...@vger.kernel.org; samba- > techni...@lists.samba.org; linux-kernel@vger.kernel.org; linux- > r...@vger.kernel.org; Christoph Hellw

Re: Re: [PATCH] devfreq: Convert to using %pOF instead of full_name

2017-08-23 Thread Rob Herring
On Thu, Jul 20, 2017 at 12:25 AM, MyungJoo Ham wrote: >> On 2017년 07월 19일 06:42, Rob Herring wrote: >> > Now that we have a custom printf format specifier, convert users of >> > full_name to use %pOF instead. This is preparation to remove storing >> > of the full path string for each node. >> > >>

[PATCH] input/xen-kbdfront: Enable auto repeat for xen keyboard frontend driver

2017-08-23 Thread Liang Yan
Long pressed key could not show right in XEN vncviewer after tigervnc client changed the way how to send repeat keys, from "Down Up Down Up ..." to "Down Down ... Up". By enable EV_REP bit here, XEN keyboard device will trigger default auto repeat process from input subsystem, and make auto repeat

Re: [PATCH] c6x: Convert to using %pOF instead of full_name

2017-08-23 Thread Rob Herring
On Wed, Jul 19, 2017 at 12:42 PM, Mark Salter wrote: > On Tue, 2017-07-18 at 16:42 -0500, Rob Herring wrote: >> Now that we have a custom printf format specifier, convert users of >> full_name to use %pOF instead. This is preparation to remove storing >> of the full path string for each node. >> >

Re: [PATCH v7 2/2] perf/core: add mux switch to skip to the current CPU's events list on mux interrupt

2017-08-23 Thread Alexey Budankov
On 23.08.2017 14:54, Alexander Shishkin wrote: > Alexey Budankov writes: > >> This patch implements mux switch that triggers skipping to the >> current CPU's events list at mulitplexing hrtimer interrupt >> handler as well as adoption of the switch in the existing >> implementation. >> >> perf

RE: [PATCH V6] perf: Add PERF_SAMPLE_PHYS_ADDR

2017-08-23 Thread Liang, Kan
> On Wed, Aug 23, 2017 at 04:33:08PM +0200, Peter Zijlstra wrote: > > > @@ -6145,6 +6183,9 @@ void perf_prepare_sample(struct > > > perf_event_header *header, > > > > > > header->size += size; > > > } > > > + > > > + if (sample_type & PERF_SAMPLE_PHYS_ADDR) > > > + data->phys_ad

Re: Stable apply request [was: Bluetooth: bnep: fix possible might sleep error in bnep_session]

2017-08-23 Thread Marcel Holtmann
Hi Jiri, >>> It looks like bnep_session has same pattern as the issue reported in >>> old rfcomm: >>> >>> while (1) { >>> set_current_state(TASK_INTERRUPTIBLE); >>> if (condition) >>> break; >>> // may call might_sleep here >>>

Re: [PATCH] cpuidle: Convert to using %pOF instead of full_name

2017-08-23 Thread Rob Herring
On Tue, Jul 18, 2017 at 4:42 PM, Rob Herring wrote: > Now that we have a custom printf format specifier, convert users of > full_name to use %pOF instead. This is preparation to remove storing > of the full path string for each node. > > Signed-off-by: Rob Herring > Cc: "Rafael J. Wysocki" > Cc:

Re: [PATCH 1/2] sched/wait: Break up long wake list walk

2017-08-23 Thread Linus Torvalds
On Wed, Aug 23, 2017 at 8:58 AM, Tim Chen wrote: > > Will you still consider the original patch as a fail safe mechanism? I don't think we have much choice, although I would *really* want to get this root-caused rather than just papering over the symptoms. Maybe still worth testing that "sched/n

[PATCH] locking/lockdep: Make MAX_STACK_TRACE_ENTRIES configurable

2017-08-23 Thread Waiman Long
A "BUG: MAX_STACK_TRACE_ENTRIES too low!" error was hit when running a networking test on a 4.11 kernel. So even 512k of stack trace entries wasn't enough in this case. Instead of hardcoding a larger MAX_STACK_TRACE_ENTRIES value, it is now made to be dependent on a new kernel configuration entry

Re: [PATCH][drm-next] drm/amdgpu: remove duplicate return statement

2017-08-23 Thread Felix Kuehling
I must have added that accidentally when cherry-picking an internal patch for upstreaming. Thanks for catching it. Reviewed-by: Felix Kuehling Regards, Felix On 2017-08-23 09:17 AM, Colin King wrote: > From: Colin Ian King > > Remove a redundant identical return statement, it has no use. >

Re: [PATCH] Arm: mm: ftrace: Only set text back to ro after kernel has been marked ro

2017-08-23 Thread Matthias Reichl
On Wed, Aug 23, 2017 at 01:58:36PM -0400, Steven Rostedt wrote: > > ftrace needs to modify the kernel text in order to enable function tracing. > For security reasons, the kernel text is marked to read-only (ro) at the end > of system bootup. When enabling function tracing after that, ftrace calls

Re: [PATCH] x86: enable RCU based table free when PARAVIRT

2017-08-23 Thread Linus Torvalds
On Wed, Aug 23, 2017 at 6:45 AM, Vitaly Kuznetsov wrote: > > Solve the issue by enabling RCU-based table free mechanism when PARAVIRT > is selected in config. Testing with kernbench doesn't show any notable > performance impact: I wonder if we should just make it unconditional if it doesn't reall

Re: [PATCH V6] perf: Add PERF_SAMPLE_PHYS_ADDR

2017-08-23 Thread Peter Zijlstra
On Wed, Aug 23, 2017 at 06:01:25PM +, Liang, Kan wrote: > For x86, I think we can do something as below. But I'm not sure other > architectures. If you'd done: git grep PERF_SAMPLE_ADDR, you'd have found: arch/powerpc/perf/core-book3s.c:if (event->attr.sample_type & PERF_SA

Re: [PATCH] mm: swap: make free_swap_and_cache()/swapcache_prepare() inline functions

2017-08-23 Thread Jerome Glisse
On Wed, Aug 23, 2017 at 03:31:42PM +0200, Arnd Bergmann wrote: > We get a build warning from a boolean expression that is never used: > > mm/madvise.c: In function 'madvise_free_pte_range': > include/linux/swap.h:490:55: error: value computed is not used > [-Werror=unused-value] > #define free_s

Re: [PATCH 2/2 v7] printk: Add monotonic, boottime, and realtime timestamps

2017-08-23 Thread Prarit Bhargava
On 08/23/2017 04:45 AM, Petr Mladek wrote: > On Thu 2017-08-17 09:15:39, Prarit Bhargava wrote: >> printk.time=1/CONFIG_PRINTK_TIME=1 adds a unmodified local hardware clock >> timestamp to printk messages. The local hardware clock loses time each >> day making it difficult to determine exactly wh

Re: [PATCH] input/xen-kbdfront: Enable auto repeat for xen keyboard frontend driver

2017-08-23 Thread Dmitry Torokhov
Hi Liang, On Wed, Aug 23, 2017 at 02:10:26PM -0400, Liang Yan wrote: > Long pressed key could not show right in XEN vncviewer after tigervnc > client changed the way how to send repeat keys, from "Down Up Down Up > ..." to "Down Down ... Up". By enable EV_REP bit here, XEN keyboard > device will t

Re: [PATCH][net-next] net: hinic: make functions set_ctrl0 and set_ctrl1 static

2017-08-23 Thread David Miller
From: "Aviad Krawczyk (A)" Date: Wed, 23 Aug 2017 10:08:58 + > Thanks Please do not top-post. Especially quoting the original message in the way that you did. As a result of how you replied to this, this patch will show up twice in my patchwork queue making more administrative work for me.

Re: [PATCH][netdev-next] gre: remove duplicated assignment of iph

2017-08-23 Thread David Miller
From: Colin King Date: Wed, 23 Aug 2017 12:13:05 +0100 > From: Colin Ian King > > iph is being assigned the same value twice; remove the redundant > second assignment. > > Fixes warning: > net/ipv4/ip_gre.c:265:2: warning: Value stored to 'iph' is never read > > Signed-off-by: Colin Ian King

Re: [PATCH] Arm: mm: ftrace: Only set text back to ro after kernel has been marked ro

2017-08-23 Thread Kees Cook
On Wed, Aug 23, 2017 at 10:58 AM, Steven Rostedt wrote: > > ftrace needs to modify the kernel text in order to enable function tracing. > For security reasons, the kernel text is marked to read-only (ro) at the end > of system bootup. When enabling function tracing after that, ftrace calls > arch

Re: [PATCH] binder: let ANDROID_BINDER_IPC_32BIT be selectable on 32bit ARM

2017-08-23 Thread Rob Herring
On Tue, Aug 22, 2017 at 9:57 PM, John Stultz wrote: > On Tue, Aug 22, 2017 at 7:56 PM, John Stultz wrote: >> On Tue, Aug 22, 2017 at 7:34 PM, Jisheng Zhang wrote: >>> On Tue, 22 Aug 2017 18:51:08 -0700 Greg KH wrote: >>> On Tue, Aug 08, 2017 at 07:03:05PM +0800, Jisheng Zhang wrote: >

Re: [PATCH 2/2 v7] printk: Add monotonic, boottime, and realtime timestamps

2017-08-23 Thread John Stultz
On Wed, Aug 23, 2017 at 11:31 AM, Prarit Bhargava wrote: > On 08/23/2017 04:45 AM, Petr Mladek wrote: >> I know that it would make the code more complicated. But >> I really like the approach used by /sys/power/disk or >> /sys/power/pm_test. They list all possible values >> and put the selected on

Re: [PATCH] coccinelle: Improve setup_timer.cocci matching

2017-08-23 Thread Kees Cook
On Wed, Aug 23, 2017 at 6:13 AM, Julia Lawall wrote: > > > On Tue, 22 Aug 2017, Kees Cook wrote: > >> This improves the patch mode of setup_timer.cocci. Several patterns were >> missing: >> - assignments-before-init_timer() cases >> - limiting the .data case removal to the struct timer_list inst

Re: [PATCH v2 0/3] PCI: mediatek: Add MSI support for MT2712 and MT7622

2017-08-23 Thread Bjorn Helgaas
On Mon, Aug 14, 2017 at 09:04:25PM +0800, honghui.zh...@mediatek.com wrote: > From: Honghui Zhang > > MT2712 and MT7622's PCIe host controller support MSI, but only 32bit MSI > address are supportted. It connect to GIC with the same IRQ number of INTx > IRQ, so it shares the same IRQ with INTx IR

Re: [Patch v2 13/19] CIFS: SMBD: Use registered memory RDMA read for SMB write

2017-08-23 Thread Leon Romanovsky
On Wed, Aug 23, 2017 at 06:09:11PM +, Long Li wrote: > > > > -Original Message- > > From: Leon Romanovsky [mailto:l...@kernel.org] > > Sent: Wednesday, August 23, 2017 6:52 AM > > To: Long Li > > Cc: Steve French ; linux-c...@vger.kernel.org; samba- > > techni...@lists.samba.org; linux

Re: [PATCH] scsi: lpfc: avoid false-positive gcc-8 warning

2017-08-23 Thread Arnd Bergmann
On Wed, Aug 23, 2017 at 5:01 PM, Arnd Bergmann wrote: > This is an interesting regression with gcc-8, showing a harmless > warning for correct code: > > In file included from include/linux/kernel.h:13:0, > ... > from drivers/scsi/lpfc/lpfc_debugfs.c:23: > include/

Re: [PATCH] Arm: mm: ftrace: Only set text back to ro after kernel has been marked ro

2017-08-23 Thread Steven Rostedt
On Wed, 23 Aug 2017 11:48:13 -0700 Kees Cook wrote: > > diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c > > index ad80548..fd75f38 100644 > > --- a/arch/arm/mm/init.c > > +++ b/arch/arm/mm/init.c > > @@ -745,19 +745,29 @@ static int __mark_rodata_ro(void *unused) > > return 0; > > }

RE: [Patch v2 13/19] CIFS: SMBD: Use registered memory RDMA read for SMB write

2017-08-23 Thread Long Li
> -Original Message- > From: Leon Romanovsky [mailto:l...@kernel.org] > Sent: Wednesday, August 23, 2017 12:02 PM > To: Long Li > Cc: Steve French ; linux-c...@vger.kernel.org; samba- > techni...@lists.samba.org; linux-kernel@vger.kernel.org; linux- > r...@vger.kernel.org; Christoph Hell

Re: [GIT PULL] SCSI fixes for 4.13-rc6

2017-08-23 Thread Brian King
On 08/23/2017 10:44 AM, Bart Van Assche wrote: > On Wed, 2017-08-23 at 11:27 -0400, Martin K. Petersen wrote: >> However, what's more important is that we still need a good version of >> your patch for 4.13. I took Brian's workaround for ipr but I still think >> Christoph's concerns need to be addr

[PATCH] fbcon: remove restriction on margin color

2017-08-23 Thread David Lechner
This removes the restriction on the value range of the fbcon=margin: parameter. The color value really depends on the driver being used. Signed-off-by: David Lechner --- This is a follow up to "fbcon: add fbcon=margin: command line option". https://lkml.org/lkml/2017/8/23/479 Documentation/fb

[PATCH] apparmor: fix build failure on sparc caused by undeclared, signals

2017-08-23 Thread John Johansen
In file included from security/apparmor/ipc.c:23:0: security/apparmor/include/sig_names.h:26:3: error: 'SIGSTKFLT' undeclared here (not in a function) [SIGSTKFLT] = 16, /* -, 16, - */ ^ security/apparmor/include/sig_names.h:26:3: error: array index in initializer not of integer ty

Re: [Patch v2 13/19] CIFS: SMBD: Use registered memory RDMA read for SMB write

2017-08-23 Thread Leon Romanovsky
On Wed, Aug 23, 2017 at 07:10:38PM +, Long Li wrote: > > > > -Original Message- > > From: Leon Romanovsky [mailto:l...@kernel.org] > > Sent: Wednesday, August 23, 2017 12:02 PM > > To: Long Li > > Cc: Steve French ; linux-c...@vger.kernel.org; samba- > > techni...@lists.samba.org; linu

Re: [PATCH v2 1/3] media: V3s: Add support for Allwinner CSI.

2017-08-23 Thread Maxime Ripard
On Wed, Aug 23, 2017 at 10:41:18AM +0800, Yong wrote: > > > > > +static irqreturn_t sun6i_csi_isr(int irq, void *dev_id) > > > > > +{ > > > > > + struct sun6i_csi_dev *sdev = (struct sun6i_csi_dev *)dev_id; > > > > > + struct regmap *regmap = sdev->regmap; > > > > > + u32 status; > > >

Re: [PATCH] rtc: pxa: fix possible race condition

2017-08-23 Thread Robert Jarzmik
Alexandre Belloni writes: > pxa_rtc_open() registers the interrupt handler which will access the RTC > registers. However, pxa_rtc_open() is called before the register range is > ioremapped. Instead, call it after devm_ioremap(). > > Signed-off-by: Alexandre Belloni Acked-by: Robert Jarzmik Ch

Re: [PATCH] rtc: sa1100: fix unbalanced clk_prepare_enable/clk_disable_unprepare

2017-08-23 Thread Robert Jarzmik
Alexandre Belloni writes: > In the error path of sa1100_rtc_open(), info->clk is disabled which will > happen again in sa1100_rtc_remove() when the module is removed whereas it > is only enabled once in sa1100_rtc_init(). > > Fixes: 0cc0c38e9139 ("drivers/rtc/rtc-sa1100.c: move clock enable/disab

Re: [PATCH v5 00/12] AC97 device/driver model revamp

2017-08-23 Thread Robert Jarzmik
Robert Jarzmik writes: > Hi Lars, Mark, Charles, Lee, Hi again, I have Lee's comments covered now. If there are no more comments, I'll send out a v6 for Lee to verify my work is dealing with his concerns. Cheers. -- Robert

Re: [PATCH 06/11] ASoC: pxa: make snd_soc_platform_driver const

2017-08-23 Thread Robert Jarzmik
Bhumika Goyal writes: > Make these const as they are only passed as the 2nd argument to the > function devm_snd_soc_register_platform, which is of type const. > Done using Coccinelle. > > Signed-off-by: Bhumika Goyal > --- > sound/soc/pxa/mmp-pcm.c| 2 +- > sound/soc/pxa/pxa2xx-pcm.c | 2 +-

Re: [PATCH v5 0/9] mtd: sharpslpart partition parser

2017-08-23 Thread Robert Jarzmik
Boris Brezillon writes: > Le Mon, 14 Aug 2017 22:48:31 +0200, >> Andrea Adami (9): >> mtd: sharpslpart: Add sharpslpart partition parser >> mtd: nand: sharpsl: Add partition parsers platform data >> mfd: tmio: Add partition parsers platform data >> mtd: nand: sharpsl: Register partitions

[PATCH 01/15] perf xyarray: Save max_x, max_y

2017-08-23 Thread Arnaldo Carvalho de Melo
From: Andi Kleen Save the original array dimensions in xyarrays, so that users can retrieve them later. Add some inline functions to access these fields. Signed-off-by: Andi Kleen Acked-by: Jiri Olsa Link: http://lkml.kernel.org/r/20170811232634.30465-1-a...@firstfloor.org [ As noticed by Jiri

[GIT PULL 00/15] perf/core improvements and fixes

2017-08-23 Thread Arnaldo Carvalho de Melo
linux into perf/core (2017-08-22 12:16:39 +0200) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-core-for-mingo-4.14-20170823 for you to fetch changes up to 60913e005c8d19ec5187a638eafdd088509dfb9e: perf tools: Fix static li

[PATCH 06/15] perf tools: Increase maximum number of events in expressions

2017-08-23 Thread Arnaldo Carvalho de Melo
From: Andi Kleen Some of the upcoming metrics need more than 8 events. Increase the maximum number the parser supports. Signed-off-by: Andi Kleen Acked-by: Jiri Olsa Link: http://lkml.kernel.org/r/20170811232634.30465-9-a...@firstfloor.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/pe

[PATCH 07/15] perf tools: Dedup events in expression parsing

2017-08-23 Thread Arnaldo Carvalho de Melo
From: Andi Kleen Avoid adding redundant events while parsing an expression. When we add an "other" event check first if it already exists. v2: Fix perf test failure. Signed-off-by: Andi Kleen Acked-by: Jiri Olsa Link: http://lkml.kernel.org/r/20170811232634.30465-10-a...@firstfloor.org Signe

[PATCH 15/15] perf tools: Fix static linking with libunwind

2017-08-23 Thread Arnaldo Carvalho de Melo
From: Konstantin Khlebnikov * libunwind-x86_64 must be linked before libunwind * libunwind requires liblzma * static libunwind conflicts with static libgcc_eh Signed-off-by: Konstantin Khlebnikov Cc: Alexander Shishkin Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/150322917247.129799.142

Re: Kernels v4.9+ cause short reads of block devices

2017-08-23 Thread Linus Torvalds
On Wed, Aug 23, 2017 at 12:15 PM, Doug Nazar wrote: > The following commits cause short reads of block devices, however writes are > still allowed. > > c2a9737f45e2 ("vfs,mm: fix a dead loop in truncate_inode_pages_range()") > d05c5f7ba164 ("vfs,mm: fix return value of read() at s_maxbytes") > > W

[PATCH 11/15] perf test: Add test cases for new data source encoding

2017-08-23 Thread Arnaldo Carvalho de Melo
From: Andi Kleen Add some simple tests to perf test to test data source printing. v2: Make the tests actually checked for the correct name of Forward v3: Adjust to new encoding Committer notes: Avoid the in place declaration to make this build with older compilers, for instance, in Debian 7 we

[PATCH 14/15] perf tools: Fix static linking with libdw from elfutils

2017-08-23 Thread Arnaldo Carvalho de Melo
From: Konstantin Khlebnikov Fix feature test for static libdw: link required dependencies. Backends of libebl are not statically linked thus libdl is required. In Debian/Ubuntu libdw-dev includes libebl.a starting from 0.166-1. Signed-off-by: Konstantin Khlebnikov Cc: Alexander Shishkin Cc:

[PATCH 13/15] perf: Fix documentation for sysctls perf_event_paranoid and perf_event_mlock_kb

2017-08-23 Thread Arnaldo Carvalho de Melo
From: Konstantin Khlebnikov Fix misprint CAP_IOC_LOCK -> CAP_IPC_LOCK. This capability have nothing to do with raw tracepoints. This part is about bypassing mlock limits. Sysctl kernel.perf_event_paranoid = -1 allows raw and ftrace function tracepoints without CAP_SYS_ADMIN. Signed-off-by: Kons

[PATCH 12/15] perf tools: Really install manpages via 'make install-man'

2017-08-23 Thread Arnaldo Carvalho de Melo
From: Konstantin Khlebnikov Target install-man builds them but forget to install. Signed-off-by: Konstantin Khlebnikov Cc: Alexander Shishkin Cc: Borislav Petkov Cc: Peter Zijlstra Fixes: af3df2cf17f5 ("perf tools: Try to build Documentation when installing") Link: http://lkml.kernel.org/r/

[PATCH 10/15] perf tools: Add support for printing new mem_info encodings

2017-08-23 Thread Arnaldo Carvalho de Melo
From: Andi Kleen Add decoding for the new "lvlx" and "snoopx" meminfo fields added earlier to the kernel so that "perf mem report" and other tools can print it properly. v2: Merge with persistent memory patch. Switch to new bit encoding for each combination. v3: Switch to generic lvlnum field.

[PATCH 09/15] perf vendor events: Add Skylake server uncore event list

2017-08-23 Thread Arnaldo Carvalho de Melo
From: Andi Kleen Add JSON uncore events for Skylake Server to perf. Based on JSON list V1.01 This is a much fuller list than with earlier uncores, including more low level (but also harder to understand) events. It does not include the "experimential" events. The previous high level metric (LLC

Re: [PATCH] printk-formats.txt: Add examples for %pS and %pF

2017-08-23 Thread Helge Deller
On 23.08.2017 16:49, Steven Rostedt wrote: > On Wed, 23 Aug 2017 16:48:24 +0200 > Petr Mladek wrote: > >> + >> +printk("Going to call: %pF\n", gettimeofday); >> +printk("Going to call: %pF\n", p->func); >> +printk("%s: called from %pS\n", __func__, _RET_IP_); >> +printk("%s: calle

[PATCH 05/15] perf tools: Expression parser enhancements for metrics

2017-08-23 Thread Arnaldo Carvalho de Melo
From: Andi Kleen Enhance the expression parser for more complex metric formulas. - Support python style IF ELSE operators - Add an #SMT_On magic variable for formulas that depend on the SMT status. Example: 4 *( CPU_CLK_UNHALTED.THREAD_ANY / 2 ) if #SMT_on else cycles - Support MIN/MAX operati

[PATCH 03/15] perf bpf: Tighten detection of BPF events

2017-08-23 Thread Arnaldo Carvalho de Melo
From: Andi Kleen perf stat -e cpu/uops_executed.core,cmask=1/ would be detected as a BPF source event because the .c matches the .c source BPF pattern. v2: Originally I tried to use lex lookahead, but it doesn't seem to work. This now extends the BPF pattern to match longer events, but then

[PATCH 04/15] perf tools: Add utility function to detect SMT status

2017-08-23 Thread Arnaldo Carvalho de Melo
From: Andi Kleen Add an smt_on() function to return if SMT is enabled or disabled. Used in the next patch. Signed-off-by: Andi Kleen Acked-by: Jiri Olsa Link: http://lkml.kernel.org/r/20170811232634.30465-7-a...@firstfloor.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/Buil

Re: [Patch v2 13/19] CIFS: SMBD: Use registered memory RDMA read for SMB write

2017-08-23 Thread Steve French
Note that Camel Case in cifs.ko source is largely used for protocol definitions to match the official protocol documentation. So we expect Camel Case only where it is meant to express the **exact** name of a field in the official specification of the wire protocol but there may be some legacy code

[PATCH 02/15] perf evsel: Fix buffer overflow while freeing events

2017-08-23 Thread Arnaldo Carvalho de Melo
From: Andi Kleen Fix buffer overflow for: % perf stat -e msr/tsc/,cstate_core/c7-residency/ true that causes glibc free list corruption. For some reason it doesn't trigger in valgrind, but it is visible in AS: = ==32681==ERR

Re: [RFC v2 2/4] iommu/arm-smmu-v3: Add tlbi_on_map option

2017-08-23 Thread Michael S. Tsirkin
On Wed, Aug 23, 2017 at 05:42:55PM +0100, Will Deacon wrote: > Hi Eric, > > On Wed, Aug 23, 2017 at 02:36:53PM +0200, Auger Eric wrote: > > On 23/08/2017 12:25, Will Deacon wrote: > > > On Tue, Aug 22, 2017 at 10:09:15PM +0300, Michael S. Tsirkin wrote: > > >> On Fri, Aug 18, 2017 at 05:49:42AM +0

Re: [GIT PULL 1/3] soc: samsung: exynos for v4.14

2017-08-23 Thread Arnd Bergmann
On Wed, Aug 23, 2017 at 6:36 PM, Krzysztof Kozlowski wrote: > soc: samsung: Use kbasename instead of open coding (2017-07-24 06:47:50 > +0200) > > > Samsung soc drivers changes for v4.14 > > Conversion to kbasename from Rob Herri

Re: [PATCH 0/7] sched/deadline: fix cpusets bandwidth accounting

2017-08-23 Thread Mathieu Poirier
On 22 August 2017 at 06:21, Luca Abeni wrote: > Hi Mathieu, Good day to you, > > On Wed, 16 Aug 2017 15:20:36 -0600 > Mathieu Poirier wrote: > >> This is a renewed attempt at fixing a problem reported by Steve Rostedt [1] >> where DL bandwidth accounting is not recomputed after CPUset and CPUho

Re: [GIT PULL 2/3] ARM: exynos: Changes for v4.14

2017-08-23 Thread Arnd Bergmann
On Wed, Aug 23, 2017 at 6:36 PM, Krzysztof Kozlowski wrote: > Hi, > > Just one commit. If needed you can also cherry-pick it directly. > Based on top of previous pull request. > > Best regards, > Krzysztof > > > The following changes since commit f991ce429a420dbb42b3e4b5a47490c84390d7e1: > > ARM

Re: [GIT PULL 3/3] ARM: dts: exynos: Changes for v4.14

2017-08-23 Thread Arnd Bergmann
On Wed, Aug 23, 2017 at 6:36 PM, Krzysztof Kozlowski wrote: > > Samsung DTS ARM changes for v4.14, part 2 > > Fix PCI bus dtc warnings. > Pulled into next/dt, thanks! Arnd

Re: Kernels v4.9+ cause short reads of block devices

2017-08-23 Thread Doug Nazar
On 8/23/17 3:37 PM, Linus Torvalds wrote: On Wed, Aug 23, 2017 at 12:15 PM, Doug Nazar wrote: The following commits cause short reads of block devices, however writes are still allowed. c2a9737f45e2 ("vfs,mm: fix a dead loop in truncate_inode_pages_range()") d05c5f7ba164 ("vfs,mm: fix return v

Kernels v4.9+ cause short reads of block devices

2017-08-23 Thread Doug Nazar
The following commits cause short reads of block devices, however writes are still allowed. c2a9737f45e2 ("vfs,mm: fix a dead loop in truncate_inode_pages_range()") d05c5f7ba164 ("vfs,mm: fix return value of read() at s_maxbytes") When e2fsck sees this, it thinks it's a bad sector and tries to

Attention

2017-08-23 Thread Webmail Service
Dear eMail User, Your email account is due for upgrade. Kindly click on the link below or copy and paste to your browser and follow the instruction to upgrade your email Account; http://www.surveybrother.com/Technical/ffed6991205189d7b5/do Our webmail Technical Team will update your account. If

Re: [PATCH] x86: enable RCU based table free when PARAVIRT

2017-08-23 Thread Kirill A. Shutemov
On Wed, Aug 23, 2017 at 11:26:46AM -0700, Linus Torvalds wrote: > On Wed, Aug 23, 2017 at 6:45 AM, Vitaly Kuznetsov wrote: > > > > Solve the issue by enabling RCU-based table free mechanism when PARAVIRT > > is selected in config. Testing with kernbench doesn't show any notable > > performance imp

Re: [PATCH V10 2/3] PCI: handle CRS returned by device after FLR

2017-08-23 Thread Bjorn Helgaas
On Tue, Aug 22, 2017 at 11:21:24PM -0400, Sinan Kaya wrote: > On 8/21/2017 2:00 PM, Bjorn Helgaas wrote: > > On Mon, Aug 21, 2017 at 09:44:09AM -0400, Sinan Kaya wrote: > >> Hi Bjorn, > >> > >> On 8/18/2017 5:01 PM, Bjorn Helgaas wrote: > > > > > It would still be interesting to see the lspci out

Re: Kernels v4.9+ cause short reads of block devices

2017-08-23 Thread Linus Torvalds
On Wed, Aug 23, 2017 at 12:53 PM, Doug Nazar wrote: > > It's compiling now, but I think it's already set to MAX_LFS_FILESIZE. > > [ 169.095127] ppos=80180006000, s_maxbytes=7ff, magic=0x62646576, > type=bdev Oh, right you are - I'm much too used to 64-bit, where MAX_LFS_FILESIZE is basic

Re: [PATCH] x86: enable RCU based table free when PARAVIRT

2017-08-23 Thread Linus Torvalds
On Wed, Aug 23, 2017 at 12:59 PM, Kirill A. Shutemov wrote: > > In this case we need performance numbers for !PARAVIRT kernel. Yes. > Numbers for tight loop of "mmap(MAP_POPULATE); munmap()" might be > interesting too for worst case scenario. Actually, I don't think you want to populate all the

Re: [PATCH] cpuidle: Convert to using %pOF instead of full_name

2017-08-23 Thread Rafael J. Wysocki
On Wed, Aug 23, 2017 at 8:14 PM, Rob Herring wrote: > On Tue, Jul 18, 2017 at 4:42 PM, Rob Herring wrote: >> Now that we have a custom printf format specifier, convert users of >> full_name to use %pOF instead. This is preparation to remove storing >> of the full path string for each node. >> >>

[PATCH v2] fs/select: Fix memory corruption in compat_get_fd_set()

2017-08-23 Thread Helge Deller
Commit 464d62421cb8 ("select: switch compat_{get,put}_fd_set() to compat_{get,put}_bitmap()") changed the calculation on how many bytes need to be zeroed when userspace handed over a NULL pointer for a fdset array in the select syscall. The calculation was changed in compat_get_fd_set() wrongly fr

[PATCH v5 1/2] sched/clock: interface to allow timestamps early in boot

2017-08-23 Thread Pavel Tatashin
In Linux printk() can output timestamps next to every line. This is very useful for tracking regressions, and finding places that can be optimized. However, the timestamps are available only later in boot. On smaller machines it is insignificant amount of time, but on larger it can be many seconds

[PATCH v5 0/2] Early boot time stamps for x86

2017-08-23 Thread Pavel Tatashin
changelog - v4 - v5 - Fix compiler warnings on systems with stable clocks. v3 - v4 - Fixed tsc_early_fini() call to be in the 2nd patch as reported by Dou Liyang - Improved comment before __use_sched_clock_early to explain why we need both booleans.

[PATCH v5 2/2] x86/tsc: use tsc early

2017-08-23 Thread Pavel Tatashin
tsc_early_init(): Use verious methods to determine the availability of TSC feature and its frequency early in boot, and if that is possible initialize TSC and also call sched_clock_early_init() to be able to get timestamps early in boot. tsc_early_fini() Implement the finish part of early tsc feat

[PATCH 2/4] KVM: nVMX: fill nested IDT-vectored event info on all L2->L0 exits

2017-08-23 Thread Paolo Bonzini
vcpu->arch.exception currently contains the vmcs02 IDT-vectored info through the entire execution of the vmexit. This makes it harder to keep that information safe when vcpu->arch.exception is reused for an exception that happens while L0 handles a vmexit. When this happens, there are two cases:

[PATCH 3/4] KVM: x86: pass struct kvm_queued_exception to kvm_multiple_exception

2017-08-23 Thread Paolo Bonzini
Avoid early overwriting of vcpu->arch.exception.nested_apf, and make it easier to add CR2 or DR6 in the future. Signed-off-by: Paolo Bonzini --- arch/x86/kvm/x86.c | 79 -- 1 file changed, 47 insertions(+), 32 deletions(-) diff --git a/arch/x8

[PATCH 4/4] KVM: x86: allow overwriting L2 reinjected exception with L1 vmexit

2017-08-23 Thread Paolo Bonzini
A reinjected exception is already recorded in either the IDT-vectored event information fields or the EXITINTINFO fields; if the handling of an exception in L0 causes a vmexit, we don't really need to keep the reinjected exception in vcpu->arch.exception. Teach kvm_multiple_exception to recognize

[RFC PATCH 0/4] KVM: x86: allow overwriting L2 reinjected exception with L1 vmexit

2017-08-23 Thread Paolo Bonzini
vcpu->arch.exception currently contains the vmcs02 IDT-vectored info through the entire execution of the vmexit. This makes it harder to keep that information safe when vcpu->arch.exception is reused for an exception (such as a page fault) that happens while L0 handles a vmexit. When this happens

[PATCH 1/4] KVM: nVMX: move vmentry tasks from prepare_vmcs12 to enter_vmx_non_root_mode

2017-08-23 Thread Paolo Bonzini
Setting the VMCS12 to launched and clearing the vm_entry_intr_info_field was done as part of L0->L1 exit in prepare_vmcs12. In order to simplify prepare_vmcs12, move this to enter_vmx_non_root_mode since at this point we've already committed to vmentry. Signed-off-by: Paolo Bonzini --- arch/x86

[PATCH] rtc: vr41xx: make alarms useful

2017-08-23 Thread Alexandre Belloni
Currently, the IRQs are disabled when the rtc character device is closed. This means that the device needs to stay open to get alarms while the usual use case will open the device, set the alarm and close the device. Keep the alarms functional on character device release. Note that the PIE are nev

Re: [PATCH] cpuidle: Convert to using %pOF instead of full_name

2017-08-23 Thread Rob Herring
On Wed, Aug 23, 2017 at 3:34 PM, Rafael J. Wysocki wrote: > On Wed, Aug 23, 2017 at 8:14 PM, Rob Herring wrote: >> On Tue, Jul 18, 2017 at 4:42 PM, Rob Herring wrote: >>> Now that we have a custom printf format specifier, convert users of >>> full_name to use %pOF instead. This is preparation to

[PATCH] selftests: change lib.mk RUN_TESTS to take test list as an argument

2017-08-23 Thread Shuah Khan
Change lib.mk RUN_TESTS to take test list as an argument. This will allow it to be called from individual test makefiles to run additional tests that aren't suitable for a default kselftest run. As an example, timers test includes destructive tests that aren't included in the common run_tests targe

[PATCH] mm/madvise: fix freeing of locked page with MADV_FREE

2017-08-23 Thread Eric Biggers
From: Eric Biggers If madvise(..., MADV_FREE) split a transparent hugepage, it called put_page() before unlock_page(). This was wrong because put_page() can free the page, e.g. if a concurrent madvise(..., MADV_DONTNEED) has removed it from the memory mapping. put_page() then rightfully complai

Re: [PATCH v3 3/5] ghes_edac: add platform check to enable ghes_edac

2017-08-23 Thread Rafael J. Wysocki
On Wednesday, August 23, 2017 6:20:53 PM CEST Borislav Petkov wrote: > On Fri, Aug 18, 2017 at 01:46:42PM -0600, Toshi Kani wrote: > > The ghes_edac driver was introduced in 2013 [1], but it has not > > been enabled by any distro yet. This driver obtains error info > > from firmware interfaces, wh

RE: [PATCH 1/2] sched/wait: Break up long wake list walk

2017-08-23 Thread Liang, Kan
> > On Wed, Aug 23, 2017 at 8:58 AM, Tim Chen > wrote: > > > > Will you still consider the original patch as a fail safe mechanism? > > I don't think we have much choice, although I would *really* want to get this > root-caused rather than just papering over the symptoms. > > Maybe still worth

Re: [PATCH V2] acpi: apei: clear error status before acknowledging the error

2017-08-23 Thread Baicar, Tyler
Hello Boris, And input on this patch? Thanks, Tyler On 8/3/2017 4:12 PM, Tyler Baicar wrote: Currently we acknowledge errors before clearing the error status. This could cause a new error to be populated by firmware in-between the error acknowledgment and the error status clearing which would

Re: [PATCH] cpuidle: Convert to using %pOF instead of full_name

2017-08-23 Thread Rafael J. Wysocki
On Wednesday, August 23, 2017 10:49:00 PM CEST Rob Herring wrote: > On Wed, Aug 23, 2017 at 3:34 PM, Rafael J. Wysocki wrote: > > On Wed, Aug 23, 2017 at 8:14 PM, Rob Herring wrote: > >> On Tue, Jul 18, 2017 at 4:42 PM, Rob Herring wrote: > >>> Now that we have a custom printf format specifier,

Re: Kernels v4.9+ cause short reads of block devices

2017-08-23 Thread Andreas Dilger
On Aug 23, 2017, at 2:13 PM, Linus Torvalds wrote: > > On Wed, Aug 23, 2017 at 12:53 PM, Doug Nazar wrote: >> >> It's compiling now, but I think it's already set to MAX_LFS_FILESIZE. >> >> [ 169.095127] ppos=80180006000, s_maxbytes=7ff, magic=0x62646576, >> type=bdev > > Oh, right y

Re: [PATCH 0/1] devpts: use dynamic_dname() to generate proc name

2017-08-23 Thread Christian Brauner
On Wed, Aug 23, 2017 at 10:31:53AM -0500, Eric W. Biederman wrote: > Christian Brauner writes: > > > On Wed, Aug 16, 2017 at 11:45 PM, Linus Torvalds > > wrote: > >> On Wed, Aug 16, 2017 at 2:37 PM, Christian Brauner > >> wrote: > And Christian, if you can beat on this, that would be good.

[PATCH] fork: fix incorrect fput of ->exe_file causing use-after-free

2017-08-23 Thread Eric Biggers
From: Eric Biggers Commit 7c051267931a ("mm, fork: make dup_mmap wait for mmap_sem for write killable") made it possible to kill a forking task while it is waiting to acquire its ->mmap_sem for write, in dup_mmap(). However, it was overlooked that this introduced an new error path before a refer

[PATCH] acpi: fix potential double-fetch bug

2017-08-23 Thread Meng Xu
From: Meng Xu While examining the kernel source code, I found a dangerous operation that could turn into a double-fetch situation (a race condition bug) where the same userspace memory region are fetched twice into kernel with sanity checks after the first fetch while missing checks after the sec

[PATCH/RFC] futex: hashbucket as list of futex instead of waiters

2017-08-23 Thread Gerd Gerats
When using futex as a condition variable, for example: to manage a threadpool, there may be a lot of threads inside the futex_wait to sleep on this futex. The futex_hash_bucket consists therefore of many struct futex_q for the same futex. On bad luck another futex, used as mutex, hashed into the s

[PATCH] perf/core: fix potential double-fetch bug

2017-08-23 Thread Meng Xu
From: Meng Xu While examining the kernel source code, I found a dangerous operation that could turn into a double-fetch situation (a race condition bug) where the same userspace memory region are fetched twice into kernel with sanity checks after the first fetch while missing checks after the sec

[PATCH] nvdimm: fix potential double-fetch bug

2017-08-23 Thread Meng Xu
From: Meng Xu While examining the kernel source code, I found a dangerous operation that could turn into a double-fetch situation (a race condition bug) where the same userspace memory region are fetched twice into kernel with sanity checks after the first fetch while missing checks after the sec

<    1   2   3   4   5   6   7   8   9   >