Commit 04b05d5f authored by Brenden Blanco's avatar Brenden Blanco Committed by Sasha Goldshtein

Fix for verifier failure in wakeuptime

On my system, the manually unrolled stack walker fails the verifier, due
to what seems to me like an incorrect return statement. Setting bp = 0
has no effect, seems that the intent was to return 0 instead.

Not sure why others haven't hit this, but the fix contained here seems
reasonable.
Signed-off-by: default avatarBrenden Blanco <bblanco@gmail.com>
parent 75eef2c1
......@@ -81,7 +81,7 @@ static u64 get_frame(u64 *bp) {
if (bpf_probe_read(&ret, sizeof(ret), (void *)(*bp+8)))
return 0;
if (bpf_probe_read(bp, sizeof(*bp), (void *)*bp))
bp = 0;
return 0;
if (ret < __START_KERNEL_map)
return 0;
return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment