Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp861361imm; Fri, 29 Jun 2018 07:35:18 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIGKp5IC0bfW6L9hRjmKNorkqDTeUIBVupcPz4nca8z56/fTROHqH3uLgXig1DSGbtKvk8f X-Received: by 2002:a17:902:8206:: with SMTP id x6-v6mr14875692pln.220.1530282918145; Fri, 29 Jun 2018 07:35:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530282918; cv=none; d=google.com; s=arc-20160816; b=GTAWnK45stV1yPiW6LVoToOUvQbwmrenyiSV9aSMGLtFZ3+uWSPV19A8YBXDxFQWvd oOTaA3RCiKxNa3TsDhm7MG3mThN9S8UdXBX4ZPT72+b5J5fpJ62d47DuYSCEzIRbKwOE 0Mv1M4ZuAoYYVUAqOPoSAzp0tqBAX0ZNZTtMe78obS8m/J1cR1+iE2x8kAP9Dnb4nnPF QWTqScv4L3AwNfw6fUyvQqB2fvos1fWqe1smLu0KqymuLK0FrVr6mRRjfwNSaz0CzBGi F1N0gSsdkim9JK3gWXxR5XPjsnmHMkJB67BmwfSdNQnjxQ5r6oKRRZD2j1ubDnKWUpKD SwGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=RM+B2QNNk/Ue6z/Eg6TujfaROvJUA1Ypfp1QqWCC0vY=; b=H001MClF8MHYJo+q0JupUjw8EAs7gz/2vvLlGxxkInxrW0w7P+EAeZkX4eB7xjG3wa 2gu44Ocg3+/t0dTKj21tzDnOpBusuVe+9PrsBt3v1bqsSvk04PBNCwtgO8KYQQvsXTWb otOMRZH4jduES4q1s9xLeupHxYRgxc7c3E/s057lAPXGIoQcheqk2yelzgn0em31viFI OXl+DrEdzWL+Dx4+yd44nzDsR8jIysBUSoHSsduyHyQw9HC+sdbn3gQogW+OionVoqJP OAVRav6VgD2RNKtgOgQVujS3mkIhUNSbCbmglZtK+0gkAOeJGFNknbav5byjPEalTlfi QOWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=crWpzXfy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 124-v6si8087942pgi.425.2018.06.29.07.35.03; Fri, 29 Jun 2018 07:35:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=crWpzXfy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934411AbeF2OSF (ORCPT + 99 others); Fri, 29 Jun 2018 10:18:05 -0400 Received: from mail-it0-f68.google.com ([209.85.214.68]:38040 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753265AbeF2OSD (ORCPT ); Fri, 29 Jun 2018 10:18:03 -0400 Received: by mail-it0-f68.google.com with SMTP id v83-v6so3084839itc.3; Fri, 29 Jun 2018 07:18:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=RM+B2QNNk/Ue6z/Eg6TujfaROvJUA1Ypfp1QqWCC0vY=; b=crWpzXfytXx93lFgzwAXlzq1sMzpdiC+u9w3OOvBm/J9QvMgpixyrQ3DfThmiFbTeu W++VulriWhcjIhk5K2GlLikT8TWbLgK1gG/28ZvA7xJEYPM/VzMKyQSSRWfieTk38UqK wmwZ65JZ40SaUXzjXIviAChyHVFvcVXmuqosg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=RM+B2QNNk/Ue6z/Eg6TujfaROvJUA1Ypfp1QqWCC0vY=; b=J11vlF3hoyTzCaGeJy+MnRJm0lGBzWaPr8fPSN6r5cLar7jvHDW7n+HTuCvX7bRSLJ XFuXCsFc2hfhRjBpZBjTYA5QBaVJr8irlUVm7ZxrSBbyPqmtJC/ho9nFEE5DC5MSL1YZ 19iLVNd6nQ35QxDsGOVeT+CIxQj+M0ERfJdWFGEQE1dKz54tE5T+zowbYbvCPU48BiMT 5fs2y3LqVtxpxwqQkbKk6S8b5jUo9zWrM8kOrelTfurdTMyw7zwbldnBX49bQ0mKUlIv k3dtK3RgsMp0rDIbT9SKG2NqxnWDmoa9vyWsQ9NTdWWwhy/O/geWAwJ/T03f+CGM/TOy xN/g== X-Gm-Message-State: APt69E2z46C/EzdA7NTqTvQFIQpwZiZKYLZbBta8gmrHg3RfS8E8jwJC wRBxG9Y6xue2O+2fFKsZtgySaWyGVbPgfUYtxcA= X-Received: by 2002:a24:e0a:: with SMTP id 10-v6mr1218648ite.1.1530281883154; Fri, 29 Jun 2018 07:18:03 -0700 (PDT) MIME-Version: 1.0 References: <20180628162359.9054-1-mathieu.desnoyers@efficios.com> <9200ED2A-AE4B-4094-81C9-E92240B4840F@amacapital.net> <1706339668.9644.1530281144560.JavaMail.zimbra@efficios.com> In-Reply-To: <1706339668.9644.1530281144560.JavaMail.zimbra@efficios.com> From: Linus Torvalds Date: Fri, 29 Jun 2018 07:17:52 -0700 Message-ID: Subject: Re: [RFC PATCH for 4.18 1/2] rseq: validate rseq_cs fields are < TASK_SIZE To: Mathieu Desnoyers Cc: Andy Lutomirski , Andrew Lutomirski , Thomas Gleixner , Linux Kernel Mailing List , Linux API , Peter Zijlstra , Paul McKenney , Boqun Feng , Dave Watson , Paul Turner , Andrew Morton , Russell King - ARM Linux , Ingo Molnar , Peter Anvin , Andi Kleen , Christoph Lameter , Ben Maurer , Steven Rostedt , Josh Triplett , Catalin Marinas , Will Deacon , Michael Kerrisk , joelaf@google.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 29, 2018 at 7:05 AM Mathieu Desnoyers wrote: > > What I'm worried about is setting regs->ip of a compat 32-bit task to > addresses in the range 0x100000000-0xFFFFFFFFFFFFFFFF. Well, they won't have anything mapped in that range, so it really shouldn't matter. Linus