Thread (24 messages) 24 messages, 3 authors, 2020-01-08

Re: [PATCH bpf-next v3 04/11] bpf: Support bitfield read access in btf_struct_access

From: Yonghong Song <hidden>
Date: 2020-01-02 18:05:05
Also in: bpf


On 12/30/19 10:20 PM, Martin KaFai Lau wrote:
This patch allows bitfield access as a scalar.

It checks "off + size > t->size" to avoid accessing bitfield
end up accessing beyond the struct.  This check is done
outside of the loop since it is applicable to all access.

It also takes this chance to break early on the "off < moff" case.

Signed-off-by: Martin KaFai Lau <redacted>
Acked-by: Yonghong Song <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help