[PATCH] gpu: host1x: Use platform_register/unregister_drivers()

2015-12-02 Thread Thierry Reding
From: Thierry Reding These new helpers simplify implementing multi-driver modules and properly handle failure to register one driver by unregistering all previously registered drivers. Signed-off-by: Thierry Reding --- drivers/gpu/host1x/dev.c | 22 -- 1 file changed, 8 ins

[PATCH] drm/armada: Use platform_register/unregister_drivers()

2015-12-02 Thread Thierry Reding
From: Thierry Reding These new helpers simplify implementing multi-driver modules and properly handle failure to register one driver by unregistering all previously registered drivers. Signed-off-by: Thierry Reding --- drivers/gpu/drm/armada/armada_drv.c | 18 +++--- 1 file changed

[PATCH] gpio: mpc5200: Use platform_register/unregister_drivers()

2015-12-02 Thread Thierry Reding
From: Thierry Reding These new helpers simplify implementing multi-driver modules and properly handle failure to register one driver by unregistering all previously registered drivers. Signed-off-by: Thierry Reding --- drivers/gpio/gpio-mpc5200.c | 17 +++-- 1 file changed, 7 inser

linux-next: build failure after merge of the block tree

2015-12-02 Thread Mark Brown
Hi Jens, After merging the block tree, today's linux-next build (x86 allmodconfig) failed like this: /home/broonie/next/next/drivers/nvme/host/lightnvm.c: In function 'nvme_nvm_identity': /home/broonie/next/next/drivers/nvme/host/lightnvm.c:279:27: error: 'struct nvme_ns' has no member named 'd

Re: [PATCH 00/13] mvneta Buffer Management and enhancements

2015-12-02 Thread Gregory CLEMENT
Hi, On mer., déc. 02 2015, Gregory CLEMENT wrote: >> >> So far the issue may have been not noticed, because in every IO driver >> using mvebu_mbus_dram_info for configuring MBUS windows, there's >> following substraction: >> (cs->size - 1) & 0xf000 >> >> I think there are two options: >>

[PATCH] drm/exynos: Use platform_register/unregister_drivers()

2015-12-02 Thread Thierry Reding
From: Thierry Reding Replace the driver-specific implementations with the ones implemented in the core. Signed-off-by: Thierry Reding --- drivers/gpu/drm/exynos/exynos_drm_drv.c | 42 +++-- 1 file changed, 8 insertions(+), 34 deletions(-) diff --git a/drivers/gpu/d

[PATCH 1/2] edac: mpc52xx: Use platform_register/unregister_drivers()

2015-12-02 Thread Thierry Reding
From: Thierry Reding These new helpers simplify implementing multi-driver modules and properly handle failure to register one driver by unregistering all previously registered drivers. Signed-off-by: Thierry Reding --- drivers/edac/mpc85xx_edac.c | 16 1 file changed, 8 insert

RE: [PATCH v2 5/5] printk/nmi: Increase the size of the temporary buffer

2015-12-02 Thread David Laight
From: yalin wang > Sent: 30 November 2015 16:42 > > On Nov 27, 2015, at 19:09, Petr Mladek wrote: > > > > Testing has shown that the backtrace sometimes does not fit > > into the 4kB temporary buffer that is used in NMI context. > > > > The warnings are gone when I double the temporary buffer size

Re: [dpdk-dev] [PATCH] vfio: Include No-IOMMU mode

2015-12-02 Thread Thomas Monjalon
Hi, 2015-12-02 08:28, Alex Williamson: > On Mon, 2015-11-16 at 19:12 +0200, Avi Kivity wrote: > > On 11/16/2015 07:06 PM, Alex Williamson wrote: > > > FYI, this is now in v4.4-rc1 (the slightly modified v2 version). I want > > > to give fair warning though that while we seem to agree on this idea

Re: [PATCH v2 1/2] iio: ina2xx: add support for TI INA2xx Power Monitors

2015-12-02 Thread Marc Titinger
On 02/12/2015 17:04, Guenter Roeck wrote: On 12/02/2015 02:20 AM, Marc Titinger wrote: On 02/12/2015 03:14, Guenter Roeck wrote: On Mon, Nov 30, 2015 at 12:49:14PM +0100, Marc Titinger wrote: in SOFTWARE buffer mode, a kthread will capture the active scan_elements into a kfifo, then compute th

Re: [PATCH] PCI/AER: enable SERR# forwarding and role-based error reporting

2015-12-02 Thread Sinan Kaya
On 12/1/2015 11:43 PM, Sinan Kaya wrote: > Setting the SERR# forwarding must have made the trick. This part was > just an additional clearing of the errors. > Nope, I was just enabling non-advisory fatal error from the mask register. Not clearing it. > I'll retest without this bit. Here we go.

[PATCH 2/2] edac: mv64x60: Use platform_register/unregister_drivers()

2015-12-02 Thread Thierry Reding
From: Thierry Reding These new helpers simplify implementing multi-driver modules and properly handle failure to register one driver by unregistering all previously registered drivers. Signed-off-by: Thierry Reding --- drivers/edac/mv64x60_edac.c | 39 +++ 1

Re: [PATCH 3/7] perf: Migrate perf to use new tick dependency mask model

2015-12-02 Thread Peter Zijlstra
On Wed, Nov 25, 2015 at 01:34:30PM +0100, Frederic Weisbecker wrote: > On Tue, Nov 24, 2015 at 11:19:33AM -0500, Chris Metcalf wrote: > > It would be helpful to have a comment explaining why these two > > can't race with each other, e.g. this race: > > > > [cpu 1] atomic_dec_and_test > > [cpu 2]

