From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrey Ignatov Subject: [PATCH bpf-next 0/3] bpf: Allow narrow loads with offset > 0 Date: Tue, 6 Nov 2018 17:23:25 -0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Cc: Andrey Ignatov , , , , To: Return-path: Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:47474 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388314AbeKGLPX (ORCPT ); Wed, 7 Nov 2018 06:15:23 -0500 Received: from pps.filterd (m0109334.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id wA71iuVg025532 for ; Tue, 6 Nov 2018 17:47:12 -0800 Received: from maileast.thefacebook.com ([199.201.65.23]) by mx0a-00082601.pphosted.com with ESMTP id 2nkpeg82e1-5 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Tue, 06 Nov 2018 17:47:12 -0800 Sender: netdev-owner@vger.kernel.org List-ID: This patch set adds support for narrow loads with offset > 0 to BPF verifier. Patch 1 provides more details and is the main patch in the set. Patches 2 and 3 add new test cases to test_verifier and test_sock_addr selftests. Andrey Ignatov (3): bpf: Allow narrow loads with offset > 0 selftests/bpf: Test narrow loads with off > 0 in test_verifier selftests/bpf: Test narrow loads with off > 0 for bpf_sock_addr include/linux/filter.h | 16 +------ kernel/bpf/verifier.c | 19 ++++++-- tools/testing/selftests/bpf/test_sock_addr.c | 28 ++++++++++-- tools/testing/selftests/bpf/test_verifier.c | 48 ++++++++++++++++---- 4 files changed, 78 insertions(+), 33 deletions(-) -- 2.17.1