https://github.com/torvalds/linux
Revision a9789ef9afcb4fb0193f8dd94f2665ba3ad71e79 authored by Daniel Borkmann on 24 May 2017, 23:05:06 UTC, committed by David S. Miller on 25 May 2017, 17:44:27 UTC
Currently, after performing helper calls, we clear all caller saved
registers, that is r0 - r5 and fill r0 depending on struct bpf_func_proto
specification. The way we reset these regs can affect pruning decisions
in later paths, since we only reset register's imm to 0 and type to
NOT_INIT. However, we leave out clearing of other variables such as id,
min_value, max_value, etc, which can later on lead to pruning mismatches
due to stale data.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 1ad2f58
Raw File
Tip revision: a9789ef9afcb4fb0193f8dd94f2665ba3ad71e79 authored by Daniel Borkmann on 24 May 2017, 23:05:06 UTC
bpf: properly reset caller saved regs after helper call and ld_abs/ind
Tip revision: a9789ef
README
Linux kernel
============

This file was moved to Documentation/admin-guide/README.rst

Please notice that there are several guides for kernel developers and users.
These guides can be rendered in a number of formats, like HTML and PDF.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.
See Documentation/00-INDEX for a list of what is contained in each file.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.
back to top