Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp173174lqp; Tue, 11 Jun 2024 19:46:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU1wUZRfOqvX7dVb99KrOfos2b9rOJcTfqk4np/T7HSggO3lSkIj5kfvNRiklMNTiB/YuLUn5LI9xe2ILBPNL7uKwNH3GELhTr0BBEXKQ== X-Google-Smtp-Source: AGHT+IEGsNT0XRr2pwvYr7zfshOc5qoF73LLOR9x9KK7B/YzoSdbtilLnlZSL4tA+btmKDTVyStA X-Received: by 2002:a17:902:ce8b:b0:1f7:90e:6d47 with SMTP id d9443c01a7336-1f83b6b62cfmr6486895ad.25.1718160383355; Tue, 11 Jun 2024 19:46:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718160383; cv=pass; d=google.com; s=arc-20160816; b=IuFl2Z40Y41X0bZyCubkDs9Oj6P10yP3/KPhCM4NNzNZx3+GSjhSHDY8j1xNQM931+ dJ4keWONHxUj5of+zmsEAXjMBdM1g2JKzHDFidmPZ/QvqBFD7KBFLvY8H7KbeU4apPeY uBHQN0ej3KYVUfZY3H8HSjwrjpy6ux+wyx+hdagkpOldfyye2IWdwEqs9cGhbiwbREEH Ir6TE2/0I7fwJLCzX6fifR2hfRCz2ypi5YBxVRI9c3RbctFCAWUddRBfQHzXIBfDOCGP 6K8Toecv6aPyMVZkaqEnaM6knf9s0ByNg/h0YBsHQVnnLgNvf/ZRelhvS4FaISnBLU9x 1PkQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=9RGijYiUo74IIjvaHQg+1PFIN69SPEnYZMHeEiY1yC4=; fh=92OBtp61OurCe/mjvkBnyzOh5YyxmCoAGXoN92C51Lo=; b=Zs+1FU6Ms9r+J3/wTlFOB6wL0G+O4yTVlypS9x+LoioiHI95z9MxprtPKmX3k/3i1V rNTTaU3w7i1bd3pLWrbfKFeJj7X/lYWFT7TvSIHKD3XtwJotqRgDVfwkFliuIlA25e4b UHtGPJ1Lvifxqu5qBAsK5+h+SKZVKrim14qe+wQD0Nrlf2t7H1doq6EfcOrKS5Nw76Jo +U51SgBzwA9Z6H+sGCq70E5aKf7mAEtrDzoQbuHk7XEWjo4IBrmd3Sh15hxn2BcaMdYN ja+iy2m2Hn2eApSY1P3OFz78Sj2aHOocMxZu7UFxAdvsUPv4Q5zt6alDTOurU6DRDHbi dXGA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=DP7bpPDa; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-210837-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210837-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f7153456d3si46274345ad.523.2024.06.11.19.46.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 19:46:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210837-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=DP7bpPDa; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-210837-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210837-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id EDF7DB20B40 for ; Wed, 12 Jun 2024 02:43:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4166FDF62; Wed, 12 Jun 2024 02:43:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="DP7bpPDa" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 182CCBE55 for ; Wed, 12 Jun 2024 02:43:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718160194; cv=none; b=BPf0JXGzKHGs4jjjeK7MbtQ4f2DSoj1CMs+ErhwZkMKw2bQ9YBrhsGWkNtZ1JRo/XT4N5iBuCdDQPImDT+K432wgGtpjmqN5hacEjyxosHcaSHNHerIFyp3IokQfVq/FHfFRkFZwyWlYnerG1kudiu8Rp9Czi7heyOA4lkif7Bk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718160194; c=relaxed/simple; bh=+1qtoHJhfx9Go+zeE8IKC/Ad/GnhlaEJcIWNTbAZ7m0=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=NqFDB1scZNzXMilrphAcp6Ra3IftDI8EddOVoNn3aFTtB1ihKp8jyKkr4f4SFDHJcJq4bdDTNuYEuyo4No9Krb1TKDLuUFCxEW1Ckpse6PcKILRhwnaJWnP4+QyrY24AWChJvzoRpm1SvwMRdhfVXxa43kskRsqnEEyoc4nIMAI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=DP7bpPDa; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5B727C2BD10; Wed, 12 Jun 2024 02:43:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1718160193; bh=+1qtoHJhfx9Go+zeE8IKC/Ad/GnhlaEJcIWNTbAZ7m0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=DP7bpPDaCYbo5BPL/Cyx9UnzLpEBJKgLuIjnn2u8ihYZj2s4d4i4n8k9zxc3GFoXp LPSb5RyCeqxRfD9JacDtiAuKrYFRdudWd32ItxxJ9dV9dQVcU5uFOWtR57Bb0q3Txl jqDCiTXQyKmlMYT4CRp9B5N5noguS5Mn32yOp9pk= Date: Tue, 11 Jun 2024 19:43:12 -0700 From: Andrew Morton To: Rafael Aquini Cc: linux-kernel@vger.kernel.org, Arnd Bergmann , Heiko Carstens , Petr Mladek , Mike Rapoport , Paul McKenney , Samuel Holland Subject: Re: [PATCH v2] mm: mmap: allow for the maximum number of bits for randomizing mmap_base by default Message-Id: <20240611194312.6048eba27c9ff3869040a35c@linux-foundation.org> In-Reply-To: References: <20240606170026.101839-1-aquini@redhat.com> <20240606180622.102099-1-aquini@redhat.com> <20240610111139.1e392360ffe847ea48ffebab@linux-foundation.org> <20240611143239.ab8e4d96289a748ae1f8a480@linux-foundation.org> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 11 Jun 2024 21:35:24 -0400 Rafael Aquini wrote: > > Shouldn't we make this the default (at least for 32-bit) so the > > regressed kernels are fixed simply by applying this patch? > > > > That is a fair take, indeed. I guess we could do something like > > config FORCE_MAX_MMAP_RND_BITS > bool "Force maximum number of bits to use for ASLR of mmap base address" > - default n > + default y if !64BIT "something like" != "exhaustively tested" ;) I'll toss that in there, but please do let me know when it is suitable for an upstream merge. I also added cc:stable.