Re: [PATCH 1/1] kernel/fork.c: avoid division by zero

2015-02-16 Thread Vladimir Davydov
On Mon, Feb 16, 2015 at 07:00:44PM +0100, Heinrich Schuchardt wrote: > diff --git a/kernel/fork.c b/kernel/fork.c > index cf65139..71e2583 100644 > --- a/kernel/fork.c > +++ b/kernel/fork.c > @@ -273,7 +273,8 @@ void __init fork_init(unsigned long mempages) >* value: the thread structures

Re: [PATCH v4 2/4] mfd: lubbock_cplds: add lubbock IO board

2015-02-16 Thread Lee Jones
Arnd, Greg, Perhaps you have some ideas WRT programmables (PLDs/CPLDs/FPGAs)? On Mon, 16 Feb 2015, Robert Jarzmik wrote: > Lee Jones wrote: > > What's all this? Please configure your mail client correctly. > > > > For advice, see: > > > > Documentation/email-clients.txt > While at day work,

Re: [PATCH v3 01/15] h8300: Assembly headers.

2015-02-16 Thread Yoshinori Sato
At Sun, 15 Feb 2015 10:11:58 +0100, Geert Uytterhoeven wrote: > > Hi Sato-san, > > On Sun, Feb 15, 2015 at 8:49 AM, Yoshinori Sato > wrote: > > --- /dev/null > > +++ b/arch/h8300/include/asm/io.h > > @@ -0,0 +1,372 @@ > > +#ifndef _H8300_IO_H > > +#define _H8300_IO_H > > + > > +#ifdef

Re: [PATCH v3 05/15] h8300: Process and signal

2015-02-16 Thread Yoshinori Sato
At Sun, 15 Feb 2015 11:33:25 +0100, Paul Bolle wrote: > > On Sun, 2015-02-15 at 17:11 +0900, Yoshinori Sato wrote: > > Sorry. I send too old files. > > This patch is correct. > > > > Signed-off-by: Yoshinori Sato > > --- > > arch/h8300/kernel/process.c | 170 +++ > >

Re: [PATCH v3 05/15] h8300: Process and signal

2015-02-16 Thread Yoshinori Sato
At Sun, 15 Feb 2015 20:38:25 +0100, Richard Weinberger wrote: > > On Sun, Feb 15, 2015 at 8:49 AM, Yoshinori Sato > wrote: > > + usig = current_thread_info()->exec_domain > > + && current_thread_info()->exec_domain->signal_invmap > > + && sig < 32 > > +

Re: [PATCH v3 00/15] Revert h8300 archtecture

2015-02-16 Thread Yoshinori Sato
At Sun, 15 Feb 2015 11:59:19 +0100, Paul Bolle wrote: > > On Sun, 2015-02-15 at 16:49 +0900, Yoshinori Sato wrote: > > Yoshinori Sato (15): > > h8300: Assembly headers. > > h8300: UAPI headers > > h8300: Exception and Interrupt handling > > h8300: kernel booting > > h8300: Process and

Re: [PATCH v3 10/15] h8300: Build scripts

2015-02-16 Thread Yoshinori Sato
At Sun, 15 Feb 2015 20:23:04 +0100, Paul Bolle wrote: > > On Sun, 2015-02-15 at 16:49 +0900, Yoshinori Sato wrote: > > Signed-off-by: Yoshinori Sato > > --- > > arch/h8300/Kconfig | 119 +++ > > arch/h8300/Kconfig.cpu | 136 > >

Re: [PATCH] compat: Fix endian issue in union sigval

2015-02-16 Thread Bamvor Jian Zhang
On 2015/2/13 18:44, Catalin Marinas wrote: > On Fri, Feb 13, 2015 at 04:00:43PM +0800, Bamvor Jian Zhang wrote: >> On 2015/2/11 23:40, Catalin Marinas wrote: >>> On Wed, Feb 11, 2015 at 07:22:08PM +0800, Bamvor Jian Zhang wrote: On 2015/2/10 20:27, Catalin Marinas wrote: > On Tue, Feb 10,

powerpc: fsl,pq2-localbus is broken for ages

2015-02-16 Thread Nikita Yushchenko
Hi arch/powerpc/sysdev/fsl_lbc.c driver claims that it is compatible with fsl,pq2-localbus and fsl,pq2pro-localbus arch/powerpc/sysdev/fsl_lbc.c driver requires irq configured in device tree since very old times (commit 3ab8f2a2 from 2.6.37 times) None of in-tree dts files that have either

Re: [PATCH 02/45] scripts/headers.sh: add verbose option to make calls if defined

2015-02-16 Thread Masahiro Yamada
On Tue, 17 Feb 2015 00:05:05 +0100 Mikko Rapeli wrote: > Useful when debugging the scripts. > > Signed-off-by: Mikko Rapeli > --- > scripts/headers.sh | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/scripts/headers.sh b/scripts/headers.sh > index 95ece06..aa62fd8

Re: [PATCH 01/45] Makefile: propagate verbose options

2015-02-16 Thread Masahiro Yamada
Hi Mikko, On Tue, 17 Feb 2015 00:05:04 +0100 Mikko Rapeli wrote: > Usefull when debugging the make scripts. > > Signed-off-by: Mikko Rapeli > --- > Makefile | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/Makefile b/Makefile > index 4e93284..c1b515d 100644 >

[PATCH 2/2] ocfs2: remove unneeded 'rc' for kfree()

