[PATCH 2/7] uprobes: Fold xol_alloc_area() into get_xol_area()

2012-12-31 Thread Oleg Nesterov
Currently only xol_get_insn_slot() does get_xol_area() + xol_alloc_area(), but this will have more users and we do not want to copy-and-paste this code. This patch simply moves xol_alloc_area() into get_xol_area() to simplify the current and future code. Signed-off-by: Oleg Nesterov

[PATCH 3/7] uprobes: Turn add_utask() into get_utask()

2012-12-31 Thread Oleg Nesterov
Rename add_utask() into get_utask() and change it to allocate on demand to simplify the caller. Like get_xol_area() it will have more users. Signed-off-by: Oleg Nesterov o...@redhat.com --- kernel/events/uprobes.c | 27 +-- 1 files changed, 9 insertions(+), 18

[PATCH 4/7] uprobes: Do not play with utask in xol_get_insn_slot()

2012-12-31 Thread Oleg Nesterov
pre_ssout()-xol_get_insn_slot() path is confusing and buggy. This patch cleanups the code, the next one fixes the bug. Change xol_get_insn_slot() to only allocate the slot and do nothing more, move the initialization of utask-xol_vaddr/vaddr into pre_ssout(). Signed-off-by: Oleg Nesterov

[PATCH 5/7] uprobes: Fix utask-xol_vaddr leak in pre_ssout()

2012-12-31 Thread Oleg Nesterov
pre_ssout() should do xol_free_insn_slot() if arch_uprobe_pre_xol() fails, otherwise nobody will free the allocated slot. Signed-off-by: Oleg Nesterov o...@redhat.com --- kernel/events/uprobes.c |9 - 1 files changed, 8 insertions(+), 1 deletions(-) diff --git

[PATCH 7/7] uprobes: Kill the bogus IS_ERR_VALUE(xol_vaddr) check

2012-12-31 Thread Oleg Nesterov
utask-xol_vaddr is either zero or valid, remove the bogus IS_ERR_VALUE() check in xol_free_insn_slot(). Signed-off-by: Oleg Nesterov o...@redhat.com --- kernel/events/uprobes.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/kernel/events/uprobes.c

[PATCH 6/7] uprobes: Do not allocate current-utask unnecessary

2012-12-31 Thread Oleg Nesterov
handle_swbp() does get_utask() before can_skip_sstep() for no reason, we do not need -utask if can_skip_sstep() succeeds. Move get_utask() to pre_ssout() who actually starts to use it. Move the initialization of utask-active_uprobe/state as well. This way the whole initialization is consolidated

[PATCH 1/7] uprobes: Move alloc_page() from xol_add_vma() to xol_alloc_area()

2012-12-31 Thread Oleg Nesterov
Move alloc_page() from xol_add_vma() to xol_alloc_area() to cleanup the code. This separates the memory allocations and consolidates the -EALREADY cleanups and the error handling. Signed-off-by: Oleg Nesterov o...@redhat.com --- kernel/events/uprobes.c | 32 +--- 1

RE: [PATCH v6 00/12] iommu/exynos: Fixes and Enhancements of System MMU driver with DT

2012-12-31 Thread Kukjin Kim
Cho KyongHo wrote: notice: v6 patch-set is rebased on next/iommu-exynos branch of linux-samsung.git. This patch-set does not include 2 patches (05 and 06 patches in v5 patch-se) because they alread exist already in the branch. The current exynos-iommu(System MMU) driver does not work

[PATCH] uio: uio_sercos3: use module_pci_driver macro

2012-12-31 Thread Devendra Naga
use module_pci_driver macro and simplify the module init and exit code Signed-off-by: Devendra Naga devendra.a...@gmail.com --- drivers/uio/uio_sercos3.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/uio/uio_sercos3.c b/drivers/uio/uio_sercos3.c

PATCH: Error checking page_size to see if userspace page_size_int = 2.

2012-12-31 Thread Christopher Sacchi
This patch is for the pagemap.h. This checks to see if the page_size_int is 2, if not, set the value to 2, and return 1. The code is under the double-dashed lines. -- Signed-off-by: Christopher P. Sacchi chris.sac...@gmail.com --- pagemap.h 2012-12-21 20:19:00.0 -0500 +++ pagemap.h

