[RFC] powerpc: Enable UBSAN support

2015-12-09 Thread Daniel Axtens
This hooks up UBSAN support for PowerPC. So far it's found some interesting cases where we don't properly sanitise input to shifts, including one in our futex handling. Nothing critical, but interesting and worth fixing. CC: Andrey Ryabinin --- This to be applied on top of next with Andrey's

Re: [PATCH] kvm: remove unused variable 'vcpu_book3s'

2015-12-09 Thread Paul Mackerras
On Tue, Dec 01, 2015 at 08:42:10PM -0300, Geyslan G. Bem wrote: > The vcpu_book3s struct is assigned but never used. So remove it. > > Signed-off-by: Geyslan G. Bem Thanks, applied to my kvm-ppc-next branch. Paul. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

Re: [PATCH] selftests/powerpc: Add script to test HMI functionality

2015-12-09 Thread Stewart Smith
Daniel Axtens writes: > I just realised I sent my reply to Denis not the list - apologies. This > info goes for v2 as well. > > > Could you explain why it's useful, and what it's useful for. Moreover, > > it's POWER8 feature, right? > > I'm not sure whether you're asking about the script or

Re: [PATCH v2 02/19] PM / devfreq: exynos: Add documentation for generic exynos bus frequency driver

2015-12-09 Thread Krzysztof Kozlowski
On 09.12.2015 13:07, Chanwoo Choi wrote: > This patch adds the documentation for generic exynos bus frequency > driver. > > Signed-off-by: Chanwoo Choi > --- > .../devicetree/bindings/devfreq/exynos-bus.txt | 94 > ++ > 1 file changed, 94 insertions(+) > create mode

Re: piping core dump to a program escapes container

2015-12-09 Thread Dongsheng Yang
On 12/09/2015 04:34 PM, Bruno Prémont wrote: On Tue, 08 Dec 2015 21:29:13 -0600 Eric W. Biederman wrote: Dongsheng Yang writes: On 12/09/2015 10:26 AM, Dongsheng Yang wrote: On 10/25/2015 05:54 AM, Shayan Pooya wrote: I noticed the following core_pattern behavior in my linux box while

Re: [PATCH v1 7/8] ARM: dts: rockchip: add core rk3228 dtsi

2015-12-09 Thread Heiko Stuebner
Hi Jeffy, Am Mittwoch, 9. Dezember 2015, 17:04:12 schrieb Jeffy Chen: > Initial release for rk3228 shared dtsi. > > Signed-off-by: Jeffy Chen > --- > > arch/arm/boot/dts/rk3228.dtsi | 478 > ++ > 1 file changed, 478 insertions(+) > create mode 100644

[PATCH v3 1/2] um: Do not set unsecure permission for temporary file

2015-12-09 Thread Mickaël Salaün
Remove the insecure 0777 mode for temporary file to prohibit other users to change the executable mapped code. An attacker could gain access to the mapped file descriptor from the temporary file (before it is unlinked) in a read-only mode but it should not be accessible in write mode to avoid

[PATCH v3 0/2] um: Protect memory mapped file

2015-12-09 Thread Mickaël Salaün
This series protect the memory mapped file. Changes since v2; addressed Tristan Schmelcher's comment: * remove the whole fchmod call [1/2] Changes since v1; addressed Richard Weinberger's comments: * add attacker model to the patch description [1/2] * remove errno reset [2/2] Regards, Mickaël

Re: [PATCH] net: emac: emac gigabit ethernet controller driver

2015-12-09 Thread Gilad Avidov
Thank you Timur for the good review. On Wed, 9 Dec 2015 14:09:27 -0600 Timur Tabi wrote: > So first of all, thanks for posting this. I know it's missing a bunch > of stuff that's necessary for Qualcomm's Server chip, but it's a > start. > > Unfortunately, 6,000 lines is a lot to review at

Re: [PATCH v3 3/3] nvdimm: Add IOCTL pass thru functions

2015-12-09 Thread Jerry Hoemann
On Tue, Dec 08, 2015 at 06:10:20PM -0800, Dan Williams wrote: > On Wed, Dec 2, 2015 at 1:05 PM, Jerry Hoemann wrote: > > Add ioctl command ND_CMD_CALL_DSM to acpi_nfit_ctl and __nd_ioctl which > > allow kernel to call a nvdimm's _DSM as a passthru without using the > > marshaling code of the

Re: linux-next: build failure after merge of the vfs tree

2015-12-09 Thread Stephen Rothwell
[Just adding the origefs maintainer to the cc list] On Thu, 10 Dec 2015 11:18:47 +1100 Stephen Rothwell wrote: > > Hi Al, > > After merging the vfs tree, today's linux-next build (x86_64 allmodconfig) > failed like this: > > fs/orangefs/symlink.c:26:2: error: unknown field 'follow_link'

Re: [PATCH v2] powercap, intel_rapl.c, fix BIOS lock check

2015-12-09 Thread Rafael J. Wysocki
On Wednesday, December 09, 2015 03:31:23 PM Jacob Pan wrote: > On Thu, 10 Dec 2015 00:38:27 +0100 > "Rafael J. Wysocki" wrote: > > > OK, I've put it into my bleeding-edge branch as 4.5 candidate, but do > > we want it in "stable" and therefore should it be pushed for 4.4? > yes, it is a bug fix

Re: Domain faults when CONFIG_CPU_SW_DOMAIN_PAN is enabled

2015-12-09 Thread Russell King - ARM Linux
On Thu, Dec 03, 2015 at 09:37:51PM +, Peter Rosin wrote: > I took both patches for a quick spin (a dozen boots and one hour uptime > after that for each patch) and no incidents. I have not gathered data, > but the crash on boot feels like it's quite a bit above 50% when there > is a problem so

Re: [PATCH 0/6] drivers/dma: drop modular code from non modular drivers

2015-12-09 Thread Paul Gortmaker
[Re: [PATCH 0/6] drivers/dma: drop modular code from non modular drivers] On 10/12/2015 (Thu 00:29) Arnd Bergmann wrote: > On Wednesday 09 December 2015 18:21:56 Paul Gortmaker wrote: > > This series of commits is a slice of a larger project to ensure > > people don't have dead code for module

Re: [PATCH v1 3/8] rockchip: add clock controller for rk3228

2015-12-09 Thread Heiko Stuebner
Hi Jeffy, Am Mittwoch, 9. Dezember 2015, 17:04:08 schrieb Jeffy Chen: > Add the clock tree definition for the new rk3228 SoC. > > Signed-off-by: Jeffy Chen > --- > > drivers/clk/rockchip/Makefile | 1 + > drivers/clk/rockchip/clk-rk3228.c | 762 > ++

linux-next: build failure after merge of the vfs tree

2015-12-09 Thread Stephen Rothwell
Hi Al, After merging the vfs tree, today's linux-next build (x86_64 allmodconfig) failed like this: fs/orangefs/symlink.c:26:2: error: unknown field 'follow_link' specified in initializer .follow_link = pvfs2_follow_link, ^ fs/orangefs/symlink.c:26:17: warning: initialization from

Re: [PATCH v2 00/19] PM / devferq: Add generic exynos bus frequency driver and new passive governor

2015-12-09 Thread Chanwoo Choi
Hi Anand, First of all, thanks for trying to test this series. On 2015년 12월 10일 04:05, Anand Moon wrote: > Hi Chanwoo Choi, > > On 9 December 2015 at 09:37, Chanwoo Choi wrote: >> This patch-set includes the two features as following. The generic exynos bus >> frequency driver is able to

Re: [PATCHSET v2] ->follow_link() without dropping from RCU mode

2015-12-09 Thread Al Viro
On Wed, Dec 09, 2015 at 06:23:09PM +, Al Viro wrote: > What's more, that dentry might very well have gone negative by that > point. Think what happens if, during the symlink traversal, we run > into the hard "restart from scratch in non-RCU mode". We'll need to > do ->put_link() on

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

2015-12-09 Thread Mickaël Salaün
On 08/12/2015 22:45, Richard Weinberger wrote: > 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. >> >>

[PATCH 2/2] integrity: convert digsig to akcipher api

2015-12-09 Thread Tadeusz Struk
Convert asymmetric_verify to akcipher api. Signed-off-by: Tadeusz Struk --- security/integrity/digsig_asymmetric.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/security/integrity/digsig_asymmetric.c b/security/integrity/digsig_asymmetric.c index

[PATCH 1/2] crypto: KEYS: convert public key to the akcipher api

2015-12-09 Thread Tadeusz Struk
This patch converts the module verification code to the new akcipher API. Signed-off-by: Tadeusz Struk --- crypto/asymmetric_keys/Kconfig|2 crypto/asymmetric_keys/Makefile |7 - crypto/asymmetric_keys/pkcs7_parser.c | 12 +-

[PATCH 0/2] crypto: KEYS: convert public key to akcipher api

2015-12-09 Thread Tadeusz Struk
This patch set converts the module verification and digital signature code to the new akcipher API. RSA implementation has been removed from crypto/asymmetric_keys and the new API is used for cryptographic primitives. There is no need for MPI above the akcipher API anymore. Modules can be verified

Re: [PATCH] powerpc/nvram: Fix a memory leak in err path

2015-12-09 Thread xinhui
On 2015/12/9 23:21, Nathan Fontenot wrote: On 12/09/2015 04:00 AM, xinhui wrote: If kmemdup fails, We need kfree *buff* first then return -ENOMEM. Otherwise there is a memory leak. Signed-off-by: Pan Xinhui Reviewed-by: Nathan Fontenot Hi Nathan, thank you for doing that :)

Re: [PATCH] x86/entry/64: Remove duplicate syscall table for fast path

2015-12-09 Thread Andy Lutomirski
On Wed, Dec 9, 2015 at 1:15 PM, Andy Lutomirski wrote: > On Wed, Dec 9, 2015 at 1:08 PM, Brian Gerst wrote: >> Simplified version: >> ENTRY(stub_ptregs_64) >> cmpl $fast_path_return, (%rsp) > > Does that instruction actually work the way you want it to? (Does it > link?) I think you might

Re: [PATCH v3 1/4] printk/nmi: Generic solution for safe printk in NMI

2015-12-09 Thread Andrew Morton
On Wed, 9 Dec 2015 14:21:02 +0100 Petr Mladek wrote: > printk() takes some locks and could not be used a safe way in NMI > context. > > The chance of a deadlock is real especially when printing > stacks from all CPUs. This particular problem has been addressed > on x86 by the commit

[PATCH] Fixed coding style problems based on checkpatch.pl for goldfish_audio.c

