login
Header Space

 
 

Re: Using sparse to catch invalid RCU dereferences?

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <paulmck@...>
Cc: Linux Kernel list <linux-kernel@...>, linux-sparse <linux-sparse@...>
Date: Friday, April 11, 2008 - 4:54 pm

On Thu, 2008-04-10 at 15:32 -0700, Paul E. McKenney wrote:
s

Oh. Hmm, I guess that wouldn't really be possible to find at least not
with sparse right now. Though maybe we can add some sort of annotation
that that special type can't even take zero directly.


Ah. Yeah, but we probably need a "raw" accessor anyway if we're going to
go this route, e.g. for any deref within the update-locked section.

 than

Hmm?


Not sure if applying that to an array would work, and I wouldn't want to
convert it to pointers either. But I suppose you could declare the array
like this:

static struct foo * __attribute__((bitwise or address_space)) array[7];

which should, as far as I understand, apply the attribute to the array
members instead of the array.

johannes
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Using sparse to catch invalid RCU dereferences?, Johannes Berg, (Mon Apr 7, 6:04 pm)
Re: Using sparse to catch invalid RCU dereferences?, Paul E. McKenney, (Tue Apr 8, 11:52 am)
Re: Using sparse to catch invalid RCU dereferences?, Peter Zijlstra, (Fri Apr 11, 2:18 pm)
Re: Using sparse to catch invalid RCU dereferences?, Paul E. McKenney, (Fri Apr 11, 2:43 pm)
Re: Using sparse to catch invalid RCU dereferences?, Johannes Berg, (Wed Apr 9, 4:09 pm)
Re: Using sparse to catch invalid RCU dereferences?, Paul E. McKenney, (Thu Apr 10, 6:32 pm)
Re: Using sparse to catch invalid RCU dereferences?, Johannes Berg, (Fri Apr 11, 4:54 pm)
Re: Using sparse to catch invalid RCU dereferences?, Johannes Berg, (Tue Apr 8, 12:09 pm)
Re: Using sparse to catch invalid RCU dereferences?, Paul E. McKenney, (Tue Apr 8, 1:24 pm)
speck-geostationary