[PATCH 5/7 v21] LSM: Add security module hook list heads

2015-03-09 Thread Casey Schaufler
Subject: [PATCH 5/7 v21] LSM: Add security module hook list heads Add a list header for each security hook. They aren't used until later in the patch series. They are grouped together in a structure so that there doesn't need to be an external address for each. Macro-ize the initialization of

[PATCH 4/7 v21] LSM: Introduce security hook calling Macros

2015-03-09 Thread Casey Schaufler
Subject: [PATCH 4/7 v21] LSM: Introduce security hook calling Macros Introduce two macros around calling the functions in the security operations vector. The marco versions here do not change any behavior. Signed-off-by: Casey Schaufler --- security/security.c | 435

[PATCH 3/7 v21] LSM: Remove a comment from security.h

2015-03-09 Thread Casey Schaufler
Subject: [PATCH 3/7 v21] LSM: Remove a comment from security.h Remove the large comment describing the content of the security_operations structure from security.h. This wasn't done in the previous (2/7) patch because it would have exceeded the mail list size limits. Signed-off-by: Casey

[PATCH 2/7 v21] LSM: Add the comment to lsm_hooks.h

2015-03-09 Thread Casey Schaufler
Subject: [PATCH 2/7 v21] LSM: Add the comment to lsm_hooks.h Add the large comment describing the content of the security_operations structure to lsm_hooks.h. This wasn't done in the previous (1/7) patch because it would have exceeded the mail list size limits. Signed-off-by: Casey Schaufler

[PATCH 1/7 v21] LSM: Split security.h

2015-03-09 Thread Casey Schaufler
Subject: [PATCH 1/7 v21] LSM: Split security.h The security.h header file serves two purposes, interfaces for users of the security modules and interfaces for security modules. Users of the security modules don't need to know about what's in the security_operations structure, so pull it out into

Re: [PATCH] f2fs: fix reference leaks in f2fs_acl_create

2015-03-09 Thread Changman Lee
Reviewed-by: Changman Lee On Mon, Mar 09, 2015 at 06:18:19PM +0800, Chao Yu wrote: > Our f2fs_acl_create is copied and modified from posix_acl_create to avoid > deadlock bug when inline_dentry feature is enabled. > > Now, we got reference leaks in posix_acl_create, and this has been fixed in >

Re: [PATCH 0/5] [GIT PULL] seq-buf/ftrace: Various fixes

2015-03-09 Thread Linus Torvalds
On Mon, Mar 9, 2015 at 9:03 AM, Steven Rostedt wrote: > > This is on top of the last pull request I sent out. But doesn't seem to > have been pulled. You make no sense. The commits you list were all on top of plain 4.0-rc2. So exactly what do you expect me to pull, or haven't I pulled?

[PATCH 0/7 v21] LSM: Multiple concurrent LSMs

2015-03-09 Thread Casey Schaufler
Subject: [PATCH 0/7 v21] LSM: Multiple concurrent LSMs Replace the current ad hoc stacking of the capabilities and Yama security modules with a generalized stacking scheme. The old structure had a single set of module hooks contained in a security_operations structure. This structure was

Re: [PATCH v3 7/7] x86, kaslr, 64bit: Set new or extra ident_mapping

2015-03-09 Thread Yinghai Lu
On Mon, Mar 9, 2015 at 6:09 PM, Kees Cook wrote: > On Sat, Mar 7, 2015 at 2:07 PM, Yinghai Lu wrote: >> First, aslr will support to put random VO above 4G, so we must set ident >> mapping for the range even we come from startup_32 path. >> >> Second, when boot from 64bit bootloader, bootloader

Re: [PATCH v3 5/7] x86, kaslr: Consolidate mem_avoid array filling

2015-03-09 Thread Yinghai Lu
On Mon, Mar 9, 2015 at 6:00 PM, Kees Cook wrote: > On Sat, Mar 7, 2015 at 2:07 PM, Yinghai Lu wrote: > > This may be a stupid question, but are boot_params being used outside > of the compressed loader? If so, it might make sense to split that > change into a separate patch to go to stable, if

Re: [PATCH v3 7/7] x86, kaslr, 64bit: Set new or extra ident_mapping

2015-03-09 Thread Kees Cook
On Sat, Mar 7, 2015 at 2:07 PM, Yinghai Lu wrote: > First, aslr will support to put random VO above 4G, so we must set ident > mapping for the range even we come from startup_32 path. > > Second, when boot from 64bit bootloader, bootloader set ident mapping, > and boot via ZO

linux-next: manual merge of the net-next tree with the net tree

2015-03-09 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in drivers/net/ethernet/cadence/macb.c between commit 0b2eb3e9bc73 ("net: macb: constify macb configuration data") from the net tree and commits a848748959d5 ("net: macb: remove #if defined(CONFIG_ARCH_AT91) sections") and

Re: [PATCH v3 2/7] x86, boot: Move ZO to end of buffer

2015-03-09 Thread Yinghai Lu
On Mon, Mar 9, 2015 at 5:54 PM, Kees Cook wrote: > On Sat, Mar 7, 2015 at 2:07 PM, Yinghai Lu wrote: >> Boris found data from boot stage can not be used kernel stage. > > "... be used during kernel stage." > > Also, can you give a specific example of this problem? (Which data, used how?) > >>

Re: [PATCH v3 6/7] x86, boot: Split kernel_ident_mapping_init to another file

