Re: unaligned accesses in SLAB etc.

2014-10-14 Thread David Miller
From: mr...@linux.ee Date: Wed, 15 Oct 2014 00:19:36 +0300 (EEST) I'd like to know that your another problem is related to commit bf0dea23a9c0 (mm/slab: use percpu allocator for cpu cache). So, if the commit is reverted, your another problem is also gone completely? The other problem

[GIT PULL] CVE-2014-7970

2014-10-14 Thread Andy Lutomirski
Hi Linus- Eric asked me to forward this fix to you. Please pull. The following changes since commit 0d0826019e529f21c84687521d03f60cd241ca7d: mnt: Prevent pivot_root from creating a loop in the mount tree (2014-10-14 14:27:19 -0700) are available in the git repository at:

Re: [PATCH] staging: lustre: lustre: libcfs: debug.c: Cleaning up unnecessary use of memset in conjunction with strncpy

2014-10-14 Thread Rickard Strandqvist
2014-09-19 0:39 GMT+02:00 Dan Carpenter dan.carpen...@oracle.com: On Thu, Sep 18, 2014 at 09:57:17PM +0200, Rickard Strandqvist wrote: Should I add this as a patch in lib/string.c or email him first.. What is customary in these situations? Just write up a normal patch and try to merge it

Re: [PATCH] mtd: orion_nand: fix error code path in probe

2014-10-14 Thread Andrew Lunn
On Tue, Oct 14, 2014 at 04:16:38PM +0200, Michael Opdenacker wrote: This replaces kzalloc() and ioremap() calls by the corresponding devm_ functions in the probe() routine, which automatically release the corresponding resources when probe() fails or when the device is removed. This

Re: [PATCH net-next,v2] hyperv: Add handling of IP header with option field in netvsc_set_hash()

2014-10-14 Thread David Miller
From: Haiyang Zhang haiya...@microsoft.com Date: Tue, 14 Oct 2014 15:16:28 -0700 In case that the IP header has optional field at the end, this patch will get the port numbers after that field, and compute the hash. Signed-off-by: Haiyang Zhang haiya...@microsoft.com Reviewed-by: K. Y.

Re: [GIT PULL] percpu consistent-ops changes for v3.18-rc1

2014-10-14 Thread Stephen Rothwell
Hi Linus, On Tue, 14 Oct 2014 09:07:52 -0400 Tejun Heo t...@kernel.org wrote: 2. arch/s390/kernel/vtime.c b5f87f15e200 (s390/idle: consolidate idle functions and definitions) removes two functions which contained percpu accesses. HEAD === void __kprobes vtime_stop_cpu(void)

[PATCH] cpufreq: allow powersave governor as the default without expert mode

2014-10-14 Thread James Geboski
The intel_pstate driver only supports the performance and the powersave governors. With the performance governor ensuring the highest possible performance settings, userspace tools fail to make any lasting changes. In order to allow userspace tools to make modifications to the settings, the

Re: [PATCH] gcov: add ARM64 to GCOV_PROFILE_ALL

2014-10-14 Thread Andrew Morton
On Thu, 09 Oct 2014 16:00:20 +0200 Peter Oberparleiter ober...@linux.vnet.ibm.com wrote: Looks good. Andrew, can you pick this change up via your tree? Sure. On 09.10.2014 12:54, Riku Voipio wrote: Following up the arm testing of gcov, turns out gcov on ARM64 works fine as well. Only

[PATCH] fs: Treat non-ancestor-namespace mounts as MNT_NOSUID

2014-10-14 Thread Andy Lutomirski
If a process gets access to a mount from a descendent or unrelated user namespace, that process should not be able to take advantage of setuid files or selinux entrypoints from that filesystem. This will make it safer to allow more complex filesystems to be mounted in non-root user namespaces.

Re: [PATCH 2/2] efi: Capsule update support

2014-10-14 Thread Matt Fleming
On Fri, 10 Oct, at 08:28:47PM, Borislav Petkov wrote: You have efi_capsule_update() vs efi_update_capsule(). Maybe change the names a bit more for differentiation. Or prepend the workhorse doing all the work with __ or so... Yeah, I really didn't come up with a great naming scheme here.

[PATCH] HID: i2c-hid: Add hid-over-i2c name to i2c id table.

2014-10-14 Thread Benson Leung
When using the device tree binding of compatible = hid-over-i2c the i2c id table also needs to have that name in order to auto load this driver. Signed-off-by: Benson Leung ble...@chromium.org --- drivers/hid/i2c-hid/i2c-hid.c | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [PATCH] spi-nor:fsl-quadspi:Add LS1021 support for fsl_quadspi

2014-10-14 Thread Marek Vasut
On Tuesday, October 14, 2014 at 08:36:21 AM, Chao Fu wrote: From: Chao Fu b44...@freescale.com FSL Quadspi module register bitwise is big-endian, but on ohter paltform is little endian. Add functions for Quadspi register read/write for bitwise: qspi_readl qpsi_writel The commit message

Re: [PATCH net-next RFC 3/3] virtio-net: conditionally enable tx interrupt

2014-10-14 Thread Michael S. Tsirkin
On Sat, Oct 11, 2014 at 03:16:46PM +0800, Jason Wang wrote: We free transmitted packets in ndo_start_xmit() in the past to get better performance in the past. One side effect is that skb_orphan() needs to be called in ndo_start_xmit() which makes sk_wmem_alloc not accurate in fact. For TCP

Re: [PATCH net-next RFC 0/3] virtio-net: Conditionally enable tx interrupt

