login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
October
»
9
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() on RAM
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Greg KH
Subject:
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() on RAM
Date: Friday, October 8, 2010 - 8:04 pm
On Fri, Oct 08, 2010 at 10:41:42PM -0400, Nicolas Pitre wrote:
quoted text
> On Sat, 9 Oct 2010, Russell King - ARM Linux wrote: > > > On Fri, Oct 08, 2010 at 05:00:46PM -0700, Greg KH wrote: > > > But you can't expect that you make this change, and not fix up the > > > drivers, and people would be happy, right? The rule for API changes > > > like this, or anything, is that the person making the change fixes the > > > other drivers, and that seems to be the issue here. > > > > Let's entirely revert the change and wait for people's data to be > > corrupted then. I don't have the time nor the motivation to work > > through crap driver code to fix up these unreliable games which are > > already illegal on platforms such as x86. > > > > If people want their system to be unpredictable, then let's carry on > > giving them the rope to hang themselves in that manner. > > > > > Any pointers to patches where people have fixed up the drivers? > > > > Despite the discussion, I'm unaware of anyone really taking the issue > > seriously and producing any patches during the last six months. > > > > So, I say sod it, let's revert the change. > > I think that the real issue here is to avoid breaking those drivers > which were using this legitimately. So what about this compromize > instead: > > diff --git a/arch/arm/mm/ioremap.c b/arch/arm/mm/ioremap.c > index 99627d3..4f071e4 100644 > --- a/arch/arm/mm/ioremap.c > +++ b/arch/arm/mm/ioremap.c > @@ -201,6 +201,15 @@ void __iomem * __arm_ioremap_pfn_caller(unsigned long pfn, > if (pfn >= 0x100000 && (__pfn_to_phys(pfn) & ~SUPERSECTION_MASK)) > return NULL; > > + /* > + * Warn if RAM is mapped to discourage this usage. Let's forbid it > + * outright on ARMv6+ where this became architecturally undefined > + * in theory and causes memory corruption in practice. > + */ > + if (WARN_ON(pfn_valid(pfn))) > + if (__LINUX_ARM_ARCH__ >= 6) > + return NULL; > + > type = get_mem_type(mtype); > if (!type) > return NULL; >
That looks good to me, anyone else object to this? Now we also need a way to fix the drivers for real on ARMv6+ now... thanks, greg k-h --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] ARM: allow, but warn, when issuing ioremap() on RAM
, Felipe Contreras
, (Thu Oct 7, 2:44 am)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Baruch Siach
, (Thu Oct 7, 4:51 am)
[PATCH v2] ARM: allow, but warn, when issuing ioremap() on RAM
, Felipe Contreras
, (Thu Oct 7, 5:29 am)
Re: [PATCH v2] ARM: allow, but warn, when issuing ioremap( ...
, Uwe Kleine-König
, (Thu Oct 7, 11:00 am)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Russell King - ARM Linux
, (Thu Oct 7, 12:22 pm)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Felipe Contreras
, (Fri Oct 8, 2:32 am)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Russell King - ARM Linux
, (Fri Oct 8, 10:53 am)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Felipe Contreras
, (Fri Oct 8, 12:37 pm)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Andrew Morton
, (Fri Oct 8, 12:58 pm)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Russell King - ARM Linux
, (Fri Oct 8, 4:04 pm)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Greg KH
, (Fri Oct 8, 4:19 pm)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Greg KH
, (Fri Oct 8, 4:25 pm)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Russell King - ARM Linux
, (Fri Oct 8, 4:44 pm)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Greg KH
, (Fri Oct 8, 5:00 pm)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Russell King - ARM Linux
, (Fri Oct 8, 5:10 pm)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Russell King - ARM Linux
, (Fri Oct 8, 5:25 pm)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Felipe Contreras
, (Fri Oct 8, 5:45 pm)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Greg KH
, (Fri Oct 8, 5:54 pm)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Felipe Contreras
, (Fri Oct 8, 5:56 pm)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Nicolas Pitre
, (Fri Oct 8, 7:41 pm)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Greg KH
, (Fri Oct 8, 8:04 pm)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Nicolas Pitre
, (Fri Oct 8, 8:36 pm)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Russell King - ARM Linux
, (Sat Oct 9, 1:56 am)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Russell King - ARM Linux
, (Sat Oct 9, 2:21 am)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Felipe Contreras
, (Sat Oct 9, 2:32 am)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Felipe Contreras
, (Sat Oct 9, 3:00 am)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Felipe Contreras
, (Sat Oct 9, 3:28 am)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Arnd Bergmann
, (Sat Oct 9, 4:11 am)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Dave Airlie
, (Sat Oct 9, 4:43 am)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Uwe Kleine-König
, (Sat Oct 9, 4:44 am)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Christoph Hellwig
, (Sat Oct 9, 4:55 am)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Felipe Contreras
, (Sat Oct 9, 4:59 am)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Russell King - ARM Linux
, (Sat Oct 9, 5:05 am)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Felipe Contreras
, (Sat Oct 9, 5:10 am)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Felipe Contreras
, (Sat Oct 9, 5:17 am)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Russell King - ARM Linux
, (Sat Oct 9, 6:52 am)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Russell King - ARM Linux
, (Sat Oct 9, 7:37 am)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Arnd Bergmann
, (Sat Oct 9, 7:43 am)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Felipe Contreras
, (Sat Oct 9, 9:07 am)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Felipe Contreras
, (Sat Oct 9, 9:18 am)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Russell King - ARM Linux
, (Sat Oct 9, 9:45 am)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Nicolas Pitre
, (Sat Oct 9, 10:38 am)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Guennadi Liakhovetski
, (Sat Oct 9, 11:59 am)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Felipe Contreras
, (Sat Oct 9, 12:25 pm)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Felipe Contreras
, (Sat Oct 9, 1:16 pm)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Felipe Contreras
, (Sat Oct 9, 6:52 pm)
RE: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Pedanekar, Hemant
, (Sun Oct 10, 7:23 am)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Uwe Kleine-König
, (Mon Oct 11, 1:35 am)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Russell King - ARM Linux
, (Mon Oct 11, 2:02 am)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Uwe Kleine-König
, (Mon Oct 11, 2:24 am)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Catalin Marinas
, (Mon Oct 11, 2:26 am)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Catalin Marinas
, (Mon Oct 11, 3:05 am)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Felipe Contreras
, (Mon Oct 11, 3:08 am)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Russell King - ARM Linux
, (Mon Oct 11, 3:15 am)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Felipe Contreras
, (Mon Oct 11, 3:39 am)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Russell King - ARM Linux
, (Mon Oct 11, 3:52 am)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Pawel Moll
, (Mon Oct 11, 4:01 am)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Catalin Marinas
, (Mon Oct 11, 4:03 am)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Catalin Marinas
, (Mon Oct 11, 4:23 am)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Felipe Contreras
, (Mon Oct 11, 5:03 am)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Catalin Marinas
, (Mon Oct 11, 5:30 am)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Russell King - ARM Linux
, (Mon Oct 11, 8:25 am)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Nicolas Pitre
, (Mon Oct 11, 3:53 pm)
RE: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Woodruff, Richard
, (Wed Oct 13, 9:17 am)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Felipe Contreras
, (Thu Oct 14, 6:48 am)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Felipe Contreras
, (Thu Oct 14, 7:47 am)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Felipe Contreras
, (Thu Oct 14, 8:02 am)
RE: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Woodruff, Richard
, (Thu Oct 14, 8:29 am)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Catalin Marinas
, (Thu Oct 14, 10:18 am)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Felipe Contreras
, (Thu Oct 14, 10:44 am)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Benjamin Herrenschmidt
, (Fri Oct 15, 7:36 pm)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Benjamin Herrenschmidt
, (Fri Oct 15, 7:39 pm)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Felipe Contreras
, (Sat Oct 16, 2:43 am)
RE: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Woodruff, Richard
, (Sun Oct 17, 6:05 am)
RE: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Benjamin Herrenschmidt
, (Sun Oct 17, 4:17 pm)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Colin Cross
, (Tue Oct 19, 1:13 am)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Russell King - ARM Linux
, (Tue Oct 19, 11:12 am)
Re: [PATCH] ARM: allow, but warn, when issuing ioremap() o ...
, Russell King - ARM Linux
, (Tue Oct 19, 12:21 pm)
Re: About multi-line printk and the need (not) to repeat l ...
, Uwe Kleine-König
, (Tue Nov 23, 3:39 am)
Re: About multi-line printk and the need (not) to repeat l ...
, Uwe Kleine-König
, (Tue Nov 23, 3:58 am)
Re: About multi-line printk and the need (not) to repeat l ...
, Linus Torvalds
, (Tue Nov 23, 3:16 pm)
Re: About multi-line printk and the need (not) to repeat l ...
, Russell King - ARM Linux
, (Tue Nov 23, 3:33 pm)
[PATCH] md: Fix single printks with multiple KERN_<level>s
, Joe Perches
, (Tue Nov 23, 5:57 pm)
Re: [PATCH] md: Fix single printks with multiple KERN_<level>s
, Neil Brown
, (Tue Nov 23, 10:16 pm)
Re: About multi-line printk and the need (not) to repeat l ...
, Uwe Kleine-König
, (Wed Nov 24, 1:17 am)
[PATCH 0/6] add some KERN_CONT markers to continuation lines
, Uwe Kleine-König
, (Wed Nov 24, 1:56 am)
[PATCH 1/6] ARM: add some KERN_CONT markers to continuatio ...
, =?UTF-8?q?Uwe=20Klei ...
, (Wed Nov 24, 1:57 am)
[PATCH 2/6] block: add some KERN_CONT markers to continuat ...
, =?UTF-8?q?Uwe=20Klei ...
, (Wed Nov 24, 1:57 am)
[PATCH 3/6] net: add some KERN_CONT markers to continuatio ...
, =?UTF-8?q?Uwe=20Klei ...
, (Wed Nov 24, 1:57 am)
[PATCH 4/6] init: add some KERN_CONT markers to continuati ...
, =?UTF-8?q?Uwe=20Klei ...
, (Wed Nov 24, 1:57 am)
[PATCH 5/6] mm: add some KERN_CONT markers to continuation ...
, =?UTF-8?q?Uwe=20Klei ...
, (Wed Nov 24, 1:57 am)
[PATCH 6/6] tty/vt: add some KERN_CONT markers to continua ...
, =?UTF-8?q?Uwe=20Klei ...
, (Wed Nov 24, 1:57 am)
Re: About multi-line printk and the need (not) to repeat l ...
, MichaÅ MirosÅaw
, (Wed Nov 24, 2:09 am)
Re: [PATCH 3/6] net: add some KERN_CONT markers to continu ...
, David Miller
, (Sun Nov 28, 11:48 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
FUJITA Tomonori
Re: [Scst-devel] Integration of SCST in the mainstream Linux kernel
Uwe Kleine-König
Re: [PATCH v2] ARM: allow, but warn, when issuing ioremap() on RAM
Ingo Molnar
Re: [RFC/RFT PATCH] sched: automated per tty task groups
Josef Bacik
[PATCH] fallocate.2: add FALLOC_FL_PUNCH_HOLE flag definition
Andrew Morton
Re: [PATCH v3 0/4] Introduce hardware spinlock framework
git
:
Stefan Richter
Re: [kernel.org users] [RFD] On deprecating "git-foo" for builtins
Bert Wesarg
[TopGit PATCH v3 06/12] list_deps: accept -i/-w
Junio C Hamano
Re: [PATCH] Detached HEAD (experimental)
A Large Angry SCM
Re: [RFC] origin link for cherry-pick and revert
Petr Baudis
Re: PPC SHA-1 Updates in "pu"
git-commits-head
:
Linux Kernel Mailing List
libata: disable ATAPI AN by default
Linux Kernel Mailing List
ARM: 5905/1: ARM: Global ASID allocation on SMP
Linux Kernel Mailing List
misc: replace remaining __FUNCTION__ with __func__
Linux Kernel Mailing List
Disallow gcc versions 4.1.{0,1}
Linux Kernel Mailing List
timer: Try to survive timer callback preempt_count leak
linux-netdev
:
Arnaldo Carvalho de Melo
Re: [PATCH 06/37] dccp: Limit feature negotiation to connection setup phase
Gerrit Renker
[PATCH 1/5] dccp: Initialisation framework for feature negotiation
Daniel Lezcano
getsockopt(TCP_DEFER_ACCEPT) value change
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
Badalian Vyacheslav
Re: tc filter flow hash question
openbsd-misc
:
Boris Goldberg
Re: HP ProLiant DL320 v. Sun Fire V125
Stuart Henderson
Re: Kuro5hin: OpenBSD Founder Theo deRaadt Has Conflict of Interest With AMD
Karel Kulhavy
Re: No Blob without Puffy
Darrin Chandler
Re: strange output on openbsd C code
Nick Holland
Re: Install OpenBSD from USB ?
Colocation donated by:
Syndicate