From: David Miller Subject: Re: [PATCH bpf 5/9] bpf: restrict stack pointer arithmetic for unpriviledged Date: Tue, 01 Jan 2019 13:20:36 -0800 (PST) Message-ID: <20190101.132036.309861833852487033.davem@davemloft.net> References: <20190101204925.4584-1-daniel@iogearbox.net> <20190101204925.4584-6-daniel@iogearbox.net> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: ast@kernel.org, jannh@google.com, netdev@vger.kernel.org To: daniel@iogearbox.net Return-path: Received: from shards.monkeyblade.net ([23.128.96.9]:59994 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726248AbfAAVUh (ORCPT ); Tue, 1 Jan 2019 16:20:37 -0500 In-Reply-To: <20190101204925.4584-6-daniel@iogearbox.net> Sender: netdev-owner@vger.kernel.org List-ID: From: Daniel Borkmann Date: Tue, 1 Jan 2019 21:49:21 +0100 > Restrict stack pointer arithmetic for unpriviledged users in that > arithmetic itself must not go out of bounds as opposed to the actual > access later on. Therefore after each adjust_ptr_min_max_vals() with > a stack pointer as a destination we simulate a check_stack_access() > of 1 byte on the destination and once that fails the program is > rejected for unpriviledged program loads. This is analoge to map ^^^^^^^ Should be "analog".