diff options
author | Geert Uytterhoeven <geert@glider.be> | 2018-01-19 16:24:08 +0100 |
---|---|---|
committer | Todd Kjos <tkjos@google.com> | 2018-03-07 12:22:37 -0800 |
commit | c4a320621a8513c73a8f30083e99bcf62d19bd21 (patch) | |
tree | 21673b67a59f6cec3e24f61abd80da0ffa0d7116 /fs/proc/uid.c | |
parent | 86ad18f55c903d44f0da0d2f15491c5eab0944b8 (diff) |
FROMLIST: ARM: amba: Don't read past the end of sysfs "driver_override" buffer
When printing the driver_override parameter when it is 4095 and 4094
bytes long, the printing code would access invalid memory because we
need count + 1 bytes for printing.
Cfr. commits 4efe874aace57dba ("PCI: Don't read past the end of sysfs
"driver_override" buffer") and bf563b01c2895a4b ("driver core: platform:
Don't read past the end of "driver_override" buffer").
Fixes: 3cf385713460eb2b ("ARM: 8256/1: driver coamba: add device binding path 'driver_override'")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
(cherry picked from: https://patchwork.kernel.org/patch/10175611/)
Signed-off-by: Todd Kjos <tkjos@google.com>
Change-Id: I7a9fffc8e3cc775fcf693edae7b42d57c0a375c5
Diffstat (limited to 'fs/proc/uid.c')
0 files changed, 0 insertions, 0 deletions