2014-10-14 Thread Michael S. Tsirkin
On Tue, Oct 14, 2014 at 02:53:27PM -0400, David Miller wrote: From: Jason Wang jasow...@redhat.com Date: Sat, 11 Oct 2014 15:16:43 +0800 We free old transmitted packets in ndo_start_xmit() currently, so any packet must be orphaned also there. This was used to reduce the overhead of tx

Re: [PATCH v4 4/6] ARM: rockchip: add basic smp support for rk3288

2014-10-14 Thread Kever Yang
Heiko, On 10/14/2014 02:23 PM, Heiko Stübner wrote: Am Dienstag, 14. Oktober 2014, 13:24:03 schrieb Doug Anderson: Kever, On Mon, Oct 13, 2014 at 1:12 PM, Kever Yang kever.y...@rock-chips.com wrote: + /* +* We need to soft reset the cpu when we turn off the cpu power domain, +

[PATCH RFC] virtio_net: enable tx interrupt

2014-10-14 Thread Michael S. Tsirkin
On newer hosts that support delayed tx interrupts, we probably don't have much to gain from orphaning packets early. Based on patch by Jason Wang. Note: this will likely degrade performance for hosts without event idx support. Various fallback options are available, including orphaning

[PATCH] lib/deflate: Replace UNALIGNED_OK w/ HAVE_EFFICIENT_UNALIGNED_ACCESS

2014-10-14 Thread Jim Kukunas
Zlib implements a byte-by-byte and a word-by-word longest_match() string comparision function. This implementation defaults to the slower byte-by-byte version unless the preprocessor macro UNALIGNED_OK is defined. Currently, nothing is hooked up to define this macro, but we do have

Re: [PATCH] arch/x86/purgatory/Makefile: supress kexec-purgatory.c is up to date message

2014-10-14 Thread Vivek Goyal
On Tue, Oct 14, 2014 at 12:46:58PM +0800, WANG Chao wrote: Supress this unnecessary message during kernel re-build (CONFIG_KEXEC_FILE=y): make[1]: `arch/x86/purgatory/kexec-purgatory.c' is up to date. Signed-off-by: WANG Chao chaow...@redhat.com --- arch/x86/purgatory/Makefile | 1 + 1

Re: [PATCH] gcov: add ARM64 to GCOV_PROFILE_ALL

2014-10-14 Thread Stephen Rothwell
Hi Andrew, On Tue, 14 Oct 2014 14:40:48 -0700 Andrew Morton a...@linux-foundation.org wrote: diff --git a/kernel/gcov/Kconfig b/kernel/gcov/Kconfig index cf66c5c..3b74087 100644 --- a/kernel/gcov/Kconfig +++ b/kernel/gcov/Kconfig @@ -35,7 +35,7 @@ config GCOV_KERNEL config

Re: [PATCH] fs: Treat non-ancestor-namespace mounts as MNT_NOSUID

2014-10-14 Thread Eric W. Biederman
Andy Lutomirski l...@amacapital.net writes: If a process gets access to a mount from a descendent or unrelated user namespace, that process should not be able to take advantage of setuid files or selinux entrypoints from that filesystem. This will make it safer to allow more complex

Re: [PATCH V5 13/13] Documentation: add a section for /proc/pid/ns/

2014-10-14 Thread Serge E. Hallyn
Quoting Serge E. Hallyn (se...@hallyn.com): Quoting Richard Guy Briggs (r...@redhat.com): --- Acked-by: Serge Hallyn serge.hal...@canonical.com (some nitpicking below) (As discussed, please ignore the ' nitpicking :) thanks, -serge -- To unsubscribe from this list: send the line

[GIT PULL] Ceph updates for 3.18-rc1

2014-10-14 Thread Sage Weil
Hi Linus, Please pull the following Ceph updates from git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client.git for-linus There is the long-awaited discard support for RBD (Guangliang Zhao, Josh Durgin), a pile of RBD bug fixes that didn't belong in late -rc's (Ilya Dryomov, Li

Re: [PATCH] fs: Treat non-ancestor-namespace mounts as MNT_NOSUID

2014-10-14 Thread Andy Lutomirski
On Tue, Oct 14, 2014 at 2:57 PM, Eric W. Biederman ebied...@xmission.com wrote: Andy Lutomirski l...@amacapital.net writes: If a process gets access to a mount from a descendent or unrelated user namespace, that process should not be able to take advantage of setuid files or selinux

Re: [PATCH] net: ethernet: marvell: sky2.c: Cleaning up missing null-terminate in conjunction with strncpy

2014-10-14 Thread Rickard Strandqvist
2014-09-15 22:56 GMT+02:00 David Miller da...@davemloft.net: From: Stephen Hemminger step...@networkplumber.org Date: Mon, 15 Sep 2014 13:53:39 -0700 On Mon, 15 Sep 2014 13:07:21 -0400 (EDT) David Miller da...@davemloft.net wrote: From: Stephen Hemminger step...@networkplumber.org Date:

Re: [PATCH] fs: Treat non-ancestor-namespace mounts as MNT_NOSUID

2014-10-14 Thread Serge E. Hallyn
Quoting Eric W. Biederman (ebied...@xmission.com): Andy Lutomirski l...@amacapital.net writes: If a process gets access to a mount from a descendent or unrelated user namespace, that process should not be able to take advantage of setuid files or selinux entrypoints from that filesystem.

Re: [PATCH] fs: Treat non-ancestor-namespace mounts as MNT_NOSUID

2014-10-14 Thread Andy Lutomirski
On Tue, Oct 14, 2014 at 3:07 PM, Andy Lutomirski l...@amacapital.net wrote: On Tue, Oct 14, 2014 at 2:57 PM, Eric W. Biederman Seth, this should address a problem that's related to yours. If a userns creates and untrusted fs (by any means, although admittedly fuse and user namespaces don't

Re: [PATCH] fs: Treat non-ancestor-namespace mounts as MNT_NOSUID

2014-10-14 Thread Serge E. Hallyn
Quoting Serge E. Hallyn (se...@hallyn.com): Quoting Eric W. Biederman (ebied...@xmission.com): Andy Lutomirski l...@amacapital.net writes: If a process gets access to a mount from a descendent or unrelated user namespace, that process should not be able to take advantage of setuid

Re: [PATCH] fs: Treat non-ancestor-namespace mounts as MNT_NOSUID

2014-10-14 Thread Andy Lutomirski
On Tue, Oct 14, 2014 at 3:12 PM, Serge E. Hallyn se...@hallyn.com wrote: Quoting Eric W. Biederman (ebied...@xmission.com): Andy Lutomirski l...@amacapital.net writes: If a process gets access to a mount from a descendent or unrelated user namespace, that process should not be able to take

Re: [PATCH] fs: Treat non-ancestor-namespace mounts as MNT_NOSUID

2014-10-14 Thread Andy Lutomirski
On Tue, Oct 14, 2014 at 3:14 PM, Serge E. Hallyn se...@hallyn.com wrote: Quoting Serge E. Hallyn (se...@hallyn.com): Quoting Eric W. Biederman (ebied...@xmission.com): Andy Lutomirski l...@amacapital.net writes: If a process gets access to a mount from a descendent or unrelated user

RE: [PATCH net-next,v2] hyperv: Add handling of IP header with option field in netvsc_set_hash()

2014-10-14 Thread Haiyang Zhang
-Original Message- From: David Miller [mailto:da...@davemloft.net] Sent: Tuesday, October 14, 2014 5:37 PM To: Haiyang Zhang Cc: net...@vger.kernel.org; KY Srinivasan; o...@aepfle.de; jasow...@redhat.com; linux-kernel@vger.kernel.org; driverdev- de...@linuxdriverproject.org

Re: [PATCH] drivers/rtc/interface.c: check the validation of rtc_time in __rtc_read_time

2014-10-14 Thread Andrew Morton
On Wed, 8 Oct 2014 11:05:29 +0900 Hyogi Gim cioge...@gmail.com wrote: Some of rtc devices always return '0' when rtc_class_ops.read_time is called. So if rtc_time isn't verified in callback, rtc interface cannot know whether rtc_time is valid. We should fix the buggy .read_time()

Re: [PATCH v3 0/6] ima: provide signature based 'init' appraisal

2014-10-14 Thread Dmitry Kasatkin
Hi Mimi, Thanks for reply. I will fix your comments. I am on LinuxCon EU at the moment. Fixing as have a time :) - Dmitry On 13 October 2014 19:32, Mimi Zohar zo...@linux.vnet.ibm.com wrote: On Fri, 2014-10-10 at 17:09 +0300, Dmitry Kasatkin wrote: Currently secure IMA/EVM initialization has

Re: [PATCH 3.17-rc4 v7 0/6] arm: Implement arch_trigger_all_cpu_backtrace

2014-10-14 Thread Daniel Drake
Hi, Thanks a lot for working on this! On Wed, Sep 17, 2014 at 10:10 AM, Daniel Thompson daniel.thomp...@linaro.org wrote: Changes *before* v1: * This patchset is a hugely cut-down successor to [PATCH v11 00/19] arm: KGDB NMI/FIQ support. Thanks to Thomas Gleixner for suggesting the new

Re: [PATCH v6] i2c: rk3x: adjust the LOW divison based on characteristics of SCL

2014-10-14 Thread Max Schwarz
Hi Addy, On Tuesday 14 October 2014 at 14:09:21, Addy Ke wrote: As show in I2C specification: - Standard-mode: the minimum HIGH period of the scl clock is 4.0us the minimum LOW period of the scl clock is 4.7us - Fast-mode: the minimum HIGH period of the scl clock is 0.6us

Re: [PATCHv1 0/8] CGroup Namespaces

2014-10-14 Thread Andy Lutomirski
On Mon, Oct 13, 2014 at 2:23 PM, Aditya Kali adityak...@google.com wrote: Second take at the Cgroup Namespace patch-set. Major changes form RFC (V0): 1. setns support for cgroupns 2. 'mount -t cgroup cgroup mntpt' from inside a cgroupns now mounts the cgroup hierarcy with cgroupns-root as

Re: [PATCH 1/1] fallocate: create FAN_MODIFY and IN_MODIFY events

2014-10-14 Thread Andrew Morton
On Tue, 07 Oct 2014 20:24:02 +0200 Heinrich Schuchardt xypron.g...@gmx.de wrote: Hello Andrew, the patch in https://lkml.org/lkml/2014/10/3/56 and cited below was reviewed by Jan Kara. Jan wondered why we generate events for FALLOC_FL_KEEP_SIZE, so other people will wonder the same

Re: rotary encoder linux driver

2014-10-14 Thread Ben Gamari
Johan Hovold jo...@kernel.org writes: On Sun, Oct 12, 2014 at 06:29:03PM -0700, tecfacet wrote: Hello. I am interested in the rotary encoder kernel driver. I am very new to this linux kernel driver thing. How do I pass the gpio and interrupt stuff to the kernel module.. I think it is

Re: [PATCH] fs: Treat non-ancestor-namespace mounts as MNT_NOSUID

2014-10-14 Thread Serge E. Hallyn
Quoting Andy Lutomirski (l...@amacapital.net): On Tue, Oct 14, 2014 at 3:14 PM, Serge E. Hallyn se...@hallyn.com wrote: Quoting Serge E. Hallyn (se...@hallyn.com): Quoting Eric W. Biederman (ebied...@xmission.com): Andy Lutomirski l...@amacapital.net writes: If a process gets access

Re: [PATCH 1/1 v2] driver:mtd:spi-nor:fix spi_nor_scan overwrite platform ID point

2014-10-14 Thread Marek Vasut
On Tuesday, October 14, 2014 at 03:26:49 AM, Bean Huo 霍斌斌 (beanhuo) wrote: [...] - dev_warn(dev, found %s, expected %s\n, - jid-name, id-name); - id = jid; - info = (void *)jid-driver_data; +

Re: [PATCH] fs: Treat non-ancestor-namespace mounts as MNT_NOSUID

2014-10-14 Thread Andy Lutomirski
On Tue, Oct 14, 2014 at 3:45 PM, Serge E. Hallyn se...@hallyn.com wrote: Quoting Andy Lutomirski (l...@amacapital.net): On Tue, Oct 14, 2014 at 3:14 PM, Serge E. Hallyn se...@hallyn.com wrote: Quoting Serge E. Hallyn (se...@hallyn.com): Quoting Eric W. Biederman (ebied...@xmission.com):

[RFC 1/5] x86: Clean up cr4 manipulation

2014-10-14 Thread Andy Lutomirski
CR4 manipulation was split, seemingly at random, between direct (write_cr4) and using a helper (set/clear_in_cr4). Unfortunately, the set_in_cr4 and clear_in_cr4 helpers also poke at the boot code, which only a small subset of users actually wanted. This patch replaces all cr4 access in

[RFC 0/5] CR4 handling improvements

2014-10-14 Thread Andy Lutomirski
Hi Peter, etc, This little series tightens up rdpmc permissions. With it applied, rdpmc can only be used if a perf_event is actually mmapped. For now, this is only really useful for seccomp. At some point this could be further tightened up to only allow rdpmc if an actual self-monitoring perf

[RFC 3/5] x86: Add a comment clarifying LDT context switching

2014-10-14 Thread Andy Lutomirski
The code is correct, but only for a rather subtle reason. This confused me for quite a while when I read switch_mm, so clarify the code to avoid confusing other people, too. TBH, I wouldn't be surprised if this code was only correct by accident. Signed-off-by: Andy Lutomirski

[RFC 4/5] perf: Add pmu callbacks to track event mapping and unmapping

2014-10-14 Thread Andy Lutomirski
Signed-off-by: Andy Lutomirski l...@amacapital.net --- include/linux/perf_event.h | 7 +++ kernel/events/core.c | 9 + 2 files changed, 16 insertions(+) diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index 707617a8c0f6..88069e319a3f 100644 ---

[RFC 5/5] x86,perf: Only allow rdpmc if a perf_event is mapped

2014-10-14 Thread Andy Lutomirski
We currently allow any process to use rdpmc. This significantly weakens the protection offered by PR_TSC_DISABLED, and it could be helpful to users attempting to exploit timing attacks. Since we can't enable access to individual counters, use a very coarse heuristic to limit access to rdpmc:

[RFC 2/5] x86: Store a per-cpu shadow copy of CR4

2014-10-14 Thread Andy Lutomirski
Context switches and TLB flushes can change individual bits of CR4. CR4 reads take several cycles, so store a shadow copy of CR4 in a per-cpu variable. To avoid wasting a cache line, I added the CR4 shadow to cpu_tlbstate, which is already touched during context switches. Signed-off-by: Andy

Re: [PATCH] HID: i2c-hid: Add hid-over-i2c name to i2c id table.

2014-10-14 Thread Dmitry Torokhov
On Tue, Oct 14, 2014 at 02:44:01PM -0700, Benson Leung wrote: When using the device tree binding of compatible = hid-over-i2c the i2c id table also needs to have that name in order to auto load this driver. Signed-off-by: Benson Leung ble...@chromium.org --- drivers/hid/i2c-hid/i2c-hid.c

Re: [PATCH net-next RFC 0/3] virtio-net: Conditionally enable tx interrupt

2014-10-14 Thread Michael S. Tsirkin
On Tue, Oct 14, 2014 at 02:53:27PM -0400, David Miller wrote: From: Jason Wang jasow...@redhat.com Date: Sat, 11 Oct 2014 15:16:43 +0800 We free old transmitted packets in ndo_start_xmit() currently, so any packet must be orphaned also there. This was used to reduce the overhead of tx

Re: [PATCH RFC] virtio_net: enable tx interrupt

2014-10-14 Thread Michael S. Tsirkin
On Wed, Oct 15, 2014 at 12:53:59AM +0300, Michael S. Tsirkin wrote: static void skb_xmit_done(struct virtqueue *vq) { struct virtnet_info *vi = vq-vdev-priv; + struct send_queue *sq = vi-sq[vq2txq(vq)]; - /* Suppress further interrupts. */ - virtqueue_disable_cb(vq);

