From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 ED7A133EAF5 for ; Mon, 12 Jan 2026 16:03:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768233806; cv=none; b=L8/MKJvx0NahPmZmvTH8m1FfKs1+43yP5WUlQFbdWAlTxPGy9BUUKwq95RG/VtmMQKvJepvOvFhx/0wIfdb5kMcLuKVoy1Ozg3lV3tEXSvOooU+9SXfEEpBR68uMmlDTtwgxtq8dDUF05Fu9Ex8PSFWfKO0qyeaXf5nzaA/ByJk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768233806; c=relaxed/simple; bh=Ahciwm6f5wYY24ORVvbN1M38RwpVHuCKlvjXUMqoMeI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=HJZrkgsXt8cVJb9S+3QS42UwAeh8qfihbrVJ91E9nK4PJorC0NuUjmYd/fZmasVUSTmwC1we3KQxZzdbpMOxYU3uVWkijfg6g7qQ/DZv1ePNbc4rv15vGNXl0MlQ+nNESf8wJTgLHOQNgJUAg8q0QWQAZurDeg9wBEY8v7qo4K0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=bu1YsJAy; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=9WFRO/Jf; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="bu1YsJAy"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="9WFRO/Jf" Date: Mon, 12 Jan 2026 17:03:21 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1768233802; 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: in-reply-to:in-reply-to:references:references; bh=you+Prysa3+e+CjaYB+FaeigBAe5mJGLl/kBRCHGxe4=; b=bu1YsJAyHq5GsJ+D43WKjuvJejHEqCmG/Q6DNilgYOrnpnfZmXCDkMvM9LWKBaGFjoP86n bjtbneiqjEkUZHjFoyE/maii+z8fYRjV6alYjvVu9gtGUWzj3uKLgyzjdHsBPsUc1SulbM ZXfb0gqX0YtXwnLDLVSvOUO5qK6BR6ggDi1xFA6cDXrqn6Ttwj3X47ciccusS723ECQ5az 0qWHko+jTSHXdz03dSqPxjbtb5GB3k4Hn8OzLynOFbUXOLoCne4Dp/BZ88cCCrL5bLWxBI Vcr0bPWNqdT8m3M+fHIDagcsxYf5pcFCI2SrQNtMuv8st4rn7iXtrrV8SdBT0A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1768233802; 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: in-reply-to:in-reply-to:references:references; bh=you+Prysa3+e+CjaYB+FaeigBAe5mJGLl/kBRCHGxe4=; b=9WFRO/Jfmaus/17npdGjbfulZllUah41yftAdCLefQ7UwtrMYu+fHVUzlDUlfq2FvsVYVf LCB3AiNfHkvkGmCA== From: Sebastian Andrzej Siewior To: Dennis Zhou Cc: Tejun Heo , Christoph Lameter , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] percpu: add basic double free check Message-ID: <20260112160321.kCh3NHWV@linutronix.de> References: <20251220002737.84100-1-dennis@kernel.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=utf-8 Content-Disposition: inline In-Reply-To: <20251220002737.84100-1-dennis@kernel.org> On 2025-12-19 16:27:37 [-0800], Dennis Zhou wrote: > This adds a basic double free check by validating the first bit of the > allocation in alloc_map and bound_map are set. If the alloc_map bit is > not set, then this means the area is currently unallocated. If the > bound_map bit is not set, then we are not freeing from the beginning of > the allocation. > > This is a respin of [1] adding the requested changes from me and > Christoph. Thank you. > [1] https://lore.kernel.org/linux-mm/20250904143514.Yk6Ap-jy@linutronix.de/ > Sebastian