From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 CC43712E1E9 for ; Tue, 10 Feb 2026 14:14:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770732894; cv=none; b=baicc1rR+ju/nwsPfWVJdv6ktrt+NjSASphNpmTFLJUwg6oiRaF/yANJp/EItgO6JWM2o9xoipLeTCI3GPXaQ/OEJC+I0T+Qmtsv8jJneLv0ipjvMpYKpI7xQSIQalGqhxL6OzNGNNJsFoGHpt9KCjYEcP2zNPWTMxAnR1/r4R8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770732894; c=relaxed/simple; bh=mOuDCTKYx/PtlDotlGOmrQfBCPzG5n4eRQJRAJt6c7Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IiPccOFkkXDeSMsT/UztWJKFX9PQRGgadGLTv7P5teb7AC0AhUnB9WhzFO1lgKUUHQ1KgBfy3UicxQkKZPJr/Lj6Qq5udCB/XlBpj/9I7J3ySHgprybXXgmXnSzhP7HHEc8AhzSGMOKF/QknXugLx1wO2ZkGF56svhWp+yXBd3c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=jLhw5kzQ; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="jLhw5kzQ" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1770732891; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=FLTfYXA01BYHy+1qaBxk9rjmO8CLn+zLk8DgUJAWMlw=; b=jLhw5kzQd02mMDFt+g+/qPUfX1sCf0ccsEjnwHvt/r1TStyQAAOoTfocPc6z6mFfu2woBy B0wgDXCoAYXKC0rRAKoSQCa6mirChVySs6Karfr7I0y1fz6BRBz/Z8xqlME2DhyEhVIoY5 FLiFveV+r68hhxoutZ7DOxdjeJhmK8s= Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-373-4qZWLpbgNEahxTmnxz8kng-1; Tue, 10 Feb 2026 09:14:46 -0500 X-MC-Unique: 4qZWLpbgNEahxTmnxz8kng-1 X-Mimecast-MFC-AGG-ID: 4qZWLpbgNEahxTmnxz8kng_1770732884 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 9F23219560A7; Tue, 10 Feb 2026 14:14:43 +0000 (UTC) Received: from vmalik-fedora.brq.redhat.com (unknown [10.43.17.26]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 0C67D30001A5; Tue, 10 Feb 2026 14:14:38 +0000 (UTC) From: Viktor Malik To: bpf@vger.kernel.org Cc: Andrii Nakryiko , Eduard Zingerman , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Shuah Khan , Jordan Rome , Viktor Malik , Qais Yousef , Hou Tao Subject: [PATCH bpf-next v2 0/3] Separate tests that need error injection Date: Tue, 10 Feb 2026 15:14:29 +0100 Message-ID: Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 Some enterprise kernels (such as RHEL) do not enable error injection via BPF (CONFIG_FUNCTION_ERROR_INJECTION and CONFIG_BPF_KPROBE_OVERRIDE). When running test_progs on such kernels, a lot of test cases fail since they use sleepable fentry or fmod_ret program types which require error injection to be enabled. While it is possible to skip these via custom DENYLIST, some test_progs are not properly split into subtests and therefore must be entirely skipped. This patch series split such tests into subtests, namely module_attach and read_vsyscall. In addition, the last patch separates a sleepable fentry test out of the LSM test suite into a separate test so that it can be skipped without skipping other LSM tests. Changes in v2: - Fix indices in read_vsyscall/copy_from_user subtest (reported by CI) Viktor Malik (3): selftests/bpf: Split module_attach into subtests selftests/bpf: Split read_vsyscall into subtests selftests/bpf: Split sleepable fentry from LSM test .../bpf/prog_tests/fentry_sleepable.c | 28 +++ .../selftests/bpf/prog_tests/module_attach.c | 168 +++++++++++++----- .../selftests/bpf/prog_tests/read_vsyscall.c | 41 ++++- .../selftests/bpf/prog_tests/test_lsm.c | 8 - .../selftests/bpf/progs/fentry_sleepable.c | 28 +++ tools/testing/selftests/bpf/progs/lsm.c | 21 --- .../selftests/bpf/progs/read_vsyscall.c | 18 +- .../selftests/bpf/progs/test_module_attach.c | 63 +++---- 8 files changed, 249 insertions(+), 126 deletions(-) create mode 100644 tools/testing/selftests/bpf/prog_tests/fentry_sleepable.c create mode 100644 tools/testing/selftests/bpf/progs/fentry_sleepable.c -- 2.53.0