From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexei Starovoitov Subject: [PATCH v2 bpf-next 0/3] bpf: two stack check fixes Date: Mon, 25 Dec 2017 13:15:39 -0800 Message-ID: <20171225211542.3155576-1-ast@kernel.org> Mime-Version: 1.0 Content-Type: text/plain Cc: Daniel Borkmann , Jann Horn , , To: "David S . Miller" Return-path: Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:60638 "EHLO mx0b-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752914AbdLYVPo (ORCPT ); Mon, 25 Dec 2017 16:15:44 -0500 Received: from pps.filterd (m0109331.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id vBPLF9pC011243 for ; Mon, 25 Dec 2017 13:15:44 -0800 Received: from mail.thefacebook.com ([199.201.64.23]) by mx0a-00082601.pphosted.com with ESMTP id 2f2x42198a-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Mon, 25 Dec 2017 13:15:44 -0800 Sender: netdev-owner@vger.kernel.org List-ID: Jann reported an issue with stack depth tracking. Fix it and add tests. Also fix off-by-one error in MAX_CALL_FRAMES check. This set is on top of Jann's "selftest for late caller stack size increase" test. Alexei Starovoitov (3): bpf: fix maximum stack depth tracking logic selftests/bpf: additional stack depth tests bpf: fix max call depth check include/linux/bpf_verifier.h | 1 + kernel/bpf/verifier.c | 86 +++++++++++---- tools/testing/selftests/bpf/test_verifier.c | 156 ++++++++++++++++++++++++++++ 3 files changed, 225 insertions(+), 18 deletions(-) -- 2.9.5