From: Jakub Kicinski <kuba@kernel.org>
To: Ivan Vecera <ivecera@redhat.com>
Cc: netdev@vger.kernel.org, Paolo Abeni <pabeni@redhat.com>,
Vadim Fedorenko <vadim.fedorenko@linux.dev>,
Arkadiusz Kubalewski <arkadiusz.kubalewski@intel.com>,
Jiri Pirko <jiri@resnulli.us>,
Prathosh Satish <Prathosh.Satish@microchip.com>,
Petr Oros <poros@redhat.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH net 2/3] dpll: zl3073x: use __dpll_device_change_ntf() and remove change_work
Date: Wed, 27 May 2026 16:29:13 -0700 [thread overview]
Message-ID: <20260527162913.40aa00fa@kernel.org> (raw)
In-Reply-To: <d8226c8e-8821-45b4-9188-be81047ea6ba@redhat.com>
On Wed, 27 May 2026 09:51:43 +0200 Ivan Vecera wrote:
> On 5/26/26 9:45 AM, Ivan Vecera wrote:
> > The change_work was introduced to send device change notifications
> > from DPLL device callbacks without deadlocking on dpll_lock, since
> > the callbacks are already invoked under that lock. Now that
> > __dpll_device_change_ntf() is exported for callers that already
> > hold dpll_lock, use it directly and remove the change_work
> > infrastructure entirely.
> >
> > This eliminates a race condition where change_work could be
> > re-scheduled after cancel_work_sync() during device teardown,
> > potentially causing the handler to dereference a freed or NULL
> > dpll_dev pointer.
> >
> > Fixes: 9363b4837659 ("dpll: zl3073x: Allow to configure phase offset averaging factor")
> > Signed-off-by: Ivan Vecera <ivecera@redhat.com>
>
> Hi Kuba & Paolo,
>
> patchwork reported netdev/build_allmodconfig_warn failure for this
> patch. But it looks weird:
>
> https://netdev-ctrl.bots.linux.dev/logs/build/1100767/14594344/build_allmodconfig_warn/stderr
>
> I don't understand how this is related to this patch.
Sparse randomly generates this once a week on a seemingly random patch,
I haven't dug into why. Safe to ignore.
next prev parent reply other threads:[~2026-05-27 23:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-26 7:45 [PATCH net 0/3] dpll: zl3073x: various fixes Ivan Vecera
2026-05-26 7:45 ` [PATCH net 1/3] dpll: export __dpll_device_change_ntf() for use under dpll_lock Ivan Vecera
2026-05-26 13:29 ` Jiri Pirko
2026-05-26 7:45 ` [PATCH net 2/3] dpll: zl3073x: use __dpll_device_change_ntf() and remove change_work Ivan Vecera
2026-05-27 7:51 ` Ivan Vecera
2026-05-27 23:29 ` Jakub Kicinski [this message]
2026-05-26 7:45 ` [PATCH net 3/3] dpll: zl3073x: make frequency monitor a per-device attribute Ivan Vecera
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=20260527162913.40aa00fa@kernel.org \
--to=kuba@kernel.org \
--cc=Prathosh.Satish@microchip.com \
--cc=arkadiusz.kubalewski@intel.com \
--cc=ivecera@redhat.com \
--cc=jiri@resnulli.us \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=poros@redhat.com \
--cc=vadim.fedorenko@linux.dev \
/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