Re: [PATCH 2/2] kprobe: fix: Add ftrace_ops_assist_func to kprobe blacklist

2017-07-14 Thread Steven Rostedt
On Fri, 14 Jul 2017 10:58:35 -0400 Francis Deslauriers wrote: > This function is called when a kprobe is hit. Thus it should be > blacklisted to prevent kprobe to be triggered by kprobes. > > Signed-off-by: Francis Deslauriers > --- > kernel/trace/ftrace.c | 2 ++ > 1 file changed, 2 insertion

Re: [PATCH v8 06/10] mm: thp: check pmd migration entry in common path

2017-07-14 Thread Zi Yan
On 14 Jul 2017, at 5:29, Naoya Horiguchi wrote: > On Sat, Jul 01, 2017 at 09:40:04AM -0400, Zi Yan wrote: >> From: Zi Yan >> >> If one of callers of page migration starts to handle thp, >> memory management code start to see pmd migration entry, so we need >> to prepare for it before enabling. Th

RE: [PATCH 17/22] platform/x86: alienware-wmi: fix format string overflow warning

2017-07-14 Thread Mario.Limonciello
> -Original Message- > From: Arnd Bergmann [mailto:a...@arndb.de] > Sent: Friday, July 14, 2017 7:07 AM > To: linux-kernel@vger.kernel.org; Darren Hart ; Andy > Shevchenko > Cc: Greg Kroah-Hartman ; Linus Torvalds > ; Guenter Roeck ; > a...@linux-foundation.org; net...@vger.kernel.org; Dav

[GIT PULL] arch/tile changes for 4.13

2017-07-14 Thread Chris Metcalf
Linus, Please pull the following changes for 4.13 from: git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile.git master This adds support for an to help with removing __need_xxx #defines from glibc, and removes some dead code in arch/tile/mm/init.c. Chris Metcalf (1): til

Re: [PATCH v2] xattr: Enable security.capability in user namespaces

2017-07-14 Thread Mimi Zohar
On Fri, 2017-07-14 at 12:35 -0500, Serge E. Hallyn wrote: > Quoting Stefan Berger (stef...@linux.vnet.ibm.com): > > On 07/14/2017 09:34 AM, Serge E. Hallyn wrote: > > >Quoting Stefan Berger (stef...@linux.vnet.ibm.com): > > >>On 07/13/2017 08:38 PM, Eric W. Biederman wrote: > > >>>Stefan Berger wr

Re: [PATCH] tools/perf/pmu-events: Support additional POWER8+ PVR in mapfile

2017-07-14 Thread Arnaldo Carvalho de Melo
Em Mon, Jun 19, 2017 at 12:00:42PM +0530, Shriya escreveu: > Add support for POWER8+ PVR 004c0100 for Garrison Thanks, applied. - Arnaldo

Re: [PATCH v2] xattr: Enable security.capability in user namespaces

2017-07-14 Thread James Bottomley
On Fri, 2017-07-14 at 14:48 -0400, Mimi Zohar wrote: > The concern is with a shared filesystems.  In that case, for IMA it > would make sense to support a native and a namespace xattr.  If due > to xattr space limitations we have to limit the number of xattrs, > then we should limit it to two - a n

Re: [PATCH v5 1/2] clk: gate: expose clk_gate_ops::is_enabled

2017-07-14 Thread kbuild test robot
Hi Gabriel, [auto build test ERROR on clk/clk-next] [also build test ERROR on v4.12 next-20170714] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/gabriel-fernandez-st-com/clk-stm32h7-Add

Re: [PATCH v2] sctp: don't dereference ptr before leaving _sctp_walk_{params,errors}()

2017-07-14 Thread kbuild test robot
Hi Alexander, [auto build test ERROR on net-next/master] [also build test ERROR on next-20170714] [cannot apply to v4.12] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Alexander-Potapenko/sctp

Re: [PATCH v2] xattr: Enable security.capability in user namespaces

2017-07-14 Thread Eric W. Biederman
Stefan Berger writes: > On 07/14/2017 09:34 AM, Serge E. Hallyn wrote: >> Quoting Stefan Berger (stef...@linux.vnet.ibm.com): >>> On 07/13/2017 08:38 PM, Eric W. Biederman wrote: Stefan Berger writes: > On 07/13/2017 01:49 PM, Eric W. Biederman wrote: > >> My big question r

Re: [PATCH V4 3/6] iommu/arm-smmu: Invoke pm_runtime during probe, add/remove device

2017-07-14 Thread Will Deacon
On Fri, Jul 14, 2017 at 02:25:45PM -0400, Rob Clark wrote: > On Fri, Jul 14, 2017 at 2:06 PM, Will Deacon wrote: > > On Fri, Jul 14, 2017 at 01:42:13PM -0400, Rob Clark wrote: > >> On Fri, Jul 14, 2017 at 1:07 PM, Will Deacon wrote: > >> > On Thu, Jul 13, 2017 at 10:55:10AM -0400, Rob Clark wrote

Re: [GIT PULL] Please pull NFS client changes for Linux 4.13

2017-07-14 Thread Linus Torvalds
On Fri, Jul 14, 2017 at 7:25 AM, Dave Jones wrote: > On Thu, Jul 13, 2017 at 05:16:24PM -0400, Anna Schumaker wrote: > > > > git://git.linux-nfs.org/projects/anna/linux-nfs.git tags/nfs-for-4.13-1 > > Since this landed, I'm seeing this during boot.. > > ===

Re: [PATCH] ipv6: initialize treq->txhash in cookie_v6_check()

