From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1921E438E0; Tue, 16 Jan 2024 17:40:09 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9509A40278; Tue, 16 Jan 2024 17:40:08 +0100 (CET) Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) by mails.dpdk.org (Postfix) with ESMTP id E3F90400D6 for ; Tue, 16 Jan 2024 17:40:06 +0100 (CET) Received: by mail-pj1-f47.google.com with SMTP id 98e67ed59e1d1-28e82c39e69so391305a91.3 for ; Tue, 16 Jan 2024 08:40:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1705423206; x=1706028006; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=X+x++HVWhghECicYhHjnF25RjjLFi+9S+M++P6aV5YE=; b=QkawGCUJK8uD4FPNSWqQy+8GFj3grARqrqOP0Cticpth0EYahtLC0ZhRKTXSLgv7Dx 6+PXalySxaGCNJvcNxux4evT47r3TRvSGvn9lAFHk3x7W3Y/Fi+YWf89OliW+5drxomL DGckvgFcoXnWI5X6wGWRySgZm6jnqEP+bF+9ednpnttlKUNf6yaZI16/jMMIrjsnHnm6 rZxkXa9qwHjyudFcvmy8AvU/33IJEyUZifpv6HpzMt+oewZnZlXnN3DKYBwq6T/DNdLQ hJR7lEvrJEmhaAakz7u0ZraaKr1dH2m0+0r58I7T7oDd0nayNLTPhRp3VNSA2KHIiU6j 34Kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705423206; x=1706028006; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=X+x++HVWhghECicYhHjnF25RjjLFi+9S+M++P6aV5YE=; b=XhKsyfNT1IHFcPMpuLWLWwnGf2Gr0yE82Ib0kKCGbtl+DeGIYr+M2Q0gO3KofkllD8 aEalkPFKYkit2UADQZ0wwmTtUtPpkGnLsiUZLl7YicW7Ykdz2TFC2ukZySPyu6a2q62t TNmIakkJzmTWZCApWZf7svdbXxw78WfeyK+B6xEJ15V7kAohuzVkOGdvUE4JK7zWprva 77RMRHXT8SIIuX2k0Fd17+361rswmkTDyKS76qtcYcxV7jlQONjkOg+6aAeR4MOh28HX wyGXf6kJfyYtfpmX6iK+LJIYY0rVtL5ShTeUCUPe3T8oJqLKy4o+7uKKURqVp+9J+F1x qvdw== X-Gm-Message-State: AOJu0YzC5OTvwT2idzd27R/iUv1xHheRcKhV+ufcrSVKGF7LHjSeHUrc QSPVd5BYIs3a2+9OIqBgBeZSQGeOJ4VKKA== X-Google-Smtp-Source: AGHT+IF6v2Iz8/jVolvecRDVm4M3Lp+Baj6EUXW5k+yOsKJd7NJNwYkA6nVegLC1rAanzFKNrqTBuA== X-Received: by 2002:a17:90a:f3c8:b0:28c:2623:c31a with SMTP id ha8-20020a17090af3c800b0028c2623c31amr4062119pjb.94.1705423205968; Tue, 16 Jan 2024 08:40:05 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id h3-20020a170902f70300b001d5a5a5e649sm7748807plo.273.2024.01.16.08.40.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 08:40:05 -0800 (PST) Date: Tue, 16 Jan 2024 08:40:04 -0800 From: Stephen Hemminger To: Madhuker Mythri Cc: "dev@dpdk.org" , "ferruh.yigit@amd.com" Subject: Re: [External] : Re: [PATCH] net/tap: Modified TAP BPF program as per the Kernel-version upgrade requirements. Message-ID: <20240116084004.146bcf9d@hermes.local> In-Reply-To: References: <20240112134821.2067-1-madhuker.mythri@oracle.com> <20240112084224.5121cce4@hermes.local> <20240113100607.389c9ba6@hermes.local> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Tue, 16 Jan 2024 05:43:00 +0000 Madhuker Mythri wrote: > Hi Stephen, > > Yes, I found that the Kernel we use has more Verification added for safe execution: > https://blogs.oracle.com/linux/post/bpf-in-depth-the-bpf-bytecode-and-the-bpf-verifier > > Here they mentioned about SKB pointer direct access, math on pointer and array with undefined access is denied on BPF code. > > Thanks, > Madhuker. Most of your changes, make sense and should be merged. But the custom verifier changes do not need to be added. The DPDK upstream project is not targeted at supporting custom vendor API modifications.