2015-03-09 Thread Kees Cook
On Sat, Mar 7, 2015 at 2:07 PM, Yinghai Lu wrote: > We need to include that in boot::decompress_kernel stage to set new > ident mapping. > > Also add checking for __pa/__va macro definition, as we need to override them > in boot::decompress_kernel stage. > > Signed-off-by: Yinghai Lu This seems

Re: [PATCH v4 1/4] PCI: Export symbols of PCI functions

2015-03-09 Thread Alex Williamson
On Mon, 2015-03-09 at 17:21 -0700, Ray Jui wrote: > Export symbols of the following PCI functions so they can be referenced > by a PCI driver compiled as a kernel loadable module: > > pci_common_swizzle > pci_create_root_bus > pci_stop_root_bus > pci_remove_root_bus >

Re: [PATCH v3 5/7] x86, kaslr: Consolidate mem_avoid array filling

2015-03-09 Thread Kees Cook
On Sat, Mar 7, 2015 at 2:07 PM, Yinghai Lu wrote: > Now ZO sit end of the buffer, we can find out where is ZO text > and data/bss etc. > > [input, input+input_size) is copied compressed kernel, not the whole ZO. > [output, output+init_size) is the buffer for VO. > > [input+input_size,

Re: [PATCH v3 4/7] x86, kaslr: Access the correct kaslr_enabled variable

2015-03-09 Thread Kees Cook
On Sat, Mar 7, 2015 at 2:07 PM, Yinghai Lu wrote: > Commit > > f47233c2d34f ("x86/mm/ASLR: Propagate base load address calculation") > > started passing KASLR status to kernel proper, but it uses a physical > address as the vaule, leading to parsing bogus KASLR status in kernel > proper. > >

Re: [PATCH v3 2/7] x86, boot: Move ZO to end of buffer

2015-03-09 Thread Kees Cook
On Sat, Mar 7, 2015 at 2:07 PM, Yinghai Lu wrote: > Boris found data from boot stage can not be used kernel stage. "... be used during kernel stage." Also, can you give a specific example of this problem? (Which data, used how?) > Bootloader allocate buffer according to init_size in hdr, and

Re: [PATCH v3 0/7] x86, boot: clean up kasl

2015-03-09 Thread Yinghai Lu
On Mon, Mar 9, 2015 at 5:39 PM, Kees Cook wrote: > On Sat, Mar 7, 2015 at 2:07 PM, Yinghai Lu wrote: >> First 3 patches make ZO (arch/x86/boot/compressed/vmlinux) data region is not >> overwritten by VO (vmlinux) after decompress. So could pass data from ZO to >> VO. > > Tiny nit-pick, in case

Re: [patch v3] mm, hugetlb: abort __get_user_pages if current has been oom killed

2015-03-09 Thread Greg Thelen
On Mon, Mar 09 2015, David Rientjes wrote: > If __get_user_pages() is faulting a significant number of hugetlb pages, > usually as the result of mmap(MAP_LOCKED), it can potentially allocate a > very large amount of memory. > > If the process has been oom killed, this will cause a lot of memory

[PATCH] leds-gpio: Fix error handling and memory leak

2015-03-09 Thread minyard
From: Corey Minyard The leds-gpio driver would not clean up properly if it failed in some places, and it wasn't freeing its private data. Signed-off-by: Corey Minyard --- drivers/leds/leds-gpio.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git

Re: [PATCH v3 1/7] x86, kaslr: Use init_size instead of run_size

2015-03-09 Thread Kees Cook
On Sat, Mar 7, 2015 at 2:07 PM, Yinghai Lu wrote: > commit e6023367d779 ("x86, kaslr: Prevent .bss from overlaping initrd") > introduced one run_size for kaslr. > We should use real runtime size (include copy/decompress) aka init_size. > > run_size is VO (vmlinux) init size include bss and brk. >

Re: [PATCH v3 0/7] x86, boot: clean up kasl

2015-03-09 Thread Kees Cook
On Sat, Mar 7, 2015 at 2:07 PM, Yinghai Lu wrote: > First 3 patches make ZO (arch/x86/boot/compressed/vmlinux) data region is not > overwritten by VO (vmlinux) after decompress. So could pass data from ZO to > VO. Tiny nit-pick, in case there is a v5: the Subject on this (0/7) says "kasl"

Re: CONFIG_PREEMPT_RT local_softirq_pending warning when ISR blocks

2015-03-09 Thread Brian Silverman
On Mon, Mar 9, 2015 at 12:08 PM, Sebastian Andrzej Siewior wrote: > * Brian Silverman | 2015-03-05 00:16:20 [-0500]: > >>Beforehand, 000 is spending most of its time in interrupts, but bash >>is doing something related to memory management on it in between. >>bash-14721 [000] ..1

[PATCH] serial: 8250_dw: fix 'cts-override'

2015-03-09 Thread Dmitry Torokhov
We are dealing with CTS, not DSR here (we dealt with DSR a few lines above), so set appropriate bits. Reported-by: Kevin Cernekee Signed-off-by: Dmitry Torokhov --- drivers/tty/serial/8250/8250_dw.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH v5 0/4] pci: iproc: Add Broadcom iProc PCIe support

2015-03-09 Thread Ray Jui
This patch series adds the support for Broadcom iProc PCIe controller pcie-iproc.c servers as the common core driver, and front-end bus interface needs to be added to support different bus interfaces pcie-iproc-pltfm.c contains the support for the platform bus interface Changes from v4: -

[PATCH v5 1/4] PCI: Export symbols of PCI functions

