diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86_64/ia32/ia32entry.S | 5 | ||||
-rw-r--r-- | arch/x86_64/kernel/asm-offsets.c | 1 | ||||
-rw-r--r-- | arch/x86_64/kernel/entry.S | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/arch/x86_64/ia32/ia32entry.S b/arch/x86_64/ia32/ia32entry.S index 8172e61c3f6f..58f5bfb52c63 100644 --- a/arch/x86_64/ia32/ia32entry.S +++ b/arch/x86_64/ia32/ia32entry.S | |||
@@ -104,6 +104,7 @@ ENTRY(ia32_sysenter_target) | |||
104 | .quad 1b,ia32_badarg | 104 | .quad 1b,ia32_badarg |
105 | .previous | 105 | .previous |
106 | GET_THREAD_INFO(%r10) | 106 | GET_THREAD_INFO(%r10) |
107 | orl $TS_COMPAT,threadinfo_status(%r10) | ||
107 | testl $(_TIF_SYSCALL_TRACE|_TIF_SYSCALL_AUDIT|_TIF_SECCOMP),threadinfo_flags(%r10) | 108 | testl $(_TIF_SYSCALL_TRACE|_TIF_SYSCALL_AUDIT|_TIF_SECCOMP),threadinfo_flags(%r10) |
108 | CFI_REMEMBER_STATE | 109 | CFI_REMEMBER_STATE |
109 | jnz sysenter_tracesys | 110 | jnz sysenter_tracesys |
@@ -117,6 +118,7 @@ sysenter_do_call: | |||
117 | cli | 118 | cli |
118 | testl $_TIF_ALLWORK_MASK,threadinfo_flags(%r10) | 119 | testl $_TIF_ALLWORK_MASK,threadinfo_flags(%r10) |
119 | jnz int_ret_from_sys_call | 120 | jnz int_ret_from_sys_call |
121 | andl $~TS_COMPAT,threadinfo_status(%r10) | ||
120 | /* clear IF, that popfq doesn't enable interrupts early */ | 122 | /* clear IF, that popfq doesn't enable interrupts early */ |
121 | andl $~0x200,EFLAGS-R11(%rsp) | 123 | andl $~0x200,EFLAGS-R11(%rsp) |
122 | RESTORE_ARGS 1,24,1,1,1,1 | 124 | RESTORE_ARGS 1,24,1,1,1,1 |
@@ -203,6 +205,7 @@ ENTRY(ia32_cstar_target) | |||
203 | .quad 1b,ia32_badarg | 205 | .quad 1b,ia32_badarg |
204 | .previous | 206 | .previous |
205 | GET_THREAD_INFO(%r10) | 207 | GET_THREAD_INFO(%r10) |
208 | orl $TS_COMPAT,threadinfo_status(%r10) | ||
206 | testl $(_TIF_SYSCALL_TRACE|_TIF_SYSCALL_AUDIT|_TIF_SECCOMP),threadinfo_flags(%r10) | 209 | testl $(_TIF_SYSCALL_TRACE|_TIF_SYSCALL_AUDIT|_TIF_SECCOMP),threadinfo_flags(%r10) |
207 | CFI_REMEMBER_STATE | 210 | CFI_REMEMBER_STATE |
208 | jnz cstar_tracesys | 211 | jnz cstar_tracesys |
@@ -216,6 +219,7 @@ cstar_do_call: | |||
216 | cli | 219 | cli |
217 | testl $_TIF_ALLWORK_MASK,threadinfo_flags(%r10) | 220 | testl $_TIF_ALLWORK_MASK,threadinfo_flags(%r10) |
218 | jnz int_ret_from_sys_call | 221 | jnz int_ret_from_sys_call |
222 | andl $~TS_COMPAT,threadinfo_status(%r10) | ||
219 | RESTORE_ARGS 1,-ARG_SKIP,1,1,1 | 223 | RESTORE_ARGS 1,-ARG_SKIP,1,1,1 |
220 | movl RIP-ARGOFFSET(%rsp),%ecx | 224 | movl RIP-ARGOFFSET(%rsp),%ecx |
221 | CFI_REGISTER rip,rcx | 225 | CFI_REGISTER rip,rcx |
@@ -288,6 +292,7 @@ ENTRY(ia32_syscall) | |||
288 | this could be a problem. */ | 292 | this could be a problem. */ |
289 | SAVE_ARGS 0,0,1 | 293 | SAVE_ARGS 0,0,1 |
290 | GET_THREAD_INFO(%r10) | 294 | GET_THREAD_INFO(%r10) |
295 | orl $TS_COMPAT,threadinfo_status(%r10) | ||
291 | testl $(_TIF_SYSCALL_TRACE|_TIF_SYSCALL_AUDIT|_TIF_SECCOMP),threadinfo_flags(%r10) | 296 | testl $(_TIF_SYSCALL_TRACE|_TIF_SYSCALL_AUDIT|_TIF_SECCOMP),threadinfo_flags(%r10) |
292 | jnz ia32_tracesys | 297 | jnz ia32_tracesys |
293 | ia32_do_syscall: | 298 | ia32_do_syscall: |
diff --git a/arch/x86_64/kernel/asm-offsets.c b/arch/x86_64/kernel/asm-offsets.c index 00a08d13230a..cfb4f9cebea4 100644 --- a/arch/x86_64/kernel/asm-offsets.c +++ b/arch/x86_64/kernel/asm-offsets.c | |||
@@ -33,6 +33,7 @@ int main(void) | |||
33 | ENTRY(flags); | 33 | ENTRY(flags); |
34 | ENTRY(addr_limit); | 34 | ENTRY(addr_limit); |
35 | ENTRY(preempt_count); | 35 | ENTRY(preempt_count); |
36 | ENTRY(status); | ||
36 | BLANK(); | 37 | BLANK(); |
37 | #undef ENTRY | 38 | #undef ENTRY |
38 | #define ENTRY(entry) DEFINE(pda_ ## entry, offsetof(struct x8664_pda, entry)) | 39 | #define ENTRY(entry) DEFINE(pda_ ## entry, offsetof(struct x8664_pda, entry)) |
diff --git a/arch/x86_64/kernel/entry.S b/arch/x86_64/kernel/entry.S index 45e0ab8a1fca..300555bc56b3 100644 --- a/arch/x86_64/kernel/entry.S +++ b/arch/x86_64/kernel/entry.S | |||
@@ -313,6 +313,7 @@ int_with_check: | |||
313 | movl threadinfo_flags(%rcx),%edx | 313 | movl threadinfo_flags(%rcx),%edx |
314 | andl %edi,%edx | 314 | andl %edi,%edx |
315 | jnz int_careful | 315 | jnz int_careful |
316 | andl $~TS_COMPAT,threadinfo_status(%rcx) | ||
316 | jmp retint_swapgs | 317 | jmp retint_swapgs |
317 | 318 | ||
318 | /* Either reschedule or signal or syscall exit tracking needed. */ | 319 | /* Either reschedule or signal or syscall exit tracking needed. */ |