From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS, USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 72CE7C169C4 for ; Wed, 6 Feb 2019 17:54:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3DE00217F9 for ; Wed, 6 Feb 2019 17:54:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alien8.de header.i=@alien8.de header.b="ruhgDjEQ" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730796AbfBFRyK (ORCPT ); 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.