2017-07-14 Thread Neal Cardwell
On Fri, Jul 14, 2017 at 1:35 PM, Alexander Potapenko wrote: > On Fri, Jul 14, 2017 at 7:04 PM, Neal Cardwell wrote: >> On Fri, Jul 14, 2017 at 12:54 PM, Alexander Potapenko >> wrote: >>> KMSAN reported use of uninitialized memory in skb_set_hash_from_sk(), >>> which originated from the TCP requ

Re: [PATCH v12 6/8] mm: support reporting free page blocks

2017-07-14 Thread Michael S. Tsirkin
On Fri, Jul 14, 2017 at 02:30:23PM +0200, Michal Hocko wrote: > On Wed 12-07-17 20:40:19, Wei Wang wrote: > > This patch adds support for reporting blocks of pages on the free list > > specified by the caller. > > > > As pages can leave the free list during this call or immediately > > afterwards,

Re: [PATCH 17/22] platform/x86: alienware-wmi: fix format string overflow warning

2017-07-14 Thread Andy Shevchenko
On Fri, Jul 14, 2017 at 3:07 PM, Arnd Bergmann wrote: > gcc points out a possible format string overflow for a large value of 'zone': > > drivers/platform/x86/alienware-wmi.c: In function 'alienware_wmi_init': > drivers/platform/x86/alienware-wmi.c:461:24: error: '%02X' directive writing > betwee

Re: [PATCH, RESEND 03/14] drm/vmwgfx: avoid gcc-7 parentheses warning

2017-07-14 Thread Linus Torvalds
On Fri, Jul 14, 2017 at 2:25 AM, Arnd Bergmann wrote: > - return capable(CAP_SYS_ADMIN) ? : -EINVAL; > + return capable(CAP_SYS_ADMIN) ? 1 : -EINVAL; NAK. This takes unintentionally insane code and turns it intentionally insane. Any non-zero return is considered an error. The right f

Re: [PATCH v2] xattr: Enable security.capability in user namespaces

2017-07-14 Thread Stefan Berger
On 07/14/2017 01:36 PM, Eric W. Biederman wrote: Stefan Berger writes: On 07/14/2017 09:34 AM, Serge E. Hallyn wrote: Quoting Stefan Berger (stef...@linux.vnet.ibm.com): On 07/13/2017 08:38 PM, Eric W. Biederman wrote: Stefan Berger writes: On 07/13/2017 01:49 PM, Eric W. Biederman wrote

Re: [PATCH 4.4 00/57] 4.4.77-stable review

2017-07-14 Thread Guenter Roeck
On Fri, Jul 14, 2017 at 11:50:21AM +0200, Greg Kroah-Hartman wrote: > On Thu, Jul 13, 2017 at 06:33:06PM -0700, Guenter Roeck wrote: > > On 07/13/2017 08:42 AM, Greg Kroah-Hartman wrote: > > > This is the start of the stable review cycle for the 4.4.77 release. > > > There are 57 patches in this se

Re: [PATCH, RESEND 03/14] drm/vmwgfx: avoid gcc-7 parentheses warning

2017-07-14 Thread Linus Torvalds
On Fri, Jul 14, 2017 at 12:21 PM, Linus Torvalds wrote: > > NAK. This takes unintentionally insane code and turns it intentionally > insane. Any non-zero return is considered an error. > > The right fix is almost certainly to just return -EINVAL unconditionally. Btw, this is why I hate compiler w

Re: [PATCH 08/14] Input: adxl34x - fix gcc-7 -Wint-in-bool-context warning

2017-07-14 Thread Linus Torvalds
On Fri, Jul 14, 2017 at 2:25 AM, Arnd Bergmann wrote: > FIFO_MODE is an macro expression with a '<<' operator, which > gcc points out could be misread as a '<': Yeah, no, NAK again. We don't make the code look worse just because gcc is being a f*cking moron about things. This warning is clearly

Re: [PATCH v2] xattr: Enable security.capability in user namespaces

2017-07-14 Thread Mimi Zohar
On Fri, 2017-07-14 at 13:17 -0500, Eric W. Biederman wrote: > "Serge E. Hallyn" writes: > > > Quoting Stefan Berger (stef...@linux.vnet.ibm.com): > >> On 07/14/2017 09:34 AM, Serge E. Hallyn wrote: > >> >Quoting Stefan Berger (stef...@linux.vnet.ibm.com): > >> >>On 07/13/2017 08:38 PM, Eric W. Bi

Re: [PATCH 2/2] mfd: ds1374: Add Dallas/Maxim DS1374 Multi Function Device

2017-07-14 Thread Guenter Roeck
On Fri, Jul 14, 2017 at 09:54:23AM -0700, Moritz Fischer wrote: > Hi Guenter, > > On Thu, Jul 13, 2017 at 08:57:52PM -0700, Guenter Roeck wrote: > > On 07/13/2017 12:54 PM, Moritz Fischer wrote: > > > From: Moritz Fischer > > > > > > Add support for the Maxim/Dallas DS1374 RTC/WDT with trickle c

Re: [PATCH v2] xattr: Enable security.capability in user namespaces

2017-07-14 Thread Theodore Ts'o
On Fri, Jul 14, 2017 at 02:48:10PM -0400, Mimi Zohar wrote: > > If I'm understanding the discussion correctly, this isn't an issue for > layered copy on write filesystems, as each fs layer could have it's > own set of xattrs.  The underlying and layered xattrs should be able > to co-exist.  Use th

Re: [PATCH 14/14] [media] fix warning on v4l2_subdev_call() result interpreted as bool

2017-07-14 Thread Arnd Bergmann
On Fri, Jul 14, 2017 at 3:09 PM, Dan Carpenter wrote: > On Fri, Jul 14, 2017 at 03:55:26PM +0300, Dan Carpenter wrote: >> I don't agree with it as a static analysis dev... > > What I mean is if it's a macro that returns -ENODEV or a function that > returns -ENODEV, they should both be treated the