Re: [PATCH 2/2] perf hists browser: Reset selection when refresh

2015-12-02 Thread Namhyung Kim
On Wed, Dec 02, 2015 at 12:51:33PM +, Wang Nan wrote: > With following steps: > > Step 1: perf report > > Step 2: Use UP/DOWN to select an entry, don't press 'ENTER' > > Step 3: Use '/' to filter symbols, use a filter which returns > empty result > > Step 4: Press 'ENTER' > >

[PATCH] crypto: n2 - Use platform_register/unregister_drivers()

2015-12-02 Thread Thierry Reding
From: Thierry Reding These new helpers simplify implementing multi-driver modules and properly handle failure to register one driver by unregistering all previously registered drivers. Signed-off-by: Thierry Reding --- drivers/crypto/n2_core.c | 17 +++-- 1 file changed, 7 insertio

[PATCH] Revert "of/irq: make of_irq_find_parent static"

2015-12-02 Thread Qais Yousef
This reverts commit 52493d446141b07c8ba28dd6a529513f8b2342bd. Signed-off-by: Qais Yousef Conflicts: include/linux/of_irq.h --- I have a patch series that is under review that makes use of of_irq_find_parent() The affected patch is this: https://lkml.org/lkml/2015/11/25/291 Is

Re: [PATCH 10/10] ARM: dts: Fix dm814x pinctrl address and mask

2015-12-02 Thread Tony Lindgren
* Matthijs van Duin [151201 17:23]: > On 2 December 2015 at 01:46, Tony Lindgren wrote: > > We should probably have separate PIN_INPUT_3V3 and PIN_OUTPUT_3V3 > > dts macros that ensure that? > > I'm in general no fan of such macros: it feels really awkward to have > to make that distinction in d

[PATCH] dmaengine: at_xdmac: fix bad behavior in interleaved mode