2015-02-16 Thread Daeseok Youn
If kzalloc() is failed, just goto 'out' label and 'out_free' label doesn't need to check 'rc' variable. Signed-off-by: Daeseok Youn --- fs/ocfs2/stack_o2cb.c |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/fs/ocfs2/stack_o2cb.c b/fs/ocfs2/stack_o2cb.c index

[PATCH 1/2] ocfs2: remove useless if statement

2015-02-16 Thread Daeseok Youn
The Local variable "i" in for loop is always less then O2CB_MAP_STABILIZE_COUNT. Signed-off-by: Daeseok Youn --- fs/ocfs2/stack_o2cb.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/ocfs2/stack_o2cb.c b/fs/ocfs2/stack_o2cb.c index 1724d43..813d726 100644 ---

[PATCH V2 1/3] xen: mark pvscsi frontend request consumed only after last read

2015-02-16 Thread Juergen Gross
A request in the ring buffer mustn't be read after it has been marked as consumed. Otherwise it might already have been reused by the frontend without violating the ring protocol. To avoid inconsistencies in the backend only work on a private copy of the request. This will ensure a malicious

[PATCH V2 2/3] xen: scsiback: add LUN of restored domain

2015-02-16 Thread Juergen Gross
When a xen domain is being restored the LUN state of a pvscsi device is "Connected" and not "Initialising" as in case of attaching a new pvscsi LUN. This must be taken into account when adding a new pvscsi device for a domain as otherwise the pvscsi LUN won't be connected to the SCSI target

[PATCH V2 0/3] xen: pvscsi: avoid race, support suspend/resume

2015-02-16 Thread Juergen Gross
In the pvscsi backend copy the frontend request to ensure it is not changed by the frontend during processing it in the backend. Support suspend/resume of the domain to be able to access a pvscsi device n the frontend afterwards. Changes in V2: - changed scsiback_do_cmd_fn() as sugested by Jan

[PATCH V2 3/3] xen: support suspend/resume in pvscsi frontend

2015-02-16 Thread Juergen Gross
Up to now the pvscsi frontend hasn't supported domain suspend and resume. When a domain with an assigned pvscsi device was suspended and resumed again, it was not able to use the device any more: trying to do so resulted in hanging processes. Support suspend and resume of pvscsi devices.

[PATCH v4] modify the IO_TLB_SEGSIZE and IO_TLB_DEFAULT_SIZE configurable as flexible requirement about SW-IOMMU.

2015-02-16 Thread Wang Xiaoming
The maximum of SW-IOMMU is limited to 2^11*128 = 256K. And the size of IO_TLB_DEFAULT_SIZE is limited to (64UL<<20) 64M. While in different platform and different requirement this seems improper. So modifing the IO_TLB_SEGSIZE to io_tlb_segsize and IO_TLB_DEFAULT_SIZE to io_tlb_default_size which

Re: [PATCH 39/45] include/uapi/sound/asequencer.h: include sound/asound.h

2015-02-16 Thread Takashi Iwai
At Tue, 17 Feb 2015 00:05:42 +0100, Mikko Rapeli wrote: > > Fixes userspace compilation error: > error: unknown type name ‘snd_seq_client_type_t’ > snd_seq_client_type_t type; /* client type */ > > Signed-off-by: Mikko Rapeli Applied for 3.21, thanks. Takashi > --- >

Re: [PATCH 35/45] include/uapi/sound/asound.h: include stdlib.h in userspace

2015-02-16 Thread Takashi Iwai
At Tue, 17 Feb 2015 00:05:38 +0100, Mikko Rapeli wrote: > > Fixes compiler errors like: > error: field ‘trigger_tstamp’ has incomplete type > error: invalid application of ‘sizeof’ to incomplete t > ype ‘struct timespec’ > > Signed-off-by: Mikko Rapeli Applied for 3.21, thanks. Takashi >

Re: [PATCH 40/45] include/uapi/sound/emu10k1.h: include sound/asound.h

2015-02-16 Thread Takashi Iwai
At Tue, 17 Feb 2015 00:05:43 +0100, Mikko Rapeli wrote: > > Fixes userspace compilation errors like: > error: field ‘id’ has incomplete type > struct snd_ctl_elem_id id; /* full control ID definition */ > > Signed-off-by: Mikko Rapeli Applied for 3.21, thanks. Takashi > --- >

Re: [PATCH 24/45] hdspm.h: include stdint.h in userspace

2015-02-16 Thread Takashi Iwai
At Tue, 17 Feb 2015 00:05:27 +0100, Mikko Rapeli wrote: > > Fixes compilation error: > > sound/hdspm.h:43:2: error: unknown type name ‘uint32_t’ > > Signed-off-by: Mikko Rapeli Applied for 3.21, thanks. Takashi > --- > include/uapi/sound/hdspm.h | 6 ++ > 1 file changed, 6

Re: [PATCH] compat: Fix endian issue in union sigval

2015-02-16 Thread Bamvor Jian Zhang
On 2015/2/14 19:22, Catalin Marinas wrote: > On Fri, Feb 13, 2015 at 04:56:29PM -0500, Chris Metcalf wrote: >> On 2/13/2015 5:44 AM, Catalin Marinas wrote: >>> On Fri, Feb 13, 2015 at 04:00:43PM +0800, Bamvor Jian Zhang wrote: diff --git a/arch/arm64/kernel/signal32.c

Re: [PATCH 41/45] include/uapi/sound/emu10k1.h: hide gpr_valid, tram_valid and code_valid in userspace

