[PATCH v12 22/49] xfs: Fix error path in xfs_get_acl

2015-10-23 Thread Andreas Gruenbacher
Error codes from xfs_attr_get other than -ENOATTR were not properly reported. Fix that. In addition, the declaration of struct xfs_inode in xfs_acl.h isn't needed. Signed-off-by: Andreas Gruenbacher --- fs/xfs/xfs_acl.c | 1 + fs/xfs/xfs_acl.h | 1 - 2 files changed, 1

[PATCH v12 20/49] ext4: Add richacl support

2015-10-23 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: Aneesh Kumar K.V

[PATCH v12 21/49] ext4: Add richacl feature flag

2015-10-23 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: Aneesh Kumar K.V

[PATCH v12 24/49] xfs: Change how listxattr generates synthetic attributes

2015-10-23 Thread Andreas Gruenbacher
Instead of adding the synthesized POSIX ACL attribute names after listing all non-synthesized attributes, generate them immediately when listing the non-synthesized attributes. In addition, merge xfs_xattr_put_listent and xfs_xattr_put_listent_sizes to ensure that the list size is computed

[PATCH v12 44/49] sunrpc: Add xdr_init_encode_pages

2015-10-23 Thread Andreas Gruenbacher
Initialize xdr_stream and xdr_buf from a pages array, for encoding into the pages. Signed-off-by: Andreas Gruenbacher --- include/linux/sunrpc/xdr.h | 2 ++ net/sunrpc/xdr.c | 25 + 2 files changed, 27 insertions(+) diff --git

[PATCH v12 38/49] nfsd: Add support for the MAY_CREATE_{FILE,DIR} permissions

2015-10-23 Thread Andreas Gruenbacher
For local file systems, the vfs performs the necessary permission checks for operations like creating files and directories. NFSd duplicates several of those checks. The vfs checks have been extended to check for additional permissions like MAY_CREATE_FILE and MY_CREATE_DIR; the nfsd checks

Re: [PATCH] pinctrl: tegra-xusb: Correct lane mux options

2015-10-23 Thread Stephen Warren
On 10/16/2015 03:24 AM, Jon Hunter wrote: The description of the XUSB_PADCTL_USB3_PAD_MUX_0 register in the Tegra124 documentation implies that all functions (pcie, usb3 and sata) can be muxed onto to all lanes (pcie lanes 0-4 and sata lane 0). However, it has been confirmed that this is not the

Re: [PATCH] printk: Don't discard earlier unprinted messages to make space

2015-10-23 Thread Petr Mladek
On Thu 2015-10-22 14:19:26, David Howells wrote: > Petr Mladek wrote: > > > I would expect that the first few messages are printed to the console > > before the buffer is wrapped. IMHO, in many cases, you are interested > > into the final messages that describe why the system

[PATCH v2 1/4] KVM: X86: Add arrays to save/restore LBR MSRs

2015-10-23 Thread Jian Zhou
Add arrays in kvm_vcpu_arch struct to save/restore LBR MSRs at vm exit/entry time. Add new hooks to set/get DEBUGCTLMSR and LBR MSRs. Signed-off-by: Jian Zhou Signed-off-by: Stephen He --- arch/x86/include/asm/kvm_host.h | 26

Re: [PATCH v8 00/14] support "task_isolation" mode for nohz_full

2015-10-23 Thread Peter Zijlstra
On Fri, Oct 23, 2015 at 04:33:02AM +0200, Frederic Weisbecker wrote: > On Thu, Oct 22, 2015 at 04:31:44PM -0400, Chris Metcalf wrote: > > On 10/21/2015 08:39 AM, Peter Zijlstra wrote: > > >Can you *please* start a new thread with each posting? > > > > > >This is absolutely unmanageable. > > > >

Re: [PATCH v2] efi: Fix warning of int-to-pointer-cast on x86 32-bit builds

2015-10-23 Thread Ingo Molnar
* Ard Biesheuvel wrote: > On 23 October 2015 at 11:50, Taku Izumi wrote: > > commit-0f96a99 introduces the following warning message: > > > > drivers/firmware/efi/fake_mem.c:186:20: warning: cast to pointer > > from integer of different

[PATCH v2 0/4] KVM: VMX: enable LBR virtualization

2015-10-23 Thread Jian Zhou
Changelog in v2: (1) move the implementation into vmx.c (2) migraton is supported (3) add arrays in kvm_vcpu_arch struct to save/restore LBR MSRs at vm exit/entry time. (3) add a parameter of kvm_intel module to permanently disable LBRV (4) table of supported CPUs is