2015-12-09 Thread Benjamin Young
>From f18a3e5f155f5258d2d19ac6b56bfaafa2ad470b Mon Sep 17 00:00:00 2001 From: Benjamin Young Date: Wed, 9 Dec 2015 13:45:00 -0800 Subject: [PATCH] Fixed coding style problems based on checkpatch.pl for goldfish_audio.c Signed-off-by: Benjamin Young ---

Re: [PATCH 2/2] perf/x86/intel/uncore: Add Knights Landing uncore PMU support

2015-12-09 Thread Harish Chegondi
On 12/09/2015 03:37 PM, Peter Zijlstra wrote: > On Wed, Dec 09, 2015 at 01:03:43PM -0800, Harish Chegondi wrote: >> >> On 12/08/2015 01:07 AM, Peter Zijlstra wrote: >>> On Mon, Dec 07, 2015 at 02:32:32PM -0800, Harish Chegondi wrote: @@ -981,6 +990,8 @@ static int __init

Re: [PATCH 1/1] perf/x86/intel: Add perf core PMU support for Intel Knights Landing

2015-12-09 Thread Harish Chegondi
On 12/09/2015 03:37 PM, Peter Zijlstra wrote: > On Wed, Dec 09, 2015 at 03:22:29PM -0800, Harish Chegondi wrote: > >> On 12/08/2015 12:37 AM, Peter Zijlstra wrote: >>> On Mon, Dec 07, 2015 at 02:28:18PM -0800, Harish Chegondi wrote: Knights Landing core is based on Silvermont core with

Re: [PATCH 2/2] perf/x86/intel/uncore: Add Knights Landing uncore PMU support

