Commit 5784b791 authored by Hao Sun's avatar Hao Sun Committed by sanglipeng
Browse files

selftests/bpf: check null propagation only neither reg is PTR_TO_BTF_ID

stable inclusion
from stable-v5.10.165
commit 3093027183f2846365a76b2fb1e1309f1960084a
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7T7G4

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=3093027183f2846365a76b2fb1e1309f1960084a



--------------------------------

[ Upstream commit cedebd74 ]

Verify that nullness information is not porpagated in the branches
of register to register JEQ and JNE operations if one of them is
PTR_TO_BTF_ID. Implement this in C level so we can use CO-RE.

Signed-off-by: default avatarHao Sun <sunhao.th@gmail.com>
Suggested-by: default avatarMartin KaFai Lau <martin.lau@kernel.org>
Link: https://lore.kernel.org/r/20221222024414.29539-2-sunhao.th@gmail.com


Signed-off-by: default avatarMartin KaFai Lau <martin.lau@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 7aa915d5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment