Commit e1ddaa5
bpf/tests: Fix error in tail call limit tests
[ Upstream commit 18935a7 ]
This patch fixes an error in the tail call limit test that caused the
test to fail on for x86-64 JIT. Previously, the register R0 was used to
report the total number of tail calls made. However, after a tail call
fall-through, the value of the R0 register is undefined. Now, all tail
call error path tests instead use context state to store the count.
Fixes: 874be05 ("bpf, tests: Add tail call test suite")
Reported-by: Paul Chaignon <paul@cilium.io>
Reported-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Johan Almbladh <johan.almbladh@anyfinetworks.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Tested-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Link: https://lore.kernel.org/bpf/20210914091842.4186267-14-johan.almbladh@anyfinetworks.com
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 739b927 commit e1ddaa5
1 file changed
Lines changed: 27 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8992 | 8992 | | |
8993 | 8993 | | |
8994 | 8994 | | |
| 8995 | + | |
8995 | 8996 | | |
8996 | 8997 | | |
8997 | 8998 | | |
8998 | 8999 | | |
| 9000 | + | |
| 9001 | + | |
| 9002 | + | |
| 9003 | + | |
8999 | 9004 | | |
9000 | 9005 | | |
9001 | 9006 | | |
| |||
9065 | 9070 | | |
9066 | 9071 | | |
9067 | 9072 | | |
9068 | | - | |
9069 | | - | |
| 9073 | + | |
| 9074 | + | |
| 9075 | + | |
9070 | 9076 | | |
9071 | 9077 | | |
9072 | 9078 | | |
9073 | | - | |
| 9079 | + | |
| 9080 | + | |
9074 | 9081 | | |
9075 | 9082 | | |
9076 | 9083 | | |
9077 | 9084 | | |
9078 | | - | |
| 9085 | + | |
| 9086 | + | |
| 9087 | + | |
9079 | 9088 | | |
9080 | | - | |
9081 | 9089 | | |
9082 | 9090 | | |
9083 | | - | |
| 9091 | + | |
| 9092 | + | |
9084 | 9093 | | |
9085 | 9094 | | |
9086 | 9095 | | |
9087 | 9096 | | |
9088 | | - | |
| 9097 | + | |
| 9098 | + | |
| 9099 | + | |
9089 | 9100 | | |
9090 | | - | |
9091 | 9101 | | |
9092 | 9102 | | |
9093 | | - | |
| 9103 | + | |
| 9104 | + | |
9094 | 9105 | | |
9095 | 9106 | | |
9096 | 9107 | | |
| |||
9196 | 9207 | | |
9197 | 9208 | | |
9198 | 9209 | | |
| 9210 | + | |
| 9211 | + | |
9199 | 9212 | | |
9200 | 9213 | | |
9201 | 9214 | | |
| |||
9212 | 9225 | | |
9213 | 9226 | | |
9214 | 9227 | | |
9215 | | - | |
| 9228 | + | |
| 9229 | + | |
| 9230 | + | |
| 9231 | + | |
| 9232 | + | |
9216 | 9233 | | |
9217 | 9234 | | |
9218 | 9235 | | |
| |||
0 commit comments