From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 1320E63410; Thu, 8 Feb 2024 06:24:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707373477; cv=none; b=GHx8FRO5OQWiqwnMES/S/sbBq2//X9GYhpFaH3JK3yRqEWyjVVOwPGjxFWs/brc9ZCXxprJwxy0uuJkVX/wJDUxjmEFDdAq7JL6alAGkGdxiJH81hvElSY+sYTdHiv9HR3kYhbyD3DsjcoumKLk1ehhuHWTnvuzDrMfk+uQ5I9Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707373477; c=relaxed/simple; bh=1gRee1fTWbTgSN2Dc7h9oxWcKfQYqM7+XvY08sPiR+U=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=ZI+ZXfeSvzw5Pjr8u/ywN7uKpsc/PV5Ek+9k23UE6eaQEUWLEWo2nSUKfHwy817x3tpMI9kecnvwckBT5ORE5T+1LhvfySwSawwQHDJVQVPD/KG4y8ZbRYx7iQ/xgZtKW8MH/zzUI/1FIlyN9qMdN0urfbfxQZ61QDiyxaO+8WE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=EpyvYrgJ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="EpyvYrgJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B8B6CC433F1; Thu, 8 Feb 2024 06:24:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707373476; bh=1gRee1fTWbTgSN2Dc7h9oxWcKfQYqM7+XvY08sPiR+U=; h=From:To:Cc:Subject:Date:From; b=EpyvYrgJCeVLYTgS1f1hbP4lbjuNrog8nx6jbrzzPMU0+ZkPz0NsWhQ/Z6raNc9cx zXhvErJ3SefBlRq7hUG7YhcBQTJOxXXbxpvRYQXEVarWlDJ11orWxG6Z0k0NNR0Bzd 1uMlVtc2EuETr9TZ6g4CYH7Pkbj/fJD+q3xi+deHgvZF3c+L+IhtKofzEZhpLBSlHf Y4DNqHDYvw05+Vr7UejGlJi0OwST9oFND5RydWtOG7gWorpO4cN1gCiqKJQGIjZziU d7hDGJzo2/6JnYmQRZDP7uwiQowL5bXlbZYRo4U4b33KGbzLXzmYht/UWx0COobbOd Sqc6Wqs4ygnKA== From: Geliang Tang To: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , Matthieu Baerts , Eduard Zingerman , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa Cc: Geliang Tang , bpf@vger.kernel.org, mptcp@lists.linux.dev, kernel test robot Subject: [PATCH bpf-next v5 0/3] bpf, btf: Add DEBUG_INFO_BTF checks for __register_bpf_struct_ops Date: Thu, 8 Feb 2024 14:24:20 +0800 Message-Id: X-Mailer: git-send-email 2.40.1 Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Geliang Tang v5: - drop CONFIG_MODULE_ALLOW_BTF_MISMATCH check as Martin suggested. v4: - add a new patch to fix error checks for btf_get_module_btf. - rename the helper to check_btf_kconfigs. v3: - fix this build error: kernel/bpf/btf.c:7750:11: error: incomplete definition of type 'struct module' Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202402040934.Fph0XeEo-lkp@intel.com/ v2: - add register_check_missing_btf helper as Jiri suggested. Geliang Tang (3): bpf, btf: Fix return value of register_btf_id_dtor_kfuncs bpf, btf: Add check_btf_kconfigs helper bpf, btf: Check btf for register_bpf_struct_ops kernel/bpf/btf.c | 39 ++++++++++++++++++--------------------- 1 file changed, 18 insertions(+), 21 deletions(-) -- 2.40.1