[PATCH v3] clkdev: Detect errors in clk_hw_register_clkdev() for mass registration

2016-10-21 Thread Geert Uytterhoeven
Unlike clk_register_clkdev(), clk_hw_register_clkdev() doesn't check for passed error objects from a previous registration call. Hence the caller of clk_hw_register_*() has to check for errors before calling clk_hw_register_clkdev*(). Make clk_hw_register_clkdev() more similar to

Re: [PATCH] pwm: meson: Remove unneeded platform MODULE_ALIAS

2016-10-21 Thread Thierry Reding
On Wed, Oct 19, 2016 at 04:49:59PM -0300, Javier Martinez Canillas wrote: > The Amlogic Meson is a DT-only platform, which means the devices are > registered via OF and not using the legacy platform devices support. > > So there's no need to have a MODULE_ALIAS("platform:meson-pwm") since > the

[PATCH v2 1/1] ahci: imx: Add imx53 SATA temperature sensor support

2016-10-21 Thread Fabien Lahoudere
From: Csaba Kertesz Add a hwmon entry to get the temperature from the die of imx53 SATA. The original patch was made by Richard Zhu for kernel 2.6.x: ENGR00134041-MX53-Add-the-SATA-AHCI-temperature-monitor.patch Signed-off-by: Fabien Lahoudere

Re: [PATCH 2/2] mmc: sdhci-of-at91: Fix module autoload

2016-10-21 Thread Adrian Hunter
On 21/10/16 09:48, Ludovic Desroches wrote: > On Mon, Oct 17, 2016 at 01:13:45PM -0300, Javier Martinez Canillas wrote: >> If the driver is built as a module, autoload won't work because the module >> alias information is not filled. So user-space can't match the registered >> device with the

Re: [PATCH V3 2/2] PCI/ACPI: hisi: Add ACPI support for HiSilicon SoCs Host Controllers

2016-10-21 Thread Dongdong Liu
Hi Rafael Thanks for your review. 在 2016/10/20 20:27, Rafael J. Wysocki 写道: On Thu, Oct 20, 2016 at 5:10 AM, Dongdong Liu wrote: PCIe controller in Hip05/HIP06/HIP07 SoCs is not ECAM compliant. It is non ECAM only for the RC bus config space;for any other bus

Re: [PATCH v3] [media] vb2: Add support for capture_dma_bidirectional queue flag

2016-10-21 Thread Sakari Ailus
Hi Thierry, On Thu, Oct 20, 2016 at 10:56:04AM +0200, Thierry Escande wrote: > From: Pawel Osciak > > When this flag is set for CAPTURE queues by the driver on calling > vb2_queue_init(), it forces the buffers on the queue to be > allocated/mapped with DMA_BIDIRECTIONAL

[PATCH] Hexagon-setup: Combine four seq_printf() calls into one call in show_cpuinfo()

2016-10-21 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 21 Oct 2016 08:18:38 +0200 Some data were printed into a sequence by four separate function calls. Print the same data by a single function call instead. This issue was detected by using the Coccinelle software. Signed-off-by:

Re: [PATCH 1/2] mm: memcontrol: use special workqueue for creating per-memcg caches

2016-10-21 Thread Michal Hocko
On Thu 20-10-16 20:44:35, Andrew Morton wrote: > On Tue, 4 Oct 2016 16:14:17 +0300 Vladimir Davydov > wrote: > > > Creating a lot of cgroups at the same time might stall all worker > > threads with kmem cache creation works, because kmem cache creation is > > done with

[3.8 Regression] backporting "[PATCH stable pre 3.9] mm, gup: close FOLL MAP_PRIVATE race"

2016-10-21 Thread Brian Norris
(Preface: this wasn't a clean backport, I'm a bit under the weather, and it's getting late here. So forgive me if my head's not on straight.) Hi, I'm not sure the best way to report this, but the Chrome OS test infrastructure noticed some problems when testing the following patch backported to

Re: [PATCH] net: cpsw: fix obtaining mac address for am3517

2016-10-21 Thread Tony Lindgren
* Jeroen Hofstee [161020 12:57]: > Commit b6745f6e4e63 ("drivers: net: cpsw: davinci_emac: move reading mac > id to common file") did not only move the code for an am3517, it also > added the slave parameter, resulting in a invalid (all zero) mac address > being

Re: [PATCH v4 1/2] timers: Fix usleep_range() in the context of wake_up_process()

2016-10-21 Thread Thomas Gleixner
On Thu, 20 Oct 2016, Doug Anderson wrote: > On Thu, Oct 20, 2016 at 2:27 PM, Thomas Gleixner wrote: > > On Thu, 20 Oct 2016, Douglas Anderson wrote: > > > > Please wait for a full review and do not send out patches 5 seconds after > > the first mail hits your inbox. > > Since

Re: 4.9-rc1 boot regression, ambiguous bisect result

2016-10-21 Thread Ingo Molnar
* Dan Williams wrote: > On Thu, Oct 20, 2016 at 8:22 AM, Dan Williams > wrote: > > On Thu, Oct 20, 2016 at 5:29 AM, Matt Fleming > > wrote: > >> On Wed, 19 Oct, at 09:04:29PM, Dan Williams wrote: > >>> Hi, > >>> >

Re: [RFC] scripts: Include postprocessing script for memory allocation tracing

2016-10-21 Thread Michal Hocko
On Thu 20-10-16 18:10:37, Janani Ravichandran wrote: > Michal, > > > On Oct 18, 2016, at 8:13 AM, Michal Hocko wrote: > > > >> > > > > yes, function_graph tracer will give you _some_ information but it will > > not have the context you are looking for, right? See the

Re: [PATCH] Hexagon-setup: Combine four seq_printf() calls into one call in show_cpuinfo()

2016-10-21 Thread Julia Lawall
On Fri, 21 Oct 2016, SF Markus Elfring wrote: > From: Markus Elfring > Date: Fri, 21 Oct 2016 08:18:38 +0200 > > Some data were printed into a sequence by four separate function calls. > Print the same data by a single function call instead. > > This issue was

Re: [PATCH] Staging: lustre: lov: check return value of lov_sub_get()

2016-10-21 Thread Greg Kroah-Hartman
On Fri, Oct 21, 2016 at 07:33:52AM +0800, Jinshan Xiong wrote: > Check return value of lov_sub_get() in lov_io_read_ahead(). > > Signed-off-by: Jinshan Xiong No reported-by: tag?

Re: [PATCH 2/3] zram: support page-based parallel write

2016-10-21 Thread Sergey Senozhatsky
Hello Minchan, On (10/17/16 14:04), Minchan Kim wrote: > Hi Sergey, > > On Fri, Oct 07, 2016 at 03:33:22PM +0900, Minchan Kim wrote: > > < snip > > > > > so the question is -- can we move this parallelization out of zram > > > and instead flush bdi in more than one kthread? how bad that would

Re: [PATCH 3.12 0/5] 3.12.66-stable review

2016-10-21 Thread Jiri Slaby
On 10/20/2016, 01:34 PM, Guenter Roeck wrote: > On 10/20/2016 01:44 AM, Jiri Slaby wrote: >> This is the start of the stable review cycle for the 3.12.66 release. >> There are 5 patches in this series, all will be posted as a response >> to this one. If anyone has any issues with these being

Re: [PATCH] mm, compaction: fix NR_ISOLATED_* stats for pfn based migration

2016-10-21 Thread Michal Hocko
On Thu 20-10-16 20:16:06, Andrew Morton wrote: > On Wed, 19 Oct 2016 10:02:40 +0200 Michal Hocko wrote: > > > Since bda807d44454 ("mm: migrate: support non-lru movable page > > migration") isolate_migratepages_block) can isolate !PageLRU pages which > > would acct_isolated

[RESEND PATCH v3 kernel 6/7] virtio-balloon: define feature bit and head for misc virt queue

2016-10-21 Thread Liang Li
Define a new feature bit which supports a new virtual queue. This new virtual qeuque is for information exchange between hypervisor and guest. The VMM hypervisor can make use of this virtual queue to request the guest do some operations, e.g. drop page cache, synchronize file system, etc. And the

[RESEND PATCH v3 kernel 4/7] virtio-balloon: speed up inflate/deflate process

2016-10-21 Thread Liang Li
The implementation of the current virtio-balloon is not very efficient, the time spends on different stages of inflating the balloon to 7GB of a 8GB idle guest: a. allocating pages (6.5%) b. sending PFNs to host (68.3%) c. address translation (6.1%) d. madvise (19%) It takes about 4126ms for the

[RESEND PATCH v3 kernel 3/7] mm: add a function to get the max pfn

2016-10-21 Thread Liang Li
Expose the function to get the max pfn, so it can be used in the virtio-balloon device driver. Simply include the 'linux/bootmem.h' is not enough, if the device driver is built to a module, directly refer the max_pfn lead to build failed. Signed-off-by: Liang Li Cc: Andrew

[RESEND PATCH v3 kernel 7/7] virtio-balloon: tell host vm's unused page info

2016-10-21 Thread Liang Li
Support the request for vm's unused page information, response with a page bitmap. QEMU can make use of this bitmap and the dirty page logging mechanism to skip the transportation of these unused pages, this is very helpful to speed up the live migration process. Signed-off-by: Liang Li

Re: [patch] perf_event_open.2: update time_shift sample code

2016-10-21 Thread Michael Kerrisk (man-pages)
On 10/21/2016 06:38 AM, Vince Weaver wrote: > > Linux 4.3 (b20112edeadf0b8a1416de061caa4beb11539902) improved > the accuracy of the clock/ns conversion routines. As a result > the shift factor can now be 32. This value is directly > exported in the perf_event_open() mmap page, and this >

Re: [PATCH V3 0/3] Add support for session ID user filtering

2016-10-21 Thread Richard Guy Briggs
On 2016-10-20 15:27, Paul Moore wrote: > On Thursday, August 18, 2016 01:43:12 PM Richard Guy Briggs wrote: > > https://github.com/linux-audit/audit-kernel/wiki/RFE-Session-ID-User-Filter > > RFE Session ID User Filter > > > > https://github.com/linux-audit/audit-kernel/issues/4 > > RFE: add a

