linux-stable/drivers
khali@linux-fr.org 378856d119 [PATCH] I2C: Fix incorrect sysfs file permissions in it87 and via686a drivers
The it87 and via686a hardware monitoring drivers each create a sysfs
file named "alarms" in R/W mode, while they should really create it in
read-only mode. Since we don't provide a store function for these files,
write attempts to these files will do something undefined (I guess) and
bad (I am sure). My own try resulted in a locked terminal (where I
attempted the write) and a 100% CPU load until next reboot.

As a side note, wouldn't it make sense to check, when creating sysfs
files, that readable files have a non-NULL show method, and writable
files have a non-NULL store method? I know drivers are not supposed to
do stupid things, but there is already a BUG_ON for several conditions
in sysfs_create_file, so maybe we could add two more?

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-05-12 10:00:24 -07:00
..
acorn 2.6.11 import 2005-05-12 09:59:06 -07:00
acpi 2.6.11 import 2005-05-12 09:59:06 -07:00
atm 2.6.11 import 2005-05-12 09:59:06 -07:00
base 2.6.11 import 2005-05-12 09:59:06 -07:00
block 2.6.11 import 2005-05-12 09:59:06 -07:00
bluetooth 2.6.11 import 2005-05-12 09:59:06 -07:00
cdrom 2.6.11 import 2005-05-12 09:59:06 -07:00
char [PATCH] drm missing memset can crash X server.. 2005-05-12 10:00:08 -07:00
cpufreq 2.6.11 import 2005-05-12 09:59:06 -07:00
crypto 2.6.11 import 2005-05-12 09:59:06 -07:00
dio 2.6.11 import 2005-05-12 09:59:06 -07:00
eisa 2.6.11 import 2005-05-12 09:59:06 -07:00
fc4 2.6.11 import 2005-05-12 09:59:06 -07:00
firmware 2.6.11 import 2005-05-12 09:59:06 -07:00
i2c [PATCH] I2C: Fix incorrect sysfs file permissions in it87 and via686a drivers 2005-05-12 10:00:24 -07:00
ide 2.6.11 import 2005-05-12 09:59:06 -07:00
ieee1394 2.6.11 import 2005-05-12 09:59:06 -07:00
infiniband 2.6.11 import 2005-05-12 09:59:06 -07:00
input [PATCH] Fix keyboards for Dell machines 2005-05-12 10:00:06 -07:00
isdn 2.6.11 import 2005-05-12 09:59:06 -07:00
macintosh 2.6.11 import 2005-05-12 09:59:06 -07:00
mca 2.6.11 import 2005-05-12 09:59:06 -07:00
md [PATCH] Fix for trivial fix for 2.6.11 raid6 compilation on ppc w/ Altivec 2005-05-12 10:00:05 -07:00
media [PATCH] modprobe bttv freezes the computer 2005-05-12 10:00:21 -07:00
message 2.6.11 import 2005-05-12 09:59:06 -07:00
misc 2.6.11 import 2005-05-12 09:59:06 -07:00
mmc 2.6.11 import 2005-05-12 09:59:06 -07:00
mtd 2.6.11 import 2005-05-12 09:59:06 -07:00
net [PATCH] Fix kernel panic on receive with WAN Hitachi SCA HD6457x 2005-05-12 10:00:15 -07:00
nubus 2.6.11 import 2005-05-12 09:59:06 -07:00
oprofile 2.6.11 import 2005-05-12 09:59:06 -07:00
parisc 2.6.11 import 2005-05-12 09:59:06 -07:00
parport 2.6.11 import 2005-05-12 09:59:06 -07:00
pci [PATCH] PCI: fix hotplug double free 2005-05-12 10:00:09 -07:00
pcmcia 2.6.11 import 2005-05-12 09:59:06 -07:00
pnp 2.6.11 import 2005-05-12 09:59:06 -07:00
s390 2.6.11 import 2005-05-12 09:59:06 -07:00
sbus 2.6.11 import 2005-05-12 09:59:06 -07:00
scsi 2.6.11 import 2005-05-12 09:59:06 -07:00
serial 2.6.11 import 2005-05-12 09:59:06 -07:00
tc 2.6.11 import 2005-05-12 09:59:06 -07:00
telephony 2.6.11 import 2005-05-12 09:59:06 -07:00
usb 2.6.11 import 2005-05-12 09:59:06 -07:00
video 2.6.11 import 2005-05-12 09:59:06 -07:00
w1 2.6.11 import 2005-05-12 09:59:06 -07:00
zorro 2.6.11 import 2005-05-12 09:59:06 -07:00
Kconfig 2.6.11 import 2005-05-12 09:59:06 -07:00
Makefile 2.6.11 import 2005-05-12 09:59:06 -07:00