[PATCH perf/core v3 8/8] perf probe: Cleanup and consolidate command parsers

2015-04-24 Thread Masami Hiramatsu
To simplify the perf-probe command code, consolidate some similar functions and use command short-name for command classification, instead of separated booleans. Signed-off-by: Masami Hiramatsu --- tools/perf/builtin-probe.c | 105 1 file changed, 37

[PATCH perf/core v3 5/8] perf probe: Allow to use filter on --del command

2015-04-24 Thread Masami Hiramatsu
This makes perf-probe --del option to accept filter rules not only simple glob pattern. This simplifies the code and improve the flexibility. E.g. if we remove 2 different pattern events, we need 2 -d options. # ./perf probe -d vfs\* -d malloc Removed event: probe_libc:malloc Rem

[PATCH perf/core v3 0/8] perf-probe: Add filtering features

2015-04-24 Thread Masami Hiramatsu
Hi, Here is a series of patches which improves perf-probe to add filtering features for --list,--del and --funcs. This also includes some bugfixes and cleanups. I've fixed some patches according to Namhyung's review(Thanks!), and splitted the strfilter related patches. Note that first 2 bugfixes

[PATCH perf/core v3 2/8] perf: Add strfilter__string to recover rules string

2015-04-24 Thread Masami Hiramatsu
Add strfilter__string to recover rules string from strfilter. This will be good for debugging. Signed-off-by: Masami Hiramatsu --- tools/perf/util/strfilter.c | 67 +++ tools/perf/util/strfilter.h |9 ++ 2 files changed, 76 insertions(+) diff --

[PATCH perf/core v3 1/8] perf: Improve strfilter to append additional rules

2015-04-24 Thread Masami Hiramatsu
Add strfilter__or/and to append additional rules to existing strfilter. Signed-off-by: Masami Hiramatsu --- tools/perf/util/strfilter.c | 40 tools/perf/util/strfilter.h | 26 ++ 2 files changed, 66 insertions(+) diff --git a/

Re: [v2 0/5] arm64: add kdump support

2015-04-24 Thread Mark Rutland
Hi, On Fri, Apr 24, 2015 at 08:53:03AM +0100, AKASHI Takahiro wrote: > This patch set enables kdump (crash dump kernel) support on arm64 on top of > Geoff's kexec patchset. > > In this version, there are some arm64-specific usage/constraints: > 1) "mem=" boot parameter must be specified on crash

Re: [PATCH] usb: image: mdc800: fixed various style issues

2015-04-24 Thread Varka Bhadram
On 04/24/2015 05:29 AM, Jason Eastman wrote: > Fixed several style issues with: comments, function perenthesis, > indentation, and conditional braces > > Signed-off-by: Jason Eastman > --- > drivers/usb/image/mdc800.c | 769 > +++- > 1 file changed, 336 i

Re: [PATCH v1] watchdog: Use a reference cycle counter to avoid scaling issues

2015-04-24 Thread Andi Kleen
> There are better ways to do that than using heuristics. We have to > deal with 3 variants of the reference counter: > > 1) Core and Atom: counts bus cycles and we know that frequency already > from the local apic calibration > > 2) Nehalem, Westmere: Same as TSC > > 3) Sandybri

Re: [PATCH RT 3.18] irq_work: Provide a soft-irq based queue

2015-04-24 Thread Mike Galbraith
On Fri, 2015-04-24 at 11:00 +0200, Jan Kiszka wrote: > The approach looks good to me, but the commit log deserves a rework now. Yeah. While you're at it, you should change my chop to an ack or a tested-by too, as it's your patch, I just rearranged a bit. -Mike -- To unsubscribe from t

Re: [PATCH] x86_64, asm: Work around AMD SYSRET SS descriptor attribute issue

2015-04-24 Thread Denys Vlasenko
On 04/24/2015 04:15 AM, Andy Lutomirski wrote: > AMD CPUs don't reinitialize the SS descriptor on SYSRET, so SYSRET > with SS == 0 results in an invalid usermode state in which SS is > apparently equal to __USER_DS but causes #SS if used. > > Work around the issue by replacing NULL SS values with

Re: [PATCH v4 00/17] media: blackfin: bfin_capture enhancements

2015-04-24 Thread Hans Verkuil
On 04/10/2015 12:42 PM, Scott Jiang wrote: > Hi Hans, > >>> >>> Hans, I tried to use v4l2-compliance but it failed to compile. Sorry >>> for telling you it have passed compilation because I forgot to use >>> blackfin toolchain. >>> ./configure --without-jpeg --host=bfin-linux-uclibc --disable-lib

Re: [rtc-linux] [PATCH 1/5] RTC/i.MX/DryIce: add some background info about the states the machine can be in

2015-04-24 Thread Juergen Borleis
Hi Alexandre, On Wednesday 22 April 2015 00:09:42 Alexandre Belloni wrote: > [...] > > --- > > drivers/rtc/rtc-imxdi.c | 43 +++ > > 1 file changed, 43 insertions(+) > > > > diff --git a/drivers/rtc/rtc-imxdi.c b/drivers/rtc/rtc-imxdi.c > > index c666eab..8

Re: [v2 1/5] arm64: kdump: reserve memory for crash dump kernel

