From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BB7E7248861 for ; Thu, 23 Apr 2026 19:58:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776974304; cv=none; b=HfKl0M8bSmXbEsjeCEcsGd2u/A8ISpb5U+qvHxk70beBvEvj8bJ1oLK62LM+gE6aBtOoYME4o0DPhNWLqC64bhyY/JL49zLuxuJRBA68/10EOq2+wELyorU2nbYNta3/3DTPb2o8A+4//GezMB3FwG85UxjTmF1CNeZASFAhSiw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776974304; c=relaxed/simple; bh=ME41CfbaFxUGluCNC4UmNcJtdCCRrCaU4D6fhzq7+4s=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=b/arId1VYW7T6ccgu9rcj6zrLqbsF8/oWmttzvo72A7SILmY0LGy9aEQcEToZgosfR20Soq0Sylz8iv4QEr/sTACk7c4K2jESljBiDYx6mK+Kf6+5qlXgyu9lXiFDDroJJW+iiCG1MY9Qm5euQJo8dCoZ88/TwpBkLwyoJS4Ubo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=Gh1bbCql; arc=none smtp.client-ip=209.85.214.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="Gh1bbCql" Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-2b46da8c48eso159465ad.1 for ; Thu, 23 Apr 2026 12:58:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1776974303; x=1777579103; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=p6bfT6bEEROkpmCEHE+pFctgO+nXUuOcn3CFwMYYjpY=; b=Gh1bbCql14e09C9AKrzs+N71Cbs0GMk2lAY++UxfDT5eTEn5RT1iJc/r2VlUeCOYkF WNv8Ez3t/NXYfM+NcmZvhJeMh1H88uDZPpS6RaOsRo2j6NnRtN11UJRT+PKRP47XZ9yn 6qntvNAZCi1yo//sAAb9bzy6RXNmnu//Xo/G6R56Q/ambj1WKPSUzJDSpEGOuMv9jrhc qUW/+mIkD8UjXsa0jkwnekvu1l8QvDsa/LsN8CdK0ovRM2k6TIVJvo7pa/sBOdC8kzcW 6nsIudX9fR1mclF93QWYA8kL99/sZjeeJPcnnB2jqddq01T/HpHPmEEj/CyjqhmdbmWL 7Arg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776974303; x=1777579103; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=p6bfT6bEEROkpmCEHE+pFctgO+nXUuOcn3CFwMYYjpY=; b=glx1g4Pb/Qk0MY06X74jlhHt+1OS8duJ5flRvWvfYpSWH3pRSDTc9sal70MVj/MnbT gGSAwcjU0uxKiUF4JAW91Bw0iJXHfp2L1GqFi3TOR2FYlhJCUQzuTVqsH2Xktwa5nKEm DagK9Cxn/iwn2uRHFK6eMx2la9LqIkvZTlbUnHgeGlQAcXQfkCu5g/k1zH/3/O5mWi+R DVP/fa+cZAEhI/OBf5iSZl9Px3X9kCDcrxO0snZX3qmSmz7HE9l6Snb2EuE2vhr5vg/t H48wtLR9goZA+jdZsLQ51l2LbmlHkjYadUOQzRJ//nwxEmvIdZSY09IKlSOuqx1oqtBO Ox0w== X-Gm-Message-State: AOJu0YwMM9QxMvDyqwoZCWXF7hMveXgs3Fmj9+El2Xs8+VApfQHATS+t wl+fAZ6twMCEMf9pTxWsTa4wOxYxRYAL0wrneMbWDXqo0vq8jpylyA39J+TuDkF8mg== X-Gm-Gg: AeBDies+CJuaG0obcgswb2jakE97PripG+uHs34BZzTbw5qi0oJM3QD0r3lfyuDb+F/ ID6p4UkkZv3YBxOTPpVJOVkw/p2a5C0qnMVjU+dd3kbLeQ+M0+FvelUBZBSpV2fmwLNsnoUazPP fp6xzz7L5oHjuZd4ouQQr9A+OOrhjjdPLwXdeOOPRDZbaUU4TuABKzUZyirmRCaoik4hz+LfGet nIf/yMJ+cPKk+cwYX1muAcfHfuo34lUavawSFmcFI0alGCprr950xMxlgMFbowWAIekZskXUcon 2D6WP6Lt1+A5KifVk/DtsDZ0S8Mig0TRUqGKiao+dllfzjwc0EWdZHnho82BKoBRmMlgsOplYSg B5Hjd+wVlBu3Sry4AMkwmLIqOIyOrwZa9JEP2+EfQKrx+8W5WG0bFf2bGxkYNvvW4VUq1dQcjxW ZkA2gRDiSy+x/2I+75vJAuzqFW+stGJ/wHpXaidobetnGi44nsORajXyKvw5Wu3yvucxwwUGZoc /dH0nhwTeBvLnI6yyvK2w== X-Received: by 2002:a17:903:1b68:b0:2ae:7fa2:6bda with SMTP id d9443c01a7336-2b603e99857mr10424195ad.1.1776974302535; Thu, 23 Apr 2026 12:58:22 -0700 (PDT) Received: from google.com (195.236.83.34.bc.googleusercontent.com. [34.83.236.195]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2b5faa176e9sm198914135ad.20.2026.04.23.12.58.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Apr 2026 12:58:22 -0700 (PDT) Date: Thu, 23 Apr 2026 19:58:18 +0000 From: Samiullah Khawaja To: David Matlack Cc: linux-kernel@vger.kernel.org, Andrew Morton , Mike Rapoport , Pasha Tatashin , Pratyush Yadav Subject: Re: [PATCH 1/2] liveupdate: Use refcount_t for FLB reference counts Message-ID: References: <20260423174032.3140399-1-dmatlack@google.com> <20260423174032.3140399-2-dmatlack@google.com> 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=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20260423174032.3140399-2-dmatlack@google.com> On Thu, Apr 23, 2026 at 05:40:28PM +0000, David Matlack wrote: >Use refcount_t instead of a raw integer to keep track of references on >incoming and outgoing FLBs. Using refcount_t provides protection from >overflow, underflow, and other issues. > >Fixes: cab056f2aae7 ("liveupdate: luo_flb: introduce File-Lifecycle-Bound global state") >Signed-off-by: David Matlack >--- > include/linux/liveupdate.h | 3 ++- > kernel/liveupdate/luo_flb.c | 22 ++++++++++------------ > 2 files changed, 12 insertions(+), 13 deletions(-) > Reviewed-by: Samiullah Khawaja