From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qv1-f47.google.com (mail-qv1-f47.google.com [209.85.219.47]) (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 B04CE2D238F for ; Sat, 28 Feb 2026 21:26:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772313968; cv=none; b=Lcm8TLBEG84sLhVZ45VfBXi0sIya4JlDUdQEjVIacLTErT7Vb8ccvqSHKlwnIQnlW7w6upG0qGonffS21yh4XOf/j76hJKZ/JjTNNKq3VbqWn6aUQDZ1t8QDYbl/NjWIH+GFriHBw9FKRU+zVz63qs3ZGZLxEwZTvxZouo79UBQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772313968; c=relaxed/simple; bh=47ANglfpJaT9gxs4Ja0c8tB6Igre4d/I8jTE/gJ4xwU=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=fgea5+dXnf1e/IMpr/PS31M3G7dYhfVnoIEh7P1RvIbG23xou3UBJnHLLi18pG5T33Yr6qZathqIbI8NVZMyPMMb+mEjhMq8Z08cLkFsIX8q5/asEjPPSeL1JGQQHE/w2Vp2+21aKPFw3xwvGTahgjyx8cIrDugZeQR0E7Vdcrg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=etsalapatis.com; spf=pass smtp.mailfrom=etsalapatis.com; dkim=pass (2048-bit key) header.d=etsalapatis-com.20230601.gappssmtp.com header.i=@etsalapatis-com.20230601.gappssmtp.com header.b=bxj/dmtp; arc=none smtp.client-ip=209.85.219.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=etsalapatis.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=etsalapatis.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=etsalapatis-com.20230601.gappssmtp.com header.i=@etsalapatis-com.20230601.gappssmtp.com header.b="bxj/dmtp" Received: by mail-qv1-f47.google.com with SMTP id 6a1803df08f44-899ee491af3so2833406d6.1 for ; Sat, 28 Feb 2026 13:26:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=etsalapatis-com.20230601.gappssmtp.com; s=20230601; t=1772313965; x=1772918765; darn=vger.kernel.org; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=nihN1Pv89Y5xMabUVLFDrUWeZpS1i87V0sy0blxBCWQ=; b=bxj/dmtpLctyN001I+rson+kTAfIE8ALAwtDio5SHHwQEN//U6FueiPAHIouh7JH1r cPQqk4aQQQ1XqwYCrzaW1MQ36Wx08eIylYXxZ6Z49GpWqHpJ/t1esKeiJU8PNFxlVHku EXmSTPIAIESFNNPQgOqm6PI75sTlr1c8GSOVoVTQu4JBKla7j3/+RX+aMJbCf9DYDFCa ETKhy7b3VA/RoWtXtg4rSR1V2jecj/sbGdwHYeZO60E8OGbW9fIjQSQftamrSnCdOuF0 OnWSjmqw/42wzL7hpjizCk+KdhVLjfQLJ9y0/3DVeGWQyPzW2miNbAEfPQ+hwCpzW+Qv yaiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772313965; x=1772918765; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=nihN1Pv89Y5xMabUVLFDrUWeZpS1i87V0sy0blxBCWQ=; b=PCjZ1eQd2Z2wCcTdcHrbtLdrYZw+vgHc2qAWKJd51/COWNNDit5BiwXPUWHi0ad3Yw OAKmMBqtzZhHd4ploNah55jYYCKiSrAKja4W8ew5yOpZulgMAs9KhYJmx/ZUoKxHW8+y sW3p+45E1cI7hnLbDuqEoZ1bw9Tb5TUqRGyqR8rvwJ5ZuzHQyH+aH4S9Zfy5rV5bhPAN aqndFwlIFxn+uo+XtxoZrRI7NeTuonKHCbgSCQusctsQ9Vt3B3AI6VKTEgTRA/ASc8Et eNs7OC17q5XQlNp1pxZbNxvTjpGSeO5FmEzXCxF5NKfUczFOXLT+XuBAcSTVFQQPdbnn 3A0w== X-Forwarded-Encrypted: i=1; AJvYcCUmtuzqK835GsxIhpXgwd/fdOR1g2/krOLuJ49qY+n6TvoG/w/PdxGeg3GxEtVpYxFeL9Gvt39F3aPZOfw=@vger.kernel.org X-Gm-Message-State: AOJu0Yxg09BcjTXH7E4Dndy3CHWeXSjmEq2cIWG/H2JvepziG+CbAkHc XnHfqMf4Tcv5OTXxXSMzkKuVNdo0ZdDQoBKImtxV+ZPOkqkQGACPcLI/9xbEjlAcj1Q= X-Gm-Gg: ATEYQzzwVzu0K0pt/O+46fGJ3sCaEDIxq5rpvb/sox3cN/fZ+LIWACE3iZ9dBvSio8O B0SbqdYJW5ostioRMa8PFEQSLCq/HEECkt1C8EUbGgCgGSllhPUgbR2R4D62y9hvQfQDO0Yqt5S mOe9eml8b2229SzXa5xqG05Lye39xO53AcBuvGBJDXlfccIyOCDR5oIWyXBbwGHmCR/sLD216Jj 6tmoURqaLS5nffpmJGAu3VYrG/F2gsMvWGaQc0ZOPtgUn1ci7mWSHjePXWW+BArt2n0aZGiDMSq ulngEOxerotyoxsa66nWUd0Pil9ScR73iSqweqOUwIIbTIF4LzCje8aLJOELptvCQFV2UgRFdC6 K7R/iHZNfoNKkImFAd+zHqkRNnjyGggsAiDgOsnmB5b29cHQ7h5DSGWQ+QocB6x1eQqvYWo0E2B t/5qqVvYONKfwrVJWEpDi+4NjRrhPTSw1Wlg== X-Received: by 2002:a05:622a:203:b0:4ff:8da6:2289 with SMTP id d75a77b69052e-507528d2b3bmr92975801cf.27.1772313965464; Sat, 28 Feb 2026 13:26:05 -0800 (PST) Received: from localhost ([140.174.219.137]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-5074481c0e5sm84462561cf.0.2026.02.28.13.26.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 28 Feb 2026 13:26:05 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Sat, 28 Feb 2026 16:26:03 -0500 Message-Id: Cc: "Hui Zhu" Subject: Re: [PATCH bpf-next v3 0/3] Fix test_cgroup_iter_memcg issues found during back-porting From: "Emil Tsalapatis" To: "Hui Zhu" , "Alexei Starovoitov" , "Daniel Borkmann" , "Andrii Nakryiko" , "Martin KaFai Lau" , "Eduard Zingerman" , "Song Liu" , "Yonghong Song" , "John Fastabend" , "KP Singh" , "Stanislav Fomichev" , "Hao Luo" , "Jiri Olsa" , "Shuah Khan" , "JP Kobryn" , "Roman Gushchin" , , , X-Mailer: aerc 0.20.1 References: In-Reply-To: On Sat Feb 28, 2026 at 2:11 AM EST, Hui Zhu wrote: > From: Hui Zhu > > While back-porting "mm: bpf kfuncs to access memcg data", I > encountered issues with test_cgroup_iter_memcg, specifically > in test_kmem. > > These patches are my fixes for the problems I encountered. > Nit: Could you be a bit more descriptive about the series' contents? Cover letters normally focus on what what the patch does - for example the issues being found during backporting is not pertinent to the patchset= =20 itself, because the issues are still present on bpf-next. > Changelog: > v3: > According to the comments of JP Kobryn, remove kmem subtest from > cgroup_iter_memcg and fix assertion string in test_pgfault. > v2: > According to the comments of JP Kobryn, added bpf_core_enum_value() > usage in the BPF program to handle cross-kernel enum value differences > at load-time instead of compile-time. > Dropped the mm/memcontrol.c patch. > Modified test_kmem handling: instead of skipping when nokmem is set, > verify that kmem value is zero as expected. > According to the comments of bot, fixed assertion message: changed > "bpf_mem_cgroup_page_state" to "bpf_mem_cgroup_vm_events" for PGFAULT > check. > > Hui Zhu (3): > selftests/bpf: Remove kmem subtest from cgroup_iter_memcg > bpf: Use bpf_core_enum_value for stats in cgroup_iter_memcg > selftests/bpf: Check bpf_mem_cgroup_page_state return value > > .../testing/selftests/bpf/cgroup_iter_memcg.h | 2 - > .../bpf/prog_tests/cgroup_iter_memcg.c | 38 +++++-------------- > .../selftests/bpf/progs/cgroup_iter_memcg.c | 18 ++++++--- > 3 files changed, 22 insertions(+), 36 deletions(-)