Home
last modified time | relevance | path

Searched hist:"6 b4dbcd8" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/parisc/
H A Deisa_eeprom.c6b4dbcd8 Mon Jul 20 17:58:44 CDT 2009 Michael Buesch <mb@bu3sch.de> parisc: isa-eeprom - Fix loff_t usage

loff_t is a signed type. If userspace passes a negative ppos, the "count"
range check is weakened. "count"s bigger than HPEE_MAX_LENGTH will pass the check.
Also, if ppos is negative, the readb(eisa_eeprom_addr + *ppos) will poke in random
memory.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
Cc: stable@kernel.org
Signed-off-by: Helge Deller <deller@gmx.de>
6b4dbcd8 Mon Jul 20 17:58:44 CDT 2009 Michael Buesch <mb@bu3sch.de> parisc: isa-eeprom - Fix loff_t usage

loff_t is a signed type. If userspace passes a negative ppos, the "count"
range check is weakened. "count"s bigger than HPEE_MAX_LENGTH will pass the check.
Also, if ppos is negative, the readb(eisa_eeprom_addr + *ppos) will poke in random
memory.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
Cc: stable@kernel.org
Signed-off-by: Helge Deller <deller@gmx.de>