[PATCH] mtd: block: prevent reclaim I/O during request processing

Miquel Raynal miquel.raynal at bootlin.com
Fri Sep 25 07:29:14 PDT 2026


On Mon, 21 Sep 2026 09:49:20 +0800, Qingfang Deng wrote:
> The blktrans request callbacks run under dev->lock and may allocate
> memory with GFP_KERNEL. For example, mtdblock_writesect() uses vmalloc()
> to allocate its eraseblock cache. Direct reclaim can then recurse into
> block I/O and deadlock on resources held by the request being processed.
> syzbot reports a circular locking dependency involving the device mutex
> and fs_reclaim.
> 
> [...]

Applied to mtd/next, thanks!

[1/1] mtd: block: prevent reclaim I/O during request processing
      commit: d498b2ddda99eed28cde177b1620dbcea246a1c4

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