* de-reference of rcu pointers (sparse warnings)
@ 2019-11-05 8:13 Ben Dooks
0 siblings, 0 replies; only message in thread
From: Ben Dooks @ 2019-11-05 8:13 UTC (permalink / raw)
To: linux-kernel; +Cc: linux-arch
There are a few places in the kenrnel which directly de-reference
pointers marked as "noderef" such sa rcu or percpu. In the case
of rcu, one example is:
kernel/fork.c:2146:32: warning: incorrect type in assignment (different
address spaces)
kernel/fork.c:2146:32: expected struct task_struct [noderef] <asn:4>
*real_parent
kernel/fork.c:2146:32: got struct task_struct *task
this looks fairly non-trivial to fix given there's a mix of __rcu and
non-__rcu
attributed variables.
Does anyone have an idea how to go about fixing these, if possible?
--
Ben
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-11-05 8:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-05 8:13 de-reference of rcu pointers (sparse warnings) Ben Dooks
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®