From: Nikolay Borisov <nik.borisov@suse.com>
To: Thomas Gleixner <tglx@linutronix.de>, x86@kernel.org
Cc: linux-kernel@vger.kernel.org, mhocko@suse.com, jslaby@suse.cz
Subject: Re: [PATCH v3 2/5] x86/entry: Rename ignore_sysret
Date: Mon, 19 Jun 2023 16:30:40 +0300 [thread overview]
Message-ID: <0957c090-9904-2826-97de-8953efc75220@suse.com> (raw)
In-Reply-To: <87sfaoqyt1.ffs@tglx>
On 18.06.23 г. 23:51 ч., Thomas Gleixner wrote:
> On Fri, Jun 16 2023 at 15:57, Nikolay Borisov wrote:
>
>> Give ignore_sysret() a more descriptive name as it's actually used to make
>> 32bit syscalls return ENOSYS, rather than doing anything specific with
>
> That's not really correct. This is not about 32bit syscalls in general.
>
> It's specifically about the SYSCALL entry point on 32bit, right?
>
> The reason why this is required is because 32bit SYSCALL cannot be
> disabled in hardware.
How about:
"SYSCALL instruction cannot really be disabled in compatibility mode.
The best that can be done is to configure the CSTAR msr with a minimal
handler that returns directly some error value.
ignore_sysret is this minimal handler in the Linux kernel. Rename it by
giving it a more descriptive name."
>
> Thanks,
>
> tglx
>
>
next prev parent reply other threads:[~2023-06-19 13:31 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-16 12:57 [PATCH v3 0/5] Make IA32_EMULATION boot time overridable Nikolay Borisov
2023-06-16 12:57 ` [PATCH v3 1/5] x86: Make IA32_EMULATION boot time configurable Nikolay Borisov
2023-06-19 21:43 ` Randy Dunlap
2023-06-21 18:27 ` Borislav Petkov
2023-06-21 19:02 ` Nikolay Borisov
2023-06-16 12:57 ` [PATCH v3 2/5] x86/entry: Rename ignore_sysret Nikolay Borisov
2023-06-18 20:51 ` Thomas Gleixner
2023-06-19 13:30 ` Nikolay Borisov [this message]
2023-06-16 12:57 ` [PATCH v3 3/5] x86/entry: Compile entry_SYSCALL32_ignore unconditionally Nikolay Borisov
2023-06-18 21:11 ` Thomas Gleixner
2023-06-16 12:57 ` [PATCH v3 4/5] x86/elf: Make loading of 32bit processes depend on ia32_enabled() Nikolay Borisov
2023-06-16 12:57 ` [PATCH v3 5/5] x86/entry: Make IA32 syscalls' availability " Nikolay Borisov
2023-06-18 21:17 ` Thomas Gleixner
2023-06-19 6:28 ` Nikolay Borisov
2023-06-19 8:40 ` Thomas Gleixner
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=0957c090-9904-2826-97de-8953efc75220@suse.com \
--to=nik.borisov@suse.com \
--cc=jslaby@suse.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=mhocko@suse.com \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®