Re: [PATCH V4 3/6] iommu/arm-smmu: Invoke pm_runtime during probe, add/remove device

2017-07-14 Thread Rob Clark
On Fri, Jul 14, 2017 at 3:01 PM, Will Deacon wrote: > On Fri, Jul 14, 2017 at 02:25:45PM -0400, Rob Clark wrote: >> On Fri, Jul 14, 2017 at 2:06 PM, Will Deacon wrote: >> > On Fri, Jul 14, 2017 at 01:42:13PM -0400, Rob Clark wrote: >> >> On Fri, Jul 14, 2017 at 1:07 PM, Will Deacon wrote: >> >>

Re: [PATCH V4 3/6] iommu/arm-smmu: Invoke pm_runtime during probe, add/remove device

2017-07-14 Thread Will Deacon
On Fri, Jul 14, 2017 at 03:34:42PM -0400, Rob Clark wrote: > On Fri, Jul 14, 2017 at 3:01 PM, Will Deacon wrote: > > On Fri, Jul 14, 2017 at 02:25:45PM -0400, Rob Clark wrote: > >> On Fri, Jul 14, 2017 at 2:06 PM, Will Deacon wrote: > >> > On Fri, Jul 14, 2017 at 01:42:13PM -0400, Rob Clark wrote

Re: [PATCH 17/22] platform/x86: alienware-wmi: fix format string overflow warning

2017-07-14 Thread Arnd Bergmann
On Fri, Jul 14, 2017 at 9:18 PM, Andy Shevchenko wrote: > On Fri, Jul 14, 2017 at 3:07 PM, Arnd Bergmann wrote: >> gcc points out a possible format string overflow for a large value of 'zone': >> >> drivers/platform/x86/alienware-wmi.c: In function 'alienware_wmi_init': >> drivers/platform/x86/al

Re: [PATCH V4 3/6] iommu/arm-smmu: Invoke pm_runtime during probe, add/remove device

2017-07-14 Thread Rob Clark
On Fri, Jul 14, 2017 at 3:36 PM, Will Deacon wrote: > On Fri, Jul 14, 2017 at 03:34:42PM -0400, Rob Clark wrote: >> On Fri, Jul 14, 2017 at 3:01 PM, Will Deacon wrote: >> > On Fri, Jul 14, 2017 at 02:25:45PM -0400, Rob Clark wrote: >> >> On Fri, Jul 14, 2017 at 2:06 PM, Will Deacon wrote: >> >>

Re: [regression drm/noveau] suspend to ram -> BOOM: exception RIP: drm_calc_vbltimestamp_from_scanoutpos+335

2017-07-14 Thread Josh Poimboeuf
On Fri, Jul 14, 2017 at 06:33:01PM +0200, Mike Galbraith wrote: > On Fri, 2017-07-14 at 18:10 +0200, Peter Zijlstra wrote: > > On Fri, Jul 14, 2017 at 05:58:18PM +0200, Mike Galbraith wrote: > > > On Fri, 2017-07-14 at 17:50 +0200, Peter Zijlstra wrote: > > > > > > Urgh, is for some mysterious rea

Re: [PATCH v2] xattr: Enable security.capability in user namespaces

2017-07-14 Thread Mimi Zohar
On Fri, 2017-07-14 at 15:29 -0400, Theodore Ts'o wrote: > On Fri, Jul 14, 2017 at 02:48:10PM -0400, Mimi Zohar wrote: > > > > If I'm understanding the discussion correctly, this isn't an issue for > > layered copy on write filesystems, as each fs layer could have it's > > own set of xattrs.  The u

Re: [HMM 12/15] mm/migrate: new memory migration helper for use with device memory v4

2017-07-14 Thread Evgeny Baskakov
On 7/13/17 1:16 PM, Jerome Glisse wrote: ... Hi Jerome, I have hit another kind of hang. Briefly, if a not yet allocated page faults on CPU during migration to device memory, any subsequent migration will fail for such page. Such a situation can trigger if a CPU page fault happens just im

Re: [GIT PULL] Please pull NFS client changes for Linux 4.13

2017-07-14 Thread Andrey Ryabinin
On 07/14/2017 10:05 PM, Linus Torvalds wrote: > On Fri, Jul 14, 2017 at 7:25 AM, Dave Jones wrote: >> On Thu, Jul 13, 2017 at 05:16:24PM -0400, Anna Schumaker wrote: >> > >> > git://git.linux-nfs.org/projects/anna/linux-nfs.git tags/nfs-for-4.13-1 >> >> Since this landed, I'm seeing this dur

Re: [GIT PULL] Please pull NFS client changes for Linux 4.13

2017-07-14 Thread Dave Jones
On Fri, Jul 14, 2017 at 12:05:02PM -0700, Linus Torvalds wrote: > On Fri, Jul 14, 2017 at 7:25 AM, Dave Jones wrote: > > On Thu, Jul 13, 2017 at 05:16:24PM -0400, Anna Schumaker wrote: > > > > > > git://git.linux-nfs.org/projects/anna/linux-nfs.git > > tags/nfs-for-4.13-1 > > > > Since

Re: [PATCH 17/22] platform/x86: alienware-wmi: fix format string overflow warning

2017-07-14 Thread Andy Shevchenko
On Fri, Jul 14, 2017 at 10:37 PM, Arnd Bergmann wrote: > On Fri, Jul 14, 2017 at 9:18 PM, Andy Shevchenko > wrote: >> On Fri, Jul 14, 2017 at 3:07 PM, Arnd Bergmann wrote: >>> gcc points out a possible format string overflow for a large value of >>> 'zone': >> Here we need to convert >> >> int

Re: [PATCH 4.4 00/57] 4.4.77-stable review

