Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1671486 > unrolled thread

Re: [PATCH v10 3/3] arm64/syscalls: Check address limit on user-mode return

Started byCatalin Marinas <catalin.marinas@arm.com>
First post2017-06-21 10:20 +0200
Last post2017-06-21 16:00 +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.


Contents

  Re: [PATCH v10 3/3] arm64/syscalls: Check address limit on user-mode  return Catalin Marinas <catalin.marinas@arm.com> - 2017-06-21 10:20 +0200
    Re: [PATCH v10 3/3] arm64/syscalls: Check address limit on user-mode return Thomas Garnier <thgarnie@google.com> - 2017-06-21 16:00 +0200

#1671486 — Re: [PATCH v10 3/3] arm64/syscalls: Check address limit on user-mode return

FromCatalin Marinas <catalin.marinas@arm.com>
Date2017-06-21 10:20 +0200
SubjectRe: [PATCH v10 3/3] arm64/syscalls: Check address limit on user-mode return
Message-ID<tUJ1N-3E2-35@gated-at.bofh.it>
On Wed, Jun 14, 2017 at 06:12:03PM -0700, Thomas Garnier wrote:
> Ensure the address limit is a user-mode segment before returning to
> user-mode. Otherwise a process can corrupt kernel-mode memory and
> elevate privileges [1].
> 
> The set_fs function sets the TIF_SETFS flag to force a slow path on
> return. In the slow path, the address limit is checked to be USER_DS if
> needed.
> 
> [1] https://bugs.chromium.org/p/project-zero/issues/detail?id=990
> 
> Signed-off-by: Thomas Garnier <thgarnie@google.com>
> ---
> v10 redesigns the change to use work flags on set_fs as recommended by
> Linus and agreed by others.
> 
> Based on next-20170609
> ---
>  arch/arm64/include/asm/thread_info.h | 4 +++-
>  arch/arm64/include/asm/uaccess.h     | 3 +++
>  arch/arm64/kernel/signal.c           | 5 +++++
>  3 files changed, 11 insertions(+), 1 deletion(-)

For arm64:

Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>

[toc] | [next] | [standalone]


#1671688 — Re: [PATCH v10 3/3] arm64/syscalls: Check address limit on user-mode return

FromThomas Garnier <thgarnie@google.com>
Date2017-06-21 16:00 +0200
SubjectRe: [PATCH v10 3/3] arm64/syscalls: Check address limit on user-mode return
Message-ID<tUOkO-6Mr-3@gated-at.bofh.it>
In reply to#1671486
On Wed, Jun 21, 2017 at 1:16 AM, Catalin Marinas
<catalin.marinas@arm.com> wrote:
> On Wed, Jun 14, 2017 at 06:12:03PM -0700, Thomas Garnier wrote:
>> Ensure the address limit is a user-mode segment before returning to
>> user-mode. Otherwise a process can corrupt kernel-mode memory and
>> elevate privileges [1].
>>
>> The set_fs function sets the TIF_SETFS flag to force a slow path on
>> return. In the slow path, the address limit is checked to be USER_DS if
>> needed.
>>
>> [1] https://bugs.chromium.org/p/project-zero/issues/detail?id=990
>>
>> Signed-off-by: Thomas Garnier <thgarnie@google.com>
>> ---
>> v10 redesigns the change to use work flags on set_fs as recommended by
>> Linus and agreed by others.
>>
>> Based on next-20170609
>> ---
>>  arch/arm64/include/asm/thread_info.h | 4 +++-
>>  arch/arm64/include/asm/uaccess.h     | 3 +++
>>  arch/arm64/kernel/signal.c           | 5 +++++
>>  3 files changed, 11 insertions(+), 1 deletion(-)
>
> For arm64:
>
> Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>

Thanks Catalin

-- 
Thomas

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web