From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 8B5BB21B182 for ; Fri, 20 Dec 2024 18:20:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734718830; cv=none; b=SK7jOVZfvuDCVF1BPUgWbgDZ4zC7SjhOrsq/hq/yUyXXfBD/gww/SWFECdUVn2SPJ5dqoBf2kiCL6pTbSod8j4rDyYIEyGrGOi5qsSQAEy1AQAISbqpHUcuhUiMBxxbsMtoaoX6U4O6hq0PUx9mHaNRlQJfwCJ8IIhwlFIlgiuo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734718830; c=relaxed/simple; bh=LPpf4wXmIcuEYYYy/p7GpACWnkoeUJ9DwfjwWkd6yI4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=YboeCGnykkTuV+cezGRIiLTuQJpOD3V78yp0yK2Ym9pW/DgE/NqHHkxa/3ep1zMpS+CvDGcrbqKuPPCuR0d/kmZprUTAXeSG/tNJH1JET+HQIGZFeUZk2PBFCj+JipNZo6xXKGe5rH9OULTnWGdE4acUOoZ3eXLBHLbedbUu2MU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=BfytwPme; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="BfytwPme" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1734718827; 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: in-reply-to:in-reply-to:references:references; bh=5MRORUlsri14+v29Efce5pIKOVN8l1to2tbTzuz/pKI=; b=BfytwPmeymVw4eEGvS4ufbq92nGKBBQG+7qCzDCGBZJXUt0Wao7FwFAe110Tw+CRPbLTl1 DbXs+VVoBpy/dQOBVDcSxEOUf1sOMaNlcXQfk1Kd79O6GyW70Lz9nBHkbgP42AGEAdFLUJ u5ZM75pgUxWnZUiuraOgIdpqX7m/q4E= Received: from mail-qv1-f70.google.com (mail-qv1-f70.google.com [209.85.219.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-575-85qnvoySMrqaULO6lviVoA-1; Fri, 20 Dec 2024 13:20:25 -0500 X-MC-Unique: 85qnvoySMrqaULO6lviVoA-1 X-Mimecast-MFC-AGG-ID: 85qnvoySMrqaULO6lviVoA Received: by mail-qv1-f70.google.com with SMTP id 6a1803df08f44-6d8860ab00dso38516756d6.0 for ; Fri, 20 Dec 2024 10:20:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734718825; x=1735323625; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=5MRORUlsri14+v29Efce5pIKOVN8l1to2tbTzuz/pKI=; b=RRUY5VfLKnZdTfwzzh1SHMQlAEvqg1n+SJyYWU+h04Y3XCWIXDLGTrnhAD0zyyeKjI UYkz9IXY1dE1ukySTD6nfe0XdlLHiXYKvbRyVz+QgML/BXiQCZ93tuM1LxqOKPW7CPYR bHIrjoaAQQM2R5nFfZd3ZrT7742UybfqK0WkwgrFaQBBp8HPDjPMJK67QQnajBGCP+ss Cw5MbY3cUN8h9v2dPmrCvXyxEGK2DMmNn8eDEJWAoJqCdkmdiz7dSJr5n8bPdyGRjhmA dnnaHk97cFrUrUfzn7jbXjW6iwDoaG6Cc5pPSWPGfZvHN/pm7IVZ86XJNVX/yx+xKIyP mm6g== X-Forwarded-Encrypted: i=1; AJvYcCVbvw1QLgJIb1ENe6SRbLaOHdBpoZlclnD7S3jXn3YXzMyf5QEPhyulyI//QIpJWbRX6KugXz8uwu8p0tw=@vger.kernel.org X-Gm-Message-State: AOJu0YxLPTDHBldUmqtIQWcOKNAwWw9CZAnJf/NvWQns2wzXrguRCSzm TPEiNHkOYHgUPStC4rN6pZi4dKEUXeBALbOjh1qEEUzDzH4Za88Hw0szet0SJABpbaXsbyiLaO2 doqCLYZdCHOCohLGeS8PHn76ExCtbZE7aBII8L4dZzOHfvPAdviVhHboVvEOLBw== X-Gm-Gg: ASbGncvr9JFuXHPmisCrR/rJKr1L/VAoNENt2MbrjJ6lAVx9shaRkMFGiCuoMIQtAYQ t5LIUz95s/ZzcHynd0ZGhtAfa7gykQdfZE/BRmnLaYKH/DnKtGPFGQFAIV9FoMWzoUlinjn2qpr hBryQIaAjo+qh6H8lvCrJx0t4KNntfxZ/sdmX16NMEYwonyU4OgYwuwnpTvYoZ9b0uGzj+QNq1o czQHnG8rZVBvmcajWBPsIRglU/CVLk4ZhVnXLdCnomT+gvGENobhnwi2wMrMtwQN45Ao+MygOeQ q1RFVYr8l5m4H/0Uom3uXh6aep7L X-Received: by 2002:a05:6214:e85:b0:6d8:8b9d:1502 with SMTP id 6a1803df08f44-6dd2339ff2dmr66930166d6.30.1734718825286; Fri, 20 Dec 2024 10:20:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IFqbgKn73CY2pZCf4TyGF+61xX0TW8BwwKi++kf3LcGHFIJIJ5HUG7B2SRqc973PKgSt197yA== X-Received: by 2002:a05:6214:e85:b0:6d8:8b9d:1502 with SMTP id 6a1803df08f44-6dd2339ff2dmr66929836d6.30.1734718825052; Fri, 20 Dec 2024 10:20:25 -0800 (PST) Received: from athena.aquini.home (c-174-169-122-120.hsd1.nh.comcast.net. [174.169.122.120]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6dd181c0fbasm19229356d6.94.2024.12.20.10.20.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Dec 2024 10:20:24 -0800 (PST) Date: Fri, 20 Dec 2024 13:20:20 -0500 From: Rafael Aquini To: Matthew Wilcox Cc: Audra Mitchell , linux-mm@kvack.org, aris@redhat.com, akpm@linux-foundation.org, william.kucharski@oracle.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm: Stop PMD alignment for PIE shared objects Message-ID: References: <20241219211552.1450226-1-audra@redhat.com> 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-Disposition: inline In-Reply-To: On Thu, Dec 19, 2024 at 09:30:58PM +0000, Matthew Wilcox wrote: > On Thu, Dec 19, 2024 at 04:15:52PM -0500, Audra Mitchell wrote: > > After commit 1854bc6e2420 ("mm/readahead: Align file mappings for non-DAX") > > any request through thp_get_unmapped_area would align to a PMD_SIZE, > > causing shared objects to have less randomization than previously (9 less > > bits for 2MB PMDs). As these lower 9 bits are the most impactful for > > ASLR, this change could be argued to have an impact on security. > > Yes, very tiresome people have been making that argument for a long > time. Do you have anything further to add to the discussion that > happened here: > > https://lore.kernel.org/linux-mm/20240118133504.2910955-1-shy828301@gmail.com/ > > particularly in light of 3afb76a66b55 existing. > Linus, however, disliked the config question and ended up reverting 3afb76a66b55 a while after.