Teemu Rinta-aho wrote:New problems... Let me first describe what I try to do: I have created a kernel module that stores references to memory objects. I.e. when a process makes a syscall to the module, it will create a snapshot of the memory area, and after that the writes from the process to that memory area should create a shadow object. The next syscall should again store a pointer to the current topmost shadow object and then the next write creates yet another shadow object. Etc... When the snapshots are removed, the shadow chains may collapse normally. That's what I have assumed. Here's an illustration of what I want (first syscall OK, second one not): * * Legend: U/u = userspace K/k = kernel * * U:vm_map_entry_u -> object * * || * SYSCALL * || * \/ * * U:vm_map_entry_u -> object_shadow -> object * / * K:vm_map_entry_k ---------------- * * || * SYSCALL * || * \/ * * U:vm_map_entry_u -> object_shadow -> object_shadow -> object * / / * K:vm_map_entry_k ---------------- / * K:vm_map_entry_k -------------------------------- Now, the problem is that the first snapshot works as it should. However, the second one doesn't, and the write goes to the one and same shadow object, even if I restore MAP_ENTRY_COW and MAP_ENTRY_NEEDS_COPY manually in my handler function which is storing the snapshot. Any ideas? Teemu _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
| Ryan Hope | reiser4 for 2.6.27-rc1 |
| James Bottomley | Re: Integration of SCST in the mainstream Linux kernel |
| majkls | sys_chroot+sys_fchdir Fix |
| Chuck Ebbert | Why do so many machines need "noapic"? |
git: | |
| Junio C Hamano | Re: [PATCH] Teach remote machinery about remotes.default config variable |
| Kyle Moffett | Using GIT to store /etc (Or: How to make GIT store all file permission bits) |
| Alan Chandler | Question around git-shell usage in Everyday Git |
| Jakub Narebski | Re: VCS comparison table |
| Richard Stallman | Real men don't attack straw men |
| Sunnz | How do I configure sendmail? |
| Edd Barrett | Re: Cold Boot Attacks on Encryption Keys |
| Jussi Peltola | Re: Remote Admin Card - Dell DRAC or HP ILO2 ? |
| Stephen Pierce | SLS |
| Jim Winstead Jr. | Re: Root Disk/Book Disk Compatibility |
| Les Andrzejewski | X386/WD90C31/SUMSUNG SYNC MASTER 4 |
| Dave `geek' Gymer | WARNING (was Re: New afio release) |
