Re: [RFC PATCH 0/7] x86: introduce system calls addess space isolation

2020-07-01 Thread 黄金海
How about performance when running with ASI?

Re: [RFC PATCH 0/7] x86: introduce system calls addess space isolation

2019-04-27 Thread Mike Rapoport
On Fri, Apr 26, 2019 at 07:41:09AM -0700, Dave Hansen wrote: > On 4/25/19 2:45 PM, Mike Rapoport wrote: > > The idea behind the prevention is that if we fault in pages in the > > execution path, we can compare target address against the kernel symbol > > table. So if we're in a function, we allow

Re: [RFC PATCH 0/7] x86: introduce system calls addess space isolation

2019-04-27 Thread Mike Rapoport
On Thu, Apr 25, 2019 at 05:30:13PM -0700, Andy Lutomirski wrote: > On Thu, Apr 25, 2019 at 2:46 PM Mike Rapoport wrote: > > > > Hi, > > > > Address space isolation has been used to protect the kernel from the > > userspace and userspace programs from each other since the invention of the > > virtu

Re: [RFC PATCH 0/7] x86: introduce system calls addess space isolation

2019-04-26 Thread Dave Hansen
On 4/25/19 2:45 PM, Mike Rapoport wrote: > The idea behind the prevention is that if we fault in pages in the > execution path, we can compare target address against the kernel symbol > table. So if we're in a function, we allow local jumps (and simply falling > of the end of a page) but if we're

Re: [RFC PATCH 0/7] x86: introduce system calls addess space isolation

2019-04-26 Thread Jiri Kosina
On Thu, 25 Apr 2019, Andy Lutomirski wrote: > The benefit seems to come from making sure that the RET instruction > actually goes somewhere that's already been faulted in. Which doesn't seem to be really compatible with things like retpolines or anyone using FTRACE_WITH_REGS to modify stored in

Re: [RFC PATCH 0/7] x86: introduce system calls addess space isolation

2019-04-25 Thread Andy Lutomirski
On Thu, Apr 25, 2019 at 2:46 PM Mike Rapoport wrote: > > Hi, > > Address space isolation has been used to protect the kernel from the > userspace and userspace programs from each other since the invention of the > virtual memory. > > Assuming that kernel bugs and therefore vulnerabilities are inev

[RFC PATCH 0/7] x86: introduce system calls addess space isolation

2019-04-25 Thread Mike Rapoport
Hi, Address space isolation has been used to protect the kernel from the userspace and userspace programs from each other since the invention of the virtual memory. Assuming that kernel bugs and therefore vulnerabilities are inevitable it might be worth isolating parts of the kernel to minimize d