Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 6b4dbcd8 authored by Michael Buesch's avatar Michael Buesch Committed by Helge Deller
Browse files

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: default avatarMichael Buesch <mb@bu3sch.de>
Cc: stable@kernel.org
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent 450d6e30
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment