LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Dmitry Safonov <0x7f454c46@gmail.com>
To: Dmitry Safonov <dima@arista.com>
Cc: Andy Lutomirski <luto@kernel.org>,
LKML <linux-kernel@vger.kernel.org>,
izbyshev@ispras.ru, Alexander Monakov <amonakov@ispras.ru>,
Borislav Petkov <bp@suse.de>,
Cyrill Gorcunov <gorcunov@openvz.org>,
"H. Peter Anvin" <hpa@zytor.com>, Ingo Molnar <mingo@redhat.com>,
"Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>,
Thomas Gleixner <tglx@linutronix.de>,
Linux-MM <linux-mm@kvack.org>, X86 ML <x86@kernel.org>,
stable <stable@vger.kernel.org>
Subject: Re: [PATCH] x86/mm: Drop TS_COMPAT on 64-bit exec() syscall
Date: Sat, 19 May 2018 03:33:41 +0100 [thread overview]
Message-ID: <CAJwJo6YRw4Lkme5XNjhx-t+n11rtNO5z=0w4c-W5Td6TKmapOg@mail.gmail.com> (raw)
In-Reply-To: <CAJwJo6YNqEBxbnJURL-+p_3S9rMBmJHNfE+WqwUF5nVkpRZ3nw@mail.gmail.com>
2018-05-19 3:25 GMT+01:00 Dmitry Safonov <0x7f454c46@gmail.com>:
>> Here is the function:
>> 0000000000400842 <call32_from_64>:
>> 400842: 53 push %rbx
>> 400843: 55 push %rbp
>> 400844: 41 54 push %r12
>> 400846: 41 55 push %r13
>> 400848: 41 56 push %r14
>> 40084a: 41 57 push %r15
>> 40084c: 9c pushfq
>> 40084d: 48 89 27 mov %rsp,(%rdi)
>> 400850: 48 89 fc mov %rdi,%rsp
>> 400853: 6a 23 pushq $0x23
>> 400855: 68 5c 08 40 00 pushq $0x40085c
>> 40085a: 48 cb lretq
>> 40085c: ff d6 callq *%rsi
>> 40085e: ea (bad)
>> 40085f: 65 08 40 00 or %al,%gs:0x0(%rax)
>> 400863: 33 00 xor (%rax),%eax
>> 400865: 48 8b 24 24 mov (%rsp),%rsp
>> 400869: 9d popfq
>> 40086a: 41 5f pop %r15
>> 40086c: 41 5e pop %r14
>> 40086e: 41 5d pop %r13
>> 400870: 41 5c pop %r12
>> 400872: 5d pop %rbp
>> 400873: 5b pop %rbx
>> 400874: c3 retq
>> 400875: 66 2e 0f 1f 84 00 00 nopw %cs:0x0(%rax,%rax,1)
>> 40087c: 00 00 00
>> 40087f: 90 nop
>>
>> Looks like mov between registers caused it? The hell.
>
> Oh, it's not 400850, I missloked, but 40085a so lretq might case it.
But it's
002b:00000000417bafe8
USER_DS and sensible address, still no idea.
--
Dmitry
next prev parent reply other threads:[~2018-05-19 2:34 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-17 23:35 Dmitry Safonov
2018-05-17 23:40 ` Dmitry Safonov
2018-05-18 22:03 ` Andy Lutomirski
2018-05-18 23:10 ` Dmitry Safonov
2018-05-18 23:16 ` Dmitry Safonov
2018-05-18 23:25 ` Dmitry Safonov
2018-05-19 2:05 ` Andy Lutomirski
2018-05-19 2:22 ` Dmitry Safonov
2018-05-19 2:25 ` Dmitry Safonov
2018-05-19 2:33 ` Dmitry Safonov [this message]
2018-05-18 7:20 ` Cyrill Gorcunov
2018-05-19 10:24 ` [tip:x86/urgent] " tip-bot for Dmitry Safonov
2018-05-19 10:34 ` tip-bot for Dmitry Safonov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAJwJo6YRw4Lkme5XNjhx-t+n11rtNO5z=0w4c-W5Td6TKmapOg@mail.gmail.com' \
--to=0x7f454c46@gmail.com \
--cc=amonakov@ispras.ru \
--cc=bp@suse.de \
--cc=dima@arista.com \
--cc=gorcunov@openvz.org \
--cc=hpa@zytor.com \
--cc=izbyshev@ispras.ru \
--cc=kirill.shutemov@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=luto@kernel.org \
--cc=mingo@redhat.com \
--cc=stable@vger.kernel.org \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
--subject='Re: [PATCH] x86/mm: Drop TS_COMPAT on 64-bit exec() syscall' \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).