diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2018-04-10 16:21:45 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-05-02 01:13:08 +0300 |
commit | 8970c12ac9b917b27e42c0537ab7fce0357f0cf3 (patch) | |
tree | ba7cf206b7bfaa73df3991e10d3b7b87727de808 /Documentation | |
parent | 272c99cf85a371401b78f3c56a18745bf07817a3 (diff) | |
download | linux-8970c12ac9b917b27e42c0537ab7fce0357f0cf3.tar.xz |
ARM: amba: Don't read past the end of sysfs "driver_override" buffer
commit d2ffed5185df9d8d9ccd150e4340e3b6f96a8381 upstream.
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>
Reviewed-by: Todd Kjos <tkjos@google.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions