Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1192395 > unrolled thread
| Started by | Andy Lutomirski <luto@amacapital.net> |
|---|---|
| First post | 2015-07-25 18:10 +0200 |
| Last post | 2015-07-25 18:40 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH v4 2/3] x86/ldt: Make modify_ldt optional Andy Lutomirski <luto@amacapital.net> - 2015-07-25 18:10 +0200
Re: [PATCH v4 2/3] x86/ldt: Make modify_ldt optional Willy Tarreau <w@1wt.eu> - 2015-07-25 18:40 +0200
| From | Andy Lutomirski <luto@amacapital.net> |
|---|---|
| Date | 2015-07-25 18:10 +0200 |
| Subject | Re: [PATCH v4 2/3] x86/ldt: Make modify_ldt optional |
| Message-ID | <pQabn-YF-3@gated-at.bofh.it> |
On Sat, Jul 25, 2015 at 2:15 AM, Borislav Petkov <bp@alien8.de> wrote: > On Fri, Jul 24, 2015 at 10:36:45PM -0700, Andy Lutomirski wrote: >> The modify_ldt syscall exposes a large attack surface and is >> unnecessary for modern userspace. Make it optional. >> >> Signed-off-by: Andy Lutomirski <luto@kernel.org> >> --- >> arch/x86/Kconfig | 17 +++++++++++++++++ >> arch/x86/include/asm/mmu.h | 2 ++ >> arch/x86/include/asm/mmu_context.h | 31 +++++++++++++++++++++++-------- >> arch/x86/kernel/Makefile | 3 ++- >> arch/x86/kernel/cpu/perf_event.c | 4 ++++ >> arch/x86/kernel/process_64.c | 2 ++ >> arch/x86/kernel/step.c | 2 ++ >> kernel/sys_ni.c | 1 + >> 8 files changed, 53 insertions(+), 9 deletions(-) >> >> diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig >> index b3a1a5d77d92..ede52be845db 100644 >> --- a/arch/x86/Kconfig >> +++ b/arch/x86/Kconfig >> @@ -1015,6 +1015,7 @@ config VM86 >> config X86_16BIT >> bool "Enable support for 16-bit segments" if EXPERT >> default y >> + depends on MODIFY_LDT_SYSCALL >> ---help--- >> This option is required by programs like Wine to run 16-bit >> protected mode legacy code on x86 processors. Disabling >> @@ -2053,6 +2054,22 @@ config CMDLINE_OVERRIDE >> This is used to work around broken boot loaders. This should >> be set to 'N' under normal conditions. >> >> +config MODIFY_LDT_SYSCALL >> + bool "Enable the LDT (local descriptor table)" if EXPERT > > bool "Enable modify_ldt() for per-process Local Descriptor Table" > > is how I'd call it. Okay with me. > >> + default y > > Is that "default y" going to turn into a "default n" after a grace > period? Let's see how Willy's default-off sysctl plays out. In the long run, maybe we'll have it compiled in but runtime-disabled by default. There's a big community of users who *really* like using Wine :) --Andy -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Willy Tarreau <w@1wt.eu> |
|---|---|
| Date | 2015-07-25 18:40 +0200 |
| Message-ID | <pQaEq-1xN-27@gated-at.bofh.it> |
| In reply to | #1192395 |
On Sat, Jul 25, 2015 at 09:03:54AM -0700, Andy Lutomirski wrote: > On Sat, Jul 25, 2015 at 2:15 AM, Borislav Petkov <bp@alien8.de> wrote: > > Is that "default y" going to turn into a "default n" after a grace > > period? > > Let's see how Willy's default-off sysctl plays out. In the long run, > maybe we'll have it compiled in but runtime-disabled by default. That's the purpose at least at the beginning. > There's a big community of users who *really* like using Wine :) If distro vendors are willing to document a sysctl setting in order to be able to use Wine in exchange for better security, I'm sure most users will still prefer to stay safe. Willy -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web