From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f68.google.com (mail-ej1-f68.google.com [209.85.218.68]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F32A833123E for ; Mon, 26 Jan 2026 10:59:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.68 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769425191; cv=none; b=j3+iN5dVBniGtfZssywkInCUfCmUll3X25C3siXS480aD5oLUEX/1JBcrVnGou8bWnc7WhH4WT30NxaIc7FQgNftdRmPypfb3YjpvIYQP5TjDEnXgVSIlJGrGDT5U8IFBQfWiJxqJoDgpUty8COOoqSQDnoOBvpHYnXR5vaorho= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769425191; c=relaxed/simple; bh=OafcGQ6mxAgBJ88vByZ9JIl3q/zabfaREQeoOaB55Ms=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=fnZ2fxYW+0u+A4VcoxFuzozdNDHfDMBGcMV0ztNEIfXbVXVZNDZf+FKxbJeCDZUAsVo5zoCqh8jFN61mZWLyicm7ueuUMrJpnTduaM64mapLII6FBqikSrr9z2bASbqZcWu+GjEuiXliWqe8ilH+cqJOVJN3bh27iAxdJ82udiw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=cloudflare.com; spf=pass smtp.mailfrom=cloudflare.com; dkim=pass (2048-bit key) header.d=cloudflare.com header.i=@cloudflare.com header.b=fB5oNzGe; arc=none smtp.client-ip=209.85.218.68 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=cloudflare.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cloudflare.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=cloudflare.com header.i=@cloudflare.com header.b="fB5oNzGe" Received: by mail-ej1-f68.google.com with SMTP id a640c23a62f3a-b8849dc12f6so645640366b.1 for ; Mon, 26 Jan 2026 02:59:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloudflare.com; s=google09082023; t=1769425187; x=1770029987; darn=vger.kernel.org; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=XNxfvlw1oB2el4crQ4TvEj6ef2WAE6hpmRaDCbae0ok=; b=fB5oNzGeLLdemGhohHO/362WVc0wb3W5YnpSUiy3dJfxJ8SuveE3wdmSfBswxmBPnj 9FkTK1Xr8bWsFzVSIL2l8a9fLQ1J6Rokjcejs5JpqPXmqBm6G89PeHz8TRYGBm4Ea534 UW9qymyLQJow8JGU4ajrQ60T2GaCHoIU4o/0jjjCTjx7t750Ljh/CXXeBSRHODJp3k/F SVs7pHScgZRgkEZaf1JJrMWSDF5fkdg3aY4uKjeUGBa449e3hX+yCoHhATKmCg4XfkCa 66M87u3ueqovu2eS2A5TusW7vF7coMcBn8ZgpjyTi9PJKXitqNa1s81ShjPhnsONrK+o k/cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769425187; x=1770029987; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=XNxfvlw1oB2el4crQ4TvEj6ef2WAE6hpmRaDCbae0ok=; b=mkOZNqrJP6nyd/15axQblf/5dUSeySAfe6qUcqXEFIQ7OAxAlf5gVf8pxb8M0JWhwN 8g8rRmzJtO+Ki6gsQlIo5InqwUBRSA/7rd7hmEjiIquYuJVScaiWQ1y49sRpoYOHO7LV +lZnL7T3SGbz+LpxXfRmQFJZosmyqeQTNYPqLiexkaoLBkgEIYd7WYdVbbfRMdzOaqkv JzCUM0SqmEpbIOQUUUsRwDhRHW4FNe8UL+7Jj85LCyuCmVXB5V6V4OIfkqymiVIbHzmx MId/f9TgrppJwRJxPQFz+rEGeSaYHVGkxmVep4z/+N4hnwpOsQ5EOrRx1XhcO5Lhmw9G d98Q== X-Gm-Message-State: AOJu0Yxm9DmNFGOmMlMRCHsaHsAAjj5HZXxhi6DK0CwpMaqE8+i1/s7P SpkI5w+GZgCzkd7SSM3DMsCtI0CzWeZx8bgpzYuQSo3Xl05UaUkpHXCx0UBoowotVDg= X-Gm-Gg: AZuq6aLFvVMF9x92XBmGLyAXSs5EoMzsvL57UVehxzzKcutayJIX+ZURF798lqo2O9V /Z3o2PoEmRrLnL1xcb/cH/xqvQH/3IXMhvjIvDXI6l5ngU3xjWRdVwJcbnloH0bVhy18g9GOSvS MSg44L4bpcUQQ0PhjOV1IEqYNtS0mgMg+bUaAKhYDTMtNFdV1WepSVseETZWG6y5m5qD14cAOJq ba33GQ1rNbfog6lHTFTKCNBI7ifNQrcjP3umiXdj+Y+gvtgkEFq2MOuStYBFd4VMdCZnH4sTS5t tphGRzckWU7eeFABtuQhwUXhFUOFl0TLcjhW25Cv2+hU5ISX23QOi1ME0D2bWYIlyHoGzXyeZp5 T8u5lp6EyiyqVFGhj7Mm2Np4o94abi6uPE6dFqeIbQNoJ+ii16XGSlNZKcj4oatHE1NIqIdK0Dx CoBaM= X-Received: by 2002:a17:907:1c2a:b0:b87:7e8:e287 with SMTP id a640c23a62f3a-b8d20e293b1mr307215366b.30.1769425186687; Mon, 26 Jan 2026 02:59:46 -0800 (PST) Received: from cloudflare.com ([2a09:bac5:5063:2432::39b:b1]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-6584b076254sm5237402a12.0.2026.01.26.02.59.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jan 2026 02:59:46 -0800 (PST) From: Jakub Sitnicki To: Jiayuan Chen Cc: bpf@vger.kernel.org, John Fastabend , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Neal Cardwell , Kuniyuki Iwashima , David Ahern , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Shuah Khan , Michal Luczaj , Cong Wang , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH bpf-next v9 3/3] bpf, selftest: Add tests for FIONREAD and copied_seq In-Reply-To: <20260124113314.113584-4-jiayuan.chen@linux.dev> (Jiayuan Chen's message of "Sat, 24 Jan 2026 19:32:45 +0800") References: <20260124113314.113584-1-jiayuan.chen@linux.dev> <20260124113314.113584-4-jiayuan.chen@linux.dev> Date: Mon, 26 Jan 2026 11:59:44 +0100 Message-ID: <87v7goskpr.fsf@cloudflare.com> Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Sat, Jan 24, 2026 at 07:32 PM +08, Jiayuan Chen wrote: > This commit adds two new test functions: one to reproduce the bug reported > by syzkaller [1], and another to cover the calculation of copied_seq. > > The tests primarily involve installing and uninstalling sockmap on > sockets, then reading data to verify proper functionality. > > Additionally, extend the do_test_sockmap_skb_verdict_fionread() function > to support UDP FIONREAD testing. > > [1] https://syzkaller.appspot.com/bug?extid=06dbd397158ec0ea4983 > > Signed-off-by: Jiayuan Chen > --- Reviewed-by: Jakub Sitnicki