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.133.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 A43283CEB9F for ; Wed, 11 Mar 2026 10:31:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773225113; cv=none; b=kvamw1WZ7xKz4t1j0gon9dEv9iU3TFxJ1F6LZDzGrzG8MQc3KhPlP+anddw3VqKinqg2INOBsNEae7/Ka6iAETH4nMk9Fb4bsOZ3OSf1A0le73GZB0obcasfzP3PdN4UYOe6uEVrbGhusTf/IiiytTKo2RwvbMRH8rVMDCnWR5g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773225113; c=relaxed/simple; bh=ySocSFrHgMZCuNx6RNYRgifMhoOZAZxfxZHX3fAUf9k=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=H5vZgbQVJobiPNpxb+kgT3YC9aEGKXKG7my5Kjkem1SZjm+pR1A78QDr3yVzWWa+9GBdfVCQp3OOB1jMZQhSINPMWH8W0q5KKxUAj/xW3Ik6Azf4RooOZqlyqy1KKq0hxvbUl6fe7VMIcCIM8/anvtt3NoV1yXHZ/DNKJQG7TXo= 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=R9pfRRDL; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b=I6ACSZYh; arc=none smtp.client-ip=170.10.133.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="R9pfRRDL"; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b="I6ACSZYh" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1773225111; 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=4k7qkLfO0zvJghANa0uRNiBLEsBgn/V1IaIH7gW/As4=; b=R9pfRRDL+GXuY/i0Aq2nj8TGw/v+ksWfGrfJLEnrhgFZ9nUd8Z1Du+0HCVODSn6oK3vY2E UxOFJZTu8E7VUN3Zq+BY9d7qWTCQdwonBGeJxXY6maB3UyNYeWBNSYMOw4YxYH8JW8X1Tn VhpCaqcVJOOacwbwodfp0cfdWQ4ewPE= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-138-SgkOpZbVPf-1tPziXFbgfw-1; Wed, 11 Mar 2026 06:31:50 -0400 X-MC-Unique: SgkOpZbVPf-1tPziXFbgfw-1 X-Mimecast-MFC-AGG-ID: SgkOpZbVPf-1tPziXFbgfw_1773225109 Received: by mail-wr1-f69.google.com with SMTP id ffacd0b85a97d-4362197d1easo11176647f8f.2 for ; Wed, 11 Mar 2026 03:31:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1773225109; x=1773829909; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=4k7qkLfO0zvJghANa0uRNiBLEsBgn/V1IaIH7gW/As4=; b=I6ACSZYhijlQt83rsY8WVilK2oi/j4Uv/J1pO8QF802O/K34XNFamo+HrCtjeNA6ml U05bXH9I/p31SK+bbqfE5zKy2JtHREVs9jGvrdzfX+SmGSdzE1lqwn+mP4JitEZq4EJH LGdbmQFSQSXQLypaTln5Fgm08GCnz0PndIusxU9FXNzQIW7U2xLfoOcZnVU+Wd74hTLC 5ibFw14KuDy+V9UkYlVv9WN8Lj+UKnBJg7V44lvXZo8d5LO3vZJT6Ttv8XtOdJpzyK80 odOIlJf8EcnH2I10X7i8gcYsq5EIp7v+JDbHkB3Cyq5JsvnR9nTCHA8mZOMtnUjPUgTs /xEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1773225109; x=1773829909; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=4k7qkLfO0zvJghANa0uRNiBLEsBgn/V1IaIH7gW/As4=; b=YlhxRpXlmFpNMOUeBspaMTO39SeStUBE4xXFGxufWk/bx/Ql8DX7QPsoxAIsKW/zz9 bmRwte26z2tgqhiAECnm1kenV+1WAetspksEUtUk4QsWrWLerZ6Zfe7/+qSM3/iId5A+ zyV4fH+R15PgOdOpsqXVyDXvVOCi5Ab65+J7IsWO0sfLCnXjom910pPH4cwR0iPHD4sm g0hbjEJ5x80ZOq1lrLAHytKhMuaxC91uKg9Y2YmSbGYo/wOrZ1N1gu/r5rV4BjxxHS2f iyjQEzMTd+rIrkcTJvvy4vBtZ5PGqECBJSbzP94t+FXqeKCADa2+AelLojpIajgd03B7 Lf5w== X-Forwarded-Encrypted: i=1; AJvYcCW/D6NZpyAQ6ScuI0q0Y+Y1Jk/YNXjsnGAqsQJ3n/rKQ4pyq/0ra5GJxZbQC0Aa3fzcQFaXITkJRMKIkJU=@vger.kernel.org X-Gm-Message-State: AOJu0YwMyKztDf+0cvzOktH5e7lMBeNT0XS4I6rMmHU/dQU5AdYGqu4c hO2Mysc67QP4ruKnGL4+qaAQhSHaM6qQfvubhOe8tR6c9lz/CQTqNTwk/0Ez/PBCTZLb+Dcurfo LgVhfLgQjaOlBebcXriVFHzlOOlEafwnZ56QJP642pG+rVBe+9raUqpniEN7Etk4f X-Gm-Gg: ATEYQzwAt2xKRxfvODN5C8oqArixFSOj+hwIwxwgKKC4Bve7/VAabn24KIkXUw8r/vY oM4QJ3YSaflkrn+iJluQZZE7vqwsCztm6pYyDAcQ6Y0f3jtUB2SOfr7vRCwFgSbUKbbfNlKTzDv 1Je56kz587A3gTHy9JvvXjYVo+Mw+ZE6ERQV1fYurbKugjEoOExqtODi37oaow3SpVj7gNs6k6O h8TPsk6BbKONtlzqqzWnKehS4G9LdNpN+kJ1vF4gv/clZKxeyUl+YNrIXuf/K8W6AE4w0Loa7IK T/4hGkq7w3cLGPrwKnUQWDStqctm2l8CL+nU78O2GAuaWuxERBFuHOW9F16Aar3gzDgOuNC/GmO t2Tw0XCay16zNY1II8bJbcgnbiBJH2WvmyLpqmrYyhdF3P0+7+WI/YDax X-Received: by 2002:a5d:5d01:0:b0:439:b114:60c0 with SMTP id ffacd0b85a97d-439f8206d54mr4051666f8f.35.1773225109214; Wed, 11 Mar 2026 03:31:49 -0700 (PDT) X-Received: by 2002:a5d:5d01:0:b0:439:b114:60c0 with SMTP id ffacd0b85a97d-439f8206d54mr4051611f8f.35.1773225108761; Wed, 11 Mar 2026 03:31:48 -0700 (PDT) Received: from [192.168.0.135] (185-219-167-205-static.vivo.cz. [185.219.167.205]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-439f818d5eesm6695370f8f.1.2026.03.11.03.31.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 11 Mar 2026 03:31:48 -0700 (PDT) Message-ID: <25faef0f-7943-4c0b-97e4-4a3a45895e25@redhat.com> Date: Wed, 11 Mar 2026 11:31:47 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/2] selftests/bpf: Skip bpffs debug iter checks when unavailable in test_bpffs To: sun jian Cc: Andrii Nakryiko , Eduard Zingerman , Shuah Khan , bpf@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Alexei Starovoitov , Daniel Borkmann References: <20260310102145.857810-1-sun.jian.kdev@gmail.com> <20260310102145.857810-2-sun.jian.kdev@gmail.com> From: Viktor Malik Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 3/11/26 08:55, sun jian wrote: > On Tue, Mar 10, 2026 at 8:32 PM Viktor Malik wrote: >> >> I don't think this is a good approach as it will mask genuine bugs that >> would cause the files to be missing/inaccessible with one of the above >> error codes. >> > Hi Viktor, > > I don't think this change masks bugs in a silent way. It prints an explicit > INFO line when maps.debug/progs.debug are unavailable due to > EPERM/EACCES/ENOENT, and it still fails on other errors or unexpected > iterator output. Yeah but automatic CI doesn't care about INFO lines. It cares about pass/fail status and in this case, the test could falsely appear as passing, even though there's a bug in bpffs code causing the files not to exist or have wrong permissions. >> If you really need to execute the rest of the test cases in the file, >> how about you split the test into subtests and then just add the failing >> subtest to your DENYLIST? > > Proper subtests would require reworking the current fork-based flow to > report SKIP/FAIL to the harness, which would be a larger refactor than > intended here. I don't think it would be such a big refactoring. You can still use fork(), you just need to have separate `run` functions for different subtests. True, the init/teardown phase would be somewhat duplicated but I wouldn't see that as a big issue (and you can still factor it out). > My goal is to keep this as a minimal change while still achieving the main > purpose of this test: exercising the core bpffs operations (pinning and > renameat2 semantics), which are independent of the debug iterator files, > and clearly reporting when the iterator checks couldn't be performed. That's exactly what subtests are for, at least in my view. You want to check independent operations, you create a separate subtest for each. That way, you can filter out some subtests if they don't pass in your environment.