Re: [PATCH] Add supplementary UIDs, and getusers/setusers system calls

2014-11-15 Thread Josh Triplett
On Sat, Nov 15, 2014 at 11:08:31PM -0800, Josh Triplett wrote: > asmlinkage long sys_setgroups(int gidsetsize, gid_t __user *grouplist); > +asmlinkage long sys_setusers(int uidsetsize, uid_t __user *grouplist); Obvious typo here: s/grouplist/userlist/. Will fix in a v2, but I'll wait for other

[PATCH manpages] Document supplementary user IDs

2014-11-15 Thread Josh Triplett
Add new manpages for getusers(2) and setusers(2). Discuss supplementary UIDs in credentials(7). Update manpages for seteuid(2), setfsuid(2), setresuid(2), setreuid(2), and setuid(2). Signed-off-by: Josh Triplett --- man2/getusers.2| 177

[PATCH] Add supplementary UIDs, and getusers/setusers system calls

2014-11-15 Thread Josh Triplett
Analogous to the supplementary GID list, the supplementary UID list provides a set of additional user credentials that a process can act as. A process with CAP_SETUID can set its UID list arbitrarily; a process without CAP_SETUID can only reduce its UID list. This allows each user to have a set

Re: linux-next: Tree for Nov 14

2014-11-15 Thread Guenter Roeck
On 11/15/2014 08:20 PM, Jiang Liu wrote: On 2014/11/16 11:22, Guenter Roeck wrote: On 11/15/2014 06:33 PM, Jiang Liu wrote: Hi Guenter, Could you please help to provide the config file and error messages? Config file:

Re: frequent lockups in 3.18rc4

2014-11-15 Thread Linus Torvalds
On Sat, Nov 15, 2014 at 5:40 PM, Dave Jones wrote: > > > > I'll try that next, and check in on it tomorrow. > > No luck. Died even faster this time. Yeah, and your other lockups haven't even been TLB related. Not that they look like anything else *either*. I have no ideas left. I'd go for a

Re: [PATCH 2/2] groups: Allow unprivileged processes to use setgroups to drop groups

2014-11-15 Thread Josh Triplett
On Sat, Nov 15, 2014 at 09:08:07PM -0600, Eric W. Biederman wrote: > Josh Triplett writes: > > On November 15, 2014 6:05:11 PM PST, Theodore Ts'o wrote: > >>On Sat, Nov 15, 2014 at 12:20:42PM -0800, Josh Triplett wrote: > >>> > However, sudoers seems to allow negative group matches. So maybe >

Re: [PATCH 2/2] groups: Allow unprivileged processes to use setgroups to drop groups

2014-11-15 Thread Josh Triplett
On Sat, Nov 15, 2014 at 10:40:06PM -0500, Theodore Ts'o wrote: > On Sat, Nov 15, 2014 at 06:35:05PM -0800, Josh Triplett wrote: > > >So arbitrarily anyone to drop groups from their supplemental group > > >list will result in a change from both existing practice and legacy > > >Unix systems, and it

Re: [PATCH v4 5/6] Documentation: dt-bindings: Add binding info for X-Gene QMTM UIO driver

2014-11-15 Thread Anup Patel
On Thu, Nov 13, 2014 at 1:15 PM, Ankit Jindal wrote: > This patch adds device tree binding documentation for > X-Gene QMTM UIO driver. > > Signed-off-by: Ankit Jindal > Signed-off-by: Tushar Jagad > --- > .../devicetree/bindings/uio/uio_xgene_qmtm.txt | 51 > > 1

Re: linux-next: Tree for Nov 14

2014-11-15 Thread Jiang Liu
On 2014/11/16 11:22, Guenter Roeck wrote: > On 11/15/2014 06:33 PM, Jiang Liu wrote: >> Hi Guenter, >> Could you please help to provide the config file and >> error messages? > > Config file: > >

Re: [PATCH 2/2] groups: Allow unprivileged processes to use setgroups to drop groups

2014-11-15 Thread Theodore Ts'o
On Sat, Nov 15, 2014 at 06:35:05PM -0800, Josh Triplett wrote: > >So arbitrarily anyone to drop groups from their supplemental group > >list will result in a change from both existing practice and legacy > >Unix systems, and it could potentially lead to a security exposure. > > As Andy pointed

Re: linux-next: Tree for Nov 14

2014-11-15 Thread Guenter Roeck
On 11/15/2014 06:33 PM, Jiang Liu wrote: Hi Guenter, Could you please help to provide the config file and error messages? Config file: https://github.com/groeck/linux-build-test/blob/master/rootfs/x86/qemu_x86_pc_nosmp_defconfig Error log:

Re: [PATCH 2/2] groups: Allow unprivileged processes to use setgroups to drop groups

2014-11-15 Thread Eric W. Biederman
Josh Triplett writes: > On November 15, 2014 6:05:11 PM PST, Theodore Ts'o wrote: >>On Sat, Nov 15, 2014 at 12:20:42PM -0800, Josh Triplett wrote: >>> > However, sudoers seems to allow negative group matches. So maybe >>> > allowing this only with no_new_privs already set would make sense. >>>

[PATCH v2 10/10] crypto: AF_ALG: document the user space interface