2015-02-16 Thread Takashi Iwai
At Tue, 17 Feb 2015 00:05:44 +0100, Mikko Rapeli wrote: > > The DECLARE_BITMAP macro is not available in userspace headers. > Fixes userspace compile error: > error: expected specifier-qualifier-list before ‘DECLARE_BITMAP’ It's nonsense. This results in an incompatible structure, thus ABI

Re: [PATCHv2 1/2] pci: spear: Use platform_driver_probe instead of platform_driver_register

2015-02-16 Thread Viresh Kumar
On 15 February 2015 at 21:16, Matwey V. Kornilov wrote: > Or maybe it doesn't work at all. It wouldn't have as that wasn't required earlier. But when we are fixing it, we fix it proper. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

[PATCH v4 4/5] usb: dwc3: Add quirk for Synopsis device disconnection errata

2015-02-16 Thread Sneeker Yeh
Synopsis Designware USB3 IP earlier than v3.00a which is configured in silicon with DWC_USB3_SUSPEND_ON_DISCONNECT_EN=1, would need a specific quirk to prevent xhci host controller from dying when device is disconnected. Since DWC_USB3_SUSPEND_ON_DISCONNECT_EN is an IP configuration whose state

[PATCH v4 1/5] xhci: add a quirk for device disconnection errata for Synopsis Designware USB3 core

2015-02-16 Thread Sneeker Yeh
This issue is defined by a three-way race at disconnect, between 1) Class driver interrupt endpoint resheduling attempts if the ISR gave an ep error event due to device detach (it would try 3 times) 2) Disconnect interrupt on PORTSC_CSC, which is cleared by hub thread asynchronously 3) The

[PATCH v4 3/5] usb: dwc3: add revision number DWC3_REVISION_290A and DWC3_REVISION_300A

2015-02-16 Thread Sneeker Yeh
Add the contstant for v2.90a and v3.00a dwc3 IP detection Signed-off-by: Sneeker Yeh --- drivers/usb/dwc3/core.h |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h index d201910..0b3bb0f 100644 --- a/drivers/usb/dwc3/core.h +++

[PATCH v4 5/5] usb: dwc3: add Fujitsu Specific Glue layer

2015-02-16 Thread Sneeker Yeh
This patch adds support for Synopsis DesignWare USB3 IP Core found on Fujitsu Socs. Signed-off-by: Sneeker Yeh --- .../devicetree/bindings/usb/fujitsu-dwc3.txt | 33 drivers/usb/dwc3/Kconfig | 11 ++ drivers/usb/dwc3/Makefile |

[PATCH v4 2/5] xhci: Platform: Set Synopsis device disconnection quirk based on platform data

2015-02-16 Thread Sneeker Yeh
If an xhci platform has Synopsis device disconnection errata then enable XHCI_DISCONNECT_QUIRK quirk flag. Signed-off-by: Sneeker Yeh --- drivers/usb/host/xhci-plat.c |3 +++ include/linux/usb/xhci_pdriver.h |4 2 files changed, 7 insertions(+) diff --git

[PATCH v4 0/5] Add support for Fujitsu USB host controller

2015-02-16 Thread Sneeker Yeh
These patches add support for XHCI compliant Host controller found on Fujitsu Socs, and are based on http://lwn.net/Articles/629162/ The first patch is to add Fujitsu glue layer of Synopsis DesignWare USB3 driver and last four patch is about quirk implementation of errata in Synopsis DesignWare

Re: [patch] perf_event_open.2: Clarify PERF_EVENT_IOC_REFRESH behavior

2015-02-16 Thread Michael Kerrisk (man-pages)
On 02/12/2015 06:14 PM, Vince Weaver wrote: > > Currently the PERF_EVENT_IOC_REFRESH ioctl, when applied to a group > leader, will refresh all children. Also if a refresh value of 0 > is chosen then the refresh becomes infinite (never runs out). > Back in 2011 PAPI was relying on these behaviors

Re: [patch] perf_event_open.2: 3.19 PERF_SAMPLE_REGS_INTR support

2015-02-16 Thread Michael Kerrisk (man-pages)
Hi Stephane (and Jiri), Would you be willing to review/comment on Vince's patch, please. Cheers, Michael On 02/12/2015 06:33 AM, Vince Weaver wrote: > > This manpage patch relates to the addition of PERF_SAMPLE_REGS_INTR > support added in the following commit: > >

Re: [patch] perf_event_open.2: Exclude_host/exclude_guest clarification

2015-02-16 Thread Michael Kerrisk (man-pages)
Hi Joerg, Would you be willing to review/comment on Vince's patch, please. Cheers, Michael On 02/11/2015 08:06 PM, Vince Weaver wrote: > > This patch relates to the exclude_host and exclude_guest bits added > by the following commit: > >exclude_host, exclude_guest; Linux 3.2 >

Re: [patch] perf_event_open.2: Exclude_hv clarification

2015-02-16 Thread Michael Kerrisk (man-pages)
Hi Paul Mackerass, Would you be willing to review/comment on Vince's patch, please. Cheers, Michael On 02/11/2015 08:04 PM, Vince Weaver wrote: > > This manpage patch relates to the exclude_hv bit added to the kernel > in the following commit: > > exclude_hv; Linux 2.6.31 >

[PATCH] zram: use proper type to update max_used_pages

2015-02-16 Thread Joonsoo Kim
max_used_pages are defined as atomic_long_t so we need to use unsigned long to keep temporary value for it rather than int which is smaller than unsigned long in 64 bit system. Signed-off-by: Joonsoo Kim --- drivers/block/zram/zram_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH] mm/memcontrol: fix NULL pointer dereference when use_hierarchy is 0

