cvs commit: src/sys/dev/ata ata-all.c

Nate Lawson nate at root.org
Sun Aug 1 22:57:52 PDT 2004


Søren Schmidt wrote:
> sos         2004-07-31 10:29:30 UTC
> 
>   Modified files:
>     sys/dev/ata          ata-all.c 
>   Log:
>   Fix the panic (""memory modified after free") when ata_getparam() fails
>   and retries.
>   
>   Found by:       Nate Lawson
>   
>   Revision  Changes    Path
>   1.216     +1 -0      src/sys/dev/ata/ata-all.c

Thanks.  For the record, this was the root cause of several panics and 
anyone whose system prints "FAILURE - ATAPI_IDENTIFY no interrupt" (or 
retried the identify for other reasons) was subject to the memory 
corruption.

The message "memory modified after free" was not a panic in itself. 
Instead, the caller of malloc() would go on to use the memory expecting 
it to be zeroed, since it came from the MZERO pool, and cause a panic. 
Observed panic victims included GEOM, ACPI, and the routing code (rt_msg2).

-Nate


More information about the cvs-src mailing list