mtd: Disable slram and phram when securelevel is enabled
authorBen Hutchings <ben@decadent.org.uk>
Thu, 2 Jun 2016 23:48:39 +0000 (00:48 +0100)
committerYves-Alexis Perez <corsac@debian.org>
Wed, 21 Feb 2018 15:29:03 +0000 (15:29 +0000)
commitb2ee14f61f2dff7fc3c3a9321d8ad78577391f0f
tree88e633a34e977a92f15b188b618094b97f60df87
parentece3cf3a07fc0c693fa99c93d84fcc5dea0d5921
mtd: Disable slram and phram when securelevel is enabled

The slram and phram drivers both allow mapping regions of physical
address space such that they can then be read and written by userland
through the MTD interface.  This is probably usable to manipulate
hardware into overwriting kernel code on many systems.  Prevent that
if securelevel is set.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic features/all/securelevel
Gbp-Pq: Name mtd-disable-slram-and-phram-when-securelevel-is-enabled.patch
drivers/mtd/devices/phram.c
drivers/mtd/devices/slram.c