2015-03-09 Thread Ray Jui
Export symbols of the following PCI functions so they can be referenced by a PCI driver compiled as a kernel loadable module: pci_common_swizzle pci_create_root_bus pci_stop_root_bus pci_remove_root_bus pci_assign_unassigned_bus_resources pci_fixup_irqs Signed-off-by: Ray Jui ---

[PATCH v5 4/4] ARM: dts: enable PCIe support for Cygnus

2015-03-09 Thread Ray Jui
Add PCIe device nodes in bcm-cygnus.dtsi but keep them disabled there. Only enable them for bcm958300k where PCIe interfaces are populated Signed-off-by: Ray Jui Reviewed-by: Scott Branden --- arch/arm/boot/dts/bcm-cygnus.dtsi | 42 +

[PATCH v5 3/4] pci: iproc: Add Broadcom iProc PCIe support

2015-03-09 Thread Ray Jui
This adds the support for Broadcom iProc PCIe controller pcie-iproc.c servers as the common core driver, and front-end bus interface needs to be added to support different bus interfaces pcie-iproc-pltfm.c contains the support for the platform bus interface Signed-off-by: Ray Jui Reviewed-by:

[PATCH v5 2/4] pci: iProc: define iProc PCIe platform bus binding

2015-03-09 Thread Ray Jui
Document the Broadcom iProc PCIe platform interface device tree binding Signed-off-by: Ray Jui Reviewed-by: Scott Branden --- .../devicetree/bindings/pci/brcm,iproc-pcie.txt| 63 1 file changed, 63 insertions(+) create mode 100644

Re: [PATCH] Avoid null-pointer access in w1/slaves/w1_therm

2015-03-09 Thread Thorsten Bschorr
> It looks like your patch runs into dead locks problems: > > I have a cron job reading my sensors. If I read the sensors on another > thread (e.g. via cat), the 2nd thread can produce a dead lock: > > * thread 1 has bus & sl lock > * thread 1 drops bus lock, keeps sl locks and sleeps > * thread 2

Re: [REGRESSION in 3.18][PPC] PA Semi fails to boot after: of/base: Fix PowerPC address parsing hack

2015-03-09 Thread Olof Johansson
On Mon, Mar 9, 2015 at 5:28 PM, Michael Ellerman wrote: > On Sat, 2015-03-07 at 15:02 +1100, Benjamin Herrenschmidt wrote: >> On Fri, 2015-03-06 at 15:50 -0800, Olof Johansson wrote: >> > On Fri, Mar 6, 2015 at 2:56 PM, Benjamin Herrenschmidt >> > wrote: >> > > On Fri, 2015-03-06 at 10:00 -0500,

Re: [PATCH/RFC v12 04/19] dt-binding: leds: Add common LED DT bindings macros

2015-03-09 Thread Bryan Wu
On Wed, Mar 4, 2015 at 11:56 PM, Jacek Anaszewski wrote: > On 03/04/2015 05:14 PM, Jacek Anaszewski wrote: >> >> Add macros for defining boost mode and trigger type properties >> of flash LED devices. >> >> Signed-off-by: Jacek Anaszewski >> Acked-by: Kyungmin Park >> Cc: Bryan Wu >> Cc:

Re: [REGRESSION in 3.18][PPC] PA Semi fails to boot after: of/base: Fix PowerPC address parsing hack

2015-03-09 Thread Michael Ellerman
On Sat, 2015-03-07 at 15:02 +1100, Benjamin Herrenschmidt wrote: > On Fri, 2015-03-06 at 15:50 -0800, Olof Johansson wrote: > > On Fri, Mar 6, 2015 at 2:56 PM, Benjamin Herrenschmidt > > wrote: > > > On Fri, 2015-03-06 at 10:00 -0500, Steven Rostedt wrote: > > >> On Fri, 06 Mar 2015 15:18:42

[PATCH] devfreq: event: Add 'const' keyword for devfreq_event_ops structure

2015-03-09 Thread Chanwoo Choi
This patch adds the 'const' keyword for devfreq_event_ops structure because the ops of devfreq_event_desc structure shold not be changed after initialization. Cc: Myungjoo Ham Cc: Kyungmin Park Signed-off-by: Chanwoo Choi --- drivers/devfreq/event/exynos-ppmu.c | 2 +-

Re: [PATCH/RFC v12 03/19] Documentation: leds: Add description of LED Flash class extension

2015-03-09 Thread Bryan Wu
On Wed, Mar 4, 2015 at 8:14 AM, Jacek Anaszewski wrote: > The documentation being added contains overall description of the > LED Flash Class and the related sysfs attributes. > Thanks, merged! -Bryan > Signed-off-by: Jacek Anaszewski > Acked-by: Kyungmin Park > Cc: Bryan Wu > Cc: Richard

Re: [PATCH v4 3/4] pci: iproc: Add Broadcom iProc PCIe support

2015-03-09 Thread Ray Jui
Sorry. I made a mistake. Please IGNORE this patch set. I'll re-send it again with proper module changes applied. Ray On 3/9/2015 5:21 PM, Ray Jui wrote: > This adds the support for Broadcom iProc PCIe controller > > pcie-iproc.c servers as the common core driver, and front-end bus > interface

[PATCH 1/2] extcon: Rename extcon core driver