PATCH: Error Checking for pagemap.h.

2012-12-31 Thread Christopher Sacchi
This patch is for the pagemap.h. This checks to see if the page_size_int is 2, if not, set the value to 2, and return 1. The code is under the double-dashed lines. It is for Kernel Version 3.8-rc1. This is a rewrite. -- Signed-off-by: Christopher P. Sacchi chris.sac...@gmail.com --- pagemap.h

[PATCH] uio: sercos3: use devm_kzalloc

2012-12-31 Thread Devendra Naga
use devm_kzalloc and no need of free's at error path and unload Signed-off-by: Devendra Naga devendra.a...@gmail.com --- Please apply this after changeid: 1fb4ec94e7e955a1e26bf81f2634e5be2fa5f1d5 [PATCH] uio: uio_sercos3: use module_pci_driver macro sorry for sending as patch should be patch

Re: [RFC] ktap: Another dynamic tracing tool for Linux

2012-12-31 Thread Frank Ch. Eigler
bookjovi wrote: [...] This mail is RFC for discuss on a new dynamic tracing tool, I name it ktap. (only experimental project now) Welcome to the problem domain! [...] what ktap differentiates with Systemtap is: [...] 2). ktap have good portability, because it compile source file to

Re: [PATCH v6 05/12] iommu/exynos: support for device tree

2012-12-31 Thread Sylwester Nawrocki
On 12/26/2012 02:53 AM, Cho KyongHo wrote: This commit adds device tree support for System MMU. Signed-off-by: KyongHo Chopullip@samsung.com Cc: devicetree-disc...@lists.ozlabs.org Please note any patches adding new device tree bindings should be sent to this mailing list. I have few

Re: [PATCH v2] input: vt8500: Add power button keypad driver

2012-12-31 Thread Dmitry Torokhov
Hi Tony, On Mon, Dec 31, 2012 at 03:04:59PM +1300, Tony Prisk wrote: This patch adds support for the Power Button keypad found on Wondermedia netbooks/tablets. Signed-off-by: Tony Prisk li...@prisktech.co.nz --- v2: Remove devicetree binding for keycode Add dependency on OF in Kconfig

[PATCH] Access control in Xen privcmd_ioctl_mmap

2012-12-31 Thread Tamas Lengyel
In the privcmd Linux driver two checks in the functions privcmd_ioctl_mmap and privcmd_ioctl_mmap_batch are not needed as they are trying to enforce hypervisor-level access control. They should be removed as they break secondary control domains when performing dom0 disaggregation. Xen itself

Re: [PATCH v2] input: vt8500: Add power button keypad driver

2012-12-31 Thread Tony Prisk
On Mon, 2012-12-31 at 12:37 -0800, Dmitry Torokhov wrote: Hi Tony, On Mon, Dec 31, 2012 at 03:04:59PM +1300, Tony Prisk wrote: This patch adds support for the Power Button keypad found on Wondermedia netbooks/tablets. Signed-off-by: Tony Prisk li...@prisktech.co.nz --- v2:

Re: [PATCH] prctl: fix validation of an address

2012-12-31 Thread Serge E. Hallyn
Quoting Cyrill Gorcunov (gorcu...@openvz.org): The kernel makes the decision on what is valid via security_mmap_addr(). Assuming there are no security fears of an untrusted application tricking some priviledged application to set up these maps the answer is just calling

[PATCH v3] input: vt8500: Add power button keypad driver

2012-12-31 Thread Tony Prisk
This patch adds support for the Power Button keypad found on Wondermedia netbooks/tablets. A keymap property is exposed to allowing defining the key event to be generated when the power button is pressed. Signed-off-by: Tony Prisk li...@prisktech.co.nz --- CC: linux-kernel@vger.kernel.org CC:

RE: [PATCH 7/8] zswap: add to mm/

2012-12-31 Thread Dan Magenheimer
From: Seth Jennings [mailto:sjenn...@linux.vnet.ibm.com] Subject: [PATCH 7/8] zswap: add to mm/ zswap is a thin compression backend for frontswap. It receives pages from frontswap and attempts to store them in a compressed memory pool, resulting in an effective partial memory reclaim and

Re: [PATCH] poll: prevent missed events if _qproc is NULL