2015-02-16 Thread Joonsoo Kim
[ 33.608008] IP: [] mem_cgroup_low+0x40/0x90 [ 33.608008] PGD 1d893067 PUD 1cf41067 PMD 0 [ 33.608008] Oops: [#12] SMP [ 33.608008] Modules linked in: [ 33.608008] CPU: 1 PID: 3936 Comm: as Tainted: G D 3.19.0-next-20150216 #156 [ 33.608008] Hardware name: QEMU Standard PC (i440FX

Re: [PATCH 2/3] slub: Support for array operations

2015-02-16 Thread Joonsoo Kim
On Fri, Feb 13, 2015 at 09:49:24AM -0600, Christoph Lameter wrote: > On Fri, 13 Feb 2015, Joonsoo Kim wrote: > > > > + *p++ = freelist; > > > + freelist = get_freepointer(s, freelist); > > > + allocated++; > > > + } > > > > Fetching all

Re: [RFC 13/16] mm/cma: populate ZONE_CMA and use this zone when GFP_HIGHUSERMOVABLE

2015-02-16 Thread Joonsoo Kim
On Sat, Feb 14, 2015 at 02:02:16PM +0900, Gioh Kim wrote: > > > 2015-02-12 오후 4:32에 Joonsoo Kim 이(가) 쓴 글: > > Until now, reserved pages for CMA are managed altogether with normal > > page in the same zone. This approach has numorous problems and fixing > > them isn't easy. To fix this situation,

Re: [RFC 07/16] mm/page_isolation: watch out zone range overlap