Re: [PATCH 2/2] mm: verify compound order when freeing a page

2014-10-14 Thread Sasha Levin
On 10/14/2014 04:29 PM, David Cohen wrote: +VM_BUG_ON(PageTail(page)); + VM_BUG_ON(PageHead(page) compound_order(page) != order); It may be too severe. AFAIU we're not talking about a fatal error. How about VM_WARN_ON()? VM_BUG_ON() should catch anything which is not supposed to

Re: [PATCH 3.17-rc4 v7 0/6] arm: Implement arch_trigger_all_cpu_backtrace

2014-10-14 Thread Russell King - ARM Linux
On Tue, Oct 14, 2014 at 04:37:51PM -0600, Daniel Drake wrote: Hi, Thanks a lot for working on this! On Wed, Sep 17, 2014 at 10:10 AM, Daniel Thompson daniel.thomp...@linaro.org wrote: Changes *before* v1: * This patchset is a hugely cut-down successor to [PATCH v11 00/19] arm:

[PATCH v2] fs: Treat foreign mounts as nosuid

2014-10-14 Thread Andy Lutomirski
If a process gets access to a mount from a different namespace user namespace, that process should not be able to take advantage of setuid files or selinux entrypoints from that filesystem. Technically, trusting mounts created by the same or ancestor user namespaces ought to be safe, but it's

