aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/array.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven <[email protected]>2018-04-10 13:21:45 +0000
committerGreg Kroah-Hartman <[email protected]>2018-04-25 16:07:17 +0000
commitd2ffed5185df9d8d9ccd150e4340e3b6f96a8381 (patch)
treea3a11243b2bff482034b31415fa485407d2c0ecb /fs/proc/array.c
parentARM: amba: Fix race condition with driver_override (diff)
downloadkernel-d2ffed5185df9d8d9ccd150e4340e3b6f96a8381.tar.gz
kernel-d2ffed5185df9d8d9ccd150e4340e3b6f96a8381.zip
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 <[email protected]> Reviewed-by: Todd Kjos <[email protected]> Cc: stable <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions