Skip to contentSkip to conversation

Patch "sparc/mm/hugepages: Fix setup_hugepagesz for invalid values." has been added to the 4.11-stable tree

PATCH [email protected] 1 participant 1 message Jun 8, 2017

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

sparc/mm/hugepages: Fix setup_hugepagesz for invalid values.

to the 4.11-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
sparc-mm-hugepages-fix-setup_hugepagesz-for-invalid-values.patch
and it can be found in the queue-4.11 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From foo@baz Thu Jun 8 08:58:43 CEST 2017

From: "Liam R. Howlett" <[email protected]>
Date: Tue, 30 May 2017 15:45:00 -0400
Subject: sparc/mm/hugepages: Fix setup_hugepagesz for invalid values.

From: "Liam R. Howlett" <[email protected]>

[ Upstream commit f322980b74a15e08f8c70a34a5864ecdbf957251 ]

hugetlb_bad_size needs to be called on invalid values. Also change the pr_warn to a pr_err to better align with other platforms.

---
 arch/sparc/mm/init_64.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/sparc/mm/init_64.c +2 -1
@@ -358,7 +358,8 @@ static int __init setup_hugepagesz(char
 	}
 
 	if ((hv_pgsz_mask & cpu_pgsz_mask) == 0U) {
-		pr_warn("hugepagesz=%llu not supported by MMU.\n",
+		hugetlb_bad_size();
+		pr_err("hugepagesz=%llu not supported by MMU.\n",
 			hugepage_size);
 		goto out;
 	}

Patches currently in stable-queue which might be from [email protected] are

queue-4.11/sparc-mm-hugepages-fix-setup_hugepagesz-for-invalid-values.patch