[PATCH 3.2 014/106] USB: iowarrior: fix info ioctl on big-endian hosts

2017-09-09 Thread Ben Hutchings
3.2.93-rc1 review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit dd5ca753fa92fb736b1395db892bd29f78e6d408 upstream. Drop erroneous le16_to_cpu when returning the USB device speed which is already in host byte order. Found using sparse:

[PATCH 3.2 002/106] af_key: Fix slab-out-of-bounds in pfkey_compile_policy.

2017-09-09 Thread Ben Hutchings
3.2.93-rc1 review patch. If anyone has any objections, please let me know. -- From: Steffen Klassert commit d90c902449a7561f1b1d58ba5a0d11728ce8b0b2 upstream. The sadb_x_sec_len is stored in the unit 'byte divided by eight'. So we have to multiply this value by eight before we

[PATCH 3.2 001/106] xfrm: fix stack access out of bounds with CONFIG_XFRM_SUB_POLICY

2017-09-09 Thread Ben Hutchings
3.2.93-rc1 review patch. If anyone has any objections, please let me know. -- From: Sabrina Dubroca commit 9b3eb54106cf6acd03f07cf0ab01c13676a226c2 upstream. When CONFIG_XFRM_SUB_POLICY=y, xfrm_dst stores a copy of the flowi for that dst. Unfortunately, the code that allocates

Re: [PATCH v6 11/11] lkdtm: Add test for XPFO

