Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp1492508img; Tue, 26 Feb 2019 23:41:08 -0800 (PST) X-Google-Smtp-Source: AHgI3Iaozr33g/qqVHbG6BFskoJpVWLUjqVuKg4ttKi4Nk1lGtQkss8onOQkFa0Byi0fsb3kUwly X-Received: by 2002:a17:902:22f:: with SMTP id 44mr720549plc.249.1551253268540; Tue, 26 Feb 2019 23:41:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551253268; cv=none; d=google.com; s=arc-20160816; b=i/vtgzgS2z+4pTDMAxr12LKMcXjfLZhdZvLzBzlmZAMm3+LXr9BvFql6dbkQsRDb0N /rEzNWXsC2v1N0XifzJN5gzCMZPtFS9hpJH1UvlxeAcboMm+eMFsGxYNjjosOPu5j30U DIVboWv8LCV1Yls4EYy9dKyAejBpIwkC4JXVrRGfNkm+JDzltZravJM/r2xYQn4AJy2J H7F5YtYFZNTfy7Hoxr4YZVFVSnXuqF9nXnIyvN9uGbpSc0NoulTBQAIrEBpJ2Ta+z6cC y2JdupcY78GHRinPfbD97BkKi3UE9nqpi2OpZrSPO6iO9H+12AEhRQFLNGVxhchQG56I TuVQ== 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=L7TXJkiBYmuZkTpf7zWCrqRcXXFm6Ob4r7zqfQrv5cg=; b=aqhkNsZXMPZSkgx0lY4Y85MqGHVD8QpVXrvmjJi+Be/3LGv8CPujn3P8vtECQqJ/kA OlnAJNMntj8MyYhrI/Wu3Olpy251psPlpRlwfnrNWbbr8kNcJvwzMc29oQzfusR+ZDSm XkbwaPp78/G2nAz5ytZc4tDoygmt8dRwnSai4i2pnmrBsU4YkekUwEea5y7JtYans/mV 9aHVG/Rv9E5IlndEZKeq2SvcnfVUK7rm3xmXBzxLX4IGxJFixpN7i1k932n0WX2rA+ni HoNL3t4SPFwHmNevZZ5xns5rZEo9QqrWTNzKVa5lxI4hwgfUBYnz0ZDj5qMvMNY+j+j5 fw4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b="W/NDbkVF"; 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=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w5si10676251pgr.93.2019.02.26.23.40.52; Tue, 26 Feb 2019 23:41:08 -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=@alien8.de header.s=dkim header.b="W/NDbkVF"; 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=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729264AbfB0HkN (ORCPT + 99 others); Wed, 27 Feb 2019 02:40:13 -0500 Received: from mail.skyhub.de ([5.9.137.197]:37278 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726702AbfB0HkN (ORCPT ); Wed, 27 Feb 2019 02:40:13 -0500 Received: from zn.tnic (p200300EC2BCDB200B0CF70802C24D707.dip0.t-ipconnect.de [IPv6:2003:ec:2bcd:b200:b0cf:7080:2c24:d707]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id B0F571EC05D6; Wed, 27 Feb 2019 08:40:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1551253211; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=L7TXJkiBYmuZkTpf7zWCrqRcXXFm6Ob4r7zqfQrv5cg=; b=W/NDbkVFAsL+nNcPrq8rq6HGqfMarxINxZJjUgIpvmRSgZCwyjMMBB9zaK7CU03ZBVjAuE AiyO4rOsuYlv2VSz0bJLUfuEJSxDt5ig4koQj2JeHSwL1A+7SKzQUIcSVYozWs0pqCt8+j eKhT8gdmvn7jg5NYC5JaN+ZkoEEToRE= Date: Wed, 27 Feb 2019 08:39:58 +0100 From: Borislav Petkov To: Baoquan He , Kees Cook Cc: Pingfan Liu , x86@kernel.org, Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Will Deacon , Nicolas Pitre , Chao Fan , "Kirill A. Shutemov" , Ard Biesheuvel , LKML , Kees Cook Subject: Re: [PATCH] x86/boot/KASLR: skip the specified crashkernel reserved region Message-ID: <20190227073958.GA1786@zn.tnic> References: <1551081596-2856-1-git-send-email-kernelfans@gmail.com> <20190225094522.GC26145@zn.tnic> <20190226104653.GB14836@zn.tnic> <20190227013034.GP14858@MiWiFi-R3L-srv> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190227013034.GP14858@MiWiFi-R3L-srv> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org + Kees. @Kees, you might want to go upthread a bit for context. On Wed, Feb 27, 2019 at 09:30:34AM +0800, Baoquan He wrote: > Agree that 'crashkernel=x' should be encouraged to use as the first > choice when reserve crashkernel. If we decide to not obsolete > 'crashkernel=x@y', it will leave a unstable kernel parameter. Is anyone even talking about obsoleting this? And if anyone is, anyone can think a bit why we can't do this. > Another worry is that KASLR won't always fail 'crashkernel=x@y', > customer may set and check in testing stage, then later in production > environment one time of neglect to not check may cause carashed kernel > uncaptured. > > IMHO, 'crashkernel=x@y' is similar to those specified memmap=ss[#$!]nn > which have been avoided in boot stage KASLR. So my worry is that by specifying too many exclusion ranges, we might limit the kaslr space too much and make it too predictable. Especially since distros slap those things automatically and most users take them for granted. But I might be way off here because of something else I'm missing ... -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.