Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 D0C61481FD8 for ; Tue, 14 Jul 2026 14:52:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784040762; cv=none; b=oZOQ29oFpu1X7DeZDhm3MC0pknWvMLHon1JaD6ras3Sq4qKteDnFEaeFlxCwqo/T6vwYCZNqAI3d40n4K2cOiwP247LNLuFKFHANwFtANd2ujsKNMHw6cX5zmn/fU7FFZ76SVYXG/t0lKTs4OubW0WSO0wFpB1M1mNnGB3QgEPg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784040762; c=relaxed/simple; bh=0HmmaSbWf/JiQncazglezW3cvzgnNIh5KPLk3+7Jn0Y=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=V47XUBmpE6kXXjIITRtA66aPdH0+ye0ZvhPrLP9aPEOs0j0lvDobHwDPWT+r3qmD5mRaaI2lb9NV9YsGxrYk++fm6jyjJZUa1s7xuXQbgiHRrzBxDuNrkjfiBTZIxW9crQp2+EmZbIwi0X7OsM4dWYCAlafbHsJY4h4ovFwy6e0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=PenEogF6; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="PenEogF6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 41CAE1F000E9; Tue, 14 Jul 2026 14:52:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784040761; bh=zRjhuHwbVbySISwRQVjrPIVW8uOERdg2+bhCKwaOlXk=; h=Subject:To:Cc:From:Date; b=PenEogF6tAXYwVlOdqiIiFzixCBA/KDxMozlCimSy6POJMQHYqJWE5/+EsrMV+pei babigd0B84+kt3J0yJqwyFDel1buvhRH7Lmit+LF3JY2mQ0l1M8WZUllaw1dZU2OLW XrvGbE7BYEn+OHNO6CrxtByFl+WCnfPeHoSr2Z4I= Subject: FAILED: patch "[PATCH] tools/mm/slabinfo: fix total_objects attribute name" failed to apply to 5.15-stable tree To: chenyichong@uniontech.com,sj@kernel.org,stable@vger.kernel.org,vbabka@kernel.org Cc: From: Date: Tue, 14 Jul 2026 16:52:26 +0200 Message-ID: <2026071426-segment-spirits-4788@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 5.15-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-5.15.y git checkout FETCH_HEAD git cherry-pick -x 892a7864730775c3dbee2a39e9ead4fa8d4256e7 # git commit -s git send-email --to '' --in-reply-to '2026071426-segment-spirits-4788@gregkh' --subject-prefix 'PATCH 5.15.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ From 892a7864730775c3dbee2a39e9ead4fa8d4256e7 Mon Sep 17 00:00:00 2001 From: Yichong Chen Date: Fri, 12 Jun 2026 15:13:59 +0800 Subject: [PATCH] tools/mm/slabinfo: fix total_objects attribute name SLUB exports the total_objects sysfs attribute, but slabinfo tries to read objects_total. As a result, the lookup fails and the field remains zero. Use the correct attribute name and rename the corresponding structure member to match. Fixes: 205ab99dd103 ("slub: Update statistics handling for variable order slabs") Signed-off-by: Yichong Chen Cc: Reviewed-by: SeongJae Park Link: https://patch.msgid.link/96556748872BB47E+20260612071359.649946-1-chenyichong@uniontech.com Signed-off-by: Vlastimil Babka (SUSE) diff --git a/tools/mm/slabinfo.c b/tools/mm/slabinfo.c index 87570c22b151..48d1ee8b0e81 100644 --- a/tools/mm/slabinfo.c +++ b/tools/mm/slabinfo.c @@ -33,7 +33,7 @@ struct slabinfo { unsigned int hwcache_align, object_size, objs_per_slab; unsigned int sanity_checks, slab_size, store_user, trace; int order, poison, reclaim_account, red_zone; - unsigned long partial, objects, slabs, objects_partial, objects_total; + unsigned long partial, objects, slabs, objects_partial, total_objects; unsigned long alloc_fastpath, alloc_slowpath; unsigned long free_fastpath, free_slowpath; unsigned long free_frozen, free_add_partial, free_remove_partial; @@ -1262,7 +1262,7 @@ static void read_slab_dir(void) slab->object_size = get_obj("object_size"); slab->objects = get_obj("objects"); slab->objects_partial = get_obj("objects_partial"); - slab->objects_total = get_obj("objects_total"); + slab->total_objects = get_obj("total_objects"); slab->objs_per_slab = get_obj("objs_per_slab"); slab->order = get_obj("order"); slab->partial = get_obj_and_str("partial", &t);