2015-12-02 Thread Ludovic Desroches
From: Sylvain ETIENNE When performing interleaved transfers with numf > 1, an extra line is copied. The mbr.bc field is incremented once too often. The length of the block is (BLEN+1) microblocks. Signed-off-by: Sylvain ETIENNE Signed-off-by: Ludovic Desroches Fixes: 4e5385784e69 ("dmaengine:

Re: [PATCH 10/10] ARM: dts: Fix dm814x pinctrl address and mask

2015-12-02 Thread Tony Lindgren
* Tony Lindgren [151201 17:23]: > * Matthijs van Duin [151201 17:15]: > > On 2 December 2015 at 01:46, Tony Lindgren wrote: > > > Ouch. We should probably have separate PIN_INPUT_3V3 and PIN_OUTPUT_3V3 > > > dts macros that ensure that? > > > > Can't we just keep bit 18 out of the function mask

Re: 4.4rc3 nfsd/btrfs kasan warning.

2015-12-02 Thread Dave Jones
On Wed, Dec 02, 2015 at 10:11:28AM -0500, Josef Bacik wrote: > On 12/02/2015 09:59 AM, Dave Jones wrote: > > Got a few of these in the logs this morning after an overnight rsync over > > nfs > > to an exported btrfs volume. > > That's probably us and not NFS, what line is that in > setup_

Re: [PATCH v4 1/5] dt-bindings: add SMP enable-method for Broadcom NSP

2015-12-02 Thread Kapil Hali
Hi Rob, On 12/2/2015 8:56 PM, Rob Herring wrote: > On Tue, Dec 01, 2015 at 11:24:05AM -0500, Kapil Hali wrote: >> Add a compatible string "brcm,bcm-nsp-smp" for Broadcom's >> Northstar Plus CPU to the 32-bit ARM CPU device tree binding >> documentation file and create a new binding documentation f

Re: [PATCH 3/3] mm/slab: use list_{empty_careful,last_entry} in drain_freelist

2015-12-02 Thread Christoph Lameter
On Wed, 2 Dec 2015, Geliang Tang wrote: > diff --git a/mm/slab.c b/mm/slab.c > index 5d5aa3b..1a7d91c 100644 > --- a/mm/slab.c > +++ b/mm/slab.c > @@ -2362,21 +2362,14 @@ static void drain_cpu_caches(struct kmem_cache > *cachep) > static int drain_freelist(struct kmem_cache *cache, >

Re: [PATCH v2 1/2] iio: ina2xx: add support for TI INA2xx Power Monitors

2015-12-02 Thread Guenter Roeck
On 12/02/2015 02:20 AM, Marc Titinger wrote: On 02/12/2015 03:14, Guenter Roeck wrote: On Mon, Nov 30, 2015 at 12:49:14PM +0100, Marc Titinger wrote: in SOFTWARE buffer mode, a kthread will capture the active scan_elements into a kfifo, then compute the remaining time until the next capture tic

Re: [RESEND RFC/PATCH 6/8] media: platform: mtk-vcodec: Add Mediatek V4L2 Video Encoder Driver

2015-12-02 Thread Daniel Thompson
On 02/12/15 13:08, tiffany lin wrote: We need MTK_STATE_ABORT to inform encoder thread (mtk_venc_worker) that stop encodeing job from stopped ctx instance. When user space qbuf, we need to make sure everything is ready to sent buf to encode. Agree that you need a flag here. In fact currently yo

Re: [PATCH 1/2] perf hists browser: Add NULL pointer check to prevent crash

2015-12-02 Thread Namhyung Kim
On Wed, Dec 02, 2015 at 12:51:32PM +, Wang Nan wrote: > Before this patch we can trigger a segfault by following steps: > > Step 1: perf report > > Step 2: Use UP/DOWN to select an entry, don't press 'ENTER' > > Step 3: Use '/' to filter symbols, use a filter which returns > empt

Re: [PATCH 2/3] mm/slab: use list_for_each_entry in cache_flusharray

2015-12-02 Thread Christoph Lameter
On Wed, 2 Dec 2015, Geliang Tang wrote: > Simplify the code with list_for_each_entry(). Acked-by: Christoph Lameter -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majo

Re: [PATCH v3 2/4] drm: Add support for ARM's HDLCD controller.

2015-12-02 Thread Liviu Dudau
On Wed, Dec 02, 2015 at 04:33:31PM +0100, Daniel Vetter wrote: > On Wed, Dec 02, 2015 at 04:24:19PM +0100, Daniel Vetter wrote: > > On Wed, Dec 02, 2015 at 12:23:00PM +, Liviu Dudau wrote: > > > The HDLCD controller is a display controller that supports resolutions > > > up to 4096x4096 pixels.

Re: [PATCH 1/3] mm/slab: use list_first_entry_or_null()

2015-12-02 Thread Christoph Lameter
On Wed, 2 Dec 2015, Geliang Tang wrote: > Simplify the code with list_first_entry_or_null(). Looks like there are two code snippets here in slab.c that could become a function or so. So this could be improved upon by creating a function called get_first_slab() or so. Acked-by: Christoph Lameter

Re: [PATCH 3/6] Input: Update vmmouse.c to use the common VMW_PORT macros

2015-12-02 Thread Sinclair Yeh
On Wed, Dec 02, 2015 at 07:31:24AM -0800, Greg Kroah-Hartman wrote: > On Tue, Dec 01, 2015 at 06:21:06PM -0800, Sinclair Yeh wrote: > > On Tue, Dec 01, 2015 at 04:04:08PM -0800, Greg Kroah-Hartman wrote: > > > On Tue, Dec 01, 2015 at 02:54:20PM -0800, Sinclair Yeh wrote: > > > > Hi, > > > > > > >

Re: [PATCH] usb: host: pci_quirks: fix memory leak, by adding iounmap

2015-12-02 Thread Saurabh Sengar
Hi Greg, I am little unclear. Now, shall I resend my patch on top of usb.git tree or linux.git tree. Regards, Saurabh On 2 December 2015 at 21:15, Greg KH wrote: > On Wed, Dec 02, 2015 at 09:08:06AM +0530, Saurabh Sengar wrote: >> On 2 December 2015 at 04:05, Greg KH wrote: >> > On Fri, Nov 06

[PATCH] regulator: core: Fix nested locking of supplies

2015-12-02 Thread Thierry Reding
From: Thierry Reding Commit fa731ac7ea04 ("regulator: core: avoid unused variable warning") introduced a subtle change in how supplies are locked. Where previously code was always locking the regulator of the current iteration, the new implementation only locks the regulator if it has a supply. F

Re: [PATCH 0/5] ARM: orion5x/dove/mv78xx0 multiplatform

2015-12-02 Thread Arnd Bergmann
On Wednesday 02 December 2015 12:33:10 Russell King - ARM Linux wrote: > On Mon, Nov 30, 2015 at 02:37:31PM +0100, Gregory CLEMENT wrote: > > Hi Arnd, > > > > On mer., nov. 25 2015, Arnd Bergmann wrote: > > > > > I've posted these before and now gotten around to a rebase and > > > want to incl

[PATCH 1/3] mm/slab: use list_first_entry_or_null()

2015-12-02 Thread Geliang Tang
Simplify the code with list_first_entry_or_null(). Signed-off-by: Geliang Tang --- mm/slab.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/mm/slab.c b/mm/slab.c index 4765c97..6bb0466 100644 --- a/mm/slab.c +++ b/mm/slab.c @@ -2791,18 +2791,18 @@

[PATCH 04/19] selinux: Add support for unprivileged mounts from user namespaces

2015-12-02 Thread Seth Forshee
Security labels from unprivileged mounts in user namespaces must be ignored. Force superblocks from user namespaces whose labeling behavior is to use xattrs to use mountpoint labeling instead. For the mountpoint label, default to converting the current task context into a form suitable for file obj

[PATCH 01/19] block_dev: Support checking inode permissions in lookup_bdev()

2015-12-02 Thread Seth Forshee
When looking up a block device by path no permission check is done to verify that the user has access to the block device inode at the specified path. In some cases it may be necessary to check permissions towards the inode, such as allowing unprivileged users to mount block devices in user namespa

[PATCH 07/19] fs: Check for invalid i_uid in may_follow_link()

2015-12-02 Thread Seth Forshee
Filesystem uids which don't map into a user namespace may result in inode->i_uid being INVALID_UID. A symlink and its parent could have different owners in the filesystem can both get mapped to INVALID_UID, which may result in following a symlink when this would not have otherwise been permitted wh

Re: [PATCH] spi/bcm63xx: fix build warning on printk format specifier

2015-12-02 Thread kbuild test robot
Hi Colin, [auto build test WARNING on v4.4-rc3] [cannot apply to spi/for-next next-20151127] url: https://github.com/0day-ci/linux/commits/Colin-King/spi-bcm63xx-fix-build-warning-on-printk-format-specifier/20151202-223613 config: i386-randconfig-h0-12022318 (attached as .config) reproduce

Re: [PATCH] perf hists browser: Fix segfault if use symbol filter in cmdline

2015-12-02 Thread Namhyung Kim
Hi, On Wed, Dec 02, 2015 at 11:28:52AM +, Wang Nan wrote: > If feed perf a symbol filter in cmdline and the result is empty, > pressing 'Enter' in the hist browser causes crash: > > # ./perf report perf.data <-- Common mistake for beginners > > Then press 'Enter': > > perf: Segmentation

[PATCH 3/3] mm/slab: use list_{empty_careful,last_entry} in drain_freelist

2015-12-02 Thread Geliang Tang
To simplify the code, use list_empty_careful instead of list_empty. To make the intention clearer, use list_last_entry instead of list_entry. Signed-off-by: Geliang Tang --- mm/slab.c | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/mm/slab.c b/mm/slab.c index 5d

[PATCH 02/19] block_dev: Check permissions towards block device inode when mounting

2015-12-02 Thread Seth Forshee
Unprivileged users should not be able to mount block devices when they lack sufficient privileges towards the block device inode. Update blkdev_get_by_path() to validate that the user has the required access to the inode at the specified path. The check will be skipped for CAP_SYS_ADMIN, so privile

[PATCH 03/19] fs: Treat foreign mounts as nosuid

2015-12-02 Thread Seth Forshee
From: Andy Lutomirski If a process gets access to a mount from a different user namespace, that process should not be able to take advantage of setuid files or selinux entrypoints from that filesystem. Prevent this by treating mounts from other mount namespaces and those not owned by current_use

[PATCH 06/19] Smack: Handle labels consistently in untrusted mounts

2015-12-02 Thread Seth Forshee
The SMACK64, SMACK64EXEC, and SMACK64MMAP labels are all handled differently in untrusted mounts. This is confusing and potentically problematic. Change this to handle them all the same way that SMACK64 is currently handled; that is, read the label from disk and check it at use time. For SMACK64 an

[PATCH 2/3] mm/slab: use list_for_each_entry in cache_flusharray

2015-12-02 Thread Geliang Tang
Simplify the code with list_for_each_entry(). Signed-off-by: Geliang Tang --- mm/slab.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/mm/slab.c b/mm/slab.c index 6bb0466..5d5aa3b 100644 --- a/mm/slab.c +++ b/mm/slab.c @@ -3338,17 +3338,12 @@ free_done: #if STATS

[PATCH 13/19] fs: Allow superblock owner to access do_remount_sb()

2015-12-02 Thread Seth Forshee
Superblock level remounts are currently restricted to global CAP_SYS_ADMIN, as is the path for changing the root mount to read only on umount. Loosen both of these permission checks to also allow CAP_SYS_ADMIN in any namespace which is privileged towards the userns which originally mounted the file

[PATCH 10/19] fs: Update posix_acl support to handle user namespace mounts

2015-12-02 Thread Seth Forshee
ids in on-disk ACLs should be converted to s_user_ns instead of init_user_ns as is done now. This introduces the possibility for id mappings to fail, and when this happens syscalls will return EOVERFLOW. Signed-off-by: Seth Forshee --- fs/posix_acl.c | 67 +++

[PATCH 08/19] cred: Reject inodes with invalid ids in set_create_file_as()

2015-12-02 Thread Seth Forshee
Using INVALID_[UG]ID for the LSM file creation context doesn't make sense, so return an error if the inode passed to set_create_file_as() has an invalid id. Signed-off-by: Seth Forshee --- kernel/cred.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/cred.c b/kernel/cred.c index 711

[PATCH 11/19] fs: Ensure the mounter of a filesystem is privileged towards its inodes

2015-12-02 Thread Seth Forshee
The mounter of a filesystem should be privileged towards the inodes of that filesystem. Extend the checks in inode_owner_or_capable() and capable_wrt_inode_uidgid() to permit access by users priviliged in the user namespace of the inode's superblock. Signed-off-by: Seth Forshee --- fs/inode.c

Re: [PATCH] usb: host: pci_quirks: fix memory leak, by adding iounmap

2015-12-02 Thread Greg KH
On Wed, Dec 02, 2015 at 09:08:06AM +0530, Saurabh Sengar wrote: > On 2 December 2015 at 04:05, Greg KH wrote: > > On Fri, Nov 06, 2015 at 05:46:30PM +0530, Saurabh Sengar wrote: > >> added iounmap inorder to free memory mapped to base before returning > >> > >> Signed-off-by: Saurabh Sengar > >>

[PATCH 14/19] fs: Permit FIBMAP for users with CAP_SYS_RAWIO in s_user_ns

2015-12-02 Thread Seth Forshee
Signed-off-by: Seth Forshee --- fs/ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ioctl.c b/fs/ioctl.c index 5d01d2638ca5..45c371bed7ee 100644 --- a/fs/ioctl.c +++ b/fs/ioctl.c @@ -55,7 +55,7 @@ static int ioctl_fibmap(struct file *filp, int __user *p) /* d

Re: [PATCH] oom kill init lead panic

2015-12-02 Thread Greg KH
On Wed, Dec 02, 2015 at 02:30:56PM +0800, chenj...@huawei.com wrote: > From: chenjie This name should match... > Signed-off-by: Chen Jie this name please. thanks, greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.ke

[PATCH 12/19] fs: Don't remove suid for CAP_FSETID in s_user_ns

2015-12-02 Thread Seth Forshee
Expand the check in should_remove_suid() to keep privileges for CAP_FSETID in s_user_ns rather than init_user_ns. Signed-off-by: Seth Forshee --- fs/inode.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/inode.c b/fs/inode.c index 01c036fe1950..3e7c74da9304 100644 --- a

[PATCH 17/19] fuse: Support fuse filesystems outside of init_user_ns

2015-12-02 Thread Seth Forshee
Update fuse to translate uids and gids to/from the user namspace of the process servicing requests on /dev/fuse. Any ids which do not map into the namespace will result in errors. inodes will also be marked bad when unmappable ids are received from the userspace fuse process. Currently no use case

[PATCH 19/19] fuse: Allow user namespace mounts

2015-12-02 Thread Seth Forshee
Signed-off-by: Seth Forshee --- fs/fuse/inode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c index ea61a7639a8e..ffce4354563e 100644 --- a/fs/fuse/inode.c +++ b/fs/fuse/inode.c @@ -1233,7 +1233,7 @@ static void fuse_kill_sb_anon(struct

[PATCH 18/19] fuse: Restrict allow_other to the superblock's namespace or a descendant

2015-12-02 Thread Seth Forshee
Unprivileged users are normally restricted from mounting with the allow_other option by system policy, but this could be bypassed for a mount done with user namespace root permissions. In such cases allow_other should not allow users outside the userns to access the mount as doing so would give the

[PATCH 16/19] fuse: Add support for pid namespaces

2015-12-02 Thread Seth Forshee
If the userspace process servicing fuse requests is running in a pid namespace then pids passed via the fuse fd need to be translated relative to that namespace. Capture the pid namespace in use when the filesystem is mounted and use this for pid translation. Since no use case currently exists for

[PATCH 05/19] userns: Replace in_userns with current_in_userns

2015-12-02 Thread Seth Forshee
All current callers of in_userns pass current_user_ns as the first argument. Simplify by replacing in_userns with current_in_userns which checks whether current_user_ns is in the namespace supplied as an argument. Signed-off-by: Seth Forshee Acked-by: James Morris --- fs/namespace.c

[PATCH 15/19] capabilities: Allow privileged user in s_user_ns to set file caps

2015-12-02 Thread Seth Forshee
A privileged user in a super block's s_user_ns is privileged towards that file system and thus should be allowed to set file capabilities. The file capabilities will not be trusted outside of s_user_ns, so an unprivileged user cannot use this to gain privileges in a user namespace where they are no

[PATCH 09/19] fs: Refuse uid/gid changes which don't map into s_user_ns

2015-12-02 Thread Seth Forshee
Add checks to inode_change_ok to verify that uid and gid changes will map into the superblock's user namespace. If they do not fail with -EOVERFLOW. This cannot be overriden with ATTR_FORCE. Signed-off-by: Seth Forshee --- fs/attr.c | 11 +++ 1 file changed, 11 insertions(+) diff --git

[PATCH 00/19] Support fuse mounts in user namespaces

2015-12-02 Thread Seth Forshee
These patches implement support for mounting filesystems in user namespaces using fuse. I've sent the full set of patches this time because I feel that previous discussions could have benefited from more context. I've also dropped any patches from my previous postings not specifically required for

[PATCH 3/4] sb_edac: support for duplicate device IDs

2015-12-02 Thread Hubert Chrzaniuk
From: Jim Snow Add options to sbridge_get_all_devices to allow for duplicate device IDs and devices that are scattered across mulitple PCI buses. Signed-off-by: Jim Snow Signed-off-by: Lukasz Anaczkowski Signed-off-by: Hubert Chrzaniuk --- drivers/edac/sb_edac.c | 40 +++

[PATCH 2/4] sb_edac: virtualize several hard-coded functions

2015-12-02 Thread Hubert Chrzaniuk
From: Jim Snow SAD limit, interleave mode and DRAM related functionalities are now virtualized, so that overriding them is easier. Signed-off-by: Jim Snow Signed-off-by: Lukasz Anaczkowski Signed-off-by: Hubert Chrzaniuk --- drivers/edac/sb_edac.c | 59 ++

Re: [V5 PATCH 3/4] kexec: Fix race between panic() and crash_kexec() called directly

2015-12-02 Thread Borislav Petkov
On Wed, Dec 02, 2015 at 11:57:38AM +, 河合英宏 / KAWAI,HIDEHIRO wrote: > We can do so, but I think resetting panic_cpu always would be > simpler and safer. Well, I think executing code needlessly *especially* at panic time is not all that rosy either. Besides something like this: static

[PATCH 4/4] sb_edac: add Knights Landing (Xeon Phi gen 2) support

2015-12-02 Thread Hubert Chrzaniuk
From: Jim Snow Knights Landing is gen next architecture for HPC market. KNL introduces concept of a tile and CHA - Cache/Home Agent for memory accesses. Some things are fixed in KNL: () There's single DIMM slot per channel () There's 2 memory controllers with 3 channels each, however, from E

[PATCH 1/4] EDAC: add DDR4 flag

2015-12-02 Thread Hubert Chrzaniuk
From: Jim Snow Make EDAC aware of DDR4/RDDR4 mem types. Signed-off-by: Jim Snow Signed-off-by: Lukasz Anaczkowski Signed-off-by: Hubert Chrzaniuk --- include/linux/edac.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/linux/edac.h b/include/linux/edac.h in

[PATCH 0/4] Xeon PHI Knights Landing support for EDAC module

2015-12-02 Thread Hubert Chrzaniuk
Series of patches that enable support for Knights Landing processor which is based on Silvermont microarchitecture. First 3 patches are pretty much straightforward and self-explantory. Last one is the biggest, however, is logically consistent and breaking into many smaller patches does not make m

[PATCH v3] perf tools: Introduce perf_thread for backtrace

2015-12-02 Thread Namhyung Kim
Backtrace is a crucial info for debugging. And upcoming refcnt tracking facility also wants to use it. So instead of relying on glibc's backtrace_symbols[_fd] which misses some (static) functions , use our own symbol searching mechanism. To do that, add perf_thread global variable to keep its ma

Re: [PATCH v3 2/4] drm: Add support for ARM's HDLCD controller.

2015-12-02 Thread Daniel Vetter
On Wed, Dec 02, 2015 at 04:24:19PM +0100, Daniel Vetter wrote: > On Wed, Dec 02, 2015 at 12:23:00PM +, Liviu Dudau wrote: > > The HDLCD controller is a display controller that supports resolutions > > up to 4096x4096 pixels. It is present on various development boards > > produced by ARM Ltd an

Re: [PATCH v3 0/8] phy: rockchip-usb: correct pll handling and usb-uart

2015-12-02 Thread Heiko Stübner
Hi Kishon, Am Donnerstag, 19. November 2015, 22:22:21 schrieb Heiko Stuebner: > changes in v3: > - rebase on top of Julias of_node_put fix > - address comments from Kishon Vijay Abraham > - position of the devm_action in the first patch > - separate compatible-addition into separate patch >

Re: [PATCH] mm/hugetlb resv map memory leak for placeholder entries

2015-12-02 Thread Mike Kravetz
On 12/02/2015 01:26 AM, Dmitry Vyukov wrote: > FWIW, I see this leak also with mlock, mmap, get_mempolicy and page > faults. So it is not specific only to the new fancy mlock2. I assume/hope the patch addresses leaks with those other calls as well? -- Mike Kravetz > > > > > On Wed, Dec 2, 2

Re: [PATCH 3/6] Input: Update vmmouse.c to use the common VMW_PORT macros

2015-12-02 Thread Greg Kroah-Hartman
On Tue, Dec 01, 2015 at 06:21:06PM -0800, Sinclair Yeh wrote: > On Tue, Dec 01, 2015 at 04:04:08PM -0800, Greg Kroah-Hartman wrote: > > On Tue, Dec 01, 2015 at 02:54:20PM -0800, Sinclair Yeh wrote: > > > Hi, > > > > > > On Tue, Dec 01, 2015 at 02:45:27PM -0800, Dmitry Torokhov wrote: > > > > On Tu

Re: [PATCH] xprtrdma: add missing curly braces, set rc to zero on non-zero

2015-12-02 Thread Anna Schumaker
On 11/24/2015 06:11 PM, Colin King wrote: > From: Colin Ian King > > Add the missing curly braces so that rc is only set to zero when > it is non-zero. Without this minor fix, rc is set to zero even > when it is zero, which is slightly redundant. > > Detected with smatch static analysis. Thank

Re: [PATCH] vfio: Include No-IOMMU mode

2015-12-02 Thread Alex Williamson
On Mon, 2015-11-16 at 19:12 +0200, Avi Kivity wrote: > On 11/16/2015 07:06 PM, Alex Williamson wrote: > > On Wed, 2015-10-28 at 15:21 -0600, Alex Williamson wrote: > >> There is really no way to safely give a user full access to a DMA > >> capable device without an IOMMU to protect the host system.

Re: [PATCH 0/3 v9] livepatch: disambiguate symbols with the same name

2015-12-02 Thread Petr Mladek
On Tue 2015-12-01 20:40:53, Chris J Arges wrote: > v9: > - use mod->name instead of mod->obj->name for klp_find_object_symbol in >klp_write_object_relocations > - rebase on current master > - tested with kpatch The last version looks fine to me. Feel free to add the following into all three

Re: [PATCH v4 1/5] dt-bindings: add SMP enable-method for Broadcom NSP

2015-12-02 Thread Rob Herring
On Tue, Dec 01, 2015 at 11:24:05AM -0500, Kapil Hali wrote: > Add a compatible string "brcm,bcm-nsp-smp" for Broadcom's > Northstar Plus CPU to the 32-bit ARM CPU device tree binding > documentation file and create a new binding documentation for > Northstar Plus CPU. > > Signed-off-by: Kapil Hali

Re: [PATCH v3 2/4] drm: Add support for ARM's HDLCD controller.

2015-12-02 Thread Daniel Vetter
On Wed, Dec 02, 2015 at 12:23:00PM +, Liviu Dudau wrote: > The HDLCD controller is a display controller that supports resolutions > up to 4096x4096 pixels. It is present on various development boards > produced by ARM Ltd and emulated by the latest Fast Models from the > company. > > Cc: David

Re: block/scsi: WARNING: at block/blk-merge.c:435 immediately followed by BUG at drivers/scsi/scsi_lib.c:1096

2015-12-02 Thread Jens Axboe
On 12/02/2015 12:29 AM, Mike Galbraith wrote: Greetings, Yesterday morning and this morning, 4.4-master has exploded as below. (have crash dumps, but returning from vacation, also have backlog) [ 1576.519298] [ cut here ] [ 1576.519306] WARNING: CPU: 6 PID: 287 at block

Re: [PATCH] ftrace: Remove use of control list and ops

2015-12-02 Thread Jiri Olsa
On Wed, Dec 02, 2015 at 10:03:46AM -0500, Steven Rostedt wrote: > On Wed, 2 Dec 2015 15:50:32 +0100 > Jiri Olsa wrote: > > > On Wed, Dec 02, 2015 at 09:27:00AM -0500, Steven Rostedt wrote: > > > On Wed, 2 Dec 2015 09:58:26 +0100 > > > Jiri Olsa wrote: > > > > > > > On Tue, Dec 01, 2015 at 11:

Re: [PATCH 6/6] Input: psmouse - limit protocols that we try on passthrough ports

2015-12-02 Thread Hans de Goede
Hi, On 29-11-15 06:13, Dmitry Torokhov wrote: PS/2 protocol is slow, and using it with pass-through port (where we encapsulate PS/2 into PS/2) is slower yet so it takes quite a bit of time to do full protocol discovery for device attached to a pass-through port. However, so far we have not see a

Re: [PATCH 5/6] Input: psmouse - factor out common protocol probing code

2015-12-02 Thread Hans de Goede
Hi, Thanks for splitting out the series, patches 1 - 4 look good to me and are: Reviewed-by: Hans de Goede I've some comments inline for this one. On 29-11-15 06:13, Dmitry Torokhov wrote: In preparation of limiting protocols that we try on pass-through ports, let's rework initialization co

Re: [PATCH 1/3] Device tree binding documentation for chromeos-firmware

2015-12-02 Thread Rob Herring
On Tue, Dec 01, 2015 at 07:12:49PM +, Martyn Welch wrote: > This patch adds documentation for the chromeos-firmware binding. > > Cc: Rob Herring > Cc: Pawel Moll > Cc: Mark Rutland > Cc: Ian Campbell > Cc: Kumar Gala > Cc: devicet...@vger.kernel.org > Signed-off-by: Martyn Welch > --- >

[PATCH 1/2] mm/page_alloc.c: use list_{first,last}_entry instead of list_entry

2015-12-02 Thread Geliang Tang
To make the intention clearer, use list_{first,last}_entry instead of list_entry. Signed-off-by: Geliang Tang --- mm/page_alloc.c | 23 +++ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index d6d7c97..0d38185 100644 --- a/mm

[PATCH 2/2] mm/page_alloc.c: use list_for_each_entry in mark_free_pages()

2015-12-02 Thread Geliang Tang
Use list_for_each_entry instead of list_for_each + list_entry to simplify the code. Signed-off-by: Geliang Tang --- mm/page_alloc.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 0d38185..1c1ad58 100644 --- a/mm/page_alloc.c

[PATCH v2] mm, oom: Give __GFP_NOFAIL allocations access to memory reserves

2015-12-02 Thread Michal Hocko
From: Michal Hocko __GFP_NOFAIL is a big hammer used to ensure that the allocation request can never fail. This is a strong requirement and as such it also deserves a special treatment when the system is OOM. The primary problem here is that the allocation request might have come with some locks

Re: 4.4rc3 nfsd/btrfs kasan warning.

2015-12-02 Thread Josef Bacik
On 12/02/2015 09:59 AM, Dave Jones wrote: Got a few of these in the logs this morning after an overnight rsync over nfs to an exported btrfs volume. That's probably us and not NFS, what line is that in setup_cluster_bitmap? Thanks, Josef -- To unsubscribe from this list: send the line "uns

Re: xfstest failure with xfs, dax and v4.4-rc3

2015-12-02 Thread Jeff Moyer
Dave Chinner writes: > On Tue, Dec 01, 2015 at 03:43:46PM -0700, Ross Zwisler wrote: >> I'm seeing a new intermittent xfstests failure with v4.4-rc3 using XFS and >> DAX. The test that is failing is generic/083, and it fails about 50% of the >> time in my setup. Here's the output: >> >> FSTYP

Re: [PATCH 2/7] nohz: New tick dependency mask

2015-12-02 Thread Peter Zijlstra
On Wed, Dec 02, 2015 at 03:08:16PM +0100, Frederic Weisbecker wrote: > On Wed, Dec 02, 2015 at 11:56:33AM +0100, Peter Zijlstra wrote: > > On Tue, Dec 01, 2015 at 11:20:28PM +0100, Frederic Weisbecker wrote: > > > > > + prev = fetch_or(dep, BIT_MASK(bit)); > > > > > + if (!prev) { > > > > >

Re: linux-next: manual merge of the mvebu tree with the arm-soc tree

2015-12-02 Thread Arnd Bergmann
On Wednesday 02 December 2015 14:49:52 Gregory CLEMENT wrote: > > > least initially. The conflict will go away once it's tested sufficiently and > > I'm pulling it back. > > By the way, when you will pull our tree, we will still have it our own > mvebu/for-next branch. Will git managed to automag

Re: [PATCH 1/3] pinctrl: Broadcom NSP GPIO-a device tree bindings

2015-12-02 Thread Rob Herring
On Tue, Dec 01, 2015 at 11:46:38PM -0500, Yendapally Reddy Dhananjaya Reddy wrote: > Device tree binding documentation for Broadcom NSP GPIO-a driver Bindings are for h/w, not drivers... > > Signed-off-by: Yendapally Reddy Dhananjaya Reddy > --- > .../devicetree/bindings/pinctrl/brcm,nsp-gpio

[PATCH] mm: page_alloc: Remove unnecessary parameter from __rmqueue

2015-12-02 Thread Mel Gorman
Commit 0aaa29a56e4f ("mm, page_alloc: reserve pageblocks for high-order atomic allocations on demand") added an unnecessary and unused parameter to __rmqueue. It was a parameter that was used in an earlier version of the patch and then left behind. This patch cleans it up. Signed-off-by: Mel Gorma

RE: [PATCH v3 04/18] irqchip: add nps Internal and external irqchips

2015-12-02 Thread Noam Camus
>From: Marc Zyngier [mailto:marc.zyng...@arm.com] >Sent: Tuesday, December 01, 2015 3:29 PM > + interrupt source. The value shall be 1. >So you never have to encode the interrupt trigger type? Do you only support >edge or level? I Always use level sensitive. > + > +#define NPS_GIM_P_EN 0x100

[PATCH 2/3] drivers: memory: rename remove_memory_block() to remove_memory_section()

2015-12-02 Thread Seth Jennings
The function removes a section, not a block. Rename to reflect actual functionality. Signed-off-by: Seth Jennings --- drivers/base/memory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/base/memory.c b/drivers/base/memory.c index ca2ce02..dd30744 100644 --- a/d

Re: [PATCH 1/2] mm, oom: Give __GFP_NOFAIL allocations access to memory reserves

2015-12-02 Thread Michal Hocko
On Mon 30-11-15 14:17:03, David Rientjes wrote: > On Thu, 26 Nov 2015, Michal Hocko wrote: > > > > > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > > > > index 8034909faad2..94b04c1e894a 100644 > > > > --- a/mm/page_alloc.c > > > > +++ b/mm/page_alloc.c > > > > @@ -2766,8 +2766,13 @@ __alloc_pag

[PATCH 1/3] drivers: memory: clean up section counting

2015-12-02 Thread Seth Jennings
Right now, section_count is calculated in add_memory_block(). However, init_memory_block() increments section_count as well, which, at first, seems like it would lead to an off-by-one error. There is no harm done because add_memory_block() immediately overwrites the mem->section_count, but it is me

[PATCH 3/3] drivers: memory: prohibit offlining of memory blocks with missing sections

2015-12-02 Thread Seth Jennings
bdee237c and 982792c7 introduced large block sizes for x86. This made it possible to have multiple sections per memory block where previously, there was a only every one section per block. Since blocks consist of contiguous ranges of section, there can be holes in the blocks where sections are not

[GIT PULL] HID fixes for 4.4

2015-12-02 Thread Jiri Kosina
Linus, please pull from git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid.git for-linus to receive - regression fix for hid-lg driver from Benjamin Tissoires - quirk for Logitech G710+ from Jimmy Berry Thanks. Benjami

Re: [PATCH] ftrace: Remove use of control list and ops

2015-12-02 Thread Steven Rostedt
On Wed, 2 Dec 2015 15:50:32 +0100 Jiri Olsa wrote: > On Wed, Dec 02, 2015 at 09:27:00AM -0500, Steven Rostedt wrote: > > On Wed, 2 Dec 2015 09:58:26 +0100 > > Jiri Olsa wrote: > > > > > On Tue, Dec 01, 2015 at 11:56:55AM -0500, Steven Rostedt wrote: > > > > > > SNIP > > > > > > > -static

Re: [PATCH v3 00/27] memory: omap-gpmc: mtd: nand: Support GPMC NAND on non-OMAP platforms

2015-12-02 Thread Tony Lindgren
* Roger Quadros [151201 21:13]: > On 02/12/15 08:56, Brian Norris wrote: > > > > I'll take another pass over your patch set, but if things are looking > > better, how do you expect to merge this? There are significant portions > > that touch at least 2 or 3 different subsystem trees, AFAICT. > >

Re: [PATCH v4 5/5] ARM: BCM: Add SMP support for Broadcom 4708

2015-12-02 Thread Hauke Mehrtens
On 12/01/2015 05:24 PM, Kapil Hali wrote: > From: Jon Mason > > Add SMP support for Broadcom's 4708 SoCs. > > Signed-off-by: Jon Mason > Acked-by: Hauke Mehrtens > Tested-by: Hauke Mehrtens > Signed-off-by: Kapil Hali > --- > arch/arm/boot/dts/bcm4708.dtsi | 2 ++ > arch/arm/mach-bcm/Kconfi

Re: [RFC v02 03/15] dmaengine: core: Introduce new, universal API to request a channel

2015-12-02 Thread Tony Lindgren
* Peter Ujfalusi [151202 02:01]: > On 12/01/2015 07:00 PM, Tony Lindgren wrote: > >> I see. The dm81xx basically am33xx/am43xx? > > > > Yeah similar to am33xx with different clocks and with a bunch of > > accelerators. > > > >> Actually I would prefer to use the dmaengine's event router framewo

[PATCH v2] acpi, apei, arm64: APEI initial support for aarch64.

2015-12-02 Thread fu . wei
From: Tomasz Nowicki This commit provides APEI arch-specific bits for aarch64 Changelog: v2: Rebase to latest kernel version(4.4-rc3). Move arch_apei_flush_tlb_one() to arch/arm64/kernel/acpi.c v1: https://lkml.org/lkml/2015/8/14/199 Move arch_apei_flush_tlb_one() to arch/arm64/include/

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