[PATCH v2 3/4] KVM: X86: Migration is supported

2015-10-23 Thread Jian Zhou
Supported bits of MSR_IA32_DEBUGCTLMSR are DEBUGCTLMSR_LBR(bit 0), DEBUGCTLMSR_BTF(bit 1) and DEBUGCTLMSR_FREEZE_LBRS_ON_PMI(bit 11). Qemu can get/set contents of LBR MSRs and LBR status in order to support migration. Signed-off-by: Jian Zhou Signed-off-by: Stephen He

[PATCH v2 2/4] KVM: X86: LBR MSRs of supported CPU types

2015-10-23 Thread Jian Zhou
Macros about LBR MSRs. Signed-off-by: Jian Zhou Signed-off-by: Stephen He --- arch/x86/include/asm/msr-index.h | 26 -- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/arch/x86/include/asm/msr-index.h

[PATCH V2] hp_sdc: fixed y2038 problem

2015-10-23 Thread WEN Pingbo
1. Converting timeval to ktime_t, and there is no need to handle sec and usec separately 2. hp_sdc.rtv is only used for time diff, monotonic time is better here Signed-off-by: WEN Pingbo --- drivers/input/serio/hp_sdc.c | 16 ++-- include/linux/hp_sdc.h

Re: [PATCH 1/1] i2c: designware: reverts "i2c: designware: Add support for AMD I2C controller"

2015-10-23 Thread Wolfram Sang
On Fri, Oct 23, 2015 at 01:28:47PM +0800, Ken Xue wrote: > The patch reverts commit a445900c9060 (i2c: designware: Add support for > AMD I2C controller) > > Since kernel starts to support APD(drivers/acpi/acpi_apd.c), there is > no need to get freq from id->driver_data for AMD0010. clkdev is

[PATCH v2 4/4] KVM: VMX: details of LBR virtualization implementation

2015-10-23 Thread Jian Zhou
Using msr intercept bitmap and arrays(save/restore LBR MSRs) in kvm_vcpu_arch struct to support LBR virtualization. Add a parameter of kvm_intel module to permanently disable LBRV. Reorgnized the table of supported CPUs, LBRV can be enabled or not according to the guest CPUID. Signed-off-by: Jian

Re: [PATCH v8 00/14] support "task_isolation" mode for nohz_full

2015-10-23 Thread Peter Zijlstra
On Thu, Oct 22, 2015 at 04:31:44PM -0400, Chris Metcalf wrote: > So is your recommendation to avoid the git send-email --in-reply-to > option? If so, would you recommend including an lkml.kernel.org > link in the cover letter pointing to the previous version, or > is there something else that

Re: [tip:perf/core] perf tools: Improve call graph documents and help messages

2015-10-23 Thread Ingo Molnar
* tip-bot for Namhyung Kim wrote: > Commit-ID: 76a26549eb367f683fbb394b7246bef5dc665f8c > Gitweb: http://git.kernel.org/tip/76a26549eb367f683fbb394b7246bef5dc665f8c > Author: Namhyung Kim > AuthorDate: Thu, 22 Oct 2015 23:28:32 +0900 > Committer:

Re: [PATCH 05/11] dt-binding: Add ngpios property to GPIO controller node

2015-10-23 Thread Laurent Pinchart
On Thursday 22 October 2015 18:41:05 Rob Herring wrote: > On Thu, Oct 22, 2015 at 1:52 PM, Ray Jui wrote: > > On 10/22/2015 11:43 AM, Rob Herring wrote: > >> On Mon, Oct 19, 2015 at 12:43 AM, Pramod Kumar wrote: > >>> Add ngpios property to the gpio controller's DT node so that controller > >>>

[PATCH] pci: Update VPD size with correct length

2015-10-23 Thread Hannes Reinecke
PCI-2.2 VPD entries have a maximum size of 32k, but might actually be smaller than that. To figure out the actual size one has to read the VPD area until the 'end marker' is reached. Trying to read VPD data beyond that marker results in 'interesting' effects, from simple read errors to crashing

[PATCH 4.1 18/46] drm: Fix locking for sysfs dpms file

2015-10-23 Thread Greg Kroah-Hartman
4.1-stable review patch. If anyone has any objections, please let me know. -- From: Daniel Vetter commit 621bd0f6982badd6483acb191eb7b6226a578328 upstream. With atomic drivers we need to make sure that (at least in general) property reads hold the

[PATCH 4.1 44/46] locks: new helpers - flock_lock_inode_wait and posix_lock_inode_wait