2017-09-09 Thread kbuild test robot
Hi Juerg, [auto build test ERROR on arm64/for-next/core] [also build test ERROR on v4.13] [cannot apply to mmotm/master next-20170908] [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/Tycho-Anders

Re: iov_iter_pipe warning.

2017-09-09 Thread Dave Jones
On Fri, Sep 08, 2017 at 02:04:41AM +0100, Al Viro wrote: > There's at least one suspicious place in iomap_dio_actor() - > if (!(dio->flags & IOMAP_DIO_WRITE)) { > iov_iter_zero(length, dio->submit.iter); > dio->size += length; >

Re: [GIT PULL] Security subsystem updates for 4.14

2017-09-09 Thread James Morris
On Fri, 8 Sep 2017, Theodore Ts'o wrote: > On Fri, Sep 08, 2017 at 02:48:51PM +1000, James Morris wrote: > > > > Mimi and Christoph worked together on this over several iterations -- I'll > > let them respond. > > Mimi --- we should chat next week in LA. I've been working on a > design interna

Re: iov_iter_pipe warning.

2017-09-09 Thread Al Viro
On Sat, Sep 09, 2017 at 09:07:56PM -0400, Dave Jones wrote: > With this in place, I'm still seeing -EBUSY from invalidate_inode_pages2_range > which doesn't end well... Different issue, and I'm not sure why that WARN_ON() is there in the first place. Note that in a similar situation generic_file

[GIT] Sparc

2017-09-09 Thread David Miller
1) Use register window state adjustment instructions when available, from Anthony Yznaga. 2) Add VCC console concentrator driver, from Jag Raman. 3) Add 16GB hugepage support, from Nitin Gupta. 4) Support cpu 'poke' hypercall, from Vijay Kumar. 5) Add M7/M8 optimized memcpy/memset/copy_{to,

nios2 crash due to 'init/main.c: extract early boot entropy from the passed cmdline'

2017-09-09 Thread Guenter Roeck
Hi, I noticed that nios2 images crash in mainline. Bisect points to commit 33d72f3822d7 ("init/main.c: extract early boot entropy from the passed cmdline"). Bisect log is attached. As far as I can see, the problem is seen because add_device_randomness() calls random_get_entropy(). However, the u

[GIT PULL] Security susbsystem updates for v4.14 (v2)

2017-09-09 Thread James Morris
Here's an updated pull request with the IMA integrity_read() patch reverted. Note that this restores the orginal buggy behavior with XFS/IMA deadlock the builtin ima_tcb policy wand XFS rootfs. Everything else is the same as the last pull request. AppArmor: - Add mediation of mountpoints and

Re: [GIT PULL] Security subsystem updates for 4.14

2017-09-09 Thread James Morris
On Fri, 8 Sep 2017, Paul Moore wrote: > > This is also why I tend to prefer getting multiple branches for > > independent things. [...] > > Is it time to start sending pull request for each LSM and thing under > security/ directly? I'm not sure I have a strong preference either > way, I just d

Re: Current mainline git (24e700e291d52bd2) hangs when building e.g. perf

2017-09-09 Thread Andy Lutomirski
On Sat, Sep 9, 2017 at 12:37 PM, Borislav Petkov wrote: > On Sat, Sep 09, 2017 at 12:28:30PM -0700, Andy Lutomirski wrote: >> I propose the following fix. If PCID is on, then, in >> enter_lazy_tlb(), we switch to init_mm with the no-flush flag set. >> (And we give init_mm its own dedicated ASID t

Re: [GIT PULL] Security subsystem updates for 4.14

2017-09-09 Thread James Morris
On Sun, 10 Sep 2017, James Morris wrote: > next-apparmor-next (JJ's next branch) > next-integrity-next (Mimi's) > next-tpm-next(Jarkko's) without '-next' on the end... (editing while jetlagged). -- James Morris

[PATCH v2] Staging: ccree: Merge assignment with return

2017-09-09 Thread Srishti Sharma
Merge the assignment and return statements to return the value directly. Done using the following semantic patch by coccinelle. @@ local idexpression ret; expression e; @@ -ret = +return e; -return ret; Signed-off-by: Srishti Sharma --- Changes in v2: -Correct coding style problems driv

Re: [PATCH v8] vfio: platform: reset: Add Broadcom FlexRM reset module

2017-09-09 Thread Anup Patel
On Fri, Sep 8, 2017 at 9:28 PM, Auger Eric wrote: > Hi Anup, > > On 06/09/2017 13:18, Anup Patel wrote: >> This patch adds Broadcom FlexRM low-level reset for >> VFIO platform. >> >> It will do the following: >> 1. Disable/Deactivate each FlexRM ring >> 2. Flush each FlexRM ring >> >> The cleanup

Re: [Outreachy kernel] [PATCH] Staging: ccree: Merge assignment with return

2017-09-09 Thread Srishti Sharma
On Sat, Sep 9, 2017 at 10:29 PM, Julia Lawall wrote: > > > On Sat, 9 Sep 2017, Srishti Sharma wrote: > >> Merge the assignment and return statements to return the value >> directly. Done using coccinelle. > > Coccinelle is not always perfect about pretty printing, so you have to > watch out for it

[PATCH 0/5] Drivers: hv: Miscellaneous fixes

2017-09-09 Thread kys
From: "K. Y. Srinivasan" Miscellaneous fixes. Dexuan Cui (2): vmbus: don't acquire the mutex in vmbus_hvsock_device_unregister() vmbus: suppress uevents for hv_sock devices Olaf Hering (1): Drivers: hv: fcopy: restore correct transfer length Stephen Hemminger (2): vmbus: add per-channe

Linux 4.13.1

2017-09-09 Thread Greg KH
I'm announcing the release of the 4.13.1 kernel. All users of the 4.13 kernel series must upgrade. The updated 4.13.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.13.y and can be browsed at the normal kernel.org git web browser:

Re: Linux 4.13.1

2017-09-09 Thread Greg KH
diff --git a/Makefile b/Makefile index ed65d7278bb3..41a976854cad 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 13 -SUBLEVEL = 0 +SUBLEVEL = 1 EXTRAVERSION = NAME = Fearless Coyote diff --git a/arch/s390/include/asm/pgtable.h b/arch/s390/include/asm/pgtable.h i

Linux 4.12.12

2017-09-09 Thread Greg KH
I'm announcing the release of the 4.12.12 kernel. All users of the 4.12 kernel series must upgrade. The updated 4.12.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.12.y and can be browsed at the normal kernel.org git web browser:

Linux 4.9.49

2017-09-09 Thread Greg KH
I'm announcing the release of the 4.9.49 kernel. All users of the 4.9 kernel series must upgrade. The updated 4.9.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.9.y and can be browsed at the normal kernel.org git web browser:

Re: Linux 4.9.49

2017-09-09 Thread Greg KH
diff --git a/Makefile b/Makefile index cfa188b427b1..1ebc553f5464 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 9 -SUBLEVEL = 48 +SUBLEVEL = 49 EXTRAVERSION = NAME = Roaring Lionus diff --git a/arch/s390/include/asm/pgtable.h b/arch/s390/include/asm/pgtable.h i

Re: Linux 4.12.12

2017-09-09 Thread Greg KH
diff --git a/Makefile b/Makefile index e7b2b54b032c..e96306381ee8 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 12 -SUBLEVEL = 11 +SUBLEVEL = 12 EXTRAVERSION = NAME = Fearless Coyote diff --git a/arch/s390/include/asm/pgtable.h b/arch/s390/include/asm/pgtable.h

[PATCH 5/5] Drivers: hv: vmbus: Expose per-channel event counters

2017-09-09 Thread kys
From: Stephen Hemminger When investigating performance, it is useful to be able to look at the number of host and guest events per-channel. This is equivalent to per-device interrupt statistics. Signed-off-by: Stephen Hemminger Signed-off-by: K. Y. Srinivasan --- Documentation/ABI/stable/sysf

[PATCH 1/5] vmbus: don't acquire the mutex in vmbus_hvsock_device_unregister()

2017-09-09 Thread kys
From: Dexuan Cui Due to commit 54a66265d675 ("Drivers: hv: vmbus: Fix rescind handling"), we need this patch to resolve the below deadlock: after we get the mutex in vmbus_hvsock_device_unregister() and call vmbus_device_unregister() -> device_unregister() -> ... -> device_release() -> vmbus_dev

[PATCH 3/5] Drivers: hv: fcopy: restore correct transfer length

2017-09-09 Thread kys
From: Olaf Hering Till recently the expected length of bytes read by the daemon did depend on the context. It was either hv_start_fcopy or hv_do_fcopy. The daemon had a buffer size of two pages, which was much larger than needed. Now the expected length of bytes read by the daemon changed slight

[PATCH 2/5] vmbus: suppress uevents for hv_sock devices

2017-09-09 Thread kys
From: Dexuan Cui hv_sock driver is automatically loaded when an application creates an AF_VSOCK socket, so we don't really need to trigger uevents to the user space udevd. And hv_sock devices can appear and disappear frequency, e.g. 100 per second, so triggering the udevents can cause a high cpu

[PATCH 4/5] vmbus: add per-channel sysfs info

2017-09-09 Thread kys
From: Stephen Hemminger This extends existing vmbus related sysfs structure to provide per-channel state information. This is useful when diagnosing issues with multiple queues in networking and storage. The existing sysfs only displayed information about the primary channel. The one place it re

[PATCH] staging: ccree: Add missing newlines

2017-09-09 Thread Joe Perches
Logging without newlines are still prone to interleaving. Add newlines where necessary. Miscellanea: o Coalesce formats o Realign arguments o Fix a couple misindented lines with the above logging changes Signed-off-by: Joe Perches --- drivers/staging/ccree/ssi_aead.c| 17 ++-- drivers

Re: [PATCH v6] iio: accel: mma8452: improvements to handle multiple events

2017-09-09 Thread Martin Kepplinger
On 2017-09-09 21:56, Harinath Nampally wrote: > This driver supports multiple devices like mma8653, > mma8652, mma8452, mma8453 and fxls8471. Almost all > these devices have more than one event. > > Current driver design hardcodes the event specific > information, so only one e

Re: [GIT PULL] Security subsystem updates for 4.14

2017-09-09 Thread Mimi Zohar
On Thu, 2017-09-07 at 11:19 -0700, Linus Torvalds wrote: > On Mon, Sep 4, 2017 at 3:29 AM, James Morris wrote: > > > > IMA: > > - A new integrity_read file operation method, avoids races when > > calculating file hashes > > Honestly, this seems really odd. > > It documents that it needs to

WARNING: CPU: 1 PID: 0 at arch/x86/mm/tlb.c:237 initialize_tlbstate_and_flush+0x120/0x130

2017-09-09 Thread Paul Menzel
Dear Linux folks, With Linux built from commit 4dfc2788033d (Merge tag 'iommu-updates-v4.14' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu), I get the warning below on a Lenovo X60t with a 32-bit CPU. ``` $ dmesg [0.00] Linux version 4.13.0+ (root@d44d03a193d6) (gcc ve

[PATCH v2 00/14] OpenRISC SMP Support

2017-09-09 Thread Stafford Horne
Hello Again, This series adds SMP support for OpenRISC. The OpenRISC multicore platform and SMP linux support is based on the work that Stefan Kristiansson did around 2012 implemented in Verilog and run on FPGAs. I have been working to upstream this work. I have additionally tested this on QEMU,

[PATCH v2 04/14] openrisc: use qspinlocks and qrwlocks

2017-09-09 Thread Stafford Horne
Enable OpenRISC to use qspinlocks and qrwlocks for upcoming SMP support. Signed-off-by: Stafford Horne --- arch/openrisc/Kconfig | 2 ++ arch/openrisc/include/asm/Kbuild | 4 arch/openrisc/include/asm/spinlock.h | 12 +++- arch/openrisc/include

[PATCH v2 06/14] irqchip: add initial support for ompic

2017-09-09 Thread Stafford Horne
From: Stefan Kristiansson IPI driver for the Open Multi-Processor Interrupt Controller (ompic) as described in the Multicore support section of the OpenRISC 1.2 proposed architecture specification: https://github.com/stffrdhrn/doc/raw/arch-1.2-proposal/openrisc-arch-1.2-rev0.pdf Each OpenRIS

[PATCH v2 01/14] openrisc: use shadow registers to save regs on exception

2017-09-09 Thread Stafford Horne
From: Stefan Kristiansson Previously, the area between 0x0-0x100 have been used as a "scratch" memory area to temporarily store regs during exception entry. In a multi-core environment, this will not work. This change is to use shadow registers for nested context. Currently only the "critical"

[PATCH v2 02/14] openrisc: define CPU_BIG_ENDIAN as true

2017-09-09 Thread Stafford Horne
While working on SMP for OpenRISC I found this is needed for qrwlocks to work correctly. OpenRISC is big endian so this should have been here already. Signed-off-by: Stafford Horne --- arch/openrisc/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/openrisc/Kconfig b/arch/open

[PATCH v2 05/14] dt-bindings: add openrisc to vendor prefixes list

2017-09-09 Thread Stafford Horne
Add OpenRISC.io to vendor prefixes. This is reserved for softcores developed by the OpenRISC community. The OpenRISC community has separated from OpenCores.org requiring a new prefix. Signed-off-by: Stafford Horne --- Changes since v1 - New patch Documentation/devicetree/bindings/vendor-pre

[PATCH v2 07/14] openrisc: initial SMP support

2017-09-09 Thread Stafford Horne
From: Stefan Kristiansson This patch introduces the SMP support for the OpenRISC architecture. The SMP architecture requires cores which have multicore features which have been introduced a few years back including: - New SPRS SPR_COREID SPR_NUMCORES - Shadow SPRs - Atomic Instructions - Cac

[PATCH v2 11/14] openrisc: add simple_smp dts and defconfig for simulators

2017-09-09 Thread Stafford Horne
From: Stefan Kristiansson Simple enough to be compatible with simulation environments, such as verilated systems, QEMU and other targets supporting OpenRISC SMP. This also supports our base FPGA SoC's if the cpu frequency is upped to 50Mhz. Signed-off-by: Stefan Kristiansson [sho...@gmail.com:

[PATCH v2 10/14] openrisc: add cacheflush support to fix icache aliasing

2017-09-09 Thread Stafford Horne
From: Jan Henrik Weinstock On OpenRISC the icache does not snoop data stores. This can cause aliasing as reported by Jan. This patch fixes the issue to ensure icache is properly synchronized when code is written to memory. It supports both SMP and UP flushing. This supports dcache flush as wel

[PATCH v2 14/14] openrisc: add tick timer multicore sync logic

2017-09-09 Thread Stafford Horne
In case timers are not in sync when cpus start (i.e. hot plug / offset resets) we need to synchronize the secondary cpus internal timer with the main cpu. This is needed as in OpenRISC SMP there is only one clocksource registered which reads from the same ttcr register on each cpu. This synchroni

[PATCH v2 09/14] openrisc: sleep instead of spin on secondary wait

2017-09-09 Thread Stafford Horne
Currently we do a spin on secondary cpus when waiting to boot. This theoretically causes issues with power consumption and does cause issues with qemu cycle burning (it starves cpu 0 from actually being able to boot.) This change puts each secondary cpu to sleep if they have a power management un

[PATCH v2 13/14] openrisc: enable LOCKDEP_SUPPORT and irqflags tracing

2017-09-09 Thread Stafford Horne
Lockdep is needed for proving the spinlocks and rwlocks work fine on our platform. It also requires calling the trace_hardirqs_off() and trace_hardirqs_on() pair of routines when entering and exiting an interrupt. For OpenRISC the interrupt stack frame does not support frame pointers, so to call

[PATCH v2 12/14] openrisc: support framepointers and STACKTRACE_SUPPORT

2017-09-09 Thread Stafford Horne
For lockdep support a reliable stack trace mechanism is needed. This patch adds support in OpenRISC for the stacktrace framework, implemented by a simple unwinder api. The unwinder api supports both framepointer and basic stack tracing. The unwinder is now used to replace the stack_dump() implem

[PATCH v2 08/14] openrisc: fix initial preempt state for secondary cpu tasks

2017-09-09 Thread Stafford Horne
During SMP testing we were getting the below warning after booting the secondary cpu: [0.06] BUG: scheduling while atomic: swapper/1/0/0x This change follows similar patterns from other architectures to start the schduler with preempt disabled. Signed-off-by: Stafford Horne ---

[PATCH v2 03/14] openrisc: add 1 and 2 byte cmpxchg support

2017-09-09 Thread Stafford Horne
OpenRISC only supports hardware instructions that perform 4 byte atomic operations. For enabling qrwlocks for upcoming SMP support 1 and 2 byte implementations are needed. To do this we leverage the 4 byte atomic operations and shift/mask the 1 and 2 byte areas as needed. This heavily borrows id

[PATCH v9] vfio: platform: reset: Add Broadcom FlexRM reset module

2017-09-09 Thread Anup Patel
This patch adds Broadcom FlexRM low-level reset for VFIO platform. It will do the following: 1. Disable/Deactivate each FlexRM ring 2. Flush each FlexRM ring The cleanup sequence for FlexRM rings is adapted from Broadcom FlexRM mailbox driver. Signed-off-by: Anup Patel Reviewed-by: Oza Oza Rev

[PATCH v9] FlexRM support in VFIO platform

2017-09-09 Thread Anup Patel
This patchset primarily adds Broadcom FlexRM reset module for VFIO platform driver. The patches are based on Linux-4.13-rc3 and can also be found at flexrm-vfio-v8 branch of https://github.com/Broadcom/arm64-linux.git Changes since v8: - Add missing "ring_num++" in vfio_platform_bcmflexrm_reset(

<    1   2   3   4   5   6