2015-03-09 Thread Chanwoo Choi
This patch renames the extcon core driver from extcon-class.c to extcon.c because '-class' postfix is not necessary. Signed-off-by: Chanwoo Choi --- drivers/extcon/Makefile |2 +- drivers/extcon/extcon-class.c | 1038 - drivers/extcon/extcon.c

[PATCH v4 1/4] PCI: Export symbols of PCI functions

2015-03-09 Thread Ray Jui
Export symbols of the following PCI functions so they can be referenced by a PCI driver compiled as a kernel loadable module: pci_common_swizzle pci_create_root_bus pci_stop_root_bus pci_remove_root_bus pci_assign_unassigned_bus_resources pci_fixup_irqs Signed-off-by: Ray Jui ---

Re: [RFC, PATCH] pagemap: do not leak physical addresses to non-privileged userspace

2015-03-09 Thread Andy Lutomirski
On Mon, Mar 9, 2015 at 5:11 PM, Kees Cook wrote: > On Mon, Mar 9, 2015 at 2:11 PM, Kirill A. Shutemov > wrote: >> From: "Kirill A. Shutemov" >> >> As pointed by recent post[1] on exploiting DRAM physical imperfection, >> /proc/PID/pagemap exposes sensitive information which can be used to do

[PATCH v4 0/4] pci: iproc: Add Broadcom iProc PCIe support

2015-03-09 Thread Ray Jui
This patch series adds the support for Broadcom iProc PCIe controller pcie-iproc.c servers as the common core driver, and front-end bus interface needs to be added to support different bus interfaces pcie-iproc-pltfm.c contains the support for the platform bus interface Changes from v3: -

[PATCH 2/2] extcon: Fix the checkpatch warning

2015-03-09 Thread Chanwoo Choi
This patch fixes the checkpatch warning about coding style. Signed-off-by: Chanwoo Choi --- drivers/extcon/extcon-max14577.c | 5 + drivers/extcon/extcon-max77693.c | 5 + drivers/extcon/extcon-max8997.c | 5 + drivers/extcon/extcon-rt8973a.c | 6 ++

[PATCH v4 3/4] pci: iproc: Add Broadcom iProc PCIe support

2015-03-09 Thread Ray Jui
This adds the support for Broadcom iProc PCIe controller pcie-iproc.c servers as the common core driver, and front-end bus interface needs to be added to support different bus interfaces pcie-iproc-pltfm.c contains the support for the platform bus interface Signed-off-by: Ray Jui Reviewed-by:

Re: [PATCH v2 15/17] crypto: talitos - Implementation of SEC1

2015-03-09 Thread Kim Phillips
On Fri, 6 Mar 2015 17:42:26 +0100 Christophe Leroy wrote: > This patch adds talitos1.c and talitos1.h with all specificities needed > to handle the SEC1 security engine found in MPC885 and MPC8272. > > The SEC1 has several differences with its younger brother SEC2: > * Several bits in registers

[PATCH v4 4/4] ARM: dts: enable PCIe support for Cygnus

2015-03-09 Thread Ray Jui
Add PCIe device nodes in bcm-cygnus.dtsi but keep them disabled there. Only enable them for bcm958300k where PCIe interfaces are populated Signed-off-by: Ray Jui Reviewed-by: Scott Branden --- arch/arm/boot/dts/bcm-cygnus.dtsi | 42 +

[PATCH v4 2/4] pci: iProc: define iProc PCIe platform bus binding

2015-03-09 Thread Ray Jui
Document the Broadcom iProc PCIe platform interface device tree binding Signed-off-by: Ray Jui Reviewed-by: Scott Branden --- .../devicetree/bindings/pci/brcm,iproc-pcie.txt| 63 1 file changed, 63 insertions(+) create mode 100644

[PATCH 0/2] extcon: Rename extcon core driver and fix minor issue

2015-03-09 Thread Chanwoo Choi
This patch renames the extcon core driver from 'extcon-class.c' to 'extcon.c' because '-class' postfix is not necessary. And fix the checkpatch warning for extcon provider drivers. Chanwoo Choi (2): extcon: Rename extcon core driver extcon: Fix the checkpatch warning drivers/extcon/Makefile

Re: [PATCH/RFC v12 02/19] leds: flash: document sysfs interface

2015-03-09 Thread Bryan Wu
On Wed, Mar 4, 2015 at 8:14 AM, Jacek Anaszewski wrote: > Add a documentation of LED Flash class specific sysfs attributes. > Thanks, merged! -Bryan > Signed-off-by: Jacek Anaszewski > Acked-by: Kyungmin Park > Cc: Bryan Wu > Cc: Richard Purdie > --- >

Re: [RFC, PATCH] pagemap: do not leak physical addresses to non-privileged userspace

2015-03-09 Thread Kees Cook
On Mon, Mar 9, 2015 at 2:11 PM, Kirill A. Shutemov wrote: > From: "Kirill A. Shutemov" > > As pointed by recent post[1] on exploiting DRAM physical imperfection, > /proc/PID/pagemap exposes sensitive information which can be used to do > attacks. > > This is RFC patch which disallow anybody

[git pull] Input updates for 4.0-rc3

2015-03-09 Thread Dmitry Torokhov
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git for-linus or master.kernel.org:/pub/scm/linux/kernel/git/dtor/input.git for-linus to receive updates for the input subsystem: miscellaneous driver fixes. Changelog: - Arnd Bergmann

Re: [PATCH] Avoid null-pointer access in w1/slaves/w1_therm

