mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@osdl.org>
To: hugh@veritas.com, torvalds@osdl.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] mm: poison struct page for ptlock
Date: Sun, 6 Nov 2005 14:57:10 -0800	[thread overview]
Message-ID: <20051106145710.0af9bb63.akpm@osdl.org> (raw)
In-Reply-To: <20051106112838.0d524f65.akpm@osdl.org>

Andrew Morton <akpm@osdl.org> wrote:
>
>  Hugh Dickins <hugh@veritas.com> wrote:
>  >
>  > The split ptlock patch enlarged the default SMP PREEMPT struct page from
>  > 32 to 36 bytes on most 32-bit platforms, from 32 to 44 bytes on PA-RISC
>  > 7xxx (without PREEMPT).  That was not my intention, and I don't believe
>  > that split ptlock deserves any such slice of the user's memory.
>  > 
>  > While leaving most of the page_private() mods in place for the moment,
>  > could we please try this patch, or something like it?  Again to overlay
>  > the spinlock_t from &page->private onwards, with corrected BUILD_BUG_ON
>  > that we don't go beyond ->lru; with poisoning of the fields overlaid,
>  > and unsplit config verifying that the split config is safe to use them.
>  > 
> 
>  This patch makes the ppc64 crash.  See
>  http://www.zip.com.au/~akpm/linux/patches/stuff/dsc02976.jpg
> 
>  I don't know what the access address was (ia32 nicely tells you), but if
>  it's `DAR' then we have LIST_POISON1.  Which would indicate that the slab
>  page which backs the mm_struct itself is getting freed-up-pte-page
>  treatment, which is deeply screwed up.
> 
>  I'll try it on x86_64 and ia64, see if it's specific to ppc64.

Yup, the patch works OK on x86, x86_64 and ia64.

  parent reply	other threads:[~2005-11-06 22:57 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-03 19:26 Hugh Dickins
2005-11-05  5:32 ` Andrew Morton
2005-11-05  6:40   ` Hugh Dickins
2005-11-05  7:17     ` Andrew Morton
2005-11-06 19:28 ` Andrew Morton
2005-11-06 17:59   ` Anton Blanchard
2005-11-06 19:34   ` Olof Johansson
2005-11-06 22:39   ` Paul Mackerras
2005-11-06 22:57   ` Andrew Morton [this message]
2005-11-06 22:58   ` Hugh Dickins
2005-11-06 23:13     ` Andrew Morton
2005-11-06 23:36       ` David S. Miller
2005-11-06 23:48       ` Hugh Dickins
2005-11-07  0:00         ` Andrew Morton
2005-11-07  0:15           ` Hugh Dickins

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=20051106145710.0af9bb63.akpm@osdl.org \
    --to=akpm@osdl.org \
    --cc=hugh@veritas.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®