[PATCH] mtd: spi-nor: intel-spi: Do not try to make the SPI flash chip writable
David.Laight at ACULAB.COM
Wed Aug 19 05:19:52 EDT 2020
From: Arnd Bergmann
> Sent: 19 August 2020 09:38
> If you are really worried about the write protection being bypassed by
> a different driver or code injection, the best way would seem to be to
> only enable writing in the mtd write callback and disable it immediately
> after the write is complete. I still don't see why this hardware would
> be more susceptible to this kind of attack than other drivers though,
> as it already has the safeguard against writing through the MTD layer
> without the module parameter.
It is pretty unlikely that anyone will accidentally do an spi write
(it is all too complicated).
Anything that is being mischievous can send the write enable
If you care you need to use the device pin to disable writes.
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)
More information about the linux-mtd