kernel-ark/drivers
Patrick McManus 346e399b2a [PATCH] intelfb section fix
On Nov 16 2004 a change to intelfbdrv.c was commited (as part of 0.9.2 it
looks like) that added __initdata to all of the module param variables that
seems to create the opportunity for an oops.

I've recently been chasing an OOPS
(http://marc.theaimsgroup.com/?l=linux-kernel&m=111552250920370&w=2) I
created by reading every file on the /sys file system and I've traced it
back to this code in the intelfbdrv.  Though I had root privs in my initial
problem report, it turns out they are un-necessary to generate the oops -
all you've got to do is "cat /sys/module/intelfb/parameters/mode" enough
times and eventually it will oops.

This is because sysfs automatically exports all module_param declarations
to the sysfs file system..  which means those variables can be dynamically
evaluated at any later time, which of course means marking them __initdata
is a bad idea ;)..  when they happen to be char *'s it is an especially bad
idea ;).

Applying the patch below clears up the OOPS for me.

Signed-off-by: Patrick McManus <mcmanus@ducksong.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-05-28 16:46:09 -07:00
..
acorn
acpi [PATCH] ACPI build fix 2005-05-27 08:15:05 -07:00
atm
base [PATCH] driver core: restore event order for device_add() 2005-05-23 16:08:12 -07:00
block [PATCH] packet driver permission checking fix 2005-05-20 15:48:16 -07:00
bluetooth
cdrom [PATCH] ppc64 iSeries: make virtual DVD-RAMs writable again 2005-05-28 11:14:00 -07:00
char [PATCH] ipmi build fix 2005-05-25 15:31:27 -07:00
cpufreq
crypto
dio
eisa
fc4
firmware
i2c [PATCH] ppc64: Fix booting on latest G5 models 2005-05-22 17:34:42 -07:00
ide ide-cd: revert DMA mask test change 2005-05-27 07:36:17 -07:00
ieee1394
infiniband [PATCH] IB: fix endianness of path record MTU field 2005-05-25 15:31:28 -07:00
input [PATCH] fix jumpy mouse cursor on console 2005-05-28 11:14:01 -07:00
isdn
macintosh [PATCH] ppc32: Fix cpufreq vs. sleep issue 2005-05-28 11:14:01 -07:00
mca
md
media [PATCH] v4l: bttv i2c oops fix 2005-05-25 15:31:27 -07:00
message
misc
mmc [PATCH] MMC: Proper MMC command classes support 2005-05-21 10:27:02 +01:00
mtd
net Automatic merge of rsync://rsync.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6 2005-05-26 13:54:33 -07:00
nubus
oprofile
parisc
parport
pci [PATCH] Fixup VIA IRQ quirk 2005-05-27 08:15:05 -07:00
pcmcia
pnp
s390 Automatic merge of /spare/repo/netdev-2.6 branch qeth 2005-05-25 22:11:06 -04:00
sbus
scsi [PATCH] swsusp: ahd_dv_0 can't be stopped 2005-05-28 11:14:01 -07:00
serial When we detect that a 16550 was in fact part of a NatSemi SuperIO chip 2005-05-21 15:52:23 +01:00
sh
sn
tc
telephony
usb [PATCH] Fix up pwc driver compilation. 2005-05-28 10:36:27 -07:00
video [PATCH] intelfb section fix 2005-05-28 16:46:09 -07:00
w1
zorro
Kconfig
Makefile