Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp7513502rwp; Tue, 18 Jul 2023 17:07:37 -0700 (PDT) X-Google-Smtp-Source: APBJJlF4bzxOyyTpYVcDgqIYyeLLH1vesgGz5EpfQF2TApwd3zjvItVDC5LmvnMwzh2TwTtUXQ53 X-Received: by 2002:a05:6e02:12c5:b0:345:d6d4:f9f3 with SMTP id i5-20020a056e0212c500b00345d6d4f9f3mr770618ilm.17.1689725257580; Tue, 18 Jul 2023 17:07:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689725257; cv=none; d=google.com; s=arc-20160816; b=rK/01RLOnqj7SmZNi9Z0OIfgxCX0K0EvDDtqxz2cxKBbrjTqctd9D3W+xY+Pli7RwW i9U8Iy1BYHxPi7GjWYeBYLifwzUjK+XVozBM2WxVe2GfZe/EqGRRAGP4hWzR3pae7w1v n9r6gXM21VFWM+EcaBvxD5NSxdePZYLNcCnbECJ57XOk3A6P8uuMS+MSsJXvznfrc8Yj z94Za4s+0DkuJ9j+iqJeil08QIaPcKz1SedfAl6OWkLQNELwJhJP+PaUq5UHOhF5wRqS mV4UaDm2+vF9heZi+eVN7pB8KjW5pOi2lCThAroQH6Tw5w7PeEiFuPk1G9LSnh28dtsj tgxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=HEoYxr1Q0eWhCNbZroe0oS5/iqjnBEypxbEtpRyC30M=; fh=p4VmqjMceWI3/eUm5U6fvhE8E3aaa4Bq6UDT/AHBGZQ=; b=BT1QHix1S+KG/dudaLI2W+HbpNL3PyvQdi8kBSbv6HE/1q1wWuhq3SO8zrQFRXz+SA QuXaVZ28DEq3oMzK9j8UW5gF7foPw81a0i0IR6r9gJqVXK9zR86sYlO/uytXOnq8Uwl1 naeSOvwaHULn5OfxVgmtxlYgLojBHbS4oPj4V5S9JhwFEXj6kF2XG3O0rwOz8i7AWBei aRA5D/+Qu7ZXBjBq20VKD9Ck0FaNC2MSexxvex6i8ZjTRlYgXMuOvH/bOsv4aOdzylmx tyMx18if1CZoUP2gXVj2TaDgxCg+clZ+Np54+CfCilGj82xGXBSvGBfBYb1oLagULyGT fzlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NAmWFf48; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c5-20020a17090ad90500b0025ea1c0edb1si258261pjv.146.2023.07.18.17.07.25; Tue, 18 Jul 2023 17:07:37 -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=@kernel.org header.s=k20201202 header.b=NAmWFf48; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230041AbjGRXVm (ORCPT + 99 others); Tue, 18 Jul 2023 19:21:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229485AbjGRXVl (ORCPT ); Tue, 18 Jul 2023 19:21:41 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A65CED; Tue, 18 Jul 2023 16:21:40 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 05EE6612F1; Tue, 18 Jul 2023 23:21:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C452BC433C7; Tue, 18 Jul 2023 23:21:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689722499; bh=HEoYxr1Q0eWhCNbZroe0oS5/iqjnBEypxbEtpRyC30M=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=NAmWFf48pDjTN0vrH0Bh7fepD3FgNjpV1rFfrKYuuo3rh7rJlLlrqL5YMbW7+PPxY AvJAPRnvHR5uQGuP3U5CIFgcc6tC3IfE2V0EvKqPBU0rOoT8k6oD716Vy1b/NB2v9I nzMyzLqLv8d1eboalUc0lQGeYWUO0e+jdRvsF0wNbGSVlwh/6w/6QGniLUTPT9hqgO O811FVTe7oLRUvOBXllvcT7gmqCP54bmMAJVMHp4F1jq+svwlkzny1Xb5xzEGLdrHt l5JuV5pvFrcFGslsE58y6E8sR5MzZiYkLx76CHbbCQGwuUAoNyWebzD5kuoq3LRWX0 eXyE36/DOay1Q== Date: Tue, 18 Jul 2023 16:21:38 -0700 From: Jakub Kicinski To: Alexei Starovoitov 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 Subject: Re: [PATCH v2 1/3] bpf: Allow NULL buffers in bpf_dynptr_slice(_rw) Message-ID: <20230718162138.24329391@kernel.org> In-Reply-To: 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> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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, 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!