2014-11-15 Thread Stephan Mueller
The extension of the user space interface documentation covers all aspects of the patchset, including: * AEAD cipher interface * RNG cipher interface * getsockopt interface Signed-off-by: Stephan Mueller --- Documentation/crypto/crypto-API-userspace.txt | 95

[PATCH v2 08/10] crypto: AF_ALG: enable RNG interface compilation

2014-11-15 Thread Stephan Mueller
Enable compilation of the RNG AF_ALG support and provide a Kconfig option to compile the RNG AF_ALG support. Signed-off-by: Stephan Mueller --- crypto/Kconfig | 9 + crypto/Makefile | 1 + 2 files changed, 10 insertions(+) diff --git a/crypto/Kconfig b/crypto/Kconfig index

[PATCH] [mempolicy] remove unnecessary is_valid_nodemask()

2014-11-15 Thread Zhihui Zhang
When nodes is true, nsc->mask2 has already been filtered by nsc->mask1, which has already factored in node_states[N_MEMORY]. Signed-off-by: Zhihui Zhang --- mm/mempolicy.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/mm/mempolicy.c b/mm/mempolicy.c index

[PATCH v2 00/10] crypto: AF_ALG: add AEAD and RNG support

2014-11-15 Thread Stephan Mueller
Hi, This patch set adds AEAD and RNG support to the AF_ALG interface exported by the kernel crypto API. By extending AF_ALG with AEAD and RNG support, all cipher types the kernel crypto API allows access to are now accessible from userspace. The RNG support is stand-alone. The AEAD

[PATCH v2 01/10] crypto: AF_ALG: add user space interface for AEAD

2014-11-15 Thread Stephan Mueller
AEAD requires the following data in addition to normal symmetric ciphers: * Associated authentication data of arbitrary length * Authentication tag for decryption * Length of authentication tag for encryption The authentication tag data is communicated as part of the

[PATCH v2 03/10] crypto: AF_ALG: extend data structuers for AEAD

2014-11-15 Thread Stephan Mueller
The data structure holding the state of an ongoing symmetric cipher operation is extended by the data variables needed for AEAD. The request data structures are encapsulated by a union as the symmetric cipher implementation is either exclusively used for "normal" symmetric ciphers or for AEAD

[PATCH v2 07/10] crypto: AF_ALG: add random number generator support

2014-11-15 Thread Stephan Mueller
This patch adds the random number generator support for AF_ALG. A random number generator's purpose is to generate data without requiring the caller to provide any data. Therefore, the AF_ALG interface handler for RNGs only implements a callback handler for recvmsg. The following parameters

[PATCH v2 05/10] crypto: AF_ALG: add AEAD support

2014-11-15 Thread Stephan Mueller
This patch adds the AEAD support for AF_ALG. The AEAD implementation uses the entire memory handling and infrastructure of the existing skcipher implementation. To use AEAD, the user space consumer has to use the salg_type named "aead". The AEAD extension only uses the bind callback as the key

[PATCH v2 02/10] crypto: AF_ALG: user space interface for cipher info

2014-11-15 Thread Stephan Mueller
The AF_ALG interface allows normal cipher (hash, encrypt, decrypt). However, it does not allow user space to obtain the following generic information about the currently active cipher: * block size of the cipher * IV size of the cipher * for AEAD, the maximum

[PATCH v2 04/10] crypto: AF_ALG: crypto API calls to inline functions

2014-11-15 Thread Stephan Mueller
To avoid excessive branches and cluttering the code, all kernel crypto API calls are extracted into separate inline functions. These functions invoke either the ablkcipher or the aead crypto API function calls, as necessary. Signed-off-by: Stephan Mueller --- crypto/algif_skcipher.c | 143

[PATCH v2 06/10] crypto: AF_ALG: make setkey optional

2014-11-15 Thread Stephan Mueller
The current AF_ALG implementation requires that a userspace interface implementation must provide a callback for setkey. Such a call is not appliable to random number generators. To prepare AF_ALG for the addition of a random number generator user space interface, this function callback

Re: [PATCH] kernel:signal.c Fix coding style errors and warnings.

2014-11-15 Thread Al Viro
On Fri, Nov 14, 2014 at 05:56:55PM +0200, Ionut Alexa wrote: > Fix various coding style errors and warnings as: > - space before tabs > - exiting a function from different points (else after return > ..) How the hell is that goto any better than plain return?

[PATCH v2 09/10] crypto: AF_ALG: user space interface for hash info

2014-11-15 Thread Stephan Mueller
The AF_ALG interface allows normal cipher (hash, encrypt, decrypt). However, it does not allow user space to obtain the following generic information about the currently active hash: * digestsize The patch adds a getsockopt interface for the hash ciphers to answer such information

Re: [PATCH 2/2] groups: Allow unprivileged processes to use setgroups to drop groups

2014-11-15 Thread Josh Triplett
On November 15, 2014 6:05:11 PM PST, Theodore Ts'o wrote: >On Sat, Nov 15, 2014 at 12:20:42PM -0800, Josh Triplett wrote: >> > However, sudoers seems to allow negative group matches. So maybe >> > allowing this only with no_new_privs already set would make sense. >> >> Sigh, bad sudo. Sure,

Re: linux-next: Tree for Nov 14

