From: Myeonghun Pak <mhun512@gmail.com>
To: Simon Horman <horms@kernel.org>
Cc: Dominik Brodowski <linux@dominikbrodowski.net>,
Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>,
Paolo Abeni <pabeni@redhat.com>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
stable@vger.kernel.org, Ijae Kim <ae878000@gmail.com>
Subject: Re: [PATCH v2] net: 8390: pcnet_cs: release PCMCIA window on setup_shmem_window() error
Date: Sun, 13 Sep 2026 16:37:17 -0400 [thread overview]
Message-ID: <CAGEsz8EWyKiZAiEK+D1O2HA6Y_K3AAmebmG+O0UStvwXf0SQ_A@mail.gmail.com> (raw)
In-Reply-To: <20260913143218.GJ48209@horms.kernel.org>
Thanks for the review. I'll drop the Fixes and stable Cc tags in v3.
2026년 9월 13일 (일) 오전 10:32, Simon Horman <horms@kernel.org>님이 작성:
>
> On Thu, Sep 10, 2026 at 07:14:00PM -0400, Myeonghun Pak wrote:
> > setup_shmem_window() acquires a PCMCIA memory window using
> > pcmcia_request_window(). If pcmcia_map_mem_page() or the subsequent
> > ioremap() fails, the function returns without releasing the requested
> > window.
> >
> > pcnet_config() treats shared-memory setup failure as non-fatal and falls
> > back to setup_dma_config(). Probe can therefore continue while socket
> > window 3 and its reserved iomem range remain unnecessarily held for the
> > rest of the bound lifetime of the device. pcmcia_disable_device()
> > eventually releases the window during teardown.
> >
> > Route error paths after a successful request through a new release label
> > that calls pcmcia_release_window(). Fold the existing buffer-verification
> > cleanup into the same path, keeping iounmap() before the window release
> > when a mapping exists. Leave the request failure path unchanged.
> >
> > This issue was identified during our ongoing static-analysis research while
> > reviewing kernel code.
> >
> > Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
> > Cc: stable@vger.kernel.org
>
> As pointed out by the AI-Generated review of this patch at
> https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20260910231400.31919-1-mhun512%40gmail.com
> This patch seems to be more of a cleanup than a bug fix - as noted above in
> the patch description, the resources are eventually released anyway.
>
> So I wonder if the Fixes and CC to stable should be dropped.
>
> > Assisted-by: OpenAI:GPT-5.6
> > Co-developed-by: Ijae Kim <ae878000@gmail.com>
> > Signed-off-by: Ijae Kim <ae878000@gmail.com>
> > Signed-off-by: Myeonghun Pak <mhun512@gmail.com>
> > ---
> > Changes in v2:
> > - Clarify that the window remains reserved only until device teardown.
> > - Make the DMA fallback and continued probe description conditional.
> > - Avoid claiming that every request failure leaves no resource held.
> > - Restore the surrounding indentation for the new goto statements.
> >
> > Link: https://lore.kernel.org/netdev/20260731161740.44955-1-mhun512@gmail.com/
>
> The process nit above notwithstanding, this patch looks good to me.
>
> Reviewed-by: Simon Horman <horms@kernel.org>
prev parent reply other threads:[~2026-09-13 20:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-31 16:17 [PATCH] " Myeonghun Pak
2026-08-05 9:57 ` Simon Horman
2026-09-10 23:14 ` [PATCH v2] " Myeonghun Pak
2026-09-13 14:32 ` Simon Horman
2026-09-13 20:37 ` Myeonghun Pak [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=CAGEsz8EWyKiZAiEK+D1O2HA6Y_K3AAmebmG+O0UStvwXf0SQ_A@mail.gmail.com \
--to=mhun512@gmail.com \
--cc=ae878000@gmail.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@dominikbrodowski.net \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=stable@vger.kernel.org \
/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®