linux-next: manual merge of the pm tree with the pci tree

2013-01-09 Thread Stephen Rothwell
Hi Rafael, Today's linux-next merge of the pm tree got a conflict in drivers/acpi/pci_root.c between commit 3c449ed00759 ("PCI/ACPI: Reserve firmware-allocated resources for hot-added root buses") from the pci tree and commit 47525cda88f5 ("ACPI / PCI: Fold acpi_pci_root_start() into

RE: [PATCH] Bluetooth: fix the oops due to conn->hcon == NULL in shutdown case

2013-01-09 Thread Liu, Chuansheng
Hi Gustavo, > -Original Message- > From: Gustavo Padovan [mailto:gust...@padovan.org] > Sent: Thursday, January 10, 2013 4:35 AM > To: Liu, Chuansheng > Cc: mar...@holtmann.org; johan.hedb...@gmail.com; > linux-blueto...@vger.kernel.org; linux-kernel@vger.kernel.org > Subject: Re: [PATCH]

Re: [PATCH 2/2] mm: forcely swapout when we are out of page cache

2013-01-09 Thread Andrew Morton
On Wed, 9 Jan 2013 15:21:14 +0900 Minchan Kim wrote: > If laptop_mode is enable, VM try to avoid I/O for saving the power. > But if there isn't reclaimable memory without I/O, we should do I/O > for preventing unnecessary OOM kill although we sacrifices power. > > One of example is that we are

[PATCH 4/6][v3] perf/POWER7: Make some POWER7 events available in sysfs

2013-01-09 Thread sukadev
Make some POWER7-specific perf events available in sysfs. $ /bin/ls -1 /sys/bus/event_source/devices/cpu/events/ branch-instructions branch-misses cache-misses cache-references cpu-cycles instructions PM_BRU_FIN PM_BRU_MPRED

[PATCH 2/6][v3] perf: Make EVENT_ATTR global

2013-01-09 Thread sukadev
Rename EVENT_ATTR() to PMU_EVENT_ATTR() and make it global so it is available to all architectures. Further to allow architectures flexibility, have PMU_EVENT_ATTR() pass in the variable name as a parameter. Changelog[v3] - [Jiri Olsa] No need to define PMU_EVENT_PTR() Signed-off-by:

Re: [PATCH 1/2] mm: prevent to add a page to swap if may_writepage is unset

