aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/lpddr/lpddr_cmds.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2017-09-22 20:43:46 +0000
committerGreg Kroah-Hartman <[email protected]>2017-09-25 08:57:13 +0000
commitfa1ed74eb1c233be6131ec92df21ab46499a15b6 (patch)
tree8f45e2a37fbbe8bbdf9825c6ebe5974d29e304f0 /drivers/mtd/lpddr/lpddr_cmds.c
parentUSB: devio: Prevent integer overflow in proc_do_submiturb() (diff)
downloadkernel-fa1ed74eb1c233be6131ec92df21ab46499a15b6.tar.gz
kernel-fa1ed74eb1c233be6131ec92df21ab46499a15b6.zip
USB: devio: Don't corrupt user memory
The user buffer has "uurb->buffer_length" bytes. If the kernel has more information than that, we should truncate it instead of writing past the end of the user's buffer. I added a WARN_ONCE() to help the user debug the issue. Reported-by: Alan Stern <[email protected]> Cc: stable <[email protected]> Signed-off-by: Dan Carpenter <[email protected]> Acked-by: Alan Stern <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/mtd/lpddr/lpddr_cmds.c')
0 files changed, 0 insertions, 0 deletions