Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 311949
b: refs/heads/master
c: 09d3144
h: refs/heads/master
i:
  311947: 74f4128
v: v3
  • Loading branch information
Will Drewry authored and Linus Torvalds committed Jul 14, 2012
1 parent 4eec202 commit 1630f0b
Show file tree
Hide file tree
Showing 2 changed files with 5 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: a7559b13de77d720903c1b1d45cd3b5b0b30a643
refs/heads/master: 09d314425f5bc69fcf793c7890d9e6a3cdcb44be
4 changes: 4 additions & 0 deletions trunk/arch/x86/kernel/vsyscall_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ static int addr_to_vsyscall_nr(unsigned long addr)
return nr;
}

#ifdef CONFIG_SECCOMP
static int vsyscall_seccomp(struct task_struct *tsk, int syscall_nr)
{
if (!seccomp_mode(&tsk->seccomp))
Expand All @@ -147,6 +148,9 @@ static int vsyscall_seccomp(struct task_struct *tsk, int syscall_nr)
task_pt_regs(tsk)->ax = syscall_nr;
return __secure_computing(syscall_nr);
}
#else
#define vsyscall_seccomp(_tsk, _nr) 0
#endif

static bool write_ok_or_segv(unsigned long ptr, size_t size)
{
Expand Down

0 comments on commit 1630f0b

Please sign in to comment.