2015-03-09 Thread Thorsten Bschorr
> Oops, sorry, it got lost in the shuffle, here's the first patch again > (the others were for debugging and increase that time and so wouldn't > go upstream anyway). I assumed so. It looks like your patch runs into dead locks problems: I have a cron job reading my sensors. If I read the

Re: [PATCH] i8042 / PM: Allow PC keyboard to wake up from suspend-to-idle

2015-03-09 Thread Dmitry Torokhov
On Tue, Mar 10, 2015 at 12:08:43AM +0100, Rafael J. Wysocki wrote: > On Monday, March 09, 2015 11:41:12 PM Rafael J. Wysocki wrote: > > On Monday, March 09, 2015 11:00:04 AM Dmitry Torokhov wrote: > > > Hi Rafael, > > > > > > On Mon, Mar 09, 2015 at 04:19:50PM +0100, Rafael J. Wysocki wrote: > >

Re: [RFC][PATCH 1/2] fs proc: make pagemap a privileged interface

2015-03-09 Thread Kees Cook
On Mon, Mar 9, 2015 at 4:43 PM, Eric W. Biederman wrote: > > A 1 to 1 blinding function like integer multiplication mudulo 2^32 by an > appropriate random number ought to keep from revealing page numbers or > page ajacencies while not requiring any changes in userspace. > > That way the revealed

Re: [PATCH v2 2/2] ARM: dts: am33xx: Move wkup_m3 node to soc node and add ranges

2015-03-09 Thread Suman Anna
Tony, On 03/05/2015 10:57 AM, Tony Lindgren wrote: > * Suman Anna [150305 08:47]: >> On 03/05/2015 09:40 AM, Tony Lindgren wrote: >>> * Dave Gerlach [150304 20:14]: >> Dave, >> >> Looks like the commit message disappeared during your patch preparation. >> Signed-off-by: Suman Anna

Re: [PATCH 00/10] rcu: Cleanup RCU tree initialization

2015-03-09 Thread Paul E. McKenney
On Mon, Mar 09, 2015 at 04:39:47PM -0700, Paul E. McKenney wrote: > On Mon, Mar 09, 2015 at 02:40:21PM -0700, Paul E. McKenney wrote: > > On Mon, Mar 09, 2015 at 09:34:04AM +0100, Alexander Gordeev wrote: > > > Hi Paul, > > > > > > Here is cleanup of RCU tree initialization rebased on linux-rcu

Re: [RFC][PATCH 1/2] fs proc: make pagemap a privileged interface

2015-03-09 Thread Eric W. Biederman
A 1 to 1 blinding function like integer multiplication mudulo 2^32 by an appropriate random number ought to keep from revealing page numbers or page ajacencies while not requiring any changes in userspace. That way the revealed pfn and the physcial pfn would be different but you could still use

Re: [PATCH v3 2/3] pci: iproc: Add Broadcom iProc PCIe support

2015-03-09 Thread Ray Jui
Hi Arnd, On 3/9/2015 5:35 AM, Arnd Bergmann wrote: > On Friday 06 March 2015 10:00:34 Ray Jui wrote: >>> >> >> Although I have not tested it, but to my best knowledge there shouldn't >> be any technical issue by making the PCIe iProc driver a loadable module >> and installing the module later

Re: [PATCH v3 7/7] selftests/mount: Use implicit rules

2015-03-09 Thread Shuah Khan
On 03/04/2015 03:41 AM, Michael Ellerman wrote: > There's no need to open-code the build rules, use the implicit ones. > > This has the nice side effect of enabling cross compilation. > > Signed-off-by: Michael Ellerman > --- > tools/testing/selftests/mount/Makefile | 8 > 1 file

Re: [RFC][PATCH 1/2] fs proc: make pagemap a privileged interface

2015-03-09 Thread Kees Cook
On Mon, Mar 9, 2015 at 4:08 PM, Eric W. Biederman wrote: > Kees Cook writes: > >> On Mon, Mar 9, 2015 at 3:13 PM, Eric W. Biederman >> wrote: >>> Dave Hansen writes: >>> From: Dave Hansen Physical addresses are sensitive information. There are existing, known exploits

Re: [PATCH 00/10] rcu: Cleanup RCU tree initialization

2015-03-09 Thread Paul E. McKenney
On Mon, Mar 09, 2015 at 02:40:21PM -0700, Paul E. McKenney wrote: > On Mon, Mar 09, 2015 at 09:34:04AM +0100, Alexander Gordeev wrote: > > Hi Paul, > > > > Here is cleanup of RCU tree initialization rebased on linux-rcu rcu/next > > repo, as you requested. Please, note an extra patch #10 that was

Re: [PATCH v3 6/7] selftests/mqueue: Use implicit rules

2015-03-09 Thread Shuah Khan
On 03/04/2015 03:41 AM, Michael Ellerman wrote: > There's no need to open-code the build rules, use the implicit ones. > > This has the nice side effect of enabling cross compilation. > > Signed-off-by: Michael Ellerman > --- > tools/testing/selftests/mqueue/Makefile | 15 +-- > 1

Re: [PATCH] Staging: comedi: fix information leak

2015-03-09 Thread Ian Abbott
On 09/03/15 20:08, Matteo Semenzato wrote: From: Matteo Semenzato The comedi_cmd struct has an hole after chanlist_len that could contain uninitialized memory, this struct is copied to userspace. Signed-off-by: Matteo Semenato --- drivers/staging/comedi/comedi_fops.c | 2 ++ 1 file

Re: [PATCH 0/3] clk: divider: three exactness fixes (and a rant)