2014-11-15 Thread Jiang Liu
Hi Guenter, Could you please help to provide the config file and error messages? Thanks! Gerry On 2014/11/16 5:19, Guenter Roeck wrote: > On Fri, Nov 14, 2014 at 07:27:38PM +1100, Stephen Rothwell wrote: >> Hi all, >> >> Changes since 20141113: >> >> New tree: overlayfs >> >> The idle

Re: [PATCH] serial: samsung: Fix serial config dependencies for exynos7

2014-11-15 Thread Abhilash Kesavan
Hello Greg, On Tue, Nov 11, 2014 at 7:55 PM, Abhilash Kesavan wrote: > Hi Greg, > > On Tue, Sep 30, 2014 at 8:02 PM, Abhilash Kesavan > wrote: >> Hi Tomasz, >> >> On Tue, Sep 30, 2014 at 4:08 AM, Tomasz Figa wrote: >>> Hi Abhilash, >>> >>> The patch itself seems fine, but I wonder if those

Re: [PATCH 2/2] groups: Allow unprivileged processes to use setgroups to drop groups

2014-11-15 Thread Theodore Ts'o
On Sat, Nov 15, 2014 at 12:20:42PM -0800, Josh Triplett wrote: > > However, sudoers seems to allow negative group matches. So maybe > > allowing this only with no_new_privs already set would make sense. > > Sigh, bad sudo. Sure, restricting this to no_new_privs only seems fine. > I'll do that

[RFC PATCH] cpuidle: Use a lighter barrier in snooze_loop()

2014-11-15 Thread Pranith Kumar
Using smp_mb() here so that the bit clear is not reordered is an overkill. It is more appropriate to use smp_mb__after_atomic() which ensures that the bit clear is not reordered. Signed-off-by: Pranith Kumar --- drivers/cpuidle/cpuidle-powernv.c | 3 ++- 1 file changed, 2 insertions(+), 1

Re: frequent lockups in 3.18rc4

