public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Thomas Renninger <trenn@suse.de>
To: "Moore, Robert" <robert.moore@intel.com>
Cc: "Luck, Tony" <tony.luck@intel.com>,
	"Brown, Len" <len.brown@intel.com>,
	linux-acpi@vger.kernel.org, linux-ia64@vger.kernel.org
Subject: Re: some new unaligned access while booting ia64 (HP rx2620)
Date: Mon, 13 Feb 2006 19:51:18 +0100	[thread overview]
Message-ID: <43F0D526.5010806@suse.de> (raw)
In-Reply-To: <971FCB6690CD0E4898387DBF7552B90E0452B0D7@orsmsx403.amr.corp.intel.com>

[-- Attachment #1: Type: text/plain, Size: 13069 bytes --]

Moore, Robert wrote:
> This only contains the output of stores to the ACPI "debug" object, not
> the full trace output. However, "_CRS 0" may help
> 
> 
Something is strange here.
With rc2-gitXY I got this:

-----------------------------------------------------------------------
slab error in cache_free_debugcheck(): cache `size-256': double free, or memory outside object was overwritten

Call Trace:
 [<a0000001000145c0>] show_stack+0x40/0xa0
                                sp=e00000011b7f7ae0 bsp=e00000011b7f1400
 [<a000000100014650>] dump_stack+0x30/0x60
                                sp=e00000011b7f7cb0 bsp=e00000011b7f13e0
 [<a000000100134a50>] __slab_error+0x50/0x80
                                sp=e00000011b7f7cb0 bsp=e00000011b7f13b0
 [<a000000100135ee0>] cache_free_debugcheck+0x220/0x600
                                sp=e00000011b7f7cb0 bsp=e00000011b7f1368
 [<a000000100139b70>] kfree+0xd0/0x480
                                sp=e00000011b7f7cb0 bsp=e00000011b7f1328
 [<a0000001002ea460>] acpi_os_free+0x20/0x40
                                sp=e00000011b7f7cc0 bsp=e00000011b7f1308
 [<a00000010031b980>] acpi_walk_resources+0x240/0x280
                                sp=e00000011b7f7cc0 bsp=e00000011b7f12c8
 [<a0000001003e4a10>] pci_acpi_scan_root+0x130/0x3e0
                                sp=e00000011b7f7cd0 bsp=e00000011b7f1278
 [<a000000100330380>] acpi_pci_root_add+0x480/0x620
                                sp=e00000011b7f7cf0 bsp=e00000011b7f1230
 [<a0000001003354c0>] acpi_bus_driver_init+0x80/0xe0
                                sp=e00000011b7f7d10 bsp=e00000011b7f1208
 [<a000000100337c80>] acpi_add_single_object+0x1480/0x1680
                                sp=e00000011b7f7d10 bsp=e00000011b7f11a0
 [<a000000100338110>] acpi_bus_scan+0x290/0x400
                                sp=e00000011b7f7d30 bsp=e00000011b7f1160
 [<a000000100645840>] acpi_scan_init+0x220/0x2c0
                                sp=e00000011b7f7d50 bsp=e00000011b7f1130
 [<a000000100009ee0>] init+0x540/0x880
                                sp=e00000011b7f7d60 bsp=e00000011b7f1108
 [<a0000001000128b0>] kernel_thread_helper+0xd0/0x100
                                sp=e00000011b7f7e30 bsp=e00000011b7f10e0
 [<a0000001000094a0>] start_kernel_thread+0x20/0x40
                                sp=e00000011b7f7e30 bsp=e00000011b7f10e0
e0000040f8de54c8: redzone 1: 0x170fc2a5, redzone 2: 0xf901001a00000028.
slab error in cache_free_debugcheck(): cache `size-256': double free, or memory outside object was overwritten

Call Trace:
 [<a0000001000145c0>] show_stack+0x40/0xa0
                                sp=e00000011b7f7ae0 bsp=e00000011b7f1400
 [<a000000100014650>] dump_stack+0x30/0x60
                                sp=e00000011b7f7cb0 bsp=e00000011b7f13e0
 [<a000000100134a50>] __slab_error+0x50/0x80
                                sp=e00000011b7f7cb0 bsp=e00000011b7f13b0
 [<a000000100135ee0>] cache_free_debugcheck+0x220/0x600
                                sp=e00000011b7f7cb0 bsp=e00000011b7f1368
 [<a000000100139b70>] kfree+0xd0/0x480
                                sp=e00000011b7f7cb0 bsp=e00000011b7f1328
 [<a0000001002ea460>] acpi_os_free+0x20/0x40
                                sp=e00000011b7f7cc0 bsp=e00000011b7f1308
 [<a00000010031b980>] acpi_walk_resources+0x240/0x280
                                sp=e00000011b7f7cc0 bsp=e00000011b7f12c8
 [<a0000001003e4af0>] pci_acpi_scan_root+0x210/0x3e0
                                sp=e00000011b7f7cd0 bsp=e00000011b7f1278
 [<a000000100330380>] acpi_pci_root_add+0x480/0x620
                                sp=e00000011b7f7cf0 bsp=e00000011b7f1230
 [<a0000001003354c0>] acpi_bus_driver_init+0x80/0xe0
                                sp=e00000011b7f7d10 bsp=e00000011b7f1208
 [<a000000100337c80>] acpi_add_single_object+0x1480/0x1680
                                sp=e00000011b7f7d10 bsp=e00000011b7f11a0
 [<a000000100338110>] acpi_bus_scan+0x290/0x400
                                sp=e00000011b7f7d30 bsp=e00000011b7f1160
 [<a000000100645840>] acpi_scan_init+0x220/0x2c0
                                sp=e00000011b7f7d50 bsp=e00000011b7f1130
 [<a000000100009ee0>] init+0x540/0x880
                                sp=e00000011b7f7d60 bsp=e00000011b7f1108
 [<a0000001000128b0>] kernel_thread_helper+0xd0/0x100
                                sp=e00000011b7f7e30 bsp=e00000011b7f10e0
 [<a0000001000094a0>] start_kernel_thread+0x20/0x40
                                sp=e00000011b7f7e30 bsp=e00000011b7f10e0
e0000040f89694c8: redzone 1: 0x170fc2a5, redzone 2: 0xf901001a00000028.
slab error in cache_free_debugcheck(): cache `size-256': double free, or memory outside object was overwritten

Call Trace:
 [<a0000001000145c0>] show_stack+0x40/0xa0
                                sp=e00000011b7f7a30 bsp=e00000011b7f16d8
 [<a000000100014650>] dump_stack+0x30/0x60
                                sp=e00000011b7f7c00 bsp=e00000011b7f16c0
 [<a000000100134a50>] __slab_error+0x50/0x80
                                sp=e00000011b7f7c00 bsp=e00000011b7f1690
 [<a000000100135ee0>] cache_free_debugcheck+0x220/0x600
                                sp=e00000011b7f7c00 bsp=e00000011b7f1648
 [<a000000100139b70>] kfree+0xd0/0x480
                                sp=e00000011b7f7c00 bsp=e00000011b7f1608
 [<a0000001002ea460>] acpi_os_free+0x20/0x40
                                sp=e00000011b7f7c10 bsp=e00000011b7f15e0
 [<a00000010031b980>] acpi_walk_resources+0x240/0x280
                                sp=e00000011b7f7c10 bsp=e00000011b7f15a0
 [<a00000010032c990>] find_pci_rootbridge+0x1d0/0x3a0
                                sp=e00000011b7f7c20 bsp=e00000011b7f1560
 [<a0000001003102d0>] acpi_ns_get_device_callback+0x270/0x2e0
                                sp=e00000011b7f7c60 bsp=e00000011b7f1508
 [<a000000100314880>] acpi_ns_walk_namespace+0x280/0x2e0
                                sp=e00000011b7f7c80 bsp=e00000011b7f1498
 [<a00000010030ff70>] acpi_get_devices+0xb0/0xe0
                                sp=e00000011b7f7c80 bsp=e00000011b7f1458
 [<a00000010032c790>] acpi_get_pci_rootbridge_handle+0x70/0xa0
                                sp=e00000011b7f7ca0 bsp=e00000011b7f1428
 [<a0000001002b8720>] pci_acpi_find_root_bridge+0x80/0xe0
                                sp=e00000011b7f7cb0 bsp=e00000011b7f13f0
 [<a00000010032c0a0>] acpi_platform_notify+0x120/0x4c0
                                sp=e00000011b7f7cc0 bsp=e00000011b7f13b8
 [<a000000100391050>] device_add+0x230/0x300
                                sp=e00000011b7f7cd0 bsp=e00000011b7f1378
 [<a000000100391150>] device_register+0x30/0x60
                                sp=e00000011b7f7cd0 bsp=e00000011b7f1358
 [<a0000001002a7a90>] pci_create_bus+0x1b0/0x600
                                sp=e00000011b7f7cd0 bsp=e00000011b7f1300
 [<a0000001002aa130>] pci_scan_bus_parented+0x30/0xa0
                                sp=e00000011b7f7cd0 bsp=e00000011b7f12c8
 [<a0000001003e4b20>] pci_acpi_scan_root+0x240/0x3e0
                                sp=e00000011b7f7cd0 bsp=e00000011b7f1278
 [<a000000100330380>] acpi_pci_root_add+0x480/0x620
                                sp=e00000011b7f7cf0 bsp=e00000011b7f1230
 [<a0000001003354c0>] acpi_bus_driver_init+0x80/0xe0
                                sp=e00000011b7f7d10 bsp=e00000011b7f1208
 [<a000000100337c80>] acpi_add_single_object+0x1480/0x1680
                                sp=e00000011b7f7d10 bsp=e00000011b7f11a0
 [<a000000100338110>] acpi_bus_scan+0x290/0x400
                                sp=e00000011b7f7d30 bsp=e00000011b7f1160
 [<a000000100645840>] acpi_scan_init+0x220/0x2c0
                                sp=e00000011b7f7d50 bsp=e00000011b7f1130
 [<a000000100009ee0>] init+0x540/0x880
                                sp=e00000011b7f7d60 bsp=e00000011b7f1108
 [<a0000001000128b0>] kernel_thread_helper+0xd0/0x100
                                sp=e00000011b7f7e30 bsp=e00000011b7f10e0
 [<a0000001000094a0>] start_kernel_thread+0x20/0x40
                                sp=e00000011b7f7e30 bsp=e00000011b7f10e0
e00000011b7e76b0: redzone 1: 0x170fc2a5, redzone 2: 0xf901001a00000028.
slab error in cache_free_debugcheck(): cache `size-256': double free, or memory outside object was overwritten

Call Trace:
 [<a0000001000145c0>] show_stack+0x40/0xa0
                                sp=e00000011b7f7a30 bsp=e00000011b7f16d8
 [<a000000100014650>] dump_stack+0x30/0x60
                                sp=e00000011b7f7c00 bsp=e00000011b7f16c0
 [<a000000100134a50>] __slab_error+0x50/0x80
                                sp=e00000011b7f7c00 bsp=e00000011b7f1690
 [<a000000100135ee0>] cache_free_debugcheck+0x220/0x600
                                sp=e00000011b7f7c00 bsp=e00000011b7f1648
 [<a000000100139b70>] kfree+0xd0/0x480
                                sp=e00000011b7f7c00 bsp=e00000011b7f1608
 [<a0000001002ea460>] acpi_os_free+0x20/0x40
                                sp=e00000011b7f7c10 bsp=e00000011b7f15e0
 [<a00000010031b980>] acpi_walk_resources+0x240/0x280
                                sp=e00000011b7f7c10 bsp=e00000011b7f15a0
 [<a00000010032c990>] find_pci_rootbridge+0x1d0/0x3a0
                                sp=e00000011b7f7c20 bsp=e00000011b7f1560
 [<a0000001003102d0>] acpi_ns_get_device_callback+0x270/0x2e0
                                sp=e00000011b7f7c60 bsp=e00000011b7f1508
 [<a000000100314880>] acpi_ns_walk_namespace+0x280/0x2e0
                                sp=e00000011b7f7c80 bsp=e00000011b7f1498
 [<a00000010030ff70>] acpi_get_devices+0xb0/0xe0
                                sp=e00000011b7f7c80 bsp=e00000011b7f1458
 [<a00000010032c790>] acpi_get_pci_rootbridge_handle+0x70/0xa0
                                sp=e00000011b7f7ca0 bsp=e00000011b7f1428
 [<a0000001002b8720>] pci_acpi_find_root_bridge+0x80/0xe0
                                sp=e00000011b7f7cb0 bsp=e00000011b7f13f0
 [<a00000010032c0a0>] acpi_platform_notify+0x120/0x4c0
                                sp=e00000011b7f7cc0 bsp=e00000011b7f13b8
 [<a000000100391050>] device_add+0x230/0x300
                                sp=e00000011b7f7cd0 bsp=e00000011b7f1378
 [<a000000100391150>] device_register+0x30/0x60
                                sp=e00000011b7f7cd0 bsp=e00000011b7f1358
 [<a0000001002a7a90>] pci_create_bus+0x1b0/0x600
                                sp=e00000011b7f7cd0 bsp=e00000011b7f1300
 [<a0000001002aa130>] pci_scan_bus_parented+0x30/0xa0
                                sp=e00000011b7f7cd0 bsp=e00000011b7f12c8
 [<a0000001003e4b20>] pci_acpi_scan_root+0x240/0x3e0
                                sp=e00000011b7f7cd0 bsp=e00000011b7f1278
 [<a000000100330380>] acpi_pci_root_add+0x480/0x620
                                sp=e00000011b7f7cf0 bsp=e00000011b7f1230
 [<a0000001003354c0>] acpi_bus_driver_init+0x80/0xe0
                                sp=e00000011b7f7d10 bsp=e00000011b7f1208
 [<a000000100337c80>] acpi_add_single_object+0x1480/0x1680
                                sp=e00000011b7f7d10 bsp=e00000011b7f11a0
 [<a000000100338110>] acpi_bus_scan+0x290/0x400
                                sp=e00000011b7f7d30 bsp=e00000011b7f1160
 [<a000000100645840>] acpi_scan_init+0x220/0x2c0
                                sp=e00000011b7f7d50 bsp=e00000011b7f1130
 [<a000000100009ee0>] init+0x540/0x880
                                sp=e00000011b7f7d60 bsp=e00000011b7f1108
 [<a0000001000128b0>] kernel_thread_helper+0xd0/0x100
                                sp=e00000011b7f7e30 bsp=e00000011b7f10e0
 [<a0000001000094a0>] start_kernel_thread+0x20/0x40
                                sp=e00000011b7f7e30 bsp=e00000011b7f10e0
e0000040fab29d88: redzone 1: 0x170fc2a5, redzone 2: 0xf901001a00000028.
Slab corruption: start=e0000040fab29ea8, len=256
Redzone: 0xad0e3701d2244a/0x5a2cf071.
Last user: [<a00000010028dbc0>](kobject_uevent+0x8a0/0x940)
000: 00 04 01 02 04 02 04 04 6b 6b 6b 6b 07 00 00 00
010: 0c 00 00 00 00 00 00 00 6b 6b 6b 6b 6b 6b 6b 6b
Prev obj: start=e0000040fab29d90, len=256
Redzone: 0x5a2cf071/0x5a2cf071.
Last user: [<a0000001002ea460>](acpi_os_free+0x20/0x40)
000: 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b
010: 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b
Next obj: start=e0000040fab29fc0, len=256
Redzone: 0x5a2cf071/0x5a2cf071.
Last user: [<a000000100415b20>](skb_release_data+0x1a0/0x1c0)
000: 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b
010: 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b
-----------------------------------------------------------------------



I startet to pack the acpi functions in arch/ia64/pci/pci.c
(pci_acpi_scan_root()) into:
acpi_dbg_level=0x21FFFF;      /* Enable ACPI DEBUG */
...
acpi_dbg_level=0xF;           /* Disable ACPI_DEBUG */

However I now used a rc3 kernel and the pci_acpi_scan_root() function
with it's ACPI invokations succeeded. Has there any work been made?

The slab error now happens a bit later in (acpi_sba_ioc_add()).
So I set the acpi_debug trace there.

It is probably the:
ACPI_MEM_FREE(dev_info);
in arch/ia64/hp/common/sba_iommu.c:

Output and changes made are attached.
Any ideas?

Thanks,

     Thomas

[-- Attachment #2: unaligned_access_debug.tar.bz2 --]
[-- Type: application/x-bzip2, Size: 9183 bytes --]

  reply	other threads:[~2006-02-13 18:51 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-10 23:31 some new unaligned access while booting ia64 (HP rx2620) Moore, Robert
2006-02-13 18:51 ` Thomas Renninger [this message]
2006-02-13 22:33   ` Bjorn Helgaas
2006-02-13 22:57     ` Andreas Schwab
2006-02-14  0:22       ` Bjorn Helgaas
2006-02-14 23:13         ` [PATCH] ACPI: fix vendor resource length computation Bjorn Helgaas
2006-02-14 23:19           ` Bjorn Helgaas
  -- strict thread matches above, loose matches on Subject: below --
2006-03-15 17:14 some new unaligned access while booting ia64 (HP rx2620) Moore, Robert
2006-03-15 15:47 Moore, Robert
2006-03-15 16:49 ` Bjorn Helgaas
2006-02-11  0:39 Luck, Tony
2006-02-11 12:21 ` Robin Holt
2006-02-10 23:58 Luck, Tony
2006-02-10 23:25 Luck, Tony
2006-02-10 23:15 Moore, Robert
2006-02-10 23:07 Moore, Robert
2006-02-10 22:58 Luck, Tony
2006-02-11 21:25 ` Bjorn Helgaas
2006-02-10 21:56 Moore, Robert
2006-02-10 21:54 Luck, Tony
2006-02-10 21:19 Moore, Robert
2006-02-10 21:15 Luck, Tony
2006-02-10 20:11 Moore, Robert
2006-02-09 23:43 Moore, Robert
2006-02-10  2:07 ` Thomas Renninger
2006-02-09 21:15 Luck, Tony
2006-02-09 21:04 Luck, Tony
2006-02-09 20:55 Moore, Robert
2006-02-09 20:44 Luck, Tony
2006-02-09 16:56 Moore, Robert
2006-02-02 22:28 Moore, Robert
2006-02-02 19:46 Luck, Tony
2006-03-14 23:59 ` Bjorn Helgaas

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=43F0D526.5010806@suse.de \
    --to=trenn@suse.de \
    --cc=len.brown@intel.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-ia64@vger.kernel.org \
    --cc=robert.moore@intel.com \
    --cc=tony.luck@intel.com \
    /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