Received: by 2002:ac0:8c8e:0:0:0:0:0 with SMTP id r14csp901139ima; Wed, 6 Feb 2019 10:09:18 -0800 (PST) X-Google-Smtp-Source: AHgI3IY5gUkOhz9XbOtsBeHTF2a2SJFsXS+g7Ka/MctH0TlOx35/D9TfZb4M87nEo4fyOEZd5A8o X-Received: by 2002:a63:d810:: with SMTP id b16mr5746322pgh.220.1549476558307; Wed, 06 Feb 2019 10:09:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549476558; cv=none; d=google.com; s=arc-20160816; b=tIGGraX3N1lUUibLZV/ceKxoFtI3z26l1/dFjSI/xY10GU+2WGGouRdKzZ9ag0MlYw woIvQn/JDZ5OIOfhbreG7UZWSZk5jD372cWYkb66cU7KNCrma0ZaB3pexNJtFlU/4vhD reip2JBWpcKbFlypAo89rRYMHh04jZkETPPSJnigCBY6MnOThc2W8xl8koFjWRLuCZZt Ryx833GToV/KXJNjN6Z646b6gUqk5s3vt/aorg6KOLLItT0RsA3947v/8D8eLcjQYsRQ Ia4L6n+aN7vtZz9VVYeGmvydxUEn4Iw85TpQqt53yAPSnGmU58v5MdCbK6LrgBSAzLHh SNQw== 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=IPCia0Z97GpfiVP2x9t4M7hbu3YYYO85N5VWc6T8Dec=; b=gKTK4OfjkEjsNY49EQirhoLVC5gGkaeE6Ca7D+IaqZ3DIQb1gFy4AnYG++Bg+ZJzdM f+QpqfXZfFAHZAkbXa4zezItG2jkv6hdkFokIwxikdzYMRw1DgLcLjRLIUsMQmcUiegU BSLnWcL9SHMIO4KtcC/FKdbwryaUCMf/Wah/k+1slfJLcHMEDJW2FmzxuME1RFIGvFDe gcGtbQhF027H6Ga0e1L/A/L6ZXaXN5fJHDX6AzdY0wl4poarezUdaqKsNRMz9JyLXCEv rZt4g1J5KE9CqffqJWRQHggopT1+JWDWJO98G4WRRlR7oeSIFYswr0tj+4vPx9yKGD5l 4+iQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=ruhgDjEQ; 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 l8si6195771pgm.250.2019.02.06.10.08.56; Wed, 06 Feb 2019 10:09:18 -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=ruhgDjEQ; 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 S1730638AbfBFRyK (ORCPT + 99 others); Wed, 6 Feb 2019 12:54:10 -0500 Received: from mail.skyhub.de ([5.9.137.197]:53290 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726270AbfBFRyJ (ORCPT ); Wed, 6 Feb 2019 12:54:09 -0500 Received: from zn.tnic (p200300EC2BCEF100C1C850073B25A4AC.dip0.t-ipconnect.de [IPv6:2003:ec:2bce:f100:c1c8:5007:3b25:a4ac]) (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 F00E61EC03D8; Wed, 6 Feb 2019 18:54:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1549475648; 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=IPCia0Z97GpfiVP2x9t4M7hbu3YYYO85N5VWc6T8Dec=; b=ruhgDjEQOFdztiTMC79z+L7d94lEjsTQYv6BKnA+5mIDEnGxtcum9J0A+3ExXoJ+YlIqXS zU5B6AtkpGWJ+5CZ30Rs9u8ObTAQ1qbBlHHejb9/8/++xKLIwog/pdvrrQWJwTqI3wRtbJ cbeYqusqwz6BbjxmFfZS23kJUFm/NAg= Date: Wed, 6 Feb 2019 18:53:57 +0100 From: Borislav Petkov To: Kees Cook Cc: Julian Stecklina , Julian Stecklina , X86 ML , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , LKML , jschoenh@amazon.de, Dave Jiang , Baoquan He , Andy Lutomirski , Peter Zijlstra Subject: Re: [PATCH 2/2] x86/boot: increase maximum number of avoided KASLR regions Message-ID: <20190206175357.GG7314@zn.tnic> References: <1548866403-13390-1-git-send-email-js@alien8.de> <1548866403-13390-2-git-send-email-js@alien8.de> <20190205144441.GS21801@zn.tnic> <20190206141753.GE7314@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: 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 On Wed, Feb 06, 2019 at 03:29:06PM +0000, Kees Cook wrote: > I'm fine adjusting all this to do things better. Ultimately, we're > still walking two lists to process their intersection. I'm wondering if we could start with a single range including all memory and then keep exluding until we're done and then feed those remaining ranges to slots_fetch_random(). So that mem_avoid[] is not needed anymore. Probably need to look for the devil in the detail first. > Eh, it's just in the boot stub. ;) They always say something like that. :-) Thx. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.