From: Andriy Gapon <avg at FreeBSD.org>
To: devel@acpica.org
Subject: Re: [Devel] ref-counting races?
Date: Wed, 21 Nov 2012 01:08:56 +0200 [thread overview]
Message-ID: <50AC0D88.5070709@FreeBSD.org> (raw)
In-Reply-To: 94F2FBAB4432B54E8AACC7DFDE6C92E346BC06D0@ORSMSX101.amr.corp.intel.com
[-- Attachment #1: Type: text/plain, Size: 1231 bytes --]
on 13/11/2012 18:50 Moore, Robert said the following:
> I still think that it might be interesting to examine the AcpiGbl_MutexInfo
> array during add reference and remove reference to see if there is any case
> where the reference count functions are called with no lock held.
I still haven't got around to implementing this useful debugging technique.
Meanwhile we've got another FreeBSD report which appears to be related:
http://article.gmane.org/gmane.os.freebsd.devel.acpi/7562
Two new notes.
Could these issues be caused by FreeBSD using multiple threads to handle ACPI
Notify-s? So that some Notify-s may get processed in parallel and thus cause
some parallel access to ACPICA and AML.
AcpiUtUpdateRefCount handling of REF_DECREMENT && Count < 1 looks worrying.
Not sure if that ever happens in practice, but since the code exists...
The case is being treated as a minor event (judging from the debugging print),
but we are already lucky if we see Count == 0 there instead of some garbage or
just plain crashing because the memory is already freed. Nevertheless we
discard even that luck by happily continuing into potentially a repeated call to
AcpiUtDeleteInternalObj.
--
Andriy Gapon
next reply other threads:[~2012-11-20 23:08 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-20 23:08 Andriy Gapon [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-03-24 11:10 [Devel] ref-counting races? Andriy Gapon
2013-03-24 10:54 Andriy Gapon
2013-03-22 20:23 Moore, Robert
2013-03-22 4:28 Zheng, Lv
2013-03-21 19:46 Moore, Robert
2013-03-21 18:07 Andriy Gapon
2012-11-21 15:18 Moore, Robert
2012-11-13 16:50 Moore, Robert
2012-11-13 1:51 Moore, Robert
2012-11-10 15:04 Andriy Gapon
2012-11-09 16:03 Andriy Gapon
2012-11-09 15:59 Andriy Gapon
2012-11-09 15:50 Moore, Robert
2012-11-09 15:42 Moore, Robert
2012-11-09 14:41 Andriy Gapon
2012-11-09 14:28 Moore, Robert
2012-11-09 7:33 Andriy Gapon
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=50AC0D88.5070709@FreeBSD.org \
--to=devel@acpica.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.