[PATCH 3/5] MIPS: avoid buffer overrun in mips_cm_error_report

2015-09-22 Thread Paul Burton
Commit 3885c2b463f6 ("MIPS: CM: Add support for reporting CM cache errors") added cases for decoding errors reported by CM3, but leaves the buf variable which is printed as a string uninitialised for cause values other than 1, 2 or 3. Fix by ensuring the buf variable is initialised to an empty stri

[PATCH 1/5] MIPS: clarify mips_cm_is64 documentation

2015-09-22 Thread Paul Burton
The documentation for mips_cm_is64 implied that the width of the CM GCRs would change depending upon the CPU, which is not true. Reword the explanation to be clearer that the GCR width is purely dependent upon the version of the CM. Signed-off-by: Paul Burton --- arch/mips/include/asm/mips-cm.h

[PATCH 2/5] MIPS: don't read GCRs when a CM is not present

2015-09-22 Thread Paul Burton
Commit 3885c2b463f6 ("MIPS: CM: Add support for reporting CM cache errors") leads to Malta boards unconditionally reading CM GCRs upon bus errors, regardless of whether a CM is present. This is incorrect & will lead to further exceptions. Fix by moving the GCR reads to after the check for whether a

RE: [PATCH] power: print function name of callbacks

2015-09-22 Thread Brown, Len
have you used analyze_suspend? It used to parse this output, but that was abandoned when it cut over to using ftrace directly. https://01.org/suspendresume cheers, -Len > -Original Message- > From: Douglas Anderson [mailto:diand...@chromium.org] > Sent: Tuesday, September 22, 2015 1:27

Re: [PATCH 2/2] MIPS: ath79: add irq chip ar7240-misc-intc

2015-09-22 Thread Ralf Baechle
On Tue, Sep 22, 2015 at 12:24:26PM +0200, Thomas Gleixner wrote: > > The ar7240 misc irq chip use ack handler > > instead of ack_mask handler. All new ath79 chips use > > the ar7240 misc irq chip > > > > Signed-off-by: Alexander Couzens > > Acked-by: Alban Bedel > > --- > > .../interrupt-contr

Re: [PATCH v2 4/5] cpufreq-dt: Handle OPP voltage adjust events

2015-09-22 Thread Viresh Kumar
On 18-09-15, 17:52, Stephen Boyd wrote: > On some SoCs the Adaptive Voltage Scaling (AVS) technique is > employed to optimize the operating voltage of a device. At a > given frequency, the hardware monitors dynamic factors and either > makes a suggestion for how much to adjust a voltage for the > c

Re: [PATCH] power: print function name of callbacks

2015-09-22 Thread Doug Anderson
Hi, On Tue, Sep 22, 2015 at 10:33 AM, Brown, Len wrote: > have you used analyze_suspend? > It used to parse this output, but that was abandoned > when it cut over to using ftrace directly. > > https://01.org/suspendresume Ah, good to know about. In my case this output is enabled on shipping dev

Re: First kernel patch (optimization)

2015-09-22 Thread Linus Torvalds
On Tue, Sep 15, 2015 at 12:53 PM, Eric Curtin wrote: > My first kernel patch, hope I did everything correctly! Instead of calling > strlen on every iteration of the for loop, just call it once instead and > store in a variable. Heh. Ok, that resulted in a rather long email thread. Anyway, I'd

[PATCH] arm: dts: qcom: Add size element to coincell reg property

2015-09-22 Thread Stephen Boyd
This node is missing a size element that we typically have for all other PMIC dts nodes. Add it. Cc: Tim Bird Signed-off-by: Stephen Boyd --- arch/arm/boot/dts/qcom-pm8941.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/qcom-pm8941.dtsi b/arch/arm/boo

Re: [PATCH 1/2] MIPS: ath79: set missing irq ack handler for ar7100-misc-intc irq chip

2015-09-22 Thread Ralf Baechle
On Tue, Sep 22, 2015 at 12:23:22PM +0200, Thomas Gleixner wrote: > On Sat, 19 Sep 2015, Alexander Couzens wrote: > > > The irq ack handler was forgotten while introducing OF support. > > Only ar71xx and ar933x based devices require it. > > > > Signed-off-by: Alexander Couzens > > Acked-by: Alba

Re: [PATCH v4 0/3] I2C/SMBus: add support for Host Notify (in i2c_i801)

2015-09-22 Thread Benjamin Tissoires
Hi All, any estimate when anybody will be able to review this series? Cheers, Benjamin On Jul 23 2015 or thereabouts, Benjamin Tissoires wrote: > Hi, > > this is the v4 of this patch series which fixes the race we discovered this > week when accessing the registers in i2c_i801. > > Compared to

Re: [PATCH 01/11] x86/mm/pat: Don't free PGD entries on memory unmap

