From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 136792D978C for ; Thu, 28 May 2026 14:03:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779977001; cv=none; b=Zu1cQj1yY/q30un1aQ7UjRuXbHl91j/kvCZvMPTPekGvjV16Bu9qTH9uYAwSCl9zsObERE7ZVKhuus96W9IXcFYAuCh9MkVZcz5QF8mOJC10eSv6PllmEyt6OgiXvwNX4x6canZYahDw2epQp586LAv7LSr9xfdRMHvm7dbJiwE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779977001; c=relaxed/simple; bh=zeihJpmAmpXPJncWZn/obiUeWPMYy6Vhj56RR1ngXnE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=L418MLSA7UAJf942ed3DUPpimAxjsTznVSAr6Pq2NZndVOoodMyodTe+eg2jTDJXJEqFUa4OUiB8ht6b2EqNZfPPBRidoC1EUyzq5oNqeqCD2QITHId3G/6XpCQpNECHPaA8aO/bq7pIZL44JIud/bC4DdsA09E6oUSQIdkfYG8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HiVW2yH3; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HiVW2yH3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 787BC1F000E9; Thu, 28 May 2026 14:03:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1779976999; bh=XpxnCGqlRrEHebmmwDWgQQACrD5dqRhOE4/6MV1vagI=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=HiVW2yH3s3ZBqVBJKx8WVnShIc8H+iOmdkAIwz/pS9P/L4tlr6mcwfQqj5HFjiw0/ VXn7u3UxK5MIvAkm8T3BYsm0AhwEyl9gt0txfouQ1IJFyaymSWk9k6bJaF414YulV5 LuQj9pmWe/SoUOcX2B4mJSlxWFVO8q88auVe8fLmDbYtzOKxYmPJ6cVHpLe3lumO+1 uwzu5T2OHSY8TwZxn++EQKNsFEoSom68JvLQzekGrPx/6teBT4HH8SgL1Xhg2gYPRd b7F9/I9rVBj6Vxfxfd+88U+QRR4JC9PB/KuDA9qcWtvvrC9XFLIFZqqgl0TpmR/tyq ef/SgEshS+0Mw== Date: Thu, 28 May 2026 16:03:12 +0200 From: "Oscar Salvador (SUSE)" To: Dave Hansen Cc: Karsten Desler , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" Subject: Re: [REGRESSION] x86/hugetlb: AMD F15h VA alignment offset breaks MAP_HUGETLB alignment Message-ID: References: <20260527143643.GO31091@soohrt.org> <5f70e840-9d0e-4cef-8574-b355cf26e0c4@intel.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, May 28, 2026 at 02:45:01PM +0200, Oscar Salvador (SUSE) wrote: > The only thing bugging is, should not the same happen for THP-file-backed mappings? Aha, no, for THP we do not set align_mask (at least on x86), and the masking off is being done in __thp_get_unmapped_area(). -- Oscar Salvador SUSE Labs