]> git.baikalelectronics.ru Git - kernel.git/commit
ubi: Fix out of bounds write in volume update code
authorRichard Weinberger <richard@nod.at>
Sun, 21 Feb 2016 09:53:03 +0000 (10:53 +0100)
committerRichard Weinberger <richard@nod.at>
Sat, 5 Mar 2016 20:56:23 +0000 (21:56 +0100)
commit512fe7deb9239609615824f9c597f4ab8e56a03f
tree176dde53412c2d03a732188850394580159dade8
parentb4c6e182f5b636364ef191076c0c02fb76bae986
ubi: Fix out of bounds write in volume update code

ubi_start_leb_change() allocates too few bytes.
ubi_more_leb_change_data() will write up to req->upd_bytes +
ubi->min_io_size bytes.

Cc: stable@vger.kernel.org
Signed-off-by: Richard Weinberger <richard@nod.at>
Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/ubi/upd.c