Re: Accessing kernel memory from multiple modules

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



--- On Sun, 6/27/10, Mulyadi Santosa <mulyadi.santosa@xxxxxxxxx> wrote:

> > Obviously memory is allocated in both cases.
> 
> OK, that was something I was unaware. So, in module A which
> originally holds the struct, you already put a value in buf[0]? And
> you absolutely sure it's allocated there, right?

YES

> > Question is, whether linker which links kernel modules
> to running Linux kernel puts some sort of trap, so module
> cannot write to globally allocated memory in another module ?
> 
> Although I never checked it, but I am fairly sure there is
> no trap. After all, once loaded, those modules are actually the
> kernel itself.

So, how is this behavior is explained ?

> Unless in the case like user mode pages which can be marked as COW-ed,
> or empty VMA which can be latter be faulted, I never read that kernel
> allocated memory is trapped. Yes, there is poisoning, but IMO that's
> entirely different

Its none of the above case

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux