Prev: ext4: BUG_ON could be triggered in ext4_mb_normalize_request()
Next: linux-next: Tree for April 7 (other build fixes)
From: Arnd Bergmann on 12 Apr 2010 16:50 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |