]>
Commit | Line | Data |
---|---|---|
1163e6ab | 1 | diff -NurpP --minimal linux-2.6.37/arch/alpha/Kconfig linux-2.6.37-vs2.3.0.37-rc3/arch/alpha/Kconfig |
ab30d09f | 2 | --- linux-2.6.37/arch/alpha/Kconfig 2011-01-05 21:48:40.000000000 +0100 |
1163e6ab | 3 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/alpha/Kconfig 2010-11-23 02:09:40.000000000 +0100 |
93de0823 | 4 | @@ -677,6 +677,8 @@ config DUMMY_CONSOLE |
2380c486 JR |
5 | depends on VGA_HOSE |
6 | default y | |
d337f35e JR |
7 | |
8 | +source "kernel/vserver/Kconfig" | |
9 | + | |
10 | source "security/Kconfig" | |
11 | ||
12 | source "crypto/Kconfig" | |
1163e6ab | 13 | diff -NurpP --minimal linux-2.6.37/arch/alpha/kernel/entry.S linux-2.6.37-vs2.3.0.37-rc3/arch/alpha/kernel/entry.S |
ab30d09f | 14 | --- linux-2.6.37/arch/alpha/kernel/entry.S 2010-10-21 13:06:45.000000000 +0200 |
1163e6ab | 15 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/alpha/kernel/entry.S 2010-11-23 02:09:40.000000000 +0100 |
93de0823 | 16 | @@ -860,24 +860,15 @@ sys_getxgid: |
d337f35e JR |
17 | .globl sys_getxpid |
18 | .ent sys_getxpid | |
19 | sys_getxpid: | |
20 | + lda $sp, -16($sp) | |
21 | + stq $26, 0($sp) | |
22 | .prologue 0 | |
23 | - ldq $2, TI_TASK($8) | |
24 | ||
25 | - /* See linux/kernel/timer.c sys_getppid for discussion | |
26 | - about this loop. */ | |
27 | - ldq $3, TASK_GROUP_LEADER($2) | |
28 | - ldq $4, TASK_REAL_PARENT($3) | |
29 | - ldl $0, TASK_TGID($2) | |
30 | -1: ldl $1, TASK_TGID($4) | |
31 | -#ifdef CONFIG_SMP | |
32 | - mov $4, $5 | |
33 | - mb | |
34 | - ldq $3, TASK_GROUP_LEADER($2) | |
35 | - ldq $4, TASK_REAL_PARENT($3) | |
36 | - cmpeq $4, $5, $5 | |
37 | - beq $5, 1b | |
38 | -#endif | |
39 | - stq $1, 80($sp) | |
40 | + lda $16, 96($sp) | |
41 | + jsr $26, do_getxpid | |
42 | + ldq $26, 0($sp) | |
43 | + | |
44 | + lda $sp, 16($sp) | |
45 | ret | |
46 | .end sys_getxpid | |
47 | ||
1163e6ab | 48 | diff -NurpP --minimal linux-2.6.37/arch/alpha/kernel/ptrace.c linux-2.6.37-vs2.3.0.37-rc3/arch/alpha/kernel/ptrace.c |
ab30d09f | 49 | --- linux-2.6.37/arch/alpha/kernel/ptrace.c 2011-01-05 21:48:40.000000000 +0100 |
1163e6ab | 50 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/alpha/kernel/ptrace.c 2010-11-23 02:09:40.000000000 +0100 |
78865d5b AM |
51 | @@ -13,6 +13,7 @@ |
52 | #include <linux/user.h> | |
d337f35e JR |
53 | #include <linux/security.h> |
54 | #include <linux/signal.h> | |
55 | +#include <linux/vs_base.h> | |
56 | ||
57 | #include <asm/uaccess.h> | |
58 | #include <asm/pgtable.h> | |
1163e6ab | 59 | diff -NurpP --minimal linux-2.6.37/arch/alpha/kernel/systbls.S linux-2.6.37-vs2.3.0.37-rc3/arch/alpha/kernel/systbls.S |
ab30d09f | 60 | --- linux-2.6.37/arch/alpha/kernel/systbls.S 2010-10-21 13:06:46.000000000 +0200 |
1163e6ab | 61 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/alpha/kernel/systbls.S 2010-11-23 02:09:40.000000000 +0100 |
d337f35e JR |
62 | @@ -446,7 +446,7 @@ sys_call_table: |
63 | .quad sys_stat64 /* 425 */ | |
64 | .quad sys_lstat64 | |
65 | .quad sys_fstat64 | |
66 | - .quad sys_ni_syscall /* sys_vserver */ | |
67 | + .quad sys_vserver /* sys_vserver */ | |
68 | .quad sys_ni_syscall /* sys_mbind */ | |
69 | .quad sys_ni_syscall /* sys_get_mempolicy */ | |
70 | .quad sys_ni_syscall /* sys_set_mempolicy */ | |
1163e6ab | 71 | diff -NurpP --minimal linux-2.6.37/arch/alpha/kernel/traps.c linux-2.6.37-vs2.3.0.37-rc3/arch/alpha/kernel/traps.c |
ab30d09f | 72 | --- linux-2.6.37/arch/alpha/kernel/traps.c 2010-10-21 13:06:46.000000000 +0200 |
1163e6ab | 73 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/alpha/kernel/traps.c 2010-11-23 02:09:40.000000000 +0100 |
93de0823 | 74 | @@ -183,7 +183,8 @@ die_if_kernel(char * str, struct pt_regs |
d337f35e JR |
75 | #ifdef CONFIG_SMP |
76 | printk("CPU %d ", hard_smp_processor_id()); | |
77 | #endif | |
2380c486 | 78 | - printk("%s(%d): %s %ld\n", current->comm, task_pid_nr(current), str, err); |
d337f35e | 79 | + printk("%s(%d[#%u]): %s %ld\n", current->comm, |
2380c486 | 80 | + task_pid_nr(current), current->xid, str, err); |
d337f35e | 81 | dik_show_regs(regs, r9_15); |
2380c486 | 82 | add_taint(TAINT_DIE); |
d337f35e | 83 | dik_show_trace((unsigned long *)(regs+1)); |
1163e6ab | 84 | diff -NurpP --minimal linux-2.6.37/arch/arm/include/asm/tlb.h linux-2.6.37-vs2.3.0.37-rc3/arch/arm/include/asm/tlb.h |
ab30d09f | 85 | --- linux-2.6.37/arch/arm/include/asm/tlb.h 2009-09-10 15:25:15.000000000 +0200 |
1163e6ab | 86 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/arm/include/asm/tlb.h 2010-11-23 02:09:40.000000000 +0100 |
3bac966d AM |
87 | @@ -27,6 +27,7 @@ |
88 | ||
89 | #else /* !CONFIG_MMU */ | |
90 | ||
91 | +#include <linux/vs_memory.h> | |
92 | #include <asm/pgalloc.h> | |
93 | ||
94 | /* | |
1163e6ab | 95 | diff -NurpP --minimal linux-2.6.37/arch/arm/Kconfig linux-2.6.37-vs2.3.0.37-rc3/arch/arm/Kconfig |
ab30d09f | 96 | --- linux-2.6.37/arch/arm/Kconfig 2011-01-05 21:48:40.000000000 +0100 |
1163e6ab | 97 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/arm/Kconfig 2011-01-05 22:30:25.000000000 +0100 |
ab30d09f | 98 | @@ -1854,6 +1854,8 @@ source "fs/Kconfig" |
d337f35e JR |
99 | |
100 | source "arch/arm/Kconfig.debug" | |
101 | ||
102 | +source "kernel/vserver/Kconfig" | |
103 | + | |
104 | source "security/Kconfig" | |
105 | ||
106 | source "crypto/Kconfig" | |
1163e6ab | 107 | diff -NurpP --minimal linux-2.6.37/arch/arm/kernel/calls.S linux-2.6.37-vs2.3.0.37-rc3/arch/arm/kernel/calls.S |
ab30d09f | 108 | --- linux-2.6.37/arch/arm/kernel/calls.S 2010-10-21 13:06:46.000000000 +0200 |
1163e6ab | 109 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/arm/kernel/calls.S 2010-11-23 02:09:40.000000000 +0100 |
d337f35e JR |
110 | @@ -322,7 +322,7 @@ |
111 | /* 310 */ CALL(sys_request_key) | |
112 | CALL(sys_keyctl) | |
113 | CALL(ABI(sys_semtimedop, sys_oabi_semtimedop)) | |
114 | -/* vserver */ CALL(sys_ni_syscall) | |
115 | + CALL(sys_vserver) | |
116 | CALL(sys_ioprio_set) | |
117 | /* 315 */ CALL(sys_ioprio_get) | |
118 | CALL(sys_inotify_init) | |
1163e6ab | 119 | diff -NurpP --minimal linux-2.6.37/arch/arm/kernel/process.c linux-2.6.37-vs2.3.0.37-rc3/arch/arm/kernel/process.c |
ab30d09f | 120 | --- linux-2.6.37/arch/arm/kernel/process.c 2011-01-05 21:48:42.000000000 +0100 |
1163e6ab | 121 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/arm/kernel/process.c 2010-11-23 02:09:40.000000000 +0100 |
ab30d09f | 122 | @@ -315,7 +315,8 @@ void __show_regs(struct pt_regs *regs) |
d337f35e JR |
123 | void show_regs(struct pt_regs * regs) |
124 | { | |
125 | printk("\n"); | |
2380c486 | 126 | - printk("Pid: %d, comm: %20s\n", task_pid_nr(current), current->comm); |
d337f35e | 127 | + printk("Pid: %d[#%u], comm: %20s\n", |
2380c486 | 128 | + task_pid_nr(current), current->xid, current->comm); |
d337f35e JR |
129 | __show_regs(regs); |
130 | __backtrace(); | |
131 | } | |
1163e6ab | 132 | diff -NurpP --minimal linux-2.6.37/arch/arm/kernel/traps.c linux-2.6.37-vs2.3.0.37-rc3/arch/arm/kernel/traps.c |
ab30d09f | 133 | --- linux-2.6.37/arch/arm/kernel/traps.c 2011-01-05 21:48:42.000000000 +0100 |
1163e6ab | 134 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/arm/kernel/traps.c 2010-11-23 02:09:40.000000000 +0100 |
ab30d09f | 135 | @@ -241,8 +241,8 @@ static int __die(const char *str, int er |
78865d5b | 136 | |
d337f35e JR |
137 | print_modules(); |
138 | __show_regs(regs); | |
7e46296a AM |
139 | - printk(KERN_EMERG "Process %.*s (pid: %d, stack limit = 0x%p)\n", |
140 | - TASK_COMM_LEN, tsk->comm, task_pid_nr(tsk), thread + 1); | |
141 | + printk(KERN_EMERG "Process %.*s (pid: %d:#%u, stack limit = 0x%p)\n", | |
142 | + TASK_COMM_LEN, tsk->comm, task_pid_nr(tsk), tsk->xid, thread + 1); | |
d337f35e JR |
143 | |
144 | if (!user_mode(regs) || in_interrupt()) { | |
7e46296a | 145 | dump_mem(KERN_EMERG, "Stack: ", regs->ARM_sp, |
1163e6ab | 146 | diff -NurpP --minimal linux-2.6.37/arch/cris/Kconfig linux-2.6.37-vs2.3.0.37-rc3/arch/cris/Kconfig |
ab30d09f | 147 | --- linux-2.6.37/arch/cris/Kconfig 2011-01-05 21:48:58.000000000 +0100 |
1163e6ab | 148 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/cris/Kconfig 2010-11-23 02:09:40.000000000 +0100 |
ab30d09f | 149 | @@ -687,6 +687,8 @@ source "drivers/staging/Kconfig" |
d337f35e JR |
150 | |
151 | source "arch/cris/Kconfig.debug" | |
152 | ||
153 | +source "kernel/vserver/Kconfig" | |
154 | + | |
155 | source "security/Kconfig" | |
156 | ||
157 | source "crypto/Kconfig" | |
1163e6ab | 158 | diff -NurpP --minimal linux-2.6.37/arch/frv/kernel/kernel_thread.S linux-2.6.37-vs2.3.0.37-rc3/arch/frv/kernel/kernel_thread.S |
ab30d09f | 159 | --- linux-2.6.37/arch/frv/kernel/kernel_thread.S 2008-12-25 00:26:37.000000000 +0100 |
1163e6ab | 160 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/frv/kernel/kernel_thread.S 2010-11-23 02:09:40.000000000 +0100 |
2380c486 | 161 | @@ -37,7 +37,7 @@ kernel_thread: |
d337f35e JR |
162 | |
163 | # start by forking the current process, but with shared VM | |
164 | setlos.p #__NR_clone,gr7 ; syscall number | |
165 | - ori gr10,#CLONE_VM,gr8 ; first syscall arg [clone_flags] | |
166 | + ori gr10,#CLONE_KT,gr8 ; first syscall arg [clone_flags] | |
167 | sethi.p #0xe4e4,gr9 ; second syscall arg [newsp] | |
168 | setlo #0xe4e4,gr9 | |
169 | setlos.p #0,gr10 ; third syscall arg [parent_tidptr] | |
1163e6ab | 170 | diff -NurpP --minimal linux-2.6.37/arch/h8300/Kconfig linux-2.6.37-vs2.3.0.37-rc3/arch/h8300/Kconfig |
ab30d09f | 171 | --- linux-2.6.37/arch/h8300/Kconfig 2011-01-05 21:48:59.000000000 +0100 |
1163e6ab | 172 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/h8300/Kconfig 2010-11-23 02:09:40.000000000 +0100 |
ab30d09f | 173 | @@ -219,6 +219,8 @@ source "fs/Kconfig" |
d337f35e JR |
174 | |
175 | source "arch/h8300/Kconfig.debug" | |
176 | ||
177 | +source "kernel/vserver/Kconfig" | |
178 | + | |
179 | source "security/Kconfig" | |
180 | ||
181 | source "crypto/Kconfig" | |
1163e6ab | 182 | diff -NurpP --minimal linux-2.6.37/arch/ia64/include/asm/tlb.h linux-2.6.37-vs2.3.0.37-rc3/arch/ia64/include/asm/tlb.h |
ab30d09f | 183 | --- linux-2.6.37/arch/ia64/include/asm/tlb.h 2010-02-25 11:51:26.000000000 +0100 |
1163e6ab | 184 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/ia64/include/asm/tlb.h 2010-11-23 02:09:40.000000000 +0100 |
3bac966d AM |
185 | @@ -40,6 +40,7 @@ |
186 | #include <linux/mm.h> | |
187 | #include <linux/pagemap.h> | |
188 | #include <linux/swap.h> | |
189 | +#include <linux/vs_memory.h> | |
190 | ||
191 | #include <asm/pgalloc.h> | |
192 | #include <asm/processor.h> | |
1163e6ab | 193 | diff -NurpP --minimal linux-2.6.37/arch/ia64/Kconfig linux-2.6.37-vs2.3.0.37-rc3/arch/ia64/Kconfig |
ab30d09f | 194 | --- linux-2.6.37/arch/ia64/Kconfig 2011-01-05 21:48:59.000000000 +0100 |
1163e6ab | 195 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/ia64/Kconfig 2010-11-23 02:09:40.000000000 +0100 |
ab30d09f | 196 | @@ -670,6 +670,8 @@ source "fs/Kconfig" |
2380c486 JR |
197 | |
198 | source "arch/ia64/Kconfig.debug" | |
d337f35e JR |
199 | |
200 | +source "kernel/vserver/Kconfig" | |
201 | + | |
202 | source "security/Kconfig" | |
203 | ||
204 | source "crypto/Kconfig" | |
1163e6ab | 205 | diff -NurpP --minimal linux-2.6.37/arch/ia64/kernel/entry.S linux-2.6.37-vs2.3.0.37-rc3/arch/ia64/kernel/entry.S |
ab30d09f | 206 | --- linux-2.6.37/arch/ia64/kernel/entry.S 2010-10-21 13:06:52.000000000 +0200 |
1163e6ab | 207 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/ia64/kernel/entry.S 2010-11-23 02:09:40.000000000 +0100 |
78865d5b | 208 | @@ -1714,7 +1714,7 @@ sys_call_table: |
2380c486 JR |
209 | data8 sys_mq_notify |
210 | data8 sys_mq_getsetattr | |
211 | data8 sys_kexec_load | |
212 | - data8 sys_ni_syscall // reserved for vserver | |
213 | + data8 sys_vserver | |
214 | data8 sys_waitid // 1270 | |
215 | data8 sys_add_key | |
216 | data8 sys_request_key | |
1163e6ab | 217 | diff -NurpP --minimal linux-2.6.37/arch/ia64/kernel/perfmon.c linux-2.6.37-vs2.3.0.37-rc3/arch/ia64/kernel/perfmon.c |
ab30d09f | 218 | --- linux-2.6.37/arch/ia64/kernel/perfmon.c 2011-01-05 21:48:59.000000000 +0100 |
1163e6ab | 219 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/ia64/kernel/perfmon.c 2010-11-23 02:09:40.000000000 +0100 |
78865d5b | 220 | @@ -42,6 +42,7 @@ |
2380c486 | 221 | #include <linux/completion.h> |
ec22aa5c | 222 | #include <linux/tracehook.h> |
78865d5b | 223 | #include <linux/slab.h> |
2380c486 | 224 | +#include <linux/vs_memory.h> |
d337f35e | 225 | |
2380c486 JR |
226 | #include <asm/errno.h> |
227 | #include <asm/intrinsics.h> | |
1163e6ab | 228 | diff -NurpP --minimal linux-2.6.37/arch/ia64/kernel/process.c linux-2.6.37-vs2.3.0.37-rc3/arch/ia64/kernel/process.c |
ab30d09f | 229 | --- linux-2.6.37/arch/ia64/kernel/process.c 2010-10-21 13:06:52.000000000 +0200 |
1163e6ab | 230 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/ia64/kernel/process.c 2010-11-23 02:09:40.000000000 +0100 |
78865d5b | 231 | @@ -113,8 +113,8 @@ show_regs (struct pt_regs *regs) |
2380c486 | 232 | unsigned long ip = regs->cr_iip + ia64_psr(regs)->ri; |
d337f35e | 233 | |
2380c486 JR |
234 | print_modules(); |
235 | - printk("\nPid: %d, CPU %d, comm: %20s\n", task_pid_nr(current), | |
236 | - smp_processor_id(), current->comm); | |
237 | + printk("\nPid: %d[#%u], CPU %d, comm: %20s\n", task_pid_nr(current), | |
238 | + current->xid, smp_processor_id(), current->comm); | |
239 | printk("psr : %016lx ifs : %016lx ip : [<%016lx>] %s (%s)\n", | |
240 | regs->cr_ipsr, regs->cr_ifs, ip, print_tainted(), | |
241 | init_utsname()->release); | |
1163e6ab | 242 | diff -NurpP --minimal linux-2.6.37/arch/ia64/kernel/ptrace.c linux-2.6.37-vs2.3.0.37-rc3/arch/ia64/kernel/ptrace.c |
ab30d09f | 243 | --- linux-2.6.37/arch/ia64/kernel/ptrace.c 2011-01-05 21:48:59.000000000 +0100 |
1163e6ab | 244 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/ia64/kernel/ptrace.c 2010-11-23 02:09:40.000000000 +0100 |
78865d5b | 245 | @@ -21,6 +21,7 @@ |
2380c486 | 246 | #include <linux/regset.h> |
d337f35e | 247 | #include <linux/elf.h> |
ec22aa5c | 248 | #include <linux/tracehook.h> |
d337f35e JR |
249 | +#include <linux/vs_base.h> |
250 | ||
251 | #include <asm/pgtable.h> | |
252 | #include <asm/processor.h> | |
1163e6ab | 253 | diff -NurpP --minimal linux-2.6.37/arch/ia64/kernel/traps.c linux-2.6.37-vs2.3.0.37-rc3/arch/ia64/kernel/traps.c |
ab30d09f | 254 | --- linux-2.6.37/arch/ia64/kernel/traps.c 2010-07-07 18:31:01.000000000 +0200 |
1163e6ab | 255 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/ia64/kernel/traps.c 2010-11-23 02:09:40.000000000 +0100 |
78865d5b | 256 | @@ -59,8 +59,9 @@ die (const char *str, struct pt_regs *re |
d337f35e JR |
257 | put_cpu(); |
258 | ||
259 | if (++die.lock_owner_depth < 3) { | |
260 | - printk("%s[%d]: %s %ld [%d]\n", | |
2380c486 | 261 | - current->comm, task_pid_nr(current), str, err, ++die_counter); |
d337f35e | 262 | + printk("%s[%d[#%u]]: %s %ld [%d]\n", |
2380c486 | 263 | + current->comm, task_pid_nr(current), current->xid, |
d337f35e | 264 | + str, err, ++die_counter); |
2380c486 JR |
265 | if (notify_die(DIE_OOPS, str, regs, err, 255, SIGSEGV) |
266 | != NOTIFY_STOP) | |
267 | show_regs(regs); | |
78865d5b | 268 | @@ -323,8 +324,9 @@ handle_fpu_swa (int fp_fault, struct pt_ |
2380c486 JR |
269 | if ((last.count & 15) < 5 && (ia64_fetchadd(1, &last.count, acq) & 15) < 5) { |
270 | last.time = current_jiffies + 5 * HZ; | |
271 | printk(KERN_WARNING | |
272 | - "%s(%d): floating-point assist fault at ip %016lx, isr %016lx\n", | |
273 | - current->comm, task_pid_nr(current), regs->cr_iip + ia64_psr(regs)->ri, isr); | |
274 | + "%s(%d[#%u]): floating-point assist fault at ip %016lx, isr %016lx\n", | |
275 | + current->comm, task_pid_nr(current), current->xid, | |
276 | + regs->cr_iip + ia64_psr(regs)->ri, isr); | |
277 | } | |
278 | } | |
d337f35e | 279 | } |
1163e6ab | 280 | diff -NurpP --minimal linux-2.6.37/arch/ia64/mm/fault.c linux-2.6.37-vs2.3.0.37-rc3/arch/ia64/mm/fault.c |
ab30d09f | 281 | --- linux-2.6.37/arch/ia64/mm/fault.c 2010-08-02 16:52:04.000000000 +0200 |
1163e6ab | 282 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/ia64/mm/fault.c 2010-11-23 02:09:40.000000000 +0100 |
d337f35e | 283 | @@ -10,6 +10,7 @@ |
d337f35e JR |
284 | #include <linux/interrupt.h> |
285 | #include <linux/kprobes.h> | |
2380c486 | 286 | #include <linux/kdebug.h> |
d337f35e JR |
287 | +#include <linux/vs_memory.h> |
288 | ||
289 | #include <asm/pgtable.h> | |
290 | #include <asm/processor.h> | |
1163e6ab | 291 | diff -NurpP --minimal linux-2.6.37/arch/m32r/kernel/traps.c linux-2.6.37-vs2.3.0.37-rc3/arch/m32r/kernel/traps.c |
ab30d09f | 292 | --- linux-2.6.37/arch/m32r/kernel/traps.c 2009-12-03 20:01:57.000000000 +0100 |
1163e6ab | 293 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/m32r/kernel/traps.c 2010-11-23 02:09:40.000000000 +0100 |
2380c486 | 294 | @@ -196,8 +196,9 @@ static void show_registers(struct pt_reg |
d337f35e JR |
295 | } else { |
296 | printk("SPI: %08lx\n", sp); | |
297 | } | |
298 | - printk("Process %s (pid: %d, process nr: %d, stackpage=%08lx)", | |
2380c486 | 299 | - current->comm, task_pid_nr(current), 0xffff & i, 4096+(unsigned long)current); |
d337f35e | 300 | + printk("Process %s (pid: %d[#%u], process nr: %d, stackpage=%08lx)", |
2380c486 | 301 | + current->comm, task_pid_nr(current), current->xid, |
d337f35e JR |
302 | + 0xffff & i, 4096+(unsigned long)current); |
303 | ||
304 | /* | |
305 | * When in-kernel, we also print out the stack and code at the | |
1163e6ab | 306 | diff -NurpP --minimal linux-2.6.37/arch/m68k/Kconfig linux-2.6.37-vs2.3.0.37-rc3/arch/m68k/Kconfig |
ab30d09f | 307 | --- linux-2.6.37/arch/m68k/Kconfig 2011-01-05 21:49:00.000000000 +0100 |
1163e6ab | 308 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/m68k/Kconfig 2010-11-23 02:09:40.000000000 +0100 |
ab30d09f | 309 | @@ -610,6 +610,8 @@ source "fs/Kconfig" |
d337f35e JR |
310 | |
311 | source "arch/m68k/Kconfig.debug" | |
312 | ||
313 | +source "kernel/vserver/Kconfig" | |
314 | + | |
315 | source "security/Kconfig" | |
316 | ||
317 | source "crypto/Kconfig" | |
1163e6ab | 318 | diff -NurpP --minimal linux-2.6.37/arch/m68k/kernel/ptrace.c linux-2.6.37-vs2.3.0.37-rc3/arch/m68k/kernel/ptrace.c |
ab30d09f | 319 | --- linux-2.6.37/arch/m68k/kernel/ptrace.c 2011-01-05 21:49:01.000000000 +0100 |
1163e6ab | 320 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/m68k/kernel/ptrace.c 2010-11-23 02:09:40.000000000 +0100 |
2380c486 | 321 | @@ -18,6 +18,7 @@ |
d337f35e JR |
322 | #include <linux/ptrace.h> |
323 | #include <linux/user.h> | |
324 | #include <linux/signal.h> | |
325 | +#include <linux/vs_base.h> | |
326 | ||
327 | #include <asm/uaccess.h> | |
328 | #include <asm/page.h> | |
ab30d09f | 329 | @@ -255,6 +256,8 @@ long arch_ptrace(struct task_struct *chi |
d337f35e JR |
330 | ret = ptrace_request(child, request, addr, data); |
331 | break; | |
332 | } | |
2380c486 | 333 | + if (!vx_check(vx_task_xid(child), VS_WATCH_P | VS_IDENT)) |
d337f35e JR |
334 | + goto out_tsk; |
335 | ||
336 | return ret; | |
337 | out_eio: | |
1163e6ab | 338 | diff -NurpP --minimal linux-2.6.37/arch/m68k/kernel/traps.c linux-2.6.37-vs2.3.0.37-rc3/arch/m68k/kernel/traps.c |
ab30d09f | 339 | --- linux-2.6.37/arch/m68k/kernel/traps.c 2010-08-02 16:52:04.000000000 +0200 |
1163e6ab | 340 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/m68k/kernel/traps.c 2010-11-23 02:09:40.000000000 +0100 |
ec22aa5c | 341 | @@ -906,8 +906,8 @@ void show_registers(struct pt_regs *regs |
d337f35e JR |
342 | printk("d4: %08lx d5: %08lx a0: %08lx a1: %08lx\n", |
343 | regs->d4, regs->d5, regs->a0, regs->a1); | |
344 | ||
345 | - printk("Process %s (pid: %d, task=%p)\n", | |
2380c486 | 346 | - current->comm, task_pid_nr(current), current); |
d337f35e | 347 | + printk("Process %s (pid: %d[#%u], task=%p)\n", |
2380c486 | 348 | + current->comm, task_pid_nr(current), current->xid, current); |
d337f35e JR |
349 | addr = (unsigned long)&fp->un; |
350 | printk("Frame format=%X ", regs->format); | |
351 | switch (regs->format) { | |
1163e6ab | 352 | diff -NurpP --minimal linux-2.6.37/arch/m68knommu/Kconfig linux-2.6.37-vs2.3.0.37-rc3/arch/m68knommu/Kconfig |
ab30d09f | 353 | --- linux-2.6.37/arch/m68knommu/Kconfig 2011-01-05 21:49:01.000000000 +0100 |
1163e6ab | 354 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/m68knommu/Kconfig 2010-11-23 02:09:40.000000000 +0100 |
ab30d09f | 355 | @@ -732,6 +732,8 @@ source "fs/Kconfig" |
d337f35e JR |
356 | |
357 | source "arch/m68knommu/Kconfig.debug" | |
358 | ||
359 | +source "kernel/vserver/Kconfig" | |
360 | + | |
361 | source "security/Kconfig" | |
362 | ||
363 | source "crypto/Kconfig" | |
1163e6ab | 364 | diff -NurpP --minimal linux-2.6.37/arch/m68knommu/kernel/traps.c linux-2.6.37-vs2.3.0.37-rc3/arch/m68knommu/kernel/traps.c |
ab30d09f | 365 | --- linux-2.6.37/arch/m68knommu/kernel/traps.c 2011-01-05 21:49:01.000000000 +0100 |
1163e6ab | 366 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/m68knommu/kernel/traps.c 2010-11-23 02:09:40.000000000 +0100 |
ec22aa5c | 367 | @@ -78,8 +78,9 @@ void die_if_kernel(char *str, struct pt_ |
d337f35e JR |
368 | printk(KERN_EMERG "d4: %08lx d5: %08lx a0: %08lx a1: %08lx\n", |
369 | fp->d4, fp->d5, fp->a0, fp->a1); | |
370 | ||
371 | - printk(KERN_EMERG "Process %s (pid: %d, stackpage=%08lx)\n", | |
372 | - current->comm, current->pid, PAGE_SIZE+(unsigned long)current); | |
373 | + printk(KERN_EMERG "Process %s (pid: %d[#%u], stackpage=%08lx)\n", | |
2380c486 | 374 | + current->comm, task_pid_nr(current), current->xid, |
d337f35e | 375 | + PAGE_SIZE+(unsigned long)current); |
2380c486 JR |
376 | show_stack(NULL, (unsigned long *)(fp + 1)); |
377 | add_taint(TAINT_DIE); | |
d337f35e | 378 | do_exit(SIGSEGV); |
1163e6ab | 379 | diff -NurpP --minimal linux-2.6.37/arch/mips/Kconfig linux-2.6.37-vs2.3.0.37-rc3/arch/mips/Kconfig |
ab30d09f | 380 | --- linux-2.6.37/arch/mips/Kconfig 2011-01-05 21:49:03.000000000 +0100 |
1163e6ab | 381 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/mips/Kconfig 2011-01-05 22:30:26.000000000 +0100 |
ab30d09f | 382 | @@ -2396,6 +2396,8 @@ source "fs/Kconfig" |
d337f35e JR |
383 | |
384 | source "arch/mips/Kconfig.debug" | |
385 | ||
386 | +source "kernel/vserver/Kconfig" | |
387 | + | |
388 | source "security/Kconfig" | |
389 | ||
390 | source "crypto/Kconfig" | |
1163e6ab | 391 | diff -NurpP --minimal linux-2.6.37/arch/mips/kernel/ptrace.c linux-2.6.37-vs2.3.0.37-rc3/arch/mips/kernel/ptrace.c |
ab30d09f | 392 | --- linux-2.6.37/arch/mips/kernel/ptrace.c 2011-01-05 21:49:06.000000000 +0100 |
1163e6ab | 393 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/mips/kernel/ptrace.c 2010-11-23 02:09:40.000000000 +0100 |
2380c486 | 394 | @@ -25,6 +25,7 @@ |
d337f35e | 395 | #include <linux/security.h> |
2380c486 JR |
396 | #include <linux/audit.h> |
397 | #include <linux/seccomp.h> | |
d337f35e JR |
398 | +#include <linux/vs_base.h> |
399 | ||
400 | #include <asm/byteorder.h> | |
401 | #include <asm/cpu.h> | |
ab30d09f AM |
402 | @@ -263,6 +264,9 @@ long arch_ptrace(struct task_struct *chi |
403 | void __user *datavp = (void __user *) data; | |
404 | unsigned long __user *datalp = (void __user *) data; | |
d337f35e | 405 | |
2380c486 | 406 | + if (!vx_check(vx_task_xid(child), VS_WATCH_P | VS_IDENT)) |
d337f35e JR |
407 | + goto out; |
408 | + | |
409 | switch (request) { | |
410 | /* when I and D space are separate, these will need to be fixed. */ | |
411 | case PTRACE_PEEKTEXT: /* read word at location addr. */ | |
1163e6ab | 412 | diff -NurpP --minimal linux-2.6.37/arch/mips/kernel/scall32-o32.S linux-2.6.37-vs2.3.0.37-rc3/arch/mips/kernel/scall32-o32.S |
ab30d09f | 413 | --- linux-2.6.37/arch/mips/kernel/scall32-o32.S 2010-10-21 13:06:54.000000000 +0200 |
1163e6ab | 414 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/mips/kernel/scall32-o32.S 2010-11-23 02:09:40.000000000 +0100 |
93de0823 | 415 | @@ -524,7 +524,7 @@ einval: li v0, -ENOSYS |
d337f35e JR |
416 | sys sys_mq_timedreceive 5 |
417 | sys sys_mq_notify 2 /* 4275 */ | |
418 | sys sys_mq_getsetattr 3 | |
419 | - sys sys_ni_syscall 0 /* sys_vserver */ | |
420 | + sys sys_vserver 3 | |
421 | sys sys_waitid 5 | |
422 | sys sys_ni_syscall 0 /* available, was setaltroot */ | |
423 | sys sys_add_key 5 /* 4280 */ | |
1163e6ab | 424 | diff -NurpP --minimal linux-2.6.37/arch/mips/kernel/scall64-64.S linux-2.6.37-vs2.3.0.37-rc3/arch/mips/kernel/scall64-64.S |
ab30d09f | 425 | --- linux-2.6.37/arch/mips/kernel/scall64-64.S 2010-10-21 13:06:54.000000000 +0200 |
1163e6ab | 426 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/mips/kernel/scall64-64.S 2010-11-23 02:09:40.000000000 +0100 |
93de0823 | 427 | @@ -363,7 +363,7 @@ sys_call_table: |
d337f35e JR |
428 | PTR sys_mq_timedreceive |
429 | PTR sys_mq_notify | |
430 | PTR sys_mq_getsetattr /* 5235 */ | |
431 | - PTR sys_ni_syscall /* sys_vserver */ | |
432 | + PTR sys_vserver | |
433 | PTR sys_waitid | |
434 | PTR sys_ni_syscall /* available, was setaltroot */ | |
435 | PTR sys_add_key | |
1163e6ab | 436 | diff -NurpP --minimal linux-2.6.37/arch/mips/kernel/scall64-n32.S linux-2.6.37-vs2.3.0.37-rc3/arch/mips/kernel/scall64-n32.S |
ab30d09f | 437 | --- linux-2.6.37/arch/mips/kernel/scall64-n32.S 2010-10-21 13:06:54.000000000 +0200 |
1163e6ab | 438 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/mips/kernel/scall64-n32.S 2010-11-23 02:09:40.000000000 +0100 |
93de0823 | 439 | @@ -362,7 +362,7 @@ EXPORT(sysn32_call_table) |
d337f35e JR |
440 | PTR compat_sys_mq_timedreceive |
441 | PTR compat_sys_mq_notify | |
442 | PTR compat_sys_mq_getsetattr | |
443 | - PTR sys_ni_syscall /* 6240, sys_vserver */ | |
444 | + PTR sys32_vserver /* 6240 */ | |
2380c486 | 445 | PTR compat_sys_waitid |
d337f35e JR |
446 | PTR sys_ni_syscall /* available, was setaltroot */ |
447 | PTR sys_add_key | |
1163e6ab | 448 | diff -NurpP --minimal linux-2.6.37/arch/mips/kernel/scall64-o32.S linux-2.6.37-vs2.3.0.37-rc3/arch/mips/kernel/scall64-o32.S |
ab30d09f | 449 | --- linux-2.6.37/arch/mips/kernel/scall64-o32.S 2010-10-21 13:06:54.000000000 +0200 |
1163e6ab | 450 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/mips/kernel/scall64-o32.S 2010-11-23 02:09:40.000000000 +0100 |
93de0823 | 451 | @@ -481,7 +481,7 @@ sys_call_table: |
d337f35e JR |
452 | PTR compat_sys_mq_timedreceive |
453 | PTR compat_sys_mq_notify /* 4275 */ | |
454 | PTR compat_sys_mq_getsetattr | |
455 | - PTR sys_ni_syscall /* sys_vserver */ | |
456 | + PTR sys32_vserver | |
2380c486 | 457 | PTR sys_32_waitid |
d337f35e JR |
458 | PTR sys_ni_syscall /* available, was setaltroot */ |
459 | PTR sys_add_key /* 4280 */ | |
1163e6ab | 460 | diff -NurpP --minimal linux-2.6.37/arch/mips/kernel/traps.c linux-2.6.37-vs2.3.0.37-rc3/arch/mips/kernel/traps.c |
ab30d09f | 461 | --- linux-2.6.37/arch/mips/kernel/traps.c 2011-01-05 21:49:06.000000000 +0100 |
1163e6ab | 462 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/mips/kernel/traps.c 2011-01-05 22:30:26.000000000 +0100 |
ab30d09f | 463 | @@ -343,9 +343,10 @@ void show_registers(struct pt_regs *regs |
2380c486 JR |
464 | |
465 | __show_regs(regs); | |
d337f35e | 466 | print_modules(); |
2380c486 JR |
467 | - printk("Process %s (pid: %d, threadinfo=%p, task=%p, tls=%0*lx)\n", |
468 | - current->comm, current->pid, current_thread_info(), current, | |
469 | - field, current_thread_info()->tp_value); | |
470 | + printk("Process %s (pid: %d:#%u, threadinfo=%p, task=%p, tls=%0*lx)\n", | |
471 | + current->comm, task_pid_nr(current), current->xid, | |
472 | + current_thread_info(), current, | |
473 | + field, current_thread_info()->tp_value); | |
474 | if (cpu_has_userlocal) { | |
475 | unsigned long tls; | |
476 | ||
1163e6ab | 477 | diff -NurpP --minimal linux-2.6.37/arch/parisc/Kconfig linux-2.6.37-vs2.3.0.37-rc3/arch/parisc/Kconfig |
ab30d09f | 478 | --- linux-2.6.37/arch/parisc/Kconfig 2011-01-05 21:49:08.000000000 +0100 |
1163e6ab | 479 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/parisc/Kconfig 2010-11-23 02:09:40.000000000 +0100 |
ab30d09f | 480 | @@ -293,6 +293,8 @@ source "fs/Kconfig" |
d337f35e JR |
481 | |
482 | source "arch/parisc/Kconfig.debug" | |
483 | ||
484 | +source "kernel/vserver/Kconfig" | |
485 | + | |
486 | source "security/Kconfig" | |
487 | ||
488 | source "crypto/Kconfig" | |
1163e6ab | 489 | diff -NurpP --minimal linux-2.6.37/arch/parisc/kernel/syscall_table.S linux-2.6.37-vs2.3.0.37-rc3/arch/parisc/kernel/syscall_table.S |
ab30d09f | 490 | --- linux-2.6.37/arch/parisc/kernel/syscall_table.S 2011-01-05 21:49:09.000000000 +0100 |
1163e6ab | 491 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/parisc/kernel/syscall_table.S 2010-11-23 02:09:40.000000000 +0100 |
2380c486 | 492 | @@ -361,7 +361,7 @@ |
d337f35e JR |
493 | ENTRY_COMP(mbind) /* 260 */ |
494 | ENTRY_COMP(get_mempolicy) | |
495 | ENTRY_COMP(set_mempolicy) | |
496 | - ENTRY_SAME(ni_syscall) /* 263: reserved for vserver */ | |
497 | + ENTRY_DIFF(vserver) | |
498 | ENTRY_SAME(add_key) | |
499 | ENTRY_SAME(request_key) /* 265 */ | |
500 | ENTRY_SAME(keyctl) | |
1163e6ab | 501 | diff -NurpP --minimal linux-2.6.37/arch/parisc/kernel/traps.c linux-2.6.37-vs2.3.0.37-rc3/arch/parisc/kernel/traps.c |
ab30d09f | 502 | --- linux-2.6.37/arch/parisc/kernel/traps.c 2009-09-10 15:25:40.000000000 +0200 |
1163e6ab | 503 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/parisc/kernel/traps.c 2010-11-23 02:09:40.000000000 +0100 |
2380c486 | 504 | @@ -236,8 +236,9 @@ void die_if_kernel(char *str, struct pt_ |
d337f35e JR |
505 | if (err == 0) |
506 | return; /* STFU */ | |
507 | ||
508 | - printk(KERN_CRIT "%s (pid %d): %s (code %ld) at " RFMT "\n", | |
2380c486 | 509 | - current->comm, task_pid_nr(current), str, err, regs->iaoq[0]); |
d337f35e | 510 | + printk(KERN_CRIT "%s (pid %d:#%u): %s (code %ld) at " RFMT "\n", |
2380c486 | 511 | + current->comm, task_pid_nr(current), current->xid, |
d337f35e JR |
512 | + str, err, regs->iaoq[0]); |
513 | #ifdef PRINT_USER_FAULTS | |
514 | /* XXX for debugging only */ | |
515 | show_regs(regs); | |
ec22aa5c | 516 | @@ -270,8 +271,8 @@ void die_if_kernel(char *str, struct pt_ |
d337f35e JR |
517 | pdc_console_restart(); |
518 | ||
2380c486 JR |
519 | if (err) |
520 | - printk(KERN_CRIT "%s (pid %d): %s (code %ld)\n", | |
521 | - current->comm, task_pid_nr(current), str, err); | |
522 | + printk(KERN_CRIT "%s (pid %d:#%u): %s (code %ld)\n", | |
523 | + current->comm, task_pid_nr(current), current->xid, str, err); | |
524 | ||
525 | /* Wot's wrong wif bein' racy? */ | |
526 | if (current->thread.flags & PARISC_KERNEL_DEATH) { | |
1163e6ab | 527 | diff -NurpP --minimal linux-2.6.37/arch/parisc/mm/fault.c linux-2.6.37-vs2.3.0.37-rc3/arch/parisc/mm/fault.c |
ab30d09f | 528 | --- linux-2.6.37/arch/parisc/mm/fault.c 2010-08-02 16:52:06.000000000 +0200 |
1163e6ab | 529 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/parisc/mm/fault.c 2010-11-23 02:09:40.000000000 +0100 |
ec22aa5c | 530 | @@ -237,8 +237,9 @@ bad_area: |
d337f35e JR |
531 | |
532 | #ifdef PRINT_USER_FAULTS | |
533 | printk(KERN_DEBUG "\n"); | |
534 | - printk(KERN_DEBUG "do_page_fault() pid=%d command='%s' type=%lu address=0x%08lx\n", | |
2380c486 | 535 | - task_pid_nr(tsk), tsk->comm, code, address); |
d337f35e JR |
536 | + printk(KERN_DEBUG "do_page_fault() pid=%d:#%u " |
537 | + "command='%s' type=%lu address=0x%08lx\n", | |
2380c486 | 538 | + task_pid_nr(tsk), tsk->xid, tsk->comm, code, address); |
d337f35e JR |
539 | if (vma) { |
540 | printk(KERN_DEBUG "vm_start = 0x%08lx, vm_end = 0x%08lx\n", | |
541 | vma->vm_start, vma->vm_end); | |
1163e6ab | 542 | diff -NurpP --minimal linux-2.6.37/arch/powerpc/include/asm/unistd.h linux-2.6.37-vs2.3.0.37-rc3/arch/powerpc/include/asm/unistd.h |
ab30d09f | 543 | --- linux-2.6.37/arch/powerpc/include/asm/unistd.h 2011-01-05 21:49:10.000000000 +0100 |
1163e6ab | 544 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/powerpc/include/asm/unistd.h 2010-11-23 02:09:40.000000000 +0100 |
adc1caaa AM |
545 | @@ -275,7 +275,7 @@ |
546 | #endif | |
547 | #define __NR_rtas 255 | |
548 | #define __NR_sys_debug_setcontext 256 | |
549 | -/* Number 257 is reserved for vserver */ | |
550 | +#define __NR_vserver 257 | |
551 | #define __NR_migrate_pages 258 | |
552 | #define __NR_mbind 259 | |
553 | #define __NR_get_mempolicy 260 | |
1163e6ab | 554 | diff -NurpP --minimal linux-2.6.37/arch/powerpc/Kconfig linux-2.6.37-vs2.3.0.37-rc3/arch/powerpc/Kconfig |
ab30d09f | 555 | --- linux-2.6.37/arch/powerpc/Kconfig 2011-01-05 21:49:09.000000000 +0100 |
1163e6ab | 556 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/powerpc/Kconfig 2010-11-23 02:09:40.000000000 +0100 |
ab30d09f | 557 | @@ -976,6 +976,8 @@ source "lib/Kconfig" |
3bac966d AM |
558 | |
559 | source "arch/powerpc/Kconfig.debug" | |
560 | ||
561 | +source "kernel/vserver/Kconfig" | |
562 | + | |
563 | source "security/Kconfig" | |
564 | ||
565 | config KEYS_COMPAT | |
1163e6ab | 566 | diff -NurpP --minimal linux-2.6.37/arch/powerpc/kernel/process.c linux-2.6.37-vs2.3.0.37-rc3/arch/powerpc/kernel/process.c |
ab30d09f | 567 | --- linux-2.6.37/arch/powerpc/kernel/process.c 2011-01-05 21:49:11.000000000 +0100 |
1163e6ab | 568 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/powerpc/kernel/process.c 2010-11-23 02:09:40.000000000 +0100 |
ab30d09f | 569 | @@ -633,8 +633,9 @@ void show_regs(struct pt_regs * regs) |
2380c486 | 570 | #else |
d337f35e | 571 | printk("DAR: "REG", DSISR: "REG"\n", regs->dar, regs->dsisr); |
2380c486 | 572 | #endif |
d337f35e | 573 | - printk("TASK = %p[%d] '%s' THREAD: %p", |
2380c486 | 574 | - current, task_pid_nr(current), current->comm, task_thread_info(current)); |
d337f35e | 575 | + printk("TASK = %p[%d,#%u] '%s' THREAD: %p", |
2380c486 | 576 | + current, task_pid_nr(current), current->xid, |
d337f35e JR |
577 | + current->comm, task_thread_info(current)); |
578 | ||
579 | #ifdef CONFIG_SMP | |
2380c486 | 580 | printk(" CPU: %d", raw_smp_processor_id()); |
1163e6ab | 581 | diff -NurpP --minimal linux-2.6.37/arch/powerpc/kernel/traps.c linux-2.6.37-vs2.3.0.37-rc3/arch/powerpc/kernel/traps.c |
ab30d09f | 582 | --- linux-2.6.37/arch/powerpc/kernel/traps.c 2011-01-05 21:49:11.000000000 +0100 |
1163e6ab | 583 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/powerpc/kernel/traps.c 2010-11-23 02:09:40.000000000 +0100 |
ab30d09f | 584 | @@ -1053,8 +1053,9 @@ void nonrecoverable_exception(struct pt_ |
d337f35e JR |
585 | |
586 | void trace_syscall(struct pt_regs *regs) | |
587 | { | |
588 | - printk("Task: %p(%d), PC: %08lX/%08lX, Syscall: %3ld, Result: %s%ld %s\n", | |
2380c486 | 589 | - current, task_pid_nr(current), regs->nip, regs->link, regs->gpr[0], |
d337f35e | 590 | + printk("Task: %p(%d[#%u]), PC: %08lX/%08lX, Syscall: %3ld, Result: %s%ld %s\n", |
2380c486 | 591 | + current, task_pid_nr(current), current->xid, |
d337f35e JR |
592 | + regs->nip, regs->link, regs->gpr[0], |
593 | regs->ccr&0x10000000?"Error=":"", regs->gpr[3], print_tainted()); | |
594 | } | |
595 | ||
1163e6ab | 596 | diff -NurpP --minimal linux-2.6.37/arch/powerpc/kernel/vdso.c linux-2.6.37-vs2.3.0.37-rc3/arch/powerpc/kernel/vdso.c |
ab30d09f | 597 | --- linux-2.6.37/arch/powerpc/kernel/vdso.c 2011-01-05 21:49:11.000000000 +0100 |
1163e6ab | 598 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/powerpc/kernel/vdso.c 2010-11-23 02:09:40.000000000 +0100 |
7e46296a | 599 | @@ -23,6 +23,7 @@ |
d337f35e JR |
600 | #include <linux/security.h> |
601 | #include <linux/bootmem.h> | |
76514441 | 602 | #include <linux/memblock.h> |
d337f35e JR |
603 | +#include <linux/vs_memory.h> |
604 | ||
605 | #include <asm/pgtable.h> | |
606 | #include <asm/system.h> | |
1163e6ab | 607 | diff -NurpP --minimal linux-2.6.37/arch/s390/include/asm/tlb.h linux-2.6.37-vs2.3.0.37-rc3/arch/s390/include/asm/tlb.h |
ab30d09f | 608 | --- linux-2.6.37/arch/s390/include/asm/tlb.h 2011-01-05 21:49:13.000000000 +0100 |
1163e6ab | 609 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/s390/include/asm/tlb.h 2010-11-23 02:09:40.000000000 +0100 |
0411181d AM |
610 | @@ -23,6 +23,8 @@ |
611 | ||
612 | #include <linux/mm.h> | |
613 | #include <linux/swap.h> | |
614 | +#include <linux/vs_memory.h> | |
615 | + | |
616 | #include <asm/processor.h> | |
617 | #include <asm/pgalloc.h> | |
618 | #include <asm/smp.h> | |
1163e6ab | 619 | diff -NurpP --minimal linux-2.6.37/arch/s390/include/asm/unistd.h linux-2.6.37-vs2.3.0.37-rc3/arch/s390/include/asm/unistd.h |
ab30d09f | 620 | --- linux-2.6.37/arch/s390/include/asm/unistd.h 2010-10-21 13:06:58.000000000 +0200 |
1163e6ab | 621 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/s390/include/asm/unistd.h 2010-11-23 02:09:40.000000000 +0100 |
0411181d AM |
622 | @@ -202,7 +202,7 @@ |
623 | #define __NR_clock_gettime (__NR_timer_create+6) | |
624 | #define __NR_clock_getres (__NR_timer_create+7) | |
625 | #define __NR_clock_nanosleep (__NR_timer_create+8) | |
626 | -/* Number 263 is reserved for vserver */ | |
627 | +#define __NR_vserver 263 | |
628 | #define __NR_statfs64 265 | |
629 | #define __NR_fstatfs64 266 | |
630 | #define __NR_remap_file_pages 267 | |
1163e6ab | 631 | diff -NurpP --minimal linux-2.6.37/arch/s390/Kconfig linux-2.6.37-vs2.3.0.37-rc3/arch/s390/Kconfig |
ab30d09f | 632 | --- linux-2.6.37/arch/s390/Kconfig 2011-01-05 21:49:12.000000000 +0100 |
1163e6ab | 633 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/s390/Kconfig 2010-11-23 02:09:40.000000000 +0100 |
ab30d09f | 634 | @@ -640,6 +640,8 @@ source "fs/Kconfig" |
3bac966d AM |
635 | |
636 | source "arch/s390/Kconfig.debug" | |
637 | ||
638 | +source "kernel/vserver/Kconfig" | |
639 | + | |
640 | source "security/Kconfig" | |
641 | ||
642 | source "crypto/Kconfig" | |
1163e6ab | 643 | diff -NurpP --minimal linux-2.6.37/arch/s390/kernel/ptrace.c linux-2.6.37-vs2.3.0.37-rc3/arch/s390/kernel/ptrace.c |
ab30d09f | 644 | --- linux-2.6.37/arch/s390/kernel/ptrace.c 2011-01-05 21:49:13.000000000 +0100 |
1163e6ab | 645 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/s390/kernel/ptrace.c 2010-11-23 02:09:40.000000000 +0100 |
ec22aa5c | 646 | @@ -36,6 +36,7 @@ |
2380c486 | 647 | #include <linux/regset.h> |
ec22aa5c AM |
648 | #include <linux/tracehook.h> |
649 | #include <linux/seccomp.h> | |
d337f35e | 650 | +#include <linux/vs_base.h> |
ec22aa5c AM |
651 | #include <trace/syscall.h> |
652 | #include <asm/compat.h> | |
d337f35e | 653 | #include <asm/segment.h> |
1163e6ab | 654 | diff -NurpP --minimal linux-2.6.37/arch/s390/kernel/syscalls.S linux-2.6.37-vs2.3.0.37-rc3/arch/s390/kernel/syscalls.S |
ab30d09f | 655 | --- linux-2.6.37/arch/s390/kernel/syscalls.S 2010-10-21 13:06:58.000000000 +0200 |
1163e6ab | 656 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/s390/kernel/syscalls.S 2010-11-23 02:09:40.000000000 +0100 |
d337f35e JR |
657 | @@ -271,7 +271,7 @@ SYSCALL(sys_clock_settime,sys_clock_sett |
658 | SYSCALL(sys_clock_gettime,sys_clock_gettime,sys32_clock_gettime_wrapper) /* 260 */ | |
659 | SYSCALL(sys_clock_getres,sys_clock_getres,sys32_clock_getres_wrapper) | |
660 | SYSCALL(sys_clock_nanosleep,sys_clock_nanosleep,sys32_clock_nanosleep_wrapper) | |
661 | -NI_SYSCALL /* reserved for vserver */ | |
662 | +SYSCALL(sys_vserver,sys_vserver,sys32_vserver) | |
2380c486 | 663 | SYSCALL(sys_s390_fadvise64_64,sys_ni_syscall,sys32_fadvise64_64_wrapper) |
d337f35e JR |
664 | SYSCALL(sys_statfs64,sys_statfs64,compat_sys_statfs64_wrapper) |
665 | SYSCALL(sys_fstatfs64,sys_fstatfs64,compat_sys_fstatfs64_wrapper) | |
1163e6ab | 666 | diff -NurpP --minimal linux-2.6.37/arch/sh/Kconfig linux-2.6.37-vs2.3.0.37-rc3/arch/sh/Kconfig |
ab30d09f | 667 | --- linux-2.6.37/arch/sh/Kconfig 2011-01-05 21:49:13.000000000 +0100 |
1163e6ab | 668 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/sh/Kconfig 2011-01-05 22:30:27.000000000 +0100 |
ab30d09f | 669 | @@ -883,6 +883,8 @@ source "fs/Kconfig" |
d337f35e JR |
670 | |
671 | source "arch/sh/Kconfig.debug" | |
672 | ||
673 | +source "kernel/vserver/Kconfig" | |
674 | + | |
675 | source "security/Kconfig" | |
676 | ||
677 | source "crypto/Kconfig" | |
1163e6ab | 678 | diff -NurpP --minimal linux-2.6.37/arch/sh/kernel/irq.c linux-2.6.37-vs2.3.0.37-rc3/arch/sh/kernel/irq.c |
ab30d09f | 679 | --- linux-2.6.37/arch/sh/kernel/irq.c 2011-01-05 21:49:16.000000000 +0100 |
1163e6ab | 680 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/sh/kernel/irq.c 2010-11-23 02:09:40.000000000 +0100 |
76514441 | 681 | @@ -13,6 +13,7 @@ |
d337f35e | 682 | #include <linux/seq_file.h> |
7e46296a | 683 | #include <linux/ftrace.h> |
76514441 | 684 | #include <linux/delay.h> |
7e46296a | 685 | +// #include <linux/vs_context.h> |
d337f35e | 686 | #include <asm/processor.h> |
2380c486 | 687 | #include <asm/machvec.h> |
d337f35e | 688 | #include <asm/uaccess.h> |
1163e6ab | 689 | diff -NurpP --minimal linux-2.6.37/arch/sh/kernel/vsyscall/vsyscall.c linux-2.6.37-vs2.3.0.37-rc3/arch/sh/kernel/vsyscall/vsyscall.c |
ab30d09f | 690 | --- linux-2.6.37/arch/sh/kernel/vsyscall/vsyscall.c 2010-07-07 18:31:10.000000000 +0200 |
1163e6ab | 691 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/sh/kernel/vsyscall/vsyscall.c 2010-11-23 02:09:40.000000000 +0100 |
78865d5b | 692 | @@ -18,6 +18,7 @@ |
d337f35e | 693 | #include <linux/elf.h> |
2380c486 JR |
694 | #include <linux/sched.h> |
695 | #include <linux/err.h> | |
d337f35e JR |
696 | +#include <linux/vs_memory.h> |
697 | ||
698 | /* | |
699 | * Should the kernel map a VDSO page into processes and pass its | |
1163e6ab | 700 | diff -NurpP --minimal linux-2.6.37/arch/sparc/include/asm/tlb_64.h linux-2.6.37-vs2.3.0.37-rc3/arch/sparc/include/asm/tlb_64.h |
ab30d09f | 701 | --- linux-2.6.37/arch/sparc/include/asm/tlb_64.h 2009-09-10 15:25:45.000000000 +0200 |
1163e6ab | 702 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/sparc/include/asm/tlb_64.h 2010-11-23 02:09:40.000000000 +0100 |
ec22aa5c AM |
703 | @@ -3,6 +3,7 @@ |
704 | ||
705 | #include <linux/swap.h> | |
706 | #include <linux/pagemap.h> | |
707 | +#include <linux/vs_memory.h> | |
708 | #include <asm/pgalloc.h> | |
709 | #include <asm/tlbflush.h> | |
710 | #include <asm/mmu_context.h> | |
1163e6ab | 711 | diff -NurpP --minimal linux-2.6.37/arch/sparc/include/asm/unistd.h linux-2.6.37-vs2.3.0.37-rc3/arch/sparc/include/asm/unistd.h |
ab30d09f | 712 | --- linux-2.6.37/arch/sparc/include/asm/unistd.h 2010-10-21 13:06:58.000000000 +0200 |
1163e6ab | 713 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/sparc/include/asm/unistd.h 2010-11-23 02:09:40.000000000 +0100 |
ec22aa5c AM |
714 | @@ -335,7 +335,7 @@ |
715 | #define __NR_timer_getoverrun 264 | |
716 | #define __NR_timer_delete 265 | |
717 | #define __NR_timer_create 266 | |
718 | -/* #define __NR_vserver 267 Reserved for VSERVER */ | |
719 | +#define __NR_vserver 267 | |
720 | #define __NR_io_setup 268 | |
721 | #define __NR_io_destroy 269 | |
722 | #define __NR_io_submit 270 | |
1163e6ab | 723 | diff -NurpP --minimal linux-2.6.37/arch/sparc/Kconfig linux-2.6.37-vs2.3.0.37-rc3/arch/sparc/Kconfig |
ab30d09f | 724 | --- linux-2.6.37/arch/sparc/Kconfig 2011-01-05 21:49:17.000000000 +0100 |
1163e6ab | 725 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/sparc/Kconfig 2010-11-23 02:09:40.000000000 +0100 |
ab30d09f | 726 | @@ -560,6 +560,8 @@ source "fs/Kconfig" |
3bac966d AM |
727 | |
728 | source "arch/sparc/Kconfig.debug" | |
729 | ||
730 | +source "kernel/vserver/Kconfig" | |
731 | + | |
732 | source "security/Kconfig" | |
733 | ||
734 | source "crypto/Kconfig" | |
1163e6ab | 735 | diff -NurpP --minimal linux-2.6.37/arch/sparc/kernel/systbls_32.S linux-2.6.37-vs2.3.0.37-rc3/arch/sparc/kernel/systbls_32.S |
ab30d09f | 736 | --- linux-2.6.37/arch/sparc/kernel/systbls_32.S 2010-10-21 13:06:59.000000000 +0200 |
1163e6ab | 737 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/sparc/kernel/systbls_32.S 2010-11-23 02:09:40.000000000 +0100 |
50e68740 | 738 | @@ -70,7 +70,7 @@ sys_call_table: |
9390b158 | 739 | /*250*/ .long sys_mremap, sys_sysctl, sys_getsid, sys_fdatasync, sys_nfsservctl |
50e68740 JR |
740 | /*255*/ .long sys_sync_file_range, sys_clock_settime, sys_clock_gettime, sys_clock_getres, sys_clock_nanosleep |
741 | /*260*/ .long sys_sched_getaffinity, sys_sched_setaffinity, sys_timer_settime, sys_timer_gettime, sys_timer_getoverrun | |
742 | -/*265*/ .long sys_timer_delete, sys_timer_create, sys_nis_syscall, sys_io_setup, sys_io_destroy | |
743 | +/*265*/ .long sys_timer_delete, sys_timer_create, sys_vserver, sys_io_setup, sys_io_destroy | |
744 | /*270*/ .long sys_io_submit, sys_io_cancel, sys_io_getevents, sys_mq_open, sys_mq_unlink | |
745 | /*275*/ .long sys_mq_timedsend, sys_mq_timedreceive, sys_mq_notify, sys_mq_getsetattr, sys_waitid | |
746 | /*280*/ .long sys_tee, sys_add_key, sys_request_key, sys_keyctl, sys_openat | |
1163e6ab | 747 | diff -NurpP --minimal linux-2.6.37/arch/sparc/kernel/systbls_64.S linux-2.6.37-vs2.3.0.37-rc3/arch/sparc/kernel/systbls_64.S |
ab30d09f | 748 | --- linux-2.6.37/arch/sparc/kernel/systbls_64.S 2010-10-21 13:06:59.000000000 +0200 |
1163e6ab | 749 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/sparc/kernel/systbls_64.S 2010-11-23 02:09:41.000000000 +0100 |
50e68740 | 750 | @@ -71,7 +71,7 @@ sys_call_table32: |
2bf5ad28 | 751 | /*250*/ .word sys_mremap, compat_sys_sysctl, sys32_getsid, sys_fdatasync, sys32_nfsservctl |
50e68740 JR |
752 | .word sys32_sync_file_range, compat_sys_clock_settime, compat_sys_clock_gettime, compat_sys_clock_getres, sys32_clock_nanosleep |
753 | /*260*/ .word compat_sys_sched_getaffinity, compat_sys_sched_setaffinity, sys32_timer_settime, compat_sys_timer_gettime, sys_timer_getoverrun | |
754 | - .word sys_timer_delete, compat_sys_timer_create, sys_ni_syscall, compat_sys_io_setup, sys_io_destroy | |
755 | + .word sys_timer_delete, compat_sys_timer_create, sys32_vserver, compat_sys_io_setup, sys_io_destroy | |
756 | /*270*/ .word sys32_io_submit, sys_io_cancel, compat_sys_io_getevents, sys32_mq_open, sys_mq_unlink | |
757 | .word compat_sys_mq_timedsend, compat_sys_mq_timedreceive, compat_sys_mq_notify, compat_sys_mq_getsetattr, compat_sys_waitid | |
758 | /*280*/ .word sys32_tee, sys_add_key, sys_request_key, sys_keyctl, compat_sys_openat | |
93de0823 | 759 | @@ -147,7 +147,7 @@ sys_call_table: |
50e68740 JR |
760 | /*250*/ .word sys_64_mremap, sys_sysctl, sys_getsid, sys_fdatasync, sys_nfsservctl |
761 | .word sys_sync_file_range, sys_clock_settime, sys_clock_gettime, sys_clock_getres, sys_clock_nanosleep | |
762 | /*260*/ .word sys_sched_getaffinity, sys_sched_setaffinity, sys_timer_settime, sys_timer_gettime, sys_timer_getoverrun | |
763 | - .word sys_timer_delete, sys_timer_create, sys_ni_syscall, sys_io_setup, sys_io_destroy | |
764 | + .word sys_timer_delete, sys_timer_create, sys_vserver, sys_io_setup, sys_io_destroy | |
765 | /*270*/ .word sys_io_submit, sys_io_cancel, sys_io_getevents, sys_mq_open, sys_mq_unlink | |
766 | .word sys_mq_timedsend, sys_mq_timedreceive, sys_mq_notify, sys_mq_getsetattr, sys_waitid | |
767 | /*280*/ .word sys_tee, sys_add_key, sys_request_key, sys_keyctl, sys_openat | |
1163e6ab | 768 | diff -NurpP --minimal linux-2.6.37/arch/um/include/asm/tlb.h linux-2.6.37-vs2.3.0.37-rc3/arch/um/include/asm/tlb.h |
ab30d09f | 769 | --- linux-2.6.37/arch/um/include/asm/tlb.h 2009-09-10 15:25:46.000000000 +0200 |
1163e6ab | 770 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/um/include/asm/tlb.h 2010-11-23 02:09:41.000000000 +0100 |
adc1caaa | 771 | @@ -3,6 +3,7 @@ |
e03b8c3c AM |
772 | |
773 | #include <linux/pagemap.h> | |
774 | #include <linux/swap.h> | |
775 | +#include <linux/vs_memory.h> | |
776 | #include <asm/percpu.h> | |
777 | #include <asm/pgalloc.h> | |
778 | #include <asm/tlbflush.h> | |
1163e6ab | 779 | diff -NurpP --minimal linux-2.6.37/arch/um/include/shared/kern_constants.h linux-2.6.37-vs2.3.0.37-rc3/arch/um/include/shared/kern_constants.h |
ab30d09f | 780 | --- linux-2.6.37/arch/um/include/shared/kern_constants.h 1970-01-01 01:00:00.000000000 +0100 |
1163e6ab | 781 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/um/include/shared/kern_constants.h 2010-11-23 02:09:41.000000000 +0100 |
e03b8c3c AM |
782 | @@ -0,0 +1 @@ |
783 | +#include "../../../../include/generated/asm-offsets.h" | |
1163e6ab | 784 | diff -NurpP --minimal linux-2.6.37/arch/um/include/shared/user_constants.h linux-2.6.37-vs2.3.0.37-rc3/arch/um/include/shared/user_constants.h |
ab30d09f | 785 | --- linux-2.6.37/arch/um/include/shared/user_constants.h 1970-01-01 01:00:00.000000000 +0100 |
1163e6ab | 786 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/um/include/shared/user_constants.h 2010-11-23 02:09:41.000000000 +0100 |
e03b8c3c AM |
787 | @@ -0,0 +1,40 @@ |
788 | +/* | |
789 | + * DO NOT MODIFY. | |
790 | + * | |
791 | + * This file was generated by arch/um/Makefile | |
792 | + * | |
793 | + */ | |
794 | + | |
795 | +#define HOST_SC_CR2 176 /* offsetof(struct sigcontext, cr2) # */ | |
796 | +#define HOST_SC_ERR 152 /* offsetof(struct sigcontext, err) # */ | |
797 | +#define HOST_SC_TRAPNO 160 /* offsetof(struct sigcontext, trapno) # */ | |
798 | +#define HOST_FP_SIZE 64 /* sizeof(struct _fpstate) / sizeof(unsigned long) # */ | |
799 | +#define HOST_RBX 5 /* RBX # */ | |
800 | +#define HOST_RCX 11 /* RCX # */ | |
801 | +#define HOST_RDI 14 /* RDI # */ | |
802 | +#define HOST_RSI 13 /* RSI # */ | |
803 | +#define HOST_RDX 12 /* RDX # */ | |
804 | +#define HOST_RBP 4 /* RBP # */ | |
805 | +#define HOST_RAX 10 /* RAX # */ | |
806 | +#define HOST_R8 9 /* R8 # */ | |
807 | +#define HOST_R9 8 /* R9 # */ | |
808 | +#define HOST_R10 7 /* R10 # */ | |
809 | +#define HOST_R11 6 /* R11 # */ | |
810 | +#define HOST_R12 3 /* R12 # */ | |
811 | +#define HOST_R13 2 /* R13 # */ | |
812 | +#define HOST_R14 1 /* R14 # */ | |
813 | +#define HOST_R15 0 /* R15 # */ | |
814 | +#define HOST_ORIG_RAX 15 /* ORIG_RAX # */ | |
815 | +#define HOST_CS 17 /* CS # */ | |
816 | +#define HOST_SS 20 /* SS # */ | |
817 | +#define HOST_EFLAGS 18 /* EFLAGS # */ | |
818 | +#define HOST_IP 16 /* RIP # */ | |
819 | +#define HOST_SP 19 /* RSP # */ | |
820 | +#define UM_FRAME_SIZE 216 /* sizeof(struct user_regs_struct) # */ | |
821 | +#define UM_POLLIN 1 /* POLLIN # */ | |
822 | +#define UM_POLLPRI 2 /* POLLPRI # */ | |
823 | +#define UM_POLLOUT 4 /* POLLOUT # */ | |
824 | +#define UM_PROT_READ 1 /* PROT_READ # */ | |
825 | +#define UM_PROT_WRITE 2 /* PROT_WRITE # */ | |
826 | +#define UM_PROT_EXEC 4 /* PROT_EXEC # */ | |
827 | + | |
1163e6ab | 828 | diff -NurpP --minimal linux-2.6.37/arch/um/Kconfig.rest linux-2.6.37-vs2.3.0.37-rc3/arch/um/Kconfig.rest |
ab30d09f | 829 | --- linux-2.6.37/arch/um/Kconfig.rest 2009-06-11 17:12:19.000000000 +0200 |
1163e6ab | 830 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/um/Kconfig.rest 2010-11-23 02:09:41.000000000 +0100 |
3bac966d | 831 | @@ -18,6 +18,8 @@ source "drivers/connector/Kconfig" |
e03b8c3c | 832 | |
3bac966d | 833 | source "fs/Kconfig" |
e03b8c3c AM |
834 | |
835 | +source "kernel/vserver/Kconfig" | |
836 | + | |
837 | source "security/Kconfig" | |
838 | ||
839 | source "crypto/Kconfig" | |
1163e6ab | 840 | diff -NurpP --minimal linux-2.6.37/arch/x86/ia32/ia32entry.S linux-2.6.37-vs2.3.0.37-rc3/arch/x86/ia32/ia32entry.S |
ab30d09f | 841 | --- linux-2.6.37/arch/x86/ia32/ia32entry.S 2010-10-21 13:06:59.000000000 +0200 |
1163e6ab | 842 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/x86/ia32/ia32entry.S 2010-11-23 02:09:41.000000000 +0100 |
53fda8d6 | 843 | @@ -783,7 +783,7 @@ ia32_sys_call_table: |
2380c486 JR |
844 | .quad sys_tgkill /* 270 */ |
845 | .quad compat_sys_utimes | |
846 | .quad sys32_fadvise64_64 | |
847 | - .quad quiet_ni_syscall /* sys_vserver */ | |
848 | + .quad sys32_vserver | |
849 | .quad sys_mbind | |
850 | .quad compat_sys_get_mempolicy /* 275 */ | |
851 | .quad sys_set_mempolicy | |
1163e6ab | 852 | diff -NurpP --minimal linux-2.6.37/arch/x86/include/asm/unistd_64.h linux-2.6.37-vs2.3.0.37-rc3/arch/x86/include/asm/unistd_64.h |
ab30d09f | 853 | --- linux-2.6.37/arch/x86/include/asm/unistd_64.h 2010-10-21 13:06:59.000000000 +0200 |
1163e6ab | 854 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/x86/include/asm/unistd_64.h 2010-11-23 02:09:41.000000000 +0100 |
ec22aa5c AM |
855 | @@ -535,7 +535,7 @@ __SYSCALL(__NR_tgkill, sys_tgkill) |
856 | #define __NR_utimes 235 | |
857 | __SYSCALL(__NR_utimes, sys_utimes) | |
858 | #define __NR_vserver 236 | |
859 | -__SYSCALL(__NR_vserver, sys_ni_syscall) | |
860 | +__SYSCALL(__NR_vserver, sys_vserver) | |
861 | #define __NR_mbind 237 | |
862 | __SYSCALL(__NR_mbind, sys_mbind) | |
863 | #define __NR_set_mempolicy 238 | |
1163e6ab | 864 | diff -NurpP --minimal linux-2.6.37/arch/x86/Kconfig linux-2.6.37-vs2.3.0.37-rc3/arch/x86/Kconfig |
ab30d09f | 865 | --- linux-2.6.37/arch/x86/Kconfig 2011-01-05 21:49:19.000000000 +0100 |
1163e6ab | 866 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/x86/Kconfig 2011-01-05 22:30:27.000000000 +0100 |
ab30d09f | 867 | @@ -2119,6 +2119,8 @@ source "fs/Kconfig" |
3bac966d AM |
868 | |
869 | source "arch/x86/Kconfig.debug" | |
870 | ||
871 | +source "kernel/vserver/Kconfig" | |
872 | + | |
873 | source "security/Kconfig" | |
874 | ||
875 | source "crypto/Kconfig" | |
1163e6ab | 876 | diff -NurpP --minimal linux-2.6.37/arch/x86/kernel/syscall_table_32.S linux-2.6.37-vs2.3.0.37-rc3/arch/x86/kernel/syscall_table_32.S |
ab30d09f | 877 | --- linux-2.6.37/arch/x86/kernel/syscall_table_32.S 2010-10-21 13:07:00.000000000 +0200 |
1163e6ab | 878 | +++ linux-2.6.37-vs2.3.0.37-rc3/arch/x86/kernel/syscall_table_32.S 2010-11-23 02:09:41.000000000 +0100 |
3bac966d AM |
879 | @@ -272,7 +272,7 @@ ENTRY(sys_call_table) |
880 | .long sys_tgkill /* 270 */ | |
2380c486 JR |
881 | .long sys_utimes |
882 | .long sys_fadvise64_64 | |
883 | - .long sys_ni_syscall /* sys_vserver */ | |
884 | + .long sys_vserver | |
885 | .long sys_mbind | |
886 | .long sys_get_mempolicy | |
887 | .long sys_set_mempolicy | |
1163e6ab | 888 | diff -NurpP --minimal linux-2.6.37/Documentation/vserver/debug.txt linux-2.6.37-vs2.3.0.37-rc3/Documentation/vserver/debug.txt |
ab30d09f | 889 | --- linux-2.6.37/Documentation/vserver/debug.txt 1970-01-01 01:00:00.000000000 +0100 |
1163e6ab | 890 | +++ linux-2.6.37-vs2.3.0.37-rc3/Documentation/vserver/debug.txt 2010-11-23 02:09:40.000000000 +0100 |
3bac966d AM |
891 | @@ -0,0 +1,154 @@ |
892 | + | |
893 | +debug_cvirt: | |
894 | + | |
895 | + 2 4 "vx_map_tgid: %p/%llx: %d -> %d" | |
896 | + "vx_rmap_tgid: %p/%llx: %d -> %d" | |
897 | + | |
898 | +debug_dlim: | |
899 | + | |
900 | + 0 1 "ALLOC (%p,#%d)%c inode (%d)" | |
901 | + "FREE (%p,#%d)%c inode" | |
902 | + 1 2 "ALLOC (%p,#%d)%c %lld bytes (%d)" | |
903 | + "FREE (%p,#%d)%c %lld bytes" | |
904 | + 2 4 "ADJUST: %lld,%lld on %ld,%ld [mult=%d]" | |
905 | + 3 8 "ext3_has_free_blocks(%p): %lu<%lu+1, %c, %u!=%u r=%d" | |
906 | + "ext3_has_free_blocks(%p): free=%lu, root=%lu" | |
907 | + "rcu_free_dl_info(%p)" | |
908 | + 4 10 "alloc_dl_info(%p,%d) = %p" | |
909 | + "dealloc_dl_info(%p)" | |
910 | + "get_dl_info(%p[#%d.%d])" | |
911 | + "put_dl_info(%p[#%d.%d])" | |
912 | + 5 20 "alloc_dl_info(%p,%d)*" | |
913 | + 6 40 "__hash_dl_info: %p[#%d]" | |
914 | + "__unhash_dl_info: %p[#%d]" | |
915 | + 7 80 "locate_dl_info(%p,#%d) = %p" | |
916 | + | |
917 | +debug_misc: | |
918 | + | |
919 | + 0 1 "destroy_dqhash: %p [#0x%08x] c=%d" | |
920 | + "new_dqhash: %p [#0x%08x]" | |
921 | + "vroot[%d]_clr_dev: dev=%p[%lu,%d:%d]" | |
922 | + "vroot[%d]_get_real_bdev: dev=%p[%lu,%d:%d]" | |
923 | + "vroot[%d]_set_dev: dev=%p[%lu,%d:%d]" | |
924 | + "vroot_get_real_bdev not set" | |
925 |