2015-10-23 Thread Greg Kroah-Hartman
4.1-stable review patch. If anyone has any objections, please let me know. -- From: Jeff Layton commit 29d01b22eaa18d8b46091d3c98c6001c49f78e4a upstream. Allow callers to pass in an inode instead of a filp. Signed-off-by: Jeff Layton

[PATCH 4.1 26/46] mfd: max77843: Fix max77843_chg_init() return on error

2015-10-23 Thread Greg Kroah-Hartman
4.1-stable review patch. If anyone has any objections, please let me know. -- From: Javier Martinez Canillas commit 1b52e50f2a402a266f1ba2281f0a57e87637a047 upstream. If i2c_new_dummy() fails in max77843_chg_init(), an PTR_ERR(NULL) is returned which

[PATCH 4.1 04/46] skbuff: Fix skb checksum partial check.

2015-10-23 Thread Greg Kroah-Hartman
4.1-stable review patch. If anyone has any objections, please let me know. -- From: Pravin B Shelar [ Upstream commit 31b33dfb0a144469dd805514c9e63f4993729a48 ] Earlier patch 6ae459bda tried to detect void ckecksum partial skb by comparing pull length to

[PATCH 4.1 13/46] tipc: move fragment importance field to new header position

2015-10-23 Thread Greg Kroah-Hartman
4.1-stable review patch. If anyone has any objections, please let me know. -- From: Jon Paul Maloy [ Upstream commit dde4b5ae65de659b9ec64bafdde0430459fcb495 ] In commit e3eea1eb47a ("tipc: clean up handling of message priorities") we introduced a

[PATCH 4.1 24/46] arm64: errata: use KBUILD_CFLAGS_MODULE for erratum #843419

2015-10-23 Thread Greg Kroah-Hartman
4.1-stable review patch. If anyone has any objections, please let me know. -- From: Will Deacon commit b6dd8e0719c0d2d01429639a11b7bc2677de240c upstream. Commit df057cc7b4fa ("arm64: errata: add module build workaround for erratum #843419") sets

[PATCH 4.1 15/46] af_unix: Convert the unix_sk macro to an inline function for type safety

2015-10-23 Thread Greg Kroah-Hartman
4.1-stable review patch. If anyone has any objections, please let me know. -- From: Aaron Conole [ Upstream commit 4613012db1d911f80897f9446a49de817b2c4c47 ] As suggested by Eric Dumazet this change replaces the #define with a static inline function to

[PATCH 4.1 25/46] nfsd/blocklayout: accept any minlength

2015-10-23 Thread Greg Kroah-Hartman
4.1-stable review patch. If anyone has any objections, please let me know. -- From: Christoph Hellwig commit 8c3ad9cb7343dc5f61b8cf3cdbe1016c5e7c2c8b upstream. Recent Linux clients have started to send GETLAYOUT requests with minlength less than blocksize.

[PATCH 4.1 00/46] 4.1.12-stable review

2015-10-23 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.1.12 release. There are 46 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Sun Oct 25 17:46:11 UTC 2015. Anything

[PATCH 4.2 08/54] net: dsa: fix preparation of a port STP update

2015-10-23 Thread Greg Kroah-Hartman
4.2-stable review patch. If anyone has any objections, please let me know. -- From: Vivien Didelot [ Upstream commit 57a47532c4312159935c98b7f1cf0e62296b9171 ] Because of the default 0 value of ret in dsa_slave_port_attr_set, a driver may

[PATCH 4.2 03/54] af_unix: Convert the unix_sk macro to an inline function for type safety

2015-10-23 Thread Greg Kroah-Hartman
4.2-stable review patch. If anyone has any objections, please let me know. -- From: Aaron Conole [ Upstream commit 4613012db1d911f80897f9446a49de817b2c4c47 ] As suggested by Eric Dumazet this change replaces the #define with a static inline function to

[PATCH 3.14 22/25] dm thin: fix missing pool reference count decrement in pool_ctr error path

2015-10-23 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Mike Snitzer commit ba30670f4d5292c4e7f7980bbd5071f7c4794cdd upstream. Fixes: ac8c3f3df ("dm thin: generate event when metadata threshold passed") Signed-off-by: Mike

[PATCH 3.14 23/25] rbd: fix double free on rbd_dev->header_name

2015-10-23 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Ilya Dryomov commit 3ebe138ac642a195c7f2efdb918f464734421fd6 upstream. If rbd_dev_image_probe() in rbd_dev_probe_parent() fails, header_name is freed twice: once in

Re: [PATCH 5/6] ARM: dts: sunxi: Add Allwinner H3 DTSI

