lkml.org 
[lkml]   [2010]   [Apr]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH tip/core/urgent 1/4] rcu: add rcu_access_pointer and rcu_dereference_protected
    Date
    On Monday 12 April 2010 21:24:42 Josh Triplett wrote:
    > If you want to prevent people from deferencing the pointer directly, or
    > from assigning it to some other pointer, you could use Sparse's
    > __attribute__((noderef)) and
    > __attribute__((address_space(...)).
    >
    > See the definitions of __user and __iomem in include/linux/compiler.h
    > for instance. (And, looking at that file, now __percpu. Nice!)
    >
    > You'd then have to explicitly use __force at the point where you
    > legitimately dereference it.

    I have started a patch set for doing that a few weeks ago, still need
    to pick up that work again. Are there any other patches besides this
    series that I should base on top of now?

    Arnd


    \
     
     \ /
      Last update: 2010-04-12 22:33    [W:0.023 / U:2.284 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site