Re: [PATCH v2 14/14] perf tools: Move subcommand framework and related utils to libapi

2015-12-08 Thread Arnaldo Carvalho de Melo
Em Tue, Dec 08, 2015 at 12:49:53PM -0600, Josh Poimboeuf escreveu: > On Tue, Dec 08, 2015 at 07:16:26PM +0100, Jiri Olsa wrote: > > On Mon, Dec 07, 2015 at 10:21:52PM -0600, Josh Poimboeuf wrote: > > > The perf subcommand framework is needed for other tools. Move > > > parse-options.c and its depe

Applied "regmap: add 64-bit mode support" to the regmap tree

2015-12-08 Thread Mark Brown
The patch regmap: add 64-bit mode support has been applied to the regmap tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during

Applied "regulator: pv88090: new regulator driver" to the regulator tree

2015-12-08 Thread Mark Brown
The patch regulator: pv88090: new regulator driver has been applied to the regulator tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent

Applied "regmap: mmio: remove the useless code" to the regmap tree

2015-12-08 Thread Mark Brown
The patch regmap: mmio: remove the useless code has been applied to the regmap tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus

Applied "regmap: mmio: Add regmap_mmio_get_min_stride" to the regmap tree

2015-12-08 Thread Mark Brown
The patch regmap: mmio: Add regmap_mmio_get_min_stride has been applied to the regmap tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to

Re: [PATCH] nvme: fix another 32-bit build warning

2015-12-08 Thread Jens Axboe
On 12/08/2015 08:22 AM, Arnd Bergmann wrote: The nvme_user_cmd function was recently moved around from one file to another, which made a warning reappear that I had fixed before at some point: drivers/nvme/host/core.c: In function 'nvme_user_cmd': drivers/nvme/host/core.c:424:4: warning: cast to

Re: use-after-free in __perf_install_in_context

2015-12-08 Thread Dmitry Vyukov
On Tue, Dec 8, 2015 at 5:44 PM, Peter Zijlstra wrote: > On Mon, Dec 07, 2015 at 05:09:21PM +0100, Dmitry Vyukov wrote: >> If your audit does not give any results, can you give me a patch that >> prints rcu callback submission stacks in KASAN reports? > > Just because my brain is fried for today, I

Re: [PATCH v2 14/14] perf tools: Move subcommand framework and related utils to libapi

2015-12-08 Thread Josh Poimboeuf
On Tue, Dec 08, 2015 at 04:09:31PM -0300, Arnaldo Carvalho de Melo wrote: > Em Tue, Dec 08, 2015 at 12:49:53PM -0600, Josh Poimboeuf escreveu: > > On Tue, Dec 08, 2015 at 07:16:26PM +0100, Jiri Olsa wrote: > > > On Mon, Dec 07, 2015 at 10:21:52PM -0600, Josh Poimboeuf wrote: > > > > The perf subcom

Re: [PATCH v7 0/5] mfd: tps65912: Driver rewrite with DT support

2015-12-08 Thread Mark Brown
On Mon, Dec 07, 2015 at 01:58:47PM -0600, Andrew F. Davis wrote: > As all of this driver should be taken though the MFD tree how > can this gpiolib change be handled? If we have gpio.parent it > will not build on MFD, with gpio.dev it will fail to build when > the changes are merged from the gpio

[PATCH v3 0/7] DAX fsync/msync support

2015-12-08 Thread Ross Zwisler
This patch series adds a slimmed down version of fsync/msync support to DAX. The major change versus v2 of this patch series is that we no longer remove DAX entries from the radix tree during fsync/msync calls. Instead the list of DAX entries in the radix tree grows for the lifetime of the mappin

[PATCH v3 4/7] dax: add support for fsync/sync

2015-12-08 Thread Ross Zwisler
To properly handle fsync/msync in an efficient way DAX needs to track dirty pages so it is able to flush them durably to media on demand. The tracking of dirty pages is done via the radix tree in struct address_space. This radix tree is already used by the page writeback infrastructure for tracki

[PATCH v3 7/7] xfs: call dax_pfn_mkwrite() for DAX fsync/msync

2015-12-08 Thread Ross Zwisler
To properly support the new DAX fsync/msync infrastructure filesystems need to call dax_pfn_mkwrite() so that DAX can track when user pages are dirtied. Signed-off-by: Ross Zwisler --- fs/xfs/xfs_file.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/fs/xfs/xfs_file.c

[PATCH v3 6/7] ext4: call dax_pfn_mkwrite() for DAX fsync/msync

2015-12-08 Thread Ross Zwisler
To properly support the new DAX fsync/msync infrastructure filesystems need to call dax_pfn_mkwrite() so that DAX can track when user pages are dirtied. Signed-off-by: Ross Zwisler --- fs/ext4/file.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fs/ext4/file.c b/fs/ext4/

Re: Ques: [kernel/time/*] Is there any disadvantage in using usleep_range for more than 20ms delay ?

2015-12-08 Thread Aniroop Mathur
On Tue, Dec 8, 2015 at 2:33 PM, Clemens Ladisch wrote: > Aniroop Mathur wrote: >> As in the kernel documentation, it is mentioned to use msleep for >> 10ms+ delay, I am confused whether there would be any disadvantage in >> using usleep_range for higher delays values because normally drivers >> ha

[PATCH v3 3/7] mm: add find_get_entries_tag()

2015-12-08 Thread Ross Zwisler
Add find_get_entries_tag() to the family of functions that include find_get_entries(), find_get_pages() and find_get_pages_tag(). This is needed for DAX dirty page handling because we need a list of both page offsets and radix tree entries ('indices' and 'entries' in this function) that are marked

[PATCH v3 2/7] dax: support dirty DAX entries in radix tree

2015-12-08 Thread Ross Zwisler
Add support for tracking dirty DAX entries in the struct address_space radix tree. This tree is already used for dirty page writeback, and it already supports the use of exceptional (non struct page*) entries. In order to properly track dirty DAX pages we will insert new exceptional entries into

[PATCH v3 5/7] ext2: call dax_pfn_mkwrite() for DAX fsync/msync

2015-12-08 Thread Ross Zwisler
To properly support the new DAX fsync/msync infrastructure filesystems need to call dax_pfn_mkwrite() so that DAX can track when user pages are dirtied. Signed-off-by: Ross Zwisler --- fs/ext2/file.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fs/ext2/file.c b/fs/ext2/

[PATCH v3 1/7] pmem: add wb_cache_pmem() to the PMEM API

2015-12-08 Thread Ross Zwisler
The function __arch_wb_cache_pmem() was already an internal implementation detail of the x86 PMEM API, but this functionality needs to be exported as part of the general PMEM API to handle the fsync/msync case for DAX mmaps. One thing worth noting is that we really do want this to be part of the P

Re: [PATCH 02/10] clk: ti: Add few dm814x clock aliases

2015-12-08 Thread Tero Kristo
On 12/08/2015 06:57 PM, Tony Lindgren wrote: * Tony Lindgren [151201 15:43]: The timer clock aliases are needed early on dm814x. Let's also add the aliases for the interconnects and MMC. Cc: Michael Turquette Cc: Stephen Boyd Cc: Tero Kristo Signed-off-by: Tony Lindgren Anybody from the

Re: [PATCH 3/7] cgroup: introduce cgroup namespaces

2015-12-08 Thread Serge E. Hallyn
On Tue, Dec 08, 2015 at 11:04:53AM -0500, Tejun Heo wrote: > On Mon, Dec 07, 2015 at 05:06:18PM -0600, serge.hal...@ubuntu.com wrote: > > static const char *proc_ns_follow_link(struct dentry *dentry, void > > **cookie) > > diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h > > index 2b3

Re: [PATCH v2 14/14] perf tools: Move subcommand framework and related utils to libapi

2015-12-08 Thread Arnaldo Carvalho de Melo
Em Tue, Dec 08, 2015 at 01:17:00PM -0600, Josh Poimboeuf escreveu: > On Tue, Dec 08, 2015 at 04:09:31PM -0300, Arnaldo Carvalho de Melo wrote: > > Em Tue, Dec 08, 2015 at 12:49:53PM -0600, Josh Poimboeuf escreveu: > > > On Tue, Dec 08, 2015 at 07:16:26PM +0100, Jiri Olsa wrote: > > > > On Mon, Dec

Re: [PATCH 1/3] ser_gigaset: fix up NULL checks

2015-12-08 Thread Paul Bolle
Hi Tilman, On di, 2015-12-08 at 12:00 +0100, Tilman Schmidt wrote: > Commit f34d7a5b changed tty->driver to tty->ops but left NULL checks (This makes checkpatch complain, but the correct commit description style is used in the Fixes: tag, so it's not a big deal.) > for tty->driver untouched. Fix

Re: [PATCH 3/7] cgroup: introduce cgroup namespaces

2015-12-08 Thread Tejun Heo
Hello, Serge. On Tue, Dec 08, 2015 at 01:34:31PM -0600, Serge E. Hallyn wrote: > > I'd prefer collecting all ns related declarations in a single place. > > I can group some of them, but free_cgroup_ns needs the > cgroup_namespace definition, put_cgroup_ns() needs free_cgroup_ns(), > and free_cgro

[BUG REPORT] 4.4-rc4 Fritzes at times

2015-12-08 Thread jeff merkey
Can't get any trace or dump of this problem, but once and while (after running builds) the system fritzes and claims it cannot load anything and acts like its OOM. It's like the paging is fritzed or something. It's only happened twice and only after the system was running concurrent linux builds

Re: [PATCH 3/7] cgroup: introduce cgroup namespaces

2015-12-08 Thread Serge E. Hallyn
On Tue, Dec 08, 2015 at 02:46:00PM -0500, Tejun Heo wrote: > Hello, Serge. > > On Tue, Dec 08, 2015 at 01:34:31PM -0600, Serge E. Hallyn wrote: > > > I'd prefer collecting all ns related declarations in a single place. > > > > I can group some of them, but free_cgroup_ns needs the > > cgroup_name

Re: [PATCH] ACPI: Add phylib support code for mdio

2015-12-08 Thread Al Stone
On 12/03/2015 03:47 AM, Graeme Gregory wrote: > On Thu, Dec 03, 2015 at 09:54:43AM +0800, yankejian wrote: >> Add support for getting the PHY devices on an MDIO bus by ACPI. >> Currently many of the ethernet drivers are open coding a solution >> for reading data out of ACPI to find the correct PHY

Re: use-after-free in __perf_install_in_context

2015-12-08 Thread Alexei Starovoitov
On Tue, Dec 08, 2015 at 07:35:20PM +0100, Dmitry Vyukov wrote: > On Tue, Dec 8, 2015 at 7:05 PM, Alexei Starovoitov > wrote: > > On Tue, Dec 08, 2015 at 06:56:23PM +0100, Dmitry Vyukov wrote: > >> On Tue, Dec 8, 2015 at 6:54 PM, Alexei Starovoitov > >> wrote: > >> > On Tue, Dec 08, 2015 at 05:12:

[RFC V3] Add gup trace points support

2015-12-08 Thread Yang Shi
v3: * Adopted suggestion from Dave Hansen to move the gup header include to the last * Adopted comments from Steven: - Use DECLARE_EVENT_CLASS and DEFINE_EVENT - Just keep necessary TP_ARGS * Moved archtichture specific fall-backable fast version trace point after the do while loop since it

[PATCH v3 7/7] sparc64: mm/gup: add gup trace points

2015-12-08 Thread Yang Shi
Cc: "David S. Miller" Cc: sparcli...@vger.kernel.org Signed-off-by: Yang Shi --- arch/sparc/mm/gup.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/sparc/mm/gup.c b/arch/sparc/mm/gup.c index 2e5c4fc..d364cc6 100644 --- a/arch/sparc/mm/gup.c +++ b/arch/sparc/mm/gup.c @@ -12,6 +12

[PATCH v3 4/7] mips: mm/gup: add gup trace points

2015-12-08 Thread Yang Shi
Cc: linux-m...@linux-mips.org Acked-by: Ralf Baechle Signed-off-by: Yang Shi --- arch/mips/mm/gup.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/mips/mm/gup.c b/arch/mips/mm/gup.c index 349995d..2107499 100644 --- a/arch/mips/mm/gup.c +++ b/arch/mips/mm/gup.c @@ -15,6 +15,9 @@

[PATCH v3 1/7] trace/events: Add gup trace events

2015-12-08 Thread Yang Shi
page-faults events record the invoke to handle_mm_fault, but the invoke may come from do_page_fault or gup. In some use cases, the finer event count mey be needed, so add trace events support for: __get_user_pages __get_user_pages_fast fixup_user_fault Signed-off-by: Yang Shi --- include/trace/

[PATCH v3 6/7] sh: mm/gup: add gup trace points

2015-12-08 Thread Yang Shi
Cc: linux...@vger.kernel.org Signed-off-by: Yang Shi --- arch/sh/mm/gup.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/sh/mm/gup.c b/arch/sh/mm/gup.c index e7af6a6..d4c9a6e 100644 --- a/arch/sh/mm/gup.c +++ b/arch/sh/mm/gup.c @@ -14,6 +14,9 @@ #include #include +#define C

[PATCH v3 2/7] mm/gup: add gup trace points

2015-12-08 Thread Yang Shi
For slow version, just add trace point for raw __get_user_pages since all slow variants call it to do the real work finally. Signed-off-by: Yang Shi --- mm/gup.c | 8 1 file changed, 8 insertions(+) diff --git a/mm/gup.c b/mm/gup.c index deafa2c..44f05c9 100644 --- a/mm/gup.c +++ b/mm/

[PATCH v3 5/7] s390: mm/gup: add gup trace points

2015-12-08 Thread Yang Shi
Cc: Martin Schwidefsky Cc: Heiko Carstens Cc: linux-s...@vger.kernel.org Signed-off-by: Yang Shi --- arch/s390/mm/gup.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/s390/mm/gup.c b/arch/s390/mm/gup.c index 12bbf0e..bbd82bf 100644 --- a/arch/s390/mm/gup.c +++ b/arch/s390/mm/gup

[PATCH v3 3/7] x86: mm/gup: add gup trace points

2015-12-08 Thread Yang Shi
Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: x...@kernel.org Signed-off-by: Yang Shi --- arch/x86/mm/gup.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/x86/mm/gup.c b/arch/x86/mm/gup.c index ae9a37b..081f69d 100644 --- a/arch/x86/mm/gup.c +++ b/arch/x86/mm/gu

Re: [PATCH] fix inverted test in __skb_recv_datagram

2015-12-08 Thread Rainer Weikusat
David Miller writes: [...] > Please, in the future, place proper subsystem prefixes in your > Subject lines. In this case, "net: " would have been appropriate > and it wouldn't be the end of the world if you capitalized > your commit header line too. > > I fixed both of these things while insta

Re: [PATCH 02/10] clk: ti: Add few dm814x clock aliases

2015-12-08 Thread Tony Lindgren
* Tero Kristo [151208 11:25]: > On 12/08/2015 06:57 PM, Tony Lindgren wrote: > > > >Anybody from the clock department care to ack this one? > > Sorry been rather busy lately... > > >I'd like to > >get this series into Linux next as it fixes some some issues. > > Yeah looks good to me, don't have

Re: [PATCH V8] ACPI, PCI, irq: support IRQ numbers greater than 256

2015-12-08 Thread Bjorn Helgaas
On Thu, Dec 03, 2015 at 01:58:55PM -0500, Sinan Kaya wrote: > The ACPI compiler uses the extended format when used interrupt numbers > are greater than 15. The extended IRQ is 32 bits according to the ACPI > spec. The code supports parsing the extended interrupt numbers. However, > due to used data

Re: [v9, 6/6] fsl/fman: Add FMan MAC driver

2015-12-08 Thread Andy Fleming
On Thu, Dec 3, 2015 at 1:19 AM, wrote: > From: Igal Liberman > > This patch adds the Ethernet MAC driver supporting the three > different types of MACs: dTSEC, tGEC and mEMAC. > > Signed-off-by: Igal Liberman [...] > + > +MODULE_LICENSE("Dual BSD/GPL"); > + > +MODULE_AUTHOR("Emil Medve "); I

[PATCH v4 2/5] irqdomain: introduce is_fwnode_irqchip helper

2015-12-08 Thread Suravee Suthikulpanit
Since there will be several places checking if fwnode.type is equal FWNODE_IRQCHIP, this patch adds a convenient function for this purpose. Signed-off-by: Suravee Suthikulpanit --- drivers/irqchip/irq-gic.c | 2 +- include/linux/irqdomain.h | 5 + kernel/irq/irqdomain.c| 2 +- 3 files ch

[PATCH v4 5/5] gicv2m: acpi: Introducing GICv2m ACPI support

2015-12-08 Thread Suravee Suthikulpanit
This patch introduces gicv2m_acpi_init(), which uses information in MADT GIC MSI frames structure to initialize GICv2m driver. Signed-off-by: Suravee Suthikulpanit Signed-off-by: Hanjun Guo --- drivers/irqchip/irq-gic-v2m.c | 95 + drivers/irqchip/irq-g

[PATCH v4 0/5] gicv2m: acpi: Add ACPI support for GICv2m MSI

2015-12-08 Thread Suravee Suthikulpanit
This patch series has been forked from the following patch series since it no longer depends on the rest of the patches. [PATCH v4 00/10] ACPI GIC Self-probing, GICv2m and GICv3 support https://lkml.org/lkml/2015/7/29/234 It has been ported to use the newly introduced device fwnode_handle fo

[PATCH v4 4/5] gicv2m: Refactor to prepare for ACPI support

2015-12-08 Thread Suravee Suthikulpanit
This patch replaces the struct device_node with struct fwnode_handle since this structure is common between DT and ACPI. It also refactors gicv2m_init_one() to prepare for ACPI support. There should be no functional changes. Signed-off-by: Suravee Suthikulpanit --- drivers/irqchip/irq-gic-v2m.c

Last Warning

2015-12-08 Thread Webmail Maintenance Team
A DGTFX virus has been detected in your folders. Your email account has to be upgraded to our new Secured DGTFX anti-virus version to prevent damages to our webmail log and your important files.Click your reply tab, Fill the columns below and send back or your email account will be terminated to av

[PATCH v4 3/5] irqdomain: Introduce irq_domain_get_irqchip_fwnode_name helper function

2015-12-08 Thread Suravee Suthikulpanit
This patch adds an accessor function to retrieve struct irqchip_fwid.name. Signed-off-by: Suravee Suthikulpanit --- include/linux/irqdomain.h | 1 + kernel/irq/irqdomain.c| 18 ++ 2 files changed, 19 insertions(+) diff --git a/include/linux/irqdomain.h b/include/linux/irqdo

[PATCH v4 1/5] acpi: pci: Setup MSI domain for ACPI based pci devices

2015-12-08 Thread Suravee Suthikulpanit
This patch introduces an interface for irqchip to register a callback, to provide a way to determine appropriate MSI domain for a pci device. It also introduces pci_host_bridge_acpi_msi_domain(), which returns the MSI domain of the specified PCI host bridge with DOMAIN_BUS_PCI_MSI bus token. Then,

[PATCH] sched: Move sched_entity::avg into separate cache line

2015-12-08 Thread Jiri Olsa
From: root hi, I tried Joe's and Don's c2c tool and it identified a place with cache line contention. There're more that poped up, this one was just too obvious ;-) thanks jirka --- The sched_entity::avg collides with read-mostly sched_entity data. The perf c2c tool showed many read HITM acce

Re: [PATCH v3 2/7] mm/gup: add gup trace points

2015-12-08 Thread Steven Rostedt
On Tue, 8 Dec 2015 11:39:50 -0800 Yang Shi wrote: > For slow version, just add trace point for raw __get_user_pages since all > slow variants call it to do the real work finally. > > Signed-off-by: Yang Shi > --- > mm/gup.c | 8 > 1 file changed, 8 insertions(+) > > diff --git a/mm/

Re: [PATCH 2/2] keys, trusted: seal with a policy

2015-12-08 Thread Jarkko Sakkinen
On Tue, Dec 08, 2015 at 01:01:02PM +0200, Jarkko Sakkinen wrote: > On Tue, Dec 08, 2015 at 09:35:05AM +1100, James Morris wrote: > > On Mon, 7 Dec 2015, Jarkko Sakkinen wrote: > > > > > On Fri, Nov 20, 2015 at 01:34:35PM +1100, James Morris wrote: > > > > On Wed, 18 Nov 2015, Jarkko Sakkinen wrote

Re: [PATCH V6 00/26] Coresight integration with perf

2015-12-08 Thread Mathieu Poirier
On 3 December 2015 at 14:04, Mathieu Poirier wrote: > This patchset aims to integrate configuration and control of > the Coresight tracers with the perf sub-system. > > The goal is to use PMUs to represent tracers and the auxiliary > buffer enhancement to collect processor traces. As such a lot >

Re: [PATCH V6 00/26] Coresight integration with perf

2015-12-08 Thread Mathieu Poirier
On 3 December 2015 at 14:04, Mathieu Poirier wrote: > This patchset aims to integrate configuration and control of > the Coresight tracers with the perf sub-system. > > The goal is to use PMUs to represent tracers and the auxiliary > buffer enhancement to collect processor traces. As such a lot >

Re: [PATCH 1/2] x86: Fix kernel panic when booting with XD disabled in uEFI firmware

2015-12-08 Thread Kees Cook
On Tue, Dec 8, 2015 at 6:19 AM, Borislav Petkov wrote: > On Tue, Dec 08, 2015 at 12:25:57PM +, Matt Fleming wrote: >> On Mon, 07 Dec, at 11:10:43PM, Kosuke Tatsukawa wrote: >> > >> > Thank you pointing that out. >> > >> > linux-4.4-rc3 booted without a problem on a real server even with XD >>

[PATCH] drivers: net: xgene: constify xgene_mac_ops and xgene_port_ops structures

2015-12-08 Thread Julia Lawall
The xgene_mac_ops and xgene_port_ops structures are never modified, so declare them as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/net/ethernet/apm/xgene/xgene_enet_hw.c|4 ++-- drivers/net/ethernet/apm/xgene/xgene_enet_hw.h|4 ++-- drivers/

Re: [PATCH] sched: Move sched_entity::avg into separate cache line

2015-12-08 Thread Arnaldo Carvalho de Melo
Em Tue, Dec 08, 2015 at 09:23:59PM +0100, Jiri Olsa escreveu: > From: root > > hi, > I tried Joe's and Don's c2c tool and it identified > a place with cache line contention. There're more > that poped up, this one was just too obvious ;-) Would be interesting to see output from that tool and how

Re: [PATCH V6 00/26] Coresight integration with perf

2015-12-08 Thread Arnaldo Carvalho de Melo
Em Tue, Dec 08, 2015 at 01:29:00PM -0700, Mathieu Poirier escreveu: > On 3 December 2015 at 14:04, Mathieu Poirier > wrote: > > Arnaldo, Peter and Ingo, > > I would like to queue this work for 4.5 but need your help with > reviewing patches 20 [1], 23 [2], 24 [3], 25 [4] and 26 [5]. > > A "rev

Re: [PATCH v2 1/2] um: Set secure access mode for temporary file

2015-12-08 Thread Tristan Schmelcher
On 6 December 2015 at 09:43, Mickaël Salaün wrote: > Well, I'm concerned to use umask because it is not thread-safe and drivers > may use create_mem_file() in a multi-theaded context. You are right. We should perhaps set the umask to 0700 permanently during process start. But I am not sure if th

Re: [PATCH 28/34] x86: wire up mprotect_key() system call

2015-12-08 Thread Thomas Gleixner
On Tue, 8 Dec 2015, Dave Hansen wrote: > On 12/08/2015 10:44 AM, Thomas Gleixner wrote: > > On Thu, 3 Dec 2015, Dave Hansen wrote: > >> #include > >> diff -puN mm/Kconfig~pkeys-16-x86-mprotect_key mm/Kconfig > >> --- a/mm/Kconfig~pkeys-16-x86-mprotect_key 2015-12-03 16:21:31.114920208 > >> -0800

Re: [PATCH 1/2] x86: Fix kernel panic when booting with XD disabled in uEFI firmware

2015-12-08 Thread H. Peter Anvin
On December 8, 2015 12:30:06 PM PST, Kees Cook wrote: >On Tue, Dec 8, 2015 at 6:19 AM, Borislav Petkov wrote: >> On Tue, Dec 08, 2015 at 12:25:57PM +, Matt Fleming wrote: >>> On Mon, 07 Dec, at 11:10:43PM, Kosuke Tatsukawa wrote: >>> > >>> > Thank you pointing that out. >>> > >>> > linux-4.4-

[PATCH] staging: lustre: add __user attributes to llite/file.c

2015-12-08 Thread Wim de With
This fixes the following sparse warnings: drivers/staging/lustre/lustre/llite/file.c:1310:38:expected void const [noderef] *from drivers/staging/lustre/lustre/llite/file.c:1310:38:got struct ll_recreate_obj * drivers/staging/lustre/lustre/llite/file.c:1328:35: warning: incorrect type in

x86 fpu: command-line parameters broken post-FPU-rewrite

2015-12-08 Thread Dave Hansen
Hey Ingo, We were starting to look at reenabling XSAVES support and tried to use the 'noxsave' and 'noxsaves' kernel command-line options. The rewrite moved the FPU initialization to before we even are parsing command-line options, even the early_param()s. Do you have any preferences on how it g

Re: Ques: [kernel/time/*] Is there any disadvantage in using sleep_range for more than 20ms delay ?

2015-12-08 Thread Thomas Gleixner
On Tue, 8 Dec 2015, Aniroop Mathur wrote: > On Tue, Dec 8, 2015 at 4:18 PM, Thomas Gleixner wrote: > > The initialization process is hardly something critical, so why would > > the delay need to be precise? What's the point of having data 10ms > > earlier? > > As I know, the chip initialisation p

Re: [PATCH] null_blk: Fix error path in module initialization

2015-12-08 Thread Jens Axboe
On 12/08/2015 05:35 AM, Minfei Huang wrote: Ping. Any comment is appreciate. Applied, it is indeed pretty broken after the lightnvm update. I killed the use_lightnvm check before kmem_cache_destroy, that's not needed. -- Jens Axboe -- To unsubscribe from this list: send the line "unsubscri

[PATCH] chelsio: constify cmac_ops structures

2015-12-08 Thread Julia Lawall
The cmac_ops structures are never modified, so declare them as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/net/ethernet/chelsio/cxgb/pm3393.c |2 +- drivers/net/ethernet/chelsio/cxgb/vsc7326.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-)

Re: [PATCH 1/2] x86: Fix kernel panic when booting with XD disabled in uEFI firmware

2015-12-08 Thread Borislav Petkov
On Tue, Dec 08, 2015 at 12:39:14PM -0800, H. Peter Anvin wrote: > Actually I think of it much more as a debug option - being able to > mimic NX-unaware hardware and to track down problems in the field. Considering it can be dangerous when exposed to the user, should we hide it behind a "Kernel Hac

Re: [PATCH 1/2] x86: Fix kernel panic when booting with XD disabled in uEFI firmware

2015-12-08 Thread Borislav Petkov
On Tue, Dec 08, 2015 at 12:30:06PM -0800, Kees Cook wrote: > If we add this for not-nx, I would like to add it for not-rodata too. The W+X thing? I was under the impression we want to fix all those so that the ptdump check doesn't fire anymore. > I've never seen anyone actually use it. I was ask

Re: [PATCH net] bridge: Only call /sbin/bridge-stp for the initial network namespace

2015-12-08 Thread Kees Cook
On Wed, Dec 2, 2015 at 8:50 PM, David Miller wrote: > From: ebied...@xmission.com (Eric W. Biederman) > Date: Mon, 30 Nov 2015 15:38:15 -0600 > >> + if (dev_net(br->dev) == &init_net) > > Please respin this using net_eq() as Hannes pointed out. Sorry if I missed it: this this happen yet? -Ke

Re: [PATCH v3 2/7] mm/gup: add gup trace points

2015-12-08 Thread Shi, Yang
On 12/8/2015 12:25 PM, Steven Rostedt wrote: On Tue, 8 Dec 2015 11:39:50 -0800 Yang Shi wrote: For slow version, just add trace point for raw __get_user_pages since all slow variants call it to do the real work finally. Signed-off-by: Yang Shi --- mm/gup.c | 8 1 file changed, 8

Re: [PATCH v7 7/7] PCI: hv: New paravirtual PCI front-end for Hyper-V VMs

2015-12-08 Thread Thomas Gleixner
On Sat, 5 Dec 2015, ja...@microsoft.com wrote: > From: Jake Oshins > > This patch introduces a new driver which exposes a root PCI bus whenever a > PCI Express device is passed through to a guest VM under Hyper-V. The > device can be single- or multi-function. The interrupts for the devices > ar

Re: [PATCH v7 3/7] PCI: Make it possible to implement a PCI MSI IRQ Domain in a module.

2015-12-08 Thread Thomas Gleixner
On Sat, 5 Dec 2015, ja...@microsoft.com wrote: > From: Jake Oshins > > The Linux kernel already has the concpet of IRQ domain, wherein a > component can expose a set of IRQs which are managed by a particular > interrupt controller chip or other subsystem. The PCI driver exposes > the notion of an

Re: [Xen-devel] [PATCHv1] x86: rtc_cmos platform device requires legacy irqs

2015-12-08 Thread Thomas Gleixner
On Fri, 4 Dec 2015, David Vrabel wrote: > On 04/12/15 14:06, David Vrabel wrote: > > On 03/12/15 10:43, David Vrabel wrote: > >> Adding the rtc platform device when there are no legacy irqs (no > >> legacy PIC) causes a conflict with other devices that end up using the > >> same irq number. > > >

Re: [PATCH v4 1/5] acpi: pci: Setup MSI domain for ACPI based pci devices

2015-12-08 Thread kbuild test robot
Hi Suravee, [auto build test ERROR on tip/irq/core] [also build test ERROR on v4.4-rc4 next-20151208] url: https://github.com/0day-ci/linux/commits/Suravee-Suthikulpanit/gicv2m-acpi-Add-ACPI-support-for-GICv2m-MSI/20151209-042217 config: i386-alldefconfig (attached as .config) reproduce

[PATCH] Staging: unisys: fix potential format string leak

2015-12-08 Thread Kees Cook
Since "name" is always used directly, force "%s" for the kthread format string to avoid any potential format string leaks. Signed-off-by: Kees Cook --- drivers/staging/unisys/visorhba/visorhba_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/unisys/visor

[PATCH] drm/i915: constify intel_dvo_dev_ops structures

2015-12-08 Thread Julia Lawall
The intel_dvo_dev_ops structures are never modified, so declare them as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/gpu/drm/i915/dvo.h| 12 ++-- drivers/gpu/drm/i915/dvo_ch7017.c |2 +- drivers/gpu/drm/i915/dvo_ch7xxx.c |2 +- driv

Re: [Xen-devel] [PATCHv1] x86: rtc_cmos platform device requires legacy irqs

2015-12-08 Thread Boris Ostrovsky
On 12/08/2015 04:02 PM, Thomas Gleixner wrote: On Fri, 4 Dec 2015, David Vrabel wrote: On 04/12/15 14:06, David Vrabel wrote: On 03/12/15 10:43, David Vrabel wrote: Adding the rtc platform device when there are no legacy irqs (no legacy PIC) causes a conflict with other devices that end up usi

Re: 4.4-rc0: 5 W+X pages found

2015-12-08 Thread Kees Cook
On Mon, Nov 23, 2015 at 6:37 AM, Mihai Donțu wrote: > On Sun, 15 Nov 2015 08:00:22 +0100 Pavel Machek wrote: >> Kernel complains: >> >> [5.256044] [ cut here ] >> [5.259267] WARNING: CPU: 0 PID: 1 at >> arch/x86/mm/dump_pagetables.c:225 note_page+0x5ec/0x790() >> [

Re: [PATCH v4 00/19] Implement generic IPI support mechanism

2015-12-08 Thread Thomas Gleixner
Qais, On Tue, 8 Dec 2015, Qais Yousef wrote: > This series adds support for a generic IPI mechanism that can be used by both > arch and drivers to send IPIs to other CPUs. This looks really reasonable now. There are a few things which can be improved once its applied, but I don't want to defer th

[PATCH] ocfs2: constify ocfs2_extent_tree_operations structures

2015-12-08 Thread Julia Lawall
The ocfs2_extent_tree_operations structures are never modified, so declare them as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- fs/ocfs2/alloc.c | 12 ++-- fs/ocfs2/alloc.h |2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/fs/ocfs2/

Re: [Xen-devel] [PATCHv1] x86: rtc_cmos platform device requires legacy irqs

2015-12-08 Thread Thomas Gleixner
On Tue, 8 Dec 2015, Boris Ostrovsky wrote: > On 12/08/2015 04:02 PM, Thomas Gleixner wrote: > > > > --- a/arch/x86/kernel/rtc.c > > > > +++ b/arch/x86/kernel/rtc.c > > > > @@ -200,6 +200,9 @@ static __init int add_rtc_cmos(void) > > > > } > > > > #endif > > > > + if (xen_pv_domain()

Re: [PATCH v2] of/address: replace printk() with pr_debug() / pr_err()

2015-12-08 Thread Rob Herring
On Tue, Dec 8, 2015 at 11:03 AM, Joe Perches wrote: > On Tue, 2015-12-08 at 08:16 -0800, Joe Perches wrote: >> On Wed, 2015-12-09 at 01:07 +0900, Masahiro Yamada wrote: >> > Trivial changes suggested by checkpatch.pl. >> [] >> > diff --git a/drivers/of/address.c b/drivers/of/address.c >> [] >> > @

[RFC][PATCH] misc: Introduce reboot_reason driver

2015-12-08 Thread John Stultz
This patch adds a basic driver to allow for commands like "reboot bootloader" and "reboot recovery" to communicate this reboot-reason to the bootloader. This is commonly done on Android devices, in order to reboot the device into fastboot or recovery mode. It also supports custom OEM specific comm

Re: [PATCH 3/3] x86, ras: Add mcsafe_memcpy() function to recover from machine checks

2015-12-08 Thread Dan Williams
[ adding nvdimm folks ] On Fri, Nov 27, 2015 at 2:16 AM, Ingo Molnar wrote: > > * Luck, Tony wrote: > >> On Thu, Nov 12, 2015 at 08:53:13AM +0100, Ingo Molnar wrote: >> > > +extern phys_addr_t mcsafe_memcpy(void *dst, const void __user *src, >> > > + unsigned size); >> >

Re: [PATCH] um: fix returns without va_end

2015-12-08 Thread Richard Weinberger
On Tue, Dec 1, 2015 at 9:18 PM, Geyslan G. Bem wrote: > When using va_list ensure that va_start will be followed by va_end. > > Signed-off-by: Geyslan G. Bem > --- > arch/um/drivers/net_user.c | 10 ++ > 1 file changed, 6 insertions(+), 4 deletions(-) > > diff --git a/arch/um/drivers/net

Re: [Bugfix 4/5] x86/irq: Fix a race condition between vector assigning and cleanup

2015-12-08 Thread Thomas Gleixner
On Mon, 7 Dec 2015, Joe Lawrence wrote: > On 12/01/2015 05:46 PM, Joe Lawrence wrote: > > On 11/30/2015 03:09 AM, Jiang Liu wrote: > > > Joe Lawrence reported an use after release > > > issue related to x86 IRQ management code. Please refer to following > > > link for more information: > > > http

Re: [PATCH] soc: TI knav_qmss: fix dma_addr_t printing

2015-12-08 Thread Arnd Bergmann
On Tuesday 08 December 2015 08:53:53 santosh shilimkar wrote: > On 12/8/2015 7:30 AM, Arnd Bergmann wrote: > > The knav_qmss driver is currently broken when CONFIG_LPAE is > > set, which is a bit surprising because I'd expect that any serious > > users of this platforms would have more than 2GB of

[GIT PULL] UML fixes for 4.4-rc5

2015-12-08 Thread Richard Weinberger
Linus, The following changes since commit 527e9316f8ec44bd53d90fb9f611fa752bb9: Linux 4.4-rc4 (2015-12-06 15:43:12 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml.git for-linus-4.4-rc5 for you to fetch changes up to 887a9853092c09e205

Re: [PATCH v2 1/2] um: Set secure access mode for temporary file

2015-12-08 Thread Richard Weinberger
Am 08.12.2015 um 21:37 schrieb Tristan Schmelcher: > On 6 December 2015 at 09:43, Mickaël Salaün wrote: >> Well, I'm concerned to use umask because it is not thread-safe and drivers >> may use create_mem_file() in a multi-theaded context. > > You are right. We should perhaps set the umask to 070

Re: [PATCH v2 14/14] perf tools: Move subcommand framework and related utils to libapi

2015-12-08 Thread Josh Poimboeuf
On Tue, Dec 08, 2015 at 04:40:26PM -0300, Arnaldo Carvalho de Melo wrote: > Em Tue, Dec 08, 2015 at 01:17:00PM -0600, Josh Poimboeuf escreveu: > > On Tue, Dec 08, 2015 at 04:09:31PM -0300, Arnaldo Carvalho de Melo wrote: > > > Em Tue, Dec 08, 2015 at 12:49:53PM -0600, Josh Poimboeuf escreveu: > > >

Re: [PATCH 07/12] x86/entry/64: Always run ptregs-using syscalls on the slow path

2015-12-08 Thread Andy Lutomirski
On Tue, Dec 8, 2015 at 10:56 AM, Ingo Molnar wrote: > > * Brian Gerst wrote: > >> > We could adjust it a bit and check whether we're in C land (by checking rsp >> > for ts) and jump into the slow path if we aren't, but I'm not sure this is >> > a >> > huge win. It does save some rodata space by

Re: [RFC][PATCH] misc: Introduce reboot_reason driver

2015-12-08 Thread Arnd Bergmann
On Tuesday 08 December 2015 13:29:22 John Stultz wrote: > diff --git a/arch/arm/boot/dts/qcom-apq8064-nexus7-flo.dts > b/arch/arm/boot/dts/qcom-apq8064-nexus7-flo.dts > index 5183d18..ee5dcb7 100644 > --- a/arch/arm/boot/dts/qcom-apq8064-nexus7-flo.dts > +++ b/arch/arm/boot/dts/qcom-apq8064-nexus

[PATCH] cpufreq: tegra: add regulator dependency for T124

2015-12-08 Thread Arnd Bergmann
This driver is the only one that calls regulator_sync_voltage(), but it can currently be built with CONFIG_REGULATOR disabled, producing this build error: drivers/cpufreq/tegra124-cpufreq.c: In function 'tegra124_cpu_switch_to_pllx': drivers/cpufreq/tegra124-cpufreq.c:68:2: error: implicit declara

Re: next-20151207 - crash in IPv6 code

2015-12-08 Thread Valdis . Kletnieks
On Tue, 08 Dec 2015 12:34:09 +0100, Florian Westphal said: > Valdis Kletnieks wrote: > > [ CC Pablo ] > > > Seen this in 2 boots out of two on next-20151207 when IPV6 networking > > was available. It was stable when no net was available. Also, > > next-20161127 is OK. > > Haven't bisected it yet

Re: [PATCH] mm: page_alloc: fix variable type in zonelist type iteration

2015-12-08 Thread David Rientjes
On Tue, 8 Dec 2015, Johannes Weiner wrote: > /home/hannes/src/linux/linux/mm/page_alloc.c: In function ‘build_zonelists’: > /home/hannes/src/linux/linux/mm/page_alloc.c:4171:16: warning: comparison > between ‘enum zone_type’ and ‘enum ’ [-Wenum-compare] > for (i = 0; i < MAX_ZONELISTS; i++) { >

[PATCH 09/14] crashdump/mips: Add print_crashkernel_region_size() function

2015-12-08 Thread Daniel Kiper
Follow similar x86 patch. Signed-off-by: Daniel Kiper --- kexec/arch/mips/crashdump-mips.c |9 + 1 file changed, 9 insertions(+) diff --git a/kexec/arch/mips/crashdump-mips.c b/kexec/arch/mips/crashdump-mips.c index dc68cb4..450fa13 100644 --- a/kexec/arch/mips/crashdump-mips.c +++

[PATCH 11/14] crashdump/ppc64: Add print_crashkernel_region_size() function

2015-12-08 Thread Daniel Kiper
Provide just print_crashkernel_region_size() stub. This way we can properly build kexec utility on ppc64 arch even if the functionality is not available on it. Signed-off-by: Daniel Kiper --- kexec/arch/ppc64/crashdump-ppc64.c |5 + 1 file changed, 5 insertions(+) diff --git a/kexec/arc

[PATCH 14/14] kexec: Add option to get crash kernel region size

2015-12-08 Thread Daniel Kiper
Here print_crashkernel_region_size() function is available on all archs (even if the functionality is not implemented on some). So, we can safely use it in arch independent code and export the functionality to the user space. Signed-off-by: Daniel Kiper --- kexec/kexec.8 |3 +++ kexec/kexec.

[PATCH 12/14] crashdump/s390: Add print_crashkernel_region_size() function

2015-12-08 Thread Daniel Kiper
Follow similar x86 patch. Signed-off-by: Daniel Kiper --- kexec/arch/s390/kexec-s390.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/kexec/arch/s390/kexec-s390.c b/kexec/arch/s390/kexec-s390.c index 074575e..212a64f 100644 --- a/kexec/arch/s390/kexec-s390.c +++ b/kexec/arch/s

[PATCH 13/14] crashdump/sh: Add print_crashkernel_region_size() function

2015-12-08 Thread Daniel Kiper
Follow similar x86 patch. Signed-off-by: Daniel Kiper --- kexec/arch/sh/crashdump-sh.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/kexec/arch/sh/crashdump-sh.c b/kexec/arch/sh/crashdump-sh.c index 9e6af6b..6556eb1 100644 --- a/kexec/arch/sh/crashdump-sh.c +++ b/kexec/arch/s

[PATCH 07/14] crashdump/ia64: Add print_crashkernel_region_size() function

2015-12-08 Thread Daniel Kiper
Follow similar x86 patch. Signed-off-by: Daniel Kiper --- kexec/arch/ia64/crashdump-ia64.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/kexec/arch/ia64/crashdump-ia64.c b/kexec/arch/ia64/crashdump-ia64.c index 726c9f4..07de42a 100644 --- a/kexec/arch/ia64/crashdump-ia64.c ++

[PATCH 10/14] crashdump/ppc: Add print_crashkernel_region_size() function

2015-12-08 Thread Daniel Kiper
Provide just print_crashkernel_region_size() stub. This way we can properly build kexec utility on ppc arch even if the functionality is not available on it. Signed-off-by: Daniel Kiper --- kexec/arch/ppc/crashdump-powerpc.c |4 1 file changed, 4 insertions(+) diff --git a/kexec/arch/p

[PATCH 08/14] crashdump/m68k: Add print_crashkernel_region_size() function

2015-12-08 Thread Daniel Kiper
Provide just print_crashkernel_region_size() stub. This way we can properly build kexec utility on m68k arch even if the functionality is not available on it. Signed-off-by: Daniel Kiper --- kexec/arch/m68k/kexec-m68k.c |5 + 1 file changed, 5 insertions(+) diff --git a/kexec/arch/m68k/

<    1   2   3   4   5   6   7   8   9   >