From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from quickstop.soohrt.org (soohrt.org [85.131.130.220]) (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 3E0DB2EA47C for ; Wed, 27 May 2026 20:39:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=85.131.130.220 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779914372; cv=none; b=BWhSBn8wjXZJ9ydcAaYgmS1ODVMACtSAe6z51IVlchf5OS/D/uUSC1pzf+3f/W7R6v1GMz+ifHikVrZWiNNu2teRFrOfU69ZLwWTcAwwPBdtvzCoFGqM2ZpbxnUhiKNRU5tvGhYGAByZAwrY6sy/3/kopMxeJ4OEtILK3N4tqJA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779914372; c=relaxed/simple; bh=XMWdb4yHBX78WbVlY7SSHzHywPhPJvp1ZYapM0zO1jY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=aZkM8Vj5upfKWf2PIuqFkgBHUYEcmMh9xp+JVLgpf7sjium6AlB9Q11Lpza4c3HX3xb61222YOi2GOBCxYchTH+1V26KgbbmW4CUxg+vKEw/OMYxqQbqXHzoKNSG8/08lU22SbuGjLV6MAu7EwbTUNFO71dFtDmsgztLGQGS10w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=soohrt.org; spf=pass smtp.mailfrom=soohrt.org; arc=none smtp.client-ip=85.131.130.220 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=soohrt.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=soohrt.org Received: (qmail 28582 invoked by uid 1000); 27 May 2026 20:39:26 -0000 Date: Wed, 27 May 2026 22:39:26 +0200 From: Karsten Desler To: "Oscar Salvador \(SUSE\)" Cc: 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: <20260527203926.GP31091@soohrt.org> References: <20260527143643.GO31091@soohrt.org> 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=iso-8859-1 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) * Oscar Salvador (SUSE) wrote: > Maybe this? Can you give it a shot? Thanks, applied and tested across 5 reboots. All mmaps return properly aligned hugepages, don't cause kernelBUGs on exit and show the expected munmap behavior. mmap(NULL, 1229824, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_POPULATE|MAP_HUGETLB, -1, 0) = 0x7f7e49a00000 munmap(0x7f7e49a00000, 1229824) = -1 EINVAL (Invalid argument) munmap(0x7f7e49a00000, 2097152) = 0 Best regards, Karsten