2015-10-23 Thread Maxime Ripard
On Wed, Oct 21, 2015 at 06:20:27PM +0200, Jens Kuske wrote: > + bus_gates: clk@01c20060 { > + #clock-cells = <1>; > + compatible = "allwinner,sun8i-h3-bus-gates-clk"; > + reg = <0x01c20060 0x14>; > +

[PATCH 4.2 04/54] af_unix: return data from multiple SKBs on recv() with MSG_PEEK flag

2015-10-23 Thread Greg Kroah-Hartman
4.2-stable review patch. If anyone has any objections, please let me know. -- From: Aaron Conole [ Upstream commit 9f389e35674f5b086edd70ed524ca0f287259725 ] AF_UNIX sockets now return multiple skbs from recv() when MSG_PEEK flag is set. This is

[PATCH 4.2 21/54] drm: Fix locking for sysfs dpms file

2015-10-23 Thread Greg Kroah-Hartman
4.2-stable review patch. If anyone has any objections, please let me know. -- From: Daniel Vetter commit 621bd0f6982badd6483acb191eb7b6226a578328 upstream. With atomic drivers we need to make sure that (at least in general) property reads hold the

[PATCH 4.2 09/54] inet: fix races in reqsk_queue_hash_req()

2015-10-23 Thread Greg Kroah-Hartman
4.2-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet [ Upstream commit 29c6852602e259d2c1882f320b29d5c3fec0de04 ] Before allowing lockless LISTEN processing, we need to make sure to arm the SYN_RECV timer before

[PATCH 3.14 16/25] i2c: rcar: enable RuntimePM before registering to the core

2015-10-23 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Wolfram Sang commit 4f7effddf4549d57114289f273710f077c4c330a upstream. The core may register clients attached to this master which may use funtionality from

[PATCH 4.2 20/54] netlink: Trim skb to alloc size to avoid MSG_TRUNC

2015-10-23 Thread Greg Kroah-Hartman
4.2-stable review patch. If anyone has any objections, please let me know. -- From: "Arad, Ronen" [ Upstream commit db65a3aaf29ecce2e34271d52e8d2336b97bd9fe ] netlink_dump() allocates skb based on the calculated min_dump_alloc or a per socket

[PATCH 4.2 07/54] skbuff: Fix skb checksum partial check.

2015-10-23 Thread Greg Kroah-Hartman
4.2-stable review patch. If anyone has any objections, please let me know. -- From: Pravin B Shelar [ Upstream commit 31b33dfb0a144469dd805514c9e63f4993729a48 ] Earlier patch 6ae459bda tried to detect void ckecksum partial skb by comparing pull length to

[PATCH 4.2 02/54] l2tp: protect tunnel->del_work by ref_count

2015-10-23 Thread Greg Kroah-Hartman
4.2-stable review patch. If anyone has any objections, please let me know. -- From: Alexander Couzens [ Upstream commit 06a15f51cf3618e32a73871ee6a547ef7fd902b5 ] There is a small chance that tunnel_free() is called before tunnel->del_work scheduled resulting

[PATCH 3.14 15/25] arm64: errata: use KBUILD_CFLAGS_MODULE for erratum #843419

2015-10-23 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Will Deacon commit b6dd8e0719c0d2d01429639a11b7bc2677de240c upstream. Commit df057cc7b4fa ("arm64: errata: add module build workaround for erratum #843419") sets

[PATCH 4.2 13/54] bpf: fix panic in SO_GET_FILTER with native ebpf programs

2015-10-23 Thread Greg Kroah-Hartman
4.2-stable review patch. If anyone has any objections, please let me know. -- From: Daniel Borkmann [ Upstream commit 93d08b6966cf730ea669d4d98f43627597077153 ] When sockets have a native eBPF program attached through setsockopt(sk, SOL_SOCKET,

Re: [PATCH v5 0/8] Add support for Exynos SROM Controller driver

2015-10-23 Thread Kukjin Kim
On 10/23/15 18:49, Pavel Fedin wrote: > Hello! > >>> This patchset, I have tested on Peach-Pi (Exynos5880) based chromebook for >>> boot >>> and S2R functionality. >>> >> >> Entire patchset tested on Trats2 (Exynos4412) board. Unless Kukjin picks >> it also, I plan to take it for v4.5. > >

[PATCH 3.10 04/17] skbuff: Fix skb checksum flag on skb pull

2015-10-23 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Pravin B Shelar [ Upstream commit 6ae459bdaaeebc632b16e54dcbabb490c6931d61 ] VXLAN device can receive skb with checksum partial. But the checksum offset could be in outer

[PATCH 3.10 13/17] crypto: ahash - ensure statesize is non-zero

2015-10-23 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Russell King commit 8996eafdcbad149ac0f772fb1649fbb75c482a6a upstream. Unlike shash algorithms, ahash drivers must implement export and import as their

[PATCH 3.10 07/17] ppp: dont override sk->sk_state in pppoe_flush_dev()

2015-10-23 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Guillaume Nault [ Upstream commit e6740165b8f7f06d8caee0fceab3fb9d790a6fed ] Since commit 2b018d57ff18 ("pppoe: drop PPPOX_ZOMBIEs in pppoe_release"), pppoe_release()

[PATCH 3.10 12/17] crypto: sparc - initialize blkcipher.ivsize

2015-10-23 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Dave Kleikamp commit a66d7f724a96d6fd279bfbd2ee488def6b081bea upstream. Some of the crypto algorithms write to the initialization vector, but no space has been

[PATCH 4.2 31/54] mfd: max77843: Fix max77843_chg_init() return on error

2015-10-23 Thread Greg Kroah-Hartman
4.2-stable review patch. If anyone has any objections, please let me know. -- From: Javier Martinez Canillas commit 1b52e50f2a402a266f1ba2281f0a57e87637a047 upstream. If i2c_new_dummy() fails in max77843_chg_init(), an PTR_ERR(NULL) is returned which

[PATCH 4.2 30/54] nfsd/blocklayout: accept any minlength

2015-10-23 Thread Greg Kroah-Hartman
4.2-stable review patch. If anyone has any objections, please let me know. -- From: Christoph Hellwig commit 8c3ad9cb7343dc5f61b8cf3cdbe1016c5e7c2c8b upstream. Recent Linux clients have started to send GETLAYOUT requests with minlength less than blocksize.

Re: [PATCHv3 3/6] evm: enable EVM when X509 certificate is loaded

2015-10-23 Thread Mimi Zohar
On Thu, 2015-10-22 at 21:49 +0300, Dmitry Kasatkin wrote: > In order to enable EVM before starting 'init' process, > evm_initialized needs to be non-zero. Before it was > indicating that HMAC key is loaded. When EVM loads > X509 before calling 'init', it is possible to enable > EVM to start

[PATCH v12 02/49] vfs: Add MAY_CREATE_FILE and MAY_CREATE_DIR permission flags

2015-10-23 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

[PATCH v12 06/49] richacl: In-memory representation and helper functions

2015-10-23 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

[PATCH v12 08/49] richacl: Compute maximum file masks from an acl

2015-10-23 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

[PATCH v12 03/49] vfs: Add MAY_DELETE_SELF and MAY_DELETE_CHILD permission flags

2015-10-23 Thread Andreas Gruenbacher
Normally, deleting a file requires MAY_WRITE access to the parent directory. With richacls, a file may be deleted with MAY_DELETE_CHILD access to the parent directory or with MAY_DELETE_SELF access to the file. To support that, pass the MAY_DELETE_CHILD mask flag to inode_permission() when

[PATCH v12 07/49] richacl: Permission mapping functions

2015-10-23 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

[PATCH v12 11/49] vfs: Add get_richacl and set_richacl inode operations

2015-10-23 Thread Andreas Gruenbacher
These operations are similar to the get_acl and set_acl operations for POSIX ACLs. The distinction between access and default ACLs doesn't exist for richacls. Signed-off-by: Andreas Gruenbacher --- include/linux/fs.h | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v12 09/49] richacl: Permission check algorithm

2015-10-23 Thread Andreas Gruenbacher
A richacl roughly 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

[PATCH v12 32/49] richacl: Apply the file masks to a richacl

2015-10-23 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 Reviewed-by: J. Bruce Fields

[PATCH v12 37/49] nfsd: Add support for the v4.1 dacl attribute

2015-10-23 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

[PATCH v12 35/49] nfsd: Use richacls as internal acl representation

2015-10-23 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

[PATCH v12 39/49] richacl: Add support for unmapped identifiers

2015-10-23 Thread Andreas Gruenbacher
Some remote file systems like nfs may return user or group identifiers that cannot be mapped to local uids / gids. Allow to represent such unmapped identifiers in richacls. (We still cannot represent unmapped owners and owning groups, however.) In the in-memory representation, the richacl is

[PATCH v12 31/49] richacl: Isolate the owner and group classes

2015-10-23 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

[PATCH v12 34/49] nfsd: Keep list of acls to dispose of in compoundargs

2015-10-23 Thread Andreas Gruenbacher
We will decode acls in requests into richacls. Even if unlikely, there can be more than one acl in a single request; those richacls need to be richacl_put() at the end of the request instead of kfree()d, so keep a list of acls in compoundargs for that. Signed-off-by: Andreas Gruenbacher

[PATCH v12 15/49] richacl: Create-time inheritance

2015-10-23 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

[PATCH v12 46/49] nfs: Remove unused xdr page offsets in getacl/setacl arguments

2015-10-23 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

[PATCH v12 36/49] nfsd: Add richacl support

2015-10-23 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 Acked-by: J. Bruce Fields --- fs/nfsd/acl.h | 3 +- fs/nfsd/nfs4acl.c | 124

[PATCH v12 33/49] richacl: Create richacl from mode values

2015-10-23 Thread Andreas Gruenbacher
A file can have "no acl" in the sense that only the file mode permission bits determine access. In that case, the getxattr system call fails with errno == ENODATA (No such attribute). Over the NFSv4 protocol, a file always has an acl, and we convert the file mode permission bits into an

[PATCH v12 30/49] richacl: Set the other permissions to the other mask

2015-10-23 Thread Andreas Gruenbacher
Change the acl so that everyone@ is granted the permissions set in the other mask. Signed-off-by: Andreas Gruenbacher Reviewed-by: J. Bruce Fields --- fs/richacl_compat.c | 41 + 1 file changed, 41 insertions(+)

[PATCH RFC] fsnotify: destroy marks with call_srcu instead of dedicated thread

2015-10-23 Thread Jeff Layton
At the time that this code was originally written, call_srcu didn't exist, so this thread was required to ensure that we waited for that SRCU grace period to settle before finally freeing the object. It does exist now however and we can much more efficiently use call_srcu to handle this. That

Re: [RFC Patch 00/12] IXGBE: Add live migration support for SRIOV NIC

2015-10-23 Thread Alex Williamson
On Fri, 2015-10-23 at 11:36 -0700, Alexander Duyck wrote: > On 10/21/2015 09:37 AM, Lan Tianyu wrote: > > This patchset is to propose a new solution to add live migration support > > for 82599 > > SRIOV network card. > > > > Im our solution, we prefer to put all device specific operation into VF

Re: [Y2038] [PATCH] hil_mlc: convert timeval to timespec64

2015-10-23 Thread Pingbo Wen
On Monday, October 19, 2015 04:58 PM, Arnd Bergmann wrote: > On Sunday 18 October 2015 17:45:19 WEN Pingbo wrote: >> Using struct timeval will cause time overflow in 2038, replacing it with >> a 64bit version. >> >> In addition, the origin driver try to covert usec to jiffies manually in >>

[PATCH v2 2/4] KVM: X86: LBR MSRs of supported CPU types

2015-10-23 Thread Jian Zhou
Macros about LBR MSRs. Signed-off-by: Jian Zhou Signed-off-by: Stephen He --- arch/x86/include/asm/msr-index.h | 26 -- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/arch/x86/include/asm/msr-index.h

Re: [PATCH v2] EDAC: Add ARM64 EDAC

2015-10-23 Thread Andre Przywara
On 23/10/15 02:41, Hanjun Guo wrote: > Hi Brijesh, > > On 2015/10/22 22:46, Brijesh Singh wrote: >> Hi Andre, >> >> On 10/21/2015 06:52 PM, Andre Przywara wrote: >>> On 21/10/15 21:41, Brijesh Singh wrote: Add support for Cortex A57 and A53 EDAC driver. >>> Hi Brijesh, >>> >>> thanks for the

[PATCH 1/6] drm/vc4: vc4_plane_duplicate_state() can be static

2015-10-23 Thread Eric Anholt
From: kbuild test robot Signed-off-by: Fengguang Wu Signed-off-by: Eric Anholt --- drivers/gpu/drm/vc4/vc4_plane.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/vc4/vc4_plane.c

[PATCH 6/6] drm/vc4: Add support for more a few more RGB display plane formats.

2015-10-23 Thread Eric Anholt
These were all touch-tested with modetest. Signed-off-by: Eric Anholt --- drivers/gpu/drm/vc4/vc4_plane.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/gpu/drm/vc4/vc4_plane.c b/drivers/gpu/drm/vc4/vc4_plane.c index 887f3ca..b31dfce 100644 ---

[PATCH 5/6] drm/vc4: Make sure that planes aren't scaled.

2015-10-23 Thread Eric Anholt
We would scan out the memory around them if an upscale was attempted, and would just scan out incorrectly for downscaling. Signed-off-by: Eric Anholt --- It looks like, while modetest only wants to set scaling on overlay planes, one could do so on our primary/cursor planes if

[PATCH 4/6] drm/vc4: Fix some failure to track __iomem decorations on pointers.

2015-10-23 Thread Eric Anholt
Caught by the kbuild test robot. Signed-off-by: Eric Anholt --- drivers/gpu/drm/vc4/vc4_crtc.c | 3 ++- drivers/gpu/drm/vc4/vc4_hvs.c | 8 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/vc4/vc4_crtc.c b/drivers/gpu/drm/vc4/vc4_crtc.c

[PATCH 2/6] drm/vc4: fix platform_no_drv_owner.cocci warnings

2015-10-23 Thread Eric Anholt
From: Julia Lawall drivers/gpu/drm/vc4/vc4_drv.c:248:3-8: No need to set .owner here. The core will do it. Remove .owner field if calls are used which set it automatically Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci Signed-off-by: Fengguang Wu

VC4 fixes for -next

2015-10-23 Thread Eric Anholt
Merging vc4 to drm-next got a few automatic sparse and coccinelle warning reports generated. The first 3 patches come from the maintainers of those systems (thanks!), and the last 3 are fixes I've come up with in the last few days. -- To unsubscribe from this list: send the line "unsubscribe

[GIT PULL] x86 fixes

2015-10-23 Thread Ingo Molnar
Linus, Please pull the latest x86-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-urgent-for-linus # HEAD: f7d27c35ddff7c100d7a98db499ac0040149ac05 x86/mm, kasan: Silence KASAN warnings in get_wchan() Misc fixes: two KASAN fixes, two EFI

Re: [PATCH V3] hp_sdc: convert struct timeval to ktime_t

2015-10-23 Thread Arnd Bergmann
On Friday 23 October 2015 19:29:39 WEN Pingbo wrote: > 1. struct timeval is not y2038 safe, convert it to ktime_t, and there is no > need to handle sec and usec separately > > 2. hp_sdc.rtv is only used for time diff, monotonic time is better here > > Signed-off-by: WEN Pingbo

Re: [PATCH 05/11] dt-binding: Add ngpios property to GPIO controller node

2015-10-23 Thread Rob Herring
On Fri, Oct 23, 2015 at 4:08 AM, Laurent Pinchart wrote: > On Thursday 22 October 2015 18:41:05 Rob Herring wrote: >> On Thu, Oct 22, 2015 at 1:52 PM, Ray Jui wrote: >> > On 10/22/2015 11:43 AM, Rob Herring wrote: >> >> On Mon, Oct 19, 2015 at 12:43 AM, Pramod

Re: [Y2038] [PATCH] hil_mlc: convert timeval to timespec64

2015-10-23 Thread Arnd Bergmann
On Friday 23 October 2015 17:12:38 Pingbo Wen wrote: > On Monday, October 19, 2015 04:58 PM, Arnd Bergmann wrote: > >> -do_gettimeofday(); > >> -tv.tv_usec += USEC_PER_SEC * (tv.tv_sec - > >> mlc->instart.tv_sec); > >> -tv.tv_usec -= mlc->instart.tv_usec; > >>

[PATCH] staging: comedi: fix extreme case of comedi_nsamples_left()

2015-10-23 Thread Ian Abbott
`comedi_nsamples_left(s, nsamples)` returns the number of samples remaining to complete an asynchronous command or the passed in `nsamples`, whichever is lower. However, it goes wrong in the extreme case of setting the `nsamples` parameter to `UINT_MAX` when the number of conversions per "scan"

Re: [PATCH v2 00/12] KVM: x86: add support for VMX TSC scaling

2015-10-23 Thread Joerg Roedel
On Tue, Oct 20, 2015 at 03:39:00PM +0800, Haozhong Zhang wrote: > VMX TSC scaling shares some common logics with SVM TSC ratio which > is already supported by KVM. Patch 1 ~ 8 move those common logics from > SVM code to the common code. Upon them, patch 9 ~ 12 add VMX-specific > support for VMX

Re: [PATCH v3 05/15] scsi: ufs: increase fDeviceInit query response timeout

2015-10-23 Thread Akinobu Mita
2015-09-02 19:13 GMT+09:00 Yaniv Gardi : > fDeviceInit query response time for some devices is too long that default > query request timeout of 100ms may not be enough. Experiments show that > fDeviceInit response sometimes takes 500ms so to be on safer side this > change

[PATCH v7 0/17] Add Analogix Core Display Port Driver

2015-10-23 Thread Yakir Yang
Hi all, The Samsung Exynos eDP controller and Rockchip RK3288 eDP controller share the same IP, so a lot of parts can be re-used. I split the common code into bridge directory, then rk3288 and exynos only need to keep some platform code. Cause I can't find the exact IP name of exynos dp

Re: [PATCH 5/6] drm/vc4: Make sure that planes aren't scaled.

2015-10-23 Thread Daniel Vetter
On Fri, Oct 23, 2015 at 11:32:35AM +0100, Eric Anholt wrote: > We would scan out the memory around them if an upscale was attempted, > and would just scan out incorrectly for downscaling. > > Signed-off-by: Eric Anholt > --- > > It looks like, while modetest only wants to set

Make vmstat deferrable again (was Re: [PATCH] mm,vmscan: Use accurate values for zone_reclaimable() checks)

2015-10-23 Thread Christoph Lameter
On Fri, 23 Oct 2015, Michal Hocko wrote: > On Thu 22-10-15 10:33:20, Christoph Lameter wrote: > > Ok that also makes me rethink commit > > ba4877b9ca51f80b5d30f304a46762f0509e1635 which seems to be a similar fix > > this time related to idle mode not updating the counters. > > > > Could we fix

[PATCH] sched/deadline: fix typo

2015-10-23 Thread Vincent Guittot
Fix a typo in the code comment. Signed-off-by: Vincent Guittot --- kernel/sched/deadline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c index 142df26..0688a20 100644 ---

Re: [PATCH v8 00/14] support "task_isolation" mode for nohz_full

2015-10-23 Thread Theodore Ts'o
On Fri, Oct 23, 2015 at 11:04:59AM +0200, Peter Zijlstra wrote: > > If you think this is actually the wrong thing, is it worth trying > > to fix the git docs to deprecate this option? > > As said in the other email; git has different standards than lkml. By > now we're just one of many many users

[PATCH 04/11] net: packet: change vnet_hdr_len from int to size_t

2015-10-23 Thread LABBE Corentin
vnet_hdr_len cannot be negative and is use in operation/function that wait for unsigned value. This patch set vnet_hdr_len as size_t. Signed-off-by: LABBE Corentin --- net/packet/af_packet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 05/11] net: irda: change chunk from int to size_t

2015-10-23 Thread LABBE Corentin
chunk cannot be negative and is use in operation/function that wait for unsigned value. This patch set it as size_t. Signed-off-by: LABBE Corentin --- net/irda/af_irda.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/irda/af_irda.c

[PATCH 09/11] net: ipv6: hlen could be set as size_t

2015-10-23 Thread LABBE Corentin
The hlen member of raw6_frag_vec is used in operation/function that wait for unsigned value. So it need to be set as size_t. This patch do the same for the hlen variable. Signed-off-by: LABBE Corentin --- net/ipv6/raw.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH 07/11] net: caif: change chunk from int to size_t

