From: William Lee Irwin III <wli@holomorphy.com>
To: Mikkel Christiansen <mixxel@cs.auc.dk>
Cc: linux-kernel@vger.kernel.org
Subject: Re: vfree in timerfunciton causes kernel crash
Date: Fri, 16 Apr 2004 09:22:43 -0700 [thread overview]
Message-ID: <20040416162243.GR743@holomorphy.com> (raw)
In-Reply-To: <4080058A.8090607@cs.auc.dk>
On Fri, Apr 16, 2004 at 06:10:50PM +0200, Mikkel Christiansen wrote:
> Idea: a module allocates memory (vmalloc) for userspace program which
> then craches.
> Due to lack of activity timer is expires and free's the unused memory
> (vfree).
> (see tc_core.c later in this mail for details)
> Problem: when timer expires and vfree is called then kernel crashes -
> or rather freezes silently.
> Can anyone explain why this happens? a kernel bug?
> Cheers
> Mikkel
> kernel 2.6.5
Use schedule_work() to do this from process context. It's a programming
error (specifically a deadlock) to vfree() from interrupt context or with
interrupts disabled.
-- wli
prev parent reply other threads:[~2004-04-16 16:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-16 16:10 vfree in timerfunciton causes kernel crash Mikkel Christiansen
2004-04-16 16:22 ` William Lee Irwin III [this message]
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=20040416162243.GR743@holomorphy.com \
--to=wli@holomorphy.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mixxel@cs.auc.dk \
/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.