Re: [PATCHv1 0/8] CGroup Namespaces

2014-10-14 Thread Aditya Kali
On Tue, Oct 14, 2014 at 3:42 PM, Andy Lutomirski l...@amacapital.net wrote: On Mon, Oct 13, 2014 at 2:23 PM, Aditya Kali adityak...@google.com wrote: Second take at the Cgroup Namespace patch-set. Major changes form RFC (V0): 1. setns support for cgroupns 2. 'mount -t cgroup cgroup mntpt'

Re: [PATCH 2/2] mm: verify compound order when freeing a page

2014-10-14 Thread David Cohen
On Tue, Oct 14, 2014 at 07:08:43PM -0400, Sasha Levin wrote: On 10/14/2014 04:29 PM, David Cohen wrote: + VM_BUG_ON(PageTail(page)); +VM_BUG_ON(PageHead(page) compound_order(page) != order); It may be too severe. AFAIU we're not talking about a fatal error. How about

Re: [PATCH v4 4/6] ARM: rockchip: add basic smp support for rk3288

2014-10-14 Thread Russell King - ARM Linux
On Tue, Oct 14, 2014 at 11:23:40PM +0200, Heiko Stübner wrote: Am Dienstag, 14. Oktober 2014, 13:24:03 schrieb Doug Anderson: Kever, On Mon, Oct 13, 2014 at 1:12 PM, Kever Yang kever.y...@rock-chips.com wrote: + /* +* We need to soft reset the cpu when we turn off the

Re: [PATCH v4 4/6] ARM: rockchip: add basic smp support for rk3288

2014-10-14 Thread Russell King - ARM Linux
On Tue, Oct 14, 2014 at 02:50:07PM -0700, Kever Yang wrote: Heiko, On 10/14/2014 02:23 PM, Heiko Stübner wrote: Am Dienstag, 14. Oktober 2014, 13:24:03 schrieb Doug Anderson: Kever, On Mon, Oct 13, 2014 at 1:12 PM, Kever Yang kever.y...@rock-chips.com wrote: + /* +* We

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

2014-10-14 Thread Stephen Rothwell
Hi all, After merging the net tree, today's linux-next build (arm multi_v7_defconfig) failed like this: drivers/built-in.o: In function `.LANCHOR0': :(.rodata+0x6b764): undefined reference to `sti_gmac_data' :(.rodata+0x6b828): undefined reference to `sti_gmac_data' :(.rodata+0x6b8ec): undefined

[PATCH v3] fs: Treat foreign mounts as nosuid

2014-10-14 Thread Andy Lutomirski
If a process gets access to a mount from a different namespace user namespace, that process should not be able to take advantage of setuid files or selinux entrypoints from that filesystem. Technically, trusting mounts created by the same or ancestor user namespaces ought to be safe, but it's

Re: [PATCH next] xen: pcifront: Process failure for pcifront_(re)scan_root()

2014-10-14 Thread Bjorn Helgaas
On Mon, Oct 06, 2014 at 11:04:45AM +0800, Chen Gang wrote: When pcifront_rescan_root() or pcifront_scan_root() fails, need return error code, neither set XenbusStateConnected state, just like the other areas have done. For pcifront_rescan_root(), it will return error code (num_roots = 0;,

Re: [PATCH next] xen: pcifront: Process failure for pcifront_(re)scan_root()

2014-10-14 Thread Chen Gang
At least for me, what you said sound OK. Thanks. Send from Lenovo A788t. Bjorn Helgaas bhelg...@google.com wrote: On Mon, Oct 06, 2014 at 11:04:45AM +0800, Chen Gang wrote: When pcifront_rescan_root() or pcifront_scan_root() fails, need return error code, neither set XenbusStateConnected

RE: [PATCH net-next,v2] hyperv: Add handling of IP header with option field in netvsc_set_hash()

2014-10-14 Thread Haiyang Zhang
-Original Message- From: Haiyang Zhang [mailto:haiya...@microsoft.com] Sent: Tuesday, October 14, 2014 4:05 PM To: da...@davemloft.net; net...@vger.kernel.org Cc: Haiyang Zhang; KY Srinivasan; o...@aepfle.de; jasow...@redhat.com; linux-kernel@vger.kernel.org;

linux-next: manual merge of the infiniband tree with Linus' tree

2014-10-14 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the infiniband tree got a conflict in drivers/infiniband/hw/mlx5/qp.c between commit c7a08ac7ee68 (net/mlx5_core: Update device capabilities handling) from Linus' tree and commit f83b42636a91 (IB/mlx5: Remove duplicate code from mlx5_set_path) from the

Re: [PATCH 0/8] Armada XP pinctrl consolidation and ix4-300d fixes

2014-10-14 Thread Benoit Masson
Le 6 oct. 2014 à 18:13, Sebastian Hesselbarth sebastian.hesselba...@gmail.com a écrit : On 10/06/2014 01:11 AM, Benoit Masson wrote: Le 3 oct. 2014 à 17:41, Sebastian Hesselbarth sebastian.hesselba...@gmail.com a écrit : On 10/03/2014 05:29 PM, Benoit Masson wrote: Le 3 oct. 2014 à 17:06,

Re: [PATCH] Do not silently discard WRITE_SAME requests

2014-10-14 Thread Martin K. Petersen
Petr == Petr Vandrovec p...@vmware.com writes: Petr, Petr Logic (from 2011, commit 8af1954d172a46a63e5e79dae523a6d74715e458) Petr says that EOPNOTSUPP is returned when DISCARD request failed, as Petr discarding is optional, and failures can be safely ignored. That Petr is definitely not true

Re: [PATCHv4] serial: of-serial: fix up PM ops on no_console_suspend and port type

2014-10-14 Thread Joseph Lo
On 10/14/2014 04:42 PM, Jingchang Lu wrote: This patch fixes commit 2dea53bf57783f243c892e99c10c6921e956aa7e, serial: of-serial: add PM suspend/resume support, which disables the uart clock on suspend, but also causes a hardware hang on register access if no_console_suspend command line option

Re: [PATCH 0/3] scsi: Add Hyper-V logical block provisioning quirks

2014-10-14 Thread Martin K. Petersen
Sitsofe == Sitsofe Wheeler sits...@gmail.com writes: Sitsofe A previous patch attempted to add a quirk to workaround this Sitsofe but the quirk was only enabled after the features had been Sitsofe scanned for, wouldn't work for small disks What does that mean, exactly? -- Martin K. Petersen

Re: [PATCH 2/3] scsi: add try_rc16 blacklist flag

2014-10-14 Thread Martin K. Petersen
Sitsofe == Sitsofe Wheeler sits...@gmail.com writes: Sitsofe Microsoft Hyper-V virtual disks currently only claim SPC-2 Sitsofe compliance causing the kernel skip checks for features such as Sitsofe thin provisioning even though the virtual disk advertises them. Last time around we identified

Re: [patch 1/3] ipmi: Setup ipmi_devintf automatically if ipmi_msghandler gets loaded

2014-10-14 Thread Corey Minyard
On 10/14/2014 09:40 AM, tr...@suse.de wrote: This removes the ipmi_devintf to be a module, but it will automatically compiled in if ipmi_msghandler is set. ipmi_msghandler module is renamed to ipmi_handler because of the name clash with the ipmi_msghandler.o object file (see Makefile for

Re: [patch 2/3] ipmi: Remove ipmi_major module parameter and define global IPMI_MAJOR

2014-10-14 Thread Corey Minyard
Sorry to top post on this, but you attached the file, so it's hard to reply inline. There's no way this can go in. There's not enough major device numbers for all the devices that exist, we have mechanisms to handle dynamically assigning numbers, and the IPMI driver just isn't important enough

Re: [patch 3/3] ipmi: Unregister previously registered driver in error case

2014-10-14 Thread Corey Minyard
Queued, thanks for spotting this. -corey On 10/14/2014 09:40 AM, tr...@suse.de wrote: Signed-off-by: Thomas Renninger tr...@suse.de CC: miny...@acm.org Index: kernel_ipmi/drivers/char/ipmi/ipmi_msghandler.c === ---

Re: [PATCH] mmc: dw_mmc: Change signal voltage error to dev_dbg()

2014-10-14 Thread Jaehoon Chung
Acked-by: Jaehoon Chung jh80.ch...@samsung.com Best Regards, Jaehoon Chung On 10/11/2014 01:16 PM, Doug Anderson wrote: In (28f92b5 mmc: core: Try other signal levels during power up) we can see that there are times when it's valid to try several signal voltages. Don't print an ugly error in

[PATCH 1/1] mmc: sdhci-bcm2835: added quirk and removed udelay in write ops

2014-10-14 Thread Scott Branden
Added quirk SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12 present in controller. Removed udelay in write ops by using shadow registers for 16 bit accesses to 32-bit registers (where necessary). Optimized 32-bit operations when doing 8/16 register accesses. Signed-off-by: Scott Branden sbran...@broadcom.com

[PATCH 0/1] sdhci-bcm2835: added quirk and removed udelay in write ops

2014-10-14 Thread Scott Branden
This patch contains driver cleanup of sdhci-bcm2835. Please note that this has not actually been tested on bcm2835 yet. Testing comes from other devices with the same sdhci controller. This patch is being put out for testing and acceptance on the 2835. Please test and comment. Scott Branden (1):

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

2014-10-14 Thread David Miller
From: Stephen Rothwell s...@canb.auug.org.au Date: Wed, 15 Oct 2014 10:44:11 +1100 Hi all, After merging the net tree, today's linux-next build (arm multi_v7_defconfig) failed like this: drivers/built-in.o: In function `.LANCHOR0': :(.rodata+0x6b764): undefined reference to

Re: [PATCH net-next,v2] hyperv: Add handling of IP header with option field in netvsc_set_hash()

2014-10-14 Thread David Miller
From: Haiyang Zhang haiya...@microsoft.com Date: Tue, 14 Oct 2014 20:05:17 + In case that the IP header has optional field at the end, this patch will get the port numbers after that field, and compute the hash. Signed-off-by: Haiyang Zhang haiya...@microsoft.com Reviewed-by: K. Y.

RE: [PATCH 2/3] scsi: add try_rc16 blacklist flag

2014-10-14 Thread KY Srinivasan
-Original Message- From: Martin K. Petersen [mailto:martin.peter...@oracle.com] Sent: Tuesday, October 14, 2014 6:08 PM To: Sitsofe Wheeler Cc: KY Srinivasan; Haiyang Zhang; Christoph Hellwig; Hannes Reinecke; linux- s...@vger.kernel.org; linux-kernel@vger.kernel.org;

Re: powerpc: Fix Text randomization

2014-10-14 Thread Michael Ellerman
On Fri, 2014-10-10 at 05:45:26 UTC, Vineeth Vijayan wrote: Right now there is no way to disable TEXT randomization on a PPC32 machine. text randomization happens even in the case of echo 0 /proc/sys/kernel/randomize_va_space Yeah it seems to happen on ppc64 too. This happens due to the

Re: [PATCH] arch/x86/purgatory/Makefile: supress kexec-purgatory.c is up to date message

2014-10-14 Thread WANG Chao
On 10/14/14 at 05:52pm, Vivek Goyal wrote: On Tue, Oct 14, 2014 at 12:46:58PM +0800, WANG Chao wrote: Supress this unnecessary message during kernel re-build (CONFIG_KEXEC_FILE=y): make[1]: `arch/x86/purgatory/kexec-purgatory.c' is up to date. Signed-off-by: WANG Chao

get_maintainers.pl doesn't actually get the real MAINTAINERS?

2014-10-14 Thread Scott Branden
Hello, I try running scripts/get_maintainers.pl but it doesn't seem to get the real maintainers properly. Please note this is run against the current MAINTAINERS file. One Example: I would expect drivers/mmc/host/sdhci-bcm2835.c to be maintained by Stephen Warren based on

Re: [PATCH 0/8] power_supply: Add API for safe access of get_property-like function attrs

2014-10-14 Thread jonghwa3 . lee
Hi, On 2014년 10월 14일 21:20, Krzysztof Kozlowski wrote: Hi, After fixing issue with referencing old power supply after driver unbind in charger manager [1] I noticed that the race condition in such case may still exist. It would be harder to trigger but still possible. The race is

RE: [PATCH] hyperv: Implement Time Synchronization using host time sample

2014-10-14 Thread Thomas Shao
These old duplicated patches are accidentally send by the mail server... Sorry for that. -Original Message- From: Thomas Shao [mailto:huis...@microsoft.com] Sent: Tuesday, October 14, 2014 1:49 PM To: t...@linutronix.de; gre...@linuxfoundation.org; linux- ker...@vger.kernel.org;

[PATCH v3 27/27] PCI/MSI: Clean up unused MSI arch functions

2014-10-14 Thread Yijing Wang
Now we use struct msi_chip in all platforms to configure MSI/MSI-X. We can clean up the unused arch functions. Signed-off-by: Yijing Wang wangyij...@huawei.com --- Hi Lucas, I dropped the reviewed-by, because this version has a lot changes compared to last one, I guess you may want to check it

[PATCH v3 01/27] MSI: Remove the redundant irq_set_chip_data()

2014-10-14 Thread Yijing Wang
Currently, pcie-designware, pcie-rcar and pci-tegra drivers use irq chip_data to save the msi_chip pointer. They already call irq_set_chip_data() in their own MSI irq map functions. And chip_data is an opaque pointer, how to use it is arch dependent. It should not be placed in MSI core.

[PATCH v3 24/27] IA64/MSI: Use MSI chip framework to configure MSI/MSI-X irq

2014-10-14 Thread Yijing Wang
Use MSI chip framework instead of arch MSI functions to configure MSI/MSI-X irq. So we can manage MSI/MSI-X irq in a unified framework. Signed-off-by: Yijing Wang wangyij...@huawei.com --- arch/ia64/include/asm/pci.h | 10 ++ arch/ia64/kernel/msi_ia64.c | 14 ++

[PATCH v3 25/27] Sparc/MSI: Use MSI chip framework to configure MSI/MSI-X irq

2014-10-14 Thread Yijing Wang
Use MSI chip framework instead of arch MSI functions to configure MSI/MSI-X irq. So we can manage MSI/MSI-X irq in a unified framework. Signed-off-by: Yijing Wang wangyij...@huawei.com --- arch/sparc/kernel/pci.c | 14 -- arch/sparc/kernel/pci_impl.h | 12 2

[PATCH v3 26/27] tile/MSI: Use MSI chip framework to configure MSI/MSI-X irq

2014-10-14 Thread Yijing Wang
Use MSI chip framework instead of arch MSI functions to configure MSI/MSI-X irq. So we can manage MSI/MSI-X irq in a unified framework. Signed-off-by: Yijing Wang wangyij...@huawei.com --- arch/tile/include/asm/pci.h | 10 ++ arch/tile/kernel/pci_gx.c | 13 +++-- 2 files

[PATCH v3 08/27] PCI: mvebu: Save msi chip in pci_sys_data

2014-10-14 Thread Yijing Wang
Save msi chip in pci_sys_data instead of assign msi chip to every pci bus in .add_bus(). Signed-off-by: Yijing Wang wangyij...@huawei.com --- drivers/pci/host/pci-mvebu.c | 10 +++--- 1 files changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/pci/host/pci-mvebu.c

[PATCH v3 14/27] Irq_remapping/MSI: Use MSI chip framework to configure MSI/MSI-X irq

2014-10-14 Thread Yijing Wang
Use MSI chip framework instead of arch MSI functions to configure MSI/MSI-X irq. So we can manage MSI/MSI-X irq in a unified framework. Signed-off-by: Yijing Wang wangyij...@huawei.com --- drivers/iommu/irq_remapping.c | 11 --- 1 files changed, 8 insertions(+), 3 deletions(-) diff

[PATCH v3 22/27] s390/MSI: Use MSI chip framework to configure MSI/MSI-X irq

2014-10-14 Thread Yijing Wang
Use MSI chip framework instead of arch MSI functions to configure MSI/MSI-X irq. So we can manage MSI/MSI-X irq in a unified framework. Signed-off-by: Yijing Wang wangyij...@huawei.com --- Hi Sebastian, I dropped the Acked-by , because this version has a lot changes compared to last. So, I

Re: get_maintainers.pl doesn't actually get the real MAINTAINERS?

2014-10-14 Thread Joe Perches
On Tue, 2014-10-14 at 19:18 -0700, Scott Branden wrote: Hello, I try running scripts/get_maintainers.pl but it doesn't seem to get the real maintainers properly. Please note this is run against the current MAINTAINERS file. One Example: I would expect drivers/mmc/host/sdhci-bcm2835.c

[PATCH v3 23/27] arm/iop13xx/MSI: Use MSI chip framework to configure MSI/MSI-X irq

2014-10-14 Thread Yijing Wang
Use MSI chip framework instead of arch MSI functions to configure MSI/MSI-X irq. So we can manage MSI/MSI-X irq in a unified framework. Signed-off-by: Yijing Wang wangyij...@huawei.com --- arch/arm/mach-iop13xx/include/mach/pci.h |4 arch/arm/mach-iop13xx/iq81340mc.c|3 +++

[PATCH v3 21/27] Powerpc/MSI: Use MSI chip framework to configure MSI/MSI-X irq

2014-10-14 Thread Yijing Wang
Use MSI chip framework instead of arch MSI functions to configure MSI/MSI-X irq. So we can manage MSI/MSI-X irq in a unified framework. Signed-off-by: Yijing Wang wangyij...@huawei.com --- Hi Michael, I dropped the Acked-by , because this version has a lot changes compared to last. So, I guess

[PATCH v3 18/27] MIPS/Xlp: Remove the dead function destroy_irq() to fix build error

2014-10-14 Thread Yijing Wang
Commit 465665f78a7 (mips: Kill pointless destroy_irq()) removed the destroy_irq(). So remove the leftover one in xlp_setup_msix() to fix build error. arch/mips/pci/msi-xlp.c: In function 'xlp_setup_msix': arch/mips/pci/msi-xlp.c:447:3: error: implicit declaration of function 'destroy_irq'.. cc1:

[PATCH v3 05/27] PCI: tegra: Save msi chip in pci_sys_data

2014-10-14 Thread Yijing Wang
Save msi chip in pci_sys_data instead of assign msi chip to every pci bus in .add_bus(). Signed-off-by: Yijing Wang wangyij...@huawei.com --- drivers/pci/host/pci-tegra.c | 13 +++-- 1 files changed, 3 insertions(+), 10 deletions(-) diff --git a/drivers/pci/host/pci-tegra.c

[PATCH v3 19/27] MIPS/Xlp/MSI: Use MSI chip framework to configure MSI/MSI-X irq

2014-10-14 Thread Yijing Wang
Use MSI chip framework instead of arch MSI functions to configure MSI/MSI-X IRQ. So we can manage MSI/MSI-X irq in a unified framework. Signed-off-by: Yijing Wang wangyij...@huawei.com --- arch/mips/include/asm/netlogic/xlp-hal/pcibus.h |1 + arch/mips/pci/msi-xlp.c |

[PATCH v3 17/27] MIPS/Octeon/MSI: Use MSI chip framework to configure MSI/MSI-X irq

2014-10-14 Thread Yijing Wang
Use MSI chip framework instead of arch MSI functions to configure MSI/MSI-X irq. So we can manage MSI/MSI-X irq in a unified framework. Signed-off-by: Yijing Wang wangyij...@huawei.com --- arch/mips/include/asm/octeon/pci-octeon.h |4 +++ arch/mips/pci/msi-octeon.c| 31

[PATCH v3 06/27] PCI: designware: Save msi chip in pci_sys_data

2014-10-14 Thread Yijing Wang
Save msi chip in pci_sys_data instead of assign msi chip to every pci bus in .add_bus(). Signed-off-by: Yijing Wang wangyij...@huawei.com --- drivers/pci/host/pcie-designware.c | 15 --- 1 files changed, 4 insertions(+), 11 deletions(-) diff --git

[PATCH v3 20/27] MIPS/Xlr/MSI: Use MSI chip framework to configure MSI/MSI-X irq

2014-10-14 Thread Yijing Wang
Use MSI chip framework instead of arch MSI functions to configure MSI/MSI-X irq. So we can manage MSI/MSI-X irq in a unified framework. Signed-off-by: Yijing Wang wangyij...@huawei.com --- arch/mips/pci/pci-xlr.c | 17 +++-- 1 files changed, 15 insertions(+), 2 deletions(-) diff

Re: get_maintainers.pl doesn't actually get the real MAINTAINERS?

2014-10-14 Thread Scott Branden
On 14-10-14 07:26 PM, Joe Perches wrote: On Tue, 2014-10-14 at 19:18 -0700, Scott Branden wrote: Hello, I try running scripts/get_maintainers.pl but it doesn't seem to get the real maintainers properly. Please note this is run against the current MAINTAINERS file. One Example: I would

[PATCH v3 07/27] PCI: rcar: Save msi chip in pci_sys_data

2014-10-14 Thread Yijing Wang
Save msi chip in pci_sys_data instead of assign msi chip to every pci bus in .add_bus(). Signed-off-by: Yijing Wang wangyij...@huawei.com --- drivers/pci/host/pcie-rcar.c | 13 +++-- 1 files changed, 3 insertions(+), 10 deletions(-) diff --git a/drivers/pci/host/pcie-rcar.c

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