From nobody Sat Feb 7 14:53:35 2026 Received: from out-176.mta1.migadu.com (out-176.mta1.migadu.com [95.215.58.176]) (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 B5AD33FBA7 for ; Wed, 7 Jan 2026 02:26:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.176 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767752765; cv=none; b=Bain7Xx07QYaGyWF7MzY4jKTImr/PcAKKzWCivf10CzRRTu2Pr/f40W5h341v26+kWOKJtYAguqvcPmvMz2SaZUDpM/1CiJ1zcCF9lsYD5JUFasJRAvz61km6L826s+M9xFnwJjGO4hVHWxNIJL0I+O9Im2aZYkhZbJ4+2tbrIA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767752765; c=relaxed/simple; bh=6yToe/4XPVFpSULq2xyCY6GpCp4EcBzMCKcpfk2HEAo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=AaATqY25vPznllPeniSyH9ryZuAHwuEZhnPvavzJCia0ftDiNcnlAfwUyI0T/gmSHalSYoy8gTcAl6IOsJj4BNWe6ukTHuSpvZSuVALIcLsz/db5ltxyGtPHTVMOrPY5l812TTcrAD5/EMr6dSI6HvN7CFdVqn6d8fI4DUOkfkc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=SVfaM9w9; arc=none smtp.client-ip=95.215.58.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="SVfaM9w9" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1767752760; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tlSBVw0uGZ4K2Sh6TYpsMWOlO6HjrG+uoe4h85OutcI=; b=SVfaM9w9ODskm8HLDjUrRMmbe7fYwwe1XI1r8jO5g+Eti5yxdVoXDDgFxBWk7G682jQENa jLTZ4zTbapUUvyodmLnRQfqbtzgxm9CuMSDVciOEXJqzWkIe1iKGdVFZmr4k9A3aP2fIsD +z06EyRRI7Fssc/XTB3ylAwDDLCJ/vo= From: Leon Hwang To: bpf@vger.kernel.org Cc: Alexei Starovoitov , Andrii Nakryiko , Daniel Borkmann , Jiri Olsa , Yonghong Song , Song Liu , Eduard Zingerman , Martin KaFai Lau , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Shuah Khan , Jason Xing , Willem de Bruijn , Mykyta Yatsenko , Tao Chen , Kumar Kartikeya Dwivedi , Anton Protopopov , Amery Hung , Tobias Klauser , Rong Tao , dxu@dxuuu.xyz, deso@posteo.net, Leon Hwang , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kernel-patches-bot@fb.com Subject: [PATCH bpf-next v13 4/7] bpf: Copy map value using copy_map_value_long for percpu_cgroup_storage maps Date: Wed, 7 Jan 2026 10:20:19 +0800 Message-ID: <20260107022022.12843-5-leon.hwang@linux.dev> In-Reply-To: <20260107022022.12843-1-leon.hwang@linux.dev> References: <20260107022022.12843-1-leon.hwang@linux.dev> 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 X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" Copy map value using 'copy_map_value_long()'. It's to keep consistent style with the way of other percpu maps. No functional change intended. Signed-off-by: Leon Hwang --- kernel/bpf/local_storage.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/kernel/bpf/local_storage.c b/kernel/bpf/local_storage.c index c93a756e035c..2ab4b60ffe61 100644 --- a/kernel/bpf/local_storage.c +++ b/kernel/bpf/local_storage.c @@ -200,8 +200,7 @@ int bpf_percpu_cgroup_storage_copy(struct bpf_map *_map= , void *key, */ size =3D round_up(_map->value_size, 8); for_each_possible_cpu(cpu) { - bpf_long_memcpy(value + off, - per_cpu_ptr(storage->percpu_buf, cpu), size); + copy_map_value_long(_map, value + off, per_cpu_ptr(storage->percpu_buf, = cpu)); off +=3D size; } rcu_read_unlock(); @@ -234,8 +233,7 @@ int bpf_percpu_cgroup_storage_update(struct bpf_map *_m= ap, void *key, */ size =3D round_up(_map->value_size, 8); for_each_possible_cpu(cpu) { - bpf_long_memcpy(per_cpu_ptr(storage->percpu_buf, cpu), - value + off, size); + copy_map_value_long(_map, per_cpu_ptr(storage->percpu_buf, cpu), value += off); off +=3D size; } rcu_read_unlock(); --=20 2.52.0