Re: [PATCH 1/5] perf core: Introduce new ioctl options to pause and resume ring buffer

2016-10-21 Thread Michael Kerrisk (man-pages)
Hello Wangnan, The patch below seems to have landed in Linux 4.7, commit 86e7972f690c1017fd086cdfe53d8524e68c661c Could you draft a man-pages patch for this interface change, please? Or, failing that, a plain-text description that we can integrate into the man-page. Thanks, Michael On

Re: [PATCH 1/5] perf core: Introduce new ioctl options to pause and resume ring buffer

2016-10-21 Thread Wangnan (F)
On 2016/10/21 15:06, Michael Kerrisk (man-pages) wrote: Hello Wangnan, The patch below seems to have landed in Linux 4.7, commit 86e7972f690c1017fd086cdfe53d8524e68c661c Could you draft a man-pages patch for this interface change, please? Or, failing that, a plain-text description that we

Re: [PATCH 2/3] zram: support page-based parallel write

2016-10-21 Thread Sergey Senozhatsky
On (09/22/16 15:42), Minchan Kim wrote: > +static ssize_t use_aio_store(struct device *dev, > + struct device_attribute *attr, const char *buf, size_t len) > +{ > + int ret; > + u16 do_async; > + struct zram *zram = dev_to_zram(dev); > + > + ret = kstrtou16(buf, 10,

[PATCH] usb: dwc3: Fix error handling for core init

2016-10-21 Thread Vivek Gautam
Fixing the sequence of events in dwc3_core_init() error exit path. dwc3_core_exit() call is removed from the error path since, whatever it's doing is already done. Signed-off-by: Vivek Gautam Cc: Felipe Balbi --- Based on usb-next.

Re: [RFC][PATCH v3] cgroup: Use CAP_SYS_RESOURCE to allow a process to migrate other tasks between cgroups

2016-10-21 Thread Michael Kerrisk (man-pages)
Hi John, On 10/21/2016 03:24 AM, John Stultz wrote: > This patch adds logic to allows a process to migrate other tasks > between cgroups if they have CAP_SYS_RESOURCE. This appears to be a patch against your previous patch, rather than against mainline. Was that intended? Cheers, Michael >

[PATCH v5] mmc: sdhci-msm: Add pm_runtime and system PM support

2016-10-21 Thread Pramod Gurav
Provides runtime PM callbacks to enable and disable clock resources when idle. Also support system PM callbacks to be called during system suspend and resume. Reviewed-by: Ritesh Harjani Reviewed-by: Georgi Djakov Tested-by: Ritesh Harjani

Re: [3.8 Regression] backporting "[PATCH stable pre 3.9] mm, gup: close FOLL MAP_PRIVATE race"

2016-10-21 Thread Michal Hocko
On Thu 20-10-16 23:39:39, Brian Norris wrote: > (Preface: this wasn't a clean backport, I'm a bit under the weather, and > it's getting late here. So forgive me if my head's not on straight.) > > Hi, > > I'm not sure the best way to report this, but the Chrome OS test > infrastructure noticed

Re: [PATCH v3 1/2] timers: Fix usleep_range() in the context of wake_up_process()

2016-10-21 Thread Thomas Gleixner
On Thu, 20 Oct 2016, Doug Anderson wrote: > > And this is broken because schedule_hrtimeout_range() returns with task > > state TASK_RUNNING so the next schedule_hrtimeout_range() will return > > -EINTR again because nothing sets the task state back to UNINTERRUPTIBLE. > > So instead of sleeping

Re: [PATCH 0/4] IIO wrapper drivers, dpot-dac and envelope-detector

2016-10-21 Thread jic23
On 20.10.2016 19:17, Peter Rosin wrote: On 2016-10-20 19:37, Jonathan Cameron wrote: On 20 October 2016 18:30:19 BST, Jonathan Cameron wrote: On 20 October 2016 13:55:12 BST, Lars-Peter Clausen wrote: On 10/20/2016 11:25 AM, Peter Rosin wrote:

[PATCH v3] [media] vb2: Add support for capture_dma_bidirectional queue flag

2016-10-21 Thread Thierry Escande
From: Pawel Osciak When this flag is set for CAPTURE queues by the driver on calling vb2_queue_init(), it forces the buffers on the queue to be allocated/mapped with DMA_BIDIRECTIONAL direction flag instead of DMA_FROM_DEVICE. This allows the device not only to write to the

Re: [RFC] fs/proc/meminfo: introduce Unaccounted statistic

2016-10-21 Thread Vlastimil Babka
On 10/21/2016 12:59 AM, Dave Chinner wrote: On Thu, Oct 20, 2016 at 03:33:58PM +0200, Michal Hocko wrote: On Thu 20-10-16 14:11:49, Vlastimil Babka wrote: [...] > Hi, I'm wondering if people would find this useful. If you think it is, and > to not make performance worse, I could also make sure

Re: [PATCH v4] pwm: add pwm driver for HiSilicon BVT SOCs

2016-10-21 Thread Thierry Reding
On Mon, Oct 10, 2016 at 04:53:39PM -0500, Rob Herring wrote: > On Mon, Oct 10, 2016 at 07:05:16PM +0800, Jian Yuan wrote: > > From: yuanjian > > > > Add PWM driver for the PWM controller found on HiSilicon BVT SOCs, like > > Hi3519V100, Hi3516CV300, etc. > > The PWM

Re: Rewording language in mbind(2) to "threads" not "processes"

2016-10-21 Thread Michael Kerrisk (man-pages)
Hi Christoph, Did you have any thoughts on my follow-on question below? Cheers, Michael On 10/14/2016 12:09 PM, Michael Kerrisk (man-pages) wrote: > Hi Christoph, > > On 13 October 2016 at 20:16, Christoph Lameter wrote: >> On Thu, 13 Oct 2016, Michael Kerrisk (man-pages)

Re: [PATCH 5/6] FRV-setup: Fix indentation in two lines

2016-10-21 Thread Jiri Kosina
On Fri, 21 Oct 2016, SF Markus Elfring wrote: > From: Markus Elfring > Date: Thu, 20 Oct 2016 22:25:18 +0200 > > The script "checkpatch.pl" pointed information out like the following. > > WARNING: please, no spaces at the start of a line > > Thus fix the

Re: [RFC] fs/proc/meminfo: introduce Unaccounted statistic

2016-10-21 Thread Vlastimil Babka
On 10/20/2016 03:33 PM, Michal Hocko wrote: On Thu 20-10-16 14:11:49, Vlastimil Babka wrote: [...] Hi, I'm wondering if people would find this useful. If you think it is, and to not make performance worse, I could also make sure in proper submission that values are not read via

[PATCH 4.7 43/45] vfs: move permission checking into notify_change() for utimes(NULL)

2016-10-21 Thread Greg Kroah-Hartman
4.7-stable review patch. If anyone has any objections, please let me know. -- From: Miklos Szeredi commit f2b20f6ee842313a0d681dbbf7f87b70291a6a3b upstream. This fixes a bug where the permission was not properly checked in overlayfs. The testcase is

[PATCH 4.7 41/45] crypto: vmx - Fix memory corruption caused by p8_ghash

2016-10-21 Thread Greg Kroah-Hartman
4.7-stable review patch. If anyone has any objections, please let me know. -- From: Marcelo Cerri commit 80da44c29d997e28c4442825f35f4ac339813877 upstream. This patch changes the p8_ghash driver to use ghash-generic as a fixed fallback

[PATCH 4.7 44/45] cachefiles: Fix attempt to read i_blocks after deleting file [ver #2]

2016-10-21 Thread Greg Kroah-Hartman
4.7-stable review patch. If anyone has any objections, please let me know. -- From: David Howells commit a818101d7b92e76db2f9a597e4830734767473b9 upstream. An NULL-pointer dereference happens in cachefiles_mark_object_inactive() when it tries to read

[PATCH 4.8 22/57] fuse: fix killing s[ug]id in setattr

2016-10-21 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Miklos Szeredi commit a09f99eddef44035ec764075a37bace8181bec38 upstream. Fuse allowed VFS to set mode in setattr in order to clear suid/sgid on chown and truncate, and

[PATCH 4.7 08/45] b43legacy: fix debugfs crash

2016-10-21 Thread Greg Kroah-Hartman
4.7-stable review patch. If anyone has any objections, please let me know. -- From: Christian Lamparter commit 9c4a45b17e094a090e96beb1138e34c2a10c6b8c upstream. This patch fixes a crash that happens because b43legacy's debugfs code expects file->f_op

[PATCH 4.7 00/45] 4.7.10-stable review

2016-10-21 Thread Greg Kroah-Hartman
NOTE, this will be the last 4.7.y kernel to be released. After this one, the 4.7.y series is end-of-life. You should be moving to the 4.8.y kernel series at this point in time. This is the start of the stable review cycle for the 4.7.10

[PATCH 4.7 45/45] cfq: fix starvation of asynchronous writes

2016-10-21 Thread Greg Kroah-Hartman
4.7-stable review patch. If anyone has any objections, please let me know. -- From: Glauber Costa commit 3932a86b4b9d1f0b049d64d4591ce58ad18b44ec upstream. While debugging timeouts happening in my application workload (ScyllaDB), I have observed calls to

Re: [PATCH v3] pinctrl: Add SX150X GPIO Extender Pinctrl Driver

2016-10-21 Thread Neil Armstrong
On 10/21/2016 11:09 AM, Neil Armstrong wrote: > Since the I2C sx150x GPIO expander driver uses platform_data to manage > the pins configurations, rewrite the driver as a pinctrl driver using > pinconf to get/set pin configurations from DT or debugfs. > > The pinctrl driver is functionnally

[PATCH 4.7 40/45] crypto: ghash-generic - move common definitions to a new header file

2016-10-21 Thread Greg Kroah-Hartman
4.7-stable review patch. If anyone has any objections, please let me know. -- From: Marcelo Cerri commit a397ba829d7f8aff4c90af3704573a28ccd61a59 upstream. Move common values and types used by ghash-generic to a new header file so drivers can

[PATCH 4.7 32/45] vfs,mm: fix a dead loop in truncate_inode_pages_range()

2016-10-21 Thread Greg Kroah-Hartman
4.7-stable review patch. If anyone has any objections, please let me know. -- From: Wei Fang commit c2a9737f45e27d8263ff9643f994bda9bac0b944 upstream. We triggered a deadloop in truncate_inode_pages_range() on 32 bits architecture with the test case

[PATCH 4.8 14/57] btrfs: assign error values to the correct bio structs

2016-10-21 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Junjie Mao commit 14155cafeadda946376260e2ad5d39a0528a332f upstream. Fixes: 4246a0b63bd8 ("block: add a bi_error field to struct bio") Signed-off-by: Junjie Mao

[PATCH 4.8 19/57] clk: mvebu: dynamically allocate resources in Armada CP110 system controller

2016-10-21 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Marcin Wojtas commit a0245eb76ad0f652f1eb14f48ca2d3c4391aef66 upstream. Original commit, which added support for Armada CP110 system controller used global variables for

[PATCH 4.7 05/45] ARCv2: fix local_save_flags

2016-10-21 Thread Greg Kroah-Hartman
4.7-stable review patch. If anyone has any objections, please let me know. -- From: Vineet Gupta commit cd5d38b052384daa2893e9a1d94900d5a20ed4b5 upstream. Commit d9676fa152c83b ("ARCv2: Enable LOCKDEP"), changed local_save_flags() to not return raw

[PATCH 4.8 16/57] drivers: base: dma-mapping: page align the size when unmap_kernel_range

2016-10-21 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Peng Fan commit 85714108e673cdebf1b96abfd50fb02a29e37577 upstream. When dma_common_free_remap, the input parameter 'size' may not be page aligned. And, met kernel

[PATCH 4.7 39/45] ext4: unmap metadata when zeroing blocks

2016-10-21 Thread Greg Kroah-Hartman
4.7-stable review patch. If anyone has any objections, please let me know. -- From: Jan Kara commit 9b623df614576680cadeaa4d7e0b5884de8f7c17 upstream. When zeroing blocks for DAX allocations, we also have to unmap aliases in the block device mappings. Otherwise

[PATCH 4.8 20/57] fuse: listxattr: verify xattr list

2016-10-21 Thread Greg Kroah-Hartman
4.8-stable review patch. If anyone has any objections, please let me know. -- From: Miklos Szeredi commit cb3ae6d25a5471be62bfe6ac1fccc0e91edeaba0 upstream. Make sure userspace filesystem is returning a well formed list of xattr names (zero or more

[PATCH 4.7 31/45] scsi: ibmvfc: Fix I/O hang when port is not mapped

2016-10-21 Thread Greg Kroah-Hartman
4.7-stable review patch. If anyone has any objections, please let me know. -- From: Brian King commit 07d0e9a847401ffd2f09bd450d41644cd090e81d upstream. If a VFC port gets unmapped in the VIOS, it may not respond with a CRQ init complete following

[PATCH 4.7 06/45] debugfs: introduce a public file_operations accessor

2016-10-21 Thread Greg Kroah-Hartman
4.7-stable review patch. If anyone has any objections, please let me know. -- From: Christian Lamparter commit 86f0e06767dda7863d6d2a8f0b3b857e6ea876a0 upstream. This patch introduces an accessor which can be used by the users of debugfs (drivers, fs,

[PATCH 4.7 33/45] ext4: enforce online defrag restriction for encrypted files

2016-10-21 Thread Greg Kroah-Hartman
4.7-stable review patch. If anyone has any objections, please let me know. -- From: Eric Whitney commit 14fbd4aa613bd5110556c281799ce36dc6f3ba97 upstream. Online defragging of encrypted files is not currently implemented. However, the move extent ioctl can

[PATCH 4.7 30/45] scsi: arcmsr: Simplify user_len checking

2016-10-21 Thread Greg Kroah-Hartman
4.7-stable review patch. If anyone has any objections, please let me know. -- From: Borislav Petkov commit 4bd173c30792791a6daca8c64793ec0a4ae8324f upstream. Do the user_len check first and then the ver_addr allocation so that we can save us the kfree() on the

[PATCH 4.7 18/45] fuse: listxattr: verify xattr list

2016-10-21 Thread Greg Kroah-Hartman
4.7-stable review patch. If anyone has any objections, please let me know. -- From: Miklos Szeredi commit cb3ae6d25a5471be62bfe6ac1fccc0e91edeaba0 upstream. Make sure userspace filesystem is returning a well formed list of xattr names (zero or more

Re: [PATCH] arm64: mm: fix __page_to_voff definition

2016-10-21 Thread Mark Rutland
On Fri, Oct 21, 2016 at 02:28:46PM +0530, Neeraj Upadhyay wrote: > Fix parameter name for __page_to_voff, to match its definition. > At present, we don't see any issue, as page_to_virt's caller > declares 'page'. > > Fixes: 9f2875912dac ("arm64: mm: restrict virt_to_page() to the linear >

[PATCH 4.4 19/25] ext4: allow DAX writeback for hole punch

2016-10-21 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Ross Zwisler commit cca32b7eeb4ea24fa6596650e06279ad9130af98 upstream. Currently when doing a DAX hole punch with ext4 we fail to do a writeback. This is because

[PATCH 4.4 17/25] ext4: reinforce check of i_dtime when clearing high fields of uid and gid

2016-10-21 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Daeho Jeong commit 93e3b4e6631d2a74a8cf7429138096862ff9f452 upstream. Now, ext4_do_update_inode() clears high 16-bit fields of uid/gid of deleted and evicted inode to

[PATCH 4.4 16/25] ext4: enforce online defrag restriction for encrypted files

2016-10-21 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Eric Whitney commit 14fbd4aa613bd5110556c281799ce36dc6f3ba97 upstream. Online defragging of encrypted files is not currently implemented. However, the move extent ioctl can

[PATCH 4.7 17/45] clk: mvebu: dynamically allocate resources in Armada CP110 system controller

2016-10-21 Thread Greg Kroah-Hartman
4.7-stable review patch. If anyone has any objections, please let me know. -- From: Marcin Wojtas commit a0245eb76ad0f652f1eb14f48ca2d3c4391aef66 upstream. Original commit, which added support for Armada CP110 system controller used global variables for

[PATCH 4.7 15/45] IB/hfi1: Fix defered ack race with qp destroy

2016-10-21 Thread Greg Kroah-Hartman
4.7-stable review patch. If anyone has any objections, please let me know. -- From: Mike Marciniszyn commit 72f53af2651957b0b9d6dead72a393eaf9a2c3be upstream. There is a a bug in defered ack stuff that causes a race with the destroy of a QP. A

[PATCH 4.7 20/45] fuse: fix killing s[ug]id in setattr

2016-10-21 Thread Greg Kroah-Hartman
4.7-stable review patch. If anyone has any objections, please let me know. -- From: Miklos Szeredi commit a09f99eddef44035ec764075a37bace8181bec38 upstream. Fuse allowed VFS to set mode in setattr in order to clear suid/sgid on chown and truncate, and

[PATCH 4.4 20/25] ext4: release bh in make_indexed_dir

2016-10-21 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: gmail commit e81d44778d1d57bbaef9e24c4eac7c8a7a401d40 upstream. The commit 6050d47adcad: "ext4: bail out from make_indexed_dir() on first error" could end up leaking bh2 in

[PATCH 4.7 29/45] scsi: arcmsr: Buffer overflow in arcmsr_iop_message_xfer()

2016-10-21 Thread Greg Kroah-Hartman
4.7-stable review patch. If anyone has any objections, please let me know. -- From: Dan Carpenter commit 7bc2b55a5c030685b399bb65b6baa9ccc3d1f167 upstream. We need to put an upper bound on "user_len" so the memcpy() doesn't overflow. Reported-by:

[PATCH 4.7 26/45] ASoC: Intel: Atom: add a missing star in a memcpy call

2016-10-21 Thread Greg Kroah-Hartman
4.7-stable review patch. If anyone has any objections, please let me know. -- From: Nicolas Iooss commit 61ab0d403bbd9d5f6e000e3b5734049141b91f6f upstream. In sst_prepare_and_post_msg(), when a response is received in "block", the following code

[PATCH] cpuidle: remove cpu_pm calls when entering a idle state

2016-10-21 Thread Chenhui Zhao
The functions, cpu_pm_enter and cpu_pm_exit, assume that CPU would be reset when entering and exiting a idle state. If that is not the case, they would cause issue. Signed-off-by: Chenhui Zhao --- include/linux/cpuidle.h | 7 +-- 1 file changed, 1 insertion(+), 6

[PATCH 4.4 14/25] scsi: arcmsr: Simplify user_len checking

2016-10-21 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Borislav Petkov commit 4bd173c30792791a6daca8c64793ec0a4ae8324f upstream. Do the user_len check first and then the ver_addr allocation so that we can save us the kfree() on the

[PATCH 4.7 21/45] i40e: avoid NULL pointer dereference and recursive errors on early PCI error

2016-10-21 Thread Greg Kroah-Hartman
4.7-stable review patch. If anyone has any objections, please let me know. -- From: Guilherme G Piccoli commit edfc23ee3e0ebbb6713d7574ab1b00abff178f6c upstream. Although rare, it's possible to hit PCI error early on device probe, meaning possibly

[PATCH 4.7 02/45] serial: 8250_dw: Check the data->pclk when get apb_pclk

2016-10-21 Thread Greg Kroah-Hartman
4.7-stable review patch. If anyone has any objections, please let me know. -- From: Kefeng Wang commit e16b46f190a22587898b331f9d58583b0b166c9a upstream. It should check the data->pclk, not data->clk when get apb_pclk. Fixes: c8ed99d4f6a8("serial:

[PATCH 4.4 24/25] vfs: move permission checking into notify_change() for utimes(NULL)

2016-10-21 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Miklos Szeredi commit f2b20f6ee842313a0d681dbbf7f87b70291a6a3b upstream. This fixes a bug where the permission was not properly checked in overlayfs. The testcase is

[PATCH 4.7 23/45] brcmfmac: fix pmksa->bssid usage

2016-10-21 Thread Greg Kroah-Hartman
4.7-stable review patch. If anyone has any objections, please let me know. -- From: Nicolas Iooss commit 7703773ef1d85b40433902a8da20167331597e4a upstream. The struct cfg80211_pmksa defines its bssid field as: const u8 *bssid; contrary to

[PATCH 4.4 22/25] crypto: vmx - Fix memory corruption caused by p8_ghash

2016-10-21 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Marcelo Cerri commit 80da44c29d997e28c4442825f35f4ac339813877 upstream. This patch changes the p8_ghash driver to use ghash-generic as a fixed fallback

[PATCH 4.4 04/25] fuse: listxattr: verify xattr list

2016-10-21 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Miklos Szeredi commit cb3ae6d25a5471be62bfe6ac1fccc0e91edeaba0 upstream. Make sure userspace filesystem is returning a well formed list of xattr names (zero or more

[PATCH 4.7 14/45] drivers: base: dma-mapping: page align the size when unmap_kernel_range

2016-10-21 Thread Greg Kroah-Hartman
4.7-stable review patch. If anyone has any objections, please let me know. -- From: Peng Fan commit 85714108e673cdebf1b96abfd50fb02a29e37577 upstream. When dma_common_free_remap, the input parameter 'size' may not be page aligned. And, met kernel

[PATCH 4.4 15/25] scsi: ibmvfc: Fix I/O hang when port is not mapped

2016-10-21 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Brian King commit 07d0e9a847401ffd2f09bd450d41644cd090e81d upstream. If a VFC port gets unmapped in the VIOS, it may not respond with a CRQ init complete following

[PATCH 4.7 27/45] reiserfs: Unlock superblock before calling reiserfs_quota_on_mount()

2016-10-21 Thread Greg Kroah-Hartman
4.7-stable review patch. If anyone has any objections, please let me know. -- From: Mike Galbraith commit 420902c9d086848a7548c83e0a49021514bd71b7 upstream. If we hold the superblock lock while calling reiserfs_quota_on_mount(), we can deadlock our own worker -

[PATCH 4.4 10/25] reiserfs: Unlock superblock before calling reiserfs_quota_on_mount()

2016-10-21 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Mike Galbraith commit 420902c9d086848a7548c83e0a49021514bd71b7 upstream. If we hold the superblock lock while calling reiserfs_quota_on_mount(), we can deadlock our own worker -

Re: [Patch v5 04/12] irqchip: xilinx: Add support for parent intc

2016-10-21 Thread Marc Zyngier
On 17/10/16 17:52, Zubair Lutfullah Kakakhel wrote: > The MIPS based xilfpga platform has the following IRQ structure > > Peripherals --> xilinx_intcontroller -> mips_cpu_int controller > > Add support for the driver to chain the irq handler > > Signed-off-by: Zubair Lutfullah Kakakhel

Re: FRV-setup: Clarification for "source code clean-up"?

2016-10-21 Thread SF Markus Elfring
> How are you going to fix bugs if you only send clean ups? I would prefer an other wording than "only" in your question. I imagine that probabilities and views will matter more for the handling of a software error spectrum. >> How do you think about to discuss corresponding software

Re: [PATCH] net: cpsw: fix obtaining mac address for am3517

2016-10-21 Thread Tony Lindgren
* Jeroen Hofstee [161021 02:31]: > Aaah, lets wait a sec. I just saw there is another user of this function, > so above is simply not true > > if (of_machine_is_compatible("ti,dra7")) > return davinci_emac_3517_get_macid(dev, 0x514, slave, mac_addr);

UBIFS with dma on 4.6 kernel is not working

2016-10-21 Thread Naga Sureshkumar Relli
Hi, This is regarding UBIFS on 4.6 kernel. We have tested UBIFS on our ZynqMP SOC QSPI Controller, the UBIFS is not working with dma on this kernel. Controller driver: https://github.com/torvalds/linux/commits/master/drivers/spi/spi-zynqmp-gqspi.c If I replace all vmalloc allocations in

Re: [PATCH 2/3] ARM: bus: da8xx-syscfg: new driver

2016-10-21 Thread Sekhar Nori
On Friday 21 October 2016 02:55 PM, Tomi Valkeinen wrote: > On 20/10/16 22:39, Kevin Hilman wrote: > >> However, after our discussion on IRC, we'll respin this without the DT >> bindings at all. Next version will just use static configuration data >> in the drivers/bus driver based on SoC

Re: [PATCH v2 3/4] Device bindings documentation updated ACPI-enabled platforms not currently supported

2016-10-21 Thread Luis Oliveira
Since practically 90% of the code is shared between master and slave, I was thinking if it will be acceptable to use the same driver for both but differentiate the master/slave mode by the compatible strings. Thanks, Luis On 10/18/2016 16:17, Wolfram Sang wrote: >> This is needed because the

Re: [PATCH 2/3] ARM: bus: da8xx-syscfg: new driver

2016-10-21 Thread Tomi Valkeinen
On 21/10/16 12:53, Sekhar Nori wrote: > On Friday 21 October 2016 02:55 PM, Tomi Valkeinen wrote: >> On 20/10/16 22:39, Kevin Hilman wrote: >> >>> However, after our discussion on IRC, we'll respin this without the DT >>> bindings at all. Next version will just use static configuration data >>>

Re: [PATCH 0/3] iopmem : A block device for PCIe memory

2016-10-21 Thread Christoph Hellwig
On Fri, Oct 21, 2016 at 10:22:39AM +1100, Dave Chinner wrote: > You do realise that local filesystems can silently change the > location of file data at any point in time, so there is no such > thing as a "stable mapping" of file data to block device addresses > in userspace? > > If you want

Re: [PATCH] cpuidle: remove cpu_pm calls when entering a idle state

2016-10-21 Thread Sudeep Holla
Hi Chenhui, On Fri, Oct 21, 2016 at 10:32 AM, Chenhui Zhao wrote: > The functions, cpu_pm_enter and cpu_pm_exit, assume that CPU would > be reset when entering and exiting a idle state. If that is not the > case, they would cause issue. > So are you OK to break all the

Re: [PATCH] net: cpsw: fix obtaining mac address for am3517

2016-10-21 Thread Jeroen Hofstee
Hello Tony, On 21-10-16 09:53, Tony Lindgren wrote: * Jeroen Hofstee [161021 00:37]: Hello Tony, On 21-10-16 08:38, Tony Lindgren wrote: * Jeroen Hofstee [161020 12:57]: Commit b6745f6e4e63 ("drivers: net: cpsw: davinci_emac: move

[PATCH v7] net: ip, diag -- Add diag interface for raw sockets

2016-10-21 Thread Cyrill Gorcunov
In criu we are actively using diag interface to collect sockets present in the system when dumping applications. And while for unix, tcp, udp[lite], packet, netlink it works as expected, the raw sockets do not have. Thus add it. v2: - add missing sock_put calls in raw_diag_dump_one (by

Re: [PATCH v2 0/8] mm/swap: Regular page swap optimizations

2016-10-21 Thread Christian Borntraeger
On 10/21/2016 10:16 AM, Christian Borntraeger wrote: > On s390 4.9-rc1 + this patch set > I get the following on swapon > > [ 308.206195] [ cut here ] > [ 308.206203] WARNING: CPU: 5 PID: 20745 at mm/page_alloc.c:3511 > __alloc_pages_nodemask+0x884/0xdf8 > [

Re: [PATCH net-next v2 6/9] net: use core MTU range checking in virt drivers

2016-10-21 Thread Wei Liu
On Thu, Oct 20, 2016 at 01:55:21PM -0400, Jarod Wilson wrote: > hyperv_net: > - set min/max_mtu, per Haiyang, after rndis_filter_device_add > > virtio_net: > - set min/max_mtu > - remove virtnet_change_mtu > > vmxnet3: > - set min/max_mtu > > xen-netback: > - min_mtu = 0, max_mtu = 65517 > >

Re: [PATCH v2 1/9] irqchip: meson: add support for gpio interrupt controller

2016-10-21 Thread Mark Rutland
On Fri, Oct 21, 2016 at 10:49:11AM +0200, Jerome Brunet wrote: > On Thu, 2016-10-20 at 17:33 +0100, Marc Zyngier wrote: > > On 19/10/16 16:21, Jerome Brunet wrote: > > > +struct meson_gpio_irq_chip_data { > > > + void __iomem *base; > > > + int index; > > > +}; > > > + > > > +static

Re: UBIFS with dma on 4.6 kernel is not working

2016-10-21 Thread Cyrille Pitchen
Hi all, Le 21/10/2016 à 11:29, Richard Weinberger a écrit : > Hi! > > On 21.10.2016 11:21, Naga Sureshkumar Relli wrote: >> Hi, >> >> This is regarding UBIFS on 4.6 kernel. >> We have tested UBIFS on our ZynqMP SOC QSPI Controller, the UBIFS is not >> working with dma on this kernel. >>

Re: [PATCH V7 2/3] stm class: ftrace: Add ftrace-export-over-stm driver

2016-10-21 Thread Chunyan Zhang
On 19 October 2016 at 00:29, Steven Rostedt wrote: > On Tue, 18 Oct 2016 16:08:59 +0800 > Chunyan Zhang wrote: > >> This patch adds a driver that models itself as an stm_source called >> stm_ftrace. Once the stm device and stm_ftrace have been

RE: Device or HBA level QD throttling creates randomness in sequetial workload

2016-10-21 Thread Kashyap Desai
Hi - I found below conversation and it is on the same line as I wanted some input from mailing list. http://marc.info/?l=linux-kernel=147569860526197=2 I can do testing on any WIP item as Omar mentioned in above discussion. https://github.com/osandov/linux/tree/blk-mq-iosched Is there any

[PATCH] net: sctp, forbid negative length

2016-10-21 Thread Jiri Slaby
Most of getsockopt handlers in net/sctp/socket.c check len against sizeof some structure like: if (len < sizeof(int)) return -EINVAL; On the first look, the check seems to be correct. But since len is int and sizeof returns size_t, int gets promoted to unsigned size_t too.

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