aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ppc64/kernel/asm-offsets.c
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@shinybook.infradead.org>2005-08-27 10:23:46 +0100
committerDavid Woodhouse <dwmw2@shinybook.infradead.org>2005-08-27 10:23:46 +0100
commit17888225c2f392bfdbac6c7f0713cbd9a4d02b05 (patch)
treecf11f005d3a973be9fd06eec243ded4b776c1502 /arch/ppc64/kernel/asm-offsets.c
parent3c789a19054034847afe80af2f23ebb0eebfbad6 (diff)
downloadlinux-17888225c2f392bfdbac6c7f0713cbd9a4d02b05.tar.gz
Fix missing audit_syscall_exit() on ppc64 sigsuspend exit path
When we leave sigsuspend() directly into a signal handler, we don't want to go via the normal syscall exit path -- it'll corrupt r4 and r5 which are supposed to be giving information to the signal handler, and it'll give us one more single-step SIGTRAP than we need if single-stepping is in operation. However, we _should_ be calling audit_syscall_exit(), which would normally get invoked in that patch. It's not wonderfully pretty, but I suspect the best answer is just to call it directly... Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'arch/ppc64/kernel/asm-offsets.c')
-rw-r--r--arch/ppc64/kernel/asm-offsets.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/ppc64/kernel/asm-offsets.c b/arch/ppc64/kernel/asm-offsets.c
index abb9e5b5da03b8..6f910fa2746f09 100644
--- a/arch/ppc64/kernel/asm-offsets.c
+++ b/arch/ppc64/kernel/asm-offsets.c
@@ -68,6 +68,7 @@ int main(void)
DEFINE(THREAD_USED_VR, offsetof(struct thread_struct, used_vr));
#endif /* CONFIG_ALTIVEC */
DEFINE(MM, offsetof(struct task_struct, mm));
+ DEFINE(AUDITCONTEXT, offsetof(struct task_struct, audit_context));
DEFINE(DCACHEL1LINESIZE, offsetof(struct ppc64_caches, dline_size));
DEFINE(DCACHEL1LOGLINESIZE, offsetof(struct ppc64_caches, log_dline_size));