[PATCH] mtd: rfd_ftl: quiesce requests before freeing mappings

Miquel Raynal miquel.raynal at bootlin.com
Tue Nov 17 05:37:35 PST 2026


On Sat, 07 Nov 2026 18:35:46 +0900, Sung Byeongchan wrote:
> rfd_ftl_remove_dev() frees the sector map, header cache and block array
> before del_mtd_blktrans_dev() stops new requests and drains the blk-mq
> queue. A block read admitted before that late barrier can consequently use
> the freed sector map in rfd_ftl_readsect().
> 
> The issue reproduced as the same rfd_ftl_readsect() Oops in three of three
> fresh KASAN boots using the production MTD BLKPG add/delete and RFD block
> read paths. Normal, close-before-delete and wrong-partition controls were
> clean in nine of nine boots.
> 
> [...]

Applied to mtd/next, thanks!

[1/1] mtd: rfd_ftl: quiesce requests before freeing mappings
      commit: a44d0a16bb0e2594236b39307b9b8c3513298ee2

Patche(s) should be available on mtd/linux.git and will be
part of the next PR (provided that no robot complains by then).

Kind regards,
Miquèl




More information about the linux-mtd mailing list