2017-07-14 Thread Arnd Bergmann
On Fri, Jul 14, 2017 at 3:26 PM, Greg Kroah-Hartman wrote: > On Fri, Jul 14, 2017 at 02:21:10PM +0200, Arnd Bergmann wrote: >> On Fri, Jul 14, 2017 at 11:51 AM, Greg Kroah-Hartman >> wrote: >> > On Thu, Jul 13, 2017 at 02:07:45PM -0700, kernelci.org bot wrote: >> >> stable-rc/linux-4.4.y boot: 99

Re: [GIT PULL] Please pull NFS client changes for Linux 4.13

2017-07-14 Thread Linus Torvalds
On Fri, Jul 14, 2017 at 12:43 PM, Andrey Ryabinin wrote: > >> yet when I look at the generated code for __ip_map_lookup, I see >> >>movl$32, %edx #, >>movq%r13, %rsi # class, >>leaq48(%rax), %rdi #, tmp126 >>callstrscpy # >> >> what's the

Re: [PATCH 18/22] gpio: acpi: fix string overflow for large pin numbers

2017-07-14 Thread Arnd Bergmann
On Fri, Jul 14, 2017 at 2:52 PM, Andy Shevchenko wrote: > On Fri, 2017-07-14 at 14:07 +0200, Arnd Bergmann wrote: >> gcc-7 notices that the pin_table is an array of 16-bit numbers, >> but we assume it can be printed as a two-character hexadecimal >> string: >> >> drivers/gpio/gpiolib-acpi.c: In fu

Re: [iovisor-dev] [PATCH v3 net-next 00/12] bpf: rewrite value tracking in verifier

2017-07-14 Thread Y Song
I did an experiment with one of our internal bpf programs. The program has 1563 insns. Without Edward's patch: processed 13634 insns, stack depth 160 With Edward's patch: processed 15807 insns, stack depth 160 So the number of processed insns regressed by roughly 16%. Did anybody do any similar

Re: [PATCH v2] xattr: Enable security.capability in user namespaces

2017-07-14 Thread Mimi Zohar
On Fri, 2017-07-14 at 11:52 -0700, James Bottomley wrote: > On Fri, 2017-07-14 at 14:48 -0400, Mimi Zohar wrote: > > The concern is with a shared filesystems.  In that case, for IMA it > > would make sense to support a native and a namespace xattr.  If due > > to xattr space limitations we have to

Re: perf: bisected sampling bug in Linux 4.11-rc1

2017-07-14 Thread Alexander Shishkin
Vince Weaver writes: > I was tracking down some regressions in my perf_event_test testsuite. > Some of the tests broke in the 4.11-rc1 timeframe. > > I've bisected one of them, this report is about > tests/overflow/simul_oneshot_group_overflow > This test creates an event group containing t

[PATCH v4 1/8] of: documentation: add bindings documentation for TS-4600

2017-07-14 Thread Sebastien Bourdelin
This adds the documentation for the TS-4600 by Technologic Systems. Acked-by: Rob Herring --- Changes v3 -> v4: - rebase on master Changes v2 -> v3: - rebase on master Changes v1 -> v2: - rebase on master - add ack by Rob Herring Signed-off-by: Sebastien Bourdelin --- Documentation/d

[PATCH v4 4/8] bus: add driver for the Technologic Systems NBUS

2017-07-14 Thread Sebastien Bourdelin
This driver implements a GPIOs bit-banged bus, called the NBUS by Technologic Systems. It is used to communicate with the peripherals in the FPGA on the TS-4600 SoM. --- Changes v3 -> v4: - rebase on master - fix vendor prefixes for dts properties (suggested by Rob Herring) - v3 was acked by

Re: [PATCH v3 7/9] vfio: Use driver_override to avert binding to compromising drivers

2017-07-14 Thread Greg KH
On Fri, Jul 14, 2017 at 10:03:27AM -0600, Alex Williamson wrote: > Hi Greg, > > On Thu, 13 Jul 2017 10:23:14 +0200 > Greg KH wrote: > > > On Tue, Jul 11, 2017 at 10:41:16AM -0600, Alex Williamson wrote: > > > Let me give a concrete scenario, I have a dual-port conventional PCI > > > e1000 NIC.

[PATCH v4 3/8] dt-bindings: bus: Add documentation for the Technologic Systems NBUS

2017-07-14 Thread Sebastien Bourdelin
Add binding documentation for the Technologic Systems NBUS that is used to interface with peripherals in the FPGA of the TS-4600 SoM. --- Changes v3 -> v4: - rebase on master - fix vendor prefixes for dts properties (suggested by Rob Herring) - v3 was acked by Linus Walleij Changes v2 -> v3

[PATCH v4 0/8] Add board support for TS-4600

2017-07-14 Thread Sebastien Bourdelin
This patch serie adds support for the TS-4600 boards rev A and B. These boards, manufactured by Technologic Systems, are based on an i.MX28. This serie include the support for the watchdog which could be enable at Linux boot time depending on the bootloader. The watchdog and few peripherals are i

[PATCH v4 8/8] ARM: dts: TS-4600: add watchdog support

2017-07-14 Thread Sebastien Bourdelin
This enables support for the watchdog located in the FPGA. Signed-off-by: Sebastien Bourdelin --- arch/arm/boot/dts/imx28-ts4600-common.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/imx28-ts4600-common.dtsi b/arch/arm/boot/dts/imx28-ts4600-common.dtsi index a90

[PATCH v4 7/8] watchdog: TS-4600: add driver for TS-4600 watchdog controller