2015-09-22 Thread Linus Torvalds
On Mon, Sep 21, 2015 at 11:23 PM, Ingo Molnar wrote: > > This complicates PGD management, so don't do this. We can keep the > PGD mapped and the PUD table all clear - it's only a single 4K page > per 512 GB of memory mapped. I'm ok with this just from a "it removes code" standpoint. That said, s

[PATCH] dax: fix NULL pointer in __dax_pmd_fault()

2015-09-22 Thread Ross Zwisler
The following commit: commit 46c043ede471 ("mm: take i_mmap_lock in unmap_mapping_range() for DAX") moved some code in __dax_pmd_fault() that was responsible for zeroing newly allocated PMD pages. The new location didn't properly set up 'kaddr', though, so when run this code resulted in

Re: [PATCH v2 2/5] PM / OPP: Support adjusting OPP voltages at runtime

2015-09-22 Thread Stephen Boyd
On 09/22, Viresh Kumar wrote: > On 18-09-15, 17:52, Stephen Boyd wrote: > > /** > > + * dev_pm_opp_adjust_voltage() - helper to change the voltage of an OPP > > + * @dev: device for which we do this operation > > + * @freq: OPP frequency to adjust voltage of > > + * @u_volt:

[PATCH 3.13.y-ckt 06/57] xen/gntdev: convert priv->lock to a mutex

2015-09-22 Thread Kamal Mostafa
3.13.11-ckt27 -stable review patch. If anyone has any objections, please let me know. -- From: David Vrabel commit 1401c00e59ea021c575f74612fe2dbba36d6a4ee upstream. Unmapping may require sleeping and we unmap while holding priv->lock, so convert it to a mutex. Signed-off-by

[3.13.y-ckt stable] Linux 3.13.11-ckt27 stable review

2015-09-22 Thread Kamal Mostafa
This is the start of the review cycle for the Linux 3.13.11-ckt27 stable kernel. This version contains 57 new patches, summarized below. The new patches are posted as replies to this message and also available in this git branch: http://kernel.ubuntu.com/git/ubuntu/linux.git/log/?h=linux-3.13.y-

Re: [PATCH 02/11] x86/mm/hotplug: Remove pgd_list use from the memory hotplug code

2015-09-22 Thread Linus Torvalds
On Mon, Sep 21, 2015 at 11:23 PM, Ingo Molnar wrote: > + > + for_each_process(g) { > + struct task_struct *p; > + struct mm_struct *mm; > pgd_t *pgd; > spinlock_t *pgt_lock; > > +

[PATCH 3.13.y-ckt 53/57] net: pktgen: fix race between pktgen_thread_worker() and kthread_stop()

2015-09-22 Thread Kamal Mostafa
3.13.11-ckt27 -stable review patch. If anyone has any objections, please let me know. -- From: Oleg Nesterov [ Upstream commit fecdf8be2d91e04b0a9a4f79ff06499a36f5d14f ] pktgen_thread_worker() is obviously racy, kthread_stop() can come between the kthread_should_stop() check

[PATCH 3.13.y-ckt 16/57] rbd: fix copyup completion race

2015-09-22 Thread Kamal Mostafa
3.13.11-ckt27 -stable review patch. If anyone has any objections, please let me know. -- From: Ilya Dryomov commit 2761713d35e370fd640b5781109f753066b746c4 upstream. For write/discard obj_requests that involved a copyup method call, the opcode of the first op is CEPH_OSD_OP_C

[PATCH 3.13.y-ckt 55/57] net: Fix skb csum races when peeking

2015-09-22 Thread Kamal Mostafa
3.13.11-ckt27 -stable review patch. If anyone has any objections, please let me know. -- From: Herbert Xu [ Upstream commit 89c22d8c3b278212eef6a8cc66b570bc840a6f5a ] When we calculate the checksum on the recv path, we store the result in the skb as an optimisation in case we

[PATCH 3.13.y-ckt 40/57] ipc/sem.c: update/correct memory barriers

2015-09-22 Thread Kamal Mostafa
3.13.11-ckt27 -stable review patch. If anyone has any objections, please let me know. -- From: Manfred Spraul commit 3ed1f8a99d70ea1cd1508910eb107d0edcae5009 upstream. sem_lock() did not properly pair memory barriers: !spin_is_locked() and spin_unlock_wait() are both only co

[PATCH 3.13.y-ckt 47/57] rds: fix an integer overflow test in rds_info_getsockopt()

2015-09-22 Thread Kamal Mostafa
3.13.11-ckt27 -stable review patch. If anyone has any objections, please let me know. -- From: Dan Carpenter commit 468b732b6f76b138c0926eadf38ac88467dcd271 upstream. "len" is a signed integer. We check that len is not negative, so it goes from zero to INT_MAX. PAGE_SIZE is

[PATCH 3.13.y-ckt 52/57] net/tipc: initialize security state for new connection socket

2015-09-22 Thread Kamal Mostafa
3.13.11-ckt27 -stable review patch. If anyone has any objections, please let me know. -- From: Stephen Smalley [ Upstream commit fdd75ea8df370f206a8163786e7470c1277a5064 ] Calling connect() with an AF_TIPC socket would trigger a series of error messages from SELinux along the

[PATCH 3.13.y-ckt 12/57] xen-blkback: replace work_pending with work_busy in purge_persistent_gnt()

2015-09-22 Thread Kamal Mostafa
3.13.11-ckt27 -stable review patch. If anyone has any objections, please let me know. -- From: Bob Liu commit 53bc7dc004fecf39e0ba70f2f8d120a1444315d3 upstream. The BUG_ON() in purge_persistent_gnt() will be triggered when previous purge work haven't finished. There is a wor

[PATCH 3.13.y-ckt 51/57] rtnetlink: verify IFLA_VF_INFO attributes before passing them to driver

2015-09-22 Thread Kamal Mostafa
3.13.11-ckt27 -stable review patch. If anyone has any objections, please let me know. -- From: Daniel Borkmann [ Upstream commit 4f7d2cdfdde71ffe962399b7020c674050329423 ] Jason Gunthorpe reported that since commit c02db8c6290b ("rtnetlink: make SR-IOV VF interface symmetric"

[PATCH 0/4] of: Handle multi-parent version of msi-parent

2015-09-22 Thread Marc Zyngier
Now that we have a useable and documented version of msi-parent that can deal with multiple parenting, we can properly handle it in the kernel. This leads to a new OF helper, some rework in the PCI and platform layers, as well as a last patch for the ITS driver, which is the only thing in the kerne

[PATCH 3.13.y-ckt 57/57] net: gso: use feature flag argument in all protocol gso handlers

2015-09-22 Thread Kamal Mostafa
3.13.11-ckt27 -stable review patch. If anyone has any objections, please let me know. -- From: Florian Westphal [ Upstream commit 1e16aa3ddf863c6b9f37eddf52503230a62dedb3 ] skb_gso_segment() has a 'features' argument representing offload features available to the output path.

[PATCH 3.13.y-ckt 56/57] netlink: don't hold mutex in rcu callback when releasing mmapd ring

2015-09-22 Thread Kamal Mostafa
3.13.11-ckt27 -stable review patch. If anyone has any objections, please let me know. -- From: Florian Westphal [ Upstream commit 0470eb99b4721586ccac954faac3fa4472da0845 ] Kirill A. Shutemov says: This simple test-case trigers few locking asserts in kernel: int main(int ar

[3.19.y-ckt stable] Linux 3.19.8-ckt7 stable review

2015-09-22 Thread Kamal Mostafa
This is the start of the review cycle for the Linux 3.19.8-ckt7 stable kernel. This version contains 102 new patches, summarized below. The new patches are posted as replies to this message and also available in this git branch: http://kernel.ubuntu.com/git/ubuntu/linux.git/log/?h=linux-3.19.y-r

[PATCH 3.13.y-ckt 21/57] perf: Fix fasync handling on inherited events

2015-09-22 Thread Kamal Mostafa
3.13.11-ckt27 -stable review patch. If anyone has any objections, please let me know. -- From: Peter Zijlstra commit fed66e2cdd4f127a43fd11b8d92a99bdd429528c upstream. Vince reported that the fasync signal stuff doesn't work proper for inherited events. So fix that. Installi

[PATCH 3.13.y-ckt 54/57] net: call rcu_read_lock early in process_backlog

2015-09-22 Thread Kamal Mostafa
3.13.11-ckt27 -stable review patch. If anyone has any objections, please let me know. -- From: Julian Anastasov commit 2c17d27c36dcce2b6bf689f41a46b9e909877c21 upstream. Incoming packet should be either in backlog queue or in RCU read-side section. Otherwise, the final sequen

[PATCH 3.13.y-ckt 50/57] ipv6: lock socket in ip6_datagram_connect()

2015-09-22 Thread Kamal Mostafa
3.13.11-ckt27 -stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet commit 03645a11a570d52e70631838cb786eb4253eb463 upstream. ip6_datagram_connect() is doing a lot of socket changes without socket being locked. This looks wrong, at lea

[PATCH 3.19.y-ckt 062/102] EDAC, ppc4xx: Access mci->csrows array elements properly

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Michael Walle commit 5c16179b550b9fd8114637a56b153c9768ea06a5 upstream. The commit de3910eb79ac ("edac: change the mem allocation scheme to make Documentation/kobj

[PATCH 3.19.y-ckt 001/102] [3.19-stable only] Revert "dmaengine: pl330: Fix overflow when reporting residue in memcpy"

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Kamal Mostafa This reverts commit 3f99e272649b084999266a5049d4faadee378830. Not suitable for 3.19-stable: 'struct dma_pl330_desc' has no member named 'bytes_requested' Signed-off-by:

[PATCH 3.19.y-ckt 074/102] x86/xen: make CONFIG_XEN depend on CONFIG_X86_LOCAL_APIC

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: David Vrabel commit 87ffd2b9bb74061c120f450e4d0f3409bb603ae0 upstream. Since commit feb44f1f7a4ac299d1ab1c3606860e70b9b89d69 (x86/xen: Provide a "Xen PV" APIC driver to support >255 V

[PATCH 3/4] PCI/MSI: Add support for the new definition of "msi-parent"

2015-09-22 Thread Marc Zyngier
Since 126b16e2ad98 ("Docs: dt: add generic MSI bindings"), the definition of "msi-parent" has evolved, while maintaining some degree of compatibility. It can now express multiple MSI controllers as parents, as well as some sideband data being communicated to the controller. This patch revamps the

[PATCH 3.19.y-ckt 082/102] perf: Fix PERF_EVENT_IOC_PERIOD migration race

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Peter Zijlstra commit c7999c6f3fed9e383d3131474588f282ae6d56b9 upstream. I ran the perf fuzzer, which triggered some WARN()s which are due to trying to stop/restart an event on the wr

[PATCH 3.19.y-ckt 100/102] Revert "sit: Add gro callbacks to sit_offload"

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Herbert Xu [ Upstream commit fdbf5b097bbd9693a86c0b8bfdd071a9a2117cfc ] This patch reverts 19424e052fb44da2f00d1a868cbb51f3e9f4bbb5 ("sit: Add gro callbacks to sit_offload") because i

[PATCH 3.19.y-ckt 049/102] fsnotify: fix oops in fsnotify_clear_marks_by_group_flags()

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Jan Kara commit 8f2f3eb59dff4ec538de55f2e0592fec85966aab upstream. fsnotify_clear_marks_by_group_flags() can race with fsnotify_destroy_marks() so that when fsnotify_destroy_mark_lock

[PATCH 3.19.y-ckt 028/102] md/raid1: extend spinlock to protect raid1_end_read_request against inconsistencies

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: NeilBrown commit 423f04d63cf421ea436bcc5be02543d549ce4b28 upstream. raid1_end_read_request() assumes that the In_sync bits are consistent with the ->degaded count. raid1_spare_active

[PATCH 3.19.y-ckt 101/102] bonding: correct the MAC address for "follow" fail_over_mac policy

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: dingtianhong [ Upstream commit a951bc1e6ba58f11df5ed5ddc41311e10f5fd20b ] The "follow" fail_over_mac policy is useful for multiport devices that either become confused or incur a perf

[PATCH 3.19.y-ckt 097/102] net: pktgen: fix race between pktgen_thread_worker() and kthread_stop()

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Oleg Nesterov [ Upstream commit fecdf8be2d91e04b0a9a4f79ff06499a36f5d14f ] pktgen_thread_worker() is obviously racy, kthread_stop() can come between the kthread_should_stop() check an

[PATCH 3.19.y-ckt 002/102] x86/ldt: Make modify_ldt synchronous

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Andy Lutomirski commit 37868fe113ff2ba814b3b4eb12df214df555f8dc upstream. modify_ldt() has questionable locking and does not synchronize threads. Improve it: redesign the locking and

Re: [PATCH] KVM: x86: fix bogus warning about reserved bits

2015-09-22 Thread Borislav Petkov
On Tue, Sep 22, 2015 at 10:25:29AM +0200, Paolo Bonzini wrote: > 29ecd6601904 ("KVM: x86: avoid uninitialized variable warning", > 2015-09-06) introduced a not-so-subtle problem, which probably > escaped review because it was not part of the patch context. ... > diff --git a/arch/x86/kvm/mmu.c b/

Re: [PATCH 05/11] mm: Introduce arch_pgd_init_late()

2015-09-22 Thread Linus Torvalds
On Mon, Sep 21, 2015 at 11:23 PM, Ingo Molnar wrote: > Add a late PGD init callback to places that allocate a new MM > with a new PGD: copy_process() and exec(). > > The purpose of this callback is to allow architectures to implement > lockless initialization of task PGDs, to remove the scalabilit

[PATCH 3.19.y-ckt 102/102] netlink: don't hold mutex in rcu callback when releasing mmapd ring

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Florian Westphal [ Upstream commit 0470eb99b4721586ccac954faac3fa4472da0845 ] Kirill A. Shutemov says: This simple test-case trigers few locking asserts in kernel: int main(int argc

[PATCH 3.19.y-ckt 095/102] rtnetlink: verify IFLA_VF_INFO attributes before passing them to driver

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Daniel Borkmann [ Upstream commit 4f7d2cdfdde71ffe962399b7020c674050329423 ] Jason Gunthorpe reported that since commit c02db8c6290b ("rtnetlink: make SR-IOV VF interface symmetric"),

Re: [PATCH v2 20/25] powerpc32: Remove clear_pages() and define clear_page() inline

2015-09-22 Thread Joakim Tjernlund
Hi Christophe Really nice patchset! On Tue, 2015-09-22 at 18:51 +0200, Christophe Leroy wrote: > clear_pages() is never used, and PPC32 is the only architecture > (still) having this function. Neither PPC64 nor any other > architecture has it. > > This patch removes clear_page() and move clear_p

[PATCH 3.19.y-ckt 094/102] sparc64: Fix userspace FPU register corruptions.

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: "David S. Miller" [ Upstream commit 44922150d87cef616fd183220d43d8fde4d41390 ] If we have a series of events from userpsace, with %fprs=FPRS_FEF, like follows: ETRAP ETRAP

[PATCH 3.19.y-ckt 096/102] net/tipc: initialize security state for new connection socket

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Stephen Smalley [ Upstream commit fdd75ea8df370f206a8163786e7470c1277a5064 ] Calling connect() with an AF_TIPC socket would trigger a series of error messages from SELinux along the l

[PATCH 3.19.y-ckt 093/102] net: phy: add locking to phy_read_mmd_indirect()/phy_write_mmd_indirect()

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Russell King commit 05a7f582be961824d62a7f4a817f3783148b5f8a upstream. The phy layer is missing locking for the above two functions - it has been observed that two threads (userspace

[PATCH 3.19.y-ckt 099/102] ipv6: lock socket in ip6_datagram_connect()

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet [ Upstream commit 03645a11a570d52e70631838cb786eb4253eb463 ] ip6_datagram_connect() is doing a lot of socket changes without socket being locked. This looks wrong, at le

[PATCH 3.19.y-ckt 098/102] net: Fix skb csum races when peeking

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Herbert Xu [ Upstream commit 89c22d8c3b278212eef6a8cc66b570bc840a6f5a ] When we calculate the checksum on the recv path, we store the result in the skb as an optimisation in case we n

Re: [PATCH 06/11] x86/virt/guest/xen: Remove use of pgd_list from the Xen guest code

2015-09-22 Thread Linus Torvalds
On Mon, Sep 21, 2015 at 11:23 PM, Ingo Molnar wrote: > xen_mm_pin_all()/unpin_all() are used to implement full guest instance > suspend/restore. It's a stop-all method that needs to iterate through > all allocated pgds in the system to fix them up for Xen's use. And _this_ is why I'd reall ylike

Re: [PATCH] dax: fix NULL pointer in __dax_pmd_fault()

2015-09-22 Thread Dan Williams
On Tue, Sep 22, 2015 at 10:46 AM, Ross Zwisler wrote: > The following commit: > > commit 46c043ede471 ("mm: take i_mmap_lock in unmap_mapping_range() for > DAX") > > moved some code in __dax_pmd_fault() that was responsible for zeroing > newly allocated PMD pages. The new location didn't

Re: [PATCH 07/11] x86/mm: Remove pgd_list use from vmalloc_sync_all()

2015-09-22 Thread Linus Torvalds
On Mon, Sep 21, 2015 at 11:23 PM, Ingo Molnar wrote: > + > + for_each_process(g) { > + struct task_struct *p; > + struct mm_struct *mm; > + > + p = find_lock_task_mm(g); > + if (!p) > +

[PATCH v2 1/2] btrfs: change num_items type from u64 to unsigned int

2015-09-22 Thread Alexandru Moise
The value of num_items that start_transaction() ultimately always takes is a small one, so a 64 bit integer is overkill. Also change num_items for btrfs_start_transaction() and btrfs_start_transaction_lflush() as well. Signed-off-by: Alexandru Moise <00moses.alexande...@gmail.com> --- v2: followe

[PATCH v2 2/2] btrfs: declare rsv_count as unsigned int instead of int

2015-09-22 Thread Alexandru Moise
rsv_count ultimately gets passed to start_transaction() which now takes an unsigned int as its num_items parameter. The value of rsv_count should always be positive so declare it as being unsigned. Signed-off-by: Alexandru Moise <00moses.alexande...@gmail.com> --- v2: followed dave's suggestions o

[PATCH 3.19.y-ckt 072/102] SCSI: Fix NULL pointer dereference in runtime PM

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Alan Stern commit 49718f0fb8c9af192b33d8af3a2826db04025371 upstream. The routines in scsi_rpm.c assume that if a runtime-PM callback is invoked for a SCSI device, it can only mean tha

[PATCH 3.19.y-ckt 092/102] udp: fix dst races with multicast early demux

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet commit 10e2eb878f3ca07ac2f05fa5ca5e6c4c9174a27a upstream. Multicast dst are not cached. They carry DST_NOCACHE. As mentioned in commit f8864972126899 ("ipv4: fix dst rac

[PATCH] arm64: Increase the max granular size

2015-09-22 Thread Robert Richter
From: Tirumalesh Chalamarla Increase the standard cacheline size to avoid having locks in the same cacheline. Cavium's ThunderX core implements cache lines of 128 byte size. With current granulare size of 64 bytes (L1_CACHE_SHIFT=6) two locks could share the same cache line leading a performance

Re: [PATCH 05/11] mm: Introduce arch_pgd_init_late()

2015-09-22 Thread Andy Lutomirski
On Tue, Sep 22, 2015 at 10:55 AM, Linus Torvalds wrote: > On Mon, Sep 21, 2015 at 11:23 PM, Ingo Molnar wrote: >> Add a late PGD init callback to places that allocate a new MM >> with a new PGD: copy_process() and exec(). >> >> The purpose of this callback is to allow architectures to implement >

RE: [PATCH 0/2] staging: comedi: comedi_buf.c: Documentation changes

2015-09-22 Thread Hartley Sweeten
On Tuesday, September 22, 2015 10:03 AM, Ian Abbott wrote: > 1) staging: comedi: comedi_buf.c: tweak existing kernel-doc > 2) staging: comedi: comedi_buf.c: document remaining exported functions > > drivers/staging/comedi/comedi_buf.c | 106 > ++-- > 1 file changed

[PATCH 3.19.y-ckt 090/102] fbdev: select versatile helpers for the integrator

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Linus Walleij commit 2701fa0864ecb9e49d47a4aa1c02f172ab79639a upstream. Commit 11c32d7b6274cb0f554943d65bd4a126c4a86dcd "video: move Versatile CLCD helpers" missed the fact that the I

[PATCH 3.19.y-ckt 084/102] bna: fix interrupts storm caused by erroneous packets

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Ivan Vecera commit ade4dc3e616e33c80d7e62855fe1b6f9895bc7c3 upstream. The commit "e29aa33 bna: Enable Multi Buffer RX" moved packets counter increment from the beginning of the NAPI p

[PATCH 3.19.y-ckt 087/102] fq_codel: explicitly reset flows in ->reset()

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet commit 3d0e0af40672a0bf16ca0f0591165535138c1f30 upstream. Alex reported the following crash when using fq_codel with htb: crash> bt PID: 630839 TASK: 8823c990d2

[PATCH 3.19.y-ckt 089/102] batman-adv: fix kernel crash due to missing NULL checks

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Marek Lindner commit 354136bcc3c4f40a2813bba8f57ca5267d812d15 upstream. batadv_softif_vlan_get() may return NULL which has to be verified by the caller. Fixes: 35df3b298fc8 ("batman-

[PATCH 3.19.y-ckt 085/102] net: Fix skb_set_peeked use-after-free bug

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Herbert Xu commit a0a2a6602496a45ae838a96db8b8173794b5d398 upstream. The commit 738ac1ebb96d02e0d23bc320302a6ea94c612dec ("net: Clone skb before setting peeked flag") introduced a use

[PATCH 3.19.y-ckt 086/102] rds: fix an integer overflow test in rds_info_getsockopt()

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Dan Carpenter commit 468b732b6f76b138c0926eadf38ac88467dcd271 upstream. "len" is a signed integer. We check that len is not negative, so it goes from zero to INT_MAX. PAGE_SIZE is u

Re: [PATCH 01/11] x86/mm/pat: Don't free PGD entries on memory unmap

2015-09-22 Thread Andy Lutomirski
On Tue, Sep 22, 2015 at 10:41 AM, Linus Torvalds wrote: > On Mon, Sep 21, 2015 at 11:23 PM, Ingo Molnar wrote: >> >> This complicates PGD management, so don't do this. We can keep the >> PGD mapped and the PUD table all clear - it's only a single 4K page >> per 512 GB of memory mapped. > > I'm ok

Re: [PATCH] soc: qcom: Introduce WCNSS_CTRL SMD client

2015-09-22 Thread yfw
On Mon, Sep 21, 2015 at 10:52:55AM -0700, Bjorn Andersson wrote: > The WCNSS_CTRL SMD client is used for among other things upload nv > firmware to a newly booted WCNSS chip. > > Signed-off-by: Bjorn Andersson > --- > This driver probes on the WCNSS_CTRL SMD channel as it comes up upon loading >

[PATCH 3.19.y-ckt 088/102] bridge: netlink: account for the IFLA_BRPORT_PROXYARP attribute size and policy

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Nikolay Aleksandrov commit 355b9f9df1f0311f20087350aee8ad96eedca8a9 upstream. The attribute size wasn't accounted for in the get_slave_size() callback (br_port_get_slave_size) when it

[PATCH 3.19.y-ckt 081/102] ip6_gre: release cached dst on tunnel removal

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: huaibin Wang commit d4257295ba1b389c693b79de857a96e4b7cd8ac0 upstream. When a tunnel is deleted, the cached dst entry should be released. This problem may prevent the removal of a ne

[PATCH 3.19.y-ckt 067/102] ipc/sem.c: update/correct memory barriers

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Manfred Spraul commit 3ed1f8a99d70ea1cd1508910eb107d0edcae5009 upstream. sem_lock() did not properly pair memory barriers: !spin_is_locked() and spin_unlock_wait() are both only cont

[PATCH 3.19.y-ckt 078/102] Add factory recertified Crucial M500s to blacklist

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: "Guillermo A. Amaral" commit 7a7184b01aa9deb86df661c6f7cbcf69a95b728c upstream. The Crucial M500 is known to have issues with queued TRIM commands, the factory recertified SSDs use a

[PATCH 3.19.y-ckt 079/102] arm64: KVM: Fix host crash when injecting a fault into a 32bit guest

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Marc Zyngier commit 126c69a0bd0e441bf6766a5d9bf20de011be9f68 upstream. When injecting a fault into a misbehaving 32bit guest, it seems rather idiotic to also inject a 64bit fault that

[PATCH 3.19.y-ckt 083/102] net: Fix RCU splat in af_key

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: David Ahern commit ba51b6be38c122f7dab40965b4397aaf6188a464 upstream. Hit the following splat testing VRF change for ipsec: [ 113.475692] === [ 113.4761

[PATCH 3.19.y-ckt 073/102] ALSA: usb-audio: Fix runtime PM unbalance

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit 9003ebb13f61e8c78a641e0dda7775183ada0625 upstream. The fix for deadlock in PM in commit [1ee23fe07ee8: ALSA: usb-audio: Fix deadlocks at resuming] introduced a new

Re: [PATCH] MIPS: allow 24Hz timer frequency

2015-09-22 Thread Ralf Baechle
On Tue, Sep 22, 2015 at 10:16:39AM -0700, Paul Burton wrote: > A boundary exists beyond which the timer frequency becomes high enough > that timer interrupts saturate the system and either cause it to slow to > a crawl or stop functioning entirely. Where that boundary lies depends > upon a number

[PATCH 3.19.y-ckt 077/102] ALSA: usb: Add native DSD support for Gustard DAC-X20U

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Jurgen Kramer commit 9544f8b6e2ee9ed02d2322ff018837b185f51d45 upstream. This patch adds native DSD support for the Gustard DAC-X20U. Signed-off-by: Jurgen Kramer Signed-off-by: Taka

[PATCH 3.19.y-ckt 080/102] batman-adv: protect tt_local_entry from concurrent delete events

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Marek Lindner commit ef72706a0543d0c3a5ab29bd6378fdfb368118d9 upstream. The tt_local_entry deletion performed in batadv_tt_local_remove() was neither protecting against simultaneous d

[PATCH 3.19.y-ckt 076/102] PCI: Don't use 64-bit bus addresses on PA-RISC

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Bjorn Helgaas commit 45ea2a5fed6dacb9bb0558d8b21eacc1c45d5bb4 upstream. Meelis and Helge reported that 3a9ad0b4fdcd ("PCI: Add pci_bus_addr_t") caused HPMCs on A500 and hangs on rp547

[PATCH 3.19.y-ckt 075/102] Input: gpio_keys_polled - request GPIO pin as input.

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Vincent Pelletier commit 1ae5ddb6f8837558928a1a694c7b8af7f09fdd21 upstream. GPIOF_IN flag was lost in: Commit 633a21d80b4a("input: gpio_keys_polled: Add support for GPIO descriptors")

[PATCH 3.19.y-ckt 071/102] fnic: Use the local variable instead of I/O flag to acquire io_req_lock in fnic_queuecommand() to avoid deadloack

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Hiral Shah commit db196935d9562abec4510f48d887bc1f1e054fcf upstream. We added changes in fnic driver patch 1.6.0.16 to acquire io_req_lock in fnic_queuecommand() before issuing I/O so

[PATCH 3.19.y-ckt 091/102] rocker: free netdevice during netdevice removal

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Ido Schimmel commit 1ebd47efa4e17391dfac8caa349c6a8d35f996d1 upstream. When removing a port's netdevice in 'rocker_remove_ports', we should also free the allocated 'net_device' struct

[PATCH 3.19.y-ckt 066/102] ipc,sem: fix use after free on IPC_RMID after a task using same semaphore set exits

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: "Herton R. Krzesinski" commit 602b8593d2b4138c10e922eeaafe306f6b51817b upstream. The current semaphore code allows a potential use after free: in exit_sem we may free the task's sem_u

[PATCH 3.19.y-ckt 070/102] drm/i915: Flag the execlists context object as dirty after every use

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Chris Wilson commit 903ecd0bb970438c3a60c2c33ec9032d6443bf67 upstream. Everytime we use the logical context with execlists it becomes dirty (as the hardware will write the new registe

[PATCH 3.19.y-ckt 069/102] x86/ldt: Further fix FPU emulation

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Andy Lutomirski commit 12e244f4b550498bbaf654a52f93633f7dde2dc7 upstream. The previous fix confused a selector with a segment prefix. Fix it. Compile-tested only. Cc: Juergen Gross

Re: [PATCH v5 0/6] irqchip, gicv3: Updates and Cavium ThunderX errata workarounds

2015-09-22 Thread Marc Zyngier
On Tue, 22 Sep 2015 17:57:01 +0100 Marc Zyngier wrote: [Duh. Now with Will and Catalin on CC] > On Mon, 21 Sep 2015 22:58:33 +0200 > Robert Richter wrote: > > > From: Robert Richter > > > > This patch series adds gicv3 updates and workarounds for HW errata in > > Cavium's ThunderX GICV3. > >

[PATCH 3.19.y-ckt 047/102] ipc: modify message queue accounting to not take kernel data structures into account

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Marcus Gelderie commit de54b9ac253787c366bbfb28d901a31954eb3511 upstream. A while back, the message queue implementation in the kernel was improved to use btrees to speed up retrieval

[PATCH 3.19.y-ckt 068/102] MIPS: Fix seccomp syscall argument for MIPS64

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Markos Chandras commit 9f161439e4104b641a7bfb9b89581d801159fec8 upstream. Commit 4c21b8fd8f14 ("MIPS: seccomp: Handle indirect system calls (o32)") fixed indirect system calls on O32

[PATCH 3.19.y-ckt 063/102] crypto: caam - fix memory corruption in ahash_final_ctx

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Horia Geant? commit b310c178e6d897f82abb9da3af1cd7c02b09f592 upstream. When doing pointer operation for accessing the HW S/G table, a value representing number of entries (and not num

[PATCH 3.19.y-ckt 065/102] mm/hwpoison: fix page refcount of unknown non LRU page

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Wanpeng Li commit 4f32be677b124a49459e2603321c7a5605ceb9f8 upstream. After trying to drain pages from pagevec/pageset, we try to get reference count of the page again, however, the re

[PATCH 3.19.y-ckt 061/102] sd: Fix maximum I/O size for BLOCK_PC requests

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: "Martin K. Petersen" commit 4f258a46346c03fa0bbb6199ffaf4e1f9f599660 upstream. Commit bcdb247c6b6a ("sd: Limit transfer length") clamped the maximum size of an I/O request to the MAXI

[PATCH 3.19.y-ckt 042/102] perf: Fix fasync handling on inherited events

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Peter Zijlstra commit fed66e2cdd4f127a43fd11b8d92a99bdd429528c upstream. Vince reported that the fasync signal stuff doesn't work proper for inherited events. So fix that. Installing

[PATCH 02/10] MIPS: CPS: set Status.KX on entry for MIPS64 kernels

2015-09-22 Thread Paul Burton
If the kernel may make use of 64 bit addresses outside of the compatibility address space then we need to set KX such that those accesses can succeed. Do so for MIPS64 kernels. Signed-off-by: Paul Burton --- arch/mips/kernel/cps-vec.S | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-)

[PATCH 3.19.y-ckt 060/102] libfc: Fix fc_fcp_cleanup_each_cmd()

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Bart Van Assche commit 8f2777f53e3d5ad8ef2a176a4463a5c8e1a16431 upstream. Since fc_fcp_cleanup_cmd() can sleep this function must not be called while holding a spinlock. This patch av

Re: [PATCH v2 22/25] powerpc32: move xxxxx_dcache_range() functions inline

2015-09-22 Thread Joakim Tjernlund
On Tue, 2015-09-22 at 18:51 +0200, Christophe Leroy wrote: > flush/clean/invalidate _dcache_range() functions are all very > similar and are quite short. They are mainly used in __dma_sync() > perf_event locate them in the top 3 consumming functions during > heavy ethernet activity > > They are go

[PATCH 3.19.y-ckt 064/102] drm/vmwgfx: Fix execbuf locking issues

2015-09-22 Thread Kamal Mostafa
3.19.8-ckt7 -stable review patch. If anyone has any objections, please let me know. -- From: Thomas Hellstrom commit 3e04e2fe6d87807d27521ad6ebb9e7919d628f25 upstream. This addresses two issues that cause problems with viewperf maya-03 in situation with memory pressure. The

[PATCH 00/10] CPS SMP fixes & debug improvements

2015-09-22 Thread Paul Burton
This series implements some fixes for the CPS SMP implementation on some systems, and improves debug by allowing exceptions to be handled & dumped to an ns16550-compatible UART. Paul Burton (10): MIPS: CPS: set Status.BEV bit during early boot MIPS: CPS: set Status.KX on entry for MIPS64 kerne

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