~ubuntu-branches/ubuntu/oneiric/linux-ti-omap4/oneiric-updates

« back to all changes in this revision

Viewing changes to include/linux/sched.h

  • Committer: Package Import Robot
  • Author(s): Paolo Pisati, Paolo Pisati, Ubuntu: 3.0.0-31.49
  • Date: 2013-02-20 22:17:36 UTC
  • Revision ID: package-import@ubuntu.com-20130220221736-6pfzqqi3j0tj4qjr
Tags: 3.0.0-1221.35
* Release Tracking Bug
  - LP: #1130473

[ Paolo Pisati ]

* rebased on Ubuntu-3.0.0-31.49

[ Ubuntu: 3.0.0-31.49 ]

* Release Tracking Bug
  - LP: #1130243
* ptrace: introduce signal_wake_up_state() and ptrace_signal_wake_up()
  - LP: #1129192
  - CVE-2013-0871
* ptrace: ensure arch_ptrace/ptrace_request can never race with SIGKILL
  - LP: #1129192
  - CVE-2013-0871
* wake_up_process() should be never used to wakeup a TASK_STOPPED/TRACED
  task
  - LP: #1129192
  - CVE-2013-0871

Show diffs side-by-side

added added

removed removed

Lines of Context:
2571
2571
extern void recalc_sigpending_and_wake(struct task_struct *t);
2572
2572
extern void recalc_sigpending(void);
2573
2573
 
2574
 
extern void signal_wake_up(struct task_struct *t, int resume_stopped);
 
2574
extern void signal_wake_up_state(struct task_struct *t, unsigned int state);
 
2575
 
 
2576
static inline void signal_wake_up(struct task_struct *t, bool resume)
 
2577
{
 
2578
        signal_wake_up_state(t, resume ? TASK_WAKEKILL : 0);
 
2579
}
 
2580
static inline void ptrace_signal_wake_up(struct task_struct *t, bool resume)
 
2581
{
 
2582
        signal_wake_up_state(t, resume ? __TASK_TRACED : 0);
 
2583
}
2575
2584
 
2576
2585
/*
2577
2586
 * Wrappers for p->thread_info->cpu access. No-op on UP.