From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-171.mta0.migadu.com (out-171.mta0.migadu.com [91.218.175.171]) (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 633B439E191 for ; Thu, 9 Apr 2026 11:04:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775732679; cv=none; b=i03R63VC8Sy61kDtrRx4jnyBC9j5YwxVK/pwEIhzEKyLSbjuUgdfI19uY8C9O06Gc/aRwkXWJXm6sS4PvS7AQbOx0HhraqTYBTNKX7T1pbqE4yR0uT/0/ne7XPV7UOaUfB+5wDlu3Z8yW+7pOvcwKZdk27n1lysoudLUskK+AQw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775732679; c=relaxed/simple; bh=ZrtVyQUSl1Vkkss/YEluHGFstFbA0FqBERkViJ95LkM=; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc: Message-Id:References:To; b=Xr24lcmVeThoSDaBe1IHnaV1PGvruD6SMM5DqUd3AMzPAJrhrhtpurtYpbJnwEwKQH1/fh5Jo3TcUdXrlMG4aURPTsDe0Tx81ql+CzIoHKuWTvlhQNKK/ut8QM3NVCWpn+mBBzg2PCvr4sPoXJAi7j2Y19xZ/1rQSoqwve31GXs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=eTF2u6EX; arc=none smtp.client-ip=91.218.175.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="eTF2u6EX" Content-Type: text/plain; charset=us-ascii DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1775732675; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZrtVyQUSl1Vkkss/YEluHGFstFbA0FqBERkViJ95LkM=; b=eTF2u6EX+3el+2pBg+jrigA4m47nOHc+sErjD/Lp4eWVN1BQFVb58zyw/90hVUnGUDTlto Skw/OYZy0h1LR77kVhv2XJjNXYeoWh3LGI2Xy/0C9VQOzyH6cXLmP+z+A+XZVYsdBkqzw9 Eji71oWiTUGeskUtlKX1gmRrGTPPmG4= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.500.181\)) Subject: Re: [PATCH] mm/hugetlb: fix early boot crash on parameters without '=' separator X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Muchun Song In-Reply-To: <20260409105437.108686-4-thorsten.blum@linux.dev> Date: Thu, 9 Apr 2026 19:03:41 +0800 Cc: Oscar Salvador , David Hildenbrand , Andrew Morton , Frank van der Linden , stable@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Message-Id: <518E33D5-81E7-4119-8168-6E31ED743930@linux.dev> References: <20260409105437.108686-4-thorsten.blum@linux.dev> To: Thorsten Blum X-Migadu-Flow: FLOW_OUT > On Apr 9, 2026, at 18:54, Thorsten Blum = wrote: >=20 > If hugepages, hugepagesz, or default_hugepagesz are specified on the > kernel command line without the '=3D' separator, early parameter = parsing > passes NULL to hugetlb_add_param(), which dereferences it in strlen() > and can crash the system during early boot. >=20 > Reject NULL values in hugetlb_add_param() and return -EINVAL instead. >=20 > Fixes: 5b47c02967ab ("mm/hugetlb: convert cmdline parameters from = setup to early") > Cc: stable@vger.kernel.org > Signed-off-by: Thorsten Blum Reviewed-by: Muchun Song Thanks.