From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 5 22:13:53 2012 Return-Path: <owner-freebsd-hackers@FreeBSD.ORG> Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 26D3C106564A for <freebsd-hackers@freebsd.org>; Thu, 5 Apr 2012 22:13:53 +0000 (UTC) (envelope-from kotasaikrishna28@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id D75E28FC0C for <freebsd-hackers@freebsd.org>; Thu, 5 Apr 2012 22:13:52 +0000 (UTC) Received: by iahk25 with SMTP id k25so3144788iah.13 for <freebsd-hackers@freebsd.org>; Thu, 05 Apr 2012 15:13:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=fLg68Cbx6Df1lhsck3ovtmOYKhJVoYEE2enDD7Zavgw=; b=vnvHnqAxo2BEPoaWqruGyHE77qtvlFbOp10DWdyuJfldHP3EFH91iRrAJOgsru56OP YaiMBm6rwI2AmAl2YlBFLdrlOQ/m5zj02qr6aUvA82U3ueGG7XhmTQSu9sfY7S6D9Ozn xApW9Kg9FVkcwOK9IaBGrVaYpMq2t8QxQPshoEL54JCizTyyT6bLorxY71etVIKZ6VkP fzrPoeUFI8YPu1QzHAjbhKQgecWdyPI7xhhjf4YuDedE92yjP5In7OEdw5/XfdpuX1TZ SE9+EZUJs6hvbAazOAxSsD5SZQC+pXiBHGDavWZNxqFeu0yNvaVwy0VZwQFKuq9+V965 x/VQ== MIME-Version: 1.0 Received: by 10.50.153.198 with SMTP id vi6mr3597534igb.0.1333664031723; Thu, 05 Apr 2012 15:13:51 -0700 (PDT) Received: by 10.42.132.197 with HTTP; Thu, 5 Apr 2012 15:13:51 -0700 (PDT) Date: Fri, 6 Apr 2012 03:43:51 +0530 Message-ID: <CAB+Er+kE2GrZNegb38Ker_k=8znOnu+QNQphyy=5F7_p-nPRVw@mail.gmail.com> From: kota saikrishna <kotasaikrishna28@gmail.com> To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Making addresses from the address specified and given size in the child's address space and make it valid. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD <freebsd-hackers.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-hackers>, <mailto:freebsd-hackers-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-hackers> List-Post: <mailto:freebsd-hackers@freebsd.org> List-Help: <mailto:freebsd-hackers-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-hackers>, <mailto:freebsd-hackers-request@freebsd.org?subject=subscribe> X-List-Received-Date: Thu, 05 Apr 2012 22:13:53 -0000 Hello, I am trying to inject code into the child process using ptrace utility. The function of the injecting code is to make addresses from the address specified and the size in the child's address space and make it valid(i.e to read and write ..). On my knowledge i tried to use mmap system call but i could not able to allocate the memory can any one help in this point how to achieve this.