[VZDQ] Compilation fix for CONFIG_VZ_QUOTA_UGID=n case - ifdefs in a couple of places;
- moved some code out of compiled-out file;
- 'ifdef' instead of 'if defined'.
http://bugzilla.openvz.org/show_bug.cgi?id=222
[UBC] Fix UB_NUMFILE accounting optimisation leakIn 2.6.16 files are put via RCU, so ub_file_uncharge() is called
in IRQ context. Thus non-atomic decrement of file_precharged must
be done with IRQs disabled.
Cleanups in vecalls.c and vzcalluser.h - C99 syntax in structures init;
- __user attribute where appropriate;
- pass NULL as pointer arg, not 0.
Also define an empty __user macro for userspace in vzcalluser.h
Found by sparse.
Fix of nrfiles accounting.Since file_cachep is not SLAB_UBC after Andrey's optimisations
slab_ub(file) will BUG_ON inside slab_ub_ref.
Use file->f_ub instead.
Have ext2 reject file handles with bad inode numbers early.This prevents bad inode numbers from triggering errors in
ext2_get_inode.
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
In tests we can see message: "mm_struct is referenced outside" After that message checkpoint fails.It seems that this situation is legal, so checkpoint could be restarted.
So we return -EAGAIN to be able to restart checkpoint.
[NETFILTER] x_tables: fix compat related crash on non-x86When iptables userspace adds an ipt_standard_target, it calculates the size
of the entire entry as:
sizeof(struct ipt_entry) + XT_ALIGN(sizeof(struct ipt_standard_target))
ipt_standard_target looks like this:
struct xt_standard_target
{
struct xt_entry_target target;
int verdict;
};
xt_entry_target contains a pointer, so when compiled for 64 bit the
structure gets an e...
[PPC] fixes the following compilation issue on ppc platformIn file included from include/asm/tlb.h:20,
from arch/powerpc/platforms/pseries/lpar.c:37:
include/asm/pgalloc.h:97: error: conflicting types for '__pte_alloc'
include/linux/mm.h:819: error: previous declaration of '__pte_alloc' was here
make[2]: *** [arch/powerpc/platforms/pseries/lpar.o] Error 1
[CPT] restoring threads with tsk->fs==NULLIf a nptl thread is ptraced, it does not die immediately
and we can arrive to the state:
parent
|
main_thread -----> thread1 [ptraced]
in TASK_ZOMBIE in TASK_ZOMBIE
To restore such configuration we do kernel_thread(CLONE_SIGNAL)
in context of main_thread. But if it is exited, it has tsk->fs == NULL
and kernel oopes.
Suggested fix is very simple: we just attach temporary...