Skip to content

Commit bf343df

Browse files
author
Al Viro
committed
don't call try_to_freeze() from do_signal()
get_signal_to_deliver() will handle it itself Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent a610d6e commit bf343df

7 files changed

Lines changed: 0 additions & 28 deletions

File tree

‎arch/blackfin/kernel/signal.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -285,17 +285,13 @@ asmlinkage void do_signal(struct pt_regs *regs)
285285

286286
current->thread.esp0 = (unsigned long)regs;
287287

288-
if (try_to_freeze())
289-
goto no_signal;
290-
291288
signr = get_signal_to_deliver(&info, &ka, regs, NULL);
292289
if (signr > 0) {
293290
/* Whee! Actually deliver the signal. */
294291
handle_signal(signr, &info, &ka, regs);
295292
return;
296293
}
297294

298-
no_signal:
299295
/* Did we come from a system call? */
300296
if (regs->orig_p0 >= 0)
301297
/* Restart the system call - no handlers present */

‎arch/frv/kernel/signal.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -491,16 +491,12 @@ static void do_signal(void)
491491
if (!user_mode(__frame))
492492
return;
493493

494-
if (try_to_freeze())
495-
goto no_signal;
496-
497494
signr = get_signal_to_deliver(&info, &ka, __frame, NULL);
498495
if (signr > 0) {
499496
handle_signal(signr, &info, &ka);
500497
return;
501498
}
502499

503-
no_signal:
504500
/* Did we come from a system call? */
505501
if (__frame->syscallno != -1) {
506502
/* Restart the system call - no handlers present */

‎arch/h8300/kernel/signal.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -466,9 +466,6 @@ statis void do_signal(struct pt_regs *regs)
466466
if ((regs->ccr & 0x10))
467467
return;
468468

469-
if (try_to_freeze())
470-
goto no_signal;
471-
472469
current->thread.esp0 = (unsigned long) regs;
473470

474471
signr = get_signal_to_deliver(&info, &ka, regs, NULL);
@@ -477,7 +474,6 @@ statis void do_signal(struct pt_regs *regs)
477474
handle_signal(signr, &info, &ka, regs);
478475
return;
479476
}
480-
no_signal:
481477
/* Did we come from a system call? */
482478
if (regs->orig_er0 >= 0) {
483479
/* Restart the system call - no handlers present */

‎arch/hexagon/kernel/signal.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,17 +205,13 @@ static void do_signal(struct pt_regs *regs)
205205
if (!user_mode(regs))
206206
return;
207207

208-
if (try_to_freeze())
209-
goto no_signal;
210-
211208
signo = get_signal_to_deliver(&info, &sigact, regs, NULL);
212209

213210
if (signo > 0) {
214211
handle_signal(signo, &info, &sigact, regs);
215212
return;
216213
}
217214

218-
no_signal:
219215
/*
220216
* If we came from a system call, handle the restart.
221217
*/

‎arch/m32r/kernel/signal.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -320,9 +320,6 @@ static void do_signal(struct pt_regs *regs)
320320
if (!user_mode(regs))
321321
return;
322322

323-
if (try_to_freeze())
324-
goto no_signal;
325-
326323
signr = get_signal_to_deliver(&info, &ka, regs, NULL);
327324
if (signr > 0) {
328325
/* Re-enable any watchpoints before delivering the
@@ -337,7 +334,6 @@ static void do_signal(struct pt_regs *regs)
337334
return;
338335
}
339336

340-
no_signal:
341337
/* Did we come from a system call? */
342338
if (regs->syscall_nr >= 0) {
343339
/* Restart the system call - no handlers present */

‎arch/unicore32/kernel/signal.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -396,16 +396,12 @@ static void do_signal(struct pt_regs *regs, int syscall)
396396
if (!user_mode(regs))
397397
return;
398398

399-
if (try_to_freeze())
400-
goto no_signal;
401-
402399
signr = get_signal_to_deliver(&info, &ka, regs, NULL);
403400
if (signr > 0) {
404401
handle_signal(signr, &ka, &info, regs, syscall);
405402
return;
406403
}
407404

408-
no_signal:
409405
/*
410406
* No signal to deliver to the process - restart the syscall.
411407
*/

‎arch/xtensa/kernel/signal.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -453,9 +453,6 @@ static void do_signal(struct pt_regs *regs)
453453
int signr;
454454
struct k_sigaction ka;
455455

456-
if (try_to_freeze())
457-
goto no_signal;
458-
459456
task_pt_regs(current)->icountlevel = 0;
460457

461458
signr = get_signal_to_deliver(&info, &ka, regs, NULL);
@@ -506,7 +503,6 @@ static void do_signal(struct pt_regs *regs)
506503
return;
507504
}
508505

509-
no_signal:
510506
/* Did we come from a system call? */
511507
if ((signed) regs->syscall >= 0) {
512508
/* Restart the system call - no handlers present */

0 commit comments

Comments
 (0)