2012-12-31 Thread Eric Wong
Eric Wong normalper...@yhbt.net wrote: This patch seems to fix my issue with ppoll() being stuck on my SMP machine: http://article.gmane.org/gmane.linux.file-systems/70414 OK, it doesn't fix my issue, but it seems to make it harder-to-hit... The change to sock_poll_wait() in commit

New Defect(s) reported by Coverity Scan

2012-12-31 Thread Scan Subscription
Hi, Please find the latest report on new defect(s) that have been introduced to the Linux Kernel found with Coverity SCAN. Defect(s) Reported-by: Coverity Scan: ___ ** CID 753114: Use after free (USE_AFTER_FREE)

[ANNOUNCE] Git v1.8.1

2012-12-31 Thread Junio C Hamano
The latest feature release Git v1.8.1 is now available at the usual places. The release tarballs are found at: http://code.google.com/p/git-core/downloads/list and their SHA-1 checksums are: ac8dced9c3232c0ec6a88d04600a4d0eaf2ba4e3 git-1.8.1.tar.gz a256fc56c89dc3c8d58b81a2c02dc89299f1f29b

Re: [RESEND PATCH] drm/nouveau: fix init with agpgart-uninorth

2012-12-31 Thread Marcin Slusarz
On Mon, Dec 31, 2012 at 03:34:59AM +0200, Aaro Koskinen wrote: Check that the AGP aperture can be mapped. This follows a similar change done for Radeon (commit 365048ff, drm/radeon: AGP memory is only I/O if the aperture can be mapped by the CPU.). The patch fixes the following error seen on

[PATCH] Re: New Defect(s) reported by Coverity Scan

2012-12-31 Thread Nigel Cunningham
From b41864867464bfe0e2d114528bc9b39e2d9f546e Mon Sep 17 00:00:00 2001 From: Nigel Cunningham ni...@nigelcunningham.com.au Date: Tue, 1 Jan 2013 13:03:50 +1100 Subject: [PATCH] Fix rbd use after free. This patch addresses Coverity #753114. The use of ceph_opts in rbd_add is currently confusing

[PATCH 3] Re: New Defect(s) reported by Coverity Scan

2012-12-31 Thread Nigel Cunningham
From b4a7ab768df17e1cda7d0ae8744e986215a644c3 Mon Sep 17 00:00:00 2001 From: Nigel Cunningham ni...@nigelcunningham.com.au Date: Tue, 1 Jan 2013 13:53:51 +1100 Subject: [PATCH] Remove unused variable in rbd_dev_probe_update_spec. As an aside to the previous patch, remove the unused local

[PATCH 2] Re: New Defect(s) reported by Coverity Scan

2012-12-31 Thread Nigel Cunningham
From 68e866b8eac534405ae16b79b7ffd9de05c11c67 Mon Sep 17 00:00:00 2001 From: Nigel Cunningham ni...@nigelcunningham.com.au Date: Tue, 1 Jan 2013 13:50:22 +1100 Subject: [PATCH] Fix uninitialised variable in rbd_dev_probe_update_spec. The local variable ret can be used uninitialised in the error

Re: mm: lockup on mmap_sem

2012-12-31 Thread Hillf Danton
On Tue, Jan 1, 2013 at 1:55 AM, Sasha Levin sasha.le...@oracle.com wrote: Hi all, While fuzzing with trinity inside a KVM tools guest, running latest -next kernel, I've stumbled on the following hang: [ 7204.030178] INFO: task khugepaged:3257 blocked for more than 120 seconds. [

Re: [PATCH v7 1/2] KSM: numa awareness sysfs knob

2012-12-31 Thread Simon Jeons
On Fri, 2012-12-28 at 02:32 +0100, Petr Holasek wrote: Introduces new sysfs boolean knob /sys/kernel/mm/ksm/merge_across_nodes which control merging pages across different numa nodes. When it is set to zero only pages from the same node are merged, otherwise pages from all nodes can be merged

Re: [RFC PATCH v1 02/31] ARC: irqflags

2012-12-31 Thread Vineet Gupta
On Tuesday 13 November 2012 01:20 AM, Thomas Gleixner wrote: On Wed, 7 Nov 2012, Vineet Gupta wrote: + ** + * Inline ASM macros to read/write AUX Regs + * Essentially invocation of lr/sr insns from C + */ + +#if 1

<    1   2