From patchwork Tue Jun 25 08:24:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geliang Tang X-Patchwork-Id: 13710758 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 9C4DF22313; Tue, 25 Jun 2024 08:25:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719303902; cv=none; b=CF3zaZvAhcpfp2rYnQq2nBeJeVvHc0HfV++aJ3jKMzZyjyUEQ/u/Zri3rQrJENU8HrCeY1vdLo0b1LdJE8pId904/wA5Xqd2Go5nYHdbjnKqR8j6hKrd3FOAaDdVP0C7y7q5VthsKx54F/RBclHy0sO48Tq/zGaw/at8/9QSiu4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719303902; c=relaxed/simple; bh=IJz4K1NpgKiO1D1uxenWzANl7YLOM8HyLsqnN1DRtzU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=LONBZ/tbXxSSsUwcDM6HmIHwGcwhYVFpf1GT4+aX9MPCkfnClCKPgFjZB4epMnEHWtcdqsXnhzfKhmgHiJYY12s1t/DOMTRGjjk8cgY5iQTPFKVg4RoRlEAKGpPOFVU3lDXqE8GxUxR+Mh44NPfS/c78CeL0RZ5yCVpJj2WQ7jk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uhlyOSPw; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uhlyOSPw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1E581C32786; Tue, 25 Jun 2024 08:24:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1719303902; bh=IJz4K1NpgKiO1D1uxenWzANl7YLOM8HyLsqnN1DRtzU=; h=From:To:Cc:Subject:Date:From; b=uhlyOSPw9qCovCouKC8yk8qCn00YzUufDt4hki1ncby7paMSY2G1cOLOIa0ScTiVk 2LP1tYX29i7mmsbaso/CwqaJDrTjTGnjxObbGwlC/zbLdSyqLV2c234fTmUqIyqrBn R5eLjcOfp5MoiGJSXLMmINgfJtBuVBBRTOBU0ad6Vsu/DRjDFeimzewV+B+Jyrlfnf FBR+TJYanQVa4VoAEFy8c+ebF/xLjl3fJ/c7PQGZ9ZPD5Tk5qvMN58VBU/DpyXUmyl 7pcLuR4sKr+ZhHAbTN7oEwR0Urai/OqfKP1vBoq+/BJIM5jEPo3MJ30Bb5Fg+C3uZo gVIOnibIMMySA== From: Geliang Tang To: John Fastabend , Jakub Sitnicki , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , David Ahern , Andrii Nakryiko , Eduard Zingerman , Mykola Lysenko , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Shuah Khan , Mykyta Yatsenko , Miao Xu , Yuran Pereira , Huacai Chen , Tiezhu Yang Cc: Geliang Tang , netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH bpf-next v2 0/4] Fixes for BPF selftests on Loongarch Date: Tue, 25 Jun 2024 16:24:35 +0800 Message-ID: X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: bpf@iogearbox.net From: Geliang Tang v2: - add patch 2, a new fix for sk_msg_memcopy_from_iter. - update patch 3, only test "sk->sk_prot->close" as Eric suggested. - update patch 4, use "goto err" instead of "return" as Eduard suggested. - add "fixes" tag for patch 1-3. - change subject prefixes as "bpf-next" to trigger BPF CI. - cc Loongarch maintainers too. BPF selftests seem to have not been fully tested on Loongarch. When I ran these tests on Loongarch recently, some errors occur. This patch set contains some null-check related fixes for these errors. Geliang Tang (4): skmsg: null check for sg_page in sk_msg_recvmsg skmsg: null check for sg_page in sk_msg_memcopy_from_iter inet: null check for close in inet_release selftests/bpf: Null checks for link in bpf_tcp_ca net/core/skmsg.c | 4 ++++ net/ipv4/af_inet.c | 3 ++- .../selftests/bpf/prog_tests/bpf_tcp_ca.c | 16 ++++++++++++---- 3 files changed, 18 insertions(+), 5 deletions(-)