rpms/kernel/devel linux-2.6-bootarg-strict-devmem.patch, NONE, 1.1 kernel.spec, 1.1485, 1.1486
Dave Jones
davej at fedoraproject.org
Mon Mar 30 19:23:38 UTC 2009
- Previous message (by thread): rpms/claws-mail-plugins/devel claws-mail-plugins.spec,1.40,1.41
- Next message (by thread): rpms/ganyremote/devel .cvsignore, 1.14, 1.15 ganyremote.spec, 1.14, 1.15 import.log, 1.10, 1.11 sources, 1.15, 1.16
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: davej
Update of /cvs/pkgs/rpms/kernel/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv18810
Modified Files:
kernel.spec
Added Files:
linux-2.6-bootarg-strict-devmem.patch
Log Message:
Add a strict-devmem=0 boot argument (#492803)
linux-2.6-bootarg-strict-devmem.patch:
--- NEW FILE linux-2.6-bootarg-strict-devmem.patch ---
diff --git a/drivers/char/mem.c b/drivers/char/mem.c
index 3586b3b..7141480 100644
--- a/drivers/char/mem.c
+++ b/drivers/char/mem.c
@@ -81,12 +81,27 @@ static inline int valid_mmap_phys_addr_range(unsigned long pfn, size_t size)
#endif
#ifdef CONFIG_STRICT_DEVMEM
+
+static int strict_devmem = 1;
+
+static int __init setup_strict_devmem(char *str)
+{
+ get_option(&str, &strict_devmem);
+
+ return 1;
+}
+
+__setup("strict-devmem=", setup_strict_devmem);
+
static inline int range_is_allowed(unsigned long pfn, unsigned long size)
{
u64 from = ((u64)pfn) << PAGE_SHIFT;
u64 to = from + size;
u64 cursor = from;
+ if (strict_devmem == 0)
+ return 1;
+
while (cursor < to) {
if (!devmem_is_allowed(pfn)) {
printk(KERN_INFO
Index: kernel.spec
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/devel/kernel.spec,v
retrieving revision 1.1485
retrieving revision 1.1486
diff -u -r1.1485 -r1.1486
--- kernel.spec 30 Mar 2009 15:08:54 -0000 1.1485
+++ kernel.spec 30 Mar 2009 19:23:08 -0000 1.1486
@@ -687,6 +687,8 @@
Patch3000: linux-2.6-btrfs-experimental-branch.patch
Patch3010: linux-2.6-relatime-by-default.patch
+Patch4000: linux-2.6-bootarg-strict-devmem.patch
+
Patch9001: revert-fix-modules_install-via-nfs.patch
Patch9002: cpufreq-add-atom-to-p4-clockmod.patch
@@ -1127,6 +1129,9 @@
# relatime
ApplyPatch linux-2.6-relatime-by-default.patch
+# Make strict devmem a boot arg
+ApplyPatch linux-2.6-bootarg-strict-devmem.patch
+
# USB
# ACPI
@@ -1849,6 +1854,9 @@
# and build.
%changelog
+* Mon Mar 30 2009 Dave Jones <davej at redhat.com> 2.6.29-24
+- Add a strict-devmem=0 boot argument (#492803)
+
* Mon Mar 30 2009 Adam Jackson <ajax at redhat.com>
- linux-2.6.29-pat-fixes.patch: Fix PAT/GTT interaction
- Previous message (by thread): rpms/claws-mail-plugins/devel claws-mail-plugins.spec,1.40,1.41
- Next message (by thread): rpms/ganyremote/devel .cvsignore, 1.14, 1.15 ganyremote.spec, 1.14, 1.15 import.log, 1.10, 1.11 sources, 1.15, 1.16
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list