From: Andrew Morton <akpm@osdl.org>
To: David Howells <dhowells@redhat.com>
Cc: torvalds@osdl.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] order>0 page freeing bug
Date: Thu, 8 Apr 2004 12:29:36 -0700 [thread overview]
Message-ID: <20040408122936.49a008d5.akpm@osdl.org> (raw)
In-Reply-To: <5213.1081441917@redhat.com>
David Howells <dhowells@redhat.com> wrote:
>
> Here's a patch to fix a bug that occurs when an order>0 page allocation is
> freed.
>
> The bug can be demonstrated by this example:
>
> (1) if __alloc_page() returns an order 1 allocation, you get back two pages,
> both with count == 1
>
> (2) __free_pages() only decrements the counter on the first page
>
> (3) __free_pages_ok() calls free_pages_check() on both pages
>
> (4) free_pages_check() complains that the second page is a bad_page because
> its count is not 0 at that point.
That doesn't sound right - if this was the case, each and every order>0
page freeing would be generating warnings, would it not?
next prev parent reply other threads:[~2004-04-08 19:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-08 16:31 David Howells
2004-04-08 19:29 ` Andrew Morton [this message]
2004-04-13 14:02 ` David Howells
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=20040408122936.49a008d5.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=dhowells@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.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
all inboxes | Powered by JetHome®