diff options
-rw-r--r-- | arch/frv/kernel/signal.c | 4 | ||||
-rw-r--r-- | arch/m32r/kernel/signal.c | 2 | ||||
-rw-r--r-- | arch/microblaze/kernel/signal.c | 2 | ||||
-rw-r--r-- | arch/sh/kernel/signal_32.c | 4 | ||||
-rw-r--r-- | arch/sh/kernel/signal_64.c | 4 | ||||
-rw-r--r-- | arch/xtensa/kernel/signal.c | 5 |
6 files changed, 0 insertions, 21 deletions
diff --git a/arch/frv/kernel/signal.c b/arch/frv/kernel/signal.c index 336713ab4745..85ca6727ca07 100644 --- a/arch/frv/kernel/signal.c +++ b/arch/frv/kernel/signal.c | |||
@@ -176,8 +176,6 @@ static int setup_frame(struct ksignal *ksig, sigset_t *set) | |||
176 | struct sigframe __user *frame; | 176 | struct sigframe __user *frame; |
177 | int rsig, sig = ksig->sig; | 177 | int rsig, sig = ksig->sig; |
178 | 178 | ||
179 | set_fs(USER_DS); | ||
180 | |||
181 | frame = get_sigframe(ksig, sizeof(*frame)); | 179 | frame = get_sigframe(ksig, sizeof(*frame)); |
182 | 180 | ||
183 | if (!access_ok(VERIFY_WRITE, frame, sizeof(*frame))) | 181 | if (!access_ok(VERIFY_WRITE, frame, sizeof(*frame))) |
@@ -257,8 +255,6 @@ static int setup_rt_frame(struct ksignal *ksig, sigset_t *set) | |||
257 | struct rt_sigframe __user *frame; | 255 | struct rt_sigframe __user *frame; |
258 | int rsig, sig = ksig->sig; | 256 | int rsig, sig = ksig->sig; |
259 | 257 | ||
260 | set_fs(USER_DS); | ||
261 | |||
262 | frame = get_sigframe(ksig, sizeof(*frame)); | 258 | frame = get_sigframe(ksig, sizeof(*frame)); |
263 | 259 | ||
264 | if (!access_ok(VERIFY_WRITE, frame, sizeof(*frame))) | 260 | if (!access_ok(VERIFY_WRITE, frame, sizeof(*frame))) |
diff --git a/arch/m32r/kernel/signal.c b/arch/m32r/kernel/signal.c index 7736c6660a15..8c25e0c8f6a5 100644 --- a/arch/m32r/kernel/signal.c +++ b/arch/m32r/kernel/signal.c | |||
@@ -214,8 +214,6 @@ static int setup_rt_frame(struct ksignal *ksig, sigset_t *set, | |||
214 | regs->r2 = (unsigned long)&frame->uc; | 214 | regs->r2 = (unsigned long)&frame->uc; |
215 | regs->bpc = (unsigned long)ksig->ka.sa.sa_handler; | 215 | regs->bpc = (unsigned long)ksig->ka.sa.sa_handler; |
216 | 216 | ||
217 | set_fs(USER_DS); | ||
218 | |||
219 | #if DEBUG_SIG | 217 | #if DEBUG_SIG |
220 | printk("SIG deliver (%s:%d): sp=%p pc=%p\n", | 218 | printk("SIG deliver (%s:%d): sp=%p pc=%p\n", |
221 | current->comm, current->pid, frame, regs->pc); | 219 | current->comm, current->pid, frame, regs->pc); |
diff --git a/arch/microblaze/kernel/signal.c b/arch/microblaze/kernel/signal.c index a1cbaf90e2ea..20ccd4e2baa5 100644 --- a/arch/microblaze/kernel/signal.c +++ b/arch/microblaze/kernel/signal.c | |||
@@ -236,8 +236,6 @@ static int setup_rt_frame(struct ksignal *ksig, sigset_t *set, | |||
236 | /* Offset to handle microblaze rtid r14, 0 */ | 236 | /* Offset to handle microblaze rtid r14, 0 */ |
237 | regs->pc = (unsigned long)ksig->ka.sa.sa_handler; | 237 | regs->pc = (unsigned long)ksig->ka.sa.sa_handler; |
238 | 238 | ||
239 | set_fs(USER_DS); | ||
240 | |||
241 | #ifdef DEBUG_SIG | 239 | #ifdef DEBUG_SIG |
242 | pr_info("SIG deliver (%s:%d): sp=%p pc=%08lx\n", | 240 | pr_info("SIG deliver (%s:%d): sp=%p pc=%08lx\n", |
243 | current->comm, current->pid, frame, regs->pc); | 241 | current->comm, current->pid, frame, regs->pc); |
diff --git a/arch/sh/kernel/signal_32.c b/arch/sh/kernel/signal_32.c index 0b34f2a704fe..97292890b51b 100644 --- a/arch/sh/kernel/signal_32.c +++ b/arch/sh/kernel/signal_32.c | |||
@@ -329,8 +329,6 @@ static int setup_frame(struct ksignal *ksig, sigset_t *set, | |||
329 | if (err) | 329 | if (err) |
330 | return -EFAULT; | 330 | return -EFAULT; |
331 | 331 | ||
332 | set_fs(USER_DS); | ||
333 | |||
334 | pr_debug("SIG deliver (%s:%d): sp=%p pc=%08lx pr=%08lx\n", | 332 | pr_debug("SIG deliver (%s:%d): sp=%p pc=%08lx pr=%08lx\n", |
335 | current->comm, task_pid_nr(current), frame, regs->pc, regs->pr); | 333 | current->comm, task_pid_nr(current), frame, regs->pc, regs->pr); |
336 | 334 | ||
@@ -408,8 +406,6 @@ static int setup_rt_frame(struct ksignal *ksig, sigset_t *set, | |||
408 | if (err) | 406 | if (err) |
409 | return -EFAULT; | 407 | return -EFAULT; |
410 | 408 | ||
411 | set_fs(USER_DS); | ||
412 | |||
413 | pr_debug("SIG deliver (%s:%d): sp=%p pc=%08lx pr=%08lx\n", | 409 | pr_debug("SIG deliver (%s:%d): sp=%p pc=%08lx pr=%08lx\n", |
414 | current->comm, task_pid_nr(current), frame, regs->pc, regs->pr); | 410 | current->comm, task_pid_nr(current), frame, regs->pc, regs->pr); |
415 | 411 | ||
diff --git a/arch/sh/kernel/signal_64.c b/arch/sh/kernel/signal_64.c index 71993c6a7d94..0462995d4d7f 100644 --- a/arch/sh/kernel/signal_64.c +++ b/arch/sh/kernel/signal_64.c | |||
@@ -457,8 +457,6 @@ static int setup_frame(struct ksignal *ksig, sigset_t *set, struct pt_regs *regs | |||
457 | 457 | ||
458 | regs->pc = neff_sign_extend((unsigned long)ksig->ka.sa.sa_handler); | 458 | regs->pc = neff_sign_extend((unsigned long)ksig->ka.sa.sa_handler); |
459 | 459 | ||
460 | set_fs(USER_DS); | ||
461 | |||
462 | /* Broken %016Lx */ | 460 | /* Broken %016Lx */ |
463 | pr_debug("SIG deliver (#%d,%s:%d): sp=%p pc=%08Lx%08Lx link=%08Lx%08Lx\n", | 461 | pr_debug("SIG deliver (#%d,%s:%d): sp=%p pc=%08Lx%08Lx link=%08Lx%08Lx\n", |
464 | signal, current->comm, current->pid, frame, | 462 | signal, current->comm, current->pid, frame, |
@@ -547,8 +545,6 @@ static int setup_rt_frame(struct ksignal *kig, sigset_t *set, | |||
547 | regs->regs[REG_ARG3] = (unsigned long long)(unsigned long)(signed long)&frame->uc.uc_mcontext; | 545 | regs->regs[REG_ARG3] = (unsigned long long)(unsigned long)(signed long)&frame->uc.uc_mcontext; |
548 | regs->pc = neff_sign_extend((unsigned long)ksig->ka.sa.sa_handler); | 546 | regs->pc = neff_sign_extend((unsigned long)ksig->ka.sa.sa_handler); |
549 | 547 | ||
550 | set_fs(USER_DS); | ||
551 | |||
552 | pr_debug("SIG deliver (#%d,%s:%d): sp=%p pc=%08Lx%08Lx link=%08Lx%08Lx\n", | 548 | pr_debug("SIG deliver (#%d,%s:%d): sp=%p pc=%08Lx%08Lx link=%08Lx%08Lx\n", |
553 | signal, current->comm, current->pid, frame, | 549 | signal, current->comm, current->pid, frame, |
554 | regs->pc >> 32, regs->pc & 0xffffffff, | 550 | regs->pc >> 32, regs->pc & 0xffffffff, |
diff --git a/arch/xtensa/kernel/signal.c b/arch/xtensa/kernel/signal.c index 3d733ba16f28..6b3790445cbe 100644 --- a/arch/xtensa/kernel/signal.c +++ b/arch/xtensa/kernel/signal.c | |||
@@ -405,11 +405,6 @@ static int setup_frame(struct ksignal *ksig, sigset_t *set, | |||
405 | regs->areg[8] = (unsigned long) &frame->uc; | 405 | regs->areg[8] = (unsigned long) &frame->uc; |
406 | regs->threadptr = tp; | 406 | regs->threadptr = tp; |
407 | 407 | ||
408 | /* Set access mode to USER_DS. Nomenclature is outdated, but | ||
409 | * functionality is used in uaccess.h | ||
410 | */ | ||
411 | set_fs(USER_DS); | ||
412 | |||
413 | #if DEBUG_SIG | 408 | #if DEBUG_SIG |
414 | printk("SIG rt deliver (%s:%d): signal=%d sp=%p pc=%08x\n", | 409 | printk("SIG rt deliver (%s:%d): signal=%d sp=%p pc=%08x\n", |
415 | current->comm, current->pid, signal, frame, regs->pc); | 410 | current->comm, current->pid, signal, frame, regs->pc); |