2015-12-09 Thread Peter Zijlstra
On Wed, Dec 09, 2015 at 01:03:43PM -0800, Harish Chegondi wrote: > > > On 12/08/2015 01:07 AM, Peter Zijlstra wrote: > > On Mon, Dec 07, 2015 at 02:32:32PM -0800, Harish Chegondi wrote: > >> @@ -981,6 +990,8 @@ static int __init uncore_pci_init(void) > >>break; > >>case 61: /*

Re: [PATCH 1/1] perf/x86/intel: Add perf core PMU support for Intel Knights Landing

2015-12-09 Thread Peter Zijlstra
On Wed, Dec 09, 2015 at 03:22:29PM -0800, Harish Chegondi wrote: > On 12/08/2015 12:37 AM, Peter Zijlstra wrote: > > On Mon, Dec 07, 2015 at 02:28:18PM -0800, Harish Chegondi wrote: > >> Knights Landing core is based on Silvermont core with several differences. > >> Like Silvermont, Knights

Re: [PATCH] selftests/powerpc: Add script to test HMI functionality

2015-12-09 Thread Daniel Axtens
I just realised I sent my reply to Denis not the list - apologies. This info goes for v2 as well. > Could you explain why it's useful, and what it's useful for. Moreover, > it's POWER8 feature, right? I'm not sure whether you're asking about the script or HMIs. Explaining HMIs helps make

Re: [PATCH v2] powercap, intel_rapl.c, fix BIOS lock check

2015-12-09 Thread Jacob Pan
On Thu, 10 Dec 2015 00:38:27 +0100 "Rafael J. Wysocki" wrote: > OK, I've put it into my bleeding-edge branch as 4.5 candidate, but do > we want it in "stable" and therefore should it be pushed for 4.4? yes, it is a bug fix that may affect many systems locked by BIOS. -- To unsubscribe from this

Re: [PATCH 0/6] drivers/dma: drop modular code from non modular drivers

2015-12-09 Thread Arnd Bergmann
On Wednesday 09 December 2015 18:21:56 Paul Gortmaker wrote: > This series of commits is a slice of a larger project to ensure > people don't have dead code for module removal in non-modular > drivers. Overall there is roughly 5k lines of dead code in the > kernel due to this. > > There is a

[PATCH 3/6] drivers/dma: make mmp_tdma.c explicitly non-modular

2015-12-09 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/dma/Kconfig:config MMP_TDMA drivers/dma/Kconfig:bool "MMP Two-Channel DMA support" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is essentially orphaned, so that

[PATCH 1/6] drivers/dma: make edma.c explicitly non-modular

2015-12-09 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/dma/Kconfig:config TI_EDMA drivers/dma/Kconfig:bool "TI EDMA support" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is essentially orphaned, so that when reading

[PATCH 2/6] drivers/dma: make mmp_pdma.c explicitly non-modular

2015-12-09 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/dma/Kconfig:config MMP_PDMA drivers/dma/Kconfig:bool "MMP PDMA support" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is essentially orphaned, so that when

[PATCH 6/6] drivers/dma: make tegra20-apb-dma.c explicitly non-modular

2015-12-09 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/dma/Kconfig:config TEGRA20_APB_DMA drivers/dma/Kconfig:bool "NVIDIA Tegra20 APB DMA support" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is essentially

[PATCH v2 tip/core/rcu 9/9] torture: Place console.log files correctly from the get-go

2015-12-09 Thread Paul E. McKenney
Currently, the console output files ("console.log") are placed in the build directory initially, then copied to the results directory. One problem with this is if a qemu refuses to die in a timely fashion after a kernel hang, it will continue to write after the next qemu starts up, resulting in

[PATCH v2 tip/core/rcu 3/9] rcutorture: Dump stack when GP kthread stalls

2015-12-09 Thread Paul E. McKenney
This commit increases debug information in the case where the grace-period kthread is being prevented from running by dumping that kthread's stack. Signed-off-by: Paul E. McKenney [ paulmck: Split into prior commit and this commit, as suggested by Josh Triplett. ] Reviewed-by: Josh Triplett

[PATCH v2 tip/core/rcu 5/9] rcutorture: Remove CONFIG_RCU_USER_QS from rcutorture selftest doc

2015-12-09 Thread Paul E. McKenney
From: Yang Shi Commit d1ec4c34c7a9 ("rcu: Drop RCU_USER_QS in favor of NO_HZ_FULL") has removed RCU_USER_QS from Kconfig file, so remove it from some documents to avoid any confusion. Signed-off-by: Yang Shi Signed-off-by: Paul E. McKenney Acked-by: Frederic Weisbecker Reviewed-by: Josh

[PATCH v2 tip/core/rcu 8/9] torture: Abbreviate console error dump

2015-12-09 Thread Paul E. McKenney
Currently, the scripts print a list of warning/bug indicators from the console.log file. This works well if there are only a few warnings or bugs, but can be quite annoying if there is a large number. This commit therefore prints a summary listing the number of each type of warning/bug

[PATCH 0/6] drivers/dma: drop modular code from non modular drivers

2015-12-09 Thread Paul Gortmaker
This series of commits is a slice of a larger project to ensure people don't have dead code for module removal in non-modular drivers. Overall there is roughly 5k lines of dead code in the kernel due to this. There is a quasi-separate theme, in that some of the drivers were allowing an unbind

[PATCH v2 tip/core/rcu 1/9] rcutorture: Add batch number to script printout

2015-12-09 Thread Paul E. McKenney
Currently, the scripts print "Start batch" at the beginning of each batch, which does serve as a good visual delimiter between batches. Unfortunately, if there are a lot of batches, it is hard to quickly estimate test runtime from the output of "--dryrun sched". This commit therefore adds a

[PATCH v2 tip/core/rcu 6/9] rcutorture: Print symbolic name for rcu_torture_writer_state

2015-12-09 Thread Paul E. McKenney
Currently, rcu_torture_writer_state is printed as an integer, which slows debugging. This commit therefore prints a symbolic name in addition to the integer. Signed-off-by: Paul E. McKenney [ paulmck: More "const", as suggested by Josh Triplett. ] Reviewed-by: Josh Triplett ---

[GIT PULL] VFIO fixes for v4.4-rc5

2015-12-09 Thread Alex Williamson
Hi Linus, The following changes since commit 8005c49d9aea74d382f474ce11afbbc7d7130bec: Linux 4.4-rc1 (2015-11-15 17:00:27 -0800) are available in the git repository at: git://github.com/awilliam/linux-vfio.git tags/vfio-v4.4-rc5 for you to fetch changes up to

[PATCH v2 tip/core/rcu 7/9] rcutorture: Print symbolic name for ->gp_state

2015-12-09 Thread Paul E. McKenney
Currently, ->gp_state is printed as an integer, which slows debugging. This commit therefore prints a symbolic name in addition to the integer. Signed-off-by: Paul E. McKenney [ paulmck: Updated to fix relational operator called out by Dan Carpenter. ] [ paulmck: More "const", as suggested by

[PATCH 4/6] drivers/dma: make pxa_dma.c explicitly non-modular

2015-12-09 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/dma/Kconfig:config PXA_DMA drivers/dma/Kconfig:bool "PXA DMA support" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is essentially orphaned, so that when reading

[PATCH v2 tip/core/rcu 4/9] rcutorture: Default grace period to three minutes, allow override

2015-12-09 Thread Paul E. McKenney
The default test grace period of two minutes is insufficient in some cases and excessive in others. This commit therefore increases the default to three minutes, but also adds a --shutdown-grace parameter to allow the default to be overridden. Signed-off-by: Paul E. McKenney Reviewed-by: Josh

[PATCH v2 tip/core/rcu 2/9] rcutorture: Flag nonexistent RCU GP kthread

2015-12-09 Thread Paul E. McKenney
Currently, if the RCU grace-period kthread has not yet been created, in which case the starvation-check code will print zero for the state, which maps to TASK_RUNNING. This could clearly be quite confusing, so this commit prints ~0, which does not map to any legal ->state value. Signed-off-by:

[PATCH 5/6] drivers/dma: make sh/shdma-*.c explicitly non-modular

2015-12-09 Thread Paul Gortmaker
The Kconfig currently controlling compilation of these files is: config SH_DMAE_BASE bool "Renesas SuperH DMA Engine support" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is essentially orphaned, so that when reading the driver

Re: [PATCH 1/1] perf/x86/intel: Add perf core PMU support for Intel Knights Landing

2015-12-09 Thread Harish Chegondi
On 12/08/2015 12:37 AM, Peter Zijlstra wrote: > On Mon, Dec 07, 2015 at 02:28:18PM -0800, Harish Chegondi wrote: >> Knights Landing core is based on Silvermont core with several differences. >> Like Silvermont, Knights Landing has 8 pairs of LBR MSRs. However, the >> LBR MSRs addresses match

[PATCH v2 tip/core/rcu 0/9] Torture-test updates for 4.5

2015-12-09 Thread Paul E. McKenney
Hello! This series contains torture-test updates: 1. Add batch number to script printout to allow easier estimation of test duration. 2. Flag non-existent RCU grace-period kthread. 3. Dump stack when RCU's grace-period kthread stalls. 4. Set the scripting's default

Re: [PATCH v2 3/5] test: firmware_class: add asynchronous request trigger

2015-12-09 Thread Kees Cook
On Wed, Dec 9, 2015 at 2:50 PM, Brian Norris wrote: > We might want to test for bugs like that found in commit f9692b2699bd > ("firmware: fix possible use after free on name on asynchronous > request"), where the asynchronous request API had race conditions. > > Let's add a simple file that will

Re: [PATCHv3] printf: Add format for 8-byte EUI-64 type

2015-12-09 Thread Joe Perches
On Wed, 2015-12-09 at 16:06 -0700, Keith Busch wrote: > MAC addresses may be formed using rules based on EUI-64, which is 2 bytes > longer than a typical 6-byte MAC. This patch adds a long specifier to > the %pM format to support the extended unique identifier. > > Since there are multiple valid

[PATCH v2 tip/core/rcu 13/14] rcu: Make rcu_gp_init() be bool rather than int

2015-12-09 Thread Paul E. McKenney
The return value from rcu_gp_init() is always used as a bool, so this commit makes it be a bool. Reported-by: Iftekhar Ahmed Signed-off-by: Paul E. McKenney --- kernel/rcu/tree.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/kernel/rcu/tree.c

[PATCH v2 tip/core/rcu 08/14] rcu: Eliminate unused rcu_init_one() argument

2015-12-09 Thread Paul E. McKenney
Now that the rcu_state structure's ->rda field is compile-time initialized, there is no need to pass the per-CPU rcu_data structure into rcu_init_one(). This commit therefore eliminates this now-unused parameter. Signed-off-by: Paul E. McKenney --- kernel/rcu/tree.c| 7 +++

[PATCH v2 tip/core/rcu 03/14] rcu: Simplify rcu_sched_qs() control flow

2015-12-09 Thread Paul E. McKenney
This commit applies an early-exit approach to rcu_sched_qs(), reducing the nesting level and saving a line of code. Signed-off-by: Paul E. McKenney --- kernel/rcu/tree.c | 29 ++--- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/kernel/rcu/tree.c

[PATCH v2 tip/core/rcu 09/14] rcu: Make cpu_needs_another_gp() be bool

2015-12-09 Thread Paul E. McKenney
The cpu_needs_another_gp() function is currently of type int, but only returns zero or one. Bow to reality and make it be of type bool. Signed-off-by: Paul E. McKenney --- kernel/rcu/tree.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/kernel/rcu/tree.c

[PATCH v2 tip/core/rcu 05/14] rcu: Fix obsolete rcu_bootup_announce_oddness() comment

2015-12-09 Thread Paul E. McKenney
This function no longer has #ifdefs, so this commit removes the header comment calling them out. Signed-off-by: Paul E. McKenney --- kernel/rcu/tree_plugin.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/rcu/tree_plugin.h b/kernel/rcu/tree_plugin.h index

[PATCH v2 tip/core/rcu 04/14] rcu: Remove lock-acquisition loop from rcu_read_unlock_special()

2015-12-09 Thread Paul E. McKenney
Several releases have come and gone without the warning triggering, so remove the lock-acquisition loop. Retain the WARN_ON_ONCE() out of sheer paranoia. Signed-off-by: Paul E. McKenney --- kernel/rcu/tree_plugin.h | 18 ++ 1 file changed, 6 insertions(+), 12 deletions(-) diff

Re: [PATCH v11] PCI: Xilinx-NWL-PCIe: Added support for Xilinx NWL PCIe Host Controller

2015-12-09 Thread Bjorn Helgaas
[+cc Michal, Paul, Thierry, Stephen, Alexandre (see irq_dispose_mapping questions below)] On Sun, Nov 29, 2015 at 05:33:53PM +0530, Bharat Kumar Gogada wrote: > Adding PCIe Root Port driver for Xilinx PCIe NWL bridge IP. > > Signed-off-by: Bharat Kumar Gogada > Signed-off-by: Ravi Kiran

Re: mtd, nand, omap2: parse cmdline partition fail

2015-12-09 Thread Brian Norris
On Fri, Dec 04, 2015 at 09:42:06AM +0100, Heiko Schocher wrote: > Am 04.12.2015 um 08:17 schrieb Frans Klaver: > >On Fri, Dec 4, 2015 at 7:48 AM, Heiko Schocher wrote: > >>So the question is, is it intended to change the "mtd->name"? > > > >That's definitely not intended. The expectation with

[PATCH v2 tip/core/rcu 11/14] rcu: Fix comment for rcu_dereference_raw_notrace

2015-12-09 Thread Paul E. McKenney
From: Alexey Kardashevskiy rcu_dereference_raw() calls indirectly rcu_read_lock_held() while rcu_dereference_raw_notrace() does not so fix the comment about the latter. Signed-off-by: Alexey Kardashevskiy Signed-off-by: Paul E. McKenney --- include/linux/rcupdate.h | 2 +- 1 file changed, 1

[PATCH v2 tip/core/rcu 01/14] rcu: Move lock_class_key to local scope

2015-12-09 Thread Paul E. McKenney
Currently, the rcu_node_class[], rcu_fqs_class[], and rcu_exp_class[] arrays needlessly pollute the global namespace within tree.c. This commit therefore converts them to static local variables within rcu_init_one(). Signed-off-by: Paul E. McKenney --- kernel/rcu/tree.c | 7 +++ 1 file

[PATCH v2 tip/core/rcu 7/8] documentation: Update RCU requirements based on expedited changes

2015-12-09 Thread Paul E. McKenney
Because RCU-sched expedited grace periods now use IPIs and interact with rcu_read_unlock(), it is no longer sufficient to disable preemption across RCU read-side critical sections that acquire and hold scheduler locks. It is now necessary to instead disable interrupts. This commit documents this

Re: [PATCH v1 4/8] dt-bindings: add documentation of rk3228 clock controller

2015-12-09 Thread Heiko Stuebner
Am Mittwoch, 9. Dezember 2015, 17:04:09 schrieb Jeffy Chen: > Add the devicetree binding for the cru on the rk3228 which quite similar > structured as previous clock controllers. > > Signed-off-by: Jeffy Chen applied to my clock branch with Rob's ack -- To unsubscribe from this list: send the

Re: [PATCH v1 2/8] clk: rockchip: add dt-binding header for rk3228

2015-12-09 Thread Heiko Stuebner
Am Mittwoch, 9. Dezember 2015, 17:04:07 schrieb Jeffy Chen: > Add the dt-bindings header for the rk3228, that gets shared between > the clock controller and the clock references in the dts. > > Signed-off-by: Jeffy Chen applied to my clk branch for 4.5 -- To unsubscribe from this list: send the

[PATCH v2 tip/core/rcu 6/8] documentation: Clarify RCU memory barriers and requirements

2015-12-09 Thread Paul E. McKenney
The RCU requirements do not make it absolutely clear that the memory-barrier requirements are not intended to replace the fundamental requirement that all pre-existing RCU readers complete before a grace period completes. This commit therefore pulls the memory-barrier requirements into a separate

[PATCH v2 tip/core/rcu 07/14] rcu: Stop disabling interrupts in scheduler fastpaths

2015-12-09 Thread Paul E. McKenney
We need the scheduler's fastpaths to be, well, fast, and unnecessarily disabling and re-enabling interrupts is not necessarily consistent with this goal. Especially given that there are regions of the scheduler that already have interrupts disabled. This commit therefore moves the call to

[PATCH v2 tip/core/rcu 2/8] Documentation: Record bottom-bit-zero guarantee for ->next

2015-12-09 Thread Paul E. McKenney
This commit records RCU's guarantee that the bottom bit of the rcu_head structure's ->next field will remain zero for callbacks posted via call_rcu(), but not necessarily for kfree_rcu() or some possible future call_rcu_lazy() variant that might one day be created for energy-efficiency purposese.

[PATCH v2 tip/core/rcu 3/8] documentation: Cover requirements controlling stall warnings

2015-12-09 Thread Paul E. McKenney
This commit adds verbiage on boot and sysfs parameters that can be used to control RCU CPU stall warnings, both to change the timeout and to suppress these warnings entirely. Signed-off-by: Paul E. McKenney --- .../RCU/Design/Requirements/Requirements.html | 25 +-

Re: [PATCH] hexdump: Add ability to do endian conversions in print_hex_dump functions

2015-12-09 Thread Joe Perches
On Thu, 2015-12-10 at 01:09 +0200, Andy Shevchenko wrote: > On Thu, Dec 10, 2015 at 12:11 AM, Andy Shevchenko > wrote: > > On Wed, Dec 9, 2015 at 11:59 PM, Joe Perches wrote: > > > There are use cases for dumping buffers with specific endian types > > > for 2, 4, and 8 byte variables in arrays.

[PATCH v2 tip/core/rcu 4/8] documentation: Composability analogies

2015-12-09 Thread Paul E. McKenney
This commit expands on RCU's composability by comparing it to that of transactional memory and of locking. Signed-off-by: Paul E. McKenney --- Documentation/RCU/Design/Requirements/Requirements.html | 8 Documentation/RCU/Design/Requirements/Requirements.htmlx | 8 2 files

[PATCH v2 tip/core/rcu 8/8] Documentation/memory-barriers.txt: Fix ACCESS_ONCE thinko

2015-12-09 Thread Paul E. McKenney
From: Chris Metcalf In commit 2ecf810121c7 ("Documentation/memory-barriers.txt: Add needed ACCESS_ONCE() calls to memory-barriers.txt") the statement "Q = P" was converted to "ACCESS_ONCE(Q) = P". This should have been "Q = ACCESS_ONCE(P)". It later became "WRITE_ONCE(Q, P)". This doesn't

[PATCH v2 tip/core/rcu 5/8] documentation: Expand on scheduler/RCU deadlock requirements

2015-12-09 Thread Paul E. McKenney
This commit adds a second option for avoiding scheduler/RCU deadlocks, namely that preemption be disabled across the entire RCU read-side critical section in question. Signed-off-by: Paul E. McKenney --- Documentation/RCU/Design/Requirements/Requirements.html | 14 +-

[PATCH 1/5] x86/kvm: On KVM re-enable (e.g. after suspend), update clocks

2015-12-09 Thread Andy Lutomirski
This gets rid of the "did TSC go backwards" logic and just updates all clocks. It should work better (no more disabling of fast timing) and more reliably (all of the clocks are actually updated). Signed-off-by: Andy Lutomirski --- arch/x86/kvm/x86.c | 75

[PATCH 0/5] x86: KVM vdso and clock improvements

2015-12-09 Thread Andy Lutomirski
NB: patch 1 doesn't really belong here, but it makes this a lot easier for me to test. Patch 1, if it's okay at all, should go though the kvm tree. The rest should probably go through tip:x86/vdso once they're reviewed. I'll do a followup to enable vdso pvclock on 32-bit guests. I'm not

Re: [PATCH v3 8/8] x86, vdso: mark vDSO read-only after init

2015-12-09 Thread Andy Lutomirski
On Wed, Dec 9, 2015 at 1:43 PM, Kees Cook wrote: > The vDSO does not need to be writable after __init, so mark it as > __ro_after_init. The result kills the exploit method of writing to the > vDSO from kernel space resulting in userspace executing the modified code, > as shown here to bypass SMEP

[PATCH v2 tip/core/rcu 0/8] Documentation updates for 4.5

2015-12-09 Thread Paul E. McKenney
Hello! This series contains documentation updates, perhaps most notably a first installment of RCU design documentation, which first appeared on LWN (http://lwn.net/Articles/652156/, http://lwn.net/Articles/652677/, and http://lwn.net/Articles/653326/). The individual patches are as follows: 1.

[PATCH 3/5] x86/vdso: Get pvclock data from the vvar VMA instead of the fixmap

2015-12-09 Thread Andy Lutomirski
Signed-off-by: Andy Lutomirski --- arch/x86/entry/vdso/vclock_gettime.c | 20 arch/x86/entry/vdso/vdso-layout.lds.S | 3 ++- arch/x86/entry/vdso/vdso2c.c | 3 +++ arch/x86/entry/vdso/vma.c | 13 + arch/x86/include/asm/pvclock.h| 9

Re: [PATCH] mm: memcontrol: only manage socket pressure for CONFIG_INET

2015-12-09 Thread Andrew Morton
On Wed, 9 Dec 2015 18:05:05 -0500 Johannes Weiner wrote: > On Wed, Dec 09, 2015 at 02:28:36PM -0800, Andrew Morton wrote: > > On Wed, 9 Dec 2015 13:58:58 -0500 Johannes Weiner > > wrote: > > > The calls to tcp_init_cgroup() appear earlier in the series than "mm: > > > memcontrol: hook up

[PATCH 4/5] x86/vdso: Remove pvclock fixmap machinery

2015-12-09 Thread Andy Lutomirski
Signed-off-by: Andy Lutomirski --- arch/x86/entry/vdso/vclock_gettime.c | 1 - arch/x86/entry/vdso/vma.c| 1 + arch/x86/include/asm/fixmap.h| 5 - arch/x86/include/asm/pvclock.h | 5 - arch/x86/kernel/kvmclock.c | 6 --

[PATCH 2/5] x86, vdso, pvclock: Simplify and speed up the vdso pvclock reader

2015-12-09 Thread Andy Lutomirski
From: Andy Lutomirski The pvclock vdso code was too abstracted to understand easily and excessively paranoid. Simplify it for a huge speedup. This opens the door for additional simplifications, as the vdso no longer accesses the pvti for any vcpu other than vcpu 0. Before, vclock_gettime

[PATCH 5/5] x86/vdso: Enable vdso pvclock access on all vdso variants

2015-12-09 Thread Andy Lutomirski
Now that pvclock doesn't require access to the fixmap, all vdso variants can use it. The kernel side isn't wired up for 32-bit kernels yet, but this covers 32-bit and x32 userspace on 64-bit kernels. Signed-off-by: Andy Lutomirski --- arch/x86/entry/vdso/vclock_gettime.c | 91

[PATCH v2 tip/core/rcu 14/14] list: Add lockless list traversal primitives

2015-12-09 Thread Paul E. McKenney
From: Alexey Kardashevskiy Although list_for_each_entry_rcu() can in theory be used anywhere preemption is disabled, it can result in calls to lockdep, which cannot be used in certain constrained execution environments, such as exception handlers that do not map the entire kernel into their

Re: [PATCH v1 4/8] dt-bindings: add documentation of rk3228 clock controller

2015-12-09 Thread Heiko Stuebner
Hi Rob, Am Mittwoch, 9. Dezember 2015, 14:12:00 schrieb Rob Herring: > On Wed, Dec 09, 2015 at 05:04:09PM +0800, Jeffy Chen wrote: > > Add the devicetree binding for the cru on the rk3228 which quite similar > > structured as previous clock controllers. > > > > Signed-off-by: Jeffy Chen > >

[PATCH v2 tip/core/rcu 02/14] kernel: Make rcu/tree_trace.c explicitly non-modular

2015-12-09 Thread Paul E. McKenney
From: Paul Gortmaker The Kconfig currently controlling compilation of this code is: init/Kconfig:config TREE_RCU_TRACE init/Kconfig: def_bool RCU_TRACE && ( TREE_RCU || PREEMPT_RCU ) ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is

[PATCH v2 tip/core/rcu 12/14] rcu: Move wakeup out from under rnp->lock

2015-12-09 Thread Paul E. McKenney
From: Peter Zijlstra This patch removes a potential deadlock hazard by moving the wake_up_process() in rcu_spawn_gp_kthread() out from under rnp->lock. Signed-off-by: Peter Zijlstra Signed-off-by: Paul E. McKenney --- kernel/rcu/tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH v2 tip/core/rcu 06/14] rcu: Avoid tick_nohz_active checks on NOCBs CPUs

2015-12-09 Thread Paul E. McKenney
Currently, rcu_prepare_for_idle() checks for tick_nohz_active, even on individual NOCBs CPUs, unless all CPUs are marked as NOCBs CPUs at build time. This check is pointless on NOCBs CPUs because they never have any callbacks posted, given that all of their callbacks are handed off to the

[PATCH v2 tip/core/rcu 10/14] rcu: Don't redundantly disable irqs in rcu_irq_{enter,exit}()

2015-12-09 Thread Paul E. McKenney
This commit replaces a local_irq_save()/local_irq_restore() pair with a lockdep assertion that interrupts are already disabled. This should remove the corresponding overhead from the interrupt entry/exit fastpaths. This change was inspired by the fact that Iftekhar Ahmed's mutation testing

Re: [PATCH] hexdump: Add ability to do endian conversions in print_hex_dump functions

2015-12-09 Thread Andy Shevchenko
On Thu, Dec 10, 2015 at 12:11 AM, Andy Shevchenko wrote: > On Wed, Dec 9, 2015 at 11:59 PM, Joe Perches wrote: >> There are use cases for dumping buffers with specific endian types >> for 2, 4, and 8 byte variables in arrays. >> >> Add an enum for DUMP_TYPE_(LE|BE|CPU) to enable emitting them as

[PATCH v2 tip/core/rcu 0/14] Miscellaneous fixes for 4.5

2015-12-09 Thread Paul E. McKenney
Hello! This series contains miscellaneous fixes for 4.5: 1. Move lock_class_key to local scope within rcu_init_one(). 2. Make rcu/tree_trace.c explicitly non-modular, courtesy of Paul Gortmaker. 3. Save a line of code by streamlining rcu_sched_qs() control flow. 4.

Re: [PATCH v2] powercap, intel_rapl.c, fix BIOS lock check

2015-12-09 Thread Rafael J. Wysocki
On Wednesday, December 09, 2015 08:53:55 AM Jacob Pan wrote: > On Wed, 9 Dec 2015 08:31:12 -0500 > Prarit Bhargava wrote: > > > Intel RAPL initialized on several systems where the BIOS lock bit (msr > > 0x610, bit 63) was set. This occured because the return value of > > rapl_read_data_raw()

[PATCHv3] printf: Add format for 8-byte EUI-64 type

2015-12-09 Thread Keith Busch
MAC addresses may be formed using rules based on EUI-64, which is 2 bytes longer than a typical 6-byte MAC. This patch adds a long specifier to the %pM format to support the extended unique identifier. Since there are multiple valid possible permutations of format specifiers, the decoding is done

[PATCH v2 tip/core/rcu 01/11] rcu: Short-circuit synchronize_sched_expedited() if only one CPU

2015-12-09 Thread Paul E. McKenney
If there is only one CPU, then invoking synchronize_sched_expedited() is by definition a grace period. This commit checks for this condition and does a short-circuit return in that case. Signed-off-by: Paul E. McKenney --- kernel/rcu/tree.c | 4 1 file changed, 4 insertions(+) diff --git

[PATCH v2 tip/core/rcu 11/11] rcu: Remove TINY_RCU bloat from pointless boot parameters

2015-12-09 Thread Paul E. McKenney
The rcu_expedited, rcu_normal, and rcu_normal_after_boot kernel boot parameters are pointless in the case of TINY_RCU because in that case synchronous grace periods, both expedited and normal, are no-ops. However, these three symbols contribute several hundred bytes of bloat. This commit therefore

[PATCH v2 tip/core/rcu 10/11] rcu: Allow expedited grace periods to be disabled at init

2015-12-09 Thread Paul E. McKenney
Expedited grace periods can speed up boot, but are undesirable in aggressive real-time systems. This commit therefore introduces a kernel parameter rcupdate.rcu_normal_after_boot that disables expedited grace periods just before init is spawned. Signed-off-by: Paul E. McKenney ---

Re: [PATCH] mm: memcontrol: only manage socket pressure for CONFIG_INET

2015-12-09 Thread Johannes Weiner
On Wed, Dec 09, 2015 at 02:28:36PM -0800, Andrew Morton wrote: > On Wed, 9 Dec 2015 13:58:58 -0500 Johannes Weiner wrote: > > > > diff --git a/mm/memcontrol.c b/mm/memcontrol.c > > > index 6faea81e66d7..73cd572167bb 100644 > > > --- a/mm/memcontrol.c > > > +++ b/mm/memcontrol.c > > > @@ -4220,13

[PATCH v2 tip/core/rcu 05/11] rcu: Reduce expedited GP memory contention via per-CPU variables

2015-12-09 Thread Paul E. McKenney
Currently, the piggybacked-work checks carried out by sync_exp_work_done() atomically increment a small set of variables (the ->expedited_workdone0, ->expedited_workdone1, ->expedited_workdone2, ->expedited_workdone3 fields in the rcu_state structure), which will form a memory-contention

[PATCH v2 tip/core/rcu 03/11] rcu: Move smp_mb() from rcu_seq_snap() to rcu_exp_gp_seq_snap()

2015-12-09 Thread Paul E. McKenney
The memory barrier in rcu_seq_snap() is needed only for grace periods, so this commit moves it to the grace-period-oriented wrapper rcu_exp_gp_seq_snap(). Signed-off-by: Paul E. McKenney --- kernel/rcu/tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/rcu/tree.c

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