2015-10-23 Thread LABBE Corentin
chunk cannot be negative and is use in operation/function that wait for unsigned value. This patch set it as size_t. The patch do the same for the size variable. Signed-off-by: LABBE Corentin --- net/caif/caif_socket.c | 5 +++-- 1 file changed, 3 insertions(+), 2

[PATCH 08/11] net: bluetooth: change the len parameter of sco_send_frame() to size_t

2015-10-23 Thread LABBE Corentin
len is used in operation/function that wait for unsigned value. Furthermore the only one call of sco_send_frame give a size_t as argument. So the parameter need to be set as size_t. Signed-off-by: LABBE Corentin --- net/bluetooth/sco.c | 2 +- 1 file changed, 1

Re: [GIT PULL] On-demand device probing

2015-10-23 Thread Tomeu Vizoso
On 10/22/2015 09:26 PM, Greg Kroah-Hartman wrote: > On Thu, Oct 22, 2015 at 11:53:31AM -0700, Frank Rowand wrote: >> On 10/22/2015 7:44 AM, Greg Kroah-Hartman wrote: >>> >>> >>> On Thu, Oct 22, 2015 at 11:05:11AM +0200, Tomeu Vizoso wrote: But that's moot currently

Re: Make vmstat deferrable again (was Re: [PATCH] mm,vmscan: Use accurate values for zone_reclaimable() checks)

2015-10-23 Thread Sergey Senozhatsky
On (10/23/15 09:12), Christoph Lameter wrote: [..] > > > + if (!cpumask_test_and_set_cpu(smp_processor_id(), cpu_stat_off)) > > > + cancel_delayed_work(this_cpu_ptr(_work)); > > > > shouldn't preemption be disable for smp_processor_id() here? > > Preemption is disabled

<    5   6   7   8   9   10   11   12   13   14   >