[RFC PATCH -v2.1] x86: Kill notsc

2015-11-16 Thread Borislav Petkov
Here's v2.1 with comments fixed. I still need to run it through the boxes to see what breaks, thus the RFC. --- From: Borislav Petkov Date: Sun, 18 Oct 2015 16:05:32 +0200 Subject: [RFC PATCH -v2.1] x86: Kill notsc Kill "notsc" cmdline option and all the glue around it. The two boxes worldwide w

Re: [PATCH 1/8] stop_machine: cpu_stopper_thread() must check done != NULL

2015-11-16 Thread Tejun Heo
On Sun, Nov 15, 2015 at 08:33:11PM +0100, Oleg Nesterov wrote: > stop_one_cpu_nowait(fn) will crash the kernel if the callback returns > nonzero, work->done == NULL in this case. > > This needs more cleanups, cpu_stop_signal_done() is called right after > we check done != NULL and it does the same

Re: [PATCH] kvm/vmx: EPTP switching test

2015-11-16 Thread Andy Lutomirski
On Mon, Nov 16, 2015 at 10:18 AM, =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= wrote: > 2015-11-16 19:59+0200, Michael S. Tsirkin: >> On Mon, Nov 16, 2015 at 06:51:06PM +0100, >> =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= wrote: >>> 2015-11-15 18:00+0200, Michael S. Tsirkin: >>> (And I think that ept

Re: [PATCH 14/14] mm: memcontrol: hook up vmpressure to socket pressure

2015-11-16 Thread Johannes Weiner
On Sun, Nov 15, 2015 at 04:54:57PM +0300, Vladimir Davydov wrote: > On Thu, Nov 12, 2015 at 06:41:33PM -0500, Johannes Weiner wrote: > > Let the networking stack know when a memcg is under reclaim pressure > > so that it can clamp its transmit windows accordingly. > > > > Whenever the reclaim effi

Re: [PATCH, resend] scsi: advansys: fix big-endian builds

2015-11-16 Thread Geert Uytterhoeven
On Mon, Nov 16, 2015 at 7:20 PM, Russell King - ARM Linux wrote: > On Mon, Nov 16, 2015 at 05:49:23PM +0100, Arnd Bergmann wrote: >> It turns out that the commit that introduced this used the cpu_to_le32() >> incorrectly on an 8-bit field, which results in the sense_len to always >> be set to zero

Re: [PATCH v2 0/3] nvdimm: Add an IOCTL pass thru for DSM calls

2015-11-16 Thread Dan Williams
On Mon, Nov 16, 2015 at 10:38 AM, Jerry Hoemann wrote: > > The NVDIMM code in the kernel supports an IOCTL interface to user > space based upon the Intel Example DSM: > > http://pmem.io/documents/NVDIMM_DSM_Interface_Example.pdf > > This interface cannot be used by other NVDIMM DSMs that s

Re: [PATCH] KVM: x86: Add lowest-priority support for vt-d posted-interrupts

2015-11-16 Thread Radim Krčmář
2015-11-09 10:46+0800, Feng Wu: > Use vector-hashing to handle lowest-priority interrupts for > posted-interrupts. As an example, modern Intel CPUs use this > method to handle lowest-priority interrupts. (I don't think it's a good idea that the algorithm differs from non-PI lowest priority delive

Re: [PATCH 07/13] bpf tools: Load a program with different instances using preprocessor

2015-11-16 Thread Arnaldo Carvalho de Melo
Em Mon, Nov 16, 2015 at 12:10:09PM +, Wang Nan escreveu: > This patch is a preparation for BPF prologue support which allows > generating a series of BPF bytecode for fetching kernel data before > calling program code. With the newly introduced multiple instances > support, perf is able to crea

RE: [PATCH 3/9] IB: add a helper to safely drain a QP

2015-11-16 Thread Steve Wise
> -Original Message- > From: linux-rdma-ow...@vger.kernel.org > [mailto:linux-rdma-ow...@vger.kernel.org] On Behalf Of Sagi Grimberg > Sent: Monday, November 16, 2015 12:38 PM > To: Steve Wise; 'Christoph Hellwig'; linux-r...@vger.kernel.org > Cc: bart.vanass...@sandisk.com; ax...@fb.com

Re: [PATCH] xen/x86: Adjust stack pointer in xen_sysexit

2015-11-16 Thread Andy Lutomirski
On Mon, Nov 16, 2015 at 8:25 AM, Boris Ostrovsky wrote: > On 11/15/2015 01:02 PM, Andy Lutomirski wrote: >> >> On Nov 13, 2015 5:23 PM, "Boris Ostrovsky" >> wrote: >>> >>> >>> >>> On 11/13/2015 06:26 PM, Andy Lutomirski wrote: On Fri, Nov 13, 2015 at 3:18 PM, Boris Ostrovsky wrote

Re: [PATCH 8/8] stop_machine: cleanup the usage of preemption counter in cpu_stopper_thread()

2015-11-16 Thread Tejun Heo
On Sun, Nov 15, 2015 at 08:33:32PM +0100, Oleg Nesterov wrote: > 1. Change this code to use preempt_count_inc/preempt_count_dec; this way >it works even if CONFIG_PREEMPT_COUNT=n, and we avoid the unnecessary >__preempt_schedule() check (stop_sched_class is not preemptible). > >And thi

Re: [PATCH v3 5/5] x86/entry/64: Bypass enter_from_user_mode on non-context-tracking boots

2015-11-16 Thread Andy Lutomirski
On Nov 13, 2015 7:26 AM, "Frederic Weisbecker" wrote: > > On Thu, Nov 12, 2015 at 12:59:04PM -0800, Andy Lutomirski wrote: > > On CONFIG_CONTEXT_TRACKING kernels that have context tracking > > disabled at runtime (which includes most distro kernels), we still > > have the overhead of a call to ent

Re: [PATCH v2 1/2] usb: dwc2: host: Fix missing device insertions

2015-11-16 Thread Felipe Balbi
hi, Doug Anderson writes: > Felipe, > > On Mon, Nov 16, 2015 at 10:22 AM, Felipe Balbi wrote: >>> I added "force" in v2 of the patch in response to John's feedback to >>> v1. He pointed out that when you unload the module when you have a >>> device connected that my v1 patch would not properly

Re: [PATCH] mtd: nand: mxc_nand: fix a possible NULL dereference

2015-11-16 Thread Corentin LABBE
Le 16/11/2015 19:33, Brian Norris a écrit : > On Thu, Nov 12, 2015 at 09:19:09AM +0100, Uwe Kleine-König wrote: >> I really wonder there is no helper >> function like: >> >> #define of_sensible_name(dev) >> of_match_device(dev->driver->of_match_table, dev) > > How about of_device_get_match

[PATCH 1/2] irqchip: Add brcm,bcm6345-l1-intc device tree binding

2015-11-16 Thread Simon Arlott
Add device tree binding for the BCM6345 interrupt controller. This controller is similar to the SMP-capable BCM7038 and the BCM3380 but with packed interrupt registers. Signed-off-by: Simon Arlott --- On 16/11/15 15:34, Rob Herring wrote: > On Sun, Nov 15, 2015 at 04:51:16PM +, Simon Arlott

[PATCH 0/4] irqchip/gic: Deal with the active state across kexec and suspend/resume

2015-11-16 Thread Marc Zyngier
Now that the kernel uses EOImode==1 for the GIC, this uncovers a number of cases where the active state is not correctly handled: - When doing kexec, we directly call the irq_eoi() method, which may violate ordering constraints, or leave interrupts active. - When booting, we don't reset the acti

[PATCH 1/4] arm: kexec: Deactivate in-flight interrupts

2015-11-16 Thread Marc Zyngier
machine_kexec_mask_interrupts iterates over the system interrupts and tries to mask all interrupts, including those that are currently being handled. The current method includes finding out if an interrupt is in progress, and call the EOI method if that's the case. This methods has a few issues wh

[PATCH 4/4] irqchip/gic: Add save/restore of the active state

2015-11-16 Thread Marc Zyngier
When using EOImode==1, we may mark interrupts as being forwarded to a virtual machine. In that case, the interrupt is left active while being passed to the VM. If we suspend the system before the VM has deactivated the interrupt, the active state will be lost (which may be very annoying, as this m

[PATCH 3/4] irqchip/gic: Clear enable bits before restoring them

2015-11-16 Thread Marc Zyngier
When restoring the GIC state (after a suspend/resume cycle, for example), the driver directly writes the 'enabled' state it has saved by accessing GICD_ISENABLERn, which performs an OR operation between the value present in the register and the value we write. If whatever code that has run before

[PATCH 2/4] irqchip/gic: Make sure all interrupts are deactivated at boot

2015-11-16 Thread Marc Zyngier
When booting a GIC/GICv3 based system, we have no idea what state the firmware (or previous kernel in the case of kexec) has left the GIC, and some interrupts may still be active. In order to garantee that we have a clean state, make sure the active bits are cleared at init time. Signed-off-by: M

[PATCH v3 4/5] ARM: imx_v6_v7_defconfig: add TS-4800 watchdog

2015-11-16 Thread Damien Riegel
The TS-4800, based on an IMX.515, needs its watchdog support in order to work. Signed-off-by: Damien Riegel --- arch/arm/configs/imx_v6_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig index 79194c6..896

[PATCH v3 1/5] of: add vendor prefix for Technologic Systems

2015-11-16 Thread Damien Riegel
Signed-off-by: Damien Riegel Acked-by: Lee Jones --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt index 82d2ac9..0a70537 100

[PATCH v3 0/5] Add board support for TS-4800

2015-11-16 Thread Damien Riegel
This patch serie adds support for TS-4800 board. This board, manufactured by Technologic Systems, is based on an IMX515. The first stage bootloader, called TS-BOOTROM, enables the watchdog, so a watchdog driver is requi

Re: [PATCH v2] ip_tunnel: disable preemption when updating per-cpu tstats

2015-11-16 Thread David Miller
From: "Jason A. Donenfeld" Date: Thu, 12 Nov 2015 17:35:58 +0100 > Drivers like vxlan use the recently introduced > udp_tunnel_xmit_skb/udp_tunnel6_xmit_skb APIs. udp_tunnel6_xmit_skb > makes use of ip6tunnel_xmit, and ip6tunnel_xmit, after sending the > packet, updates the struct stats using the

[PATCH v3 5/5] ARM: dts: TS-4800: add basic device tree

2015-11-16 Thread Damien Riegel
This device tree adds support for TS-4800 by Technologic Systems. This board is based on MX51-babbage, but there are some subtle differences in the pins used, and there is an additional FPGA that is memory-mapped. More details here: http://wiki.embeddedarm.com/wiki/TS-4800 Signed-off-by: Damien

[PATCH v3 3/5] watchdog: ts4800: add driver for TS-4800 watchdog

2015-11-16 Thread Damien Riegel
This watchdog is instantiated in a FPGA that is memory mapped. It is made of only one register, called the feed register. Writing to this register will re-arm the watchdog for a given time (and enable it if it was disable). It can be disabled by writing a special value into it. It is part of a sys

[PATCH v3 2/5] mfd: syscon: add a DT property to set value width

2015-11-16 Thread Damien Riegel
Currently syscon has a fixed configuration of 32 bits for register and values widths. In some cases, it would be desirable to be able to customize the value width. For example, certain boards (like the ones manufactured by Technologic Systems) have a FPGA that is memory-mapped, but its registers a

Re: [PATCH v3 2/5] tty: Introduce SER_RS485_SOFTWARE read-only flag for struct serial_rs485

2015-11-16 Thread Peter Hurley
On 11/14/2015 10:25 AM, One Thousand Gnomes wrote: >> I specifically asked for it. >> >> I can think of 2 reasons that userspace wants to know: >> 1. Because the characteristics of the software emulation are unacceptable so >>the application wants to terminate w/error rather than continue. > >

Re: [PATCH] net: phy: at803x: support interrupt on 8030 and 8035

2015-11-16 Thread David Miller
From: Mans Rullgard Date: Thu, 12 Nov 2015 17:40:20 + > Commit 77a993942 "phy/at8031: enable at8031 to work on interrupt mode" > added interrupt support for the 8031 PHY but left out the other two > chips supported by this driver. > > This patch sets the .ack_interrupt and .config_intr funct

Re: [PATCH] usb: phy: msm: fix a possible NULL dereference

2015-11-16 Thread Corentin LABBE
Le 16/11/2015 18:07, Felipe Balbi a écrit : > > Hi, > > LABBE Corentin writes: >> of_match_device could return NULL, and so cause a NULL pointer >> dereference later. Renaming id to of_id (like all others do) in the >> process. >> >> Reported-by: coverity (CID 1324133) >> Signed-off-by: LABBE Co

Re: [PATCH] net: phy: vitesse: add support for VSC8601

2015-11-16 Thread David Miller
From: Mans Rullgard Date: Thu, 12 Nov 2015 18:41:12 + > This adds support for the Vitesse VSC8601 PHY. Generic functions are > used for everything except interrupt handling. > > Signed-off-by: Mans Rullgard Applied. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel"

[PATCH website] Bump EOL date on 3.2

2015-11-16 Thread Ben Hutchings
I will continue maintaining Linux 3.2 as part of the Debian LTS team, which is supporting Debian 7 on x86 until May 2018. --- content/releases.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/releases.rst b/content/releases.rst index d5dc139..cc4ea10 100644 --- a/con

Re: [PATCH v3 0/3] mailbox: Add APM X-Gene platform mailbox driver

2015-11-16 Thread Duc Dang
On Mon, Nov 9, 2015 at 10:05 AM, Duc Dang wrote: > APM X-Gene SoC has a mailbox controller that provides > communication mechanism for X-Gene Arm64 cores to communicate > with X-Gene SoC's Cortex M3 (SLIMpro) processor. > > X-Gene mailbox controller provides 8 mailbox channels, with > each channel

Re: [PATCH] usb: phy: msm: fix a possible NULL dereference

2015-11-16 Thread Felipe Balbi
Hi, (you need to break your lines at 80 characters) Corentin LABBE writes: > Le 16/11/2015 18:07, Felipe Balbi a écrit : >> >> Hi, >> >> LABBE Corentin writes: >>> of_match_device could return NULL, and so cause a NULL pointer >>> dereference later. Renaming id to of_id (like all others do)

Re: spi: OF module autoloading is still broken

2015-11-16 Thread Brian Norris
Hi Javier, On Mon, Nov 16, 2015 at 02:19:27PM -0300, Javier Martinez Canillas wrote: > On 11/13/2015 08:48 PM, Brian Norris wrote: > > On Fri, Nov 13, 2015 at 11:14:10PM +, Mark Brown wrote: > >> On Fri, Nov 13, 2015 at 02:51:13PM -0800, Brian Norris wrote: > Documentation/devicetree/bindings

Re: [PATCH v4 09/24] regulator: pwm: use pwm_get/set_default_xxx() helpers where appropriate

2015-11-16 Thread Boris Brezillon
On Mon, 16 Nov 2015 18:42:38 + Mark Brown wrote: > On Mon, Nov 16, 2015 at 01:23:59PM +0100, Boris Brezillon wrote: > > Mark Brown wrote: > > > On Mon, Nov 16, 2015 at 09:56:32AM +0100, Boris Brezillon wrote: > > > > > - pwm_reg_period = pwm_get_period(drvdata->pwm); > > > > + p

[PATCH v4 1/3] devicetree: bindings: Add optional dynamic-power-coefficient property

2015-11-16 Thread Punit Agrawal
The dynamic power consumption of a device is proportional to the square of voltage (V) and the clock frequency (f). It can be expressed as Pdyn = dynamic-power-coefficient * V^2 * f. The coefficient represents the running time dynamic power consumption in units of mw/MHz/uVolt^2 and can be used i

[PATCH v4 2/3] cpufreq-dt: Supply power coefficient when registering cooling devices

2015-11-16 Thread Punit Agrawal
Support registering cooling devices with dynamic power coefficient where provided by the device tree. This allows OF registered cooling devices driver to be used with the power_allocator thermal governor. Signed-off-by: Punit Agrawal Acked-by: Viresh Kumar Reviewed-by: Javi Merino Cc: Eduardo V

[PATCH v4 0/3] Dynamic power model from device tree

2015-11-16 Thread Punit Agrawal
Hi, This patchset adds support to build a single-coefficient dynamic power model for a CPU. The model is used by the CPU cooling device to provide an estimate of power consumption and also translate allocated power to performance cap. Changes from previous posting - v3 -> v4: arm_big_little: Mig

[PATCH v4 3/3] cpufreq: arm_big_little: Add support to register a cpufreq cooling device

2015-11-16 Thread Punit Agrawal
Register passive cooling devices when initialising cpufreq on big.LITTLE systems. If the device tree provides a dynamic power coefficient for the CPUs then the bound cooling device will support the extensions that allow it to be used with all the existing thermal governors including the power alloc

Re: [PATCH v2] ip_tunnel: disable preemption when updating per-cpu tstats

2015-11-16 Thread Jason A. Donenfeld
On Mon, Nov 16, 2015 at 8:17 PM, David Miller wrote: > So another fix could have been to do local_bh_disable() in the > udp_tunnel6_xmit_skb() helper. This would have fixed one problem, but everywhere udp_tunnel_xmit_skb() (4, not 6) is called, iptunnel_xmit_stats is called right after it, so the

Re: [v2] hwmon: (scpi) skip unsupported sensors properly

2015-11-16 Thread Punit Agrawal
Guenter Roeck writes: > On Wed, Oct 28, 2015 at 05:17:31PM +, Sudeep Holla wrote: >> Currently it's assumed that firmware exports only the class of sensors >> supported by the driver. However with newer firmware or SCPI protocol >> revision, support for newer classes of sensors can be present

Re: [PATCH v2 1/2] usb: dwc2: host: Fix missing device insertions

2015-11-16 Thread Alan Stern
On Mon, 16 Nov 2015, Doug Anderson wrote: > --- > > usb: dwc2: host: Fix missing device insertions > > If you've got your interrupt signals bouncing a bit as you insert your > USB device, you might end up in a state when the device is connected but > the driver doesn't know it. > > Specifically

Re: [PATCH 1/2] arm64: bpf: fix JIT frame pointer setup

2015-11-16 Thread David Miller
From: Yang Shi Date: Thu, 12 Nov 2015 13:57:00 -0800 > BPF fp should point to the top of the BPF prog stack. The original > implementation made it point to the bottom incorrectly. > Move A64_SP to fp before reserve BPF prog stack space. > > CC: Zi Shen Lim > CC: Xi Wang > Signed-off-by: Yang S

Re: [PATCH] bpf: samples: exclude asm/sysreg.h for arm64

2015-11-16 Thread David Miller
From: Yang Shi Date: Thu, 12 Nov 2015 14:07:46 -0800 > commit 338d4f49d6f7114a017d294ccf7374df4f998edc > ("arm64: kernel: Add support for Privileged Access Never") includes sysreg.h > into futex.h and uaccess.h. But, the inline assembly used by asm/sysreg.h is > incompatible with llvm so it will

Re: [PATCH 2/2] MIPS: bmips: Add bcm63168-l1 interrupt controller

2015-11-16 Thread Simon Arlott
On 16/11/15 12:56, Jonas Gorski wrote: > On Sun, Nov 15, 2015 at 5:53 PM, Simon Arlott wrote: >> Add the BCM63168 interrupt controller based on the SMP-capable BCM7038 >> and the BCM3380 but with packed interrupt registers. >> >> Add the BCM63168 interrupt controller to a list with the existing BC

Re: [PATCH RESEND] net: smsc911x: Reset PHY during initialization

2015-11-16 Thread David Miller
From: Pavel Fedin Date: Fri, 13 Nov 2015 09:46:59 +0300 > On certain hardware after software reboot the chip may get stuck and fail > to reinitialize during reset. This can be fixed by ensuring that PHY is > reset too. > > Old PHY resetting method required operational MDIO interface, therefore >

Re: [PATCH v2 1/2] usb: dwc2: host: Fix missing device insertions

2015-11-16 Thread Doug Anderson
Alan, On Mon, Nov 16, 2015 at 11:31 AM, Alan Stern wrote: > On Mon, 16 Nov 2015, Doug Anderson wrote: > >> --- >> >> usb: dwc2: host: Fix missing device insertions >> >> If you've got your interrupt signals bouncing a bit as you insert your >> USB device, you might end up in a state when the devi

Re: [PATCH] mtd: fsl-quadspi: possible NULL reference

2015-11-16 Thread kbuild test robot
Hi Brian, [auto build test WARNING on mtd/master] [also build test WARNING on v4.4-rc1 next-20151116] url: https://github.com/0day-ci/linux/commits/Brian-Norris/mtd-fsl-quadspi-possible-NULL-reference/20151117-024430 base: git://git.infradead.org/linux-mtd.git master config: i386

Re: [PATCH V3 2/2] arm64: bpf: make BPF prologue and epilogue align with ARM64 AAPCS

2015-11-16 Thread Shi, Yang
On 11/13/2015 6:39 PM, Z Lim wrote: Yang, I noticed another thing... On Fri, Nov 13, 2015 at 10:09 AM, Yang Shi wrote: Save and restore FP/LR in BPF prog prologue and epilogue, save SP to FP in prologue in order to get the correct stack backtrace. However, ARM64 JIT used FP (x29) as eBPF fp r

Re: [PATCH v2 03/11] pmem: enable REQ_FUA/REQ_FLUSH handling

2015-11-16 Thread Ross Zwisler
On Mon, Nov 16, 2015 at 09:28:59AM -0800, Dan Williams wrote: > On Mon, Nov 16, 2015 at 6:05 AM, Jan Kara wrote: > > On Mon 16-11-15 14:37:14, Jan Kara wrote: > [..] > > But a question: Won't it be better to do sfence + pcommit only in response > > to REQ_FLUSH request and don't do it after each w

[PATCH 2/8] sched: new clone flag CLONE_NEWCGROUP for cgroup namespace

2015-11-16 Thread serge
From: Aditya Kali CLONE_NEWCGROUP will be used to create new cgroup namespace. Signed-off-by: Aditya Kali Acked-by: Serge Hallyn --- include/uapi/linux/sched.h |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/uapi/linux/sched.h b/include/uapi/linux/sched.h inde

[PATCH 4/8] cgroup: export cgroup_get() and cgroup_put()

2015-11-16 Thread serge
From: Aditya Kali move cgroup_get() and cgroup_put() into cgroup.h so that they can be called from other places. Signed-off-by: Aditya Kali Acked-by: Serge Hallyn --- include/linux/cgroup.h | 21 + kernel/cgroup.c| 22 -- 2 files changed, 21

irq_fpu_usable() is false in ndo_start_xmit() for UDP packets

2015-11-16 Thread Jason A. Donenfeld
Hi David & Folks, I have a virtual device driver that does some fancy processing of packets in ndo_start_xmit before forwarding them onward out of a tunnel elsewhere. In order to make that fancy processing fast, I have AVX and AVX2 implementations. This means I need to use the FPU. So, I do the u

[PATCH 8/8] cgroup: Add documentation for cgroup namespaces

2015-11-16 Thread serge
From: Aditya Kali Signed-off-by: Aditya Kali Signed-off-by: Serge Hallyn --- Documentation/cgroups/namespace.txt | 142 +++ 1 file changed, 142 insertions(+) create mode 100644 Documentation/cgroups/namespace.txt diff --git a/Documentation/cgroups/namespace.t

[PATCH 7/8] cgroup: mount cgroupns-root when inside non-init cgroupns

2015-11-16 Thread serge
From: Aditya Kali This patch enables cgroup mounting inside userns when a process as appropriate privileges. The cgroup filesystem mounted is rooted at the cgroupns-root. Thus, in a container-setup, only the hierarchy under the cgroupns-root is exposed inside the container. This allows container

[PATCH 3/8] cgroup: add function to get task's cgroup

2015-11-16 Thread serge
From: Aditya Kali get_task_cgroup() returns the (reference counted) cgroup of the given task. Signed-off-by: Aditya Kali Acked-by: Serge Hallyn --- include/linux/cgroup.h |1 + kernel/cgroup.c| 25 + 2 files changed, 26 insertions(+) diff --git a/include

CGroup Namespaces (v4)

2015-11-16 Thread serge
Hi, following is a revised set of the CGroup Namespace patchset which Aditya Kali has previously sent. The code can also be found in the cgroupns.v4 branch of https://git.kernel.org/cgit/linux/kernel/git/sergeh/linux-security.git/ To summarize the semantics: 1. CLONE_NEWCGROUP re-uses 0x02

[PATCH 1/8] kernfs: Add API to generate relative kernfs path

2015-11-16 Thread serge
From: Aditya Kali The new function kernfs_path_from_node() generates and returns kernfs path of a given kernfs_node relative to a given parent kernfs_node. Signed-off-by: Aditya Kali Acked-by: Serge E. Hallyn --- fs/kernfs/dir.c| 195 ++--

[PATCH 6/8] cgroup: cgroup namespace setns support

2015-11-16 Thread serge
From: Aditya Kali setns on a cgroup namespace is allowed only if task has CAP_SYS_ADMIN in its current user-namespace and over the user-namespace associated with target cgroupns. No implicit cgroup changes happen with attaching to another cgroupns. It is expected that the somone moves the attachi

[PATCH 5/8] cgroup: introduce cgroup namespaces

2015-11-16 Thread serge
From: Aditya Kali Introduce the ability to create new cgroup namespace. The newly created cgroup namespace remembers the cgroup of the process at the point of creation of the cgroup namespace (referred as cgroupns-root). The main purpose of cgroup namespace is to virtualize the contents of /proc/

[PATCH] tracing: use seq_buf_used() in seq_buf_to_user() instead of len

2015-11-16 Thread Jerry Snitselaar
commit 5ac48378414d ("tracing: Use trace_seq_used() and seq_buf_used() instead of len") changed the tracing code to use trace_seq_used() and seq_buf_used() instead of using the seq_buf len directly to avoid overflow issues, but missed a spot in seq_buf_to_user() that makes use of s->len. Cleaned u

Re: [RFC] ARM64: simplify dma_get_ops

2015-11-16 Thread Arnd Bergmann
On Monday 16 November 2015 18:39:41 Catalin Marinas wrote: > On Mon, Nov 16, 2015 at 05:25:48PM +0100, Arnd Bergmann wrote: > > Including linux/acpi.h from asm/dma-mapping.h causes tons of compile-time > > warnings, e.g. > > > > drivers/isdn/mISDN/dsp_ecdis.h:43:0: warning: "FALSE" redefined > >

Re: [PATCH 1/1] net: usb: cdc_ether: add Dell DW5580 as a mobile broadband adapter

2015-11-16 Thread David Miller
From: Daniele Palmas Date: Fri, 13 Nov 2015 18:01:21 +0100 > Since Dell DW5580 is a 3G modem, this patch adds the device as a > mobile broadband adapter > > Signed-off-by: Daniele Palmas Applied. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a messag

Re: [PATCH] xen/x86: Adjust stack pointer in xen_sysexit

2015-11-16 Thread Borislav Petkov
On Mon, Nov 16, 2015 at 11:03:22AM -0800, Andy Lutomirski wrote: > ... > The reader surely doesn't remember that this isn't guaranteed to be a > swapgs instruction on native. Using: > > ALTERNATIVE "swapgs" "" X86_FEATURE_XENPV > > would be safer (it would get rid of the SWAPGS_UNSAFE_STACK mes

[PATCH] toshiba_acpi: Fix keyboard backight sysfs entries not being updated

2015-11-16 Thread Azael Avalos
Certain Toshiba models with the second generation keyboard backlight (type 2) do not generate the keyboard backlight changed event (0x92), and thus, the sysfs entries are never being updated. This patch adds a workquee and a global boolean variable to address the issue. For those models that do g

Re: spi: OF module autoloading is still broken

2015-11-16 Thread Javier Martinez Canillas
Hello Brian, On 11/16/2015 04:24 PM, Brian Norris wrote: > Hi Javier, > > On Mon, Nov 16, 2015 at 02:19:27PM -0300, Javier Martinez Canillas wrote: >> On 11/13/2015 08:48 PM, Brian Norris wrote: >>> On Fri, Nov 13, 2015 at 11:14:10PM +, Mark Brown wrote: On Fri, Nov 13, 2015 at 02:51:13P

Re: [PATCH v2 00/11] DAX fsynx/msync support

2015-11-16 Thread Ross Zwisler
On Mon, Nov 16, 2015 at 08:58:11AM -0800, Dan Williams wrote: > On Mon, Nov 16, 2015 at 6:41 AM, Jan Kara wrote: > > On Fri 13-11-15 17:06:39, Ross Zwisler wrote: > >> This patch series adds support for fsync/msync to DAX. > >> > >> Patches 1 through 7 add various utilities that the DAX code will

Re: [PATCH net-next] Driver: Vmxnet3: Fix use of mfTableLen for big endian architectures

2015-11-16 Thread David Miller
From: Shrikrishna Khare Date: Fri, 13 Nov 2015 15:42:10 -0800 > Signed-off-by: Shrikrishna Khare > Reported-by: Masao Uebayashi > Signed-off-by: Bhavesh Davda You guys really have to stop targetting simple, straightforward, bug fixes at net-next. That is not appropriate. Bug fixes should ta

Re: [PATCH 5/9] sfc: constify pci_error_handlers structures

2015-11-16 Thread David Miller
From: Julia Lawall Date: Sat, 14 Nov 2015 11:06:57 +0100 > This pci_error_handlers structure is never modified, like all the other > pci_error_handlers structures, so declare it as const. > > Done with the help of Coccinelle. > > Signed-off-by: Julia Lawall Applied. -- To unsubscribe from thi

Re: [PATCH 1/9] net: cavium: liquidio: constify pci_error_handlers structures

2015-11-16 Thread David Miller
From: Julia Lawall Date: Sat, 14 Nov 2015 11:06:53 +0100 > This pci_error_handlers structure is never modified, like all the other > pci_error_handlers structures, so declare it as const. > > Done with the help of Coccinelle. > > Signed-off-by: Julia Lawall Applied. -- To unsubscribe from thi

Re: [PATCH v2 net] raw: increment correct SNMP counters for ICMP messages

2015-11-16 Thread David Miller
From: Ben Cartwright-Cox Date: Sat, 14 Nov 2015 15:13:58 + > Sending ICMP packets with raw sockets ends up in the SNMP counters > logging the type as the first byte of the IPv4 header rather than > the ICMP header. This is fixed by adding the IP Header Length to > the casting into a icmphdr s

Re: [PATCH v2 03/11] pmem: enable REQ_FUA/REQ_FLUSH handling

2015-11-16 Thread Ross Zwisler
On Fri, Nov 13, 2015 at 06:32:40PM -0800, Dan Williams wrote: > On Fri, Nov 13, 2015 at 4:43 PM, Andreas Dilger wrote: > > On Nov 13, 2015, at 5:20 PM, Dan Williams wrote: > >> > >> On Fri, Nov 13, 2015 at 4:06 PM, Ross Zwisler > >> wrote: > >>> Currently the PMEM driver doesn't accept REQ_FLUSH

Re: [PATCH] xen/x86: Adjust stack pointer in xen_sysexit

2015-11-16 Thread Andy Lutomirski
On Mon, Nov 16, 2015 at 11:59 AM, Borislav Petkov wrote: > On Mon, Nov 16, 2015 at 11:03:22AM -0800, Andy Lutomirski wrote: > >> ... >> The reader surely doesn't remember that this isn't guaranteed to be a >> swapgs instruction on native. Using: >> >> ALTERNATIVE "swapgs" "" X86_FEATURE_XENPV >>

Re: [PATCH] net: dsa: Delete an unnecessary check before the function call "put_device"

2015-11-16 Thread David Miller
I'm starting to grow quite weary of these "unnecessary check" changes. Sometimes it is better to have them, either because the path is a hot path or some atomic sequence is involved. But there is never harm in them being there. All of this is a matter of taste, of course. But one thing I know

Routing loops & TTL tracking with tunnel devices

2015-11-16 Thread Jason A. Donenfeld
Hi folks, A few tunnel devices, like geneve or vxlan, are using udp_tunnel_xmit_skb, or related functions for transmitting packets, and are doing the usual FIB lookup to get the dst entry. I see a lot of code like this: if (rt->dst.dev == dev) { netdev_dbg(

Re: [PATCH] blk-flush: Queue through IO scheduler when flush not required

2015-11-16 Thread Jeff Moyer
Jan Kara writes: > Currently blk_insert_flush() just adds flush request to q->queue_head > when flush is not required. That completely bypasses IO scheduler so > e.g. CFQ can be idling waiting for new request to arrive and will idle > through the whole window unnecessarily. Luckily this only happ

Re: [PATCH v2 1/5] x86/mm/pageattr: Ensure cpa->pfn only contains page frame numbers

2015-11-16 Thread Thomas Gleixner
On Sat, 14 Nov 2015, Matt Fleming wrote: > The x86 pageattr code is confused about the data that is stored > cpa->pfn, sometimes it's treated as a page frame number, sometimes > it's treated as an unshifted physical address, and in one place it's > treated as a pte. Yuck. > The result of this is

Re: [PATCH] [media] i2c: constify v4l2_ctrl_ops structures

2015-11-16 Thread Laurent Pinchart
Hi Julia, Thank you for the patch. On Friday 13 November 2015 23:05:17 Julia Lawall wrote: > These v4l2_ctrl_ops structures are never modified, like all the other > v4l2_ctrl_ops structures, so declare them as const. > > Done with the help of Coccinelle. > > Signed-off-by: Julia Lawall Acked-

Re: [PATCH] mm: vmpressure: fix scan window after SWAP_CLUSTER_MAX increase

2015-11-16 Thread Johannes Weiner
Dear Hugh, [ sorry, I just noticed this email now ] On Wed, Oct 21, 2015 at 01:05:53PM -0700, Hugh Dickins wrote: > On Wed, 21 Oct 2015, Johannes Weiner wrote: > > On Mon, Oct 19, 2015 at 02:13:01PM -0400, Johannes Weiner wrote: > > > mm-increase-swap_cluster_max-to-batch-tlb-flushes.patch change

Re: [PATCH] xen/x86: Adjust stack pointer in xen_sysexit

2015-11-16 Thread Borislav Petkov
On Mon, Nov 16, 2015 at 12:11:11PM -0800, Andy Lutomirski wrote: > On Mon, Nov 16, 2015 at 11:59 AM, Borislav Petkov wrote: > > On Mon, Nov 16, 2015 at 11:03:22AM -0800, Andy Lutomirski wrote: > > > >> ... > >> The reader surely doesn't remember that this isn't guaranteed to be a > >> swapgs instr

[PATCH 1/2 (v2)] leds-bcm6328: Reuse bcm6328_led_set() instead of copying its functionality

2015-11-16 Thread Simon Arlott
When ensuring a consistent initial LED state in bcm6328_led (as they may be blinking instead of on/off), the LED register is set using an inverted copy of bcm6328_led_set(). To avoid further errors relating to active low handling, call this function directly instead. As bcm6328_led_set() acquires

Re: [PATCH v2 1/2] usb: dwc2: host: Fix missing device insertions

2015-11-16 Thread Julius Werner
Another point to note, which I think is what prevents the flow Alan suggested from working, is this little snippet in DWC2's hub_control GetPortStatus callback: if (!hsotg->flags.b.port_connect_status) { /* * The port is disconnected

Re: [PATCH v2 1/2] usb: dwc2: host: Fix missing device insertions

2015-11-16 Thread Alan Stern
On Mon, 16 Nov 2015, Doug Anderson wrote: > Alan, > > On Mon, Nov 16, 2015 at 11:31 AM, Alan Stern > wrote: > > On Mon, 16 Nov 2015, Doug Anderson wrote: > > > >> --- > >> > >> usb: dwc2: host: Fix missing device insertions > >> > >> If you've got your interrupt signals bouncing a bit as you in

Re: [PATCH] xen/x86: Adjust stack pointer in xen_sysexit

2015-11-16 Thread Boris Ostrovsky
On 11/16/2015 02:03 PM, Andy Lutomirski wrote: It's still a waste of effort, though. Also, I'd eventually like the number of places in Xen code in which rsp/esp is invalid to be exactly zero, and this approach makes this harder or even impossible. That's what PVH is going to do. Does PVH h

Re: irq_fpu_usable() is false in ndo_start_xmit() for UDP packets

2015-11-16 Thread David Miller
From: "Jason A. Donenfeld" Date: Mon, 16 Nov 2015 20:52:28 +0100 > This works fine with, say, iperf3 in TCP mode. The AVX performance > is great. However, when using iperf3 in UDP mode, irq_fpu_usable() > is mostly false! I added a dump_stack() call to see why, except > nothing looks strange; the

[PATCH] tools lib traceevents: Fix output of %llu for 64 bit values read on 32 bit machines

2015-11-16 Thread Steven Rostedt
When a long value is read on 32 bit machines for 64 bit output, the parsing needs to change "%lu" into "%llu", as the value is read natively. Unfortunately, if "%llu" is already there, the code will add another "l" to it and fail to parse it properly. Cc: sta...@vger.kernel.org Signed-off-by: St

Re: [PATCH v2 03/11] pmem: enable REQ_FUA/REQ_FLUSH handling

2015-11-16 Thread Dan Williams
On Mon, Nov 16, 2015 at 11:48 AM, Ross Zwisler wrote: > On Mon, Nov 16, 2015 at 09:28:59AM -0800, Dan Williams wrote: >> On Mon, Nov 16, 2015 at 6:05 AM, Jan Kara wrote: >> > On Mon 16-11-15 14:37:14, Jan Kara wrote: [..] > Is there any reason why this wouldn't work or wouldn't be a good idea? W

Re: Routing loops & TTL tracking with tunnel devices

2015-11-16 Thread Sowmini Varadhan
On (11/16/15 21:14), Jason A. Donenfeld wrote: > > But what about in devices for which self-routing might actually be > useful? For example, let's say that if an incoming skb is headed for > dst X, it gets encapsulated and sent to dst A, and for dst Y it gets > encapsulated and sent to dst B, and

Re: [PATCH v2 1/2] usb: dwc2: host: Fix missing device insertions

2015-11-16 Thread Alan Stern
On Mon, 16 Nov 2015, Julius Werner wrote: > Another point to note, which I think is what prevents the flow Alan > suggested from working, is this little snippet in DWC2's hub_control > GetPortStatus callback: > > if (!hsotg->flags.b.port_connect_status) { >

Re: [PATCH] Sound: Usb: Misc: ua101: replace le16_to_cpu() with usb_endpoint_maxp()

2015-11-16 Thread Cheah Kok Cheong
On Mon, Nov 16, 2015 at 09:04:02AM +0100, Takashi Iwai wrote: > On Sun, 15 Nov 2015 14:54:28 +0100, > Clemens Ladisch wrote: > > > > Cheah Kok Cheong wrote: > > > Commit 939f325f4a0f ("usb: add usb_endpoint_maxp() macro") > > > > > > And commit 29cc88979a88 ("USB: use usb_endpoint_maxp() > > > ins

Re: CGroup Namespaces (v4)

2015-11-16 Thread Richard Weinberger
Serge, On Mon, Nov 16, 2015 at 8:51 PM, wrote: > To summarize the semantics: > > 1. CLONE_NEWCGROUP re-uses 0x0200, which was previously CLONE_STOPPED > > 2. unsharing a cgroup namespace makes all your current cgroups your new > cgroup root. > > 3. /proc/pid/cgroup always shows cgroup paths

Re: CGroup Namespaces (v4)

2015-11-16 Thread Serge E. Hallyn
On Mon, Nov 16, 2015 at 09:41:15PM +0100, Richard Weinberger wrote: > Serge, > > On Mon, Nov 16, 2015 at 8:51 PM, wrote: > > To summarize the semantics: > > > > 1. CLONE_NEWCGROUP re-uses 0x0200, which was previously CLONE_STOPPED > > > > 2. unsharing a cgroup namespace makes all your curren

Re: [RFC] usb: dwc2: hcd: fix split schedule issue

2015-11-16 Thread Julius Werner
> To handle things smarter, I think I need to research how to deal with > hubs attached to hubs attached to hubs. For instance: > > dwc2 > -> multi_tt hub > -> single_tt hub > -> device 1 > -> device 2 Keep in mind that there's always at most one (active) TT between host and d

Re: spi: OF module autoloading is still broken

2015-11-16 Thread Brian Norris
Hi, On Mon, Nov 16, 2015 at 05:00:43PM -0300, Javier Martinez Canillas wrote: > On 11/16/2015 04:24 PM, Brian Norris wrote: > I also didn't think about wilcards... I wonder why there are trailing > wildcards for a compatible string. After all a compatible string should > define a particular IP an

Re: [PATCH] xen/x86: Adjust stack pointer in xen_sysexit

2015-11-16 Thread Boris Ostrovsky
On 11/16/2015 03:22 PM, Borislav Petkov wrote: On Mon, Nov 16, 2015 at 12:11:11PM -0800, Andy Lutomirski wrote: Are there really multiple feature bits for this stuff? I'd like to imagine that the entry code is all either Xen PV or native/PVH/PVHVM -- i.e. I assumed that PVH works like native f

Re: [PATCH] xen/x86: Adjust stack pointer in xen_sysexit

2015-11-16 Thread Andy Lutomirski
On Mon, Nov 16, 2015 at 12:48 PM, Boris Ostrovsky wrote: > On 11/16/2015 03:22 PM, Borislav Petkov wrote: >> >> On Mon, Nov 16, 2015 at 12:11:11PM -0800, Andy Lutomirski wrote: >> >>> Are there really multiple feature bits for this stuff? I'd like to >>> imagine that the entry code is all either

Re: CGroup Namespaces (v4)

2015-11-16 Thread Richard Weinberger
Am 16.11.2015 um 21:46 schrieb Serge E. Hallyn: > On Mon, Nov 16, 2015 at 09:41:15PM +0100, Richard Weinberger wrote: >> Serge, >> >> On Mon, Nov 16, 2015 at 8:51 PM, wrote: >>> To summarize the semantics: >>> >>> 1. CLONE_NEWCGROUP re-uses 0x0200, which was previously CLONE_STOPPED >>> >>> 2

Re: [PATCH] mm: fix incorrect behavior when process virtual address space limit is exceeded

2015-11-16 Thread Michal Hocko
[CCing Cyril] On Mon 16-11-15 18:36:19, Piotr Kwapulinski wrote: > When a new virtual memory area is added to the process's virtual address > space and this vma causes the process's virtual address space limit > (RLIMIT_AS) to be exceeded then kernel behaves incorrectly. Incorrect > behavior is a

Re: [PATCH v6] net: ethernet: add driver for Aurora VLSI NB8800 Ethernet controller

2015-11-16 Thread David Miller
From: Mans Rullgard Date: Mon, 16 Nov 2015 18:23:35 + > +static int nb8800_alloc_rx(struct net_device *dev, int i, bool napi) "i" is passed in as a signed int here, but: > +static void nb8800_receive(struct net_device *dev, unsigned i, unsigned len) ... > + err = nb8800_alloc_r

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