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 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 > Reviewed-by: K. Y. Srinivasan This isn't even close to what I

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

2014-10-14 Thread David Miller
From: Stephen Rothwell 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 `sti_gmac_data' > :(.rodata+

[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 --- drivers/mmc/host/

[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: [PATCH] mmc: dw_mmc: Change signal voltage error to dev_dbg()

2014-10-14 Thread Jaehoon Chung
Acked-by: Jaehoon Chung 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 the logs when that

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 CC: miny...@acm.org Index: kernel_ipmi/drivers/char/ipmi/ipmi_msghandler.c === --- kernel_ipmi.orig/drivers/char

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 to

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] scsi: add try_rc16 blacklist flag

2014-10-14 Thread Martin K. Petersen
> "Sitsofe" == Sitsofe Wheeler 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 this as a

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

2014-10-14 Thread Martin K. Petersen
> "Sitsofe" == Sitsofe Wheeler 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 O

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] Do not silently discard WRITE_SAME requests

2014-10-14 Thread Martin K. Petersen
> "Petr" == Petr Vandrovec 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 for WR

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 a écrit : > On 10/06/2014 01:11 AM, Benoit Masson wrote: >> Le 3 oct. 2014 à 17:41, Sebastian Hesselbarth >> a écrit : >>> On 10/03/2014 05:29 PM, Benoit Masson wrote: Le 3 oct. 2014 à 17:06, Sebastian Hesselbarth a écrit : > On 10

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 infin

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; driverdev-de...@l

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 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 state, just like

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;

[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 simpl

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

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 > >wrote: > >>>+ /* > >>>+* We need

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 > wrote: > > > + /* > > > +* We need to soft reset the cpu when we turn off the cpu power >

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 abo

Re: [PATCHv1 0/8] CGroup Namespaces

2014-10-14 Thread Aditya Kali
On Tue, Oct 14, 2014 at 3:42 PM, Andy Lutomirski wrote: > On Mon, Oct 13, 2014 at 2:23 PM, Aditya Kali wrote: >> Second take at the Cgroup Namespace patch-set. >> >> Major changes form RFC (V0): >> 1. setns support for cgroupns >> 2. 'mount -t cgroup cgroup ' from inside a cgroupns now >>moun

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 > wrote: > > Changes *before* v1: > > > > * This patchset is a hugely cut-down successor to "[PATCH v11 00/19] > > arm: KGDB NMI/FIQ s

[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 simpl

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"

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

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 > 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 interrupt to

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 > --- > drivers/hid/i2c-hid/i2c-hid.c | 1 + > 1

[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 Luto

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

2014-10-14 Thread Andy Lutomirski
Signed-off-by: Andy Lutomirski --- 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 --- a/include/linux/perf_event.h +++

[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: allo

[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 --- arch/x86/incl

[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 functions

[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 e

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 wrote: > Quoting Andy Lutomirski (l...@amacapital.net): >> On Tue, Oct 14, 2014 at 3:14 PM, Serge E. Hallyn wrote: >> > Quoting Serge E. Hallyn (se...@hallyn.com): >> >> Quoting Eric W. Biederman (ebied...@xmission.com): >> >> > Andy Lutomirski wr

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 Serge E. Hallyn
Quoting Andy Lutomirski (l...@amacapital.net): > On Tue, Oct 14, 2014 at 3:14 PM, Serge E. Hallyn wrote: > > Quoting Serge E. Hallyn (se...@hallyn.com): > >> Quoting Eric W. Biederman (ebied...@xmission.com): > >> > Andy Lutomirski writes: > >> > > >> > > If a process gets access to a mount from

Re: rotary encoder linux driver

2014-10-14 Thread Ben Gamari
Johan Hovold 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 t

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 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 thing. We should

Re: [PATCHv1 0/8] CGroup Namespaces

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

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: [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 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 structure. For histo

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 wrote: > On Fri, 2014-10-10 at 17:09 +0300, Dmitry Kasatkin wrote: >> Currently secure IMA/EVM initialization has to be done from the i

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 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() implementations... > Check

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] 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 wrote: > Quoting Serge E. Hallyn (se...@hallyn.com): >> Quoting Eric W. Biederman (ebied...@xmission.com): >> > Andy Lutomirski writes: >> > >> > > If a process gets access to a mount from a descendent or unrelated >> > > user namespace, that proce

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 wrote: > Quoting Eric W. Biederman (ebied...@xmission.com): >> Andy Lutomirski 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 Serge E. Hallyn
Quoting Serge E. Hallyn (se...@hallyn.com): > Quoting Eric W. Biederman (ebied...@xmission.com): > > Andy Lutomirski 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 o

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 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 work all th

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 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

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 : > From: Stephen Hemminger > Date: Mon, 15 Sep 2014 13:53:39 -0700 > >> On Mon, 15 Sep 2014 13:07:21 -0400 (EDT) >> David Miller wrote: >> >>> From: Stephen Hemminger >>> Date: Sun, 14 Sep 2014 19:05:57 -0700 >>> >>> > On Sun, 14 Sep 2014 19:33:43 +0200 >

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 wrote: > Andy Lutomirski 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. >> >> Th

[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 Rong

Re: [PATCH V5 13/13] Documentation: add a section for /proc//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 > > (some nitpicking below) (As discussed, please ignore the "'" nitpicking :) thanks, -serge -- To unsubscribe from this list: send the line "unsubscribe linux-kernel

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

2014-10-14 Thread Eric W. Biederman
Andy Lutomirski 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 filesystems to be > mou

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 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 GCOV_PROF

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 > --- > arch/x86/purgatory/Makefile | 1 + > 1 file chang

[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 CONFIG_HAVE_EFFI

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 wrote: + /* +* We need to soft reset the cpu when we turn off the cpu power domain, +* or else the acti

[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 condition

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 > 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 interrupt to

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] 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 > > 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 really needs fix

[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 --- drivers/hid/i2c-hid/i2c-hid.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/hid/i2c-hid/i2c-hid.c b/dri

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] 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. Th

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 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 change needed is a

[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 powersa

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 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

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 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 > Reviewed-by: K. Y. Srinivasan Instead of adding hack after ha

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 si

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 : > 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 through the norm

[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: git://git.kernel

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? >> >> T

Re: [fuse-devel] [PATCH v4 4/5] fuse: Support privileged xattrs only with a mount option

2014-10-14 Thread Eric W. Biederman
Andy Lutomirski writes: > On Tue, Oct 14, 2014 at 2:13 PM, Eric W. Biederman > wrote: >> Seth Forshee writes: >> >>> On Tue, Oct 14, 2014 at 01:01:02PM -0700, Eric W. Biederman wrote: Michael j Theall writes: > Seth Forshee wrote on 10/14/2014 09:25:55 > AM: > >

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

2014-10-14 Thread Heiko Stübner
Am Dienstag, 14. Oktober 2014, 13:24:03 schrieb Doug Anderson: > Kever, > > On Mon, Oct 13, 2014 at 1:12 PM, Kever Yang wrote: > > + /* > > +* We need to soft reset the cpu when we turn off the cpu power > > domain, +* or else the active processors might be stalled when > >

[PATCH v2 2/3] pinctrl: meson: add device tree bindings documentation

2014-10-14 Thread Beniamino Galvani
Add device tree bindings documentation for Amlogic Meson pinmux and GPIO controller. Signed-off-by: Beniamino Galvani --- .../devicetree/bindings/pinctrl/meson,pinctrl.txt | 79 ++ 1 file changed, 79 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl

[PATCH v2 3/3] ARM: dts: meson8: add pinctrl and gpio nodes

2014-10-14 Thread Beniamino Galvani
Add pinctrl node to meson8.dtsi and gpio-leds node to meson8-vega-s89e.dts Signed-off-by: Beniamino Galvani --- arch/arm/boot/dts/meson8-vega-s89e.dts | 16 +++- arch/arm/boot/dts/meson8.dtsi | 35 ++ 2 files changed, 50 insertions(+), 1 delet

[PATCH v2 1/3] pinctrl: add driver for Amlogic Meson SoCs

2014-10-14 Thread Beniamino Galvani
This is a driver for the pinmux and GPIO controller available in Amlogic Meson SoCs. At the moment it only supports Meson8 devices, however other SoC families like Meson6 and Meson8b (the Cortex-A5 variant) appear to be similar, with just different sets of banks and registers. GPIO interrupts are

[PATCH v2 0/3] Pinctrl driver for Amlogic Meson SoCs

2014-10-14 Thread Beniamino Galvani
Hi, this series introduces a driver for Amlogic Meson pinctrl and GPIOs, adding the basic infrastructure for all the SoCs of the Meson family and configuration data specific for Meson8. I tested the pinmux and GPIO functionalities on a Tronsmart Vega S89e TV box and everything seems to work, howe

Re: [PATCH v5] init: Disable defaults if init= fails

2014-10-14 Thread Andy Lutomirski
On Tue, Oct 14, 2014 at 2:00 PM, Andrew Morton wrote: > On Wed, 1 Oct 2014 11:13:14 -0700 Andy Lutomirski wrote: > >> On Wed, Oct 1, 2014 at 11:05 AM, wrote: >> > On Tue, Sep 30, 2014 at 09:53:56PM -0700, Andy Lutomirski wrote: >> >> I significantly prefer default N. Scripts that play with ini

Re: unaligned accesses in SLAB etc.

2014-10-14 Thread mroos
> > 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 has been present forever. Umm? I am afraid I have been

Re: [fuse-devel] [PATCH v4 4/5] fuse: Support privileged xattrs only with a mount option

2014-10-14 Thread Andy Lutomirski
On Tue, Oct 14, 2014 at 2:13 PM, Eric W. Biederman wrote: > Seth Forshee writes: > >> On Tue, Oct 14, 2014 at 01:01:02PM -0700, Eric W. Biederman wrote: >>> Michael j Theall writes: >>> >>> > Seth Forshee wrote on 10/14/2014 09:25:55 AM: >>> > >>> >> From: Seth Forshee >>> >> To: Miklos Szered

[3.13.y.z extended stable] Linux 3.13.11.9

2014-10-14 Thread Kamal Mostafa
I am announcing the release of the Linux 3.13.11.9 kernel. The updated 3.13.y tree can be found at: git://kernel.ubuntu.com/ubuntu/linux.git linux-3.13.y and can be browsed at: http://kernel.ubuntu.com/git?p=ubuntu/linux.git;h=refs/heads/linux-3.13.y;a=shortlog The diff from v3.13.11.8 is p

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

2014-10-14 Thread Haiyang Zhang
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 Reviewed-by: K. Y. Srinivasan --- drivers/net/hyperv/netvsc_drv.c | 16 ++-- 1 files changed, 10 insertions(+), 6 del

Re: [fuse-devel] [PATCH v4 4/5] fuse: Support privileged xattrs only with a mount option

2014-10-14 Thread Eric W. Biederman
Seth Forshee writes: > On Tue, Oct 14, 2014 at 01:01:02PM -0700, Eric W. Biederman wrote: >> Michael j Theall writes: >> >> > Seth Forshee wrote on 10/14/2014 09:25:55 AM: >> > >> >> From: Seth Forshee >> >> To: Miklos Szeredi >> >> Cc: fuse-de...@lists.sourceforge.net, "Serge H. Hallyn" >>

Re: [PATCH v2] char: hw_random: core.c: Changed from using strncat to strlcat

2014-10-14 Thread Rickard Strandqvist
2014-10-14 17:36 GMT+02:00 Jason Cooper : > On Mon, Oct 13, 2014 at 11:20:35PM +0200, Rickard Strandqvist wrote: >> 2014-10-12 21:22 GMT+02:00 Jason Cooper : >> > Rickard, >> > >> > On Sun, Oct 12, 2014 at 12:49:31PM +0200, Rickard Strandqvist wrote: >> >> Changed from using strncat to strlcat to s

[PATCH 04/24] perf callchain: Move callchain_param to util object in to fix python test

2014-10-14 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa In following commit we changed the location of callchains data: 72a128aa083a7f4cc4f800718aaae05d9c698e26 perf tools: Move callchain config from record_opts to callchain_param Now all callchains stuff stays in callchain_param struct, which adds its dependency for evsel.c obje

[PATCH 05/24] perf sched: Stop updating hists stats, not used

2014-10-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Not used here, remove to reduce perf_evsel/hists structs interaction. Cc: Adrian Hunter Cc: Borislav Petkov Cc: David Ahern Cc: Don Zickus Cc: Frederic Weisbecker Cc: Jean Pihet Cc: Jiri Olsa Cc: Mike Galbraith Cc: Namhyung Kim Cc: Paul Mackerras Cc: Pete

[PATCH 11/24] perf session: Remove last reference to hists struct

2014-10-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Now perf_session doesn't require that the evsels in its evlist are hists containing ones. Tools that are hists based and want to do per evsel events_stats updates, if at some point this turns into a necessity, should do it in the tool specific code, keeping the ses

[PATCH 07/24] perf evsel: Add hists helper

2014-10-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Not all tools need a hists instance per perf_evsel, so lets pave the way to remove evsel->hists while leaving a way to access the hists from a specially allocated evsel, one that comes with space at the end where lives the evsel. Cc: Adrian Hunter Cc: Borislav Pet

[PATCH 21/24] perf tools: fix off-by-one error in maps

2014-10-14 Thread Arnaldo Carvalho de Melo
From: Stephane Eranian This patch fixes off-by-one errors in the management of maps. A map is defined by start address and length as implemented by map__new(): map__init(map, type, start, start + len, pgoff, dso); map->start = addr; map->end = end; Consequently, the actual address range

[PATCH 18/24] perf evsel: Add missing 'target' struct forward declaration

2014-10-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We use it in evsel.h but were getting it indirectly, fix it. Noticed while working on having evsel.h usable by rasd.c. Cc: Adrian Hunter Cc: Borislav Petkov Cc: David Ahern Cc: Don Zickus Cc: Frederic Weisbecker Cc: Jean Pihet Cc: Jiri Olsa Cc: Mike Galbrai

Re: [PATCHSET 0/5] perf tools: Speed up dwarf callchain post-unwinding for libunwind (v4)

2014-10-14 Thread Arnaldo Carvalho de Melo
Em Mon, Oct 13, 2014 at 08:11:58PM +0200, Jiri Olsa escreveu: > On Mon, Oct 06, 2014 at 09:45:58AM +0900, Namhyung Kim wrote: > > Namhyung Kim (5): > > perf report: Set callchain_param.record_mode for future use > > perf callchain: Create an address space per thread > > perf callchain: Use gl

[PATCH 19/24] perf evsel: Make some exit routines static

2014-10-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Since they are automatically called by other methods used by tools. Cc: Adrian Hunter Cc: Borislav Petkov Cc: David Ahern Cc: Don Zickus Cc: Frederic Weisbecker Cc: Jean Pihet Cc: Jiri Olsa Cc: Mike Galbraith Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter

[PATCH 20/24] perf machine: Add missing dsos->root rbtree root initialization

2014-10-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo A segfault happens on 'perf test hists_link' because we end up using a struct machines on the stack, and then machines__init() was not initializing the newly introduced rb_root, just the existing list_head. When we introduced struct dsos, to group the two ways to s

[PATCH 24/24] perf symbols: Make sym->end be the first address after the symbol range

2014-10-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To follow vm_area_struct->vm_end convention. By adhering to the convention that ->end is the first address outside the symbol's range we can do things like: sym->end = start + len; len = sym->end - sym->start; This is also now the convention used

[PATCH 22/24] perf tools: Fixup off-by-one comparision in maps__find

2014-10-14 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim map->end is the first addr _outside_ the a map, following the convention of vm_area_struct->vm_end. Signed-off-by: Namhyung Kim Acked-by: Stephane Eranian Cc: David Ahern Cc: Ingo Molnar Cc: Jiri Olsa Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Stephane Eranian Link: http:

[PATCH 23/24] perf symbols: Fix map->end fixup

2014-10-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo When synthesizing maps from files that have incomplete symbol information, like kallsyms, we need to fixup the end of maps by seting its end from the ->start of the next map, fix it to set prev_map->end to curr_map->start, since ->end is the first byte outside prev_

<    1   2   3   4   5   6   >