From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (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 D104D362151 for ; Wed, 29 Apr 2026 16:03:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777478619; cv=none; b=SQOR9mM2CsTkIgRsoEMNRG840gFOy6gR/ynkqOsaJiArzX1pJldOFcvFQdBb5m4GeLnVTVI4uJ9Y7114h5wJrwxCjEkbzfdsARMrnPL5LNU03zMcdiSpJ3DUbDb9uwicLSctomERVKzqChndVepXOgSuNW77/7Di3x1oUPGbO/k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777478619; c=relaxed/simple; bh=4otVRaVKmDVV4/O4BE0KFa2jpoEw58ZmDu7MeQsTvB4=; h=Content-Type:Date:Message-Id:Subject:Cc:To:From:Mime-Version: References:In-Reply-To; b=bvUStasJJEJB3TJYdabCRMRiMJwhBv/Tkpr+mLz7YtcEyLRWhpz6E2pBIBaz8u9wI8Rxv78W2daV2glb/becZkVfD6wZuOuj42oUCLqOX70j/8ZdTcE8Tsh8Bg+ubnJk8gqg8ysFKRfNd95iwfTsimSTTpzyQvwnqQo/WPdkb3c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=SlN8Cwdw; arc=none smtp.client-ip=209.85.218.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="SlN8Cwdw" Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-b8f97c626aaso1227865466b.2 for ; Wed, 29 Apr 2026 09:03:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1777478616; x=1778083416; darn=vger.kernel.org; h=in-reply-to:references:content-transfer-encoding:mime-version:from :to:cc:subject:message-id:date:from:to:cc:subject:date:message-id :reply-to; bh=dQoksUSIcSzVndlrAhch8qM9tnBx+HVtwROp5qwoxAY=; b=SlN8CwdwQJYRV24B6Eh8KJE2B7PjiiOdha7mV834fBzIKiOWvvAihncfqpHZQsmZ1h S2TIc0R20wHK3DyxG7x2weEgzc78v/EstxtLn0LeeXOvAfv7REX+EkntkSAJv/xcXmE7 iXOLNaS5Ojl+7QGw6IuyDvmG4tRR1Uls2e4kpZoFCX5AvnuToK3FKHRN5YzBuJznZ1gl bLakseYRGR0Y078aS7IAj0ufapNppsmRxLTfv9IFYP7K4mW3maxTpRaTEVfD2zC2BJYo s4vgEZSemQp71e6JqrCAZfY85V7hegSXMutkJhIAEweKGckA7zMWIVLs6h5MgdiSYJus Imbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777478616; x=1778083416; h=in-reply-to:references:content-transfer-encoding:mime-version:from :to:cc:subject:message-id:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dQoksUSIcSzVndlrAhch8qM9tnBx+HVtwROp5qwoxAY=; b=WojS+En1AGFsWTueJEMUXu4AgjGn+2vvFim1nrXa8hIr9Kf380v7HbTm1W2sWR2VD+ umDGQYByZo1qRQ43k5r+6dQ62MxcCQ36yygEDRVcNaM1SPVuwA+KOgBGQa0wbxD92CM9 7vsnhNcLiAJj+oLgFv1nMgY+gFWN3ZR5zhPkBHsHDASf0ifASKDaiqsOlcqlTN67/E30 sDAx1/Wx63NOoVZ2khjXEOSiTwwrKA/zNE8lIJbURswx6c61xkb+zxMUiYUpzvctGTOc TfeC66fOYCyPM0PFwdrdVu6Bi+wyelnc1hwGwBbKMb4QjYv9yX/UnIT42AU5ZGSvdWjN sSQQ== X-Gm-Message-State: AOJu0YwxqpA2ceNg/s8zDOlJlPIunw41n0UdSG6Smq1U1r1BAKQQw7Hf rO9jwNmBh5t6iS1A4Scymj3L8HOnRvnzdUqkcClZvpTJWjRrnTqMvnzU1BzmcjQCWx4= X-Gm-Gg: AeBDieuFL9Lz4W84pmJ7EAnrlPspUC35I9+dvV6AKyX/wgU2DmD1W60zx7N0gjYwLDJ LOlniO+vNmVztzz09Vm4WTsPq3o/RmBlkbDCudj272ouX2NHR3NvqPQ88NB2jHs+E0pApZujhw3 zdh48VPbXNoWgXejUFWJj6E1Ns1vCZeGpwGf2ymwgwiAayU7tKjxbONMXFB7/J7QJB4bEwsqQRS af8O9aF4+LbUH3JOcePZgwBYoFyTyxSyQqn+CNLxSqIQgDwZKYGP5QraYeH1NxyEOURfVDl/XK+ rsK5jd7mVpcX+8jjDdrxAbO385dwU8gNKWWGoYDzeOvsEvyA97FDkY+P24xqV+BkrtNEm8OC1by 4DTyhj16MdaTBUbhGEgYdjAeUlhDR9I9hq7kvYDtGZ0tTQJ604B5qJDpp6A/cWKeKljJYJ9gxl7 StCFAtWEPuGg6QkE3v9zXJo+8= X-Received: by 2002:a17:907:2da0:b0:bb9:374e:f96b with SMTP id a640c23a62f3a-bb9374efc9dmr285870866b.12.1777478616083; Wed, 29 Apr 2026 09:03:36 -0700 (PDT) Received: from localhost ([2804:7f0:b765:105d:2ecf:67ff:fe81:9da0]) by smtp.gmail.com with ESMTPSA id ada2fe7eead31-6298433531bsm1276228137.9.2026.04.29.09.03.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Apr 2026 09:03:35 -0700 (PDT) Content-Type: text/plain; charset=UTF-8 Date: Wed, 29 Apr 2026 13:03:33 -0300 Message-Id: Subject: Re: [PATCH bpf-next v9 01/11] selftests/bpf: Add BPF_STRICT_BUILD toggle Cc: , , , , , , , To: , , , , , , , , , , , , , , , From: =?utf-8?b?UmljYXJkbyBCLiBNYXJsacOocmU=?= Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Mailer: aerc 0.21.0-120-g22b95d38161f References: <20260429-selftests-bpf_misconfig-v9-1-c311f06b4791@suse.com> In-Reply-To: On Wed Apr 29, 2026 at 12:13 PM -03, bot+bpf-ci wrote: >> diff --git a/tools/testing/selftests/bpf/Makefile b/tools/testing/selfte= sts/bpf/Makefile >> index 97ee61f2ade5..6094fe99b5f6 100644 >> --- a/tools/testing/selftests/bpf/Makefile >> +++ b/tools/testing/selftests/bpf/Makefile >> @@ -44,6 +44,12 @@ SKIP_LLVM ?=3D >> SKIP_LIBBFD ?=3D >> SKIP_CRYPTO ?=3D >> >> +# When BPF_STRICT_BUILD is 1, any BPF object, skeleton, test object, or >> +# benchmark compilation failure is fatal. Set to 0 to tolerate failures >> +# and continue building the remaining tests. >> +BPF_STRICT_BUILD ?=3D 1 >> +PERMISSIVE :=3D $(filter 0,$(BPF_STRICT_BUILD)) >> + >> ifeq ($(srctree),) >> srctree :=3D $(patsubst %/,%,$(dir $(CURDIR))) >> srctree :=3D $(patsubst %/,%,$(dir $(srctree))) > > Multiple reviewers (Sashiko AI and bot+bpf-ci@kernel.org) raised a concer= n > in v5 that when permissive mode skips building .ko files, the > $(TRUNNER_BINARY)-extras rsync target will fail fatally during out-of-tre= e > builds (when O=3D is set) because TEST_KMOD_TARGETS are included in > TRUNNER_EXTRA_FILES but the .ko files were never created. > > The rsync command lacks --ignore-missing-args flag to handle missing file= s: > > tools/testing/selftests/bpf/Makefile:$(TRUNNER_BINARY)-extras { > $(call msg,EXT-COPY,$(TRUNNER_BINARY),$(TRUNNER_EXTRA_FILES)) > $(Q)rsync -aq $$^ $(TRUNNER_OUTPUT)/ > } > > According to the v6 changelog, this was addressed by adding > --ignore-missing-args to the -extras rsync, but this fix does not appear > in the current commit. Does the rsync command need --ignore-missing-args > to prevent 'No such file or directory' errors when .ko files are missing > in permissive mode during out-of-tree builds? This patch only adds BPF_STRICT_BUILD/PERMISSIVE variables. The rsync fix comes next in "[PATCH bpf-next v9 02/11] selftests/bpf: Fix test_kmods KDIR to honor O=3D and distro kernels". > > Reference: > https://lore.kernel.org/bpf/20260415211828.BFAFFC19424@smtp.kernel.org/ > Reviewer: Sashiko AI > Date: Wed, 15 Apr 2026 21:18:28 +0000 > > > --- > AI reviewed your patch. Please fix the bug or email reply why it's not a = bug. > See: https://github.com/kernel-patches/vmtest/blob/master/ci/claude/READM= E.md > > CI run summary: https://github.com/kernel-patches/bpf/actions/runs/251156= 89001