[PATCH] staging: wilc1000: fix double mutex_unlock on failure path in wilc_wlan_cleanup()

2015-12-04 Thread Alexey Khoroshilov
If hif_read_reg() or hif_write_reg() fail in wilc_wlan_cleanup(), it calls release_bus() and continues execution. But it leads to double release_bus() call that means double unlock of g_linux_wlan->hif_cs mutex. The patch adds return in case of failure. Found by Linux Driver Verification project

[PATCH 03/13] perf: Move term functions out of util.c

2015-12-04 Thread Josh Poimboeuf
The term functions are needed by help.c which is going to be moved into a separate library. Move them out of util.c and into their own file. Signed-off-by: Josh Poimboeuf --- tools/perf/util/Build | 1 + tools/perf/util/term.c | 35 +++ tools/perf/util/term.h |

[PATCH 02/13] perf: Split up util.h

2015-12-04 Thread Josh Poimboeuf
util.h is a hodgepodge which consists of: 1) some compatibility macros and system includes 2) declarations for util.c 3) declarations for other .c files Move the compatibility macros and system includes to compat-util.h. Move the declarations for other .c files to their respective proper location

[RFC][PATCH] timekeeping: Cap adjustments so they don't exceede the maxadj value

2015-12-04 Thread John Stultz
Thus its been occasionally noted that users have seen confusing warnings like: Adjusting tsc more than 11% (5941981 vs 7759439) We try to limit the maximum total adjustment to 11% (10% tick adjustment + 0.5% frequency adjustment). But this is done by bounding the requested adjustment values,

[PATCH 05/13] perf: Split up cache.h

2015-12-04 Thread Josh Poimboeuf
cache.h is a hodgepodge which consists of: 1) some macros 2) some includes 3) declarations for other .c files Move the macros and declarations to more appropriate places. This makes the code more organized and makes it easier to separate out the components later. Some of the components will be

[PATCH 04/13] perf: Remove unused pager_use_color variable

2015-12-04 Thread Josh Poimboeuf
Signed-off-by: Josh Poimboeuf --- tools/perf/util/Build | 1 - tools/perf/util/cache.h | 1 - tools/perf/util/color.c | 2 +- tools/perf/util/environment.c | 8 4 files changed, 1 insertion(+), 11 deletions(-) delete mode 100644 tools/perf/util/environment.c diff --

[PATCH 06/13] perf: Remove cache.h

2015-12-04 Thread Josh Poimboeuf
cache.h is now just a collection of some commonly used includes. Move the includes to util.h, which has a similar collection. Signed-off-by: Josh Poimboeuf --- tools/perf/builtin-annotate.c | 1 - tools/perf/builtin-buildid-cache.c | 2 +- tools/perf/bui

[PATCH 08/13] perf: Remove check for unused PERF_PAGER_IN_USE

2015-12-04 Thread Josh Poimboeuf
PERF_PAGER_IN_USE doesn't seem to be used anywhere, so let's remove it. This will also make it easier to move pager.c into a separate library. Signed-off-by: Josh Poimboeuf --- tools/perf/util/pager.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/tools/perf/util/pag

[PATCH 07/13] perf: Save cmdline arguments earlier

2015-12-04 Thread Josh Poimboeuf
perf_env__set_cmdline() only saves the arguments the first time it's called. It doesn't need to be called every time the options and suboptions are parsed. Instead it can just be called once. This also has the advantage of making the option parsing code less perf-specific so it can be moved out

Re: [PATCH net] atl1c: Improve driver not to do order 4 GFP_ATOMIC allocation

