From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtpout.efficios.com (smtpout.efficios.com [158.69.130.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 BBDFB2620D2 for ; Sun, 21 Dec 2025 23:29:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=158.69.130.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766359795; cv=none; b=sSqf4ZhTfUODw/hgkl2F4Jt2hX1nJNiqh8+SlvHDxbS4G+KJdJxzHSrCuEywUdd9JrMP8KbiBhyumsApXelcPms2kctIMXXZngFVMrTGKuFFf2OtYY4oX4ezJeF0UTkndJy1LzJHXFCdG3bb/Dg+4wd/sL/uO5sUlTOZzPCQ294= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766359795; c=relaxed/simple; bh=vKR+basYGNd0QcAy3zgqub6Ce4XlPkFMk1hLJDXzYVI=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=SLg0BkhoaqRP577EcV0DWaUuIUWcP8mk++srus8d1UqQBSN9h+CEsoC/GrvJEy13phU4q1tAi6VUHQ+yG40V8LRkJ3KCAu0piU2xoZnwzvEAo4VW7UaXqIwGUNFAfRdwwYZw0bqTytj3NfjF3ifbPmD5NDEzDVCfYhYLQftlQHw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=efficios.com; spf=pass smtp.mailfrom=efficios.com; dkim=pass (2048-bit key) header.d=efficios.com header.i=@efficios.com header.b=khpwm/PN; arc=none smtp.client-ip=158.69.130.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=efficios.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=efficios.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=efficios.com header.i=@efficios.com header.b="khpwm/PN" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficios.com; s=smtpout1; t=1766359786; bh=VtYWVH4kEDnjh9odMMaR+dSfiUF4Ruk5wQ7WUcoeW7I=; h=From:To:Cc:Subject:Date:From; b=khpwm/PNwhL6sf+XrYApDAWMut8RQoEfVgea31V1L3B1jZO7iMXhepiwEtS4e49xd 4nJ34QCjGmPCUix4SkrAGeMDo3a331aXLfI5GMTpItF8ywOYJlABGW0zOb1yt8OqpM eqkItYKxQp1d6axCdGx6RNpnMIhEr3I3yN7jMxfjEdQJO4b7YAfTMuH5zX3ALgpULd 1TiadjFlxRj6en8/ClDUef4FT1ikNrDDAK4L4rxKJaadYBbKMhf+wqgGz24Bu7Tq82 92/dWvdRd0RY7Ud6puy6hPzYiz5eD6lwsNwPa4WRrpLh8uGkAeucHKbeQ072cmJ8d+ uGc2UNEF5bfBw== Received: from thinkos.internal.efficios.com (unknown [IPv6:2606:6d00:100:4000:6450:b8a1:16cf:5ecf]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4dZHYP6sxXzddl; Sun, 21 Dec 2025 18:29:45 -0500 (EST) From: Mathieu Desnoyers To: Andrew Morton Cc: linux-kernel@vger.kernel.org, Mathieu Desnoyers , Mark Brown , linux-mm@kvack.org Subject: [PATCH v1 0/5] MM_CID and HPCC mm_struct static init fixes Date: Sun, 21 Dec 2025 18:29:21 -0500 Message-Id: <20251221232926.450602-1-mathieu.desnoyers@efficios.com> X-Mailer: git-send-email 2.39.5 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi Andrew, Mark Brown reported a regression [1] on linux next due to the hierarchical percpu counters (HPCC). You mentioned they were only in mm-new (and therefore not pulled into -next) [2], but it looks like they got more exposure that we expected. :) This bug hunting got me to fix static initialization issues in both MM_CID (for upstream) and HPCC (mm-new). Mark tested my series and confirmed that it fixes his issues. Please consider the HPCC fixes for mm-new, and the MM_CID fixes for upstream. This series is based on mm-new commit 287373d0b6ee ("selftests/mm: fix comment for check_test_requirements") Thanks, Mathieu Link: https://lore.kernel.org/lkml/c8acf650-ef96-4449-ba85-557dedba0ffc@sirena.org.uk/ # [1] Link: https://lore.kernel.org/lkml/20251122111336.56b060c86ff6ba41fe76bfd4@linux-foundation.org/ [2] Cc: Andrew Morton Cc: Mark Brown Cc: linux-mm@kvack.org Mathieu Desnoyers (5): mm: Add missing static initializer for init_mm::mm_cid.lock mm: Rename cpu_bitmap field to flexible_array mm: Take into account mm_cid size for mm_struct static definitions mm: Take into account hierarchical percpu tree items for static mm_struct definitions tsacct: Skip all kernel threads drivers/firmware/efi/efi.c | 2 +- include/linux/mm.h | 2 +- include/linux/mm_types.h | 18 +++++++--- include/linux/percpu_counter_tree.h | 51 +++++++++++++++++++++++++++++ kernel/tsacct.c | 2 +- mm/init-mm.c | 5 ++- 6 files changed, 71 insertions(+), 9 deletions(-) -- 2.39.5