From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Brakmo Subject: [PATCH net-next v2 0/6] bpf: Fix bugs in sock_ops samples Date: Fri, 10 Nov 2017 22:19:49 -0800 Message-ID: <20171111061955.615775-1-brakmo@fb.com> Mime-Version: 1.0 Content-Type: text/plain Cc: Alexei Starovoitov , Daniel Borkmann To: netdev Return-path: Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:46164 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751334AbdKKGUA (ORCPT ); Sat, 11 Nov 2017 01:20:00 -0500 Received: from pps.filterd (m0001303.ppops.net [127.0.0.1]) by m0001303.ppops.net (8.16.0.21/8.16.0.21) with SMTP id vAB6GVj7032296 for ; Fri, 10 Nov 2017 22:20:00 -0800 Received: from mail.thefacebook.com ([199.201.64.23]) by m0001303.ppops.net with ESMTP id 2e5u0vg47t-2 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Fri, 10 Nov 2017 22:20:00 -0800 Sender: netdev-owner@vger.kernel.org List-ID: The programs were returning -1 in some cases when they should only return 0 or 1. Changes in the verifier now catch this issue and the programs fail to load. This is now fixed. [PATCH net-next v2 1/6] bpf: Fix tcp_synrto_kern.c sample program [PATCH net-next v2 2/6] bpf: Fix tcp_rwnd_kern.c sample program [PATCH net-next v2 3/6] bpf: Fix tcp_bufs_kern.c sample program [PATCH net-next v2 4/6] bpf: Fix tcp_cong_kern.c sample program [PATCH net-next v2 5/6] bpf: Fix tcp_iw_kern.c sample program [PATCH net-next v2 6/6] bpf: Fix tcp_clamp_kern.c sample program samples/bpf/tcp_bufs_kern.c | 14 ++++++++------ samples/bpf/tcp_clamp_kern.c | 24 +++++++++++++----------- samples/bpf/tcp_cong_kern.c | 6 ++++-- samples/bpf/tcp_iw_kern.c | 14 ++++++++------ samples/bpf/tcp_rwnd_kern.c | 6 ++++-- samples/bpf/tcp_synrto_kern.c | 6 ++++-- files changed, 41 insertions(+), 29 deletions(-)