From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-178.mta1.migadu.com (out-178.mta1.migadu.com [95.215.58.178]) (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 8583C364941 for ; Thu, 11 Jun 2026 06:46:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781160374; cv=none; b=JNl+7tWJRiZbd19s55j05GoJkzA2b/TIvireBAM6YjqrfYFzXLahIEvJ8SQtzhg2ATBxO69g3yyWCjuFmJOuFPzjROGGT+n2szp5PgXGjjA/SFAY0Ajljauu8RC+WobfEm8KwQMe1ONlDnYYROEI4GaZYyGa5zOS4Xe9OSbVHJA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781160374; c=relaxed/simple; bh=0l2rItJbo6i3ox5kzWVfNqdqFtlpng5Vlv9NVU/+ng8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=jkOMO1lwut3l5DGiSPXP4LnzZIhnBp5iwhcI8lp8crN+F4z3L7cKUwg7Fjsa55LnwdPYaq5MOERcMD2JqNCib1Vq4wHJiJZdkSHbVhVkbyc2Hiu+oQd6zoRHRUXgsXpCnwJh76815lUuGTELU5e+4jTF4CUN7HNNDDc+js7XSiA= 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=qdum+Y1G; arc=none smtp.client-ip=95.215.58.178 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="qdum+Y1G" Message-ID: <8047d447-8d5e-4b6a-9f58-ff5f8bd66682@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1781160368; 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=SVouNoN80w6dO9KIn0GiYF4bubG1EqfaiAXPsIJZTxs=; b=qdum+Y1GniHV16IpakF5724c8Q5NH4BTfsgWiG0kp4NlbhM2OVJY8kVGd6J6d24JMl0UBk lS3Pu9nJtiZgXTV4lgbWVpHAMFOBZ+gYOd97mOEmZQNJfUgleYrZrVlsKNbj2spaZE/qQn 9E+HjMqZoccEH+fUVSGvV2w0tbTD/Nw= Date: Thu, 11 Jun 2026 14:45:15 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH] lib/vsprintf: Make no_hash_pointers take effect early To: Andy Shevchenko Cc: Andrew Morton , Petr Mladek , Steven Rostedt , Rasmus Villemoes , Sergey Senozhatsky , linux-kernel@vger.kernel.org, Muchun Song , Kaitao Cheng References: <20260610124525.59110-1-kaitao.cheng@linux.dev> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kaitao Cheng In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT 在 2026/6/10 22:59, Andy Shevchenko 写道: > On Wed, Jun 10, 2026 at 08:45:25PM +0800, Kaitao Cheng wrote: > >> The no_hash_pointers boot parameter is now handled as an alias for >> hash_pointers=never. However, hash_pointers=never only records the >> selected mode during early parameter parsing, and no_hash_pointers is >> not updated until hash_pointers_finalize() runs later from SLUB init. >> >> This leaves a window during very early boot where %p output is still >> hashed even though the user explicitly requested unhashed pointers with >> no_hash_pointers or hash_pointers=never. >> >> Set no_hash_pointers as soon as the "never" mode is parsed. The later >> hash_pointers_finalize() call still keeps the final policy decision in >> one place, but explicit requests to disable pointer hashing now take >> effect for early boot users too. > > How is it documented now? And if not documented at all, needs to be. In Documentation/admin-guide/kernel-parameters.txt, the descriptions of both no_hash_pointers and hash_pointers= are already marked as [KNL,EARLY], which should match the current semantics. -- Thanks Kaitao Cheng