Re: communication between user mode and kernel mode

From: Don Burn (burn_at_stopspam.acm.org)
Date: 02/16/04


Date: Mon, 16 Feb 2004 09:21:41 -0500

The simplest approach is to use an IOCTL in what is termed an iverted call
model. You have the application send down the chunk of memory on an IOCTL
IRP and it is pended in the driver till you have the data, then the IRP is
completed and returned. Take a look at
http://www.osronline.com/article.cfm?id=94 for details and sample code.

-- 
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply
"Monty" <xmontyx@yahoo.com> wrote in message
news:23e07e52.0402160608.2006b56c@posting.google.com...
> Hi all,
>
> i want to know how can i send a chunk of memory from kernel mode
> driver to a user mode application or a dll ?
>
> sample code will be a delight :)
>
> Monty


Relevant Pages

  • Re: bktr(4) risk?
    ... It seems that the bktr driver implements the METEORSVIDEO ioctl, ... with the bktr file descriptor to arbitrarily trash any memory, ... The only reason I can think of to use this ioctl would be if you wanted the ...
    (freebsd-hackers)
  • Re: WDF-newbie: Sharing memory between application and driver?
    ... I need to share memory between application and my driver. ... So I pass a buffer pointer to the driver via an IoCtl. ... My driver allocates kernel memory with ExAllocatePoolWithTag. ...
    (microsoft.public.development.device.drivers)
  • Re: IOCTL_GET_TUPLE_DATA from CardBus PC Card
    ... >> in user caller. ... In driver the out answer buffer was empty. ... do you send the ioctl to your device driver instead of the pcmcia.sys?! ... My driver gets the memory ...
    (microsoft.public.development.device.drivers)
  • WDF-newbie: Sharing memory between application and driver?
    ... I'm porting an old driver from Compuware Driver::Works to WDF. ... So I pass a buffer pointer to the driver via an IoCtl. ... My driver allocates kernel memory with ExAllocatePoolWithTag. ... The Application issues an IoCtl and wants to receive a pointer to the memory. ...
    (microsoft.public.development.device.drivers)
  • Re: [Vuln-Dev Challenge] - VulnDev1.c Summary
    ... meaning the chunk is allocated with mmap. ... turn calls munmap on an invalid memory address. ... > the Doug Lea algorithm as well has heap-based exploitation methods ... > the forward chunk, in our case buf2, is free. ...
    (Vuln-Dev)