2015-12-04 Thread David Miller
From: Pavel Machek Date: Fri, 4 Dec 2015 22:30:27 +0100 > On Fri 2015-12-04 11:21:40, David Miller wrote: >> From: Pavel Machek >> Date: Fri, 4 Dec 2015 09:11:27 +0100 >> >> >> >>if (unlikely(!ring_header->desc)) { >> >> >> - dev_err(&pdev->dev, "pci_alloc_consistend failed

[PATCH 10/13] perf: Move help_unknown_cmd() to its own file

2015-12-04 Thread Josh Poimboeuf
help_unknown_cmd() is quite perf-specific because it relies on some perf_config*() functions. Move it and its supporting functions out into a separate file so that help.c can be moved to a library. Signed-off-by: Josh Poimboeuf --- tools/perf/util/Build | 1 + tools/perf/util/hel

[PATCH 11/13] perf tools: Move strlcpy() to tools/lib/string.c

2015-12-04 Thread Josh Poimboeuf
Move strlcpy() to tools/lib/string.c so it can be used by other tools, namely abspath.c which is getting moved to a library. Signed-off-by: Josh Poimboeuf --- tools/include/linux/string.h | 5 + tools/lib/string.c | 19 +++ tools/perf/util/path.c | 18 ---

[PATCH 00/13] perf tools: Move perf subcommand framework into lib/tools

2015-12-04 Thread Josh Poimboeuf
Ingo suggested that I factor out the perf subcommand functionality (originally copied from git) into tools/lib so that it can be used by stacktool[*] and possibly others. All the subcommand option handling files have been moved into libapi, including parse-options.c, run-command.c, exec_cmd.c, hel

RE

2015-12-04 Thread SHELL
Are You In Need Of A Private Or Business Loans from $10,000.00 to $10.000.000.00 At 1% Rate For Various Purposes? If Yes; Contact us Via Email: shell.l...@qq.com Full Name: Amount Needed: Duration: Country: Cell No: Sex: Best Regards -- To unsubscribe from this list: send the line "unsubscribe

[PATCH 13/13] perf tools: Move subcommand framework and related utils to libapi

2015-12-04 Thread Josh Poimboeuf
The perf subcommand framework is needed for other tools. Move parse-options.c and its dependencies over to libapi. Any function names with 'perf' have been renamed to something more generic. Also created a util_cfg struct for passing perf-specific configuration to the library. Specifying the co

[PATCH 09/13] perf: Move cmd_version() to builtin-version.c

2015-12-04 Thread Josh Poimboeuf
Move cmd_version() to its own file so that help.c can be moved to a library. Signed-off-by: Josh Poimboeuf --- tools/perf/Build | 1 + tools/perf/builtin-version.c | 9 + tools/perf/util/help.c | 7 --- 3 files changed, 10 insertions(+), 7 deletions(-) create mode

[PATCH 01/13] perf: Use -iquote for local include paths

2015-12-04 Thread Josh Poimboeuf
If there's a local header file which has the same name as a system header file, '#include ' will mistakenly include the local file instead of the system file. With the next patch we'll have a string.h file. Use the '-iquote' option to prepare for it so that '#include "string.h"' picks up the loca

Re: [PATCH v6 04/19] arm64: change some CONFIG_COMPAT over to use CONFIG_AARCH32_EL0 instead

2015-12-04 Thread Yury Norov
On Thu, Dec 03, 2015 at 12:02:27PM +, Catalin Marinas wrote: > On Wed, Nov 18, 2015 at 12:16:44AM +0300, Yury Norov wrote: > > From: Andrew Pinski > > > > Reviewed-by: David Daney > > > > Signed-off-by: Philipp Tomsich > > Signed-off-by: Christoph Muellner > > Signed-off-by: Yury Norov >

[PATCH 12/13] perf tools: Move perf subcommand framework into a library

2015-12-04 Thread Josh Poimboeuf
The perf subcommand framework will soon be needed by stacktool. Move parse-options.c, run-command.c, exec_cmd.c, help.c, usage.c, and their dependencies over to libapi in 'tools/lib/api/util'. Functions with 'perf' in their name have been given more generic names. Also created a util_cfg struct

Re: [PATCH v4] livepatch: Cleanup module page permission changes

2015-12-04 Thread Jiri Kosina
On Fri, 4 Dec 2015, Josh Poimboeuf wrote: > > (1) I pull your 'modules-next' branch, apply this patch on top, and wait > > for your merge with Linus and send merge request afterwards > > (2) If you are okay with rebasing your tree (seems like this is > > ocassionally happening), how abou

Re: [PATCH 18/19] fuse: Restrict allow_other to the superblock's namespace or a descendant

2015-12-04 Thread Serge E. Hallyn
On Fri, Dec 04, 2015 at 02:43:19PM -0600, Seth Forshee wrote: > On Fri, Dec 04, 2015 at 02:05:41PM -0600, Serge E. Hallyn wrote: > > Quoting Seth Forshee (seth.fors...@canonical.com): > > > Unprivileged users are normally restricted from mounting with the > > > allow_other option by system policy,

Re: [PATCH 17/19] fuse: Support fuse filesystems outside of init_user_ns

2015-12-04 Thread Serge E. Hallyn
On Fri, Dec 04, 2015 at 02:41:22PM -0600, Seth Forshee wrote: > On Fri, Dec 04, 2015 at 02:03:55PM -0600, Serge E. Hallyn wrote: > > Quoting Seth Forshee (seth.fors...@canonical.com): > > > Update fuse to translate uids and gids to/from the user namspace > > > of the process servicing requests on /

[RFC] usb: coccinelle and checkpatch cleanup

2015-12-04 Thread Geyslan G. Bem
While applying the "scripts/coccinelle/misc/compare_const_fl.cocci" in usb/host/ tree I found files that deserve almost a full cleanup (very wrong coding style). Eg. drivers/usb/host/ohci-dbg.c Can I do a full cleaning or only coccinelle patches? -- Regards, Geyslan G. Bem hackingbits.com -- To

Re: [PATCH v2 3/9] ARM: hisi: enable Hi3519 soc

2015-12-04 Thread Arnd Bergmann
On Friday 04 December 2015 12:07:58 xuejiancheng wrote: > On 2015/12/3 17:40, Arnd Bergmann wrote: > > On Thursday 03 December 2015 10:42:45 Jiancheng Xue wrote: > >> --- a/arch/arm/mach-hisi/Kconfig > >> +++ b/arch/arm/mach-hisi/Kconfig > >> @@ -12,6 +12,14 @@ if ARCH_HISI > >> > >> menu "Hisil

Re: [PATCH v4] livepatch: Cleanup module page permission changes

2015-12-04 Thread Jiri Kosina
On Fri, 4 Dec 2015, Rusty Russell wrote: > > What do you think? > > Please cherry-pick my whole module-next tree. They have my SOB already. > You can push them to Linus along with your livepatch stuff at your > convenience for the merge window. > > Once you've done that, I'll rebase modules-nex

Re: [PATCH v4] livepatch: Cleanup module page permission changes

2015-12-04 Thread Jiri Kosina
On Thu, 3 Dec 2015, Josh Poimboeuf wrote: > Calling set_memory_rw() and set_memory_ro() for every iteration of the > loop in klp_write_object_relocations() is messy, inefficient, and > error-prone. > > Change all the read-only pages to read-write before the loop and convert > them back to read-on

[PATCH v3 9/9] Revert "dmaengine: dw: platform: provide platform data for Intel"

2015-12-04 Thread Andy Shevchenko
Since we have a work around to prevent a system hangup we don't need to provide a platform data explicitly anymore. This reverts commit 175267b389f781748e2bbb6c737e76b5c9bc4c88. Signed-off-by: Andy Shevchenko --- drivers/dma/dw/platform.c | 17 + 1 file changed, 1 insertion(+),

[PATCH v3 0/9] ACPI / LPSS: fix system hangup on BYT/BSW/CHT

2015-12-04 Thread Andy Shevchenko
Here is a v3 of the next generation (previous one is [1]) of the long standing power issue fix regarding to LPSS on Intel Baytrail and Braswell SoCs, in particularly ASuS T100TA. There are few bugs already opened on kernel.org's and RedHat's bugzilla sites. The series depends on the patch submitte

ARM EFI stub and the EfiPersistentMemory type

2015-12-04 Thread Elliott, Robert (Persistent Memory)
drivers/firmware/efi/libstub/efi-stub-helper.c get_dram_base() parses the UEFI memory map, but just looks at the EFI_MEMORY_WB attribute while searching for the base memory address, not the type: unsigned long get_dram_base(efi_system_table_t *sys_table_arg) { ... for_each_efi_memory_de

Re: rhashtable: Use __vmalloc with GFP_ATOMIC for table allocation

2015-12-04 Thread David Miller
From: Herbert Xu Date: Fri, 4 Dec 2015 22:39:56 +0800 > When an rhashtable user pounds rhashtable hard with back-to-back > insertions we may end up growing the table in GFP_ATOMIC context. > Unfortunately when the table reaches a certain size this often > fails because we don't have enough physic

Re: [PATCH 1/2] mm: bring in additional flag for fixup_user_fault to signal unlock

2015-12-04 Thread Andrea Arcangeli
On Thu, Nov 26, 2015 at 06:27:01PM +0100, Dominik Dingel wrote: > @@ -599,6 +603,10 @@ int fixup_user_fault(struct task_struct *tsk, struct > mm_struct *mm, > if (!(vm_flags & vma->vm_flags)) > return -EFAULT; > > + if (unlocked) > + fault_flags |= FAULT_FLAG_

[PATCH v3 8/9] dmaengine: dw: return immediately from IRQ when DMA isn't in use

2015-12-04 Thread Andy Shevchenko
There is no need to bother the hardware when all channels are idle. We have not to get any interrupts. Signed-off-by: Andy Shevchenko --- drivers/dma/dw/core.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/dma/dw/core.c b/drivers/dma/dw/core.c index 7067b6d

[PATCH v2] printk: help pr_debug and pr_devel to optimize out arguments

2015-12-04 Thread Aaron Conole
Currently, pr_debug and pr_devel will not elide function call arguments appearing in calls to the no_printk for these macros. This is because all side effects must be honored before proceeding to the 0-value assignment in no_printk. The behavior is contrary to documentation found in the CodingStyl

[PATCH v3 5/9] ACPI / LPSS: do delay for all LPSS devices when D3->D0

2015-12-04 Thread Andy Shevchenko
The LPSS DMA device has no context to save, though it requires the same delay like the rest of LPSS devices when power state is changed from D3 to D0. Do delay for the DMA device as well. Signed-off-by: Andy Shevchenko --- drivers/acpi/acpi_lpss.c | 23 +++ 1 file changed, 1

[PATCH v3 6/9] ACPI / LPSS: override power state for LPSS DMA device

2015-12-04 Thread Andy Shevchenko
This is a third approach to workaround long standing issue with LPSS on BayTrail. First one [1] was reverted since it didn't resolve the issue comprehensively. Second one [2] was rejected by internal review. The LPSS DMA controller does not have neither _PS0 nor _PS3 method. Moreover it can be pow

[PATCH v3 4/9] ACPI / LPSS: power on when probe() and otherwise when remove()

2015-12-04 Thread Andy Shevchenko
When LPSS drivers are compiled as a module, which is usually the case, the second probe of that driver may fail because the driver is written in an assumption that device is powered on. That is not the case for all drivers. Moreover we would like not drain power in vain. Implement ->activate() and

[PATCH v3 2/9] Revert "ACPI / LPSS: allow to use specific PM domain during ->probe()"

2015-12-04 Thread Andy Shevchenko
The specific power domain can't be used in a way provided by the commit 01ac170ba29a, i.e. pointer to platform device is a subject to change during unbound / bind cycle. This reverts commit 01ac170ba29a9903ee590e1ef2d8e6b27b49a16c. Fixes: 3df2da968744 (Revert "ACPI / LPSS: introduce a 'proxy' dev

[PATCH v3 7/9] dmaengine: dw: platform: power on device on shutdown

2015-12-04 Thread Andy Shevchenko
We have to call dw_dma_disable() to stop any ongoing transfer. On some platforms we can't do that since DMA device is powered off. Moreover we have no possibility at that point to check if the platform is affected or not. That's why we call pm_runtime_get_sync() / pm_runtime_put() unconditionally.

[PATCH v3 3/9] ACPI / LPSS: allow to use specific PM domain during ->probe()

2015-12-04 Thread Andy Shevchenko
This is an amendment to previously pushed commit 01ac170ba29a (ACPI / LPSS: allow to use specific PM domain during ->probe()). We can't assign anything to the platform device on ADD_DEVICE stage since it might be changed during unbound / bind cycle. Signed-off-by: Andy Shevchenko --- drivers/acp

[PATCH v3 1/9] device core: add BUS_NOTIFY_DRIVER_NOT_BOUND notification

2015-12-04 Thread Andy Shevchenko
The users of BUS_NOTIFY_BIND_DRIVER have no chance to do any cleanup in case of a probe failure. In the result there might be problems, such as some resources that had been allocated will continue to be allocated and therefore lead to a resource leak. Introduce a new notification to inform the sub

[serial] Calling platform specific code on driver bind/unbind

2015-12-04 Thread Piotr Madalinski
Hi, I'm hacking my openwrt router and look for a proper way to make a serial driver call a platform-specific function such as this: static void ath79_enable_uart(void) { if (soc_is_ar933x()) ath79_gpio_function_enable(AR933X_GPIO_FUNC_UART_EN); } and static void ath79_disable_uart

Re: [PATCH] ARM64: Clear out any singlestep state on a ptrace detach operation

2015-12-04 Thread John Blackwood
Subject: Re: [PATCH] ARM64: Clear out any singlestep state on a ptrace detach operation From: Will Deacon Date: 12/04/2015 04:03 AM To: "Blackwood, John" CC: "linux-kernel@vger.kernel.org" , "o...@redhat.com" , "fweis...@gmail.com" On Thu, Dec 03, 2015 at 02:05:31PM -0600, John Blackwood wro

Re: bpf: undefined shift in __bpf_prog_run

2015-12-04 Thread David Miller
From: Alexei Starovoitov Date: Fri, 4 Dec 2015 12:35:23 -0800 > On Fri, Dec 04, 2015 at 08:48:57PM +0100, Dmitry Vyukov wrote: >> >> For example, a compiler can assume that result of left shift is larger >> or equal to first operand, which in turn can allow it to elide some >> bounds check in co

Re: [RFC PATCH 1/2] PCI/ACPI: Add ACPI support for non ECAM Host Bridge Controllers

2015-12-04 Thread Arnd Bergmann
On Friday 04 December 2015 14:46:19 Jeremy Linton wrote: > On 12/03/2015 02:58 PM, Arnd Bergmann wrote: > > On Thursday 03 December 2015 17:58:26 Lorenzo Pieralisi wrote: > >> I will put together a proposal to define the way we specify HID and > >> related DSD properties for PCI host controllers an

Re: [PATCH net-next v2 4/4] net: mvneta: Spread out the TX queues management on all CPUs

2015-12-04 Thread Arnd Bergmann
On Friday 04 December 2015 11:12:30 Eric Dumazet wrote: > On Fri, 2015-12-04 at 19:45 +0100, Gregory CLEMENT wrote: > > With this patch each CPU is associated with its own set of TX queues. In > > the same time the SKB received in mvneta_tx is bound to the queue > > associated to the CPU sending th

Re: [PATCH net] atl1c: Improve driver not to do order 4 GFP_ATOMIC allocation

2015-12-04 Thread Pavel Machek
On Fri 2015-12-04 11:21:40, David Miller wrote: > From: Pavel Machek > Date: Fri, 4 Dec 2015 09:11:27 +0100 > > >> >> if (unlikely(!ring_header->desc)) { > >> >> - dev_err(&pdev->dev, "pci_alloc_consistend failed\n"); > >> >> + dev_err(&pdev->dev, "could not ge

Re: [PATCH 1/3] mtd: brcmnand: Add brcm,bcm6368-nand device tree binding

2015-12-04 Thread Simon Arlott
On Fri, December 4, 2015 16:04, Jonas Gorski wrote: > On Thu, Dec 3, 2015 at 12:41 AM, Simon Arlott wrote: >> + * "brcm,nand-bcm6368" >> + - compatible: should contain "brcm,nand-bcm", "brcm,nand-bcm6368" >> + - reg: (required) the 'NAND_INTR_BASE' register range, with combined >> statu

[PATCH v5 4/4] ARM: dts: sun8i: Add Orange Pi Plus support

2015-12-04 Thread Jens Kuske
The Orange Pi Plus is a SBC based on the Allwinner H3 SoC with 8GB eMMC, multiple USB ports through a USB hub chip, SATA through a USB-SATA bridge, one uSD slot, a 10/100/1000M ethernet port, WiFi, HDMI, headphone jack, IR receiver, a microphone, a CSI connector and a 40-pin GPIO header. Signed-of

[PATCH v5 1/4] clk: sunxi: Add H3 clocks support

2015-12-04 Thread Jens Kuske
The H3 clock control unit is similar to the those of other sun8i family members like the A23. It adds a new bus gates clock similar to the simple gates, but with a different parent clock for each single gate. Some of the gates use the new AHB2 clock as parent, whose clock source is muxable between

[PATCH v5 3/4] ARM: dts: sunxi: Add Allwinner H3 DTSI

2015-12-04 Thread Jens Kuske
The Allwinner H3 is a home entertainment system oriented SoC with four Cortex-A7 cores and a Mali-400MP2 GPU. Signed-off-by: Jens Kuske --- arch/arm/boot/dts/sun8i-h3.dtsi | 497 1 file changed, 497 insertions(+) create mode 100644 arch/arm/boot/dts/sun8

[PATCH v5 2/4] pinctrl: sunxi: Add H3 PIO controller support

2015-12-04 Thread Jens Kuske
The H3 uses the same pin controller as previous SoC's from Allwinner. Add support for the pins controlled by the main PIO controller. Signed-off-by: Jens Kuske --- .../bindings/pinctrl/allwinner,sunxi-pinctrl.txt | 1 + drivers/pinctrl/sunxi/Kconfig | 4 + drivers/pinc

[PATCH v5 0/4] ARM: sunxi: Allwinner H3 support

2015-12-04 Thread Jens Kuske
Hi everyone, This is v5 of my patch series introducing basic kernel support for Allwinner's H3 SoC. It mainly adds basic clocks, resets and pinctrl. It also adds interrupts, timers, watchdog, RTC, dmaengine, MMC and UARTs, which are mostly compatible to those in earlier SoCs like A23 and A31, and

Re: [PATCH v2] PCI: dra7xx: mark dra7xx_pcie_msi irq as IRQF_NO_THREAD

2015-12-04 Thread Grygorii Strashko
On 12/04/2015 08:46 PM, Bjorn Helgaas wrote: > Hi Grygorii, > > On Fri, Nov 20, 2015 at 03:59:26PM +0200, Grygorii Strashko wrote: >> On -RT, TI DRA7 PCIe driver always produces below backtrace when the >> first PCI interrupt is triggered: >> >> [ cut here ] >> WARNING: CPU

Re: bpf: undefined shift in __bpf_prog_run

2015-12-04 Thread Hannes Frederic Sowa
Hello, On Fri, Dec 4, 2015, at 20:48, Dmitry Vyukov wrote: > On Fri, Dec 4, 2015 at 8:26 PM, David Miller wrote: > > From: Alexei Starovoitov > > Date: Fri, 4 Dec 2015 11:10:15 -0800 > > > >> just don't generate random bpf programs with such shifts. > > > > Agreed, it is exactly the same as if t

Reorganize perf kernel side

2015-12-04 Thread Borislav Petkov
Hi guys, so I've had my eyes on this for a long time now and it has managed to get on my nerves just enough to do something about it :-) So how about moving perf stuff to arch/x86/perf/ and get rid of the prefixes in the filenames. This also flattens our folder structure which is a good thing and

Re: [f2fs-dev] [PATCH] f2fs: fix to convert inline inode in ->setattr

2015-12-04 Thread Jaegeuk Kim
On Fri, Dec 04, 2015 at 12:55:23PM -0800, Jaegeuk Kim wrote: > Hi Chao, > > On Tue, Dec 01, 2015 at 11:36:16AM +0800, Chao Yu wrote: > > In commit 3c4541452748 ("f2fs: do not trim preallocated blocks when > > truncating after i_size"), in order to follow the regulation: "truncate(x) > > where x >

[PATCH 76/71] ncr5380: Enable PDMA for DTC chips

2015-12-04 Thread Ondrej Zary
Add I/O register mapping for DTC chips and enable PDMA mode. These chips have 16-bit wide HOST BUFFER register (counter register at offset 0x0d increments by 2 on each HOST BUFFER read). Detect it automatically. Large PIO transfers crash at least the DTCT-436P chip (all reads result in 0xFF) so t

Re: [PATCH (v2) 1/2] reset: Add brcm,bcm6345-reset device tree binding

2015-12-04 Thread Simon Arlott
On Thu, December 3, 2015 08:39, Philipp Zabel wrote: > Am Mittwoch, den 02.12.2015, 21:03 + schrieb Simon Arlott: >> +periph_soft_rst: reset-controller { >> +compatible = "brcm,bcm63168-reset", "brcm,bcm6345-reset"; >> +regmap = <&periph_cntl>; >> +offset = <0x10>; >> + >> +#res

Re: [PATCH v2 0/2] dm verity: add support for error correction

2015-12-04 Thread Mike Snitzer
On Fri, Dec 04 2015 at 5:03P -0500, Sami Tolvanen wrote: > On Thu, Dec 03, 2015 at 06:05:38PM -0500, Mike Snitzer wrote: > > If you're OK with those changes I'll fold that commit into your main FEC > > commit. > > Yes, these changes look fine. Thanks! OK, I reviewed the FEC code and have stage

Re: [PATCH 2/2] phy: berlin-usb: don't set device's driver_data

2015-12-04 Thread Antoine Tenart
On Fri, Dec 04, 2015 at 09:57:01PM +0800, Jisheng Zhang wrote: > After commit 739ae3452d0e ("phy: berlin-usb: Set drvdata for phy and > use it"), we get the address of priv by phy_get_drvdata(), so there's > no need to set device's driver_data any more. This patch removes the > call of platform_set

Re: [PATCH 1/2] phy: berlin-usb: remove non-necessary header files

2015-12-04 Thread Antoine Tenart
On Fri, Dec 04, 2015 at 09:57:00PM +0800, Jisheng Zhang wrote: > We don't need gpio related header files, so remove them. > > Signed-off-by: Jisheng Zhang Acked-by: Antoine Tenart > --- > drivers/phy/phy-berlin-usb.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/phy/phy-b

Re: [PATCH v2] PCI/AER: enable SERR# forwarding for bridges and switches

2015-12-04 Thread Bjorn Helgaas
Hi Sinan, On Wed, Dec 02, 2015 at 11:49:56AM -0500, Sinan Kaya wrote: > A PCIe card behind a switch is unable to report its errors when SERR# > forwarding is not enabled on the PCIe# switch's secondary interface > according to the spec. This patch enables SERR# forwarding when the PCI > header typ

Re: [PATCH 1/2] clk: Add brcm,bcm63xx-gate-clk device tree binding

2015-12-04 Thread Simon Arlott
On Fri, December 4, 2015 14:30, Rob Herring wrote: > On Mon, Nov 30, 2015 at 08:52:55PM +, Simon Arlott wrote: >> +periph_clk: periph_clk { >> +compatible = "brcm,bcm63168-gate-clk", "brcm,bcm63xx-gate-clk"; >> +regmap = <&periph_cntl>; > > What else is in periph_cntrl? Could this all j

[PATCH 74/71] ncr5380: Enable PDMA for NCR53C400A

2015-12-04 Thread Ondrej Zary
Add I/O register mapping for NCR53C400A and enable PDMA mode to improve performance and fix non-working IRQ. Tested with HP C2502 (and user-space enabler). Signed-off-by: Ondrej Zary --- drivers/scsi/g_NCR5380.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/dr

[PATCH 73/71] ncr5380: Use runtime register mapping

2015-12-04 Thread Ondrej Zary
Convert compile-time C400_ register mapping to runtime mapping. This removes the weird negative register offsets and allows adding additional mappings. Signed-off-by: Ondrej Zary --- drivers/scsi/NCR5380.h | 13 +- drivers/scsi/g_NCR5380.c | 61 ++---

Re: use-after-free in __perf_install_in_context

2015-12-04 Thread Dmitry Vyukov
On Fri, Dec 4, 2015 at 9:32 PM, Alexei Starovoitov wrote: > On Fri, Dec 04, 2015 at 09:04:35PM +0100, Dmitry Vyukov wrote: >> Hello, >> >> While running syzkaller fuzzer I am seeing lots of the following >> use-after-free reports. Unfortunately all my numerous attempts to >> reproduce them in a co

Re: [PATCH] extcon: arizona: Update naming for micd-timeout DT to include units

2015-12-04 Thread Pavel Machek
On Mon 2015-11-23 14:51:30, Charles Keepax wrote: > Add time units of -ms (milliseconds) to wlf,micd-timeout. > > Signed-off-by: Charles Keepax > --- > .../devicetree/bindings/extcon/extcon-arizona.txt |2 +- > drivers/extcon/extcon-arizona.c|2 +- > 2 files changed,

Re: [PATCH] f2fs: fix to convert inline inode in ->setattr

2015-12-04 Thread Jaegeuk Kim
Hi Chao, On Tue, Dec 01, 2015 at 11:36:16AM +0800, Chao Yu wrote: > In commit 3c4541452748 ("f2fs: do not trim preallocated blocks when > truncating after i_size"), in order to follow the regulation: "truncate(x) > where x > i_size will not trim all blocks past i_size." like other file > systems,

Re: [PATCH 3/4] locking: Introduce smp_cond_acquire()

2015-12-04 Thread Waiman Long
On 12/03/2015 03:26 PM, Peter Zijlstra wrote: On Thu, Dec 03, 2015 at 04:37:26PM +, Will Deacon wrote: +#define smp_cond_acquire(cond) do {\ + while (!(cond)) \ + cpu_relax();\ + smp_rmb(); /* ctrl + rmb := acq

Re: bpf: undefined shift in __bpf_prog_run

2015-12-04 Thread Alexei Starovoitov
On Fri, Dec 04, 2015 at 12:44:09PM -0800, Kostya Serebryany wrote: > On Fri, Dec 4, 2015 at 12:35 PM, Alexei Starovoitov < > alexei.starovoi...@gmail.com> wrote: > > > On Fri, Dec 04, 2015 at 08:48:57PM +0100, Dmitry Vyukov wrote: > > > > > > For example, a compiler can assume that result of left

Re: mm: BUG in __munlock_pagevec

2015-12-04 Thread Sasha Levin
On 12/04/2015 03:46 PM, Sasha Levin wrote: > On 12/01/2015 04:38 PM, Kirill A. Shutemov wrote: >> > On Mon, Nov 30, 2015 at 09:24:56AM -0500, Sasha Levin wrote: >> > Hi all, >> > >> > I've hit the following while fuzzing with trinity on the latest -next >> > kernel: >> >

Re: [PATCH 14/19] fs: Permit FIBMAP for users with CAP_SYS_RAWIO in s_user_ns

2015-12-04 Thread Seth Forshee
On Fri, Dec 04, 2015 at 02:07:36PM -0600, Serge E. Hallyn wrote: > Heh, I was looking over > http://www.gossamer-threads.com/lists/linux/kernel/103611 > a little while ago :) The same question was asked 16 years ago. Apparently > the answer then was that it was easier than fixing the code. So i

Re: mm: BUG in __munlock_pagevec

2015-12-04 Thread Sasha Levin
On 12/01/2015 04:38 PM, Kirill A. Shutemov wrote: > On Mon, Nov 30, 2015 at 09:24:56AM -0500, Sasha Levin wrote: >> > Hi all, >> > >> > I've hit the following while fuzzing with trinity on the latest -next >> > kernel: >> > >> > >> > [ 850.305385] page:ea001a5a0f00 count:0 mapcount:1 >> >

Re: [RFC PATCH 1/2] PCI/ACPI: Add ACPI support for non ECAM Host Bridge Controllers

2015-12-04 Thread Jeremy Linton
On 12/03/2015 02:58 PM, Arnd Bergmann wrote: On Thursday 03 December 2015 17:58:26 Lorenzo Pieralisi wrote: I will put together a proposal to define the way we specify HID and related DSD properties for PCI host controllers and send it to the ACPI working group for review. That also requires a

Re: [PATCH 18/19] fuse: Restrict allow_other to the superblock's namespace or a descendant

2015-12-04 Thread Seth Forshee
On Fri, Dec 04, 2015 at 02:05:41PM -0600, Serge E. Hallyn wrote: > Quoting Seth Forshee (seth.fors...@canonical.com): > > Unprivileged users are normally restricted from mounting with the > > allow_other option by system policy, but this could be bypassed > > for a mount done with user namespace ro

Re: [PATCH 17/19] fuse: Support fuse filesystems outside of init_user_ns

2015-12-04 Thread Seth Forshee
On Fri, Dec 04, 2015 at 02:03:55PM -0600, Serge E. Hallyn wrote: > Quoting Seth Forshee (seth.fors...@canonical.com): > > Update fuse to translate uids and gids to/from the user namspace > > of the process servicing requests on /dev/fuse. Any ids which do > > not map into the namespace will result

Re: BUG: KASAN: slab-out-of-bounds in ses_enclosure_data_process+0x900/0xe50

2015-12-04 Thread Ewan Milne
On Fri, 2015-12-04 at 11:16 -0800, James Bottomley wrote: > On Fri, 2015-12-04 at 11:58 -0500, Ewan Milne wrote: > > On Thu, 2015-12-03 at 23:20 +0100, Andrea Gelmini wrote: > > > On Thu, Dec 03, 2015 at 12:59:06PM -0800, James Bottomley wrote: > > > > sg_map -i > > > > > > > > in your system, you

Re: [RFC PATCH 1/2] PCI/ACPI: Add ACPI support for non ECAM Host Bridge Controllers

2015-12-04 Thread Jeremy Linton
On 12/03/2015 09:19 AM, Gabriele Paoloni wrote: This patch modifies the ARM64 architecure specific PCI framework to support Host Bridge specific quirks. these quirks are need for host bridge controllers that are not fully ECAM compliant. The quirks array allows each vendor to define his own acpi_

Re: [PATCH 15/19] capabilities: Allow privileged user in s_user_ns to set file caps

2015-12-04 Thread Seth Forshee
On Fri, Dec 04, 2015 at 01:42:06PM -0600, Serge E. Hallyn wrote: > Quoting Seth Forshee (seth.fors...@canonical.com): > > A privileged user in a super block's s_user_ns is privileged > > towards that file system and thus should be allowed to set file > > capabilities. The file capabilities will not

Re: [PATCH v2 2/3] clk: bcm2835: Support for clock parent selection

2015-12-04 Thread Remi Pommarel
On Thu, Dec 03, 2015 at 04:37:07PM -0800, Eric Anholt wrote: > Remi Pommarel writes: > > > On Wed, Nov 18, 2015 at 10:30:17AM -0800, Eric Anholt wrote: > > > > [...] > > > >> > +static int bcm2835_clock_determine_rate(struct clk_hw *hw, > >> > +struct clk_rate_request *req) > >> >

Re: bpf: undefined shift in __bpf_prog_run

2015-12-04 Thread Alexei Starovoitov
On Fri, Dec 04, 2015 at 08:48:57PM +0100, Dmitry Vyukov wrote: > > For example, a compiler can assume that result of left shift is larger > or equal to first operand, which in turn can allow it to elide some > bounds check in code, which in turn can lead to an exploit. I am not > saying that this

Re: use-after-free in __perf_install_in_context

2015-12-04 Thread Alexei Starovoitov
On Fri, Dec 04, 2015 at 09:04:35PM +0100, Dmitry Vyukov wrote: > Hello, > > While running syzkaller fuzzer I am seeing lots of the following > use-after-free reports. Unfortunately all my numerous attempts to > reproduce them in a controlled environment failed. They pop up during > fuzzing periodi

[GIT PULL] Ceph update for -rc4

2015-12-04 Thread Sage Weil
Hi Linus, Please pull the following fix from git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client.git for-linus This addresses a refcounting bug that leads to a use-after-free. Thanks! sage Ilya Dryomov (1): rb

Re: [PATCH] clocksource: Add CPU info to clocksource watchdog reporting

2015-12-04 Thread John Stultz
On Thu, Sep 10, 2015 at 2:01 AM, Seiichi Ikarashi wrote: > The clocksource watchdog reporting was improved by 0b046b217ad4c6. > I want to add the info of CPU where the watchdog detects a deviation > because it is necessary to identify the trouble spot if the clocksource is > TSC. > > Signed-off-b

Re: [PATCH] time: verify time values in adjtimex ADJ_SETOFFSET to avoid overflow

2015-12-04 Thread John Stultz
On Thu, Dec 3, 2015 at 7:09 PM, Sasha Levin wrote: > Make sure the tv_usec makes sense. We might multiply them later which can > cause an overflow and undefined behavior. > > Signed-off-by: Sasha Levin Thanks for sending this in. I've queued it for 4.5 thanks -john -- To unsubscribe from this l

[PATCH v5 0/5] SMP support for Broadcom NSP

2015-12-04 Thread Kapil Hali
Changes in v5: * Made 'enable-method' for SMP per 'cpu' core instead of 'cpus' node, in the DT files for BCM NSP and BCM4708. Change in v4: * Cleaned up kona_smp.c and associated DT file. * Corrected documentation for DT bindings. * Corrected secondary-boot-reg entry for bcm4708 DT file. Change i

[PATCH v5 1/5] dt-bindings: add SMP enable-method for Broadcom NSP

2015-12-04 Thread Kapil Hali
Add a compatible string "brcm,bcm-nsp-smp" for Broadcom's Northstar Plus CPU to the 32-bit ARM CPU device tree binding documentation file and create a new binding documentation for Northstar Plus CPU. Signed-off-by: Kapil Hali --- .../bindings/arm/bcm/brcm,nsp-cpu-method.txt | 39 +

Re: [PATCH] ntp: verify offset doesn't overflow in ntp_update_offset

2015-12-04 Thread John Stultz
On Thu, Dec 3, 2015 at 12:46 PM, Sasha Levin wrote: > We need to make sure that the offset is valid before manipulating it, > otherwise it might overflow on the multiplication. > > Signed-off-by: Sasha Levin Thanks for sending this in. I've queued it for 4.5 thanks -john -- To unsubscribe from

Re: [PATCH] time: Avoid signed overflow in timekeeping_get_ns()

2015-12-04 Thread John Stultz
On Sun, Nov 29, 2015 at 5:30 PM, David Gibson wrote: > 1e75fa8 "time: Condense timekeeper.xtime into xtime_sec" replaced a call to > clocksource_cyc2ns() from timekeeping_get_ns() with an open-coded version > of the same logic to avoid keeping a semi-redundant struct timespec > in struct timekeepe

[PATCH v5 3/5] ARM: dts: Add SMP support for Broadcom NSP

2015-12-04 Thread Kapil Hali
Add device tree changes required for providing SMP support for Broadcom Northstar Plus SoC. Signed-off-by: Kapil Hali --- arch/arm/boot/dts/bcm-nsp.dtsi | 33 + 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/arch/arm/boot/dts/bcm-nsp.dtsi b/arch/a

[PATCH v5 4/5] ARM: BCM: Add SMP support for Broadcom NSP

2015-12-04 Thread Kapil Hali
Add SMP support for Broadcom's Northstar Plus SoC cpu enable method. This changes also consolidates iProc family's - BCM NSP and BCM Kona, platform SMP handling in a common file. Northstar Plus SoC is based on ARM Cortex-A9 revision r3p0 which requires configuration for ARM Errata 764369 for SMP.

[PATCH v5 5/5] ARM: BCM: Add SMP support for Broadcom 4708

2015-12-04 Thread Kapil Hali
From: Jon Mason Add SMP support for Broadcom's 4708 SoCs. Signed-off-by: Jon Mason Acked-by: Hauke Mehrtens Tested-by: Hauke Mehrtens Signed-off-by: Kapil Hali --- arch/arm/boot/dts/bcm4708.dtsi | 2 ++ arch/arm/mach-bcm/Kconfig | 1 + arch/arm/mach-bcm/Makefile | 3 +++ 3 files ch

[PATCH v5 2/5] ARM: BCM: Clean up SMP support for Broadcom Kona

2015-12-04 Thread Kapil Hali
These changes cleans up SMP implementaion for Broadcom's Kona SoC which are required for handling SMP for iProc family of SoCs at a single place for BCM NSP and BCM Kona. Signed-off-by: Kapil Hali --- arch/arm/boot/dts/bcm11351.dtsi | 2 +- arch/arm/boot/dts/bcm21664.dtsi | 2 +- arch/arm/mach

Re: [PATCH RFC] Introduce new security.nscapability xattr

2015-12-04 Thread Serge E. Hallyn
Quoting Eric W. Biederman (ebied...@xmission.com): > "Serge E. Hallyn" writes: > > > A common way for daemons to run with minimal privilege is to start as root, > > perhaps setuid-root, choose a desired capability set, set PR_SET_KEEPCAPS, > > then change uid to non-root. A simpler way to achiev

Re: [PATCH v2 2/3] sched/fair: Move hot load_avg into its own cacheline

2015-12-04 Thread Waiman Long
On 12/03/2015 09:07 PM, Mike Galbraith wrote: On Thu, 2015-12-03 at 14:34 -0500, Waiman Long wrote: On 12/02/2015 11:32 PM, Mike Galbraith wrote: Is that with the box booted skew_tick=1? I haven't tried that kernel parameter. I will try it to see if it can improve the situation. BTW, will ther

Re: [PATCH v2] vhost: replace % with & on data path

2015-12-04 Thread Venkatesh Srinivas
On Mon, Nov 30, 2015 at 11:15:23AM +0200, Michael S. Tsirkin wrote: > We know vring num is a power of 2, so use & > to mask the high bits. > > Signed-off-by: Michael S. Tsirkin > --- The generated code switches from DIV -> masking, source is clearer as well. Tested-by: Venkatesh Srinivas -- v

Re: [PATCH 00/13] mvneta Buffer Management and enhancements

2015-12-04 Thread Florian Fainelli
(no top posting please) On 02/12/15 00:26, Marcin Wojtas wrote: > Hi Florian, > > Can you please describe in more details, what would you expect from > such special abstraction layer regarding buffer managers? I'd like to > understand more of your expectations and evaluate possible work. Well, s

[PATCH] drivers: dma-coherent: simplify dma_init_coherent_memory return value

2015-12-04 Thread Michal Nazarewicz
Since only dma_declare_coherent_memory cares about dma_init_coherent_memory returning part of flags as it return value, move the condition to the former and simplify the latter. This in turn makes rmem_dma_device_init less confusing. Reported-by: Fugang Duan Signed-off-by: Michal Nazarewicz ---

RE: [PATCH] storvsc: add more logging for error and warning messages

2015-12-04 Thread Long Li
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Friday, December 4, 2015 1:53 AM > To: Long Li > Cc: KY Srinivasan ; Haiyang Zhang > ; James E.J. Bottomley ; > de...@linuxdriverproject.org; linux-kernel@vger.kernel.org; linux- > s...@vger.kernel.org > Sub

Re: [net-next v5 2/8] dpaa_eth: add support for DPAA Ethernet

2015-12-04 Thread David Miller
From: Joe Perches Date: Fri, 04 Dec 2015 12:00:35 -0800 > On Fri, 2015-12-04 at 14:55 -0500, David Miller wrote: >> From: Madalin Bucur >> Date: Thu, 3 Dec 2015 15:49:43 +0200 >> >> > @@ -0,0 +1,22 @@ >> > +menuconfig FSL_DPAA_ETH >> > + tristate "DPAA Ethernet" >> > + depends on FSL_SO

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