Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp4445792imb; Wed, 6 Mar 2019 13:39:55 -0800 (PST) X-Google-Smtp-Source: APXvYqw5snTZ7JjEoRHtQhtGKPnp0bkudvphpIodnYwgRl1Rv08OPMZICXosM7yB02pyzjb6n6m+ X-Received: by 2002:a63:ff59:: with SMTP id s25mr8168951pgk.117.1551908395024; Wed, 06 Mar 2019 13:39:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551908395; cv=none; d=google.com; s=arc-20160816; b=rfjw/GdCf642WGERLbTbgoV3QMfR7bDFRO/n+oWPNPGICETJC7z453x2AbuYxRO5oS BfFCuvJkzbtN1opVhcTznQ3UsPFJ9PdzSafb2A2dywmBFAlgBVguZS+GM7ciSftJoL71 PQpk8rnXCmpzo8b1RDYlUS7jmxbGA1ndPAMxBSnJgaRUMhO4X2NxT+hlMUoJ8h5EO97e MDnATwsFcFSoEVGFtPd1jKEOKmfpXar2ZH6exAynoLOwT4pmHZMUVRH4hzh8cTpeu0HL 6Xjqb5Fat+P+pv95DWGRjdAwwn8tykzs+SXXu/pc5aL6dCWqgpZM7xLQRYn3/d+DxTA5 sd1Q== 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; bh=Y2vf15Ic7g8xBFgvPGfR2CXL2T3Ehbl3TcB+bdjrhEg=; b=JibERJNvJLlAA2PuiR4uXnE+baopsm2h0auj6YE0sPTHpJ1zUw6298/sUr1sBWou66 +EjEUIZg5ZXGjIpcByk5feu9TzMKUueyHp4QyvnKJjNFDu4lHqR2ASh8qD5UlvI1vh2s urbGirDzWVLDyYil+f3Ui8h8YmZgpqSmGap4XCmfB4AN4icUmwa1Sl3ZIY0te5e9Pwcf CBZ4PazjdtAv6l88UjQBb7A2HRl6pzs+oDGnsdUE+Lt+7CbcQPK1xhHruAfhydbiEQP1 bCsiIWa7Vipr4EK1KTBG0BS9xv2f02zDe8OHtGLmxsFnWYY53Qmi6SC+n00mDpxJnyXt ycNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=uAch6plV; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d5si2404816pla.312.2019.03.06.13.39.40; Wed, 06 Mar 2019 13:39:55 -0800 (PST) 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=@google.com header.s=20161025 header.b=uAch6plV; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726270AbfCFVhm (ORCPT + 99 others); Wed, 6 Mar 2019 16:37:42 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:42205 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725747AbfCFVhm (ORCPT ); Wed, 6 Mar 2019 16:37:42 -0500 Received: by mail-pg1-f193.google.com with SMTP id b2so9437475pgl.9 for ; Wed, 06 Mar 2019 13:37:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Y2vf15Ic7g8xBFgvPGfR2CXL2T3Ehbl3TcB+bdjrhEg=; b=uAch6plV3eeCsqHxLzYCUc3rWWKRH/c7zONsAHDXIlc9wcj+QyMY0lfWV5lJ2iE4HA HhoL8/B6sXWy5DY1F3CLyM5UYObNpInaIyIMdSvP6mVLzo0mpij/rWDZV5r7fCKpgpa2 UU1uOzLr/Kg7P5i6HvuSEBq0+6h90GM6rIe3xwpG+NYoBaSrp3eif2jcPuI0xEc3fjCR l79CPQTO9tI2Zx9I+qLWvz2osi5SCNKnsMeNhWbKSfil2wbrmYtV6fYmk3cPv14OXWjU HxKYtYrMykMhs4T2Hyb+UfveATg1jZmgyxIU947gj+xmVfp7yOKF7wtOaZmRtKLCairG KWOQ== 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=Y2vf15Ic7g8xBFgvPGfR2CXL2T3Ehbl3TcB+bdjrhEg=; b=Y9rFrdx4NxPLW7dBtwNe8oc8V10fsBX0uRXDwGZUKX4dWi8Aa1CkSHtu5Qg5BSlun3 o3aN2rDfAh7c/SAgMFzlQfNrOZFCcAYdohnCnXlixTrdtiK732re2Pv7CE12rudSKWIb n2/SVrNfYPdSbll8wAkgJ65UvZpf7/s7pNz6/TMnQvlcKE4PS4s7Lf+5ElafZ/jwTEnC yXk4ivdMwKVoEGzv26quE8V+MVsGJR/7/5sPWB/g2zY4UcVJ8qkRwSxbipYF5m8poZAk exx9ptFfivmiRTlukBTSSRdNUlj2hh+J0PqCCSRt26AKzub7jIBAfOsWHJ1fjQ34Rikb SSSw== X-Gm-Message-State: APjAAAUZq0o+EGxF+YrRyq2Pw17EX8lL7yH0ceVZeC+/y4HqxvPBF2jV xtz6qjjELKv3IRaH3cu3u+4O3HnZU+b/VOfZi4JXSQ== X-Received: by 2002:a17:902:8e82:: with SMTP id bg2mr9136064plb.217.1551908261353; Wed, 06 Mar 2019 13:37:41 -0800 (PST) MIME-Version: 1.0 References: <20190302184929.28971-1-louis@kragniz.eu> <20190306203725.GA23373@gmail.com> In-Reply-To: <20190306203725.GA23373@gmail.com> From: Nick Desaulniers Date: Wed, 6 Mar 2019 13:37:30 -0800 Message-ID: Subject: Re: [PATCH] x86/KASLR: always return a value from process_mem_region To: Louis Taylor Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , x86@kernel.org, fanc.fnst@cn.fujitsu.com, bhe@redhat.com, "Kirill A . Shutemov" , LKML , clang-built-linux@googlegroups.com, Jon Flatley 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 Wed, Mar 6, 2019 at 12:38 PM Louis Taylor wrote: > > On Wed, Mar 06, 2019 at 09:02:47PM +0100, Thomas Gleixner wrote: > > On Sat, 2 Mar 2019, Louis Taylor wrote: > > > > > When compiling with -Wreturn-type, clang warns: > > > > > > arch/x86/boot/compressed/kaslr.c:704:1: warning: control may reach end of > > > non-void function [-Wreturn-type] > > > > > > This function's return statement should probably have been placed > > > outside the #endif, so move it there > > > > > > Link: https://github.com/ClangBuiltLinux/linux/issues/360 > > > Signed-off-by: Louis Taylor > > > > This lacks a > > > > Fixes: commitsha1 (".....") > > Fixes: 690eaa532057 ("x86/boot/KASLR: Limit KASLR to extract the kernel in immovable memory only") > > Would you like me to resend with that tag? Looks like it was added. Looking at https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?h=x86/boot, it looks like part of the commit message got cut off. `#endif, so move it there` is missing? -- Thanks, ~Nick Desaulniers