From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-188.mta0.migadu.com (out-188.mta0.migadu.com [91.218.175.188]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A53B1189902 for ; Fri, 1 Aug 2025 16:33:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.188 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754066036; cv=none; b=X1f4MMYaHamBBVTUeMW1dw+TuqSij7+/D+RnlvaAFPwIGAE+Wg7zSWaynRvNgis/PRfopAovukU2TyP7/R1dZKq5VhnuEVNVARaJBAHDnV6V/IkA9XkQ3eCwvFFvyRlPFgadeCeIb6rNGzQ6o2whVNParOh9+Bc4cWe1ZQqyqw8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754066036; c=relaxed/simple; bh=gRpqzxnyoZ7jPe+n4EhOPlrGYXnJeXx1cCMF4cLZisA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=j2nxEx66nk9DTDJOJjCKCY/wKyKpLSRWsiKD/ogcu4Uwb94dUHtf5QEQ2pYeHtKpmW9lZ1M3uXgjLRuN4RxUwzwE+xcKvUQwFU5ub0Y6Sce8PxQLUz91XI8tKaM/kkVl5ImIVx/mcyXMMjhgcDRZnLatuhDZ38UZjZhudfIZrJg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=CwI/YzVc; arc=none smtp.client-ip=91.218.175.188 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="CwI/YzVc" Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1754066031; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gRpqzxnyoZ7jPe+n4EhOPlrGYXnJeXx1cCMF4cLZisA=; b=CwI/YzVcB0VOvS888SWRGfl+BAl4bI39QHGU6iuF2aRteCBHqksrdSuYN+5GBYj8jhRROv 1tqzsYBnXgg/qSo91gAlHcSompBCTtHaN8th6pDJ+kanTf6Izh8/MYxX799kGFReyN7X0p dGAu68YMZvir86tYYkFN0q4rMYiOxQo= Date: Fri, 1 Aug 2025 09:33:44 -0700 Precedence: bulk X-Mailing-List: netfilter-devel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH bpf 4/4] selftests/bpf: Test for unaligned flow_dissector ctx access Content-Language: en-GB To: Paul Chaignon , bpf@vger.kernel.org Cc: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Eduard Zingerman , Martin KaFai Lau , netfilter-devel@vger.kernel.org, Pablo Neira Ayuso , Jozsef Kadlecsik , Petar Penkov , Florian Westphal References: X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Yonghong Song In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 8/1/25 2:49 AM, Paul Chaignon wrote: > This patch adds tests for two context fields where unaligned accesses > were not properly rejected. > > Note the new macro is similar to the existing narrow_load macro, but we > need a different description and access offset. Combining the two > macros into one is probably doable but I don't think it would help > readability. > > vmlinux.h is included in place of bpf.h so we have the definition of > struct bpf_nf_ctx. > > Signed-off-by: Paul Chaignon Acked-by: Yonghong Song