Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp7485866rwp; Tue, 18 Jul 2023 16:34:50 -0700 (PDT) X-Google-Smtp-Source: APBJJlEfbAHmQCHbTjZHjIQgX7zwN+rrfyB6U55x2qmEmd7xsJ7Pg/Ck6ywqL/TkOpAOn+I7weUf X-Received: by 2002:a05:6a20:7da9:b0:133:f0a8:fb60 with SMTP id v41-20020a056a207da900b00133f0a8fb60mr12432600pzj.15.1689723289697; Tue, 18 Jul 2023 16:34:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689723289; cv=none; d=google.com; s=arc-20160816; b=KyZ2fejAdByUfafXipsnpQpYjTm8XiR7RGC54uxIFpVYa96MuA+bVnST0Lz52sKwDd ViO5d/6HNDbkWufZBeqVhu2n1xaHQx7cu5TGlIzNnd+0Ge9eb8WDBBMT+9EhrxK8rjm5 776GAFiqSF3rM7I2253PWVdMXZIBPCzvWdsAPqY8jBVEPSf+ixeKgltvs2AwwGxiaRj1 IjUkmF+9fK2aIdgAvo9MIqEzICHhl0JOd3sZ9qn786Bw2qa21kBiUXqbOpgI0L41qZ5m SKdfCiY5YArEQLrJYguaokZ36l4bkhsTUUJxZI2JqAI0/l3dNOj/ZFiSK8SBqYOAJiMv 7MbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=2owPjOsknzvkS4L5ZSPonWRfNu9HLT/sQNV5ahQc2RA=; fh=5qA7X02o2skGitbAtY8yZLK4fmfA4uYoZfE1Tm/5VXw=; b=Em3IbL9XoGypRNyi243M+pAIczFBnL+W8t5NBaG/f+iyfKl2gwKDzUbF3GhfYNeg34 84W7FV3rUZlaPZCG0iF0HRts/2U4sHwi+mdr2LCHwLIDhvxTjUakmu/c9VbbrL46ExAp 9g0WR1Cf7bAbA6yZYzi0wLRxvGIclUbTS5rDfw8Mrf7lf8soTDJJEyvEomx/1rAySUr0 mYOiZBM7Z0FI645WFqcMA9FSw74qwMMcs8BhGFu5CXbcJNzH1BaQBC6OsSxTC3B2UlRG rCEP7Q4/+xGSQAMvmvMt4SBpyS/v71Nv6BR8dXn/6S+AZBPynKbOCoAMIcBxowEhFk+6 USHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=Q82+ha22; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l12-20020a63ea4c000000b0055771146c25si2240446pgk.896.2023.07.18.16.34.30; Tue, 18 Jul 2023 16:34:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=Q82+ha22; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230053AbjGRXW6 (ORCPT + 99 others); Tue, 18 Jul 2023 19:22:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230107AbjGRXWw (ORCPT ); Tue, 18 Jul 2023 19:22:52 -0400 Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B20C0EC; Tue, 18 Jul 2023 16:22:51 -0700 (PDT) Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2b933bbd3eeso62163061fa.1; Tue, 18 Jul 2023 16:22:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689722570; x=1692314570; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=2owPjOsknzvkS4L5ZSPonWRfNu9HLT/sQNV5ahQc2RA=; b=Q82+ha22FbALhLDWrrhpK9q5yMPG07MW8A2B5DYAvE9QNdMmkNHG8ZCQ2QNjwGPOYq 4iwCYgaYSz0Sjpr/BrsOlMBV7Xo99Yh5FDSS4s/xj/cCCKV3U1D2vdzm6g6DfwwgSRCu 6LnpYWW9mHhSN1CIErqmBNlS0g90YJIy7Z/UEUxNgSVzJXxyPvCnhtLWV2LjHTpf/rHi 4oXiNRRLNecG9RNKDzM9wl+6iqQb+U1DkAt99x7ANLE8t64/LH06O5309AXv8OV8DuNa 4en/Vq/3weqoGCge6bhdXi/LdWOA1zcDnKmpwHp7M9Zu3XM0M0uE3v0QAJm6OmoqV2sT XyHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689722570; x=1692314570; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2owPjOsknzvkS4L5ZSPonWRfNu9HLT/sQNV5ahQc2RA=; b=V3eHn3LiaXiZRZoD6ZQXGnD8KNhjXKAO2A4QWNDA6O0khP4jl/hxkMrEO1vDkHuopX N1CyqbteQ4yeB7wrVq1L4o1vjS6pxtH3E7Ku2tsUzanFOSGNmtZ0g9JabwWaH66R5X5J pZ/TzoRJO/pKSMMCOYjNQSgFGxCMz8ArDNzqrfJC04urAYjFietGOF6qRDV7c8C6xc3h irimVrjubBfCmoxN9nsgUJlQpJVl/5/Jdm6karK4nLqN6ds5GA+JMbZH6dBnKUOpbLGU omQ+/4Xxv2eJeLQ8+H7xlIO/gc16d34W89GKBTxO9a1Ek/9JUfsYPuKnAx/nbW4OmKi/ HNAw== X-Gm-Message-State: ABy/qLYD59CKGAa/Ys8++oWLthPW5YIl7GAdfUGY+JBo6G6JkA+2Sab1 jTo4HCPePuDAe+RPAWaH0s/9IPajZOP+/z6wsyk= X-Received: by 2002:a2e:80ca:0:b0:2b4:6eb0:2a27 with SMTP id r10-20020a2e80ca000000b002b46eb02a27mr15608676ljg.17.1689722569556; Tue, 18 Jul 2023 16:22:49 -0700 (PDT) MIME-Version: 1.0 References: <20230502005218.3627530-1-drosen@google.com> <20230718082615.08448806@kernel.org> <20230718090632.4590bae3@kernel.org> <20230718101841.146efae0@kernel.org> <20230718111101.57b1d411@kernel.org> <20230718160612.71f09752@kernel.org> <20230718162138.24329391@kernel.org> In-Reply-To: <20230718162138.24329391@kernel.org> From: Alexei Starovoitov Date: Tue, 18 Jul 2023 16:22:38 -0700 Message-ID: Subject: Re: [PATCH v2 1/3] bpf: Allow NULL buffers in bpf_dynptr_slice(_rw) To: Jakub Kicinski Cc: Daniel Rosenberg , bpf , Alexei Starovoitov , Daniel Borkmann , John Fastabend , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Shuah Khan , Jonathan Corbet , Joanne Koong , Mykola Lysenko , LKML , "open list:KERNEL SELFTEST FRAMEWORK" , Android Kernel Team Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 18, 2023 at 4:21=E2=80=AFPM Jakub Kicinski wr= ote: > > On Tue, 18 Jul 2023 16:17:24 -0700 Alexei Starovoitov wrote: > > Which would encourage bnxt-like hacks. > > I don't like it tbh. > > At least skb_pointer_if_linear() has a clear meaning. > > It's more run-time overhead, since buffer__opt is checked early, > > but that's ok. > > Alright, your version fine by me, too. Thanks! ok. will send it officially soon.