On Mon, Jul 21, 2008 at 10:05 PM, Ingo Molnar <mingo@elte.hu> wrote:We don't catch writes (yet, because kmemcheck gets confused by SLUB's own writes so far), but yes, we mark objects "freed" when they are freed (until the slab page is returned to the page allocator) and we may detect reads from this area before the object is reallocated. In that case, a "read from freed memory" message will appear. Unfortunately, it doesn't work quite as well as I'd like it to yet. We did catch one real bug in ACPI in this way (read-after-free). But as I have discovered, not all machines support single-stepping over REP STOS instructions properly. Which means that kmemcheck breaks silently on some machines. There's also the recent DMA patch, which might improve things. Linus is right, it's really fragile. But we are working on it. It is going in the right direction anyway. (Pekka and I were also working on an extension to SLUB which delays the freeing of objects, i.e. so that objects will remain in the "freed" state for a certain amount of time before it can be allocated again. But we don't really have a _good_ patch for this yet, it was more like an ugly hack at the time.) Vegard -- "The animistic metaphor of the bug that maliciously sneaked in while the programmer was not looking is intellectually dishonest as it disguises that the error is the programmer's own creation." -- E. W. Dijkstra, EWD1036 -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| debian developer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Vu Pham | Re: [Scst-devel] Integration of SCST in the mainstream Linux kernel |
| Adrian Bunk | Re: Linux 2.6.21 |
git: | |
| Gerrit Renker | [PATCH 15/37] dccp: Set per-connection CCIDs via socket options |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Radu Rendec | Endianness problem with u32 classifier hash masks |
| Benjamin Herrenschmidt | [PATCH 0/11] ibm_newemac: Candidate patches for 2.6.25 |