2013-01-09 Thread Andrew Morton
On Wed, 9 Jan 2013 15:21:13 +0900 Minchan Kim wrote: > --- a/mm/vmscan.c > +++ b/mm/vmscan.c > @@ -780,6 +780,8 @@ static unsigned long shrink_page_list(struct list_head > *page_list, > if (PageAnon(page) && !PageSwapCache(page)) { > if (!(sc->gfp_mask &

[PATCH 5/6][v3] perf: Create a sysfs entry for Power event format

2013-01-09 Thread sukadev
Create a sysfs entry, '/sys/bus/event_source/devices/cpu/format/event' which describes the format of a POWER cpu. The format of the event is the same for all POWER cpus at least in (Power6, Power7), so bulk of this change is common in the code common to POWER cpus. This code is based on

[PATCH 3/6][v3] perf/POWER7: Make generic event translations available in sysfs

2013-01-09 Thread sukadev
Make the generic perf events in POWER7 available via sysfs. $ ls /sys/bus/event_source/devices/cpu/events branch-instructions branch-misses cache-misses cache-references cpu-cycles instructions stalled-cycles-backend

[PATCH 1/6][v3] perf/Power7: Use macros to identify perf events

2013-01-09 Thread sukadev
Define and use macros to identify perf events codes. This would make it easier and more readable when these event codes need to be used in more than one place. Signed-off-by: Sukadev Bhattiprolu --- arch/powerpc/perf/power7-pmu.c | 28 1 files changed, 20

Re: [PATCH 1/2] mm: prevent to add a page to swap if may_writepage is unset

2013-01-09 Thread Andrew Morton
On Wed, 9 Jan 2013 15:21:13 +0900 Minchan Kim wrote: > Recently, Luigi reported there are lots of free swap space when > OOM happens. It's easily reproduced on zram-over-swap, where > many instance of memory hogs are running and laptop_mode is enabled. > > Luigi reported there was no problem

Re: [PATCH 01/23] uvc: Replace memcpy with struct assignment

2013-01-09 Thread Laurent Pinchart
Hi Ezequiel, On Thursday 27 December 2012 21:49:37 Mauro Carvalho Chehab wrote: > Em Thu, 27 Dec 2012 18:12:46 -0300 Ezequiel Garcia escreveu: > > On Tue, Oct 23, 2012 at 4:57 PM, Ezequiel Garcia wrote: > > > This kind of memcpy() is error-prone. Its replacement with a struct > > > assignment is

Re: ALSA: Conexant CX20585 (thinkpad t510) speaker powersave regression

2013-01-09 Thread Kevin Fenzi
On Tue, 08 Jan 2013 16:26:38 +0100 Takashi Iwai wrote: > It's a known problem that some people have already reported, but > currently no clue who actually turns down the pin to D3. > Conexant guys wrote me that the codec doesn't do it by itself, and the > driver neither, AFAIK. A possible

Re: [Alternative][PATCH] ACPI / PCI: Set root bridge ACPI handle in advance, v2

2013-01-09 Thread Rafael J. Wysocki
On Wednesday, January 09, 2013 03:27:29 PM Yinghai Lu wrote: > On Wed, Jan 9, 2013 at 3:06 PM, Rafael J. Wysocki wrote: > > On Wednesday, January 09, 2013 03:16:59 PM Bjorn Helgaas wrote: > >> On Wed, Jan 9, 2013 at 2:33 PM, Rafael J. Wysocki wrote: > >> > From: Rafael J. Wysocki > >> > > >> >

Re: [PATCH v6 00/15] memory-hotplug: hot-remove physical memory

2013-01-09 Thread Andrew Morton
On Wed, 9 Jan 2013 17:32:24 +0800 Tang Chen wrote: > This patch-set aims to implement physical memory hot-removing. As you were on th patch delivery path, all of these patches should have your Signed-off-by:. But some were missing it. I fixed this in my copy of the patches. I suspect this

Re: [Alternative][PATCH] ACPI / PCI: Set root bridge ACPI handle in advance, v2

2013-01-09 Thread Yinghai Lu
On Wed, Jan 9, 2013 at 3:06 PM, Rafael J. Wysocki wrote: > On Wednesday, January 09, 2013 03:16:59 PM Bjorn Helgaas wrote: >> On Wed, Jan 9, 2013 at 2:33 PM, Rafael J. Wysocki wrote: >> > From: Rafael J. Wysocki >> > >> > The ACPI handles of PCI root bridges need to be known to >> >

Re: rwlock_t unfairness and tasklist_lock

2013-01-09 Thread Michel Lespinasse
On Wed, Jan 9, 2013 at 9:49 AM, Oleg Nesterov wrote: > On 01/08, Michel Lespinasse wrote: >> Like others before me, I have discovered how easy it is to DOS a >> system by abusing the rwlock_t unfairness and causing the >> tasklist_lock read side to be continuously held > > Yes. Plus it has

Re: [PATCH v6 04/15] memory-hotplug: remove /sys/firmware/memmap/X sysfs

2013-01-09 Thread Andrew Morton
On Wed, 9 Jan 2013 17:32:28 +0800 Tang Chen wrote: > From: Yasuaki Ishimatsu > > When (hot)adding memory into system, /sys/firmware/memmap/X/{end, start, type} > sysfs files are created. But there is no code to remove these files. The patch > implements the function to remove them. > > Note:

Re: [PATCH 05/14] lib: Add I/O map cache implementation

2013-01-09 Thread Jason Gunthorpe
On Wed, Jan 09, 2013 at 04:12:31PM -0700, Stephen Warren wrote: > On 01/09/2013 03:10 PM, Arnd Bergmann wrote: > > On Wednesday 09 January 2013, Thierry Reding wrote: > >> What happens on Tegra is that we need to map 256 MiB of physical memory > >> to access all the PCIe extended configuration

Re: [PATCH 05/14] lib: Add I/O map cache implementation

2013-01-09 Thread Stephen Warren
On 01/09/2013 03:10 PM, Arnd Bergmann wrote: > On Wednesday 09 January 2013, Thierry Reding wrote: >> What happens on Tegra is that we need to map 256 MiB of physical memory >> to access all the PCIe extended configuration space. However, ioremap() >> on such a large region fails if not enough

[PATCH 4/5] alternatives: constify alternatives_text_reserved

2013-01-09 Thread Sasha Levin
Signed-off-by: Sasha Levin --- arch/x86/include/asm/alternative.h | 4 ++-- arch/x86/kernel/alternative.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/x86/include/asm/alternative.h b/arch/x86/include/asm/alternative.h index 58ed6d9..4d0d2fb 100644 ---

[char-misc-next] mei: drop the warning when cl is not initialized during unlinking

2013-01-09 Thread Tomas Winkler
On systems where wd and amthif is not initialized we will hit cl->dev == NULL. This condition is okay so we don't need to be laud about it. Fixes the follwing warning during suspend [ 137.061985] WARNING: at drivers/misc/mei/client.c:315 mei_cl_unlink+0x86/0x90 [mei]() [ 137.061986] Hardware

Re: [PATCH v6 02/15] memory-hotplug: check whether all memory blocks are offlined or not when removing memory

2013-01-09 Thread Andrew Morton
On Wed, 9 Jan 2013 17:32:26 +0800 Tang Chen wrote: > We remove the memory like this: > 1. lock memory hotplug > 2. offline a memory block > 3. unlock memory hotplug > 4. repeat 1-3 to offline all memory blocks > 5. lock memory hotplug > 6. remove memory(TODO) > 7. unlock memory hotplug > > All

[PATCH 2/5] jump label: constify lookup functions

2013-01-09 Thread Sasha Levin
Modify the parameters of all the lookup and the bookkeeping functions which should be const to const. For example, jump_label_text_reserved() doesn't modify the memory it works on, it just checks whether there are any jump labels there. Note I couldn't test the non-x86 architectures, but the

[PATCH 5/5] ftrace: constify ftrace_text_reserved

2013-01-09 Thread Sasha Levin
Signed-off-by: Sasha Levin --- include/linux/ftrace.h | 4 ++-- kernel/trace/ftrace.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index 92691d8..cbd927f 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h @@

[PATCH 1/5] module: constify within_module_*

2013-01-09 Thread Sasha Levin
These helper functions just check a set intersection with a range, and don't actually modify struct module. Signed-off-by: Sasha Levin --- include/linux/module.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/module.h b/include/linux/module.h index

[PATCH 3/5] kprobes: constify check_kprobe_address_safe and friends

2013-01-09 Thread Sasha Levin
Constify the parameters of lookup functions. Signed-off-by: Sasha Levin --- arch/x86/kernel/kprobes-opt.c | 8 kernel/kprobes.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/x86/kernel/kprobes-opt.c b/arch/x86/kernel/kprobes-opt.c index

Re: USB autosuspend vs. URB submission

2013-01-09 Thread Laurent Pinchart
Hi Josh, On Tuesday 08 January 2013 11:03:22 Josh Boyer wrote: > On Tue, Jan 08, 2013 at 10:51:20AM -0500, Alan Stern wrote: > > On Mon, 7 Jan 2013, Josh Boyer wrote: > > > Hi, > > > > > > We've had a few reports in Fedora of users hitting the WARN_ONCE in > > > drivers/usb/core/urb.c that

Re: [Alternative][PATCH] ACPI / PCI: Set root bridge ACPI handle in advance, v2

2013-01-09 Thread Rafael J. Wysocki
On Wednesday, January 09, 2013 03:16:59 PM Bjorn Helgaas wrote: > On Wed, Jan 9, 2013 at 2:33 PM, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > The ACPI handles of PCI root bridges need to be known to > > acpi_bind_one(), so that it can create the appropriate > > "firmware_node"

Re: [PATCH v7u1 09/31] x86, 64bit: #PF handler set page to cover 2M only

2013-01-09 Thread Borislav Petkov
On Thu, Jan 03, 2013 at 04:48:29PM -0800, Yinghai Lu wrote: > Now #PF hanlder could map 1G per #PF, That causes same problem that > is fixed by > x86, mm: Only direct map addresses that are marked as E820_RAM > > only add one 2M mapping instead of 1G accessing one time for dynamically > per

Re: [PATCH] mm: wait for congestion to clear on all zones

2013-01-09 Thread Zlatko Calusic
On 09.01.2013 22:48, Andrew Morton wrote: On Wed, 09 Jan 2013 22:41:48 +0100 Zlatko Calusic wrote: Currently we take a short nap (HZ/10) and wait for congestion to clear before taking another pass with lower priority in balance_pgdat(). But we do that only for the highest zone that we

Re: [PATCH v6 05/15] memory-hotplug: introduce new function arch_remove_memory() for removing page table depends on architecture

2013-01-09 Thread Andrew Morton
On Wed, 9 Jan 2013 17:32:29 +0800 Tang Chen wrote: > For removing memory, we need to remove page table. But it depends > on architecture. So the patch introduce arch_remove_memory() for > removing page table. Now it only calls __remove_pages(). > > Note: __remove_pages() for some archtecuture

Re: [PATCH v6 04/15] memory-hotplug: remove /sys/firmware/memmap/X sysfs

2013-01-09 Thread Andrew Morton
On Wed, 9 Jan 2013 17:32:28 +0800 Tang Chen wrote: > When (hot)adding memory into system, /sys/firmware/memmap/X/{end, start, type} > sysfs files are created. But there is no code to remove these files. The patch > implements the function to remove them. > > Note: The code does not free

Re: sd8688 firmware location

2013-01-09 Thread Dan Williams
On Wed, 2013-01-09 at 00:56 +0100, Lubomir Rintel wrote: > Hi! > > btmrvl_sdio and libertas_sdio both use firmware files sd8688.bin and > sd8688_helper.bin. In linux-firmware, they're present in libertas/ tree and > (since 3d32a58b) libertas_sdio perfers loading it from there, while it is able >

[PATCH v2] powerpc/mm: eliminate unneeded for_each_memblock

2013-01-09 Thread Cody P Schafer
The only persistent change made by this loop is calling memblock_set_node() once for each memblock, which is not useful (and has no effect) as memblock_set_node() is not called with any memblock-specific parameters. Subsistute a single memblock_set_node(). Signed-off-by: Cody P Schafer --- Now

Re: [PATCH 03/10] goldfish: tty driver

2013-01-09 Thread Arnd Bergmann
On Wednesday 09 January 2013, Alan Cox wrote: > +static int __devinit goldfish_tty_probe(struct platform_device *pdev) > +{ > + struct goldfish_tty *qtty; > ... > + > +static int __init goldfish_tty_init(void) > +{ > + return platform_driver_register(_tty_platform_driver); > +} > + >

Re: [PATCH 02/10] goldfish: add the goldfish virtual bus

2013-01-09 Thread Arnd Bergmann
On Wednesday 09 January 2013, Alan Cox wrote: > From: Jun Nakajima > > This imports the current Google code and cleans it up slightly to use pr_ and > to properly request its resources. > > Goldfish is an emulator used for Android development. It has a virtual bus > where > the emulator passes

Re: [PATCH v6 00/15] memory-hotplug: hot-remove physical memory

2013-01-09 Thread Andrew Morton
On Wed, 9 Jan 2013 17:32:24 +0800 Tang Chen wrote: > Here is the physical memory hot-remove patch-set based on 3.8rc-2. > > This patch-set aims to implement physical memory hot-removing. > > The patches can free/remove the following things: > > - /sys/firmware/memmap/X/{end, start, type} :

Re: [PATCH 1/2] Add mempressure cgroup

2013-01-09 Thread Tejun Heo
Hello, Anton. On Wed, Jan 09, 2013 at 02:06:41PM -0800, Anton Vorontsov wrote: > Yeah. I started answering your comments about hierarchical accounting, > looked into the memcg code, and realized that *this* is where I need the > memcg stuff. :) Yay, I wasn't completely clueless. > Thus yes, I

Re: [PATCH 1/2] Add mempressure cgroup

2013-01-09 Thread Anton Vorontsov
On Tue, Jan 08, 2013 at 05:49:49PM +0900, Minchan Kim wrote: [...] > Sorry still I didn't look at your implementation about cgroup part. > but I had a question since long time ago. > > How can we can make sure false positive about zone and NUMA? > I mean DMA zone is short in system so VM notify

Re: Friendlier EPERM - Request for input

2013-01-09 Thread Carlos O'Donell
On 01/09/2013 04:09 PM, Eric Paris wrote: > On Wed, 2013-01-09 at 21:59 +0100, Jakub Jelinek wrote: >> On Wed, Jan 09, 2013 at 12:53:40PM -0800, Casey Schaufler wrote: >>> I'm suggesting that the string returned by get_extended_error_info() >>> ought to be the audit record the system call would

Re: [Alternative][PATCH] ACPI / PCI: Set root bridge ACPI handle in advance, v2

2013-01-09 Thread Bjorn Helgaas
On Wed, Jan 9, 2013 at 2:33 PM, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > The ACPI handles of PCI root bridges need to be known to > acpi_bind_one(), so that it can create the appropriate > "firmware_node" and "physical_node" files for them, but currently > the way it gets to know

Re: [PATCH] mm: wait for congestion to clear on all zones

2013-01-09 Thread Zlatko Calusic
On 09.01.2013 22:48, Andrew Morton wrote: On Wed, 09 Jan 2013 22:41:48 +0100 Zlatko Calusic wrote: Currently we take a short nap (HZ/10) and wait for congestion to clear before taking another pass with lower priority in balance_pgdat(). But we do that only for the highest zone that we

Re: [PATCH] omap: DT node Timer iteration fix

2013-01-09 Thread Jon Hunter
Hi Pantelis, On 01/08/2013 07:31 AM, Pantelis Antoniou wrote: > The iterator correctly handles of_node_put() calls. > Remove it before continue'ing the loop. > Without this patch you get: Thanks for the fix! May be worth mentioning that this will only be seen with "CONFIG_OF_DYNAMIC" (and

[PATCH] x86/perf_events: Fix "section type conflict" build error.

2013-01-09 Thread Shaun Ruffell
From: Jan Beulich This patch fixes a build regression first introduced in 3.7 with (e09df47 "perf/x86: Update/fix generic events on P6 PMU"). At least some older versions of gcc, like (GCC) 4.1.2 20080704 (Red Hat 4.1.2-51), dislike mixing constant and non-const data in the same section.

Re: [PATCH 05/14] lib: Add I/O map cache implementation

2013-01-09 Thread Arnd Bergmann
On Wednesday 09 January 2013, Thierry Reding wrote: > What happens on Tegra is that we need to map 256 MiB of physical memory > to access all the PCIe extended configuration space. However, ioremap() > on such a large region fails if not enough vmalloc() space is available. > > This was observed

Re: [PATCH 1/2] Add mempressure cgroup

2013-01-09 Thread Anton Vorontsov
On Wed, Jan 09, 2013 at 01:55:14PM -0800, Tejun Heo wrote: [...] > > We can use mempressure w/o memcg, and even then it can (or should :) be > > useful (for cpuset, for example). > > The problem is that you end with, at the very least, duplicate > hierarchical accounting mechanisms which overlap

Re: Friendlier EPERM - Request for input

2013-01-09 Thread Eric Paris
On Wed, 2013-01-09 at 21:59 +0100, Jakub Jelinek wrote: > On Wed, Jan 09, 2013 at 12:53:40PM -0800, Casey Schaufler wrote: > > I'm suggesting that the string returned by get_extended_error_info() > > ought to be the audit record the system call would generate, regardless > > of whether the audit

[PATCH v2] ACPI: SRAT: report non-volatile memory in debug

2013-01-09 Thread Davidlohr Bueso
Just as with the other memory affinity flags, report non-volatile memory with ACPI debug. Signed-off-by: Davidlohr Bueso --- drivers/acpi/numa.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/acpi/numa.c b/drivers/acpi/numa.c index cb31298..2935d3a 100644 ---

[ 04/47] sctp: fix -ENOMEM result with invalid user space pointer in sendto() syscall

2013-01-09 Thread Greg Kroah-Hartman
3.0-stable review patch. If anyone has any objections, please let me know. -- From: Tommi Rantala [ Upstream commit 6e51fe7572590d8d86e93b547fab6693d305fd0d ] Consider the following program, that sets the second argument to the sendto() syscall incorrectly: #include

[ 03/47] sctp: fix memory leak in sctp_datamsg_from_user() when copy from user space fails

2013-01-09 Thread Greg Kroah-Hartman
3.0-stable review patch. If anyone has any objections, please let me know. -- From: Tommi Rantala [ Upstream commit be364c8c0f17a3dd42707b5a090b318028538eb9 ] Trinity (the syscall fuzzer) discovered a memory leak in SCTP, reproducible e.g. with the sendto() syscall by

[ 05/47] ne2000: add the right platform device

2013-01-09 Thread Greg Kroah-Hartman
3.0-stable review patch. If anyone has any objections, please let me know. -- From: Alan Cox [ Upstream commit da9da01d9199b5bb15289d0859053c9aa3a34ac0 ] Without this udev doesn't have a way to key the ne device to the platform device. Signed-off-by: Alan Cox

[ 08/47] pnpacpi: fix incorrect TEST_ALPHA() test

2013-01-09 Thread Greg Kroah-Hartman
3.0-stable review patch. If anyone has any objections, please let me know. -- From: Alan Cox commit cdc87c5a30f407ed1ce43d8a22261116873d5ef1 upstream. TEST_ALPHA() is broken and always returns 0. [a...@linux-foundation.org: return false for '@' as well, per Bjorn]

[ 02/47] bonding: fix race condition in bonding_store_slaves_active

2013-01-09 Thread Greg Kroah-Hartman
3.0-stable review patch. If anyone has any objections, please let me know. -- From: "niko...@redhat.com" [ Upstream commit e196c0e579902f42cf72414461fb034e5a1ffbf7 ] Race between bonding_store_slaves_active() and slave manipulation functions. The bond_for_each_slave use in

[ 07/47] usb/ipheth: Add iPhone 5 support

2013-01-09 Thread Greg Kroah-Hartman
3.0-stable review patch. If anyone has any objections, please let me know. -- From: Jay Purohit [ Upstream commit af1b85e49089f945deb46258b0fc4bc9910afb22 ] I noticed that the iPhone ethernet driver did not support iPhone 5. I quickly added support to it in my kernel, here's

Re: [PATCH 1/2] Add mempressure cgroup

2013-01-09 Thread Tejun Heo
On Wed, Jan 09, 2013 at 01:55:14PM -0800, Tejun Heo wrote: > Please talk with memcg people and fold it into memcg. It can (and > should) be done in a way to not incur overhead when only root memcg is > in use and how this is done defines userland-visible interface, so > let's please not repeat

[ 01/47] bonding: Bonding driver does not consider the gso_max_size/gso_max_segs setting of slave devices.

2013-01-09 Thread Greg Kroah-Hartman
3.0-stable review patch. If anyone has any objections, please let me know. -- From: Sarveshwar Bandi [ Upstream commit 0e376bd0b791ac6ac6bdb051492df0769c840848 ] Patch sets the lowest gso_max_size and gso_max_segs values of the slave devices during enslave and detach.

Re: [PATCH 10/14] PCI: tegra: Move PCIe driver to drivers/pci/host

2013-01-09 Thread Arnd Bergmann
On Wednesday 09 January 2013, Thierry Reding wrote: > Stephen suggested I post this as removal/addition because pretty much > everything changed. Reviewing the individual changes would be more > confusing than actually reviewing a new driver. > Ok, fair enough. Arnd -- To unsubscribe

[ 10/47] x86, 8042: Enable A20 using KBC to fix S3 resume on some MSI laptops

2013-01-09 Thread Greg Kroah-Hartman
3.0-stable review patch. If anyone has any objections, please let me know. -- From: Ondrej Zary commit ad68652412276f68ad4fe3e1ecf5ee6880876783 upstream. Some MSI laptop BIOSes are broken - INT 15h code uses port 92h to enable A20 line but resume code assumes that KBC was

[ 06/47] irda: sir_dev: Fix copy/paste typo

2013-01-09 Thread Greg Kroah-Hartman
3.0-stable review patch. If anyone has any objections, please let me know. -- From: Alexander Shiyan [ Upstream commit 2355a62bcbdcc4b567425bab036bfab6ade87eed ] Signed-off-by: Alexander Shiyan Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman ---

[ 12/47] mm: Fix PageHead when !CONFIG_PAGEFLAGS_EXTENDED

2013-01-09 Thread Greg Kroah-Hartman
3.0-stable review patch. If anyone has any objections, please let me know. -- From: Christoffer Dall commit ad4b3fb7ff9940bcdb1e4cd62bd189d10fa636ba upstream. Unfortunately with !CONFIG_PAGEFLAGS_EXTENDED, (!PageHead) is false, and (PageHead) is true, for tail pages. If this

[ 09/47] exec: do not leave bprm->interp on stack

2013-01-09 Thread Greg Kroah-Hartman
3.0-stable review patch. If anyone has any objections, please let me know. -- From: Kees Cook commit b66c5984017533316fd1951770302649baf1aa33 upstream. If a series of scripts are executed, each triggering module loading via unprintable bytes in the script header, kernel stack

[ 13/47] tmpfs mempolicy: fix /proc/mounts corrupting memory

2013-01-09 Thread Greg Kroah-Hartman
3.0-stable review patch. If anyone has any objections, please let me know. -- From: Hugh Dickins commit f2a07f40dbc603c15f8b06e6ec7f768af67b424f upstream. Recently I suggested using "mount -o remount,mpol=local /tmp" in NUMA mempolicy testing. Very nasty. Reading

[ 11/47] virtio: force vring descriptors to be allocated from lowmem

2013-01-09 Thread Greg Kroah-Hartman
3.0-stable review patch. If anyone has any objections, please let me know. -- From: Will Deacon commit b92b1b89a33c172c075edccf6afb0edc41d851fd upstream. Virtio devices may attempt to add descriptors to a virtqueue from atomic context using GFP_ATOMIC allocation. This is

[ 20/47] NFS: avoid NULL dereference in nfs_destroy_server

2013-01-09 Thread Greg Kroah-Hartman
3.0-stable review patch. If anyone has any objections, please let me know. -- From: NeilBrown commit f259613a1e4b44a0cf85a5dafd931be96ee7c9e5 upstream. In rare circumstances, nfs_clone_server() of a v2 or v3 server can get an error between setting server->destory (to

Re: [PATCH 05/11] spi/pxa2xx: make clock rate configurable from platform data

2013-01-09 Thread Rafael J. Wysocki
On Wednesday, January 09, 2013 12:25:50 PM Mark Brown wrote: > On Tue, Jan 08, 2013 at 10:33:55PM +0100, Rafael J. Wysocki wrote: > > On 1/8/2013 2:10 PM, Mark Brown wrote: > > >On Tue, Jan 08, 2013 at 02:41:53PM +0200, Mika Westerberg wrote: > > > >>Do you mean enabling CONFIG_COMMON_CLK on x86?

[ 14/47] ALSA: usb-audio: Avoid autopm calls after disconnection

2013-01-09 Thread Greg Kroah-Hartman
3.0-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit 59866da9e4ae54819e3c4e0a8f426bdb0c2ef993 upstream. Add a similar protection against the disconnection race and the invalid use of usb instance after disconnection, as well

[ 21/47] NFS: Fix calls to drop_nlink()

2013-01-09 Thread Greg Kroah-Hartman
3.0-stable review patch. If anyone has any objections, please let me know. -- From: Trond Myklebust commit 1f018458b30b0d5c535c94e577aa0acbb92e1395 upstream. It is almost always wrong for NFS to call drop_nlink() after removing a file. What we really want is to mark the

[ 008/123] exec: do not leave bprm->interp on stack

2013-01-09 Thread Greg Kroah-Hartman
3.7-stable review patch. If anyone has any objections, please let me know. -- From: Kees Cook commit b66c5984017533316fd1951770302649baf1aa33 upstream. If a series of scripts are executed, each triggering module loading via unprintable bytes in the script header, kernel stack

[ 007/123] SGI-XP: handle non-fatal traps

2013-01-09 Thread Greg Kroah-Hartman
3.7-stable review patch. If anyone has any objections, please let me know. -- From: Robin Holt commit 891348ca0f66206f1dc0e30d63757e3df1ae2d15 upstream. We found a user code which was raising a divide-by-zero trap. That trap would lead to XPC connections between

[ 23/47] nfs: fix null checking in nfs_get_option_str()

2013-01-09 Thread Greg Kroah-Hartman
3.0-stable review patch. If anyone has any objections, please let me know. -- From: Xi Wang commit e25fbe380c4e3c09afa98bcdcd9d3921443adab8 upstream. The following null pointer check is broken. *option = match_strdup(args); return !option; The pointer

[ 001/123] net: fix a race in gro_cell_poll()

2013-01-09 Thread Greg Kroah-Hartman
3.7-stable review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet [ Upstream commit f8e8f97c11d5ff3cc47d85b97c7c35e443dcf490 ] Dmitry Kravkov reported packet drops for GRE packets since GRO support was added. There is a race in gro_cell_poll()

[ 22/47] nfsd4: fix oops on unusual readlike compound

2013-01-09 Thread Greg Kroah-Hartman
3.0-stable review patch. If anyone has any objections, please let me know. -- From: "J. Bruce Fields" commit d5f50b0c290431c65377c4afa1c764e2c3fe5305 upstream. If the argument and reply together exceed the maximum payload size, then a reply with a read-like operation can

[ 16/47] p54usb: add USB ID for T-Com Sinus 154 data II

2013-01-09 Thread Greg Kroah-Hartman
3.0-stable review patch. If anyone has any objections, please let me know. -- From: Tomasz Guszkowski commit 3194b7fcdf6caea338b5d2c72d76fed80437649c upstream. Added USB ID for T-Com Sinus 154 data II. Signed-off-by: Tomasz Guszkowski Acked-by: Christian Lamparter

[ 17/47] p54usb: add USBIDs for two more p54usb devices

2013-01-09 Thread Greg Kroah-Hartman
3.0-stable review patch. If anyone has any objections, please let me know. -- From: Christian Lamparter commit 4010fe21a315b4223c25376714c6a2b61b722e5c upstream. This patch adds USBIDs for: - DrayTek Vigor 530 - Zoom 4410a It also adds a note about Gemtek

Re: [PATCH 10/14] PCI: tegra: Move PCIe driver to drivers/pci/host

2013-01-09 Thread Thierry Reding
On Wed, Jan 09, 2013 at 09:22:07PM +, Arnd Bergmann wrote: > On Wednesday 09 January 2013, Thierry Reding wrote: > > Move the PCIe driver from arch/arm/mach-tegra into the drivers/pci/host > > directory. The motivation is to collect various host controller drivers > > in the same location in

[ 18/47] usb: gadget: phonet: free requests in pn_bind()s error path

2013-01-09 Thread Greg Kroah-Hartman
3.0-stable review patch. If anyone has any objections, please let me know. -- From: Sebastian Andrzej Siewior commit d0eca719dd11ad0619e8dd6a1f3eceb95b0216dd upstream. Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Felipe Balbi Signed-off-by: Greg Kroah-Hartman

[ 009/123] arm64: Make !dirty ptes read-only

2013-01-09 Thread Greg Kroah-Hartman
3.7-stable review patch. If anyone has any objections, please let me know. -- From: Catalin Marinas commit 33eaa58f854770dc9c98411a356c98e3a53edfda upstream. The AArch64 Linux port relies on the mm code to wrprotect clean ptes. This however is not the case with newly created

[ 002/123] firmware loader: Fix the race FW_STATUS_DONE is followed by class_timeout

2013-01-09 Thread Greg Kroah-Hartman
3.7-stable review patch. If anyone has any objections, please let me know. -- From: Chuansheng Liu commit ce2fcbd99cef580623116bb33531dbc3e6f690b0 upstream. There is a race as below when calling request_firmware(): CPU1 CPU2 write 0 > loading

Re: [PATCH 05/14] lib: Add I/O map cache implementation

2013-01-09 Thread Thierry Reding
On Wed, Jan 09, 2013 at 09:28:47PM +, Russell King - ARM Linux wrote: > On Wed, Jan 09, 2013 at 09:43:05PM +0100, Thierry Reding wrote: > > The I/O map cache is used to map large regions of physical memory in > > smaller chunks to avoid running out of vmalloc()/ioremap() space. > > > >

[ 15/47] ALSA: usb-audio: Fix missing autopm for MIDI input

2013-01-09 Thread Greg Kroah-Hartman
3.0-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit f5f165418cabf2218eb466c0e94693b8b1aee88b upstream. The commit [88a8516a: ALSA: usbaudio: implement USB autosuspend] added the support of autopm for USB MIDI output, but it

[ 19/47] ACPI / scan: Do not use dummy HID for system bus ACPI nodes

2013-01-09 Thread Greg Kroah-Hartman
3.0-stable review patch. If anyone has any objections, please let me know. -- From: "Rafael J. Wysocki" commit 4f5f64cf0cc916220aaa055992e31195470cfe37 upstream. At one point acpi_device_set_id() checks if acpi_device_hid(device) returns NULL, but that never happens, so

[ 004/123] b43legacy: Fix firmware loading when driver is built into the kernel

2013-01-09 Thread Greg Kroah-Hartman
3.7-stable review patch. If anyone has any objections, please let me know. -- From: Larry Finger commit 576d28a7c73013717311cfcb514dbcae27c82eeb upstream. Recent versions of udev cause synchronous firmware loading from the probe routine to fail because the request to user

[ 003/123] firmware loader: Fix the concurrent request_firmware() race for kref_get/put

2013-01-09 Thread Greg Kroah-Hartman
3.7-stable review patch. If anyone has any objections, please let me know. -- From: Chuansheng Liu commit bd9eb7fbe69111ea0ff1f999ef4a5f26d223d1d5 upstream. There is one race that both request_firmware() with the same firmware name. The race scenerio is as below: CPU1

Re: [PATCH 7/8] mm: use vm_unmapped_area() on powerpc architecture

2013-01-09 Thread Rik van Riel
On 01/09/2013 06:23 AM, Michel Lespinasse wrote: On Wed, Jan 09, 2013 at 02:32:56PM +1100, Benjamin Herrenschmidt wrote: Ok. I think at least you can move that construct: + if (addr < SLICE_LOW_TOP) { + slice = GET_LOW_SLICE_INDEX(addr); +

[ 28/47] x86, amd: Disable way access filter on Piledriver CPUs

2013-01-09 Thread Greg Kroah-Hartman
3.0-stable review patch. If anyone has any objections, please let me know. -- From: Andre Przywara commit 2bbf0a1427c377350f001fbc6260995334739ad7 upstream. The Way Access Filter in recent AMD CPUs may hurt the performance of some workloads, caused by aliasing issues in the

[ 03/80] sctp: fix memory leak in sctp_datamsg_from_user() when copy from user space fails

2013-01-09 Thread Greg Kroah-Hartman
3.4-stable review patch. If anyone has any objections, please let me know. -- From: Tommi Rantala [ Upstream commit be364c8c0f17a3dd42707b5a090b318028538eb9 ] Trinity (the syscall fuzzer) discovered a memory leak in SCTP, reproducible e.g. with the sendto() syscall by

[ 014/123] virtio: force vring descriptors to be allocated from lowmem

2013-01-09 Thread Greg Kroah-Hartman
3.7-stable review patch. If anyone has any objections, please let me know. -- From: Will Deacon commit b92b1b89a33c172c075edccf6afb0edc41d851fd upstream. Virtio devices may attempt to add descriptors to a virtqueue from atomic context using GFP_ATOMIC allocation. This is

[ 30/47] sparc: huge_ptep_set_* functions need to call set_huge_pte_at()

2013-01-09 Thread Greg Kroah-Hartman
3.0-stable review patch. If anyone has any objections, please let me know. -- From: Dave Kleikamp [ Upstream commit 6cb9c3697585c47977c42c5cc1b9fc49247ac530 ] Modifying the huge pte's requires that all the underlying pte's be modified. Version 2: added missing

Re: [PATCH 1/2] Add mempressure cgroup

2013-01-09 Thread Tejun Heo
Hello, Anton. On Wed, Jan 09, 2013 at 01:36:04PM -0800, Anton Vorontsov wrote: > On Thu, Jan 10, 2013 at 01:20:30AM +0400, Glauber Costa wrote: > [...] > > Given the above, I believe that ideally we should use this pressure > > mechanism in memcg replacing the current memcg notification

[ 005/123] b43: fix tx path skb leaks

2013-01-09 Thread Greg Kroah-Hartman
3.7-stable review patch. If anyone has any objections, please let me know. -- From: Felix Fietkau commit 78f18df4b323d2ac14d6c82e2fc3c8dc4556bccc upstream. ieee80211_free_txskb() needs to be used instead of dev_kfree_skb_any for tx packets passed to the driver from mac80211

[ 05/80] ne2000: add the right platform device

2013-01-09 Thread Greg Kroah-Hartman
3.4-stable review patch. If anyone has any objections, please let me know. -- From: Alan Cox [ Upstream commit da9da01d9199b5bb15289d0859053c9aa3a34ac0 ] Without this udev doesn't have a way to key the ne device to the platform device. Signed-off-by: Alan Cox

Re: [PATCH 05/14] lib: Add I/O map cache implementation

2013-01-09 Thread Thierry Reding
On Wed, Jan 09, 2013 at 09:19:56PM +, Arnd Bergmann wrote: > On Wednesday 09 January 2013, Thierry Reding wrote: > > The I/O map cache is used to map large regions of physical memory in > > smaller chunks to avoid running out of vmalloc()/ioremap() space. > > > > Signed-off-by: Thierry Reding

[ 016/123] mm: Fix PageHead when !CONFIG_PAGEFLAGS_EXTENDED

2013-01-09 Thread Greg Kroah-Hartman
3.7-stable review patch. If anyone has any objections, please let me know. -- From: Christoffer Dall commit ad4b3fb7ff9940bcdb1e4cd62bd189d10fa636ba upstream. Unfortunately with !CONFIG_PAGEFLAGS_EXTENDED, (!PageHead) is false, and (PageHead) is true, for tail pages. If this

[ 31/47] net: sched: integer overflow fix

2013-01-09 Thread Greg Kroah-Hartman
3.0-stable review patch. If anyone has any objections, please let me know. -- From: Stefan Hasko [ Upstream commit d2fe85da52e89b8012ffad010ef352a964725d5f ] Fixed integer overflow in function htb_dequeue Signed-off-by: Stefan Hasko Acked-by: Eric Dumazet Signed-off-by:

[ 04/80] sctp: fix -ENOMEM result with invalid user space pointer in sendto() syscall

2013-01-09 Thread Greg Kroah-Hartman
3.4-stable review patch. If anyone has any objections, please let me know. -- From: Tommi Rantala [ Upstream commit 6e51fe7572590d8d86e93b547fab6693d305fd0d ] Consider the following program, that sets the second argument to the sendto() syscall incorrectly: #include

[ 010/123] arm64: signal: push the unwinding prologue on the signal stack

2013-01-09 Thread Greg Kroah-Hartman
3.7-stable review patch. If anyone has any objections, please let me know. -- From: Will Deacon commit 304ef4e8367244b547734143c792a2ab764831e8 upstream. To allow debuggers to unwind through signal frames, we create a fake stack unwinding prologue containing the link register

[ 06/80] irda: sir_dev: Fix copy/paste typo

2013-01-09 Thread Greg Kroah-Hartman
3.4-stable review patch. If anyone has any objections, please let me know. -- From: Alexander Shiyan [ Upstream commit 2355a62bcbdcc4b567425bab036bfab6ade87eed ] Signed-off-by: Alexander Shiyan Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman ---

[ 017/123] tmpfs mempolicy: fix /proc/mounts corrupting memory

2013-01-09 Thread Greg Kroah-Hartman
3.7-stable review patch. If anyone has any objections, please let me know. -- From: Hugh Dickins commit f2a07f40dbc603c15f8b06e6ec7f768af67b424f upstream. Recently I suggested using "mount -o remount,mpol=local /tmp" in NUMA mempolicy testing. Very nasty. Reading

[ 015/123] mm: fix calculation of dirtyable memory

2013-01-09 Thread Greg Kroah-Hartman
3.7-stable review patch. If anyone has any objections, please let me know. -- From: Sonny Rao commit c8b74c2f6604923de91f8aa6539f8bb934736754 upstream. The system uses global_dirtyable_memory() to calculate number of dirtyable pages/pages that can be allocated to the page

[ 29/47] ftrace: Do not function trace inlined functions

2013-01-09 Thread Greg Kroah-Hartman
3.0-stable review patch. If anyone has any objections, please let me know. -- From: Steven Rostedt commit 45959ee7aa645815a5ce303a0ea1e48a21e67c6a upstream. When gcc inlines a function, it does not mark it with the mcount prologue, which in turn means that inlined functions

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