Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp343408imm; Mon, 2 Jul 2018 12:32:46 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcQfXHLbcS+62voCcnk1Yh5CI4zxPrAcIcbOM8YMixoqQPqnVEknI+2DBzx/0ryej+JyhGJ X-Received: by 2002:a17:902:bc49:: with SMTP id t9-v6mr18873767plz.116.1530559966261; Mon, 02 Jul 2018 12:32:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530559966; cv=none; d=google.com; s=arc-20160816; b=ESpmWw1C8Bn5v68Nsa9g4Mh6rR6zbSET3sGGOcdMxfpaBtseTvmdW+4olu8KXbLcmd MpTn2WKvPikr7LvlOdglQiQCRig6C5BhH2KQjBqIfIAwMceltQHGRYG3qHvLEhwvQay3 KQEmOWFih+mLpIocD1bF/UpqxfL6rpFFxfyqHrPGMsSTqhV0JKLXFVl8i+S6M0r68RVR w59mUjKQYKocM7TjXKWt2zWKzhCAvkZzEcHb0gRrps5wamvn932JekKe4B4gqII1phip E6Riyd9WibfJHUscdLe/SFp8zV6iY5fFPh50aNkzI1H29zjlDKkesW0+HhanrcRU/h7L Xi6Q== 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=PA6fbHKUMz0HyB7Bklan1B17cB1qjPP71a/deWVQ168=; b=AzV7SbYEX4dyF27CJjkQt/vzvUQReOYQ52ra7BXdVwL7AKWdggP2iTZkNh4917NbPX zrNPju7kAayguVcxmKuEYxMR9yO3LUoT3U0bZywJzG4sGqmxIMWzHR4uxCXjo9FL4kK+ RbLFSFdOIfxwiUY8Fut8kAhs2PfVZ2imu0Wdj4ufysyhCGNgzG5e8AT4NZ2mc+qQi58F Mu1Qzw5nPadMmIPD4WV5swaBrty/DS4nS1+/1P2+OP2t0Dqz11w3yrEvcpEVe0Eo48rv IfGsNP8LzLM2G2n5EqHO3wmmHzNX1PGXBvTLlHmwltOhnBQQqsVxMp/I2W2ZxT+e6jc0 SGBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=DAqYNOSO; 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 o6-v6si16241382plh.158.2018.07.02.12.32.30; Mon, 02 Jul 2018 12:32:46 -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=DAqYNOSO; 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 S1752753AbeGBTbu (ORCPT + 99 others); Mon, 2 Jul 2018 15:31:50 -0400 Received: from mail-it0-f66.google.com ([209.85.214.66]:50241 "EHLO mail-it0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752167AbeGBTbs (ORCPT ); Mon, 2 Jul 2018 15:31:48 -0400 Received: by mail-it0-f66.google.com with SMTP id u4-v6so13696015itg.0; Mon, 02 Jul 2018 12:31:48 -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=PA6fbHKUMz0HyB7Bklan1B17cB1qjPP71a/deWVQ168=; b=DAqYNOSO/BC6yimakv/Uqhtly7Czgp+rrdeK/j9+Tekxgxdvg81fSMOVVOuOvCddCN YicAXiR8ufq4D++xeqy/XFOjsyObMaNtBjdHzN9dRuTR2WzHuFJtQzJ8xGMxNZIytd6W m7BOB6Jzcb0+FD7TEG1CGOqyDkkXE24ubDdvs= 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=PA6fbHKUMz0HyB7Bklan1B17cB1qjPP71a/deWVQ168=; b=qnulf1XP8VQa3256J8Szj/YlmXUvQIOQu7tRPDSx2j3CcL2NRYpprF3hw5gKqYLtyd MFSYH9wcPwhXzTVHs7i2+gBG01LpsDahp8JeqXUn3TabZqsiFIMFsfnnDP9ay3v7kNqY 56oeIQ9g9D2zi1+9xyPyR+6jYkXyLV2BPWxSMJxql4kS43mDI3XC5OHJIZLzgpFh7UnT ImZca0VEMbNPG0rD/Axbq+dv2UiZGV6azJP760otM4/ooFgfKHLoJ987nJvOKn18vjyP +90egv4KrJMTT2Ya1TPig0D/zB18+qrC/y+UDPsS+XVxwhBCPOfTD4pijkIOcuxfMad7 kwAg== X-Gm-Message-State: APt69E1K3SXNqpuhmq13LfZLneA1E0/tcUBVFgpm6BZj4tD7w3Cp8RPL LTM/vMIPKOeO0lfcIfr5A3mOJXZ0OUQW+1pnD8g= X-Received: by 2002:a24:94f:: with SMTP id 76-v6mr2262832itm.113.1530559907950; Mon, 02 Jul 2018 12:31:47 -0700 (PDT) MIME-Version: 1.0 References: <20180628162359.9054-1-mathieu.desnoyers@efficios.com> <247789350.9741.1530288432573.JavaMail.zimbra@efficios.com> <184287091.10022.1530301738384.JavaMail.zimbra@efficios.com> <1527399163.10673.1530541966296.JavaMail.zimbra@efficios.com> <84003252.10754.1530558015813.JavaMail.zimbra@efficios.com> In-Reply-To: From: Linus Torvalds Date: Mon, 2 Jul 2018 12:31:36 -0700 Message-ID: Subject: Re: [RFC PATCH for 4.18 1/2] rseq: validate rseq_cs fields are < TASK_SIZE To: Andy Lutomirski Cc: Mathieu Desnoyers , 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 , Joel Fernandes 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 Mon, Jul 2, 2018 at 12:02 PM Andy Lutomirski wrote: > > Works for me. Linus, any objection? I think the 4.19 stage may be overkill, but I don't hate it, so no real objections. If the main reason for this is that we silently clear the upper bits when returning to compat mode, I actually think that a better fix would be to just fix that. We shouldn't silently ignore bogus data in the return path. But I don't care enough, I think. Linus