rcu: add rcu_access_pointer and rcu_dereference_protected
Paul E. McKenney <paulmck(a)linux.vnet.ibm.com> wrote: The new rcu_access_pointer() primitive is for the case where the pointer is be fetch and not dereferenced. This primitive may be used without protection, RCU or otherwise, due to the fact that it uses ACCESS_ONCE(). ... +#define rcu_access_pointer(p... 12 Apr 2010 17:02
ext4: BUG_ON could be triggered in ext4_mb_normalize_request()
2010/4/7, tytso(a)mit.edu <tytso(a)mit.edu>: On Wed, Apr 07, 2010 at 09:51:46PM +0800, jing zhang wrote: From: Jing Zhang <zj.barak(a)gmail.com> Date: Wed Apr 7 21:34:48 2010 BUG_ON at [line: 2912] could be triggered, if (pa->pa_deleted == 0 && pa->pa_free == 0) as checked at [line: 31... 7 Apr 2010 13:30
slub: Fix kmem_ptr_validate() for non-kernel pointers
Acked-by: Christoph Lameter <cl(a)linux-foundation.org> -- 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/ ... 8 Apr 2010 15:11
slab: Generify kernel pointer validation
On Wed, 7 Apr 2010, Pekka Enberg wrote: +int kern_ptr_validate(const void *ptr, unsigned long size) +{ + unsigned long addr = (unsigned long)ptr; + unsigned long min_addr = PAGE_OFFSET; Use the min_addr from the security subsystem? -- To unsubscribe from this list: send the line "unsubscribe linux-... 7 Apr 2010 13:30
ext4: memory leakage in ext4_mb_init()
2010/4/6, tytso(a)mit.edu <tytso(a)mit.edu>: On Tue, Apr 06, 2010 at 09:43:58PM +0800, jing zhang wrote: In my view, one of the important parts of a patch is that the patcher is really concerning what is patched, another is whether the questions listed in the patch do exist, and whether the solution, if ... 7 Apr 2010 13:30
rcu: add rcu_access_pointer and rcu_dereference_protected
* Paul E. McKenney (paulmck(a)linux.vnet.ibm.com) wrote: This patch adds variants of rcu_dereference() that handle situations where the RCU-protected data structure cannot change, perhaps due to our holding the update-side lock, or where the RCU-protected pointer is only to be fetched, not dereferenced. Thes... 7 Apr 2010 13:30
[PATCH 2/2] slub: Fix kmem_ptr_validate() for non-kernel pointers
As suggested by Linus, fix up kmem_ptr_validate() to handle non-kernel pointers more graciously. The patch changes kmem_ptr_validate() to use the newly introduced kern_ptr_validate() helper to check that a pointer is a valid kernel pointer before we attempt to convert it into a 'struct page'. Cc: Andrew Morton <a... 7 Apr 2010 13:30
[PATCH] xtables: make XT_ALIGN() usable in exported headers by exporting __ALIGN_KERNEL()
XT_ALIGN() was rewritten through ALIGN() by commit 42107f5009da223daa800d6da6904d77297ae829 "netfilter: xtables: symmetric COMPAT_XT_ALIGN definition". ALIGN() is not exported in userspace headers, which created compile problem for tc(8) and will create problem for iptables(8). We can't export generic looking nam... 7 Apr 2010 13:30
Add a tunable that decides when memory should be compacted and when it should be reclaimed
On Tue, Apr 06, 2010 at 05:06:13PM -0700, Andrew Morton wrote: On Fri, 2 Apr 2010 17:02:46 +0100 Mel Gorman <mel(a)csn.ul.ie> wrote: The kernel applies some heuristics when deciding if memory should be compacted or reclaimed to satisfy a high-order allocation. One of these is based on the fragme... 7 Apr 2010 12:22
IPVS: replace sprintf to snprintf to avoid stack buffer overflow
Simon Horman wrote: On Tue, Apr 06, 2010 at 10:50:20AM +0800, wzt.wzt(a)gmail.com wrote: IPVS not check the length of pp->name, use sprintf will cause stack buffer overflow. struct ip_vs_protocol{} declare name as char *, if register a protocol as: struct ip_vs_protocol ip_vs_test = { .name = ... 8 Apr 2010 08:21