From patchwork Thu Apr 22 23:55:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florent Revest X-Patchwork-Id: 12219255 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=-13.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT 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 C412DC433ED for ; Thu, 22 Apr 2021 23:56:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 827BD61445 for ; Thu, 22 Apr 2021 23:56:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239782AbhDVX5C (ORCPT ); Thu, 22 Apr 2021 19:57:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236763AbhDVX5C (ORCPT ); Thu, 22 Apr 2021 19:57:02 -0400 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA4A9C06174A for ; Thu, 22 Apr 2021 16:56:26 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id c15so37566490wro.13 for ; Thu, 22 Apr 2021 16:56:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ALCAFiUi51S3PIdvclw/G9XXE9DLJXb5Z0T/S+Z9JLs=; b=GCQef4VLrFhvFv+OgYmsX8RdjQi9ktkHCD0HZSwyqJ3r3j/C59nkSrJNpM/TcIeBnr wgQe5isVAX3vGx+VgaQcI24nNZYSDp8ropHT0fvNnEeSkMZNhAdYT8DQfrBa5csFCaRc xnCsqy8iB2xgonGjcrgVcFCz9zKi824RAgcVg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ALCAFiUi51S3PIdvclw/G9XXE9DLJXb5Z0T/S+Z9JLs=; b=aAJpL1JI0zVzC82AR0KcnNxFP3+98p8c1ei5BIr3w2KH2cixJmd+BUZVKHG9n+LFRX LQ4jsMO0rcrDe70uYPQk0UvwGddXz1hOnQvFOBqgUQfY7zytdP5t6XjwsF5UrszdqQ58 ielaWS7bIiVYlDUpgor0nXsZ+or9B2ga2cQIDBCQ1IARprB6aWt7QujiZMT9ICQNWrGb CbGeVB9U6lAv+8Ci4WNbbkUJ96c72enrxmpUvMxwFOExzkaC1f7rYHIgm3eBy8MuQ943 P5VDa10gU2y16N8KZPI1x2A6cpoH6xc4uIvK3phBILdps6BhKnkAnPxZfMbFikSpDS4w nu0Q== X-Gm-Message-State: AOAM533e8yiPOIDGWuOnHbK+lvHjp9y5LcfuBd+3A+kA5a6FydKvogWU ITkhi6Hi61cGkqNjeJshC2uNMISQm1RPCg== X-Google-Smtp-Source: ABdhPJzMo+/+ZyfE2xB1HTD087GbozYxjaAyTKEQlbzim1QNxtKOFGYbyUGAPajN3IM3w8hQ9wHf1w== X-Received: by 2002:adf:de08:: with SMTP id b8mr915225wrm.279.1619135785413; Thu, 22 Apr 2021 16:56:25 -0700 (PDT) Received: from revest.zrh.corp.google.com ([2a00:79e0:61:302:e4b7:67ca:7609:a533]) by smtp.gmail.com with ESMTPSA id t20sm8201149wmi.35.2021.04.22.16.56.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Apr 2021 16:56:25 -0700 (PDT) From: Florent Revest To: bpf@vger.kernel.org Cc: ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, kpsingh@kernel.org, jackmanb@google.com, linux-kernel@vger.kernel.org, Florent Revest Subject: [PATCH bpf-next 0/2] Simplify bpf_snprintf verifier code Date: Fri, 23 Apr 2021 01:55:41 +0200 Message-Id: <20210422235543.4007694-1-revest@chromium.org> X-Mailer: git-send-email 2.31.1.498.g6c1eba8ee3d-goog MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org X-Patchwork-Delegate: bpf@iogearbox.net Alexei requested a couple of cleanups to the bpf_snprintf and ARG_PTR_TO_CONST_STR verifier code. https://lore.kernel.org/bpf/CABRcYmL_SMT80UTyV98bRsOzW0wBd1sZcYUpTrcOAV+9m+YoWQ@mail.gmail.com/T/#t Florent Revest (2): bpf: Notify user if we ever hit a bpf_snprintf verifier bug bpf: Remove unnecessary map checks for ARG_PTR_TO_CONST_STR kernel/bpf/verifier.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)