Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp433091pxa; Fri, 31 Jul 2020 16:35:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5bbn6ynKGSPxFgOfcOSKZrH2SrwuNLtyIbpRG6vsw1+6VYrQvUdT83Kpd8DUUO7sBvQek X-Received: by 2002:a17:906:b0d3:: with SMTP id bk19mr6670168ejb.167.1596238521648; Fri, 31 Jul 2020 16:35:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596238521; cv=none; d=google.com; s=arc-20160816; b=K+t4WuFhuUtenffFP32mnWJtUmtuSnKNlIXltTcRausqZr1HBZMbaMLkhFvr+fQBxf tJ4iLl+xMh++0L9qnrNbc83uYPdMaAFVjnCbv0WVR7HakpF9+oBpGhyfx4n3KCeGaHQn FUxdJarFDEDfW+W6j544MxZkfGfdM4Ib/TpzmVS+ah44lXSv4BvBzz0KEfi3wGmWEquw IpJPXJ8jYVOHhvhywjFk4lxxpqCz08EMTLtneZfsK6S7krQEs3r6oqcDmTJ70tQa5IRg xpKC5Izgjd35DaQBWP17qAD9knjljgYkN/JgB5I/UiRI1ZexwZGBHHdmucfAUgPGd040 jk7w== 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=d+nAbn95QFMNyC0khRAqZBOpjDeBLSM9xETqQyODpGI=; b=qEFyOGDhZho/gVlCj0HbEZqf1Fr9hKpgkCInltRXQSnFfcK22nlS9rNz8XFxd9H94w cGDXVW/rUDz9knFhyu1inNF1nGeRJWtjyvQUBlSFCu+9h9iVgAG9kmTlkE7lEpcBb2/s 6s7WP1dssPSiuMfJvKRQC39MhnibxqI+Y38qEitP6j9rcWihkM1RnpdaKcymKlHJrrE8 +/n93rU1MVTbebnBxT9mIp3ZIKSF/YxKRjWTlri/Qp/LHS8Sz64aJuZ6GLsvEl7ACaRq rCNPKS6SCTbN4GDFK2g/o/EZUCoDFnk5Q25j6QUVas4B1wxNDfd/acwBy0tIeA9dcGG7 oTvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=PpKrDqws; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bd9si1327644edb.340.2020.07.31.16.34.56; Fri, 31 Jul 2020 16:35:21 -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=pass header.i=@chromium.org header.s=google header.b=PpKrDqws; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727837AbgGaXdi (ORCPT + 99 others); Fri, 31 Jul 2020 19:33:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727812AbgGaXdh (ORCPT ); Fri, 31 Jul 2020 19:33:37 -0400 Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6C6AC06174A for ; Fri, 31 Jul 2020 16:33:37 -0700 (PDT) Received: by mail-pj1-x1044.google.com with SMTP id t6so4701357pjr.0 for ; Fri, 31 Jul 2020 16:33:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=d+nAbn95QFMNyC0khRAqZBOpjDeBLSM9xETqQyODpGI=; b=PpKrDqwsyi4ds6f6Er7lLKpLa7EmX38iRMCZ4aeOpqqX96i0ozzxrSzMt9kRg9Xdeh pixKEhi1q4w843Mq0Hd2BaJBZavap5ziwh6T1uXf4RwYYu3d0FIHBIm0W5BMQD1I1J70 WU8AU3P0Tfc9+Dto5f8ySIfYQOwT7iMpBIhhc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=d+nAbn95QFMNyC0khRAqZBOpjDeBLSM9xETqQyODpGI=; b=fBOYtSaIZTijqdVdcxVaps7VLK7F1Da47FCOkNXJgTYKA0IevLSkCH1d5oCcChABdz f3xSDoJfK7UUuo4tmbC18f5aIR6PXcHqUSQtBImV5hb+sQpTVy3tRzv6YqOtIniANVhq yv9ovibRtOGf+WLB6F/rwlZpWLKEDGzSmCWzpIzyIk6U0kxK7vSbvdm3ciIkOFdMeawf pIHQpeygDH71VCCq/xDXITi/ggBV86slAMlQp5xIM60ctaRiYVLqNLkWFAQ7+cTmHfzA N7mt+yKVo5UQrdWJvJWFdEuYt/x5UtgvN6T2/2T1CRbt7iygXp5xri2wRZEkdO6teLBh /CuA== X-Gm-Message-State: AOAM532hZScInFMKHGZh6to9fGwV8j77hvtVyitJbx11b8rSAPUlB9JF TVJieGfDllczTODpw2OWQ09ymw== X-Received: by 2002:a17:902:7005:: with SMTP id y5mr5190726plk.342.1596238417500; Fri, 31 Jul 2020 16:33:37 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id m9sm10229027pjs.18.2020.07.31.16.33.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Jul 2020 16:33:36 -0700 (PDT) Date: Fri, 31 Jul 2020 16:33:35 -0700 From: Kees Cook To: Ingo Molnar Cc: Arvind Sankar , x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 00/21] x86/kaslr: Cleanup and small bugfixes Message-ID: <202007311632.54A7554192@keescook> References: <20200727230801.3468620-1-nivedita@alum.mit.edu> <20200728225722.67457-1-nivedita@alum.mit.edu> <20200730180224.GA1203420@rani.riverdale.lan> <20200731092146.GB2956@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200731092146.GB2956@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 31, 2020 at 11:21:46AM +0200, Ingo Molnar wrote: > > * 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? I need to double-check, but I think so. I'm hoping to get to that on Monday. My orphan section series work took MUCH longer than I thought it was going to. :P -- Kees Cook