Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1011096rwd; Wed, 31 May 2023 08:18:58 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7pS+q3FFjAbG4lRgOea/rdHrX3y6edxVAv/xzLhVpfkzwrzKAS2XBZxGOnznw0SMi3hvkk X-Received: by 2002:a05:6a20:a39f:b0:10b:5abf:6f0d with SMTP id w31-20020a056a20a39f00b0010b5abf6f0dmr4506398pzk.40.1685546337831; Wed, 31 May 2023 08:18:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685546337; cv=none; d=google.com; s=arc-20160816; b=v/MZwAPmwFH8xmylijVNFyXAEOUQLR0QompqGX2OT+gacAnLaYfKhjbwo+3JYutkDU nrfHRW45H59uZsbIKk/sygSSkVHUPElksa/o1oc3e7/Jq0i10PIp2lS/a/FApfXrYjM5 wxgWT+p955Ihr/w7vrtb0ETdCzJW+8eNmkGFdQyotNaMhBFnsoTX3O+aymflMVzgtJnz TIaOxG3/hA7GIaYigrkaEQgKoxAvF+bJr1OmfvYwVhwI7Be81qgKrBwSbFWJynxXNIga Ni3sLfPnsGCXxswKI/65LZPnXGL7K7rds6IhX/wGpk3aRxUa76iaMcyB6ME4TRbNrRkW rr2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=UVltXgwItraV4FGz/uii8cqWK65XtkelAgQIafLv8C4=; b=f67jBp4PK32A9MHe9/BtmeV4Ng7RFXZkBRhg3rfqO0RXE+QgUnJeB4IcmBtk/h90IJ qLfUg6Nzxs9HmCT9D61e4tS/cuB2MX4mtEiRwbEBzGXl9BpG3rCiHIj4YAbynR+De8tu +fDddOi+gIVrhxfFu3oEteuHB+EtLI4+6adl4C00DkYE+07jwIEdbHhYftR4iRn/SiuP +36xTi42pMEeph+5YDa1UEkkuWRRZAPibNygGPD3fUrKuyqlNsTjTIH/NO+cLkU0OkU+ Yx0x7pd+jzALxdhAs/UeaNmUyzV51UI4Q3e8q2eVa26Kwokcvz1TmvtxLIw4Ild31iAO j9Og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b="K/IKmt2r"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bt25-20020a632919000000b0053420f48378si1038252pgb.829.2023.05.31.08.18.43; Wed, 31 May 2023 08:18:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b="K/IKmt2r"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234128AbjEaPGe (ORCPT + 99 others); Wed, 31 May 2023 11:06:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234126AbjEaPGM (ORCPT ); Wed, 31 May 2023 11:06:12 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E60A10F6 for ; Wed, 31 May 2023 08:05:51 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 134E321904; Wed, 31 May 2023 15:05:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1685545548; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=UVltXgwItraV4FGz/uii8cqWK65XtkelAgQIafLv8C4=; b=K/IKmt2rCWwSHKdy7rqG+x1QcCKSGfgu3XKP8+pbZnkI8TPql4dumptHxrSxrPFbM361lQ FrdC9u3ozOdtpC5ZlitCmICkbK7UZQhRKzYRE6aEorw//ck3iq9LEWphXypYlHGNlyE6Fa Qnj53T9DM4Cf2JLe3VvA3b8cLUKMgaQ= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id DB43613488; Wed, 31 May 2023 15:05:47 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id MHHQNEtid2TMPQAAMHmgww (envelope-from ); Wed, 31 May 2023 15:05:47 +0000 Date: Wed, 31 May 2023 17:05:46 +0200 From: Michal =?utf-8?Q?Koutn=C3=BD?= To: Andrey Ryabinin Cc: Dave Hansen , the arch/x86 maintainers , LKML , Alexander Potapenko , Andrey Konovalov , Dmitry Vyukov , Vincenzo Frascino , kasan-dev@googlegroups.com, Kees Cook , Thomas Garnier Subject: Re: KASLR vs. KASAN on x86 Message-ID: References: <299fbb80-e3ab-3b7c-3491-e85cac107930@intel.com> <20230313094127.3cqsnmngbdegbe6o@blackpad> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="4ycvjxkeevdduqu4" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --4ycvjxkeevdduqu4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Mar 13, 2023 at 02:40:33PM +0100, Andrey Ryabinin wrote: > Yes, with the vaddr_end = KASAN_SHADOW_START it should work, > kaslr_memory_enabled() can be removed in favor of just the kaslr_enabled() Thanks. FWIW, I've found the cautionary comment at vaddr_end from the commit 1dddd2512511 ("x86/kaslr: Fix the vaddr_end mess"), so I'm not removing kaslr_enabled_enabled() now. Michal --4ycvjxkeevdduqu4 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQTrXXag4J0QvXXBmkMkDQmsBEOquQUCZHdiSAAKCRAkDQmsBEOq uVkZAQC9Jm2mWgPAUPqqgO0NNrvFotzE3yEA2+E+A790k74cFAEA3oDkSBjN98F6 5BBgyox4635j0nByjmoVA5lwtCBxhwE= =FH1X -----END PGP SIGNATURE----- --4ycvjxkeevdduqu4--