2014-11-15 Thread Dave Jones
On Sat, Nov 15, 2014 at 04:34:05PM -0500, Dave Jones wrote: > On Fri, Nov 14, 2014 at 02:01:27PM -0800, Linus Torvalds wrote: > > > But since you say "several times a day", just for fun, can you test > > the follow-up patch to that one-liner fix that Will Deacon posted > > today (Subject:

Re: SystemD fanboi Erich Schubert claims others have done no contributions to opensource software. (information within)

2014-11-15 Thread Theodore Ts'o
On Fri, Nov 14, 2014 at 03:24:24PM +0100, Cecil Westerhof wrote: > Op Friday 14 Nov 2014 07:54 CET schreef George Malone: > > > I expect this post to be censored, it is par for the course for > > people like you. > > Could you stop flaming? I have seen this at least ten times. This does > beg

RE: [PATCH v8 0/7] Enable L2 cache support on Exynos4210/4x12 SoCs

2014-11-15 Thread Kukjin Kim
Arnd Bergmann wrote: > > On Friday 14 November 2014 15:11:58 Marek Szyprowski wrote: > > > > I assume that after all comments from previous versions, no more changes > > are needed > > to this patchset and I would really like to have it queued to v3.19. > > > > Arnd, Olof: could you take this

Re: [PATCH v12 11/15] arm: omap1: Migrate debug_ll macros to use 8250.S

2014-11-15 Thread Aaro Koskinen
Hi, On Fri, Oct 24, 2014 at 11:54:32AM +0100, Daniel Thompson wrote: > + config DEBUG_OMAP1UART1 > + bool "Kernel low-level debugging via OMAP1 UART1" > + depends on ARCH_OMAP1 > + select DEBUG_UART_8250 > + help > + Say Y here if

[PATCH V2 02/22] irqchip: brcmstb-l2: fix error handling of irq_of_parse_and_map

2014-11-15 Thread Kevin Cernekee
From: Dmitry Torokhov Return value of irq_of_parse_and_map() is unsigned int, with 0 indicating failure, so testing for negative result never works. Signed-off-by: Dmitry Torokhov Acked-by: Florian Fainelli Tested-by: Kevin Cernekee --- drivers/irqchip/irq-brcmstb-l2.c | 4 ++-- 1 file

[PATCH V2 05/22] irqchip: bcm7120-l2: Change DT binding to allow non-contiguous IRQEN/IRQSTAT

2014-11-15 Thread Kevin Cernekee
To date, all supported controllers have had the IRQEN register at offset 0x00 and the IRQSTAT register at 0x04. So in DT we would typically see something like: reg = <0xf0406800 0x8>; We still want to support this format, but we also need to support cases where IRQEN and IRQSTAT aren't

[PATCH V2 06/22] irqchip: Add new driver for BCM7038-style level 1 interrupt controllers

2014-11-15 Thread Kevin Cernekee
This is the main peripheral IRQ controller on the BCM7xxx MIPS chips; it has the following characteristics: - 64 to 160+ level IRQs - Atomic set/clear registers - Reasonably predictable register layout (N status words, then N mask status words, then N mask set words, then N mask clear

[PATCH V2 07/22] MIPS: BMIPS: Fix ".previous without corresponding .section" warnings

2014-11-15 Thread Kevin Cernekee
Commit 078a55fc824c1 ("Delete __cpuinit/__CPUINIT usage from MIPS code") removed our __CPUINIT directives, so now the ".previous" directives are superfluous. Remove them. Signed-off-by: Kevin Cernekee --- arch/mips/kernel/bmips_vec.S | 3 --- 1 file changed, 3 deletions(-) diff --git

[PATCH V2 10/22] MIPS: BMIPS: Allow BMIPS3300 to utilize SMP ebase relocation code

2014-11-15 Thread Kevin Cernekee
From: Jon Fraser BMIPS3300 processors do not have the hardware to support SMP, but with a small tweak, the SMP ebase relocation code allows BMIPS3300-based platforms to reuse the S2/S3 power management code from BMIPS4380-based chips. Normally this is as simple as adding one line to

[PATCH V2 08/22] MIPS: BMIPS: Align secondary boot sequence with latest firmware releases

2014-11-15 Thread Kevin Cernekee
On some older BMIPS5200 (dual core / quad thread) platforms, the PROM code set up CPU2/CPU3 so they would be started through an NMI instead of through the ACTION register. But this was incompatible with some power management features that were later added, so the scheme was changed so that Linux

[PATCH V2 14/22] MIPS: BMIPS: Fix L1_CACHE_SHIFT when BMIPS5000 is selected

2014-11-15 Thread Kevin Cernekee
BMIPS platforms can select multiple CPUs, in which case we'll need to use the greatest common denominator (= 1 << 7 = 128 bytes, for the BMIPS5000 L2). Signed-off-by: Kevin Cernekee --- arch/mips/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig

[PATCH V2 18/22] MIPS: Create a helper function for DT setup

2014-11-15 Thread Kevin Cernekee
A couple of platforms register two buses and call of_platform_populate(). Move this into a common function to reduce duplication. Signed-off-by: Kevin Cernekee --- arch/mips/include/asm/prom.h | 1 + arch/mips/kernel/prom.c | 18 ++ arch/mips/lantiq/prom.c | 11

[PATCH V2 11/22] MIPS: BMIPS: Mask off timer IRQs when hot-unplugging a CPU

2014-11-15 Thread Kevin Cernekee
From: Jon Fraser CPU interrupts need to be disabled on a cpu being taken down. When a cpu is hot-plugged out of the system the following sequence occurs. On the CPU where the hotplug sequence was initiated: cpu_down _cpu_down { __cpu_notify(CPU_DOWN_PREPARE

[PATCH V2 13/22] MIPS: Allow MIPS_CPU_SCACHE to be used with different line sizes

2014-11-15 Thread Kevin Cernekee
CONFIG_MIPS_CPU_SCACHE determines whether to build sc-mips.c. However, it is currently hardwired to use an L1_SHIFT of 6 (64 bytes). Move the L1_SHIFT selection into the CPU or SoC section so that other SoCs can select different values. Signed-off-by: Kevin Cernekee --- arch/mips/Kconfig | 2

[PATCH V2 15/22] MIPS: BMIPS: Let each platform customize the CPU1 IRQ mask

2014-11-15 Thread Kevin Cernekee
On some chips like bcm3384, "other stuff" gets wired up to CPU1's IE_IRQ1 input, generating spurious IRQs. In this case we want the platform code to be able to mask it off. Signed-off-by: Kevin Cernekee --- arch/mips/include/asm/bmips.h | 1 + arch/mips/kernel/smp-bmips.c | 6 -- 2 files

[PATCH V2 22/22] MIPS: Add multiplatform BMIPS target

2014-11-15 Thread Kevin Cernekee
bmips_be_defconfig supports Linux running on the following CM and DSL SoCs: - BCM3384 (BMIPS5000) cable modem application processor, BE, SMP - BCM3384 (BMIPS4355) cable modem "spare CPU"*, BE - BCM6328 (BMIPS4355) ADSL chip, BE - BCM6368 (BMIPS4350) ADSL chip, BE, SMP *experimental; most

[PATCH V2 21/22] MAINTAINERS: Add entry for BMIPS multiplatform kernel

2014-11-15 Thread Kevin Cernekee
Add myself as a maintainer for the new BMIPS target. Signed-off-by: Kevin Cernekee --- MAINTAINERS | 12 1 file changed, 12 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 6ab20b4..e96b4ae 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2108,6 +2108,18 @@ S:

[PATCH V2 16/22] MIPS: BMIPS: Add special cache handling in c-r4k.c

2014-11-15 Thread Kevin Cernekee
BMIPS435x and BMIPS438x have a single shared L1 D$ and load/store unit, so it isn't necessary to raise IPIs to keep both CPUs coherent. BMIPS5000 has VIPT L1 caches that handle aliases in hardware, and its I$ fills from D$. But a special sequence with 2 SYNCs and 32 NOPs is needed to ensure

[PATCH V2 20/22] MAINTAINERS: Add entry for bcm63xx/bcm33xx UDC gadget driver

2014-11-15 Thread Kevin Cernekee
This hardware shows up on the newly-supported BCM3384 cable chip, as well as several old BCM63xx DSL chips. Signed-off-by: Kevin Cernekee --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index e5e8a55..6ab20b4 100644 --- a/MAINTAINERS +++

[PATCH V2 01/22] irqchip: Update docs regarding irq_domain_add_tree()

2014-11-15 Thread Kevin Cernekee
Several drivers now use this API, including the ARM GIC driver, so remove the outdated comment. Signed-off-by: Kevin Cernekee --- Documentation/IRQ-domain.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Documentation/IRQ-domain.txt b/Documentation/IRQ-domain.txt index

[PATCH V2 19/22] Documentation: DT: Add "mti" vendor prefix

2014-11-15 Thread Kevin Cernekee
We have a bunch of platforms using "mti,cpu-interrupt-controller" but the "mti" prefix isn't documented. Fix this. Signed-off-by: Kevin Cernekee --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH V2 17/22] MIPS: BMIPS: Add PRId for BMIPS5200 (Whirlwind)

2014-11-15 Thread Kevin Cernekee
This is a dual core (quad thread) BMIPS5000. It needs a little extra code to boot the second core (CPU2/CPU3), but for now we can treat it the same as a single core BMIPS5000. Signed-off-by: Kevin Cernekee --- arch/mips/include/asm/cpu.h | 1 + arch/mips/kernel/cpu-probe.c | 1 + 2 files

[PATCH V2 12/22] MIPS: BMIPS: Explicitly configure reset vectors prior to secondary boot

2014-11-15 Thread Kevin Cernekee
The secondary CPU's reset vector needs to be set to KSEG1 for a cold boot (release from reset), or KSEG0 for a warm restart. On a cold boot KSEG0 may be unavailable (BMIPS4380), and on a warm restart KSEG1 may be unavailable (XKS01 mode on 4380 or 5000). Signed-off-by: Kevin Cernekee ---

[PATCH V2 03/22] irqchip: bcm7120-l2: fix error handling of irq_of_parse_and_map

2014-11-15 Thread Kevin Cernekee
From: Dmitry Torokhov Return value of irq_of_parse_and_map() is unsigned int, with 0 indicating failure, so testing for negative result never works. Signed-off-by: Dmitry Torokhov Acked-by: Florian Fainelli Tested-by: Kevin Cernekee --- drivers/irqchip/irq-bcm7120-l2.c | 4 ++-- 1 file

[PATCH V2 04/22] irqchip: bcm7120-l2: Refactor driver for arbitrary IRQEN/IRQSTAT offsets

2014-11-15 Thread Kevin Cernekee
Currently the driver assumes that REG_BASE+0x00 is the IRQ enable mask, and REG_BASE+0x04 is the IRQ status mask. This is true on BCM3384 and BCM7xxx, but it is not true for some of the controllers found on BCM63xx chips. So we will change a couple of key assumptions: - Don't assume that both

[PATCH V2 09/22] MIPS: BMIPS: Introduce helper function to change the reset vector

2014-11-15 Thread Kevin Cernekee
This will need to be called from a few different places, and the logic is starting to get a bit hairy (with the need for IPIs, CPU bug workarounds, and hazards). Signed-off-by: Kevin Cernekee --- arch/mips/kernel/smp-bmips.c | 65 +++- 1 file changed, 58

[PATCH V2 00/22] Multiplatform BMIPS kernel

2014-11-15 Thread Kevin Cernekee
This patch series implements a multiplatform target that runs on a variety of different Broadcom chipsets based on the BMIPS CPUs. It evolved out of the "BMIPS updates and BCM3384 platform support" RFC posted earlier. V1->V2: - Add several more DTS files so the same kernel can boot on multiple

re: bug? mac 00:00:00:00:00:00 with natsemi DP83815 after driver load

2014-11-15 Thread devzero
forwarding to lkml, as no response on netdev list so far. maybe someone has a clue how to properly fix this timing issue. the remaining question is about how to correctly replace readl() with inl() to make it compile cleanly or how eeprom_delay() is being done correctly. inl() seems to be

Re: [PATCH v2 00/33] thermal: exynos: convert the driver to use per-SoC type operations

2014-11-15 Thread Eduardo Valentin
Hello Bartlomiej, On Thu, Nov 13, 2014 at 04:00:55PM +0100, Bartlomiej Zolnierkiewicz wrote: > Hi, > > This patch series replaces the hardware registers abstractions in > the Exynos thermal driver by the usage of per-SoC type operations. Good! I think the driver is a bit confusing because it

[PATCHv3 1/2] groups: Factor out a function to set a pre-sorted group list

2014-11-15 Thread Josh Triplett
This way, functions that already need to sort the group list need not do so twice. The new set_groups_sorted is intentionally not exported. Signed-off-by: Josh Triplett --- v2, v3: No changes to patch 1/2. kernel/groups.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-)

[PATCH] getgroups.2: Document unprivileged setgroups calls

2014-11-15 Thread Josh Triplett
Signed-off-by: Josh Triplett --- v3: Document use of gid/egid/sgid. v2: Document requirement for no_new_privs. (If this doesn't end up going into 3.18, the version number in the patch will need updating.) man2/getgroups.2 | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff

[PATCHv3 2/2] groups: Allow unprivileged processes to use setgroups to drop groups

2014-11-15 Thread Josh Triplett
Currently, unprivileged processes (without CAP_SETGID) cannot call setgroups at all. In particular, processes with a set of supplementary groups cannot further drop permissions without obtaining elevated permissions first. Allow unprivileged processes to call setgroups with a subset of their

Re: [PATCH] clk: rockchip: fix clock select order for usbphy480m_src

2014-11-15 Thread Heiko Stübner
Am Donnerstag, 13. November 2014, 16:11:49 schrieb Kever Yang: > According to rk3288 trm, the mux selector locate at bit[12:11] > of CRU_CLKSEL13_CON shows: > 2'b00: select HOST0 USB pll clock (clk_otgphy1) > 2'b01: select HOST1 USB pll clock (clk_otgphy2) > 2'b10: select OTG USB pll clock

Re: [PATCH 7/8] x86, microcode, intel: guard against misaligned microcode data

2014-11-15 Thread Henrique de Moraes Holschuh
On Thu, 13 Nov 2014, Borislav Petkov wrote: > On Wed, Nov 12, 2014 at 10:18:47PM -0200, Henrique de Moraes Holschuh wrote: > > The detail is that: since most Intel microcodes are bigger than the kmalloc > > cache, most of the time kmalloc will return page-aligned addresses, which > > don't need

Re: [PATCH] clk: rockchip: fix clk_usbphy480m_gate bit location in register

2014-11-15 Thread Heiko Stübner
Am Donnerstag, 13. November 2014, 15:19:21 schrieb Kever Yang: > According to rk3288 trm, the clk_usbphy480m_gate is locate at > bit 14 of CRU_CLKGATE5_CON register. > > Signed-off-by: Kever Yang applied this to my clk branch. Heiko -- To unsubscribe from this list: send the line "unsubscribe

[GIT PULL] parisc architecture patches for v3.18

2014-11-15 Thread Helge Deller
Hi Linus, please pull some patches for the parisc architecture for kernel 3.18 from git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git parisc-3.18-2 Changes include: - wire up the bpf syscall - Remove CONFIG_64BIT usage from some userspace-exported header files - Use

Re: frequent lockups in 3.18rc4

2014-11-15 Thread Dave Jones
On Fri, Nov 14, 2014 at 02:01:27PM -0800, Linus Torvalds wrote: > But since you say "several times a day", just for fun, can you test > the follow-up patch to that one-liner fix that Will Deacon posted > today (Subject: "[PATCH] mmu_gather: move minimal range calculations > into generic

Re: [PATCH] staging: media: bcm2048: fix coding style error

2014-11-15 Thread Konrad Zapalowicz
On 11/15, Pavel Machek wrote: > On Sat 2014-11-15 21:12:18, Konrad Zapalowicz wrote: > > On 11/15, Christian Resell wrote: > > > Simple style fix (checkpatch.pl: "space prohibited before that ','"). > > > For the eudyptula challenge (http://eudyptula-challenge.org/). > > > > Nice, however we do

Re: [V2 PATCH 01/10] added media agnostic (MA) USB HCD driver

2014-11-15 Thread Alan Stern
On Fri, 14 Nov 2014, Sean O. Stalley wrote: > To summarize the spec: > MA USB groups a host & connected devices into MA service sets (MSS). > The architectural limit is 254 MA devices per MSS. > > If the host needs to connect more devices than that, It can start a > new MSS and connect to 254

Re: [PATCH] staging: media: bcm2048: fix coding style error

2014-11-15 Thread Greg KH
On Sat, Nov 15, 2014 at 09:59:34PM +0100, Pavel Machek wrote: > On Sat 2014-11-15 21:12:18, Konrad Zapalowicz wrote: > > On 11/15, Christian Resell wrote: > > > Simple style fix (checkpatch.pl: "space prohibited before that ','"). > > > For the eudyptula challenge

Re: [PATCH 1/1] ipc/mqueue.c: Drag unneeded code out of locks

2014-11-15 Thread Davidlohr Bueso
On Sat, 2014-11-15 at 04:44 +, Steven Stewart-Gallus wrote: > > What's the benefit here? Seems very risky at very little gain. > > > > The juice ain't worth the squeeze. NAK > > Hello, > > It is fair to argue that these changes are too tiny to be very > meaningful for performance but the

Re: linux-next: Tree for Nov 14

2014-11-15 Thread Guenter Roeck
On Fri, Nov 14, 2014 at 07:27:38PM +1100, Stephen Rothwell wrote: > Hi all, > > Changes since 20141113: > > New tree: overlayfs > > The idle tree gained a conflict against Linus' tree. > > The scsi tree gained a conflict against the usb tree. > > Non-merge commits (relative to Linus' tree):

Re: [PATCH 2/3] r8169: Use load_acquire() and store_release() to reduce memory barrier overhead

2014-11-15 Thread Francois Romieu
Alexander Duyck : > On 11/13/2014 01:30 PM, Francois Romieu wrote: > > Alexander Duyck : > > [...] > >> In addition the r8169 uses a rmb() however I believe it is placed > >> incorrectly > >> as I assume it supposed to be ordering descriptor reads after the check for > >> ownership. > > Not

[PATCHv2 2/2] groups: Allow unprivileged processes to use setgroups to drop groups

2014-11-15 Thread Josh Triplett
Currently, unprivileged processes (without CAP_SETGID) cannot call setgroups at all. In particular, processes with a set of supplementary groups cannot further drop permissions without obtaining elevated permissions first. Allow unprivileged processes to call setgroups with a subset of their

[PATCHv2 manpages] getgroups.2: Document unprivileged setgroups calls

2014-11-15 Thread Josh Triplett
Signed-off-by: Josh Triplett --- v2: Document requirement for no_new_privs. (If this doesn't end up going into 3.18, the version number in the patch will need updating.) man2/getgroups.2 | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/man2/getgroups.2

[PATCHv2 1/2] groups: Factor out a function to set a pre-sorted group list

2014-11-15 Thread Josh Triplett
This way, functions that already need to sort the group list need not do so twice. The new set_groups_sorted is intentionally not exported. Signed-off-by: Josh Triplett --- kernel/groups.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/kernel/groups.c

Re: [PATCH] staging: media: bcm2048: fix coding style error

2014-11-15 Thread Pavel Machek
On Sat 2014-11-15 21:12:18, Konrad Zapalowicz wrote: > On 11/15, Christian Resell wrote: > > Simple style fix (checkpatch.pl: "space prohibited before that ','"). > > For the eudyptula challenge (http://eudyptula-challenge.org/). > > Nice, however we do not need the information about the

Re: [PATCH] PM / domains: Kconfig: always enable PM_RUNTIME when genpd enabled

2014-11-15 Thread Pavel Machek
On Fri 2014-11-14 23:41:15, Rafael J. Wysocki wrote: > On Friday, November 14, 2014 09:36:17 AM Kevin Hilman wrote: > > Geert Uytterhoeven writes: > > > > > Hi Kevin, > > > > > > On Thu, Nov 13, 2014 at 11:28 PM, Kevin Hilman wrote: > > >> It makes little sense to use generic power domains

Re: [PATCH] NFC: st21nfcb: fix error handling of irq_of_parse_and_map

2014-11-15 Thread Christophe RICARD
Hi Dmitry, Thank you for your feedback. A patch got already pushed earlier this month: https://lists.01.org/pipermail/linux-nfc/2014-November/003126.html The i2c-core is already running the i2c_of_parse_and_map function when registering the slave device when using dts. This step got removed for

Re: [PATCH] NFC: st21nfca: fix error handling of irq_of_parse_and_map

2014-11-15 Thread Christophe RICARD
Hi Dmitry, Thank you for your feedback. A patch got already pushed earlier this month: https://lists.01.org/pipermail/linux-nfc/2014-November/003123.html The i2c-core is already running the i2c_of_parse_and_map function when registering the slave device when using dts. This step got removed for

[PATCH 1/1] lib/mpi: Deletion of unnecessary checks before the function call "mpi_free_limb_space"

2014-11-15 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 15 Nov 2014 21:33:26 +0100 The mpi_free_limb_space() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring

Re: [PATCH] ARM: dts: rockchip: enable PWM on Radxa Rock

2014-11-15 Thread Heiko Stübner
Am Freitag, 14. November 2014, 16:32:25 schrieb Julien CHAUVEAU: > This enables user space access to the 3 PWM available on the Radxa Rock > headers. > > Signed-off-by: Julien CHAUVEAU added to my v3.19-armsoc/dts branch -- To unsubscribe from this list: send the line "unsubscribe

Re: [PATCH 2/2] groups: Allow unprivileged processes to use setgroups to drop groups

2014-11-15 Thread Josh Triplett
On Sat, Nov 15, 2014 at 12:06:20PM -0800, Andy Lutomirski wrote: > On Sat, Nov 15, 2014 at 11:29 AM, Josh Triplett wrote: > > On Sat, Nov 15, 2014 at 09:37:27AM -0600, Eric W. Biederman wrote: > >> Josh Triplett writes: > >> > >> > Currently, unprivileged processes (without CAP_SETGID) cannot

Re: [PATCH 1/1] fs-fat: Less function calls in fat_fill_super() after error detection

2014-11-15 Thread Julia Lawall
On Sat, 15 Nov 2014, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 15 Nov 2014 20:55:23 +0100 > > The iput() function was called in an inefficient way by the implementation > of the fat_fill_super() function in case of an allocation failure. > The corresponding source code was

Re: [PATCH] staging: media: bcm2048: fix coding style error

2014-11-15 Thread Konrad Zapalowicz
On 11/15, Christian Resell wrote: > Simple style fix (checkpatch.pl: "space prohibited before that ','"). > For the eudyptula challenge (http://eudyptula-challenge.org/). Nice, however we do not need the information about the 'eudyptula challenge' in the commit message. If you want to include

Re: [PATCH 2/2] groups: Allow unprivileged processes to use setgroups to drop groups

2014-11-15 Thread Andy Lutomirski
On Sat, Nov 15, 2014 at 11:29 AM, Josh Triplett wrote: > On Sat, Nov 15, 2014 at 09:37:27AM -0600, Eric W. Biederman wrote: >> Josh Triplett writes: >> >> > Currently, unprivileged processes (without CAP_SETGID) cannot call >> > setgroups at all. In particular, processes with a set of

[PATCH 1/1] fs-fat: Less function calls in fat_fill_super() after error detection

2014-11-15 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 15 Nov 2014 20:55:23 +0100 The iput() function was called in an inefficient way by the implementation of the fat_fill_super() function in case of an allocation failure. The corresponding source code was improved by deletion of two unnecessary null pointer checks

[PATCH 1/2] mfd: t7l66xb: prepare/unprepare clocks

2014-11-15 Thread Dmitry Eremin-Solenikov
Change clk_enable/disable() calls to clk_prepare_enable() and clk_disable_unrepapre(). Signed-off-by: Dmitry Eremin-Solenikov --- drivers/mfd/t7l66xb.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/mfd/t7l66xb.c b/drivers/mfd/t7l66xb.c index

[PATCH 2/2] mfd: tc6387xb: prepare/unprepare clocks

2014-11-15 Thread Dmitry Eremin-Solenikov
Change clk_enable/disable() calls to clk_prepare_enable() and clk_disable_unrepapre(). Signed-off-by: Dmitry Eremin-Solenikov --- drivers/mfd/tc6387xb.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/mfd/tc6387xb.c b/drivers/mfd/tc6387xb.c index

Re: [Cocci] [PATCH 1/1] ntfs: Deletion of unnecessary checks before the function call "iput"

2014-11-15 Thread Julia Lawall
On Sat, 15 Nov 2014, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 15 Nov 2014 19:35:05 +0100 > > The iput() function tests whether its argument is NULL and then > returns immediately. Thus the test around the call is not needed. > > This issue was detected by using the

[PATCH] staging: media: bcm2048: fix coding style error

2014-11-15 Thread Christian Resell
Simple style fix (checkpatch.pl: "space prohibited before that ','"). For the eudyptula challenge (http://eudyptula-challenge.org/). Signed-off-by: Christian F. Resell --- diff --git a/drivers/staging/media/bcm2048/radio-bcm2048.c b/drivers/staging/media/bcm2048/radio-bcm2048.c index

Re: [PATCH] irqchip: bcm7120-l2: fix error handling of irq_of_parse_and_map

2014-11-15 Thread Kevin Cernekee
On Fri, Nov 14, 2014 at 2:16 PM, Dmitry Torokhov wrote: > Return value of irq_of_parse_and_map() is unsigned int, with 0 > indicating failure, so testing for negative result never works. > > Signed-off-by: Dmitry Torokhov > --- > > Not tested, found by casual code inspection. > >

Re: [PATCH] irqchip: brcmstb-l2: fix error handling of irq_of_parse_and_map

2014-11-15 Thread Florian Fainelli
2014-11-14 14:16 GMT-08:00 Dmitry Torokhov : > Return value of irq_of_parse_and_map() is unsigned int, with 0 > indicating failure, so testing for negative result never works. > > Signed-off-by: Dmitry Torokhov Acked-by: Florian Fainelli > --- > > Not tested, found by casual code inspection.

Re: [PATCH] irqchip: bcm7120-l2: fix error handling of irq_of_parse_and_map

2014-11-15 Thread Florian Fainelli
2014-11-14 14:16 GMT-08:00 Dmitry Torokhov : > Return value of irq_of_parse_and_map() is unsigned int, with 0 > indicating failure, so testing for negative result never works. > > Signed-off-by: Dmitry Torokhov Acked-by: Florian Fainelli > --- > > Not tested, found by casual code inspection. >

Re: [PATCH 2/2] groups: Allow unprivileged processes to use setgroups to drop groups

2014-11-15 Thread Josh Triplett
On Sat, Nov 15, 2014 at 09:37:27AM -0600, Eric W. Biederman wrote: > Josh Triplett writes: > > > Currently, unprivileged processes (without CAP_SETGID) cannot call > > setgroups at all. In particular, processes with a set of supplementary > > groups cannot further drop permissions without

Re: [PATCH v4 2/6] input: touchscreen: ti_am335x_tsc: Remove udelay in interrupt handler

2014-11-15 Thread Richard Cochran
On Fri, Nov 14, 2014 at 10:37:27AM +0530, Vignesh R wrote: > From: Brad Griffis > > TSC interrupt handler had udelay to avoid reporting of false pen-up > interrupt to user space. This patch implements workaround suggesting in > Advisory 1.0.31 of silicon errata for am335x, thus eliminating

Re: Request for help: what did I do wrong with idtentry?

2014-11-15 Thread Andy Lutomirski
On Sat, Nov 15, 2014 at 10:28 AM, Andi Kleen wrote: >> I'm not >> completely thrilled with what it does to double_fault, though. If we >> somehow get a double fault caused by an interrupt hitting userspace >> with a bad kernel_stack, then we'll end up page faulting in the >> double_fault

[PATCH 1/1] ntfs: Deletion of unnecessary checks before the function call "iput"

2014-11-15 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 15 Nov 2014 19:35:05 +0100 The iput() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring ---

Re: Request for help: what did I do wrong with idtentry?

2014-11-15 Thread Andi Kleen
> I'm not > completely thrilled with what it does to double_fault, though. If we > somehow get a double fault caused by an interrupt hitting userspace > with a bad kernel_stack, then we'll end up page faulting in the > double_fault prologue. I'm not convinced that this is worth worrying > about.

[PATCH 1/1] fs-ext4: Deletion of an unnecessary check before the function call "iput"

2014-11-15 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 15 Nov 2014 19:04:06 +0100 The iput() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring ---

  1   2   3   4   >