2015-04-24 Thread Mark Rutland
On Fri, Apr 24, 2015 at 08:53:04AM +0100, AKASHI Takahiro wrote: > On system kernel, the memory region used by crash dump kernel must be > specified by "crashkernel=X@Y" boot parameter. reserve_crashkernel() > will allocate the region in "System RAM" and reserve it for later use. > > On crash dump

[RESEND RFC PATCH 2/2] gfp: use the best near online node if the target node is offline

2015-04-24 Thread Gu Zheng
Since the change to the cpu <--> mapping (map the cpu to the physical node for all possible at the boot), the node of cpu may be not present, so we use the best near online node if the node is not present in the low level allocation APIs. Signed-off-by: Gu Zheng --- include/linux/gfp.h | 28 ++

[RESEND RFC PATCH 1/2] x86/cpu hotplug: make apicid <--> cpuid mapping persistent

2015-04-24 Thread Gu Zheng
Yasuaki Ishimatsu found that with node online/offline, cpu<->node relationship is established. Because workqueue uses a info which was established at boot time, but it may be changed by node hotpluging. Once pool->node points to a stale node, following allocation failure happens. == SLUB:

Re: [rtc-linux] [PATCH 2/5] RTC/i.MX/DryIce: add the unit recovery code

2015-04-24 Thread Juergen Borleis
Hi Alexandre, On Wednesday 22 April 2015 01:14:11 Alexandre Belloni wrote: > On 14/04/2015 at 11:11:53 +0200, Juergen Borleis wrote : > > This code is requiered to recover the unit from a security violation. > > required ^ Sure :) > > [...] > > +/* do a write into the unit without interrup

Re: [PATCH v8] psmouse - focaltech pass finger width to userspace

2015-04-24 Thread Mathias Gottschlag
Hi, Some comments below. If it is not a problem that width values are outdated as soon as there are two or more fingers on the touchpad, I think the change is good. Regards, Mathias Am 24.04.2015 um 01:15 schrieb Dmitry Tunin: > Focaltech touchpads report finger width in packet[5] of absolute p

Re: [PATCH 1/4] tty: serial: 8250_mtk: Use devm_clk_get

2015-04-24 Thread Matthias Brugger
2015-04-23 10:51 GMT+02:00 Sascha Hauer : > Just because of_clk_get() doesn't mean it should be used. Use devm_clk_get > which is the correct function when a struct device * is available. Also > since it's a devm function we can drop the calls to clk_put(). While at > it also fix a wrong debug mess

Re: [GIT PULL] kdbus for 4.1-rc1

2015-04-24 Thread Daniel Mack
Hi, On 04/24/2015 11:04 AM, Borislav Petkov wrote: > On Thu, Apr 23, 2015 at 10:02:52PM -0700, Steven Noonan wrote: >> On Thu, Apr 23, 2015 at 2:41 PM, Borislav Petkov wrote: >>> On Thu, Apr 23, 2015 at 11:22:39PM +0200, David Herrmann wrote: No it's not. O(256) equals O(1). >>> >>> Ok, you'

Re: [PATCH v2] gpio: max732x: Fix irq-events handler

2015-04-24 Thread Grygorii Strashko
On 04/22/2015 04:20 PM, Semen Protsenko wrote: MAX732X clears all pending interrupts on I2C read (when interrupts register is being read). Driver doesn't need to send any ACKs when interrupt was handled. So replace handle_edge_irq() with handle_simple_irq(). Using handle_edge_irq() (w/o .irq_ack

Re: [rtc-linux] [PATCH 2nd try] RTC/i.MX/DryICE: add recovery routines to the driver

2015-04-24 Thread Juergen Borleis
Hi Alexandre, On Wednesday 22 April 2015 01:26:15 Alexandre Belloni wrote: > On 14/04/2015 at 11:11:51 +0200, Juergen Borleis wrote : > > 2nd try, this time with a cover letter... m( > > > > The built-in RTC unit on some i.MX SoCs isn't an RTC only. It is also a > > tamper monitor unit which can k

Re: [PATCH 1/4] tty: serial: 8250_mtk: Use devm_clk_get

2015-04-24 Thread Sascha Hauer
On Fri, Apr 24, 2015 at 12:28:33PM +0200, Matthias Brugger wrote: > 2015-04-23 10:51 GMT+02:00 Sascha Hauer : > > Just because of_clk_get() doesn't mean it should be used. Use devm_clk_get > > which is the correct function when a struct device * is available. Also > > since it's a devm function we

Re: [v2 2/5] arm64: kdump: implement machine_crash_shutdown()

2015-04-24 Thread Mark Rutland
On Fri, Apr 24, 2015 at 08:53:05AM +0100, AKASHI Takahiro wrote: > kdump calls machine_crash_shutdown() to shut down non-boot cpus and > save per-cpu general-purpose registers before restarting the crash dump > kernel. See kernel_kexec(). > ipi_cpu_stop() is used and a bit modified to support this

Re: [v2 2/5] arm64: kdump: implement machine_crash_shutdown()

2015-04-24 Thread Marc Zyngier
On 24/04/15 11:39, Mark Rutland wrote: > On Fri, Apr 24, 2015 at 08:53:05AM +0100, AKASHI Takahiro wrote: >> kdump calls machine_crash_shutdown() to shut down non-boot cpus and >> save per-cpu general-purpose registers before restarting the crash dump >> kernel. See kernel_kexec(). >> ipi_cpu_stop(

Re: [PATCH v8] psmouse - focaltech pass finger width to userspace

2015-04-24 Thread Dmitry Tunin
> > Hi, > > Some comments below. If it is not a problem that width values are > outdated as soon as there are two or more fingers on the touchpad, I > think the change is good. > > Regards, > Mathias > > Am 24.04.2015 um 01:15 schrieb Dmitry Tunin: >> Focaltech touchpads report finger width in

Linux device driver for USB WIFI needs integrating

2015-04-24 Thread Chris Ward
There is a Linux driver here http://www.asus.com/Networking/USBN10_NANO/HelpDesk_download/ that needs integrating into the 'kernel.org' source. Please can you pass this to whoever should do this. Do we need formal permission from ASUS, or do we just take it ? Please cc: me on any replies as I am

Re: [GIT PULL] kdbus for 4.1-rc1

2015-04-24 Thread Borislav Petkov
Hi, On Fri, Apr 24, 2015 at 12:28:54PM +0200, Daniel Mack wrote: > Sure, for broadcasts, we have to walk the list of peers connected to the > bus and see which one is interested in a particular message. We do that And this "... we have to walk the list ..." right there raises the alarm. Can this

Re: [PATCH 1/4] tty: serial: 8250_mtk: Use devm_clk_get

2015-04-24 Thread Matthias Brugger
2015-04-24 12:31 GMT+02:00 Sascha Hauer : > On Fri, Apr 24, 2015 at 12:28:33PM +0200, Matthias Brugger wrote: >> 2015-04-23 10:51 GMT+02:00 Sascha Hauer : >> > Just because of_clk_get() doesn't mean it should be used. Use devm_clk_get >> > which is the correct function when a struct device * is ava

Re: [PATCH 1/4] tty: serial: 8250_mtk: Use devm_clk_get

2015-04-24 Thread Matthias Brugger
2015-04-24 12:53 GMT+02:00 Matthias Brugger : > 2015-04-24 12:31 GMT+02:00 Sascha Hauer : >> On Fri, Apr 24, 2015 at 12:28:33PM +0200, Matthias Brugger wrote: >>> 2015-04-23 10:51 GMT+02:00 Sascha Hauer : >>> > Just because of_clk_get() doesn't mean it should be used. Use devm_clk_get >>> > which i

Re: [PATCH v8] psmouse - focaltech pass finger width to userspace

2015-04-24 Thread Dmitry Tunin
I see that I did not change that here. Width can be in state->width or fingers[finger]->width I think latter is mere correct.It should be that way in this patch. I moved ot back and forth and tested. Noticed no difference. 24.04.2015 13:44, Dmitry Tunin пишет: > >> >> Hi, >> >> Some comments be

Re: [PATCH] x86_64, asm: Work around AMD SYSRET SS descriptor attribute issue

2015-04-24 Thread Borislav Petkov
On Fri, Apr 24, 2015 at 11:59:42AM +0200, Denys Vlasenko wrote: > I propose a more conservative check: > > if (ss_sel != __KERNEL_DS) > loadsegment(ss, __KERNEL_DS); > > I would propose this even if I would see no real case where it matters... > but I even do s

Linux device driver for USB WIFI needs integrating

2015-04-24 Thread Chris Ward
There is a Linux driver here hxxp://www.asus.com/Networking/USBN10_NANO/HelpDesk_download/ that needs integrating into the 'kernel.org' source. Please can you pass this to whoever should do this. Do we need formal permission from ASUS, or do we just take it ? Please cc: me on any replies as I am

[RFC v3 01/45] vfs: Minor documentation fix

2015-04-24 Thread Andreas Gruenbacher
The check_acl inode operation and the IPERM_FLAG_RCU are long gone. Document what get_acl does instead. Signed-off-by: Andreas Gruenbacher --- Documentation/filesystems/porting | 8 Documentation/filesystems/vfs.txt | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a

[RFC v3 07/45] vfs: Add MAY_DELETE_SELF and MAY_DELETE_CHILD permission flags

2015-04-24 Thread Andreas Gruenbacher
Normally, deleting a file requires write and execute access to the parent directory. With Richacls, a process with MAY_DELETE_SELF access to a file may delete the file even without write access to the parent directory. To support that, pass the MAY_DELETE_CHILD mask flag to inode_permission() whe

[RFC v3 43/45] uapi/nfs: Add NFSv4.1 ACL definitions

2015-04-24 Thread Andreas Gruenbacher
Add the ACL related protocol definitions which were added in the NFSv4.1 specifiction. Signed-off-by: Andreas Gruenbacher --- include/uapi/linux/nfs4.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/uapi/linux/nfs4.h b/include/uapi/linux/nfs4.h index adc0aff..2119c7c 100644 -

[RFC v3 32/45] nfsd: Remove dead declarations

2015-04-24 Thread Andreas Gruenbacher
Signed-off-by: Andreas Gruenbacher --- fs/nfsd/nfs4acl.c | 12 1 file changed, 12 deletions(-) diff --git a/fs/nfsd/nfs4acl.c b/fs/nfsd/nfs4acl.c index 59fd766..c630651 100644 --- a/fs/nfsd/nfs4acl.c +++ b/fs/nfsd/nfs4acl.c @@ -52,10 +52,6 @@ #define NFS4_ANYONE_MODE (NFS4_ACE_READ

[RFC v3 44/45] nfsd: Add support for the v4.1 dacl attribute

2015-04-24 Thread Andreas Gruenbacher
Richacls support the Automatic Inheritance permission propagation mechanism as specified in NFSv4.1. Over NFS, this requires support for the dacl attribute: compared to the acl attribute, the dacl attribute has an additional flags field which indicates when Automatic Inheritance is in use. The se

[RFC v3 26/45] richacl: Move everyone@ aces down the acl

2015-04-24 Thread Andreas Gruenbacher
The POSIX standard puts processes which are not the owner or a member in the owning group or which match any ace other then everyone@ on the other file class. We only know if a process is in the other class after processing the entire acl. Move all everyone@ aces in the acl down in the acl so tha

Re: [RFC 11/39] richacl: Compute maximum file masks from an acl

2015-04-24 Thread Andreas Grünbacher
2015-04-20 23:28 GMT+02:00 J. Bruce Fields : > Cripes, by the time I got to this point I'd already written one response > where I complained this was wrong, another where I explained why it was > right, and gone back and forth a couple more times. > > Feel free to add a > > Reviewed-by: J.

[RFC v3 41/45] rpc: Allow to demand-allocate pages to encode into

2015-04-24 Thread Andreas Gruenbacher
When encoding large, variable-length objects such as acls into xdr_bufs, it is easier to allocate buffer pages on demand rather than computing the required buffer size beforehand. Signed-off-by: Andreas Gruenbacher --- net/sunrpc/xdr.c | 8 1 file changed, 8 insertions(+) diff --git a/

[RFC v3 45/45] nfs: Add support for the v4.1 dacl attribute

2015-04-24 Thread Andreas Gruenbacher
The dacl attribute is only supported in NFS version 4.1 and later. On systems where NFS version 4.0 is still the default, an additional mount option is needed: mount -t nfs4 -o minorversion=1 [...] Signed-off-by: Andreas Gruenbacher --- fs/nfs/nfs4proc.c | 2 +- fs/nfs/nfs4xdr.c

[RFC v3 42/45] nfs: Add richacl support

2015-04-24 Thread Andreas Gruenbacher
Changes nfs to support the "system.richacl" xattr instead of "system.nfs4_acl". The "system.nfs4_acl" xattr nfs uses directly exposes the on-the-wire format of NFSv4's acl attribute to user space. This has at least two downsides: (1) the format is different from other file systems, so user-space c

[RFC v3 40/45] nfs: Remove unused xdr page offsets in getacl/setacl arguments

2015-04-24 Thread Andreas Gruenbacher
The arguments passed around for getacl and setacl xdr encoding, struct nfs_setaclargs and struct nfs_getaclargs, both contain an array of pages, an offset into the first page, and the length of the page data. The offset is unused as it is always zero; remove it. Signed-off-by: Andreas Gruenbacher

Re: [PATCH] iio: common: ssp_sensors: Fix uninitialized warning for timestamp

2015-04-24 Thread Karol Wrona
On 04/18/2015 09:02 PM, Jonathan Cameron wrote: > On 16/04/15 10:30, Karol Wrona wrote: >> calculated_time variable caused warning as uninitialized. It was not harmful >> because it was evaluated in the path in which was used later but it is to >> satisfy the checkers. >> >> Signed-off-by: Karol W

[RFC v3 39/45] nfs3: Return posix acl encode errors

2015-04-24 Thread Andreas Gruenbacher
When an error occurs when encoding a posix acl, return the error instead of causing a BUG(). Signed-off-by: Andreas Gruenbacher --- fs/nfs/nfs3xdr.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/fs/nfs/nfs3xdr.c b/fs/nfs/nfs3xdr.c index 8b880f7..de6f12c 100644 --- a/

[RFC v3 30/45] richacl: Create richacl from mode values

2015-04-24 Thread Andreas Gruenbacher
Create a richacl that corresponds to given file mode permission bits. Signed-off-by: Andreas Gruenbacher --- fs/richacl_compat.c | 38 ++ include/linux/richacl.h | 1 + 2 files changed, 39 insertions(+) diff --git a/fs/richacl_compat.c b/fs/richacl_compa

[RFC v3 31/45] richacl: Create acl with masks applied in richacl_from_mode()

2015-04-24 Thread Andreas Gruenbacher
When creating a richacl that represents a particular file mode, one approach is to create one everyone@ allow entry and set the richacl masks according to the file mode; when those masks are applied with richacl_apply_masks(), that everyone@ allow entry gets transformed as needed. The other approac

[RFC v3 36/45] NFSv4: Fix GETATTR bitmap verification

2015-04-24 Thread Andreas Gruenbacher
The NFSv4 client sends the server GETATTR requests with different sets of requested attributes depending on the situation. The requested set of attributes is encoded in a bitmap; the server replies with the set of attributes it could return. These bitmaps can be several words wide. The bitmap re

[RFC v3 35/45] nfsd: Add richacl support

2015-04-24 Thread Andreas Gruenbacher
On file systems with richacls enabled, get and set richacls directly instead of converting from / to posix acls. Signed-off-by: Andreas Gruenbacher --- fs/nfsd/acl.h | 3 +- fs/nfsd/nfs4acl.c | 123 + fs/nfsd/nfs4proc.c | 2 +- fs/nfs

[RFC v3 37/45] nfs/sunrpc: No more encode and decode function pointer casting

2015-04-24 Thread Andreas Gruenbacher
Instead of casting the encode and decode functions to the required type when assigning them to the p_encode and p_decode members of struct rpc_procinfo, define the functions with their proper type and cast the additional obj argument to the appropriate type inside those functions. This allows sligh

[RFC v3 38/45] nfs/sunrpc: Return status code from encode functions

2015-04-24 Thread Andreas Gruenbacher
Return a status code from the sunrpc xdr encode functions. While these functions were originally returning a status code before commit 9f06c719 from December 2010, it was found that none of them can actually fail and so they were turned into void functions. With more complex objects like NFSv4 ACLs

[RFC v3 33/45] nfsd: Keep list of acls to dispose of in compoundargs

2015-04-24 Thread Andreas Gruenbacher
We will decode acls in requests into richacls; those need to be richacl_put() at the end of the request instead of kfree()d; this allows the vfs to cache them whenever possible. NOTE: If we allow only a single acl per request, we can get rid of the list here. Signed-off-by: Andreas Gruenbacher -

[RFC v3 24/45] ext4: Add richacl feature flag

2015-04-24 Thread Andreas Gruenbacher
From: "Aneesh Kumar K.V" This feature flag selects richacl instead of posix acl support on the file system. In addition, the "acl" mount option is needed for enabling either of the two kinds of acls. Signed-off-by: Andreas Gruenbacher --- fs/ext4/ext4.h | 6 -- fs/ext4/super.c | 41 +

[RFC v3 23/45] ext4: Add richacl support

2015-04-24 Thread Andreas Gruenbacher
From: "Aneesh Kumar K.V" Support the richacl permission model in ext4. The richacls are stored in "system.richacl" xattrs. Richacls need to be enabled by tune2fs or at file system create time. Signed-off-by: Andreas Gruenbacher --- fs/ext4/Kconfig | 15 fs/ext4/Makefile | 1 + fs/

[RFC v3 27/45] richacl: Propagate everyone@ permissions to other aces

2015-04-24 Thread Andreas Gruenbacher
The trailing everyone@ allow ace can grant permissions to all file classes including the owner and group class. Before we can apply the other mask to this entry to turn it into an "other class" entry, we need to ensure that members of the owner or group class will not lose any permissions from tha

[RFC v3 28/45] richacl: Isolate the owner and group classes

2015-04-24 Thread Andreas Gruenbacher
When applying the file masks to an acl, we need to ensure that no process gets more permissions than allowed by its file mask. This may require inserting an owner@ deny ace to ensure this if the owner mask contains fewer permissions than the group or other mask. For example, when applying mode 04

[RFC v3 17/45] richacl: Create-time inheritance

2015-04-24 Thread Andreas Gruenbacher
When a new file is created, it can inherit an acl from its parent directory; this is similar to how default acls work in POSIX (draft) ACLs. As with POSIX ACLs, if a file inherits an acl from its parent directory, the intersection between the create mode and the permissions granted by the inherite

[RFC v3 29/45] richacl: Apply the file masks to a richacl

2015-04-24 Thread Andreas Gruenbacher
Put all the pieces of the acl transformation puzzle together for computing a richacl which has the file masks "applied" so that the standard nfsv4 access check algorithm can be used on the richacl. Signed-off-by: Andreas Gruenbacher --- fs/richacl_compat.c | 103 +

[RFC v3 22/45] vfs: Add richacl permission checking

2015-04-24 Thread Andreas Gruenbacher
Hook the richacl permission checking function into the vfs. Signed-off-by: Andreas Gruenbacher --- fs/namei.c | 51 +-- fs/posix_acl.c | 6 +++--- 2 files changed, 52 insertions(+), 5 deletions(-) diff --git a/fs/namei.c b/fs/namei.c index a8

[RFC v3 34/45] nfsd: Use richacls as internal acl representation

2015-04-24 Thread Andreas Gruenbacher
When converting from NFSv4 ACLs to POSIX ACLs, nfsd so far was using struct nfs4_acl as its internal representation. This representation is a subset of richacls, so get rid of struct nfs4_acl. Richacls even have a more compact in-memory representation, so a few more ACL entries can easily be suppor

[RFC v3 25/45] richacl: acl editing helper functions

2015-04-24 Thread Andreas Gruenbacher
The file masks in richacls make chmod and creating new files more efficient than having to apply file permission bits to the acl directly. They also allow us to regain permissions from an acl even after a restrictive chmod, because the permissions in the acl itself are not being destroyed. In POSI

[RFC v3 15/45] vfs: Cache base_acl objects in inodes

2015-04-24 Thread Andreas Gruenbacher
POSIX ACLs and richacls are both objects allocated by kmalloc() with a reference count which are freed by kfree_rcu(). An inode can either cache an access and a default POSIX ACL, or a richacl. (Richacls do not have default acls). To allow an inode to cache either of the two kinds of acls, intro

[RFC v3 21/45] richacl: xattr mapping functions

2015-04-24 Thread Andreas Gruenbacher
Map between "system.richacl" xattrs and the in-kernel representation. Signed-off-by: Andreas Gruenbacher --- fs/Makefile | 2 +- fs/richacl_xattr.c| 210 ++ fs/xattr.c| 34 +-- include/linux/richacl_

[RFC v3 16/45] vfs: Cache richacl in struct inode

2015-04-24 Thread Andreas Gruenbacher
Cache richacls in struct inode so that this doesn't have to be done individually in each filesystem. This is similar to POSIX ACLs. Signed-off-by: Andreas Gruenbacher --- fs/inode.c | 11 ++-- fs/posix_acl.c | 2 +- fs/richacl_base.c | 8 -- fs/richacl_inod

[RFC v3 18/45] richacl: Check if an acl is equivalent to a file mode

2015-04-24 Thread Andreas Gruenbacher
This function is used to avoid storing richacls if the acl can be computed from the file permission bits. Signed-off-by: Andreas Gruenbacher --- fs/richacl_base.c | 48 include/linux/richacl.h | 1 + 2 files changed, 49 insertions(+) diff

[RFC v3 19/45] richacl: Also recognize nontrivial mode-equivalent acls

2015-04-24 Thread Andreas Gruenbacher
So far, richacl_equiv_mode() is relatively limited in the types of acl it considers equivalent to a file mode: it only accepts masked acls with a single everyone@:rwpxd::allow entry. Change this to consider all acls equivalent to file modes if they only consist of owner@, group@, and everyone@ ent

[RFC v3 20/45] richacl: Automatic Inheritance

2015-04-24 Thread Andreas Gruenbacher
Automatic Inheritance (AI) allows changes to the acl of a directory to recursively propagate down to files and directories in the directory. To implement this, the kernel keeps track of which permissions have been inherited, and makes sure that permission propagation is turned off when the file pe

[RFC v3 11/45] richacl: Permission mapping functions

2015-04-24 Thread Andreas Gruenbacher
We need to map from POSIX permissions to NFSv4 permissions when a chmod() is done, from NFSv4 permissions to POSIX permissions when an acl is set (which implicitly sets the file permission bits), and from the MAY_READ/MAY_WRITE/MAY_EXEC/MAY_APPEND flags to NFSv4 permissions when doing an access che

[RFC v3 13/45] richacl: Update the file masks in chmod()

2015-04-24 Thread Andreas Gruenbacher
Doing a chmod() sets the file mode, which includes the file permission bits. When a file has a richacl, the permissions that the richacl grants need to be limited to what the new file permission bits allow. This is done by setting the file masks in the richacl to what the file permission bits map

[RFC v3 12/45] richacl: Compute maximum file masks from an acl

2015-04-24 Thread Andreas Gruenbacher
Compute upper bound owner, group, and other file masks with as few permissions as possible without denying any permissions that the NFSv4 acl in a richacl grants. This algorithm is used when a file inherits an acl at create time and when an acl is set via a mechanism that does not provide file mas

[RFC v3 06/45] vfs: Add MAY_CREATE_FILE and MAY_CREATE_DIR permission flags

2015-04-24 Thread Andreas Gruenbacher
Richacls distinguish between creating non-directories and directories. To support that, add an isdir parameter to may_create(). When checking inode_permission() for create permission, pass in an additional MAY_CREATE_FILE or MAY_CREATE_DIR mask flag. To allow checking for delete *and* create acces

[RFC v3 14/45] richacl: Permission check algorithm

2015-04-24 Thread Andreas Gruenbacher
A richacl grants a requested access if the NFSv4 acl in the richacl grants the requested permissions (according to the NFSv4 permission check algorithm) and the file mask that applies to the process includes the requested permissions. Signed-off-by: Andreas Gruenbacher --- fs/Makefile

[RFC v3 10/45] richacl: In-memory representation and helper functions

2015-04-24 Thread Andreas Gruenbacher
A richacl consists of an NFSv4 acl and an owner, group, and other mask. These three masks correspond to the owner, group, and other file permission bits, but they contain NFSv4 permissions instead of POSIX permissions. Each entry in the NFSv4 acl applies to the file owner (OWNER@), the owning grou

Re: [PATCH 4/4] tty: serial: 8250_mtk: Add support for bus clock

2015-04-24 Thread Matthias Brugger
2015-04-23 10:51 GMT+02:00 Sascha Hauer : > The mtk 8250 needs two clocks, one for providing the baudrate and > one that needs to be enabled for register accesses. The latter has > not been supported, this patch adds support for it. It is optional > for now since not all SoCs provide a bus clock. >

[RFC v3 09/45] vfs: Add permission flags for setting file attributes

2015-04-24 Thread Andreas Gruenbacher
Richacls support permissions that allow to take ownership of a file, change the file permissions, and set the file timestamps. Support that by introducing new permission mask flags and by checking for those mask flags in inode_change_ok(). Signed-off-by: Andreas Gruenbacher --- fs/attr.c

[PATCH] Staging: dgnc: Replace snprintf instead of sprintf

2015-04-24 Thread DHANAPAL, GNANACHANDRAN (G.)
This patch replaces snprintf instead of sprintf to avoid buffer overflow Signed-off-by: Gnanachandran Dhanapal --- drivers/staging/dgnc/dgnc_mgmt.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/dgnc/dgnc_mgmt.c b/drivers/staging/dgnc/dgnc_mgmt.c index b13

[RFC v3 08/45] vfs: Make the inode passed to inode_change_ok non-const

2015-04-24 Thread Andreas Gruenbacher
We will need to call iop->permission and iop->get_acl from inode_change_ok() for additional permission checks, and both take a non-const inode. Signed-off-by: Andreas Gruenbacher --- fs/attr.c | 2 +- include/linux/fs.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --gi

[RFC v3 02/45] uapi: Remove kernel internal declaration

2015-04-24 Thread Andreas Gruenbacher
The enum nfs4_acl_whotype is only used in nfs4d's internal nfs4 acl representation. No longer expose it to user space. Signed-off-by: Andreas Gruenbacher --- include/linux/nfs4.h | 7 +++ include/uapi/linux/nfs4.h | 7 --- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git

[RFC v3 04/45] vfs: Shrink struct posix_acl

2015-04-24 Thread Andreas Gruenbacher
There is a hole in struct posix_acl because its struct rcu_head member is too large; at least on on 64-bit architectures, the hole cannot be closed by changing the definition of struct posix_acl. So instead, remove the struct rcu_head member from struct posix_acl, make sure that acls are always big

[RFC v3 05/45] vfs: Add IS_ACL() and IS_RICHACL() tests

2015-04-24 Thread Andreas Gruenbacher
The vfs does not apply the umask for file systems that support acls. The test used for this used to be called IS_POSIXACL(). Switch to a new IS_ACL() test to check for either posix acls or richacls instead. Add a new MS_RICHACL flag and IS_RICHACL() test for richacls alone. The IS_POSIXACL() test i

[RFC v3 03/45] nfsd: Checking for acl support does not require fetching any acls

2015-04-24 Thread Andreas Gruenbacher
Whether or not a file system supports acls can be determined with IS_POSIXACL(inode) and does not require trying to fetch any acls; the code for computing the supported_attrs and aclsupport attributes can be simplified. Signed-off-by: Andreas Gruenbacher --- fs/nfsd/nfs4xdr.c | 25 ++

[RFC v3 00/45] Richacls

2015-04-24 Thread Andreas Gruenbacher
Hello, here's another update of the richacl patch queue. The changes since the last posting (https://lwn.net/Articles/638242/) include: * The nfs client now allocates pages for received acls on demand like the server does. It no longer caches the acl size between calls. * All possible acl

Re: Linux device driver for USB WIFI needs integrating

2015-04-24 Thread Anders Larsen
On 2015-04-24 12:37, Chris Ward wrote: There is a Linux driver here http://www.asus.com/Networking/USBN10_NANO/HelpDesk_download/ that needs integrating into the 'kernel.org' source. Isn't that device supported by the in-tree RTL8192CU/RTL8188CU driver? (CONFIG_RTL8192CU, drivers/net/wireles

Re: [RFC 02/39] uapi: Remove kernel internal declaration

2015-04-24 Thread Andreas Grünbacher
2015-04-20 20:57 GMT+02:00 J. Bruce Fields : > On Fri, Mar 27, 2015 at 05:50:00PM +0100, Andreas Gruenbacher wrote: >> The enum nfs4_acl_whotype is only used in nfs4d's internal nfs4 acl >> representation. No longer expose it to user space. > > I'll go ahead and apply that now. There's other very

Re: [PATCH] Staging: dgnc: Replace snprintf instead of sprintf

2015-04-24 Thread Dan Carpenter
On Fri, Apr 24, 2015 at 11:22:24AM +, DHANAPAL, GNANACHANDRAN (G.) wrote: > This patch replaces snprintf instead of sprintf to avoid buffer overflow > > Signed-off-by: Gnanachandran Dhanapal > --- > drivers/staging/dgnc/dgnc_mgmt.c |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >

Re: [GIT PULL] kdbus for 4.1-rc1

2015-04-24 Thread Daniel Mack
Hi, On 04/24/2015 12:50 PM, Borislav Petkov wrote: > On Fri, Apr 24, 2015 at 12:28:54PM +0200, Daniel Mack wrote: >> Sure, for broadcasts, we have to walk the list of peers connected to the >> bus and see which one is interested in a particular message. We do that > > And this "... we have to wal

Re: [PATCH] x86_64, asm: Work around AMD SYSRET SS descriptor attribute issue

2015-04-24 Thread Denys Vlasenko
On 04/24/2015 04:15 AM, Andy Lutomirski wrote: > AMD CPUs don't reinitialize the SS descriptor on SYSRET, so SYSRET > with SS == 0 results in an invalid usermode state in which SS is > apparently equal to __USER_DS but causes #SS if used. > > Work around the issue by replacing NULL SS values with

[PATCH] net: eth: altera: Resolve false errors from MSGDMA to TSE

2015-04-24 Thread Vince Bridgers
From: Chee Nouk Phoon This patch resolves false errors from MSGDMA in TX mSGDMA MM to ST mode, and is a continuation of the patch recently submitted by Andrea Oetken. The MSGDMA had a logic bug that masked detection of this issue prior to Quartus 14.1/Build 164. When the MSGDMA logic bug was addr

[PATCH v3 01/12] devicetree: Add bindings for the SoC of the ATH79 family

2015-04-24 Thread Alban Bedel
Signed-off-by: Alban Bedel --- .../devicetree/bindings/mips/ath79-soc.txt | 21 + 1 file changed, 21 insertions(+) create mode 100644 Documentation/devicetree/bindings/mips/ath79-soc.txt diff --git a/Documentation/devicetree/bindings/mips/ath79-soc.txt b/Documentat

Re: Thunderbolt hotplug not working on MacMini7,1

2015-04-24 Thread Andreas Noever
On Thu, Apr 23, 2015 at 8:12 PM, Matthew Garrett wrote: > On Thu, Apr 23, 2015 at 12:08:01PM +0200, Andreas Noever wrote: >> Hi Adam, >> >> On my system (MacBookPro10,1 - 4 channel TB1) the bridges and the >> controller both use 0x1547 and are only differentiated by >> subvendor/subdevice. > > Do

[PATCH v3 00/12] MIPS: ath79: Add OF support and DTS for TL-WR1043ND

2015-04-24 Thread Alban Bedel
This series add OF bindings and code support for the interrupt controllers, clocks and GPIOs. However it was only tested on a TL-WR1043ND with an AR9132, others SoCs are untested, and a few are not supported at all. Most code changes base on the previous bug fix series: [PATCH v2 0/5] MIPS: ath79:

[PATCH v3 02/12] MIPS: ath79: Add basic device tree support

2015-04-24 Thread Alban Bedel
Add the bare minimum to load a device tree. Signed-off-by: Alban Bedel --- v3: * Removed the empty Builtin devicetree menu --- arch/mips/Kconfig | 1 + arch/mips/ath79/machtypes.h | 1 + arch/mips/ath79/setup.c | 27 ++- 3 files changed, 28 insertions(+),

[PATCH v3 04/12] devicetree: Add bindings for the ATH79 interrupt controllers

2015-04-24 Thread Alban Bedel
Signed-off-by: Alban Bedel --- v2: * Fixed the node names to respect ePAPR * Removed the unneeded @0 on the node name --- .../interrupt-controller/qca,ath79-cpu-intc.txt| 44 ++ 1 file changed, 44 insertions(+) create mode 100644 Documentation/devicetree/bindings/int

Re: Linux device driver for USB WIFI needs integrating

2015-04-24 Thread Chris Ward
I just got a trap when booting the current OpenSUSE kernel (in the insmod), so something is not right. 3.16.7-21 , I think -- Disclaimer: I work for IBM, but I do not represent IBM. Any opinions expressed in this email are personal and don’t necessarily represent my employer’s positions, strategie

[PATCH v3 03/12] devicetree: Add bindings for the ATH79 DDR controllers

2015-04-24 Thread Alban Bedel
The DDR controller of the ARxxx and AR9xxx families provides an interface to flush the FIFO between various devices and the DDR. This is mainly used by the IRQ controller to flush the FIFO before running the interrupt handler of such devices. Signed-off-by: Alban Bedel --- v2: * Fix the node name

[PATCH v3 05/12] devicetree: Add bindings for the ATH79 MISC interrupt controllers

2015-04-24 Thread Alban Bedel
Signed-off-by: Alban Bedel --- v2: * Fixed the node names to respect ePAPR --- .../interrupt-controller/qca,ath79-misc-intc.txt | 30 ++ 1 file changed, 30 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/qca,ath79-misc-intc.txt diff

[PATCH v3 07/12] devicetree: Add bindings for the ATH79 PLL controllers

2015-04-24 Thread Alban Bedel
Signed-off-by: Alban Bedel --- v2: * Fixed the node names to respect ePAPR * Fixed the missing 's' in 'fallbacks' and the 'clocks' property v3: * Fix the compatible string for qca9550 --- .../devicetree/bindings/clock/qca,ath79-pll.txt| 33 ++ 1 file changed, 33 insert

[PATCH v3 08/12] MIPS: ath79: Add OF support to the clocks

2015-04-24 Thread Alban Bedel
Allow using the SoC clocks in the device tree. --- v3: * Fix the compatible string for qca9550 --- arch/mips/ath79/clock.c | 63 ++--- 1 file changed, 44 insertions(+), 19 deletions(-) diff --git a/arch/mips/ath79/clock.c b/arch/mips/ath79/clock.c index

[PATCH v3 10/12] MIPS: ath79: Add OF support to the GPIO driver

2015-04-24 Thread Alban Bedel
Replace the simple GPIO chip registration by a platform driver and make ath79_gpio_init() just register the device. Signed-off-by: Alban Bedel --- v2: * Added an 'ngpios' property instead of the many matches * Use a platform data struct to store the device config on non-DT boards. It ma

[PATCH v3 06/12] MIPS: ath79: Add OF support to the IRQ controllers

2015-04-24 Thread Alban Bedel
Add OF support for the CPU and MISC interrupt controllers of most supported ATH79 devices. Signed-off-by: Alban Bedel --- arch/mips/ath79/irq.c | 87 ++- 1 file changed, 86 insertions(+), 1 deletion(-) diff --git a/arch/mips/ath79/irq.c b/arch/mip

<    1   2   3   4   5   6   7   8   9   >