From: Ralf Baechle <ralf@oss.sgi.com>
To: Atsushi Nemoto <nemoto@toshiba-tops.co.jp>
Cc: dony.he@huawei.com, linux-mips@oss.sgi.com
Subject: Re: vmalloc bugs in 2.4.5???
Date: Thu, 27 Dec 2001 01:12:22 -0200 [thread overview]
Message-ID: <20011227011222.A16695@dea.linux-mips.net> (raw)
In-Reply-To: <20011227.105518.74756316.nemoto@toshiba-tops.co.jp>; from nemoto@toshiba-tops.co.jp on Thu, Dec 27, 2001 at 10:55:18AM +0900
On Thu, Dec 27, 2001 at 10:55:18AM +0900, Atsushi Nemoto wrote:
> >> In somewhere between 2.4.6 and 2.4.9, the call to flush_cache_all()
> >> disappered from vmalloc_area_pages(). I have a data corruption
> >> problem in vmalloc()ed area without this call. I think we still
> >> need this call.
>
> ralf> Have you ever resolved this problem? I've just doublechecked
> ralf> the vmalloc code and it seems as if it should be entirely safe
> ralf> without these two calls. The tlb is flushed on vfree so no
> ralf> stale entries for a vmalloc address can ever be in the tlb at
> ralf> vmalloc time, so this flush_tlb_all() is just an expensive nop.
> ralf> And the same it true for flush_cache_all() no matter if caches
> ralf> are physically or virtually indexed.
>
> I am still using the patch and have not tried without the two calls
> recently...
>
> When I found this problem, I suppose that vmalloc called after
> free_pages causes the data corruption. vmalloc can re-use pages freed
> by free_pages and it seems free_pages does not flush cache. If
> vmalloc is to use a page which is associated with dirty cache and has
> different "color", virtual aliasing happens and data may be corrupt.
> Is this wrong?
Yes, you're right as for the cache. But there is no reason for the
TLB flush, right?
Ralf
next prev parent reply other threads:[~2001-12-27 4:32 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-05 7:34 vmalloc bugs in 2.4.5??? machael
2001-11-05 7:34 ` machael
2001-11-06 21:08 ` Ralf Baechle
2001-11-07 0:47 ` machael
2001-11-07 0:47 ` machael
2001-11-07 1:39 ` Atsushi Nemoto
2001-11-07 2:09 ` machael
2001-11-07 2:09 ` machael
2001-11-07 10:41 ` Ralf Baechle
2001-11-07 11:29 ` machael
2001-11-07 11:29 ` machael
2001-11-08 15:16 ` Maciej W. Rozycki
2001-12-26 3:32 ` Ralf Baechle
2001-12-27 1:55 ` Atsushi Nemoto
2001-12-27 3:12 ` Ralf Baechle [this message]
2001-12-27 3:51 ` Atsushi Nemoto
2001-12-27 4:29 ` Ralf Baechle
2001-12-27 16:01 ` Tommy S. Christensen
2001-12-27 21:19 ` Ralf Baechle
2001-12-28 0:48 ` machael thailer
2001-12-28 0:48 ` machael thailer
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=20011227011222.A16695@dea.linux-mips.net \
--to=ralf@oss.sgi.com \
--cc=dony.he@huawei.com \
--cc=linux-mips@oss.sgi.com \
--cc=nemoto@toshiba-tops.co.jp \
/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.