2017-07-14 Thread Sebastien Bourdelin
This watchdog is instantiated in a FPGA and can only be access using a GPIOs bit-banged bus, called the NBUS by Technologic Systems. The watchdog is made of only one register, called the feed register. Writing to this register will re-arm the watchdog for a given time (and enable it if it was disab

[PATCH v4 2/8] ARM: dts: TS-4600: add basic device tree

2017-07-14 Thread Sebastien Bourdelin
These device trees add support for the TS-4600 by Technologic Systems. More details here: http://wiki.embeddedarm.com/wiki/TS-4600 --- Changes v3 -> v4: - rebase on master Changes v2 -> v3: - rebase on master Changes v1 -> v2: - rebase on master Signed-off-by: Sebastien Bourdelin ---

[PATCH v4 5/8] ARM: dts: TS-4600: add NBUS support

2017-07-14 Thread Sebastien Bourdelin
This commit enables the NBUS on the TS-4600, using the ts-nbus driver. --- Changes v3 -> v4: - rebase on master - fix vendor prefixes for dts properties (suggested by Rob Herring) - v3 was acked by Linus Walleij Changes v2 -> v3: - rebase on master Changes v1 -> v2: - rebase on master

[PATCH v4 6/8] dt-bindings: watchdog: add documentation for TS4600 watchdog controller

2017-07-14 Thread Sebastien Bourdelin
This patch adds dt-binding documentation for TS4600 watchdog controller. Acked-by: Rob Herring --- v4: - this documentation was previously merged with the watchdog driver and had been acked by Rob Herring, no changes have been done since. Signed-off-by: Sebastien Bourdelin --- .../devicetre

Re: perf: bisected sampling bug in Linux 4.11-rc1

2017-07-14 Thread Vince Weaver
On Fri, 14 Jul 2017, Alexander Shishkin wrote: > Vince Weaver writes: > > > I was tracking down some regressions in my perf_event_test testsuite. > > Some of the tests broke in the 4.11-rc1 timeframe. > > > > I've bisected one of them, this report is about > > tests/overflow/simul_oneshot_gr

Re: [PATCH 08/14] Input: adxl34x - fix gcc-7 -Wint-in-bool-context warning

2017-07-14 Thread Arnd Bergmann
On Fri, Jul 14, 2017 at 9:24 PM, Linus Torvalds wrote: > On Fri, Jul 14, 2017 at 2:25 AM, Arnd Bergmann wrote: >> FIFO_MODE is an macro expression with a '<<' operator, which >> gcc points out could be misread as a '<': > > Yeah, no, NAK again. > > We don't make the code look worse just because g

[GIT PULL] Btrfs for 4.13, part 2

2017-07-14 Thread David Sterba
Hi, we've identified and fixed a silent corruption (introduced by code in the first pull), a fixup after the blk_status_t merge and two fixes to incremental send that Filipe has been hunting for some time. Please pull, thanks. The f

Re: [PATCH v2] sctp: don't dereference ptr before leaving _sctp_walk_{params,errors}()

2017-07-14 Thread kbuild test robot
Hi Alexander, [auto build test WARNING on net-next/master] [also build test WARNING on next-20170714] [cannot apply to v4.12] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Alexander-Potapenko

Re: [GIT PULL] Please pull NFS client changes for Linux 4.13

2017-07-14 Thread Andrey Rybainin
On 07/14/2017 10:58 PM, Linus Torvalds wrote: > On Fri, Jul 14, 2017 at 12:43 PM, Andrey Ryabinin > wrote: >> >>> yet when I look at the generated code for __ip_map_lookup, I see >>> >>>movl$32, %edx #, >>>movq%r13, %rsi # class, >>>leaq48(%rax), %r

Re: [PATCH, RESEND 03/14] drm/vmwgfx: avoid gcc-7 parentheses warning

2017-07-14 Thread Arnd Bergmann
On Fri, Jul 14, 2017 at 9:23 PM, Linus Torvalds wrote: > On Fri, Jul 14, 2017 at 12:21 PM, Linus Torvalds > wrote: >> >> NAK. This takes unintentionally insane code and turns it intentionally >> insane. Any non-zero return is considered an error. >> >> The right fix is almost certainly to just re

[PATCH v5 3/8] dt-bindings: bus: Add documentation for the Technologic Systems NBUS

2017-07-14 Thread Sebastien Bourdelin
Add binding documentation for the Technologic Systems NBUS that is used to interface with peripherals in the FPGA of the TS-4600 SoM. Signed-off-by: Sebastien Bourdelin --- Changes v4 -> v5: - fix missing signed off Changes v3 -> v4: - rebase on master - fix vendor prefixes for dts propert

[PATCH v5 0/8] Add board support for TS-4600

2017-07-14 Thread Sebastien Bourdelin
This patch serie adds support for the TS-4600 boards rev A and B. These boards, manufactured by Technologic Systems, are based on an i.MX28. This serie include the support for the watchdog which could be enable at Linux boot time depending on the bootloader. The watchdog and few peripherals are i

[PATCH v5 1/8] of: documentation: add bindings documentation for TS-4600

2017-07-14 Thread Sebastien Bourdelin
This adds the documentation for the TS-4600 by Technologic Systems. Acked-by: Rob Herring Signed-off-by: Sebastien Bourdelin --- Changes v4 -> v5: - fix missing signed off Changes v3 -> v4: - rebase on master Changes v2 -> v3: - rebase on master Changes v1 -> v2: - rebase on master

[PATCH v5 7/8] watchdog: TS-4600: add driver for TS-4600 watchdog controller

2017-07-14 Thread Sebastien Bourdelin
This watchdog is instantiated in a FPGA and can only be access using a GPIOs bit-banged bus, called the NBUS by Technologic Systems. The watchdog is made of only one register, called the feed register. Writing to this register will re-arm the watchdog for a given time (and enable it if it was disab

[PATCH v5 6/8] dt-bindings: watchdog: add documentation for TS4600 watchdog controller

2017-07-14 Thread Sebastien Bourdelin
This patch adds dt-binding documentation for TS4600 watchdog controller. Acked-by: Rob Herring Signed-off-by: Sebastien Bourdelin --- Changes v4 -> v5: - fix missing signed off v4: - this documentation was previously merged with the watchdog driver and had been acked by Rob Herring, no ch

[PATCH v5 4/8] bus: add driver for the Technologic Systems NBUS

2017-07-14 Thread Sebastien Bourdelin
This driver implements a GPIOs bit-banged bus, called the NBUS by Technologic Systems. It is used to communicate with the peripherals in the FPGA on the TS-4600 SoM. Signed-off-by: Sebastien Bourdelin --- Changes v4 -> v5: - fix missing signed off Changes v3 -> v4: - rebase on master - fix

[PATCH v5 8/8] ARM: dts: TS-4600: add watchdog support

2017-07-14 Thread Sebastien Bourdelin
This enables support for the watchdog located in the FPGA. Signed-off-by: Sebastien Bourdelin --- Changes v4 -> v5: - fix missing signed off --- arch/arm/boot/dts/imx28-ts4600-common.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/imx28-ts4600-common.dtsi b/arc

[PATCH v5 2/8] ARM: dts: TS-4600: add basic device tree

2017-07-14 Thread Sebastien Bourdelin
These device trees add support for the TS-4600 by Technologic Systems. More details here: http://wiki.embeddedarm.com/wiki/TS-4600 Signed-off-by: Sebastien Bourdelin --- Changes v4 -> v5: - fix missing signed off Changes v3 -> v4: - rebase on master Changes v2 -> v3: - rebase on master

[PATCH v5 5/8] ARM: dts: TS-4600: add NBUS support

2017-07-14 Thread Sebastien Bourdelin
This commit enables the NBUS on the TS-4600, using the ts-nbus driver. Signed-off-by: Sebastien Bourdelin --- Changes v4 -> v5: - fix missing signed off Changes v3 -> v4: - rebase on master - fix vendor prefixes for dts properties (suggested by Rob Herring) - v3 was acked by Linus Wallei

Re: [GIT PULL] Please pull NFS client changes for Linux 4.13

2017-07-14 Thread Daniel Micay
On Fri, 2017-07-14 at 12:58 -0700, Linus Torvalds wrote: > On Fri, Jul 14, 2017 at 12:43 PM, Andrey Ryabinin > wrote: > > > > > yet when I look at the generated code for __ip_map_lookup, I see > > > > > >movl$32, %edx #, > > >movq%r13, %rsi # class, > > >

Re: [PATCH v2] xattr: Enable security.capability in user namespaces

2017-07-14 Thread James Bottomley
On Fri, 2017-07-14 at 16:03 -0400, Mimi Zohar wrote: > On Fri, 2017-07-14 at 11:52 -0700, James Bottomley wrote: > > > > On Fri, 2017-07-14 at 14:48 -0400, Mimi Zohar wrote: > > > > > > The concern is with a shared filesystems.  In that case, for IMA > > > it would make sense to support a native

Re: [PATCH] staging: lustre: fix spelling mistake, "grranted" -> "granted"

2017-07-14 Thread Oleg Drokin
On Jul 14, 2017, at 9:26 AM, Colin King wrote: > From: Colin Ian King > > Trivial fix to spelling mistake in CERROR error message > > Signed-off-by: Colin Ian King > --- > drivers/staging/lustre/lustre/ptlrpc/import.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/dr

Re: [GIT PULL] Please pull NFS client changes for Linux 4.13

2017-07-14 Thread Linus Torvalds
On Fri, Jul 14, 2017 at 1:38 PM, Daniel Micay wrote: > > If strscpy treats the count parameter as a *guarantee* of the dest size > rather than a limit, No, it's a *limit*. And by a *limit*, I mean that we know that we can access both source and destination within that limit. > My initial patch

Re: [GIT PULL] Please pull NFS client changes for Linux 4.13

2017-07-14 Thread Daniel Micay
> My initial patch used strlcpy there, because I wasn't aware of strscpy > before it was suggested: > > http://www.openwall.com/lists/kernel-hardening/2017/05/04/11 > > I was wrong to move it to strscpy. It could be switched back to > strlcpy > again unless the kernel considers the count paramete

[PATCH v2 1/2] dt-bindings: net: Add bindings for National Instruments XGE netdev

2017-07-14 Thread Moritz Fischer
This adds bindings for the NI XGE 1G/10G network device. Signed-off-by: Moritz Fischer --- Documentation/devicetree/bindings/net/nixge.txt | 32 + 1 file changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/nixge.txt diff --git a/Documentat

[PATCH v2 2/2] net: ethernet: nixge: Add support for National Instruments XGE netdev

2017-07-14 Thread Moritz Fischer
Add support for the National Instruments XGE 1/10G network device. It uses the EEPROM on the board via NVMEM. Signed-off-by: Moritz Fischer --- Changes from v1: - Added dependency on ARCH_ZYNQ (Kbuild) - Removed unused variables - Use of_phy_connect as suggested - Removed masking of (un)support

Re: [GIT PULL] Please pull NFS client changes for Linux 4.13

2017-07-14 Thread Daniel Micay
On Fri, 2017-07-14 at 13:50 -0700, Linus Torvalds wrote: > On Fri, Jul 14, 2017 at 1:38 PM, Daniel Micay > wrote: > > > > If strscpy treats the count parameter as a *guarantee* of the dest > > size > > rather than a limit, > > No, it's a *limit*. > > And by a *limit*, I mean that we know that w

Re: [GIT PULL] Please pull NFS client changes for Linux 4.13

2017-07-14 Thread Daniel Micay
> The reason q_size isn't used is because it doesn't yet prevent read > overflow. The commit message mentions that among the current > limitations > along with __builtin_object_size(ptr, 1). Er rather, in strlcat, the q_size is unused after the fast path is because strnlen obtains the constant aga

Re: [PATCH V1] clk: qcom: Add qpnp clock divider support

2017-07-14 Thread Stephen Boyd
On 07/13, Tirupathi Reddy wrote: > diff --git a/Documentation/devicetree/bindings/clock/clk-qpnp-div.txt > b/Documentation/devicetree/bindings/clock/clk-qpnp-div.txt > new file mode 100644 > index 000..03b7b70 > --- /dev/null > +++ b/Documentation/devicetree/bindings/clock/clk-qpnp-div.txt > @

Re: [PATCH] ext4: make xattr inode reads faster

2017-07-14 Thread Andreas Dilger
On Jul 12, 2017, at 1:29 AM, Tahsin Erdogan wrote: > > ext4_xattr_inode_read() currently reads each block sequentially while > waiting for io operation to complete before moving on to the next > block. This prevents request merging in block layer. > > Fix this by starting reads for all blocks th

Re: [PATCH 0/3] USB Mux support for Chipidea

2017-07-14 Thread Stephen Boyd
Quoting Stephen Boyd (2017-07-13 15:35:02) > Quoting Peter Rosin (2017-07-11 22:04:46) > > > > Maybe no need for a compatible update either, if it works to do something > > like this in the DT? > > > > usb_switch: usb-switch { > > compatible = "gpio-mux"; > >

[PATCH] replace incorrect strscpy use in FORTIFY_SOURCE

2017-07-14 Thread Daniel Micay
Using strscpy was wrong because FORTIFY_SOURCE is passing the maximum possible size of the outermost object, but strscpy defines the count parameter as the exact buffer size, so this could copy past the end of the source. This would still be wrong with the planned usage of __builtin_object_size(p,

Re: [kernel-hardening] Re: [RFC PATCH 6/6] arm64: add VMAP_STACK and detect out-of-bounds SP

2017-07-14 Thread Mark Rutland
On Fri, Jul 14, 2017 at 03:06:06PM +0100, Mark Rutland wrote: > On Fri, Jul 14, 2017 at 01:27:14PM +0100, Ard Biesheuvel wrote: > > On 14 July 2017 at 11:48, Ard Biesheuvel wrote: > > > On 14 July 2017 at 11:32, Mark Rutland wrote: > > >> On Thu, Jul 13, 2017 at 07:28:48PM +0100, Ard Biesheuvel w

[PATCH][V2] staging: lustre: fix spelling mistake, "grranted" -> "granted"

2017-07-14 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in CERROR error message. Also clean up the grammar. Signed-off-by: Colin Ian King --- drivers/staging/lustre/lustre/ptlrpc/import.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/lustre/lustre/ptlrpc/impo

Re: [PATCH v2] xattr: Enable security.capability in user namespaces

2017-07-14 Thread Theodore Ts'o
On Fri, Jul 14, 2017 at 01:39:59PM -0700, James Bottomley wrote: > but why?  That's partly the point of all of this: some security. > attributes can't be written by container root without some supervision > (the capability ones are the hugely problematic ones from this point of > view), but for som

Re: [Intel-gfx] [PATCH RESEND] drm/i915: Fix pipe/transcoder enum mismatches

2017-07-14 Thread Daniel Vetter
On Fri, Jul 14, 2017 at 7:32 PM, Grant Grundler wrote: > On Fri, Jul 14, 2017 at 2:11 AM, Jani Nikula > wrote: >> On Thu, 13 Jul 2017, Stéphane Marchesin wrote: >>> So, if you think this is wrong, can you fix this warning in a way that >>> you'd like? >> >> As I replied previously [1], with more

[PATCH v2 0/3] USB Mux support for Chipidea

2017-07-14 Thread Stephen Boyd
This patchset adds support for the TC7USB40MU usb mux found on db410c 96boards platforms via the new multiplexer framework and hooks that into the chipidea driver. This allows us to properly control host or device mode on this board via the sysfs knob. So far I've only tested this on db410c, so I

[PATCH v2 2/3] usb: chipidea: Hook into mux framework to toggle usb switch

2017-07-14 Thread Stephen Boyd
On the db410c 96boards platform we have a TC7USB40MU on the board to mux the D+/D- lines coming from the controller between a micro usb "device" port and a USB hub for "host" roles[1]. During a role switch, we need to toggle this mux to forward the D+/D- lines to either the port or the hub. Add the

[PATCH v2 3/3] arm64: dts: qcom: Collapse usb support into one node

2017-07-14 Thread Stephen Boyd
We currently have three device nodes for the same USB hardware block, as evident by the reuse of the same reg address multiple times. Now that the chipidea driver fully supports OTG with the MSM wrapper we can collapse all these nodes into one USB device node, reflecting the true nature of the hard

Re: [PATCH 08/14] Input: adxl34x - fix gcc-7 -Wint-in-bool-context warning

2017-07-14 Thread Dmitry Torokhov
On Fri, Jul 14, 2017 at 10:17:10PM +0200, Arnd Bergmann wrote: > On Fri, Jul 14, 2017 at 9:24 PM, Linus Torvalds > wrote: > > On Fri, Jul 14, 2017 at 2:25 AM, Arnd Bergmann wrote: > >> FIFO_MODE is an macro expression with a '<<' operator, which > >> gcc points out could be misread as a '<': > >

[PATCH v2 1/3] mux: Add mux_control_get_optional() API

2017-07-14 Thread Stephen Boyd
Sometimes drivers only use muxes under certain scenarios. For example, the chipidea usb controller may be connected to a usb switch on some platforms, and connected directly to a usb port on others. The driver won't know one way or the other though, so add a mux_control_get_optional() API that allo

Re: [PATCH] usb: gadget: functions: add ftrace export over USB

2017-07-14 Thread Steven Rostedt
On Fri, 14 Jul 2017 11:22:51 +0530 Pratyush Anand wrote: > Hi Felipe, > > On Friday 09 June 2017 03:58 PM, Felipe Balbi wrote: > > Felipe Balbi writes: > > > >> Allow for ftrace data to be exported over a USB Gadget > >> Controller. With this, we have a potentially very fast pipe for > >> tra

Re: [PATCH][V2] staging: lustre: fix spelling mistake, "grranted" -> "granted"

2017-07-14 Thread Oleg Drokin
On Jul 14, 2017, at 5:33 PM, Colin King wrote: > From: Colin Ian King > > Trivial fix to spelling mistake in CERROR error message. Also > clean up the grammar. > > Signed-off-by: Colin Ian King Reviewed-by: Oleg Drokin > --- > drivers/staging/lustre/lustre/ptlrpc/import.c | 2 +- > 1 file c

[PATCH] kernel: cpu: send CPU_UP_CANCELLED notification

2017-07-14 Thread Channagoud Kadabi
If any of the callbacks during cpu up fail undo_cpu_up calls the teardown call backs to rollback states but does not send CPU_UP_CANCELLED. As on 4.9 kernel some drivers still use the notification mechanism for cpu hotplug we need to send CPU_UP_CANCELLED notification so drivers can rollback whatev

Re: [PATCH v9 08/10] x86/hyper-v: use hypercall for remote TLB flush

2017-07-14 Thread Andy Shevchenko
On Fri, Jul 14, 2017 at 3:44 PM, Vitaly Kuznetsov wrote: Couple of nits in case you are going send new version (I'm fine with this as well). > +static inline int fill_gva_list(u64 gva_list[], int offset, > + unsigned long start, unsigned long end) > +{ > +} + empt

Re: [PATCH 1/2] printk: Unconditionally unregister boot consoles if in init section

2017-07-14 Thread Sergey Senozhatsky
Hello, sorry, I'm on a sick leave and can't check emails that often. On (07/11/17 14:43), Petr Mladek wrote: [..] > > >>The keep_bootcon flag prevents the unregistration of a boot console, > > >>even if it's data and code reside in the init section and are about to > > >>be freed. This can lead t

Re: [PATCH] [media] vimc: set id_table for platform drivers

2017-07-14 Thread Sakari Ailus
On Fri, Jul 14, 2017 at 10:58:39AM +0200, Javier Martinez Canillas wrote: > The vimc platform drivers define a platform device ID table but these > are not set to the .id_table field in the platform driver structure. > > So the platform device ID table is only used to fill the aliases in > the mod

Re: [PATCH 2/2] printk/console: Enhance the check for consoles using init memory

2017-07-14 Thread Sergey Senozhatsky
On (07/14/17 14:51), Petr Mladek wrote: [..] > diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c > index f35d3ac3b8c7..1ebe1525ef64 100644 > --- a/kernel/printk/printk.c > +++ b/kernel/printk/printk.c > @@ -2659,8 +2659,16 @@ static int __init printk_late_init(void) > int ret; >

Re: [PATCH v2 0/7] ARM: Broadcom Brahma-B15 readahead cache support

2017-07-14 Thread Florian Fainelli
On 06/23/2017 10:52 AM, Florian Fainelli wrote: > Hi all, > > This patch series adds support for the Broadcom Brahma-B15 readahead cache. > I submitted that patch series a couple of years ago, and then slept on it so > here is another stab at it. > > Note that we did not implement this cache as a

Re: [RFC V2 1/6] cpufreq: Replace "max_transition_latency" with "dynamic_switching"

2017-07-14 Thread Rafael J. Wysocki
On Friday, July 14, 2017 01:11:58 PM Rafael J. Wysocki wrote: > On Fri, Jul 14, 2017 at 9:01 AM, Dominik Brodowski > wrote: > > On Thu, Jul 13, 2017 at 06:19:53PM +0200, Rafael J. Wysocki wrote: > >> On Thu, Jul 13, 2017 at 7:40 AM, Viresh Kumar > >> wrote: > >> > There is no limitation in the o

[RFC PATCH v1 1/6] ktask: add documentation

2017-07-14 Thread daniel . m . jordan
Motivates and explains the ktask API for kernel clients. Signed-off-by: Daniel Jordan --- Documentation/core-api/index.rst |1 + Documentation/core-api/ktask.rst | 104 ++ 2 files changed, 105 insertions(+), 0 deletions(-) create mode 100644 Documentatio

[RFC PATCH v1 0/6] ktask: multithread cpu-intensive kernel work

2017-07-14 Thread daniel . m . jordan
ktask is a generic framework for parallelizing cpu-intensive work in the kernel. The intended use is for big machines that can use their cpu power to speed up large tasks that can't otherwise be multithreaded in userland. The API is generic enough to add concurrency to many different kinds of tas

mmotm 2017-07-14-15-14 uploaded

2017-07-14 Thread akpm
The mm-of-the-moment snapshot 2017-07-14-15-14 has been uploaded to http://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: http://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You wi

[RFC PATCH v1 6/6] hugetlbfs: parallelize hugetlbfs_fallocate with ktask

2017-07-14 Thread daniel . m . jordan
hugetlbfs_fallocate preallocates huge pages to back a file in a hugetlbfs filesystem. The time to call this function grows linearly with size. ktask performs well with its default thread count of 4; higher thread counts are given for context only. Machine: Intel(R) Xeon(R) CPU E7-8895 v3 @ 2.60G

<    1   2   3   4   5   6   7   8   >