Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp2527516ybg; Fri, 31 Jul 2020 02:24:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGudu2DvGEcItWHrFNxh59aexcBSEjDTB4SQG2Jwdn6Kvc6oWmYC3zON+HH9mdYWC83pNW X-Received: by 2002:aa7:c887:: with SMTP id p7mr3046074eds.240.1596187492247; Fri, 31 Jul 2020 02:24:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596187492; cv=none; d=google.com; s=arc-20160816; b=l/2a+1tcxIPqz7XP+guOg3bKO2YO+Kg4J2twSmG1nydu+k8UOeKZ+t4uE+8Ox5ubAU FKdEaoAXNl3S1CmtGoZEposdVF4HOIrWzbDhUcPK+hVHUq1h/iRdYzP5/D9pNKDTBYN0 bsxchO8eOTHno3TboWQeAYVwNdhcBi7iM1BnozniPb7x12QYmaZxw7noKNFEzpEG1ptY DQ3RF5tZF8JXhysEl9leenNKmI1ZoQXu8ry9TYQNzEWl1MdZ/ia8/+gvXwpsBzf4lv1R FzNtozb4YgdZrn5aOJ0D/NqvwllOzOAw1BWeo9k3cdgioqSYVZHNsEGhG+tls3Mrm78/ gwiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=dNrpXoN0P7Mw0lDt7PtL/XatWZHmnShSjWiq3ODdZQ4=; b=ipLoA9v8AcIwc6V4bdKY8cbJRw/0Wy0hOFUw61dxRepbMcVkNDoJxFcKx/8Mi6Ywqk 5YcGaCB2M804/DEVs15zHxnkZhxkHSOlKvqd/3eEcoZ4gXgj3qxGFrnrmQf/l/3EnjfG qkVnvoPti4h8Ays5unl+2SpZQWPwDMcKxbLmOOty5/1k0NhHhSWivowXVcj2N/g6GfkE 0v3QAxNtTSwX+7zarB83WhTeXKX6AjqRzfR2d4iLA+CXUOaGTNgq2uiZqXmTu0TaWiIv IZynuXZxJyaQxW0lpsa/BKA3R1Tc6ncdLhxnXlx2GZFL/+alfCmtxcVB0jUsQ2wPrSPc Fsiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=W8rDMRmV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o9si4922868edq.412.2020.07.31.02.24.19; Fri, 31 Jul 2020 02:24:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=W8rDMRmV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732044AbgGaJVv (ORCPT + 99 others); Fri, 31 Jul 2020 05:21:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732076AbgGaJVu (ORCPT ); Fri, 31 Jul 2020 05:21:50 -0400 Received: from mail-ej1-x641.google.com (mail-ej1-x641.google.com [IPv6:2a00:1450:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34192C061574 for ; Fri, 31 Jul 2020 02:21:50 -0700 (PDT) Received: by mail-ej1-x641.google.com with SMTP id jp10so4192338ejb.0 for ; Fri, 31 Jul 2020 02:21:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=dNrpXoN0P7Mw0lDt7PtL/XatWZHmnShSjWiq3ODdZQ4=; b=W8rDMRmVvDEfiMxVSsc0Ry+ZIZvEJDoUHD/XK9c6dGxB5rJYdWq8Th1/LAZTaiQCYC pb/YQ0gEAv1CNWhjD/qgrbxiq37mnqInHyZrBBtwm6yhaCm0Xbzgd8zet0tKCHLNnYXl ceWYTQy7CfHX1M7tezpJJUpATZQHf7CQ0ve/a2NpksQoGjz+7TbAcputXAhJAEZt7I98 q5L+vJQQXt7y/Bb/RjuFJRRndLkLBxvTDoJ5zgLxaqtASfg+gD4XCxTnYtTPk0X6Us94 vl3UPgV9KpgRa0z9A/JsA5cEWzXqNoc92I06OehYRzF6osx/3WzPsUNVPteJ+gAKn5qE IZuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=dNrpXoN0P7Mw0lDt7PtL/XatWZHmnShSjWiq3ODdZQ4=; b=kUZ7fSsqpeVWxxmJNqxp33sXDMR5shdW9G8qgtFGKakI8LDbj4OS/OuoBlkqDf99cP kAYp49vSB+1fPwUDihIA1/S8xMdKhLYxOGmEW5yod85u0QjxUPP57Qxo37qNeNVu3y1Z asrtjjJenHWyXO6Uu1XmFE6DwZ2gC15LgbgwvnozLKeR0iTnlLdErp4sqjEEsSBWAhxn g3tbdAiYQWjy3jg2bVJqbM5kBwAb88Yd+QFgp3RqbZESvANjCxsL3ClmDKHpYt2SGFKR OK+7849BPM+wf/jXDTe8t/u0tXdTGWVnCo+S1TFOQxFP2KuXnRRTY6XOQBxlAxjvOdvw wxtA== X-Gm-Message-State: AOAM5320lgbo3cr43vEFYFVqpA1BOHjSWKG/jPJOQ2jevWtaNgtDU1Ia h6ZDsFnBMct4xy1NPt0dmGk= X-Received: by 2002:a17:906:1106:: with SMTP id h6mr3165422eja.200.1596187308997; Fri, 31 Jul 2020 02:21:48 -0700 (PDT) Received: from gmail.com (54033286.catv.pool.telekom.hu. [84.3.50.134]) by smtp.gmail.com with ESMTPSA id s4sm8736775ejx.94.2020.07.31.02.21.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Jul 2020 02:21:48 -0700 (PDT) Date: Fri, 31 Jul 2020 11:21:46 +0200 From: Ingo Molnar To: Arvind Sankar Cc: Kees Cook , x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 00/21] x86/kaslr: Cleanup and small bugfixes Message-ID: <20200731092146.GB2956@gmail.com> References: <20200727230801.3468620-1-nivedita@alum.mit.edu> <20200728225722.67457-1-nivedita@alum.mit.edu> <20200730180224.GA1203420@rani.riverdale.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200730180224.GA1203420@rani.riverdale.lan> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Arvind Sankar wrote: > On Tue, Jul 28, 2020 at 06:57:01PM -0400, Arvind Sankar wrote: > > v2->v3: > > - Fix the first patch: command line size should be strlen + 1 to account > > for terminating NUL. Avoid calling add_identity_map if cmdline was > > NULL, though it should do nothing in that case anyway. > > Hi Ingo, I noticed that WIP.x86/kaslr and x86/kaslr both have the v2 > version of the first patch. That has a bug in the cmd_line_size > calculation (missing the +1). Indeed, well spotted. I rebased the affected 4 patches in x86/kaslr and used the opportunity to add Kees's Reviewed-by to the first 4 patches as well. I've zapped tip:x86/kaslr for now and put the whole series into tip:WIP.x86/kaslr, will move it into tip:x86/kaslr for a v5.9 merge once Kees is happy with the latest version. Kees, AFAICS your type truncation and patch split-up review suggestions were resolved in v3? Thanks, Ingo