[PATCH 0/1] uprobes: Fix the memory out of bound overwrite incopy_insn()
From: Oleg Nesterov
Date: Thu Nov 07 2013 - 14:39:13 EST
On 11/07, Oleg Nesterov wrote:
> But when I looked at it now I realized that it is very wrong, and it
> is very easy to crash the kernel (fortunately only root can enable
> So we need to fix it (and cleanup), I'll try to make the patch asap.
Just truncate the binary after uprobe was enabled, then mmap() the
truncated area. This crashes the kernel if nobody else mmaped this
area in between.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/