Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp4432029imb; Wed, 6 Mar 2019 13:16:49 -0800 (PST) X-Google-Smtp-Source: APXvYqxtSmm40N2c1A+aGPurHYMYhVa1p7/TizapvQWfc+/ct/SaXO561OEg8P3GEDMJ3JwXdjxv X-Received: by 2002:a17:902:15a8:: with SMTP id m37mr9292214pla.178.1551907008913; Wed, 06 Mar 2019 13:16:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551907008; cv=none; d=google.com; s=arc-20160816; b=LNxj95FweyboxTnw0c7CxUWm+rZdnRpWF6FHHySZXdlzzhjy/5YCTyXxA6UoFtI5Zt pXBP831N4sBg/exn03A1A3NhYGEKnC6Kjm4TS4AGNK3NwwZ56khDRk/w99j8z7SBugQD sxo7DmgidJIq0UhOrLZc99rt2R1BqBgplen/QALahTipvK4oFMahyF4QzWmdao4BwcnY w+C1afcVvTHU3hooybWc4FIrXiL6NXgkhL6lO9Zd+SUyvAIUNEIYLNAQokcO0Zz3JWOT s2g59YKl4p6xU/zSymktj7o7/FVMBPJh53loxTu+m9riKmf1Rqv9uiewnEbxSMg9ysnP /R3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=dIOGep87u/oC04hHwu3SiS9hdcVziplp0CYZLZVIS/o=; b=t/XGXU6FfIJqS5mAaeCXzI2hlBxCJsQewHMjA7L7wmZlyRh0tNY0ysMGZDg897lDDR WBXc1x14U0gEacYmvtXMmZD2DAzUZbP1zI5gjNC/9PTXBx94XWCEDvkJjzgk8NmMZxnf FOeCLFr0cXAIjgJhVKAkmmNfbBeYwVQusNcJ9e2a3DikbZXKgA6WoxHVL37XMwlReGzk m7J4FA9BGZ1/q6sLIfyBXEJRf2+TJk4KQVVt05KN5WftqIH/CXwGI0PIm8ZGiDvhyvFj Y9pNPHpP0PuKPFLz8F4WMYZEqS9zjnLWIu0Bme7/FugR1l20H5YNGFWv6Mg6I8z3s/PA XcOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kragniz.eu header.s=google header.b=pboDIV7V; 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 w16si2237735pgj.217.2019.03.06.13.16.30; Wed, 06 Mar 2019 13:16:48 -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=@kragniz.eu header.s=google header.b=pboDIV7V; 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 S1726407AbfCFUiU (ORCPT + 99 others); Wed, 6 Mar 2019 15:38:20 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:37695 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725747AbfCFUiU (ORCPT ); Wed, 6 Mar 2019 15:38:20 -0500 Received: by mail-wm1-f67.google.com with SMTP id x10so7140332wmg.2 for ; Wed, 06 Mar 2019 12:38:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kragniz.eu; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=dIOGep87u/oC04hHwu3SiS9hdcVziplp0CYZLZVIS/o=; b=pboDIV7VPb+RW/jlE7PLTwqEsOQ3iz6UvFDXOfy8oK73oWzGhBUKYR3LOBDMbth9X0 nbMXc9Y/F65Kpzf2KxxAKwXZXK61orfiUHt5nRqs67u04DNISgKoTnZ+NIYneIeISH03 SLfjFjeOiAFwDA+/2UAz0AD/T/kY3fkxMipSg= 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:user-agent; bh=dIOGep87u/oC04hHwu3SiS9hdcVziplp0CYZLZVIS/o=; b=lpzhbws/q/GHRV467wMmohebyahyG/gnW7WPsFv1J56Qfwqu/WodoZp3MEuTtxjCvP F69zq++3bQ7jyHgRtVmkpLVuT5rbqQxd0Fhx7xjggfUhmCoyPYHWBjFW3flSxQKGR50j CGHuO3xr3xkLI9ysXcOMo729KEVAyoYA+MX6e7Fchv2htNeVl/loIzqDmKa6AAfN5WHJ 2KJAQTVXbpHod8tNQ5lpibpmWkOPEs88LkrKD0Wrb3CMsX3u3cqghCvkBpQzx07mWk8m 1gnVMqxtHejOS/LXyHi19fYW80MS5YXHbvxjzK0nIrkOCoXn6dGK4UjEq8kjQUHWFMB2 jElg== X-Gm-Message-State: APjAAAW/j5ETOF6DPJxrswTvLYyH+tvM9M7b3XzFnBoueSvkF19nmFd/ b9/Ss7nx3/VhaSq084pZDkrAHQ== X-Received: by 2002:a7b:c08b:: with SMTP id r11mr3216656wmh.133.1551904698150; Wed, 06 Mar 2019 12:38:18 -0800 (PST) Received: from gmail.com ([95.149.160.82]) by smtp.gmail.com with ESMTPSA id 12sm5535744wme.25.2019.03.06.12.38.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 06 Mar 2019 12:38:17 -0800 (PST) Date: Wed, 6 Mar 2019 20:37:26 +0000 From: Louis Taylor To: Thomas Gleixner Cc: mingo@redhat.com, bp@alien8.de, hpa@zytor.com, x86@kernel.org, fanc.fnst@cn.fujitsu.com, bhe@redhat.com, kirill.shutemov@linux.intel.com, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, ndesaulniers@google.com, jflat@chromium.org Subject: Re: [PATCH] x86/KASLR: always return a value from process_mem_region Message-ID: <20190306203725.GA23373@gmail.com> References: <20190302184929.28971-1-louis@kragniz.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Cheers, Louis