From: Daniel Borkmann Date: Fri, 9 Nov 2018 08:16:32 +0000 (+0100) Subject: Merge branch 'bpf-max-pkt-offset' X-Git-Tag: v5.0-rc1~129^2~209^2~32 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=185067a86a789e490ab4e1bb97b97fb3e2c40066;p=tomoyo%2Ftomoyo-test1.git Merge branch 'bpf-max-pkt-offset' Jiong Wang says: ==================== The maximum packet offset accessed by one BPF program is useful information. Because sometimes there could be packet split and it is possible for some reasons (for example performance) we want to reject the BPF program if the maximum packet size would trigger such split. Normally, MTU value is treated as the maximum packet size, but one BPF program does not always access the whole packet, it could only access the head portion of the data. We could let verifier calculate the maximum packet offset ever used and record it inside prog auxiliar information structure as a new field "max_pkt_offset". ==================== Signed-off-by: Daniel Borkmann --- 185067a86a789e490ab4e1bb97b97fb3e2c40066