Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 172259
b: refs/heads/master
c: 8e7cac7
h: refs/heads/master
i:
  172257: eb8c154
  172255: be21e14
v: v3
  • Loading branch information
Avi Kivity authored and Ingo Molnar committed Nov 29, 2009
1 parent 2861dc8 commit ab09a98
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3c912b6edaac56cb451e7571c95c15cbb6bd0c81
refs/heads/master: 8e7cac79808b62f242069a6ac88d364d35621371
7 changes: 7 additions & 0 deletions trunk/include/linux/user-return-notifier.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ static inline void propagate_user_return_notify(struct task_struct *prev,

void fire_user_return_notifiers(void);

static inline void clear_user_return_notifier(struct task_struct *p)
{
clear_tsk_thread_flag(p, TIF_USER_RETURN_NOTIFY);
}

#else

struct user_return_notifier {};
Expand All @@ -37,6 +42,8 @@ static inline void propagate_user_return_notify(struct task_struct *prev,

static inline void fire_user_return_notifiers(void) {}

static inline void clear_user_return_notifier(struct task_struct *p) {}

#endif

#endif
2 changes: 2 additions & 0 deletions trunk/kernel/fork.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
#include <linux/magic.h>
#include <linux/perf_event.h>
#include <linux/posix-timers.h>
#include <linux/user-return-notifier.h>

#include <asm/pgtable.h>
#include <asm/pgalloc.h>
Expand Down Expand Up @@ -249,6 +250,7 @@ static struct task_struct *dup_task_struct(struct task_struct *orig)
goto out;

setup_thread_stack(tsk, orig);
clear_user_return_notifier(tsk);
stackend = end_of_stack(tsk);
*stackend = STACK_END_MAGIC; /* for overflow detection */

Expand Down

0 comments on commit ab09a98

Please sign in to comment.