Re: [PATCH v2 1/5] fs: rework getname_kernel to handle up to PATH_MAX sized filenames

2015-01-22 Thread Richard Guy Briggs
On 15/01/21, Paul Moore wrote: > In preparation for expanded use in the kernel, make getname_kernel() > more useful by allowing it to handle any legal filename length. > > Thanks to Guenter Roeck for his suggestion to substitute memcpy() for > strlcpy(). > > CC: li...@roeck-us.net > CC: v...@zeni

Re: [PATCH v2 2/5] fs: create proper filename objects using getname_kernel()

2015-01-22 Thread Richard Guy Briggs
On 15/01/22, Paul Moore wrote: > There are several areas in the kernel that create temporary filename > objects using the following pattern: > > int func(const char *name) > { > struct filename *file = { .name = name }; > ... > return 0; >

Re: [PATCH v4 3/5] ARM: sunxi: dts: Add PS2 nodes to dtsi for A10 and A20

2015-01-22 Thread Maxime Ripard
On Wed, Jan 21, 2015 at 04:40:28PM +0530, Vishnu Patekar wrote: > On Wed, Jan 21, 2015 at 1:32 AM, Maxime Ripard > wrote: > > Hi Vishnu, > > > > On Fri, Jan 16, 2015 at 07:33:39PM +0530, Vishnu Patekar wrote: > >> Signed-off-by: VishnuPatekar > >> Signed-off-by: Hans de Goede > > > > Why is ther

Re: General protection fault in iscsi_rx_thread_pre_handler

2015-01-22 Thread Gavin Guo
Hi Nicolas, On Thu, Jan 22, 2015 at 5:50 PM, Nicholas A. Bellinger wrote: > Hi Gavin, > > On Thu, 2015-01-22 at 06:38 +0800, Gavin Guo wrote: >> Hi all, >> >> The general protection fault screenshot is attached. >> >> Summary: >> The kernel is Ubuntu-3.13.0-39.66. I've done basic analysis and fou

Re: [PATCH 0/4] int to bool conversion

2015-01-22 Thread Rafael J. Wysocki
On Thursday, January 22, 2015 09:49:41 AM Quentin Lambert wrote: > These patches convert local variables from int to bool when relevant. And what exactly is the need for that? Does that fix any functional problems? -- I speak only for myself. Rafael J. Wysocki, Intel Open Source Technology Cen

Re: [V6,1/9] elf: Add new powerpc specifc core note sections

2015-01-22 Thread Ulrich Weigand
Michael Neuling wrote on 22.01.2015 00:39:57: > On Thu, 2015-01-01 at 13:38 +0530, Anshuman Khandual wrote: > > On 12/20/2014 12:58 AM, Edjunior Barbosa Machado wrote: > > > The patchset seems to change the "original" ptrace requests (i.e. > > > PTRACE_GETREGS/GETFPREGS/GETVRREGS...) to return the

[PATCH 4/4] NFC: nxp-nci: Allow module removal during download

2015-01-22 Thread clement . perrochaud
From: Clément Perrochaud Signed-off-by: Clément Perrochaud Signed-off-by: Clément Perrochaud --- drivers/nfc/nxp-nci/core.c | 7 +++ drivers/nfc/nxp-nci/firmware.c | 9 ++--- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/drivers/nfc/nxp-nci/core.c b/drivers/nfc/nxp

[PATCH] bpf: Call rcu_read_unlock() before copy_to_user()

2015-01-22 Thread Michael Holzheu
We must not hold locks when calling copy_to_user(): BUG: sleeping function called from invalid context at mm/memory.c:3732 in_atomic(): 0, irqs_disabled(): 0, pid: 671, name: test_maps 1 lock held by test_maps/671: #0: (rcu_read_lock){..}, at: [<00264190>] map_lookup_elem+0xe8/0x260

[PATCH] samples/bpf: Fix test_maps/bpf_get_next_key() test

2015-01-22 Thread Michael Holzheu
Looks like the "test_maps" test case expects to get the keys in the wrong order when iterating over the elements: test_maps: samples/bpf/test_maps.c:79: test_hashmap_sanity: Assertion `bpf_get_next_key(map_fd, &key, &next_key) == 0 && next_key == 2' failed. Aborted Fix this and test for the corre

Re: [PATCH V2 2/3] perf symbols: improve abi compliance in arm mapping symbols handling

2015-01-22 Thread Victor Kamensky
On 22 January 2015 at 07:29, Russell King - ARM Linux wrote: > On Wed, Jan 21, 2015 at 08:52:57PM -0800, Victor Kamensky wrote: >> Both Arm and Aarch64 ELF ABI allow mapping symbols be in from >> either "$d" or "$d.". But current code that handles mapping >> symbols only deals with the first, doll

[PATCH v4] thermal: rockchip: make temperature reporting much more accurate

2015-01-22 Thread Caesar Wang
In general, the kernel should report temperature readings exactly as reported by the hardware. The cpu / gpu thermal driver works in 5 degree increments,but we ought to do more accurate. The temperature will do linear interpolation between the entries in the table. Test= $md5sum /dev/zero & $while

[PATCH v4 0/1] thermal: rockchip: make temperature reporting much more accurate

2015-01-22 Thread Caesar Wang
This patch is merged on chromiumos/third_party/kernel. https://chromium-review.googlesource.com/#/c/239190/ Tested on veyron boards. Changes in v4: "return -EAGAIN" instead of "return rk_tsadcv2_code_to_temp(code)" Changes in v3: Suggested-by Daniel Kurtz, the check doesn't reject "code == 0xf

[PATCH] ARM: at91: fix PM initialization for newer SoCs

2015-01-22 Thread Nicolas Ferre
Newer SoCs: at91sam9x5, at91sam9n12, sama5d3 and sama5d4 embed a DDR controller and have a different PMC status register layout than the at91sam9g45. Create another at91_sam9x5_pm_init() function to match this compatibility. Signed-off-by: Nicolas Ferre --- arch/arm/mach-at91/board-dt-sam9.c |

Re: [PATCH v9 2/5] mfd: AXP20x: Add bindings documentation

2015-01-22 Thread Lee Jones
On Thu, 22 Jan 2015, Chen-Yu Tsai wrote: > From: Carlo Caione > > Bindings documentation for the AXP20x driver. In this file also > sub-nodes are documented. > > Signed-off-by: Carlo Caione > Acked-by: Maxime Ripard > [w...@csie.org: clarify interrupt source for the axp PMIC] > [w...@csie.org

Re: [PATCH v2 4/5] audit: fix filename matching in __audit_inode() and __audit_inode_child()

2015-01-22 Thread Richard Guy Briggs
On 15/01/22, Paul Moore wrote: > In all likelihood there were some subtle, and perhaps not so subtle, > bugs with filename matching in audit_inode() and audit_inode_child() > for some time, however, recent changes to the audit filename code have > definitely broken the filename matching code. The

Re: [PATCH 1/2] i2c: tegra: Maintain CPU endianness

2015-01-22 Thread Dmitry Osipenko
22.01.2015 18:22, Dmitry Osipenko пишет: 22.01.2015 10:55, Alexandre Courbot пишет: On Thu, Jan 22, 2015 at 4:40 PM, Thierry Reding wrote: Should this not technically be le32_to_cpu() since the data originates from the I2C controller? No, i2c_readl returns value in CPU endianness, so it's c

[PATCH v2] ARM: at91: fix PM initialization for newer SoCs

2015-01-22 Thread Nicolas Ferre
Newer SoCs: at91sam9x5, at91sam9n12, sama5d3 and sama5d4 embed a DDR controller and have a different PMC status register layout than the at91sam9g45. Create another at91_sam9x5_pm_init() function to match this compatibility. Signed-off-by: Nicolas Ferre --- arch/arm/mach-at91/board-dt-sam9.c |

Re: [PATCH 2/2] nfc: NXP PN544 ACPI support

2015-01-22 Thread Daniel Baluta
On Fri, Jan 9, 2015 at 2:02 PM, Robert Dolca wrote: > Device id: NXP5440 > Pin mapping: > - 0 IRQ pin > - 1 enable pin > - 2 firmware pin > > Signed-off-by: Robert Dolca > --- > drivers/nfc/Kconfig | 1 + > drivers/nfc/pn544/i2c.c | 115 > ++-

Re: [PATCH v2 5/5] audit: replace getname()/putname() hacks with reference counters

2015-01-22 Thread Richard Guy Briggs
On 15/01/22, Paul Moore wrote: > In order to ensure that filenames are not released before the audit > subsystem is done with the strings there are a number of hacks built > into the fs and audit subsystems around getname() and putname(). To > say these hacks are "ugly" would be kind. > > This pa

Re: [PATCH v2] mm: vmscan: fix the page state calculation in too_many_isolated

2015-01-22 Thread Christoph Lameter
On Wed, 21 Jan 2015, Michal Hocko wrote: > I think we can solve this as well. We can stick vmstat_shepherd into a > kernel thread with a loop with the configured timeout and then create a > mask of CPUs which need the update and run vmstat_update from > IPI context (smp_call_function_many). Pleas

Re: [PATCH] CMA: treat free cma pages as non-free if not ALLOC_CMA on watermark checking

2015-01-22 Thread Christoph Lameter
On Thu, 22 Jan 2015, Joonsoo Kim wrote: > > Just out of curiosity, "new zone"? Something like movable zone? > > Yes, I named it as ZONE_CMA. Maybe I can send prototype of > implementation within 1 or 2 weeks. Ugghh. I'd rather reduce the zone types. Do we need slab allocator etc allocations in th

[PATCH v12 2/6] clk: Remove __clk_register

2015-01-22 Thread Tomeu Vizoso
As it has never been used. Signed-off-by: Tomeu Vizoso --- drivers/clk/clk.c | 42 -- include/linux/clk-private.h | 2 -- 2 files changed, 44 deletions(-) diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 97f3425..fd3d671 100644 --- a/dr

[PATCH v12 3/6] clk: Make clk API return per-user struct clk instances

2015-01-22 Thread Tomeu Vizoso
Moves clock state to struct clk_core, but takes care to change as little API as possible. struct clk_hw still has a pointer to a struct clk, which is the implementation's per-user clk instance, for backwards compatibility. The struct clk that clk_get_parent() returns isn't owned by the caller, bu

Re: [PATCH] of: Add missing of_node_put() in of_find_node_by_path()

2015-01-22 Thread Grant Likely
On Wed, 14 Jan 2015 16:45:56 +0100 , Geert Uytterhoeven wrote: > When traversing all nodes and moving to a new path component, the old > one must be released by calling of_node_put(). Else the refcounts of the > parent node(s) will not be decremented. > > Signed-off-by: Geert Uytterhoeven > ---

[PATCH v12 4/6] clk: Add rate constraints to clocks

2015-01-22 Thread Tomeu Vizoso
Adds a way for clock consumers to set maximum and minimum rates. This can be used for thermal drivers to set minimum rates, or by misc. drivers to set maximum rates to assure a minimum performance level. Changes the signature of the determine_rate callback by adding the parameters min_rate and max

[PATCH v12 6/6] clk: Add module for unit tests

2015-01-22 Thread Tomeu Vizoso
This module registers a clock hierarchy and performs several operations against them checking that the result is expected. Signed-off-by: Tomeu Vizoso --- drivers/clk/Kconfig | 1 + drivers/clk/Kconfig.debug | 6 + drivers/clk/Makefile | 1 + drivers/clk/clk-test.c| 326

[PATCH v12 5/6] clkdev: Export clk_register_clkdev

2015-01-22 Thread Tomeu Vizoso
So it can be used from modules such as clk-test.ko. Signed-off-by: Tomeu Vizoso --- drivers/clk/clkdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/clkdev.c b/drivers/clk/clkdev.c index fac3244..667ce38 100644 --- a/drivers/clk/clkdev.c +++ b/drivers/clk/clkdev.c @@ -379,6 +

Re: [PATCH v3 2/3] media: au0828 - convert to use videobuf2

2015-01-22 Thread Shuah Khan
Hi Prabhakar, thanks for the review, please see in-line. On 01/22/2015 05:41 AM, Lad, Prabhakar wrote: > Hi Shuah, > > Thanks for the patch. > > On Tue, Jan 13, 2015 at 2:56 AM, Shuah Khan wrote: >> Convert au0828 to use videobuf2. Tested with NTSC. >> Tested video and vbi devices with xawtv,

Re: mmotm: mm-slub-optimize-alloc-free-fastpath-by-removing-preemption-on-off.patch is causing preemptible splats

2015-01-22 Thread Christoph Lameter
> I am not sure how to fix this but it sounds like this_cpu_ptr should > offer the same preempt expectations as other this_cpu_* functions. One returns a pointer that may not be useful if the context is switched and the other completes a operationo on an opject. -- To unsubscribe from this list:

[PATCH v12 0/6] Per-user clock constraints

2015-01-22 Thread Tomeu Vizoso
Hi, in this v12 we have a few minor improvements in error checking and locking, suggested by Stephen. I haven't addressed yet any of the comments about clk-test.c because I ran out of time today and didn't want to delay the meat of the work any longer, so I'm sending this v12. Have added a commit

Re: [PATCH] of: Add missing of_node_put() in of_find_node_by_path()

2015-01-22 Thread Grant Likely
On Thu, Jan 22, 2015 at 4:14 PM, Grant Likely wrote: > On Wed, 14 Jan 2015 16:45:56 +0100 > , Geert Uytterhoeven > wrote: >> When traversing all nodes and moving to a new path component, the old >> one must be released by calling of_node_put(). Else the refcounts of the >> parent node(s) will no

[PATCH v12 1/6] clk: Remove unneeded NULL checks

2015-01-22 Thread Tomeu Vizoso
As clk_unprepare_unused_subtree and clk_disable_unused_subtree are always called with a valid struct clk. Signed-off-by: Tomeu Vizoso Reviewed-by: Stephen Boyd --- drivers/clk/clk.c | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index f4963b7..

Re: [PATCH] mm, vmacache: Add kconfig VMACACHE_SHIFT

2015-01-22 Thread Davidlohr Bueso
On Thu, 2015-01-22 at 15:57 +0800, WANG Chao wrote: > Hi, Davidlohr > > On 01/21/15 at 11:46pm, Davidlohr Bueso wrote: > > On Thu, 2015-01-22 at 14:29 +0800, WANG Chao wrote: > > > Add a new kconfig option VMACACHE_SHIFT (as a power of 2) to specify the > > > number of slots vma cache has for each

Re: [PATCH 2/2] input: cyapa: fix variable dereferenced before check 'gen5_pip->resp_len' issue

2015-01-22 Thread Dmitry Torokhov
On Thu, Jan 22, 2015 at 02:50:06PM +0800, Dudley Du wrote: > Fixes the warning issue of the variable dereferenced before check > 'gen5_pip->resp_len' report by dan Carpenter. > > Signed-off-by: Dudley Du Applied, thank you. > --- > drivers/input/mouse/cyapa_gen5.c | 4 +++- > 1 file changed, 3

Re: perf: easily crash kernel with rapl event close

2015-01-22 Thread Stephane Eranian
On Thu, Jan 22, 2015 at 1:39 PM, Stephane Eranian wrote: > On Thu, Jan 22, 2015 at 2:17 AM, Peter Zijlstra wrote: >> On Wed, Jan 21, 2015 at 09:13:11PM -0800, Stephane Eranian wrote: >>> Vince, >>> >>> On Wed, Jan 21, 2015 at 10:55 AM, Vince Weaver >>> wrote: >>> > Hello >>> > >>> > on my haswe

Re: [PATCH v2 0/5] Overhaul the audit filename handling

2015-01-22 Thread Paul Moore
On Wednesday, January 21, 2015 09:36:34 PM Guenter Roeck wrote: > On 01/21/2015 08:59 PM, Paul Moore wrote: > > This patchset has some important changes from the previous revision, > > namely a fix from Al Viro (included in 2/5) that resolves a boot panic > > on some systems as well as some smaller

Re: [PATCH] mm, vmacache: Add kconfig VMACACHE_SHIFT

2015-01-22 Thread Rik van Riel
On 01/22/2015 11:19 AM, Davidlohr Bueso wrote: > On Thu, 2015-01-22 at 15:57 +0800, WANG Chao wrote: >> Hi, Davidlohr >> >> On 01/21/15 at 11:46pm, Davidlohr Bueso wrote: >>> On Thu, 2015-01-22 at 14:29 +0800, WANG Chao wrote: Add a new kconfig option VMACACHE_SHIFT (as a power of 2) to specif

Re: [PATCH v2 0/5] Overhaul the audit filename handling

2015-01-22 Thread Paul Moore
On Thursday, January 22, 2015 07:54:29 AM Al Viro wrote: > On Wed, Jan 21, 2015 at 09:36:34PM -0800, Guenter Roeck wrote: > > On 01/21/2015 08:59 PM, Paul Moore wrote: > > >This patchset has some important changes from the previous revision, > > >namely a fix from Al Viro (included in 2/5) that res

Re: [PATCH v2 5/5] audit: replace getname()/putname() hacks with reference counters

2015-01-22 Thread Paul Moore
On Thursday, January 22, 2015 11:09:42 AM Richard Guy Briggs wrote: > On 15/01/22, Paul Moore wrote: > > In order to ensure that filenames are not released before the audit > > subsystem is done with the strings there are a number of hacks built > > into the fs and audit subsystems around getname()

Re: [PATCH v2 2/3] asus-laptop: use DEVICE_ATTR_* macros

2015-01-22 Thread Darren Hart
On Wed, Jan 21, 2015 at 03:19:17PM -0500, Vivien Didelot wrote: > Hi Darren, > > > > Use DEVICE_ATTR_{RO,WO,RW} macros to simplify attributes > > > declarations. > > > > It does a lot more than that, including a lot of seemingly > > superfluous reformatting of function declarations and renaming. >

Re: [PATCH v2 1/1] x86: Add Isolated Memory Regions for Quark X1000

2015-01-22 Thread Darren Hart
On Thu, Jan 22, 2015 at 03:15:26PM +, Bryan O'Donoghue wrote: > On 22/01/15 15:02, Bryan O'Donoghue wrote: > > > >>drivers/platform/x86/intel_qrk_imr.c > >> > >>Darren - would that be acceptable to you ? > > > >Sorry guys typo - should read arch/x86/platform/imr.c > > > >:) > > Ah Thomas actua

Re: [PATCH] MTD: Deletion of checks before the function call "iounmap"

2015-01-22 Thread SF Markus Elfring
> The only evidence I see is a long thread of similar patches from > the last several months, of varying (though not increasing) quality. I find it acceptable that some of my update suggestions do not fit to your quality expectations at the moment. > Prior objections to your approach were met wi

Re: [PATCH v2 4/4] leds: no longer use unnamed gpios

2015-01-22 Thread Dmitry Torokhov
Hi Olliver, On Wed, Jan 21, 2015 at 10:33:48PM +0100, Olliver Schinagl wrote: > diff --git a/drivers/input/keyboard/gpio_keys_polled.c > b/drivers/input/keyboard/gpio_keys_polled.c > index 097d721..eadb472 100644 > --- a/drivers/input/keyboard/gpio_keys_polled.c > +++ b/drivers/input/keyboard/gpi

Re: [PATCH 10/17] ARM: at91: merge SOC_AT91SAM9xxx

2015-01-22 Thread Alexandre Belloni
On 22/01/2015 at 11:22:21 +0100, Nicolas Ferre wrote : > Le 15/01/2015 22:58, Alexandre Belloni a écrit : > > Only use SOC_AT91SAM9 for all the at91sam9 SoCs. > > > > It enables HAVE_AT91_SMD and HAVE_AT91_UTMI for all the sam9 SoCs but this > > only > > represents 96 bytes of uncompressed kernel

Re: [PATCH v3 01/12] clk: samsung: exynos5433: Add clocks using common clock framework

2015-01-22 Thread Sylwester Nawrocki
Hi Chanwoo, On 21/01/15 07:26, Chanwoo Choi wrote: > This patch adds the support for CMU (Clock Management Units) of Exynos5433 > which is 64bit SoC and has Octa-cores. This patch supports necessary clocks > (PLL/MMC/UART/MCT/I2C/SPI) for kernel boot and includes binding documentation > for Exynos

[PATCH 0/4] NFC: nxp-nci: Add support for NXP-NCI NFC controllers

2015-01-22 Thread clement . perrochaud
From: Clément Perrochaud This patch brings support for the NXP-NCI NFC controllers family. It has been successfully tested on the following SoC boards: - BeagleBone - BeagleBone Black - Raspberry Pi B - Raspberry Pi B+ The submission is broken into four patches: - The first one adds firmwa

Re: module: fix module_refcount() return when running in a module exit routine

2015-01-22 Thread Christoph Hellwig
On Tue, Jan 20, 2015 at 09:23:35AM -0800, James Bottomley wrote: > On Tue, 2015-01-20 at 11:15 +1030, Rusty Russell wrote: > > James Bottomley writes: > > > On Mon, 2015-01-19 at 16:21 +1030, Rusty Russell wrote: > > >> Masami Hiramatsu writes: > > >> > (2015/01/19 1:55), James Bottomley wrote: >

Re: [PATCH 8/8] msm: scm: Move the scm driver to drivers/soc/qcom

2015-01-22 Thread Kumar Gala
On Jan 21, 2015, at 7:53 PM, Bjorn Andersson wrote: > On Wed, Jan 21, 2015 at 5:13 PM, Olof Johansson wrote: > [..] >> On Mon, Aug 4, 2014 at 6:31 PM, Stephen Boyd wrote: >>> Architectural changes in the ARM Linux kernel tree mandate >>> the eventual removal of the mach-* directories. Move the

[PATCH v2 2/2] serial: 8250_pnp: Enable PNP_CONSOLE for console ports

2015-01-22 Thread Peter Hurley
When the kernel command line parameter, no_console_suspend, is used, the console should continue to output console messages during and after system suspend. For a serial console, the serial core ensures that the device is not shutdown when no_console_suspend is specified. However, the default opera

Re: [PATCH 2/2] remoteproc: microblaze: Add support for microblaze on Zynq

2015-01-22 Thread Nathan Lynch
On 01/19/2015 04:30 AM, Michal Simek wrote: > diff --git a/drivers/remoteproc/Kconfig b/drivers/remoteproc/Kconfig > index 5e343bab9458..3955f42e9e9c 100644 > --- a/drivers/remoteproc/Kconfig > +++ b/drivers/remoteproc/Kconfig > @@ -64,4 +64,15 @@ config DA8XX_REMOTEPROC > It's safe to say

[PATCH v2 0/2] Fix no_console_suspend for PNP serial consoles

2015-01-22 Thread Peter Hurley
Hi Greg and Rafael, This v2 of the earlier series submitted back in Nov addresses Rafael's comments, specifically: * Adds PNP_CONSOLE flag, which disables the pnp protocol's suspend() and disable() methods. This greatly simplifies the PNP serial driver patch since the existing pnp device capab

[PATCH v2 1/2] PNP: Allow console to override ACPI device sleep

2015-01-22 Thread Peter Hurley
If the serial console is an ACPI PNP device, the PNP bus always powers down the device at system suspend, even though the no_console_suspend command line parameter is specified (eg., when debugging suspend/resume). Add PNP_CONSOLE capability, which when set, prevents calling both the ->disable() a

[PATCH 3/4] NFC: nxp-nci_i2c: Add I2C support to NXP NCI driver

2015-01-22 Thread clement . perrochaud
From: Clément Perrochaud Signed-off-by: Clément Perrochaud Signed-off-by: Clément Perrochaud --- .../devicetree/bindings/net/nfc/nxp-nci.txt| 35 ++ drivers/nfc/nxp-nci/Kconfig| 12 + drivers/nfc/nxp-nci/Makefile | 2 + drivers/nfc/nxp-

Re: [PATCH v2 1/5] fs: rework getname_kernel to handle up to PATH_MAX sized filenames

2015-01-22 Thread Guenter Roeck
On 01/22/2015 07:53 AM, Richard Guy Briggs wrote: On 15/01/21, Paul Moore wrote: In preparation for expanded use in the kernel, make getname_kernel() more useful by allowing it to handle any legal filename length. Thanks to Guenter Roeck for his suggestion to substitute memcpy() for strlcpy().

Re: [PATCH 1/1] NVMe: Do not take nsid while a passthrough IO command is being issued via a block device file descriptor

2015-01-22 Thread Keith Busch
On Thu, 22 Jan 2015, Christoph Hellwig wrote: On Thu, Jan 22, 2015 at 03:21:28PM +, Keith Busch wrote: But if you really need to restrict namespace access, shouldn't that be enforced on the target side with reservations or similar mechanism? Think for example about containers where we give

Re: [PATCH v2 0/5] Overhaul the audit filename handling

2015-01-22 Thread Guenter Roeck
On 01/22/2015 08:22 AM, Paul Moore wrote: On Wednesday, January 21, 2015 09:36:34 PM Guenter Roeck wrote: On 01/21/2015 08:59 PM, Paul Moore wrote: This patchset has some important changes from the previous revision, namely a fix from Al Viro (included in 2/5) that resolves a boot panic on some

[PATCH] perf/tests: Fix typo in sample-parsing.c

2015-01-22 Thread Rasmus Villemoes
I'm pretty sure this wasn't supposed to be dead code. Signed-off-by: Rasmus Villemoes --- tools/perf/tests/sample-parsing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/tests/sample-parsing.c b/tools/perf/tests/sample-parsing.c index 4908c648a597..30c02181e78b

Re: [GIT PULL] qcom SoC changes for v3.20

2015-01-22 Thread Kumar Gala
On Jan 21, 2015, at 7:15 PM, Olof Johansson wrote: > Hi, > > > On Mon, Jan 19, 2015 at 12:27:15PM -0600, Kumar Gala wrote: >> The following changes since commit 97bf6af1f928216fd6c5a66e8a57bfa95a659672: >> >> Linux 3.19-rc1 (2014-12-20 17:08:50 -0800) >> >> are available in the git reposito

Re: module: fix module_refcount() return when running in a module exit routine

2015-01-22 Thread James Bottomley
On Thu, 2015-01-22 at 08:50 -0800, Christoph Hellwig wrote: > On Tue, Jan 20, 2015 at 09:23:35AM -0800, James Bottomley wrote: > > On Tue, 2015-01-20 at 11:15 +1030, Rusty Russell wrote: > > > James Bottomley writes: > > > > On Mon, 2015-01-19 at 16:21 +1030, Rusty Russell wrote: > > > >> Masami H

Re: [PATCH v2] ARM: qcom: Fix SCM interface for big-endian kernels

2015-01-22 Thread Kumar Gala
On Jan 21, 2015, at 1:21 PM, Stephen Boyd wrote: > The secure environment only runs in little-endian mode, so any > buffers shared with the secure environment should have their > contents converted to little-endian. We also mark such elements > with __le32 to allow sparse to catch such problems.

[GIT PULL] sched: Fix missing preemption opportunity

2015-01-22 Thread Frederic Weisbecker
Ingo, Please pull the sched/urgent branch that can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git sched/urgent HEAD: 4ccbe99852951957419bc616f888e297a478e50b It's part of the preempt/schedule cleanups series suggested by Linus. I'm reworking thes

Re: Perf tests for hw events

2015-01-22 Thread Matt Fleming
On Thu, 22 Jan, at 01:56:59PM, Jiri Olsa wrote: > On Thu, Jan 22, 2015 at 12:40:14PM +, Matt Fleming wrote: > > Folks, > > > > In the process of writing perf support for Intel's Cache QoS Monitoring > > feature [0] I've had to write my own userland tests to drive tools/perf > > and indirectly

Re: [PATCH 1/2] watchdog: dw_wdt: pat the watchdog before enabling it

2015-01-22 Thread Doug Anderson
Jisheng, On Wed, Jan 21, 2015 at 9:22 PM, Jisheng Zhang wrote: > Dear Doug, > > On Wed, 21 Jan 2015 15:17:22 -0800 > Doug Anderson wrote: > >> On some dw_wdt implementations the "top" register may be initted to 0 >> at bootup. In such a case, each "pat" of the watchdog will reset the >> timer t

[PATCH] of/unittest: Remove obsolete code

2015-01-22 Thread Grant Likely
Commit 3ce04b4a9, "Removes OF_UNITTEST dependency on OF_DYNAMIC config symbol" removes a bunch of code, but missed a few minor bits. Clean it up by removing the node removal cache and flag. Signed-off-by: Grant Likely Cc: Gaurav Minocha Cc: Rob Herring --- drivers/of/unittest.c | 15 --

Re: [PATCH v2 6/9] watchdog: st_wdt: Add new driver for ST's LPC Watchdog

2015-01-22 Thread Guenter Roeck
On 01/22/2015 03:56 AM, Lee Jones wrote: Signed-off-by: David Paris Signed-off-by: Lee Jones --- drivers/watchdog/Kconfig | 13 ++ drivers/watchdog/Makefile | 1 + drivers/watchdog/st_lpc_wdt.c | 335 ++ 3 files changed, 349 insertions(+)

Re: Perf tests for hw events

2015-01-22 Thread Matt Fleming
On Thu, 22 Jan, at 09:59:52AM, Arnaldo Carvalho de Melo wrote: > > At some point 'perf test' should grow infrastructure to specify what is > required for a test so that it auto-skips those, possibly not even > bothering the user telling something can't be tested. Right now for > things like tests

Re: [PATCH v2 0/5] Overhaul the audit filename handling

2015-01-22 Thread Guenter Roeck
On 01/21/2015 11:54 PM, Al Viro wrote: On Wed, Jan 21, 2015 at 09:36:34PM -0800, Guenter Roeck wrote: On 01/21/2015 08:59 PM, Paul Moore wrote: This patchset has some important changes from the previous revision, namely a fix from Al Viro (included in 2/5) that resolves a boot panic on some sys

Re: linux-next: Tree for Jan 20 -- sparc32: fix broken set_pte()

2015-01-22 Thread Kirill A. Shutemov
On Wed, Jan 21, 2015 at 07:14:33PM -0800, Guenter Roeck wrote: > On 01/21/2015 02:43 AM, Kirill A. Shutemov wrote: > > >>BUG: Bad page state in process init.sh pfn:0 > >>page:f05e7460 count:0 mapcount:-1 mapping: (null) index:0x0 > >>flags: 0x400(reserved) > >>page dumped because: PAGE_FLAGS

Re: [PATCH 1/2] i2c: tegra: Maintain CPU endianness

2015-01-22 Thread Dmitry Osipenko
22.01.2015 19:06, Dmitry Osipenko пишет: 22.01.2015 18:22, Dmitry Osipenko пишет: 22.01.2015 10:55, Alexandre Courbot пишет: On Thu, Jan 22, 2015 at 4:40 PM, Thierry Reding wrote: Should this not technically be le32_to_cpu() since the data originates from the I2C controller? No, i2c_readl

Re: [PATCH v2 6/9] watchdog: st_wdt: Add new driver for ST's LPC Watchdog

2015-01-22 Thread Lee Jones
On Thu, 22 Jan 2015, Guenter Roeck wrote: > On 01/22/2015 03:56 AM, Lee Jones wrote: > >Signed-off-by: David Paris > >Signed-off-by: Lee Jones > >--- > > drivers/watchdog/Kconfig | 13 ++ > > drivers/watchdog/Makefile | 1 + > > drivers/watchdog/st_lpc_wdt.c | 335 > > +

Re: [PATCH] lib/kstrtox.c clean kstrtoll function

2015-01-22 Thread Jeff Epler
On Thu, Jan 22, 2015 at 05:54:10AM -0800, Anshul Garg wrote: > - if ((long long)(-tmp) >= 0) > - return -ERANGE; > - *res = -tmp; ... > + if ((long long)tmp < 0) > + return -ERANGE; > + *res = sign * tmp; I don't believe overflow hand

[PATCH 1/7] serial: core: Simplify console suspend logic in uart_suspend_port()

2015-01-22 Thread Peter Hurley
When the uart port being suspended is a console and consoles are not suspending (kernel command line contains no_console_suspend), then no action is performed for that port, and the function can return early. If the function has not returned early, then one of the conditions is not true, so the ex

[PATCH 3/7] serial: 8250: Refactor LCR computation

2015-01-22 Thread Peter Hurley
Refactor the computation of the LCR register value from termios c_cflag into a new local function, serial8250_compute_lcr(). Signed-off-by: Peter Hurley --- drivers/tty/serial/8250/8250_core.c | 32 +--- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/

[PATCH 5/7] serial: 8250: Refactor XR17V35X divisor calculation

2015-01-22 Thread Peter Hurley
Exar XR17V35X PCIe uarts support a 4-bit fractional divisor register. Refactor the divisor calculation from the divisor programming. Allow a fractional result from serial8250_get_divisor() and pass this result to serial8250_dl_write(). Simplify the calculation for quot and quot_frac. This was ver

[PATCH 4/7] serial: 8250: Refactor divisor programming

2015-01-22 Thread Peter Hurley
Refactor divisor register programming into a new function, serial8250_set_divisor; this allows serial console to reinitialize early after resume from suspend. Signed-off-by: Peter Hurley --- drivers/tty/serial/8250/8250_core.c | 87 - 1 file changed, 48 insert

Re: linux-next: Tree for Jan 20 -- sparc32: fix broken set_pte()

2015-01-22 Thread Kirill A. Shutemov
On Thu, Jan 22, 2015 at 07:13:38PM +0200, Kirill A. Shutemov wrote: > On Wed, Jan 21, 2015 at 07:14:33PM -0800, Guenter Roeck wrote: > > On 01/21/2015 02:43 AM, Kirill A. Shutemov wrote: > > > > >>BUG: Bad page state in process init.sh pfn:0 > > >>page:f05e7460 count:0 mapcount:-1 mapping: (

Re: [PATCH] bpf: Call rcu_read_unlock() before copy_to_user()

2015-01-22 Thread Alexei Starovoitov
On Thu, Jan 22, 2015 at 7:57 AM, Michael Holzheu wrote: > We must not hold locks when calling copy_to_user(): > > BUG: sleeping function called from invalid context at mm/memory.c:3732 > in_atomic(): 0, irqs_disabled(): 0, pid: 671, name: test_maps > 1 lock held by test_maps/671: > #0: (rcu_read

[PATCH 2/7] serial: 8250: Move UART_BUG_QUOT workaround

2015-01-22 Thread Peter Hurley
The UART_BUG_QUOT workaround adjusts the divisor computed from the baud rate by serial8250_get_divisor(). Move the workaround into serial8250_get_divisor(), so that divisor-from-baud computation is encapsulated. Signed-off-by: Peter Hurley --- drivers/tty/serial/8250/8250_core.c | 17 +--

Re: [PATCH] samples/bpf: Fix test_maps/bpf_get_next_key() test

2015-01-22 Thread Alexei Starovoitov
On Thu, Jan 22, 2015 at 8:01 AM, Michael Holzheu wrote: > Looks like the "test_maps" test case expects to get the keys in > the wrong order when iterating over the elements: > > test_maps: samples/bpf/test_maps.c:79: test_hashmap_sanity: Assertion > `bpf_get_next_key(map_fd, &key, &next_key) == 0

[PATCH 6/7] serial: 8250: Use canary to restart console after suspend

2015-01-22 Thread Peter Hurley
When using no_console_suspend, the serial console may be powered off anyway during system sleep. Upon resume, the port may be in its default power-on state, but is expected to continue console i/o before the device has received its pm callback. The resultant garbage i/o can cause all kinds of havoc

[PATCH 0/7] serial: 8250: restart console after suspend

2015-01-22 Thread Peter Hurley
Hi Greg, This series fixes 8250 console resume from system sleep when the console has been powered down, even though consoles aren't suspending (eg., no_console_suspend on the kernel command line). Patch 1 refactors the overly-complicated fall-through logic for determining if the port should be s

[PATCH 7/7] serial: 8250: Prevent concurrent updates to shadow registers

2015-01-22 Thread Peter Hurley
The port shadow registers, ->fcr and ->mcr, must be protected from concurrent updates. Relocate the shadow register updates in serial8250_do_set_termios() to the port lock critical section. Signed-off-by: Peter Hurley --- drivers/tty/serial/8250/8250_core.c | 18 +- 1 file change

Re: General protection fault in iscsi_rx_thread_pre_handler

2015-01-22 Thread Nicholas A. Bellinger
On Thu, 2015-01-22 at 23:56 +0800, Gavin Guo wrote: > Hi Nicolas, > > On Thu, Jan 22, 2015 at 5:50 PM, Nicholas A. Bellinger > wrote: > > Hi Gavin, > > > > On Thu, 2015-01-22 at 06:38 +0800, Gavin Guo wrote: > >> Hi all, > >> > >> The general protection fault screenshot is attached. > >> > >> Sum

Re: [PATCH] Add security hooks to binder and implement the hooks for SELinux.

2015-01-22 Thread Jeffrey Vander Stoep
ACK. This has been in the android tree since Nov 2012. Forward port of commit: 6639e3d91a05bafa2a85c24c211c43fcaa1b17c5 in https://android.googlesource.com/kernel/common.git Apologies for the double send. Forgot to disable formatting. Thanks, Jeff On Thu, Jan 22, 2015 at 12:51 AM, Greg KH wro

Re: Linux 3.18.2 / xen 4.4.1 dom0 - microcode oops

2015-01-22 Thread James Dingwall
On Thu, Jan 22, 2015 at 04:30:02PM +0100, Borislav Petkov wrote: > On Thu, Jan 22, 2015 at 09:53:04AM -0500, Boris Ostrovsky wrote: > > Alternatively, we could return an error (-EINVAL?) from > > microcode_init() when either of these two conditions is true. > > Yeah, this should be the right fix.

Re: [PATCH 5/7] serial: 8250: Refactor XR17V35X divisor calculation

2015-01-22 Thread Peter Hurley
On 01/22/2015 12:24 PM, Peter Hurley wrote: > Exar XR17V35X PCIe uarts support a 4-bit fractional divisor register. > Refactor the divisor calculation from the divisor programming. > > Allow a fractional result from serial8250_get_divisor() and pass this > result to serial8250_dl_write(). > > Sim

Re: [LKP] [block] 34b48db66e0: +3291.6% iostat.sde.wrqm/s

2015-01-22 Thread Jeff Moyer
Jens Axboe writes: > On 01/21/2015 06:21 PM, Huang Ying wrote: >> FYI, we noticed the below changes on >> >> commit 34b48db66e08ca1c1bc07cf305d672ac940268dc ("block: remove artifical >> max_hw_sectors cap") >> >> testbox/testcase/testparams: >> lkp-ws02/fileio/600s-100%-1HDD-btrfs-64G-1024f-seq

Re: KVM: HAVE_KVM_ARCH_DIRTY_LOG_PROTECT?

2015-01-22 Thread Mario Smarduch
On 01/22/2015 03:46 AM, Paolo Bonzini wrote: > > > On 22/01/2015 10:19, Paul Bolle wrote: >> Mario, >> >> Your commit ba0513b5b8ff ("KVM: Add generic support for dirty page >> logging") is included in today's linux-next (ie, next-20150122). I >&

Re: [PATCH v2 23/30] PCI/mvebu: Use pci_common_init_dev() to simplify code

2015-01-22 Thread Thomas Petazzoni
Dear Yijing Wang, On Wed, 21 Jan 2015 08:30:18 +0800, Yijing Wang wrote: > Mvebu_pcie_scan_bus() is not necessary, we could use > pci_common_init_dev() instead of pci_common_init(), > and pass the device pointer as the parent. Then > pci_scan_root_bus() will be called to scan the pci busses. > >

Re: [PATCH] Add security hooks to binder and implement the hooks for SELinux.

2015-01-22 Thread Nick Kralevich
Acked-By: Nick Kralevich On Thu, Jan 22, 2015 at 12:51 AM, Greg KH wrote: > On Wed, Jan 21, 2015 at 10:54:10AM -0500, Stephen Smalley wrote: >> Add security hooks to the binder and implement the hooks for SELinux. >> The security hooks enable security modules such as SELinux to implement >> cont

Re: [PATCH] Repost sched-rt: Reduce rq lock contention by eliminating locking of non-feasible target

2015-01-22 Thread Tim Chen
On Fri, 2015-01-16 at 09:46 -0800, Tim Chen wrote: > On Thu, 2015-01-15 at 20:58 -0500, Steven Rostedt wrote: > > > > > Please add a comment here that says something like: > > > > /* > > * Don't bother moving it if the destination CPU is > > * not running a

Re: [PATCH] bpf: Call rcu_read_unlock() before copy_to_user()

2015-01-22 Thread Michael Holzheu
On Thu, 22 Jan 2015 09:27:21 -0800 Alexei Starovoitov wrote: > On Thu, Jan 22, 2015 at 7:57 AM, Michael Holzheu > wrote: > > We must not hold locks when calling copy_to_user(): > > > > BUG: sleeping function called from invalid context at mm/memory.c:3732 > > in_atomic(): 0, irqs_disabled(): 0,

Re: [Xen-devel] [RFC v3 2/2] x86/xen: allow privcmd hypercalls to be preempted

2015-01-22 Thread Luis R. Rodriguez
On Thu, Jan 22, 2015 at 12:55:17PM +, David Vrabel wrote: > On 22/01/15 03:18, Andy Lutomirski wrote: > >> --- a/drivers/xen/events/events_base.c > >> +++ b/drivers/xen/events/events_base.c > >> @@ -32,6 +32,8 @@ > >> #include > >> #include > >> #include > >> +#include > >> +#include >

Re: Linux 3.18.2 / xen 4.4.1 dom0 - microcode oops

2015-01-22 Thread Borislav Petkov
On Thu, Jan 22, 2015 at 05:43:15PM +, James Dingwall wrote: > This patch solves it for me on my dom0 with 3.18.3, now there is > nothing printed at all from the microcode driver which doesn't seem > surprising given where the return is. Yap, xen does/will update microcode differently... > I'l

[PATCH] Drivers: hv: vmbus: rename channel work queues

2015-01-22 Thread Vitaly Kuznetsov
All channel work queues are named 'hv_vmbus_ctl', this makes them indistinguishable in ps output and makes it hard to link to the corresponding vmbus device. Rename them to hv_vmbus_ctl/N and make vmbus device names match, e.g. now vmbus_1 device is served by hv_vmbus_ctl/1 work queue. Signed-off-

[PATCH] include:linux:Optimizations to __skb_push

2015-01-22 Thread Mohammad Jamal
This patch optimizes __skb_push function Signed-off-by: Mohammad Jamal --- include/linux/skbuff.h |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 85ab7d7..9acffb2 100644 --- a/include/linux/skbuff.h +++ b/include/linu

Re: [PATCH] bpf: Call rcu_read_unlock() before copy_to_user()

2015-01-22 Thread Alexei Starovoitov
On Thu, Jan 22, 2015 at 9:54 AM, Michael Holzheu wrote: >> > So call rcu_read_unlock() before copy_to_user(). We can >> > release the lock earlier because it is not needed for copy_to_user(). >> >> we cannot move the rcu unlock this way, since it protects the value. >> So we need to copy the value

Re: [PATCH 1/2] ARM: entry-common: fix forgotten set of thread_info->syscall

2015-01-22 Thread Kees Cook
On Wed, Jan 21, 2015 at 5:24 PM, Roman Peniaev wrote: > On Thu, Jan 22, 2015 at 8:32 AM, Kees Cook wrote: >> On Tue, Jan 20, 2015 at 3:04 PM, Russell King - ARM Linux >> wrote: >>> On Tue, Jan 20, 2015 at 10:45:19PM +, Russell King - ARM Linux wrote: Well, the whole question is this: is

Re: perf: behavior of poll() changed in 3.18

2015-01-22 Thread Vince Weaver
On Thu, 22 Jan 2015, Jiri Olsa wrote: > > So what happens if you are using a signal handler to monitor a child and > > the child exits? > > AFAICS wrt to SIGIO, we notify only with POLL_IN if there's new data > and POLL_HUP if we reached the event_limit - the one you set with > PERF_EVENT_IOC_RE

Re: [PATCH] Add security hooks to binder and implement the hooks for SELinux.

2015-01-22 Thread Casey Schaufler
On 1/22/2015 12:51 AM, Greg KH wrote: > On Wed, Jan 21, 2015 at 10:54:10AM -0500, Stephen Smalley wrote: >> Add security hooks to the binder and implement the hooks for SELinux. >> The security hooks enable security modules such as SELinux to implement >> controls over binder IPC. The security hoo

  1   2   3   4   5   6   7   8   9   >