On Fri, 18 Jul 2008 07:34:17 +0530 "V.Radhakrishnan" <rk@atr-labs.com> wrote:Hi, it's great to see new people contribute to the kernel, however your patch is not correct. In the PAT case, we really cannot allow /dev/mem mmap access of kernel-used memory. It would create an incorrect cache alias... which can have really bad effects, including tripple faulting the cpu (which is an instant reboot) or data corruption, depending on which model/vendor CPU you have. What your patch does is to remove the code that prevents this situation from happening... and that makes it not a very good idea. Now, /dev/mem mmap access of address space that is not used by the kernel is still allowed by the code (for example the PCI mmio region)... Can you describe what you were trying to achieve by mmaping of /dev/mem ? It sounds like you have a bug, since it's certainly curious that you would want to deal with kernel memory this way. (for example until recently, you wouldn't be able to do this at all) Greetings, Arjan van de Ven -- If you want to reach me at my work email, use arjan@linux.intel.com For development, discussion and tips for power savings, visit http://www.lesswatts.org --
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Andy Whitcroft | clam |
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Trent Piepho | [PATCH] [POWERPC] Improve (in|out)_beXX() asm code |
git: | |
| David Miller | Re: iptables very slow after commit 784544739a25c30637397ace5489eeb6e15d7d49 |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| David Miller | [GIT]: Networking |
