RE: [git pull] x86 PAT changes

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Ingo Molnar <mingo@...>, Linus Torvalds <torvalds@...>
Cc: H. Peter Anvin <hpa@...>, <linux-kernel@...>, Andrew Morton <akpm@...>, Thomas Gleixner <tglx@...>
Date: Saturday, April 26, 2008 - 12:54 pm

>-----Original Message-----

Agreed that NONPROMISC_DEVMEM is not really needed for read/write. But,
we will still need it for /dev/mem.

The problem with /dev/mem maps of RAM is situation like this:
1) drivers does vmalloc(), followed by set_memory_uc.
2) User does a /dev/mem map of that vmalloced physical address. User
will get a UC mapping for /dev/mem.
3) driver changes the memory to set_memory_wb and frees the memory.
4) user mapping for this address is still UC which will lead to
aliasing.

Read/write is ok, as they will just use __va for RAM to access and that
will always be consistent.

Thanks,
Venki
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[git pull] x86 PAT changes, Ingo Molnar, (Thu Apr 24, 6:56 pm)
Re: [git pull] x86 PAT changes, Gabriel C, (Sat Apr 26, 9:40 am)
Re: [git pull] x86 PAT changes, Ingo Molnar, (Sat Apr 26, 10:42 am)
Re: [git pull] x86 PAT changes, Gabriel C, (Sat Apr 26, 11:37 am)
Re: [git pull] x86 PAT changes, Ingo Molnar, (Sat Apr 26, 11:41 am)
Re: [git pull] x86 PAT changes, Linus Torvalds, (Sat Apr 26, 12:43 pm)
Re: [git pull] x86 PAT changes, Linus Torvalds, (Fri Apr 25, 7:43 pm)
Re: [git pull] x86 PAT changes, Ingo Molnar, (Sat Apr 26, 5:57 am)
Re: [git pull] x86 PAT changes, H. Peter Anvin, (Fri Apr 25, 8:06 pm)
Re: [git pull] x86 PAT changes, Linus Torvalds, (Fri Apr 25, 9:12 pm)
Re: [git pull] x86 PAT changes, Ingo Molnar, (Sat Apr 26, 4:56 am)
RE: [git pull] x86 PAT changes, Pallipadi, Venkatesh, (Sat Apr 26, 12:54 pm)
RE: [git pull] x86 PAT changes, Linus Torvalds, (Sat Apr 26, 1:15 pm)
Re: [git pull] x86 PAT changes, Venki Pallipadi, (Sat Apr 26, 2:32 pm)
[patch] x86, PAT: disable /dev/mem mmap RAM with PAT, Ingo Molnar, (Sat Apr 26, 3:07 pm)