2015-03-09 Thread Uwe Kleine-König
Hello Stephen, On Mon, Mar 09, 2015 at 03:40:29PM -0700, Stephen Boyd wrote: > On 03/09/15 14:58, Uwe Kleine-König wrote: > > If you see > > > > round_rate(110) = 108 > > > > it would be fortunate to know if you get 108 because the next available > > greater rate is > 112 or because the

Re: [PATCH] x86: svm: make wbinvd faster

2015-03-09 Thread Marcelo Tosatti
On Fri, Feb 27, 2015 at 06:19:18PM -0600, Joel Schopp wrote: > From: David Kaplan > No need to re-decode WBINVD since we know what it is from the intercept. > > Signed-off-by: David Kaplan > [extracted from larger unlrelated patch, forward ported, tested] > Signed-off-by: Joel Schopp Can't

Re: [PATCH] sched: fix RLIMIT_RTTIME when PI-boosting to RT

2015-03-09 Thread Brian Silverman
On Mon, Mar 9, 2015 at 1:34 PM, Sebastian Andrzej Siewior wrote: > From what I can tell not beeing a sched guy is that the patch looks > reasonable since the timeout gets only set to zero on enqueue_task_rt(). > Is there something special you do to trigger this? I posted some test code with two

Re: [PATCH 05/11] perf data: Add tracepoint events fields CTF conversion support

2015-03-09 Thread Arnaldo Carvalho de Melo
Em Mon, Mar 09, 2015 at 08:11:19PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Mon, Mar 09, 2015 at 06:51:21PM -0300, Arnaldo Carvalho de Melo escreveu: > > Doesn't work as well... > > > > :-\ > > > > Will try debugging... > > So I tried checkout out before Ingo's changes to libbabeltrace

Re: [PATCH] x86: Bypass legacy PIC and PIT on ACPI hardware reduced platform

2015-03-09 Thread Li, Aubrey
On 2015/3/5 20:42, Li, Aubrey wrote: > On 2015/3/5 19:36, Ingo Molnar wrote: >> >> * Li, Aubrey wrote: >> >>> On 2015/3/5 4:11, Ingo Molnar wrote: * Arjan van de Ven wrote: > On 3/4/2015 1:50 AM, Borislav Petkov wrote: >> On Wed, Mar 04, 2015 at 12:43:08AM -0800, Arjan van

Re: [PATCH/RFC v12 01/19] leds: flash: Remove synchronized flash strobe feature

2015-03-09 Thread Bryan Wu
On Wed, Mar 4, 2015 at 8:14 AM, Jacek Anaszewski wrote: > Synchronized flash strobe feature has been considered not fitting > for LED subsystem sysfs interface and thus is being removed. > OK, I will merge this. -Bryan > Signed-off-by: Jacek Anaszewski > Acked-by: Kyungmin Park > Cc: Bryan

[PATCH 3/3] ARM: dts: rockchip: add hdmi analog power supplies to rk3288 boards

2015-03-09 Thread Heiko Stuebner
Add the recently added hdmi power supplies to evb and firefly boards. Signed-off-by: Heiko Stuebner --- arch/arm/boot/dts/rk3288-evb.dtsi | 2 ++ arch/arm/boot/dts/rk3288-firefly.dtsi | 2 ++ 2 files changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/rk3288-evb.dtsi

[PATCH 2/3] drm/bridge: dw-hdmi: support optional supply regulators

2015-03-09 Thread Heiko Stuebner
At least the Rockchip variant of the dw_hdmi can have controllable power supplies providing 1.0 and 1.8V. Therefore add the possibility for the generic bridge driver to enable supplies provided by the hw-specific drivers. Signed-off-by: Heiko Stuebner ---

[PATCH 1/3] regulator: don't emit errors in {devm_}regulator_bulk_get when defering

2015-03-09 Thread Heiko Stuebner
When {devm_}regulator_get returns -EPROBE_DEFER the driver in question will try probing again at a later time. So don't spam the log with failure messages as this is an expected result of probe ordering. Signed-off-by: Heiko Stuebner --- drivers/regulator/core.c | 5 +++--

[PATCH 0/3] add power-supply support to dw_hdmi

2015-03-09 Thread Heiko Stuebner
At least the Rockchip variant of the dw_hdmi should control its supplying regulators. A cursory glance at the imx manual didn't any equivalent there, so I'm not sure if there are similar controllable regulators present. Patch1 is only a small fix to keep {devm_}regulator_bulk_get quiet in the

[PATCH] mmc: dw_mmc: Add a timeout for sending CMD11

2015-03-09 Thread Doug Anderson
In the Designware databook's description of the "Voltage Switch Normal Scenario" it instructs us to set a timer and fail the voltage change if we don't see the voltage change interrupt within 2ms. Let's implement that. Without implementing this I have often been able to reproduce a hang while

Re: [PATCH v3 5/7] selftests/timers: Use implicit rules

2015-03-09 Thread Shuah Khan
On 03/04/2015 03:41 AM, Michael Ellerman wrote: > There's no need to open-code the build rules, use the implicit ones. > > This has the nice side effect of enabling cross compilation. > > Signed-off-by: Michael Ellerman > --- > tools/testing/selftests/timers/Makefile | 8 > 1 file

Re: [PATCH 01/60] mtd: core: tone down suggestion that dev.parent should be set

