From: Daniel Zahka <daniel.zahka@gmail.com>
To: Wei Wang <weibunny.kernel@gmail.com>,
kuba@kernel.org, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org
Cc: Wei Wang <weibunny@fb.com>, kernel test robot <lkp@intel.com>
Subject: Re: [PATCH net] psp: use unrcu_pointer() for the cmpxchg() on netdev psp_dev
Date: Thu, 13 Aug 2026 15:57:36 -0400 [thread overview]
Message-ID: <522517bd-869c-442d-81c8-c0236563a925@gmail.com> (raw)
In-Reply-To: <20260813193416.1544518-1-weibunny.kernel@gmail.com>
On 8/13/26 3:34 PM, Wei Wang wrote:
> From: Wei Wang <weibunny@fb.com>
>
> sparse reports:
>
> net/psp/psp_nl.c:513:13: sparse: sparse: cast removes address space
> '__rcu' of expression
>
> cmpxchg() returns typeof(*ptr) and its internal casts strip the __rcu
> annotation. Wrap it in unrcu_pointer(), the documented way to use an
> __rcu pointer with xchg() and friends.
>
> This was introduced by commit 06c2dce2d0f6 ("psp: add new netlink cmd
> for dev-assoc and dev-disassoc").
>
> No functional change intended.
>
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202608080910.l9KvOH7O-lkp@intel.com/
> Signed-off-by: Wei Wang <weibunny@fb.com>
Commits targeting the net tree need a fixes tag.
next prev parent reply other threads:[~2026-08-13 19:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-13 19:34 [PATCH net] psp: use unrcu_pointer() for the cmpxchg() on netdev psp_dev Wei Wang
2026-08-13 19:57 ` Daniel Zahka [this message]
2026-08-13 20:37 ` Wei Wang
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=522517bd-869c-442d-81c8-c0236563a925@gmail.com \
--to=daniel.zahka@gmail.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lkp@intel.com \
--cc=netdev@vger.kernel.org \
--cc=weibunny.kernel@gmail.com \
--cc=weibunny@fb.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.