From patchwork Wed Feb 24 21:15:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Denhardt X-Patchwork-Id: 12102809 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 20B2BC433DB for ; Wed, 24 Feb 2021 21:23:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C488264F0C for ; Wed, 24 Feb 2021 21:23:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234146AbhBXVX4 (ORCPT ); Wed, 24 Feb 2021 16:23:56 -0500 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:49117 "EHLO out5-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231950AbhBXVXx (ORCPT ); Wed, 24 Feb 2021 16:23:53 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 458DA5C017E; Wed, 24 Feb 2021 16:22:47 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Wed, 24 Feb 2021 16:22:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zenhack.net; h= message-id:from:date:subject:to; s=fm2; bh=1Ly9Z4FtSPcyVLmga9dAH QavLPBrs0tXE249C6PMA54=; b=ntoeuzBt5q2L/DXG56XqASvDa9nNk/wY9KPC1 QwBZaTSs03Tp7+NdTr6kPiPMhOCPWa3L8UpGgobLGHtSdeeNQapwhgGlv/slIyX6 SNW+6JzrLwkR2r/Ek4TwuFdbGS/1g6DTOLkCEBMNuKfs/TpA/KppuURuqT3/5Det f8EdGn21+RZOiLN1PwSsNMRBtv9RWQSVVlK5Qlt6U3qEM5yDZ//YE85bwjuPDqml sQNjyPkOvRExvRz7/hlNJE8LyG0g7hlrh/Fp9pDFLNitRpuDPgEwn2iKnkFErZdB N9LOVCYXDmeLQEmFAlrZ82/cGHeB++7VTGJDHDf8XiLIdrkhg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=date:from:message-id:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=1Ly9Z4FtSPcyVLmga9dAHQavLPBrs0tXE249C6PMA54=; b=DybWK1r8 Cjx7t3q64IgusaI7m6hdPjoVhI3aWvqczpHilWHSVsMC0cJT9LwapfRwwwv5pqgD iW4Q2f6q3lGqE6k8/XL8jKh2JOjiLJgmUHkLIIl9he9SP/ssb6VXJn7hN7ZOmoKF qOUZ03wLMxT228mB3vgbFCIPGB7aLYmC6/+G/seccFqU734zdhT5JDE2bfUXQS6h 0gD8Emz7xuzMAd4IisLBpORjKynJ96fEB/VAJjmyTv6S+yz5IfbL6gHvtQbh7HAj vDskpRyJADiaL2iPjQchj/fcFz0ksowQdjcKQWJaCAVSoxjpDoYNPj4RltKzzKTU 5hsKc9Wx+kwXxA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrkeejgddugeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefkhfffuffvsedttdertddttddtne cuhfhrohhmpefkrghnucffvghnhhgrrhguthcuoehirghnseiivghnhhgrtghkrdhnvght qeenucggtffrrghtthgvrhhnpeffjedtveevhedvkedufedukeeikeeghfefudfhtefhge ejteeltdeiuefftdfffeenucffohhmrghinhepkhgvrhhnvghlrdhorhhgpdgvrhhrohhr shdrthhoohhlshenucfkphepuddttddrtddrfeejrddvvddunecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepihgrnhesiigvnhhhrggtkhdrnhgv th X-ME-Proxy: Received: from localhost (pool-100-0-37-221.bstnma.fios.verizon.net [100.0.37.221]) by mail.messagingengine.com (Postfix) with ESMTPA id 94E861080059; Wed, 24 Feb 2021 16:22:46 -0500 (EST) X-Mailbox-Line: From b36c61004609b6499992ec08c8b69a255ab9a55d Mon Sep 17 00:00:00 2001 Message-Id: From: Ian Denhardt Date: Wed, 24 Feb 2021 16:15:03 -0500 Subject: [PATCH 0/2] More strict error checking in bpf_asm (v2). To: ast@kernel.org, daniel@iogearbox.net, bpf@vger.kernel.org, netdev@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org Second pass at the patches from: https://lore.kernel.org/bpf/ef747c45-a68c-2a87-202c-5fd9faf70392@iogearbox.net/T/#t. Patches are the same, this just addes the Signed-off-by: lines as requested by Daniel Borkmann Ian Denhardt (2): tools, bpf_asm: Hard error on out of range jumps. tools, bpf_asm: exit non-zero on errors. tools/bpf/bpf_exp.y | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) --- 2.30.1