From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796239779; b=QrsbPgjEd26co3bZ9a6ScnOGbuwjGaws0gOxj8q3kyUs9nLq7+W2QQyYVVRY8OiSoV1X rON0IUqL53ZGHflVtl6OsphOcdAUCNfk6MQFUA634zye4V5fOJHQdrEB7fdLBPMxKepXa xhsoNLBSPqQ074YAiguLfBzhQOKuecF5FlhaayrTtbFkGYzCoaRiBvK7B8HCxFRFK30RI sa7BVusfj5jfLq9rI3emlLp3LSjayU3RLTBYV5idPKYDxBKItx2aZ9y09VWSFwl8oIgMr MbA/fxou4VDPXgu8AL1w15pksac/wY5OoOcxNnZjLGsh3zEXixn+vJGP4bhPwzUQ9ow== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796239779; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-Id: In-Reply-To:References:X-Mailer:Mime-Version:Content-Type: Content-Transfer-Encoding; bh=z1PPAp6fOFNgiOK8i8c+iVXzNyQ4aTJEQTaWGwnp2EA=; b=xS47/2tbMvTsxALXT+qCSBr2yN1iUqicg/CymjgYj0FutioriYGnXQVh/0hST8ACC2S2 sgBptGTPGmsZyUkQWLpXjxlj/7GeIvmM8ABofXyu6M7XNUIpjjMB6r4HXKZ/9IV+zUePW 9d4WpYyeGrucat4LJNJcoRDzz69AFm40bOgZSRAIPxQMq9EoK3Q8xPh8flxiRAI15X8v4 lW+Ta7nn1lyLPgQMTdjGq00Z7GtAmEjcAusE/5W29QmTWjtiFDvJuYhImSnXhQI4QIQeR BRqN+6jjP2TjBKI75Wj9zx7TCdq/pbMFvl6XFz1OdfaUuMleKPzS7VlJOwaaiqLsHwg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linux-foundation.org header.i=@linux-foundation.org header.a=rsa-sha256 header.s=korg header.b=KQ3D7YuF; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CF902606A322; Wed, 2 Dec 2026 19:29:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.a=rsa-sha256 header.s=korg header.b=KQ3D7YuF Received: by smtp.kernel.org (Postfix) with ESMTPSA id 212291F000C1; Wed, 2 Dec 2026 19:29:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=korg; t=1796239779; bh=z1PPAp6fOFNgiOK8i8c+iVXzNyQ4aTJEQTaWGwnp2EA=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=KQ3D7YuF5NbTSJT4NPQh9C+5B2tkPcpX7GBt+cjVw0qxjouLYvKwu/zaKQms4U5VC UR143RZPuBeYrmstKQHkZFZiCYoN6Aae7OGWU58t2sqUu67EghfLGtqfZ5GqpsqMYQ vdrzadSqrBV3xfxn/c/JiTg0csnIrJ08AOXQ0eeE= Date: Wed, 2 Dec 2026 11:29:38 -0800 From: Andrew Morton To: thanhnguyentuan2007@gmail.com Cc: Bart Van Assche , Jens Axboe , Ming Lei , linux-block@vger.kernel.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, syzbot+4138704b4276d9a57251@syzkaller.appspotmail.com, Wang Yibo Subject: Re: [PATCH] sbitmap: reset alloc_hint to NULL after freeing Message-Id: <20261202112938.a596225d374bdf002bd1ad81@linux-foundation.org> In-Reply-To: References: <20261202041507.603-1-thanhnguyentuan2007@gmail.com> <46018d9e-df6c-499c-adbb-4de10edc8806@acm.org> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On Wed, 2 Dec 2026 10:18:54 -0500 thanhnguyentuan2007@gmail.com wrote: > Thanks for pointing this out. Your patch is indeed more complete — I > missed the dangling sbq->ws in sbitmap_queue_free() and the > init_alloc_hint() failure path. I hadn't seen your patch before > sending mine. > > I'll drop my patch. fyi, I'm sitting on Wang's "lib/sbitmap: add KUnit test suite", https://patch.msgid.link/20261016073253.520971-1-szwyb123@gmail.com so as people are working on sbitmap, please consider updating that test at an appropriate time. Actually I'll send "lib/sbitmap: add KUnit test suite" to Jens right now.