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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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:
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
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:
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
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
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)
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
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
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
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
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
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.
[
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
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
101 - 130 of 130 matches
Mail list logo