From: Jeff Garzik <jgarzik@pobox.com>
To: Andrew Morton <akpm@osdl.org>
Cc: Dave Jones <davej@redhat.com>, linux-kernel@vger.kernel.org
Subject: [PATCH] Re: slab corruption on 2.6.10-rc4-bk7
Date: Sun, 20 Feb 2005 23:28:55 -0500 [thread overview]
Message-ID: <42196387.2070505@pobox.com> (raw)
In-Reply-To: <20050219144147.4c771d4f.akpm@osdl.org>
[-- Attachment #1: Type: text/plain, Size: 1311 bytes --]
Andrew Morton wrote:
> Dave Jones <davej@redhat.com> wrote:
>
>>(This has actually been there for a while, but I only
>> noticed it in dmesg this morning).
>>During boot on a dual em64t I see ..
>>
>>scsi2 : ata_piix
>>isa bounce pool size: 16 pages
>>slab error in cache_free_debugcheck(): cache `size-2048': double free, or memory outside object was overwritten
>>
>>Call Trace:<ffffffff80163448>{cache_free_debugcheck+392} <ffffffff801646aa>{kfree+234}
>> <ffffffff88065189>{:libata:ata_pci_init_one+937} <ffffffff801fe9ea>{pci_bus_read_config_word+122}
>> <ffffffff880707f2>{:ata_piix:piix_init_one+498} <ffffffff80202926>{pci_device_probe+134}
>> <ffffffff802691ad>{driver_probe_device+77} <ffffffff802692cb>{driver_attach+75}
>> <ffffffff802696c9>{bus_add_driver+169} <ffffffff802025e3>{pci_register_driver+131}
>> <ffffffff88074010>{:ata_piix:piix_init+16} <ffffffff80152c58>{sys_init_module+344}
>> <ffffffff8010e52a>{system_call+126}
>>ffff81011e49f4a0: redzone 1: 0x5a2cf071, redzone 2: 0x5a2cf071.
>>
>
>
> It's plain to see how ata_pci_init_one() will free `probe_ent' twice. Jeff
> wanna fix that up please? A naive fix would be
Here's the initial fix... about to test with some other fixes here.
Anybody who is seeing this wanna give it a try?
Jeff
[-- Attachment #2: libata_probe_ent_free_fix.patch --]
[-- Type: text/x-patch, Size: 331 bytes --]
===== drivers/scsi/libata-core.c 1.116 vs edited =====
--- 1.116/drivers/scsi/libata-core.c 2005-02-01 20:23:51 -05:00
+++ edited/drivers/scsi/libata-core.c 2005-02-20 23:25:52 -05:00
@@ -3751,8 +3751,8 @@
kfree(probe_ent2);
} else {
ata_device_add(probe_ent);
+ kfree(probe_ent);
}
- kfree(probe_ent);
return 0;
next prev parent reply other threads:[~2005-02-21 4:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-19 22:16 slab corruption on 2.6.10-rc4-bk7 Dave Jones
2005-02-19 22:41 ` Andrew Morton
2005-02-20 2:42 ` Jeff Garzik
2005-02-21 4:28 ` Jeff Garzik [this message]
2005-02-21 4:35 ` [PATCH #2] " Jeff Garzik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42196387.2070505@pobox.com \
--to=jgarzik@pobox.com \
--cc=akpm@osdl.org \
--cc=davej@redhat.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox