mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "NG, TZE YEE" <tze.yee.ng@altera.com>
To: Michael Walle <mwalle@kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	Pratyush Yadav <pratyush@kernel.org>,
	Takahiro Kuwano <takahiro.kuwano@infineon.com>,
	"linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>
Subject: Re: [PATCH v3 0/2] mtd: spi-nor: fix use-after-free on unbind with open handles
Date: Wed, 25 Nov 2026 16:09:18 +0800	[thread overview]
Message-ID: <abe873c7-1cc8-460a-a964-e2ca0ab5dfa6@altera.com> (raw)
In-Reply-To: <DMZVY45HFRM3.2GTCZ9BV3YJL8@kernel.org>



On 20/11/2026 4:12 pm, Michael Walle wrote:
> Hi,
> 
> On Fri Nov 20, 2026 at 3:21 AM CET, TZE YEE NG wrote:
>> I would prefer to keep this series as a spi-nor-only fix, since it
>> solves the problem for spi-nor today. James Hilliard's raw NAND series
>> [1] adds a generic opt-in lifetime to the core (mtd_set_release()). I
>> would be happy to look at moving spi-nor onto it if it lands, but maybe
>> in another series. Are you okay with keeping this series as is?
> 
> No, not really. Sorry. Esp. given how cluttered it is and just
> solves the problem for one user of the MTD subsystem.
> 
> -michael

Hi Michael,

Understood, thanks for the direct answer. I'll drop the idea of merging
this as a spi-nor-only fix.

Two questions so I can pick the right next step:

1. Patch 1 (the module_put() reorder in __put_mtd_device()) is a small,
    independent fix, and James's series [1] lists it as a prerequisite.
    Are you okay with me sending it separately?

2. For spi-nor, would you prefer I wait for the core lifetime in
    James's series (mtd_set_release()) and convert spi-nor onto it? I
    can do the spi-nor conversion and test it on hardware. I can't test
    the other MTD drivers.

Thanks,
Tze Yee

[1] 
https://lore.kernel.org/all/20261115-submit-rawnand-retained-handle-lifetime-v1-v5-0-cbc49c5c5e74@gmail.com/

      reply	other threads:[~2026-11-25  8:09 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-22  3:53 tze.yee.ng
2026-10-22  3:53 ` [PATCH v3 1/2] mtd: core: drop the module reference after ->_put_device() tze.yee.ng
2026-10-22  3:53 ` [PATCH v3 2/2] mtd: spi-nor: fix use-after-free on unbind with open handles tze.yee.ng
     [not found] ` <SJ0PR03MB5950FE5D82CA5E77AAE0AC9CA17A2@SJ0PR03MB5950.namprd03.prod.outlook.com>
2026-11-18  9:36   ` [PATCH v3 0/2] " Michael Walle
2026-11-20  2:21     ` NG, TZE YEE
2026-11-20  8:12       ` Michael Walle
2026-11-25  8:09         ` NG, TZE YEE [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=abe873c7-1cc8-460a-a964-e2ca0ab5dfa6@altera.com \
    --to=tze.yee.ng@altera.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=mwalle@kernel.org \
    --cc=pratyush@kernel.org \
    --cc=takahiro.kuwano@infineon.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®