Re: [PATCH] powerpc/vio: Fix modalias_show return values

2013-10-16 Thread Benjamin Herrenschmidt
On Thu, 2013-10-17 at 04:53 +0100, Ben Hutchings wrote: > Commit e82b89a6f19bae73fb064d1b3dd91fcefbb478f4 introduces a trivial > local denial of service. Oops. Prarit, please send a fix asap ! I'm travelling right now. Thanks ! Ben. > > --- a/arch/powerpc/kernel/vio.c > > +++ b/arch/powerpc/kern

Re: [PATCH] powerpc/vio: Fix modalias_show return values

2013-10-16 Thread Ben Hutchings
Commit e82b89a6f19bae73fb064d1b3dd91fcefbb478f4 introduces a trivial local denial of service. > --- a/arch/powerpc/kernel/vio.c > +++ b/arch/powerpc/kernel/vio.c > @@ -1351,11 +1351,15 @@ static ssize_t modalias_show(struct devi > const char *cp; > > dn = dev->of_node; > - if (!d

RE: patch "Drivers: hv: vmbus: Fix a bug in channel rescind code" added to char-misc tree

2013-10-16 Thread KY Srinivasan
> -Original Message- > From: gre...@linuxfoundation.org [mailto:gre...@linuxfoundation.org] > Sent: Wednesday, October 16, 2013 7:39 PM > To: KY Srinivasan > Cc: stable@vger.kernel.org > Subject: Re: patch "Drivers: hv: vmbus: Fix a bug in channel rescind code" > added > to char-misc tre

RE: [PATCH 1/1] Drivers: hv: vmbus: Fix a bug in channel rescind code

2013-10-16 Thread KY Srinivasan
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Wednesday, October 16, 2013 6:56 PM > To: KY Srinivasan > Cc: stable@vger.kernel.org > Subject: Re: [PATCH 1/1] Drivers: hv: vmbus: Fix a bug in channel rescind code > > On Wed, Oct 16, 2013 at 07:27:19PM -0

Re: patch "Drivers: hv: vmbus: Fix a bug in channel rescind code" added to char-misc tree

2013-10-16 Thread gre...@linuxfoundation.org
On Thu, Oct 17, 2013 at 02:15:15AM +, KY Srinivasan wrote: > > > > -Original Message- > > From: gre...@linuxfoundation.org [mailto:gre...@linuxfoundation.org] > > Sent: Wednesday, October 16, 2013 6:07 PM > > To: KY Srinivasan > > Cc: stable@vger.kernel.org > > Subject: Re: patch "Dri

RE: patch "Drivers: hv: vmbus: Fix a bug in channel rescind code" added to char-misc tree

2013-10-16 Thread KY Srinivasan
> -Original Message- > From: gre...@linuxfoundation.org [mailto:gre...@linuxfoundation.org] > Sent: Wednesday, October 16, 2013 6:07 PM > To: KY Srinivasan > Cc: stable@vger.kernel.org > Subject: Re: patch "Drivers: hv: vmbus: Fix a bug in channel rescind code" > added > to char-misc tre

Re: [PATCH 1/1] Drivers: hv: vmbus: Fix a bug in channel rescind code

2013-10-16 Thread Greg KH
On Wed, Oct 16, 2013 at 07:27:19PM -0700, K. Y. Srinivasan wrote: > Rescind of subchannels were not being correctly handled. Fix the bug. > > Signed-off-by: K. Y. Srinivasan > Cc: [3.11+] > --- > drivers/hv/channel_mgmt.c |5 +++-- > 1 files changed, 3 insertions(+), 2 deletions(-)

[PATCH 1/1] Drivers: hv: vmbus: Fix a bug in channel rescind code

2013-10-16 Thread K. Y. Srinivasan
Rescind of subchannels were not being correctly handled. Fix the bug. Signed-off-by: K. Y. Srinivasan Cc: [3.11+] --- drivers/hv/channel_mgmt.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/hv/channel_mgmt.c b/drivers/hv/channel_mgmt.c index bbff5f2

Re: [PATCH v2] mm: fix aio performance regression for database caused by THP (backport to stable)

2013-10-16 Thread Ben Hutchings
On Tue, 2013-10-15 at 13:46 -0600, Khalid Aziz wrote: > commit 7cb2ef56e6a8b7b368b2e883a0a47d02fed66911 upstream. > Some backport work was needed to account for changes in upstream mm/swap.c. > Reduced indentation level from upstream patch following Kirill's > suggestion. [...] > Cc: # 3.0.x > Cc:

Re: [ 00/69] 3.10.17-stable review

2013-10-16 Thread Greg Kroah-Hartman
On Wed, Oct 16, 2013 at 03:11:46PM -0700, Guenter Roeck wrote: > On Wed, Oct 16, 2013 at 10:44:09AM -0700, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 3.10.17 release. > > There are 69 patches in this series, all will be posted as a response > > to this one.

Re: [ 00/50] 3.11.6-stable review

2013-10-16 Thread Greg Kroah-Hartman
On Wed, Oct 16, 2013 at 03:14:40PM -0700, Guenter Roeck wrote: > On Wed, Oct 16, 2013 at 10:44:46AM -0700, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 3.11.6 release. > > There are 50 patches in this series, all will be posted as a response > > to this one. I

Re: patch "Drivers: hv: vmbus: Fix a bug in channel rescind code" added to char-misc tree

2013-10-16 Thread gre...@linuxfoundation.org
On Thu, Oct 17, 2013 at 12:36:15AM +, KY Srinivasan wrote: > > > > -Original Message- > > From: gre...@linuxfoundation.org [mailto:gre...@linuxfoundation.org] > > Sent: Wednesday, October 16, 2013 1:57 PM > > To: KY Srinivasan; gre...@linuxfoundation.org; stable@vger.kernel.org > > Su

RE: patch "Drivers: hv: vmbus: Fix a bug in channel rescind code" added to char-misc tree

2013-10-16 Thread KY Srinivasan
> -Original Message- > From: gre...@linuxfoundation.org [mailto:gre...@linuxfoundation.org] > Sent: Wednesday, October 16, 2013 1:57 PM > To: KY Srinivasan; gre...@linuxfoundation.org; stable@vger.kernel.org > Subject: patch "Drivers: hv: vmbus: Fix a bug in channel rescind code" added >

[PATCH] drm: allocate crtc mutex separately from crtc

2013-10-16 Thread Ilija Hadzic
Embedding a mutex inside drm_crtc structure evokes a subtle and rare corruption in drm_crtc_helper_set_config failure-recovery path. Namely, if drm_crtc_helper_set_config takes the path under 'fail:' label *and* some other process has attempted to grab the crtc mutex (and got blocked), restoring t

Re: [ 00/50] 3.11.6-stable review

2013-10-16 Thread Guenter Roeck
On Wed, Oct 16, 2013 at 10:44:46AM -0700, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 3.11.6 release. > There are 50 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know.

Re: [ 00/69] 3.10.17-stable review

2013-10-16 Thread Guenter Roeck
On Wed, Oct 16, 2013 at 10:44:09AM -0700, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 3.10.17 release. > There are 69 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know

Re: [v3.10][v3.11][v3.12][Regression][PATCH 1/1] Revert "Revert "drm/i915: revert eDP bpp clamping code changes""

2013-10-16 Thread Daniel Vetter
On Wed, Oct 16, 2013 at 04:34:57PM -0400, Joseph Salisbury wrote: > BugLink: http://bugs.launchpad.net/bugs/1195483 > > This reverts commit 657445fe8660100ad174600ebfa61536392b7624. > > Signed-off-by: Joseph Salisbury > Cc: Daniel Vetter > Cc: Paulo Zanoni > Cc: David Airlie > Cc: stable@vger

patch "Drivers: hv: vmbus: Fix a bug in channel rescind code" added to char-misc tree

2013-10-16 Thread gregkh
This is a note to let you know that I've just added the patch titled Drivers: hv: vmbus: Fix a bug in channel rescind code to my char-misc git tree which can be found at git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git in the char-misc-linus branch. The patch will show

[patch 16/21] writeback: fix negative bdi max pause

2013-10-16 Thread akpm
From: Fengguang Wu Subject: writeback: fix negative bdi max pause Toralf runs trinity on UML/i386. After some time it hangs and the last message line is BUG: soft lockup - CPU#0 stuck for 22s! [trinity-child0:1521] It's found that pages_dirtied becomes very large. More than 10

[patch 20/21] mm: fix BUG in __split_huge_page_pmd

2013-10-16 Thread akpm
From: Hugh Dickins Subject: mm: fix BUG in __split_huge_page_pmd Occasionally we hit the BUG_ON(pmd_trans_huge(*pmd)) at the end of __split_huge_page_pmd(): seen when doing madvise(,,MADV_DONTNEED). It's invalid: we don't always have down_write of mmap_sem there: a racing do_huge_pmd_wp_page() m

[patch 07/21] mm: migration: do not lose soft dirty bit if page is in migration state

2013-10-16 Thread akpm
From: Cyrill Gorcunov Subject: mm: migration: do not lose soft dirty bit if page is in migration state If page migration is turned on in config and the page is migrating, we may lose the soft dirty bit. If fork and mprotect are called on migrating pages (once migration is complete) pages do not

[patch 08/21] mm: /proc/pid/pagemap: inspect _PAGE_SOFT_DIRTY only on present pages

2013-10-16 Thread akpm
From: Cyrill Gorcunov Subject: mm: /proc/pid/pagemap: inspect _PAGE_SOFT_DIRTY only on present pages If a page we are inspecting is in swap we may occasionally report it as having soft dirty bit (even if it is clean). The pte_soft_dirty helper should be called on present pte only. Signed-off-by

[patch 09/21] mm/zswap: bugfix: memory leak when re-swapon

2013-10-16 Thread akpm
From: Weijie Yang Subject: mm/zswap: bugfix: memory leak when re-swapon zswap_tree is not freed when swapoff, and it got re-kmalloced in swapon, so a memory leak occurs. Free the memory of zswap_tree in zswap_frontswap_invalidate_area(). Signed-off-by: Weijie Yang Reviewed-by: Bob Liu Cc: Min

patch "usb: hub: Clear Port Reset Change during init/resume" added to usb tree

2013-10-16 Thread gregkh
This is a note to let you know that I've just added the patch titled usb: hub: Clear Port Reset Change during init/resume to my usb git tree which can be found at git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git in the usb-next branch. The patch will show up in the next rele

[v3.10][v3.11][v3.12][Regression][PATCH 1/1] Revert "Revert "drm/i915: revert eDP bpp clamping code changes""

2013-10-16 Thread Joseph Salisbury
BugLink: http://bugs.launchpad.net/bugs/1195483 This reverts commit 657445fe8660100ad174600ebfa61536392b7624. Signed-off-by: Joseph Salisbury Cc: Daniel Vetter Cc: Paulo Zanoni Cc: David Airlie Cc: stable@vger.kernel.org --- drivers/gpu/drm/i915/intel_dp.c | 18 ++ 1 file

[v3.10][v3.11][v3.12][Regression][PATCH 0/1] Revert "Revert "drm/i915: revert eDP bpp clamping code changes""

2013-10-16 Thread Joseph Salisbury
Hi Daniel, A bug was opened against the Ubuntu kernel[0]. It was found that reverting the following commit resolved this bug: commit 657445fe8660100ad174600ebfa61536392b7624 Author: Daniel Vetter Date: Sat May 4 10:09:18 2013 +0200 Revert "drm/i915: revert eDP bpp clamping code changes"

patch "usb-storage: add quirk for mandatory READ_CAPACITY_16" added to usb tree

2013-10-16 Thread gregkh
This is a note to let you know that I've just added the patch titled usb-storage: add quirk for mandatory READ_CAPACITY_16 to my usb git tree which can be found at git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git in the usb-linus branch. The patch will show up in the next re

patch "usb: serial: option: blacklist Olivetti Olicard200" added to usb tree

2013-10-16 Thread gregkh
This is a note to let you know that I've just added the patch titled usb: serial: option: blacklist Olivetti Olicard200 to my usb git tree which can be found at git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git in the usb-linus branch. The patch will show up in the next relea

patch "USB: quirks: add touchscreen that is dazzeled by remote wakeup" added to usb tree

2013-10-16 Thread gregkh
This is a note to let you know that I've just added the patch titled USB: quirks: add touchscreen that is dazzeled by remote wakeup to my usb git tree which can be found at git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git in the usb-linus branch. The patch will show up in th

patch "serial: vt8500: add missing braces" added to tty tree

2013-10-16 Thread gregkh
This is a note to let you know that I've just added the patch titled serial: vt8500: add missing braces to my tty git tree which can be found at git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git in the tty-linus branch. The patch will show up in the next release of the linux-

[ 01/69] ALSA: snd-usb-usx2y: remove bogus frame checks

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Daniel Mack commit a9d14bc0b188a822e42787d01e56c06fe9750162 upstream. The frame check in i_usX2Y_urb_complete() and i_usX2Y_usbpcm_urb_complete() is bogus and produces false positives as descr

[ 04/69] ALSA: hda - Fix microphone for Sony VAIO Pro 13 (Haswell model)

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: David Henningsson commit 88cfcf86aa3ada84d97195bcad74f4dadb4ae23b upstream. The external mic showed up with a precense detect of "always present", essentially disabling the internal mic. There

[ 05/69] random: run random_int_secret_init() run after all late_initcalls

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Theodore Ts'o commit 47d06e532e95b71c0db3839ebdef3fe8812fca2c upstream. The some platforms (e.g., ARM) initializes their clocks as late_initcalls for some unknown reason. So make sure random_

[ 06/69] vfs: allow O_PATH file descriptors for fstatfs()

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Linus Torvalds commit 9d05746e7b16d8565dddbe3200faa1e669d23bbf upstream. Olga reported that file descriptors opened with O_PATH do not work with fstatfs(), found during further development of

[ 07/69] i2c: omap: Clear ARDY bit twice

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Taras Kondratiuk commit 4cdbf7d346e7461c3b93a26707c852e2c9db3753 upstream. Initially commit cb527ede1bf6ff2008a025606f25344b8ed7b4ac "i2c-omap: Double clear of ARDY status in IRQ handler" adde

[ 32/69] ipc: close open coded spin lock calls

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Davidlohr Bueso commit cf9d5d78d05bca96df7618dfc3a5ee4414dcae58 upstream. Signed-off-by: Davidlohr Bueso Cc: Andi Kleen Cc: Rik van Riel Signed-off-by: Andrew Morton Signed-off-by: Linus T

[ 08/69] hwmon: (applesmc) Always read until end of data

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Henrik Rydberg commit 25f2bd7f5add608c1d1405938f39c96927b275ca upstream. The crash reported and investigated in commit 5f4513 turned out to be caused by a change to the read interface on newer

[ 10/69] ext4: fix memory leak in xattr

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Dave Jones commit 6e4ea8e33b2057b85d75175dd89b93f5e26de3bc upstream. If we take the 2nd retry path in ext4_expand_extra_isize_ea, we potentionally return from the function without having freed

[ 31/69] ipc: introduce ipc object locking helpers

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Davidlohr Bueso commit 1ca7003ab41152d673d9e359632283d05294f3d6 upstream. Simple helpers around the (kern_ipc_perm *)->lock spinlock. Signed-off-by: Davidlohr Bueso Cc: Andi Kleen Cc: Rik v

[ 29/69] drm/radeon: fix hw contexts for SUMO2 asics

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: wojciech kapuscinski commit 50b8f5aec04ebec7dbdf2adb17220b9148c99e63 upstream. They have 4 rather than 8. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=63599 Signed-off-by: wojciech ka

[ 30/69] ipc: move rcu lock out of ipc_addid

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Davidlohr Bueso commit dbfcd91f06f0e2d5564b2fd184e9c2a43675f9ab upstream. This patchset continues the work that began in the sysv ipc semaphore scaling series, see https://lkml.org/lkml/201

[ 03/69] ALSA: hda - Add fixup for ASUS N56VZ

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit c6cc3d58b4042f5cadae653ff8d3df26af1a0169 upstream. ASUS N56VZ needs a fixup for the bass speaker pin, which was already provided via model=asus-mode4. Bugzilla: https://bu

[ 17/69] ARC: Handle zero-overhead-loop in unaligned access handler

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Mischa Jonker commit c11eb222fd7d4db91196121dbf854178505d2751 upstream. If a load or store is the last instruction in a zero-overhead-loop, and it's misaligned, the loop would execute only onc

[ 33/69] ipc: move locking out of ipcctl_pre_down_nolock

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Davidlohr Bueso commit 7b4cc5d8411bd4e9d61d8714f53859740cf830c2 upstream. This function currently acquires both the rw_mutex and the rcu lock on successful lookups, leaving the callers to expl

[ 12/69] parisc: fix interruption handler to respect pagefault_disable()

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Helge Deller commit 59b33f148cc08fb33cbe823fca1e34f7f023765e upstream. Running an "echo t > /proc/sysrq-trigger" crashes the parisc kernel. The problem is, that in print_worker_info() we try

[ 13/69] ARM: Fix the world famous typo with is_gate_vma()

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Russell King commit 1d0bbf428924f94867542d49d436cf254b9dbd06 upstream. Signed-off-by: Russell King Signed-off-by: Greg Kroah-Hartman Cc: Colin Cross Signed-off-by: Greg Kroah-Hartman ---

[ 37/69] ipc,msg: make msgctl_nolock lockless

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Davidlohr Bueso commit ac0ba20ea6f2201a1589d6dc26ad1a4f0f967bb8 upstream. While the INFO cmd doesn't take the ipc lock, the STAT commands do acquire it unnecessarily. We can do the permission

[ 36/69] ipc,msg: introduce lockless functions to obtain the ipc object

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Davidlohr Bueso commit a5001a0d9768568de5d613c3b3a5b9c7721299da upstream. Add msq_obtain_object() and msq_obtain_object_check(), which will allow us to get the ipc object without acquiring the

[ 34/69] ipc,msg: shorten critical region in msgctl_down

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Davidlohr Bueso commit 15724ecb7e9bab35fc694c666ad563adba820cc3 upstream. Instead of holding the ipc lock for the entire function, use the ipcctl_pre_down_nolock and only acquire the lock for

[ 35/69] ipc,msg: introduce msgctl_nolock

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Davidlohr Bueso commit 2cafed30f150f7314f98717b372df8173516cae0 upstream. Similar to semctl, when calling msgctl, the *_INFO and *_STAT commands can be performed without acquiring the ipc obje

[ 16/69] ARC: Fix __udelay calculation

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Mischa Jonker commit 7efd0da2d17360e1cef91507dbe619db0ee2c691 upstream. Cast usecs to u64, to ensure that the (usecs * 4295 * HZ) multiplication is 64 bit. Initially, the (usecs * 4295 * HZ)

[ 14/69] ARC: Setup Vector Table Base in early boot

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Vineet Gupta commit 05b016ecf5e7a8c24409d8e9effb5d2ec9107708 upstream. Otherwise early boot exceptions such as instructions errors due to configuration mismatch between kernel and hardware go

[ 09/69] Btrfs: use right root when checking for hash collision

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Josef Bacik commit 4871c1588f92c6c13f4713a7009f25f217055807 upstream. btrfs_rename was using the root of the old dir instead of the root of the new dir when checking for a hash collision, so i

[ 28/69] drm/radeon: fix typo in CP DMA register headers

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Alex Deucher commit aa3e146d04b6ae37939daeebaec060562b3db559 upstream. Wrong bit offset for SRC endian swapping. Signed-off-by: Alex Deucher Signed-off-by: Greg Kroah-Hartman --- drivers/

[ 43/69] ipc/sem: separate wait-for-zero and alter tasks into seperate queues

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Manfred Spraul commit 1a82e9e1d0f1b45f47a97c9e2349020536ff8987 upstream. Introduce separate queues for operations that do not modify the semaphore values. Advantages: - Simpler logic in che

[ 18/69] ARC: Fix 32-bit wrap around in access_ok()

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Vineet Gupta commit 0752adfda15f0eca9859a76da3db1800e129ad43 upstream. Anton reported | LTP tests syscalls/process_vm_readv01 and process_vm_writev01 fail | similarly in one testcase test_i

[ 22/69] watchdog: ts72xx_wdt: locking bug in ioctl

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Dan Carpenter commit 8612ed0d97abcf1c016d34755b7cf2060de71963 upstream. Calling the WDIOC_GETSTATUS & WDIOC_GETBOOTSTATUS and twice will cause a interruptible deadlock. Signed-off-by: Dan Car

[ 40/69] ipc: remove unused functions

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Davidlohr Bueso commit 9ad66ae65fc8d3e7e3344310fb0aa835910264fe upstream. We can now drop the msg_lock and msg_lock_check functions along with a bogus comment introduced previously in semctl_d

[ 11/69] KVM: PPC: Book3S HV: Fix typo in saving DSCR

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Paul Mackerras commit cfc860253abd73e1681696c08ea268d33285a2c4 upstream. This fixes a typo in the code that saves the guest DSCR (Data Stream Control Register) into the kvm_vcpu_arch struct on

[ 41/69] ipc/util.c, ipc_rcu_alloc: cacheline align allocation

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Manfred Spraul commit 196aa0132fc7261f34b10ae1bfb44abc1bc69b3c upstream. Enforce that ipc_rcu_alloc returns a cacheline aligned pointer on SMP. Rationale: The SysV sem code tries to move the

[ 44/69] ipc/sem.c: always use only one queue for alter operations

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Manfred Spraul commit f269f40ad5aeee229ed70044926f44318abe41ef upstream. There are two places that can contain alter operations: - the global queue: sma->pending_alter - the per-semaphore qu

[ 23/69] compiler/gcc4: Add quirk for asm goto miscompilation bug

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Ingo Molnar commit 3f0116c3238a96bc18ad4b4acefe4e7be32fa861 upstream. Fengguang Wu, Oleg Nesterov and Peter Zijlstra tracked down a kernel crash to a GCC bug: GCC miscompiles certain 'asm goto

[ 46/69] ipc/sem.c: rename try_atomic_semop() to perform_atomic_semop(), docu update

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Manfred Spraul commit 758a6ba39ef6df4cdc615e5edd7bd86eab81a5f7 upstream. Cleanup: Some minor points that I noticed while writing the previous patches 1) The name try_atomic_semop() is mislead

[ 26/69] drm/i915: Only apply DPMS to the encoder if enabled

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Chris Wilson commit c9976dcf55c8aaa7037427b239f15e5acfc01a3a upstream. The current test for an attached enabled encoder fails if we have multiple connectors aliased to the same encoder - both

[ 24/69] ALSA: hda - Fix mono speakers and headset mic on Dell Vostro 5470

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: David Henningsson This is a backport for stable. The original commit SHA is 338cae565c53755de9f87d6a801517940d2d56f7. On this machine, DAC on node 0x03 seems to give mono output. Also, it nee

[ 25/69] cope with potentially long ->d_dname() output for shmem/hugetlb

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Al Viro commit 118b23022512eb2f41ce42db70dc0568d00be4ba upstream. dynamic_dname() is both too much and too little for those - the output may be well in excess of 64 bytes dynamic_dname() assum

[ 27/69] drm/radeon: forever loop on error in radeon_do_test_moves()

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Dan Carpenter commit 89cd67b326fa95872cc2b4524cd807128db6071d upstream. The error path does this: for (--i; i >= 0; --i) { which is a forever loop because "i" is unsigned. Signed-of

[ 39/69] ipc,msg: shorten critical region in msgrcv

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Davidlohr Bueso commit 41a0d523d0f626e9da0dc01de47f1b89058033cf upstream. do_msgrcv() is the last msg queue function that abuses the ipc lock Take it only when needed when actually updating ms

[ 19/69] ARC: Workaround spinlock livelock in SMP SystemC simulation

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Vineet Gupta commit 6c00350b573c0bd3635436e43e8696951dd6e1b6 upstream. Some ARC SMP systems lack native atomic R-M-W (LLOCK/SCOND) insns and can only use atomic EX insn (reg with mem) to build

[ 45/69] ipc/sem.c: replace shared sem_otime with per-semaphore value

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Manfred Spraul commit d12e1e50e47e0900dbbf52237b7e171f4f15ea1e upstream. sem_otime contains the time of the last semaphore operation that completed successfully. Every operation updates this

[ 47/69] ipc/msg.c: Fix lost wakeup in msgsnd().

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Manfred Spraul commit bebcb928c820d0ee83aca4b192adc195e43e66a2 upstream. The check if the queue is full and adding current to the wait queue of pending msgsnd() operations (ss_add()) must be a

[ 49/69] ipc,shm: shorten critical region in shmctl_down

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Davidlohr Bueso commit 79ccf0f8c8e04e8b9eda6645ba0f63b0915a3075 upstream. Instead of holding the ipc lock for the entire function, use the ipcctl_pre_down_nolock and only acquire the lock for

[ 52/69] ipc,shm: make shmctl_nolock lockless

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Davidlohr Bueso commit c97cb9ccab8c85428ec21eff690642ad2ce1fa8a upstream. While the INFO cmd doesn't take the ipc lock, the STAT commands do acquire it unnecessarily. We can do the permission

[ 50/69] ipc: drop ipcctl_pre_down

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Davidlohr Bueso commit 3b1c4ad37741e53804ffe0a30dd01e08b2ab6241 upstream. Now that sem, msgque and shm, through *_down(), all use the lockless variant of ipcctl_pre_down(), go ahead and delete

[ 53/69] ipc,shm: shorten critical region for shmctl

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Davidlohr Bueso commit 2caacaa82a51b78fc0c800e206473874094287ed upstream. With the *_INFO, *_STAT, IPC_RMID and IPC_SET commands already optimized, deal with the remaining SHM_LOCK and SHM_UNL

[ 51/69] ipc,shm: introduce shmctl_nolock

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Davidlohr Bueso commit 68eccc1dc345539d589ae78ee43b835c1a06a134 upstream. Similar to semctl and msgctl, when calling msgctl, the *_INFO and *_STAT commands can be performed without acquiring t

[ 54/69] ipc,shm: cleanup do_shmat pasta

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Davidlohr Bueso commit f42569b1388b1408b574a5e93a23a663647d4181 upstream. Clean up some of the messy do_shmat() spaghetti code, getting rid of out_free and out_put_dentry labels. This makes s

[ 55/69] ipc,shm: shorten critical region for shmat

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Davidlohr Bueso commit c2c737a0461e61a34676bd0bd1bc1a70a1b4e396 upstream. Similar to other system calls, acquire the kern_ipc_perm lock after doing the initial permission and security checks.

[ 57/69] ipc,msg: drop msg_unlock

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Davidlohr Bueso commit 4718787d1f626f45ddb239912bc07266b9880044 upstream. There is only one user left, drop this function and just call ipc_unlock_object() and rcu_read_unlock(). Signed-off-b

[ 48/69] ipc,shm: introduce lockless functions to obtain the ipc object

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Davidlohr Bueso commit 8b8d52ac382b17a19906b930cd69e2edb0aca8ba upstream. This is the third and final patchset that deals with reducing the amount of contention we impose on the ipc lock (kern

[ 58/69] ipc: document general ipc locking scheme

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Davidlohr Bueso commit 05603c44a7627793219b0bd9a7b236099dc9cd9d upstream. As suggested by Andrew, add a generic initial locking scheme used throughout all sysv ipc mechanisms. Documenting the

[ 60/69] ipc: drop ipc_lock_by_ptr

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Davidlohr Bueso commit 32a2750010981216fb788c5190fb0e646abfab30 upstream. After previous cleanups and optimizations, this function is no longer heavily used and we don't have a good reason to

[ 56/69] ipc: rename ids->rw_mutex

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Davidlohr Bueso commit d9a605e40b1376eb02b067d7690580255a0df68f upstream. Since in some situations the lock can be shared for readers, we shouldn't be calling it a mutex, rename it to rwsem.

[ 62/69] ipc: drop ipc_lock_check

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Davidlohr Bueso commit 20b8875abcf2daa1dda5cf70bd6369df5e85d4c1 upstream. No remaining users, we now use ipc_obtain_object_check(). Signed-off-by: Davidlohr Bueso Cc: Sedat Dilek Cc: Rik va

[ 59/69] ipc, shm: guard against non-existant vma in shmdt(2)

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Davidlohr Bueso commit 530fcd16d87cd2417c472a581ba5a1e501556c86 upstream. When !CONFIG_MMU there's a chance we can derefence a NULL pointer when the VM area isn't found - check the return valu

[ 61/69] ipc, shm: drop shm_lock_check

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Davidlohr Bueso commit 7a25dd9e042b2b94202a67e5551112f4ac87285a upstream. This function was replaced by a the lockless shm_obtain_object_check(), and no longer has any users. Signed-off-by: D

[ 63/69] ipc: fix race with LSMs

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Davidlohr Bueso commit 53dad6d3a8e5ac1af8bacc6ac2134ae1a8b085f1 upstream. Currently, IPC mechanisms do security and auditing related checks under RCU. However, since security modules can free

[ 68/69] ipc,msg: prevent race with rmid in msgsnd,msgrcv

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Davidlohr Bueso commit 4271b05a227dc6175b66c3d9941aeab09048aeb2 upstream. This fixes a race in both msgrcv() and msgsnd() between finding the msg and actually dealing with the queue, as anothe

[ 67/69] ipc/sem.c: update sem_otime for all operations

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Manfred Spraul commit 0e8c665699e953fa58dc1b0b0d09e5dce7343cc7 upstream. In commit 0a2b9d4c7967 ("ipc/sem.c: move wake_up_process out of the spinlock section"), the update of semaphore's sem_o

[ 64/69] ipc/sem.c: fix race in sem_lock()

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Manfred Spraul commit 5e9d527591421ccdb16acb8c23662231135d8686 upstream. The exclusion of complex operations in sem_lock() is insufficient: after acquiring the per-semaphore lock, a simple op

[ 66/69] ipc/sem.c: synchronize the proc interface

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Manfred Spraul commit d8c633766ad88527f25d9f81a5c2f083d78a2b39 upstream. The proc interface is not aware of sem_lock(), it instead calls ipc_lock_object() directly. This means that simple sem

[ 69/69] x86: avoid remapping data in parse_setup_data()

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Linn Crosetto commit 30e46b574a1db7d14404e52dca8e1aa5f5155fd2 upstream. Type SETUP_PCI, added by setup_efi_pci(), may advertise a ROM size larger than early_memremap() is able to handle, which

[ 65/69] ipc/sem.c: optimize sem_lock()

2013-10-16 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Manfred Spraul commit 6d07b68ce16ae9535955ba2059dedba5309c3ca1 upstream. Operations that need access to the whole array must guarantee that there are no simple operations ongoing. Right now t

[ 03/50] ALSA: hda - Add fixup for ASUS N56VZ

2013-10-16 Thread Greg Kroah-Hartman
3.11-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit c6cc3d58b4042f5cadae653ff8d3df26af1a0169 upstream. ASUS N56VZ needs a fixup for the bass speaker pin, which was already provided via model=asus-mode4. Bugzilla: https://bu

[ 01/50] ALSA: snd-usb-usx2y: remove bogus frame checks

2013-10-16 Thread Greg Kroah-Hartman
3.11-stable review patch. If anyone has any objections, please let me know. -- From: Daniel Mack commit a9d14bc0b188a822e42787d01e56c06fe9750162 upstream. The frame check in i_usX2Y_urb_complete() and i_usX2Y_usbpcm_urb_complete() is bogus and produces false positives as descr

[ 02/50] ALSA: hda - hdmi: Fix channel map switch not taking effect

2013-10-16 Thread Greg Kroah-Hartman
3.11-stable review patch. If anyone has any objections, please let me know. -- From: Anssi Hannula commit 39edac70e9aedf451fccaa851b273ace9fcca0bd upstream. Currently hdmi_setup_audio_infoframe() reprograms the HDA channel mapping only when the infoframe is not up-to-date or t

[ 00/50] 3.11.6-stable review

2013-10-16 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 3.11.6 release. There are 50 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Fri Oct 18 17:43:24 UTC 2013. Anything receive

[ 07/50] i2c: omap: Clear ARDY bit twice

2013-10-16 Thread Greg Kroah-Hartman
3.11-stable review patch. If anyone has any objections, please let me know. -- From: Taras Kondratiuk commit 4cdbf7d346e7461c3b93a26707c852e2c9db3753 upstream. Initially commit cb527ede1bf6ff2008a025606f25344b8ed7b4ac "i2c-omap: Double clear of ARDY status in IRQ handler" adde

[ 06/50] vfs: allow O_PATH file descriptors for fstatfs()

2013-10-16 Thread Greg Kroah-Hartman
3.11-stable review patch. If anyone has any objections, please let me know. -- From: Linus Torvalds commit 9d05746e7b16d8565dddbe3200faa1e669d23bbf upstream. Olga reported that file descriptors opened with O_PATH do not work with fstatfs(), found during further development of

[ 05/50] random: run random_int_secret_init() run after all late_initcalls

2013-10-16 Thread Greg Kroah-Hartman
3.11-stable review patch. If anyone has any objections, please let me know. -- From: Theodore Ts'o commit 47d06e532e95b71c0db3839ebdef3fe8812fca2c upstream. The some platforms (e.g., ARM) initializes their clocks as late_initcalls for some unknown reason. So make sure random_

  1   2   >