]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 26 May 2016 22:45:37 +0000 (15:45 -0700)
commit1619eec402aa37fe3418f2c1457ced57161360ed
treee487495ff75f77d0a03dbcce2fe85f12d906f531
parentbb9dd236f8865657798145cd59f8b26e4a425465
ubi: Fix out of bounds write in volume update code

Orabug: 23330992

[ Upstream commit e4f6daac20332448529b11f09388f1d55ef2084c ]

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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
(cherry picked from commit 325940deb74b23351f507d5f1e1e01592c1efa1c)

Signed-off-by: Dan Duval <dan.duval@oracle.com>
drivers/mtd/ubi/upd.c