2015-03-09 Thread Brian Norris
On Tue, Mar 03, 2015 at 10:39:45PM +0100, Frans Klaver wrote: > add_mtd_device() has a comment suggesting that the caller should have > set dev.parent. This is required to have the device show up in sysfs, What do you mean "have the device show up in sysfs"? AFAICT, this only has bearing on

Re: [RFC][PATCH 1/2] fs proc: make pagemap a privileged interface

2015-03-09 Thread Eric W. Biederman
Kees Cook writes: > On Mon, Mar 9, 2015 at 3:13 PM, Eric W. Biederman > wrote: >> Dave Hansen writes: >> >>> From: Dave Hansen >>> >>> Physical addresses are sensitive information. There are >>> existing, known exploits that are made easier if physical >>> information is available. Here is

Re: [PATCH 05/11] perf data: Add tracepoint events fields CTF conversion support

2015-03-09 Thread Arnaldo Carvalho de Melo
Em Mon, Mar 09, 2015 at 06:51:21PM -0300, Arnaldo Carvalho de Melo escreveu: > Doesn't work as well... > > :-\ > > Will try debugging... So I tried checkout out before Ingo's changes to libbabeltrace detection, i.e.: [acme@zoo linux]$ git checkout -b ttmp

Re: [PATCH] Avoid null-pointer access in w1/slaves/w1_therm

2015-03-09 Thread David Fries
On Mon, Mar 09, 2015 at 11:47:24PM +0100, Thorsten Bschorr wrote: > > Here's a different strategy, add a w1_therm family_data specific mutex > > so w1_therm_remove_slave won't return while another thread is in > > w1_slave_show. Thoughts? > > > > I included three patches, the first is the

Re: [PATCH] kbuild: Don't pass -rR to selftest makefiles

2015-03-09 Thread Shuah Khan
On 03/09/2015 08:28 AM, Shuah Khan wrote: > On 03/04/2015 03:19 AM, Michael Ellerman wrote: >> The makefiles under tools/testing/selftests are not real kbuild >> makefiles, they are regular stand alone makefiles. As such they *do* >> want all the standard implicit rules and variables defined. >>

Re: [PATCH] Avoid null-pointer access in w1/slaves/w1_therm

2015-03-09 Thread Thorsten Bschorr
> Here's a different strategy, add a w1_therm family_data specific mutex > so w1_therm_remove_slave won't return while another thread is in > w1_slave_show. Thoughts? > > I included three patches, the first is the proposed fix, the second > makes it more reproducible (and since my testing doesn't

Re: [PATCH] i8042 / PM: Allow PC keyboard to wake up from suspend-to-idle

2015-03-09 Thread Rafael J. Wysocki
On Monday, March 09, 2015 11:41:12 PM Rafael J. Wysocki wrote: > On Monday, March 09, 2015 11:00:04 AM Dmitry Torokhov wrote: > > Hi Rafael, > > > > On Mon, Mar 09, 2015 at 04:19:50PM +0100, Rafael J. Wysocki wrote: > > > From: Rafael J. Wysocki > > > > > > If they keyboard interrupt is

[PATCH] sym53c416: Fix nasty memory corruption

2015-03-09 Thread Ondrej Zary
In sym53c416_read(), the chip can (and does sometimes) return more bytes in the FIFO than we want to read. This causes buffer overflow, resulting in nasty memory and data corruption and oopses. I couldn't even read filesystem's root directory properly (and a simple dd with 1M blocksize crashed the

Re: [PATCH 0/3] clk: divider: three exactness fixes (and a rant)

2015-03-09 Thread Stephen Boyd
On 03/09/15 14:58, Uwe Kleine-König wrote: > > If you see > > round_rate(110) = 108 > > it would be fortunate to know if you get 108 because the next available > greater rate is > 112 or because the implementation rounds down always > (which would mean that 111 is possible, too). For the

Re: [PATCH v2 4/6] clk: at91: implement suspend/resume for the PMC irqchip

2015-03-09 Thread Mike Turquette
Quoting Boris Brezillon (2015-03-02 01:18:16) > The irq line used by the PMC block is shared with several peripherals > including the init timer which is registering its handler with > IRQF_NO_SUSPEND. > Implement the appropriate suspend/resume callback for the PMC irqchip, > and inform irq core

Re: [PATCH 2/9] selftests: Add install target

2015-03-09 Thread Shuah Khan
On 03/09/2015 08:20 AM, Shuah Khan wrote: > On 03/05/2015 11:53 AM, Dave Jones wrote: >> On Tue, Mar 03, 2015 at 03:51:35PM +1100, Michael Ellerman wrote: >> > This adds make install support to selftests. The basic usage is: >> > >> > $ cd tools/testing/selftests >> > $ make install >> > >>

Re: [PATCH 2/3] locking: ww_mutex: Allow to use rt_mutex instead of mutex for the baselock

2015-03-09 Thread Paul E. McKenney
On Mon, Mar 09, 2015 at 02:21:53PM +0100, Sebastian Andrzej Siewior wrote: > On 03/09/2015 12:29 PM, Mike Galbraith wrote: > > On Mon, 2015-03-09 at 12:07 +0100, Sebastian Andrzej Siewior wrote: > >> On 03/09/2015 11:51 AM, Mike Galbraith wrote: > >>> Why do both mutex and rtmutex then exist one

Re: [PATCH] staging: octeon-usb: Made octeon_usb_match const

2015-03-09 Thread Aaro Koskinen
Hi, On Mon, Mar 09, 2015 at 11:09:03PM +0100, Mateusz Kulikowski wrote: > An of_device_id should be const (checkpatch.pl warning). > > Signed-off-by: Mateusz Kulikowski Acked-by: Aaro Koskinen A. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a

[PATCHv3 03/10] of: Add Solomon Systech vendor prefix.

2015-03-09 Thread Thomas Niederprüm
This patch adds the solomon prefix for Solomon Systech Limited. Signed-off-by: Thomas Niederprüm --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt

[PATCHv3 08/10] fbdev: ssd1307fb: Add module parameter bitsperpixel.

2015-03-09 Thread Thomas Niederprüm
This patch adds a module parameter 'bitsperpixel' to adjust the colordepth of the framebuffer. All values >1 will result in memory map of the requested color depth. However only the MSB of each pixel will be sent to the device. The framebuffer identifies itself as a grayscale display with the

[PATCHv3 04/10] fbdev: ssd1307fb: Unify init code and obtain hw specific bits from DT

2015-03-09 Thread Thomas Niederprüm
The 130X controllers are very similar from the configuration point of view. The configuration registers for the SSD1305/6/7 are bit identical (except the the VHCOM register and the the default values for clock setup register). This patch unifies the init code of the controller and adds hardware

[PATCHv3 09/10] fbdev: ssd1307fb: Add sysfs handles to expose contrast and dim setting to userspace.

2015-03-09 Thread Thomas Niederprüm
This patch adds sysfs handles to enable userspace control over the display contrast as well as the dim mode. The handles are available as "contrast" and "dim" in the framebuffers sysfs domain. Signed-off-by: Thomas Niederprüm --- drivers/video/fbdev/ssd1307fb.c | 90

[PATCHv3 02/10] fbdev: ssd1307fb: Use vmalloc to allocate video memory.

2015-03-09 Thread Thomas Niederprüm
It makes sense to use vmalloc to allocate the video buffer since it has to be page aligned memory for using it with mmap. Also deffered io seems buggy in combination with kmalloc'ed memory (crash on unloading the module). Signed-off-by: Thomas Niederprüm --- drivers/video/fbdev/ssd1307fb.c | 5

Re: [RFC][PATCH 1/2] fs proc: make pagemap a privileged interface

2015-03-09 Thread Kees Cook
On Mon, Mar 9, 2015 at 3:13 PM, Eric W. Biederman wrote: > Dave Hansen writes: > >> From: Dave Hansen >> >> Physical addresses are sensitive information. There are >> existing, known exploits that are made easier if physical >> information is available. Here is one example: >> >>

[PATCHv3 07/10] fbdev: ssd1307fb: Add module parameter to set refresh rate of the display

2015-03-09 Thread Thomas Niederprüm
This patch adds the module parameter "refreshrate" to set delay for the deferred io. The refresh rate is given in units of Hertz. The default refresh rate is 1 Hz. Signed-off-by: Thomas Niederprüm --- drivers/video/fbdev/ssd1307fb.c | 23 +-- 1 file changed, 17

[PATCHv3 01/10] fbdev: ssd1307fb: fix memory address smem_start.

2015-03-09 Thread Thomas Niederprüm
the smem_start pointer of the framebuffer info struct needs to hold the physical address rather than the virtual address. This patch fixes a driver crash on mmaping the framebuffer memory due to an access to the memory address. Note however that the memory allocated by kzalloc is not page

[PATCHv3 00/10] fbdev: ssd1307fb: Cleanup and add support for SSD1305

2015-03-09 Thread Thomas Niederprüm
This patch series is the result of making the ssd1307fb driver work with a Newhaven OLED display using the Solomon SSD1305 controller. To achieve this the intialization code for the SSD1306 and the SSD1307 is merged and based on DT configuration to reflect the various possible wirings of the

[PATCHv3 06/10] fbdev: ssd1307fb: Add support for SSD1305

2015-03-09 Thread Thomas Niederprüm
This patch adds support for the SSD1305 OLED controller. Signed-off-by: Thomas Niederprüm --- Documentation/devicetree/bindings/video/ssd1307fb.txt | 2 +- drivers/video/fbdev/ssd1307fb.c | 13 + 2 files changed, 14 insertions(+), 1 deletion(-) diff --git

[PATCHv3 10/10] fbdev: ssd1307fb: Turn off display on driver unload.

2015-03-09 Thread Thomas Niederprüm
This patch turns off the display when the driver is unloaded. Signed-off-by: Thomas Niederprüm Acked-by: Maxime Ripard --- drivers/video/fbdev/ssd1307fb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/video/fbdev/ssd1307fb.c b/drivers/video/fbdev/ssd1307fb.c index

[PATCHv3 05/10] ARM: mxs: fix in tree users of ssd1306

2015-03-09 Thread Thomas Niederprüm
This patch updates the in tree-users of the SSD1306 controller for using the newly introduced DT properties. Signed-off-by: Thomas Niederprüm --- arch/arm/boot/dts/imx28-cfa10036.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/imx28-cfa10036.dts

Re: [PATCH v2 04/18] clocksource: Add ARM System timer driver

2015-03-09 Thread Uwe Kleine-König
Hello, On Mon, Mar 09, 2015 at 10:12:32PM +0100, Paul Bolle wrote: > On Wed, 2015-03-04 at 13:08 +0100, Maxime Coquelin wrote: > > This is because I added also support for COMPILE_TEST coverage as per > > Uwe advice, > > and thought it was necessary to have an entry for this. > > Maybe I'm just

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