2015-02-16 Thread Joonsoo Kim
On Fri, Feb 13, 2015 at 03:40:08PM +0900, Gioh Kim wrote: > > > diff --git a/mm/page_isolation.c b/mm/page_isolation.c > > index c8778f7..883e78d 100644 > > --- a/mm/page_isolation.c > > +++ b/mm/page_isolation.c > > @@ -210,8 +210,8 @@ int undo_isolate_page_range(unsigned long start_pfn, > >

[PATCH] mm/nommu: fix memory leak

2015-02-16 Thread Joonsoo Kim
Maxime reported following memory leak regression due to commit dbc8358c7237 ("mm/nommu: use alloc_pages_exact() rather than its own implementation"). On v3.19, I am facing a memory leak. Each time I run a command one page is lost. Here an example with busybox's free command: / # free

Re: [PATCH 1/3] Slab infrastructure for array operations

2015-02-16 Thread Joonsoo Kim
On Fri, Feb 13, 2015 at 09:47:59AM -0600, Christoph Lameter wrote: > On Fri, 13 Feb 2015, Joonsoo Kim wrote: > > > > I also think that this implementation is slub-specific. For example, > > in slab case, it is always better to access local cpu cache first than > > page allocator since slab doesn't

linux-next: Tree for Feb 17

2015-02-16 Thread Stephen Rothwell
Hi all, Please do not add any material destined for v3.21 to your linux-next included trees until after v3.20-rc1 has been released. Changes since 20150216: The slave-dma tree lost its build failure. Non-merge commits (relative to Linus' tree): 2980 2871 files changed, 124415 insertions

Re: [PATCH V4] tick/hotplug: Handover time related duties before cpu offline

2015-02-16 Thread Michael Ellerman
On Tue, 2015-02-17 at 09:38 +0530, Preeti U Murthy wrote: > On 02/17/2015 07:28 AM, Michael Ellerman wrote: > > On Sat, 2015-01-31 at 09:44 +0530, Preeti U Murthy wrote: > >> These duties include do_timer to update jiffies and broadcast wakeups on > >> those > >> platforms which do not have an

[GIT PULL rcu/next] One more RCU commit for 3.20

2015-02-16 Thread Paul E. McKenney
Hello, Ingo, One more change that I should have included in my last pull, namely a change that prevents a splat seen by Sasha Levin. This commit passes testing (including of course Sasha's), has been exposed to both -next and 0day testing, and is quite small. This change is available in the git

[PATCH] futex: Robustify wake_futex()

2015-02-16 Thread Davidlohr Bueso
Current code assumes that wake_futex() will never fail, thus we are rather sloppy when incrementing the return value in wake related calls, accounting for the newly woken task. Of course this will never occur, thus not a problem. This bug is as real as the need for the redundant pi checks in

Re: [PATCH V4] tick/hotplug: Handover time related duties before cpu offline

2015-02-16 Thread Preeti U Murthy
On 02/17/2015 07:28 AM, Michael Ellerman wrote: > On Sat, 2015-01-31 at 09:44 +0530, Preeti U Murthy wrote: >> These duties include do_timer to update jiffies and broadcast wakeups on >> those >> platforms which do not have an external device to handle wakeup of cpus from >> deep >> idle states.

Re: [PATCH 32/35] clockevents: Fix cpu down race for hrtimer based broadcasting

2015-02-16 Thread Preeti U Murthy
On 02/16/2015 05:45 PM, Peter Zijlstra wrote: >> From: Thomas Gleixner >> @@ -428,7 +428,7 @@ static int __ref _cpu_down(unsigned int >> __cpu_die(cpu); >> >> /* CPU is completely dead: tell everyone. Too late to complain. */ >>- tick_cleanup_dead_cpu(cpu); >>+

Re: [PATCH v2] usb: move definition of PCI_VENDOR_ID_SYNOPSYS to linux/pci_ids.h

2015-02-16 Thread Greg KH
On Mon, Feb 16, 2015 at 07:32:46PM -0700, Joseph Kogut wrote: > Removed FIXME from usb/dwc3/dwc3-pci.c by moving definition of > PCI_VENDOR_ID_SYNOPSYS shared with usb/dwc2 to linux/pci_ids.h. > > Signed-off-by: Joseph Kogut > --- > drivers/usb/dwc2/pci.c | 1 - >

[PATCH v2] x86: Prevent oops with >16 memory controllers

2015-02-16 Thread Daniel J Blueman
When ECC interrupts occur on memory controllers after EDAC_MAX_MCS (16), the kernel fatally dereferences unallocated structures [1]; this occurs on at least NumaConnect systems. Fix by checking if a memory controller info structure was found; candidate for stable. v1->2: Use edac_mc_find() as

Re: [PATCH 3.2 000/152] 3.2.67-rc1 review

2015-02-16 Thread Guenter Roeck
On 02/16/2015 05:46 PM, Ben Hutchings wrote: This is the start of the stable review cycle for the 3.2.67 release. There are 152 patches in this series, which will be posted as responses to this one. If anyone has any issues with these being applied, please let me know. Responses should be made

[PATCH] mm, hugetlb: set PageLRU for in-use/active hugepages

2015-02-16 Thread Naoya Horiguchi
Currently we are not safe from concurrent calls of isolate_huge_page(), which can make the victim hugepage in invalid state and results in BUG_ON(). The root problem of this is that we don't have any information on struct page (so easily accessible) about the hugepage's activeness. Note that

Re: [PATCH v2 0/7] New Lenovos 2015 touchpads: party time!

2015-02-16 Thread Benjamin Tissoires
On Fri, Feb 6, 2015 at 3:04 PM, Benjamin Tissoires wrote: > Hi, > > This is the second episode of the Lenovo 2015 party :) > > Thanks to Andrew, we now have an idea within the driver of what are the extra > buttons aimed for, and the patch series looks cleaner. > Many thanks for your help. > > I

Re: [PATCH 33/35] tick: Make hrtimer broadcasting opt-in

2015-02-16 Thread Preeti U Murthy
On 02/16/2015 05:45 PM, Peter Zijlstra wrote: Reviewed-by: Preeti U Murthy -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at

[PATCH 3.2 148/152] vfs: Fix vfsmount_lock imbalance in path_init()

2015-02-16 Thread Ben Hutchings
3.2.67-rc1 review patch. If anyone has any objections, please let me know. -- From: Ben Hutchings When backporting commit 4023bfc9f351 ("be careful with nd->inode in path_init() and follow_dotdot_rcu()"), I failed to account for the vfsmount_lock that is used in 3.2 but not

[PATCH 3.2 142/152] KEYS: close race between key lookup and freeing

2015-02-16 Thread Ben Hutchings
3.2.67-rc1 review patch. If anyone has any objections, please let me know. -- From: Sasha Levin commit a3a8784454692dd72e5d5d34dcdab17b4420e74c upstream. When a key is being garbage collected, it's key->user would get put before the ->destroy() callback is called, where the

[PATCH 3.2 001/152] eCryptfs: Force RO mount when encrypted view is enabled

2015-02-16 Thread Ben Hutchings
3.2.67-rc1 review patch. If anyone has any objections, please let me know. -- From: Tyler Hicks commit 332b122d39c9cbff8b799007a825d94b2e7c12f2 upstream. The ecryptfs_encrypted_view mount option greatly changes the functionality of an eCryptfs mount. Instead of encrypting and

[PATCH 3.2 146/152] enic: fix rx skb checksum

2015-02-16 Thread Ben Hutchings
3.2.67-rc1 review patch. If anyone has any objections, please let me know. -- From: Govindarajulu Varadarajan <_gov...@gmx.com> [ Upstream commit 17e96834fd35997ca7cdfbf15413bcd5a36ad448 ] Hardware always provides compliment of IP pseudo checksum. Stack expects whole packet

[PATCH 3.2 017/152] bus: omap_l3_noc: Correct returning IRQ_HANDLED unconditionally in the irq handler

2015-02-16 Thread Ben Hutchings
3.2.67-rc1 review patch. If anyone has any objections, please let me know. -- From: Keerthy commit c4cf0935a2d8fe6d186bf4253ea3c4b4a8a8a710 upstream. Correct returning IRQ_HANDLED unconditionally in the irq handler. Return IRQ_NONE for some interrupt which we do not expect to

[PATCH 3.2 010/152] ipv6: mld: fix add_grhead skb_over_panic for devs with large MTUs

2015-02-16 Thread Ben Hutchings
3.2.67-rc1 review patch. If anyone has any objections, please let me know. -- From: Daniel Borkmann commit 4c672e4b42bc8046d63a6eb0a2c6a450a501af32 upstream. It has been reported that generating an MLD listener report on devices with large MTUs (e.g. 9000) and a high number

[PATCH 3.2 013/152] driver core: Fix unbalanced device reference in drivers_probe

2015-02-16 Thread Ben Hutchings
3.2.67-rc1 review patch. If anyone has any objections, please let me know. -- From: Alex Williamson commit 0372ffb35d00288802265586a29c117911d02fb8 upstream. bus_find_device_by_name() acquires a device reference which is never released. This results in an object leak, which

[PATCH 3.2 012/152] UBI: Fix invalid vfree()

2015-02-16 Thread Ben Hutchings
3.2.67-rc1 review patch. If anyone has any objections, please let me know. -- From: Richard Weinberger commit f38aed975c0c3645bbdfc5ebe35726e64caaf588 upstream. The logic of vfree()'ing vol->upd_buf is tied to vol->updating. In ubi_start_update() vol->updating is set long

[PATCH 3.2 003/152] [media] sound: Update au0828 quirks table

2015-02-16 Thread Ben Hutchings
3.2.67-rc1 review patch. If anyone has any objections, please let me know. -- From: Mauro Carvalho Chehab commit 678fa12fb8e75c6dc1e781a02e3ddbbba7e1a904 upstream. The au0828 quirks table is currently not in sync with the au0828 media driver. Syncronize it and put them on

[PATCH 3.2 008/152] ipv4: Remove all uses of LL_ALLOCATED_SPACE

2015-02-16 Thread Ben Hutchings
3.2.67-rc1 review patch. If anyone has any objections, please let me know. -- From: Herbert Xu commit 660882432909dbe611f1792eda158188065cb9f1 upstream. ipv4: Remove all uses of LL_ALLOCATED_SPACE The macro LL_ALLOCATED_SPACE was ill-conceived. It applies the alignment to

[PATCH 3.2 007/152] usb: renesas_usbhs: gadget: fix NULL pointer dereference in ep_disable()

2015-02-16 Thread Ben Hutchings
3.2.67-rc1 review patch. If anyone has any objections, please let me know. -- From: Kazuya Mizuguchi commit 11432050f070810ba139d0226344eef120c3a559 upstream. This patch fixes an issue that the NULL pointer dereference happens when we uses g_audio driver. Since the g_audio

[PATCH 3.2 139/152] s390/3215: fix tty output containing tabs

2015-02-16 Thread Ben Hutchings
3.2.67-rc1 review patch. If anyone has any objections, please let me know. -- From: Martin Schwidefsky commit e512d56c799517f33b301d81e9a5e0ebf30c2d1e upstream. git commit 37f81fa1f63ad38e16125526bb2769ae0ea8d332 "n_tty: do O_ONLCR translation as a single write" surfaced a

[PATCH 3.2 150/152] netfilter: conntrack: disable generic tracking for known protocols

2015-02-16 Thread Ben Hutchings
3.2.67-rc1 review patch. If anyone has any objections, please let me know. -- From: Florian Westphal commit db29a9508a9246e77087c5531e45b2c88ec6988b upstream. Given following iptables ruleset: -P FORWARD DROP -A FORWARD -m sctp --dport 9 -j ACCEPT -A FORWARD -p tcp --dport

[PATCH 3.2 018/152] genhd: check for int overflow in disk_expand_part_tbl()

2015-02-16 Thread Ben Hutchings
3.2.67-rc1 review patch. If anyone has any objections, please let me know. -- From: Jens Axboe commit 5fabcb4c33fe11c7e3afdf805fde26c1a54d0953 upstream. We can get here from blkdev_ioctl() -> blkpg_ioctl() -> add_partition() with a user passed in partno value. If we pass in

[PATCH 3.2 014/152] drbd: merge_bvec_fn: properly remap bvm->bi_bdev

2015-02-16 Thread Ben Hutchings
3.2.67-rc1 review patch. If anyone has any objections, please let me know. -- From: Lars Ellenberg commit 3b9d35d744bb5139f9fed57f38c019bb8c7d351c upstream. This was not noticed for many years. Affects operation if md raid is used a backing device for DRBD. Signed-off-by:

[PATCH 3.2 015/152] PCI: Restore detection of read-only BARs

2015-02-16 Thread Ben Hutchings
3.2.67-rc1 review patch. If anyone has any objections, please let me know. -- From: Myron Stowe commit 36e8164882ca6d3c41cb91e6f09a3ed236841f80 upstream. Commit 6ac665c63dca ("PCI: rewrite PCI BAR reading code") masked off low-order bits from 'l', but not from 'sz'. Both are

[PATCH 3.2 009/152] ipv6: Remove all uses of LL_ALLOCATED_SPACE

2015-02-16 Thread Ben Hutchings
3.2.67-rc1 review patch. If anyone has any objections, please let me know. -- From: Herbert Xu commit a7ae1992248e5cf9dc5bd35695ab846d27efe15f upstream. ipv6: Remove all uses of LL_ALLOCATED_SPACE The macro LL_ALLOCATED_SPACE was ill-conceived. It applies the alignment to

[PATCH 3.2 133/152] net: sctp: fix slab corruption from use after free on INIT collisions

2015-02-16 Thread Ben Hutchings
3.2.67-rc1 review patch. If anyone has any objections, please let me know. -- From: Daniel Borkmann commit 600ddd6825543962fb807884169e57b580dba208 upstream. When hitting an INIT collision case during the 4WHS with AUTH enabled, as already described in detail in commit

[PATCH 3.2 006/152] writeback: fix a subtle race condition in I_DIRTY clearing

2015-02-16 Thread Ben Hutchings
3.2.67-rc1 review patch. If anyone has any objections, please let me know. -- From: Tejun Heo commit 9c6ac78eb3521c5937b2dd8a7d1b300f41092f45 upstream. After invoking ->dirty_inode(), __mark_inode_dirty() does smp_mb() and tests inode->i_state locklessly to see whether it

[PATCH 3.2 131/152] drm/i915: Only fence tiled region of object.

2015-02-16 Thread Ben Hutchings
3.2.67-rc1 review patch. If anyone has any objections, please let me know. -- From: Bob Paauwe commit af1a7301c7cf8912dca03065d448c4437c5c239f upstream. When creating a fence for a tiled object, only fence the area that makes up the actual tiles. The object may be larger

[PATCH 3.2 137/152] Revert "x86, 64bit, mm: Mark data/bss/brk to nx"

2015-02-16 Thread Ben Hutchings
3.2.67-rc1 review patch. If anyone has any objections, please let me know. -- From: Ben Hutchings This reverts commit e105c8187b7101e8a8a54ac0218c9d9c9463c636 which was commit 72212675d1c96f5db8ec6fb35701879911193158 upstream. This caused suspend/resume to stop working on at

[PATCH 3.2 005/152] writeback: Move I_DIRTY_PAGES handling

2015-02-16 Thread Ben Hutchings
3.2.67-rc1 review patch. If anyone has any objections, please let me know. -- From: Jan Kara commit 6290be1c1dc6589eeda213aa40946b27fa4faac8 upstream. Instead of clearing I_DIRTY_PAGES and resetting it when we didn't succeed in writing them all, just clear the bit only when

[PATCH 3.2 117/152] gpio: sysfs: fix gpio attribute-creation race

2015-02-16 Thread Ben Hutchings
3.2.67-rc1 review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit ebbeba120ab2ec6ac5f3afc1425ec6ff0b77ad6f upstream. Fix attribute-creation race with userspace by using the default group to create also the contingent gpio device

[PATCH 3.2 002/152] [media] sound: simplify au0828 quirk table

2015-02-16 Thread Ben Hutchings
3.2.67-rc1 review patch. If anyone has any objections, please let me know. -- From: Mauro Carvalho Chehab commit 5d1f00a20d2d56ed480e64e938a2391353ee565b upstream. Add a macro to simplify au0828 quirk table. That makes easier to check it against the USB IDs at

[PATCH 3.2 143/152] netfilter: ipset: small potential read beyond the end of buffer

2015-02-16 Thread Ben Hutchings
3.2.67-rc1 review patch. If anyone has any objections, please let me know. -- From: Dan Carpenter commit 2196937e12b1b4ba139806d132647e1651d655df upstream. We could be reading 8 bytes into a 4 byte buffer here. It seems harmless but adding a check is the right thing to do

[PATCH 3.2 136/152] Revert "x86, mm: Set NX across entire PMD at boot"

2015-02-16 Thread Ben Hutchings
3.2.67-rc1 review patch. If anyone has any objections, please let me know. -- From: Ben Hutchings This reverts commit a5c187d92d2ce30315f333b9dff33af832e8b443 which was commit 45e2a9d4701d8c624d4a4bcdd1084eae31e92f58 upstream. The previous commit caused suspend/resume to stop

[PATCH 3.2 141/152] fsnotify: next_i is freed during fsnotify_unmount_inodes.

2015-02-16 Thread Ben Hutchings
3.2.67-rc1 review patch. If anyone has any objections, please let me know. -- From: Jerry Hoemann commit 6424babfd68dd8a83d9c60a5242d27038856599f upstream. During file system stress testing on 3.10 and 3.12 based kernels, the umount command occasionally hung in

[PATCH 3.2 119/152] ALSA: usb-audio: Add mic volume fix quirk for Logitech Webcam C210

2015-02-16 Thread Ben Hutchings
3.2.67-rc1 review patch. If anyone has any objections, please let me know. -- From: Jason Lee Cragg commit 6455931186bff407493135e74c5f32efd30860e2 upstream. Signed-off-by: Jason Lee Cragg Signed-off-by: Takashi Iwai Signed-off-by: Ben Hutchings --- sound/usb/mixer.c | 1

[PATCH 3.2 122/152] libata: prevent HSM state change race between ISR and PIO

2015-02-16 Thread Ben Hutchings
3.2.67-rc1 review patch. If anyone has any objections, please let me know. -- From: David Jeffery commit ce7514526742c0898b837d4395f515b79dfb5a12 upstream. It is possible for ata_sff_flush_pio_task() to set ap->hsm_task_state to HSM_ST_IDLE in between the time

[PATCH 3.2 124/152] x86, tls, ldt: Stop checking lm in LDT_empty

2015-02-16 Thread Ben Hutchings
3.2.67-rc1 review patch. If anyone has any objections, please let me know. -- From: Andy Lutomirski commit e30ab185c490e9a9381385529e0fd32f0a399495 upstream. 32-bit programs don't have an lm bit in their ABI, so they can't reliably cause LDT_empty to return true without

[PATCH 3.2 144/152] dcache: Fix locking bugs in backported "deal with deadlock in d_walk()"

2015-02-16 Thread Ben Hutchings
3.2.67-rc1 review patch. If anyone has any objections, please let me know. -- From: Ben Hutchings Steven Rostedt reported: > Porting -rt to the latest 3.2 stable tree I triggered this bug: > > = > [ BUG: bad unlock balance detected! ] >

[PATCH 3.2 138/152] ACPI / EC: Fix regression due to conflicting firmware behavior between Samsung and Acer.

2015-02-16 Thread Ben Hutchings
3.2.67-rc1 review patch. If anyone has any objections, please let me know. -- From: Lv Zheng commit 79149001105f18bd2285ada109f9229ea24a7571 upstream. It is reported that Samsung laptops that need to poll events are broken by the following commit: Commit

[PATCH 3.2 132/152] ALSA: seq-dummy: remove deadlock-causing events on close

2015-02-16 Thread Ben Hutchings
3.2.67-rc1 review patch. If anyone has any objections, please let me know. -- From: Clemens Ladisch commit 0767e95bb96d7fdddcd590fb809e6975d93aebc5 upstream. When the last subscriber to a "Through" port has been removed, the subscribed destination ports might still be active,

[PATCH 3.2 127/152] nl80211: fix per-station group key get/del and memory leak

2015-02-16 Thread Ben Hutchings
3.2.67-rc1 review patch. If anyone has any objections, please let me know. -- From: Johannes Berg commit 0fa7b39131576dd1baa6ca17fca53c65d7f62249 upstream. In case userspace attempts to obtain key information for or delete a unicast key, this is currently erroneously rejected

[PATCH 3.2 114/152] gpiolib: Refactor gpio_export

2015-02-16 Thread Ben Hutchings
3.2.67-rc1 review patch. If anyone has any objections, please let me know. -- From: Ryan Mallon commit fc4e2514995d9cd7f3e1a67098ce65d72acf8ec7 upstream. The gpio_export function uses nested if statements and the status variable to handle the failure cases. This makes the

[PATCH 3.2 004/152] [media] af9005: fix kernel panic on init if compiled without IR

2015-02-16 Thread Ben Hutchings
3.2.67-rc1 review patch. If anyone has any objections, please let me know. -- From: Frank Schaefer commit 2279948735609d0d17d7384e776b674619f792ef upstream. This patches fixes an ancient bug in the dvb_usb_af9005 driver, which has been reported at least in the following

[PATCH 3.2 016/152] scsi: correct return values for .eh_abort_handler implementations

2015-02-16 Thread Ben Hutchings
3.2.67-rc1 review patch. If anyone has any objections, please let me know. -- From: Hannes Reinecke commit b6c92b7e0af575e2b8b05bdf33633cf9e1661cbf upstream. The .eh_abort_handler needs to return SUCCESS, FAILED, or FAST_IO_FAIL. So fixup all callers to adhere to this

[PATCH 3.2 147/152] net/core: Handle csum for CHECKSUM_COMPLETE VXLAN forwarding

2015-02-16 Thread Ben Hutchings
3.2.67-rc1 review patch. If anyone has any objections, please let me know. -- From: Jay Vosburgh [ Upstream commit 2c26d34bbcc0b3f30385d5587aa232289e2eed8e ] When using VXLAN tunnels and a sky2 device, I have experienced checksum failures of the following type: [

[PATCH 3.2 134/152] vm: add VM_FAULT_SIGSEGV handling support

2015-02-16 Thread Ben Hutchings
3.2.67-rc1 review patch. If anyone has any objections, please let me know. -- From: Linus Torvalds commit 33692f27597fcab536d7cbbcc8f52905133e4aa7 upstream. The core VM already knows about VM_FAULT_SIGBUS, but cannot return a "you should SIGSEGV" error, because the SIGSEGV

Re: [PATCH 1/1] ptrace/x86: fix the TIF_FORCED_TF logic in handle_signal()

2015-02-16 Thread Andres Freund
Hi, Could this patch please be picked up? I very regularly hit the problems caused due to this in gdb (just single step out of a system call that returns due to EINTR to reproduce and then single step some more...). I've first spent an embarassing amount of time trying to figure out what's

[PATCH 3.2 111/152] sysfs.h: add ATTRIBUTE_GROUPS() macro

2015-02-16 Thread Ben Hutchings
3.2.67-rc1 review patch. If anyone has any objections, please let me know. -- From: Greg Kroah-Hartman commit f2f37f58b1b933b06d6d84e80a31a1b500fb0db2 upstream. To make it easier for driver subsystems to work with attribute groups, create the ATTRIBUTE_GROUPS macro to remove

[PATCH 3.2 140/152] x86, cpu, amd: Add workaround for family 16h, erratum 793

2015-02-16 Thread Ben Hutchings
3.2.67-rc1 review patch. If anyone has any objections, please let me know. -- From: Borislav Petkov commit 3b56496865f9f7d9bcb2f93b44c63f274f08e3b6 upstream. This adds the workaround for erratum 793 as a precaution in case not every BIOS implements it. This addresses

[PATCH 3.2 129/152] usb-core bInterval quirk

2015-02-16 Thread Ben Hutchings
3.2.67-rc1 review patch. If anyone has any objections, please let me know. -- From: James P Michels III commit cd83ce9e6195aa3ea15ab4db92892802c20df5d0 upstream. This patch adds a usb quirk to support devices with interupt endpoints and bInterval values expressed as

[PATCH 3.2 120/152] libata: allow sata_sil24 to opt-out of tag ordered submission

2015-02-16 Thread Ben Hutchings
3.2.67-rc1 review patch. If anyone has any objections, please let me know. -- From: Dan Williams commit 72dd299d5039a336493993dcc63413cf31d0e662 upstream. Ronny reports: https://bugzilla.kernel.org/show_bug.cgi?id=87101 "Since commit 8a4aeec8d "libata/ahci: accommodate

[PATCH 3.2 126/152] x86, tls: Interpret an all-zero struct user_desc as "no segment"

2015-02-16 Thread Ben Hutchings
3.2.67-rc1 review patch. If anyone has any objections, please let me know. -- From: Andy Lutomirski commit 3669ef9fa7d35f573ec9c0e0341b29251c2734a7 upstream. The Witcher 2 did something like this to allocate a TLS segment index: struct user_desc u_info;

[PATCH 3.2 110/152] can: dev: fix crtlmode_supported check

2015-02-16 Thread Ben Hutchings
3.2.67-rc1 review patch. If anyone has any objections, please let me know. -- From: Oliver Hartkopp commit 9b1087aa5e86448fe6ad40a58964e35f3ba423d5 upstream. When changing flags in the CAN drivers ctrlmode the provided new content has to be checked whether the bits are

  1   2   3   4   5   6   7   8   9   10   >