From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) (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 857EC127B68 for ; Wed, 21 Feb 2024 22:01:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708552873; cv=none; b=gHeDqdwJfVJmpMwL3jqOpQN1xVqWL8o085wuhD56w0ruQU2tmL7d45hM2J5zFxwXDzbhO7s2Kl7tG6MnZkKMhxBBZ4as5i2WQsNQQho3NI0NUvxRJuOXA88MFJNIyVRdRl0dFE1LoFvrIT64van86UxO+OGIqdJHcO59In7Yk/g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708552873; c=relaxed/simple; bh=wqGWw9nOiid78rmVoNJpLAKogw9OxxtIINANjebVuns=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=T3wqefXznFRvEyC+d0LhWgpbxe29T6yWwHs5ZfIiuViy4k7soe4+wwbb9PZIBQqImqpA92wE0Z/P4dZyokvlVhZCnkhGSnqFp3KJibtabhXXzE8elKJLctZG93cu78DryiMC/l3hCQ6xaWzk69BxDn/oMT+C9/2AHsTCbgt2+jw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=bpj48WmF; arc=none smtp.client-ip=209.85.214.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="bpj48WmF" Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-1d918008b99so59918745ad.3 for ; Wed, 21 Feb 2024 14:01:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1708552871; x=1709157671; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=k+6LHH2NPUzYokJHyaMeg6P0BHjKGeB4TbkarefmniY=; b=bpj48WmFS/Iv/Pl0hg7lOS8zJgnv0NSStFCNmbJ6KEpuG46kTUN/691glGTo/3Ussp p+NO4+VI9TFFxK1I1IpwAumuQPpNmQosA0O5VcsIoRgOfll/Zs90O7tq42+7asod3qYo QfauMBovnb/+K04a39tMMdP5sPWShkQq8NrPA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708552871; x=1709157671; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=k+6LHH2NPUzYokJHyaMeg6P0BHjKGeB4TbkarefmniY=; b=QQWjMUaYpsXqFzpm37G+WzpYN367my7LmdCulnB3vybEMHaGz813UYyaW2oMEfj7V1 7yO7JqZo763rwUQAm959JW3R8aacEPK4VTcHT5sOxqIfLEFGSBwlgITiyAloqNSmlLa9 8QJOsIuFS+iT+QBzCR78S94CwAI4MamCGKBFRNULLeHEJHErE3QMrD+Nvy/nSwg7LZMk gYgQO79eWOc7R2GleQeAuf33UGOQjtuRVJp8mX4nrLIFaXWj/zxqbAUXlE07iqzYxwzc ZjiFd1cmpEzF0+PF+VNPe44Ftk23OpT/ii0VxOtTGzkrx7lsmse2hy0cFGSBVRuR7nHu 2EDg== X-Forwarded-Encrypted: i=1; AJvYcCWbctAGHRrj05l9tMTT48P7xBHxkEQBeFuEtMURcq/QSXrKMClljyz9Wo2rSfeIWrYJ65FYpnVMuZ7pCzviCiuO06C7HrScXCgD X-Gm-Message-State: AOJu0Yz+i9x17IBF7obkJJGRTriNAGonMRTnedgAdFbeZMSqMi6+lIb8 jxqSnSNYKzvNFL3BZwz/Y35bkRF2YCdRmdkGQddKiiKuuS7U1MoG37FUeqttpQ== X-Google-Smtp-Source: AGHT+IEf5eKUQSWm+opFfaiF5eBQJmg0AXhYyA+h2y9jNbW7sOQuiyq0AM8mKQQVx25bJ6R/7Y4UCw== X-Received: by 2002:a17:902:f70f:b0:1dc:4b04:13d4 with SMTP id h15-20020a170902f70f00b001dc4b0413d4mr60269plo.8.1708552870628; Wed, 21 Feb 2024 14:01:10 -0800 (PST) Received: from www.outflux.net ([198.0.35.241]) by smtp.gmail.com with ESMTPSA id k4-20020a170902e90400b001dbba4c8289sm8533989pld.202.2024.02.21.14.01.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 14:01:10 -0800 (PST) Date: Wed, 21 Feb 2024 14:01:09 -0800 From: Kees Cook To: Daniel Borkmann Cc: Mark Rutland , "Gustavo A . R . Silva" , Alexei Starovoitov , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Mykola Lysenko , Shuah Khan , Haowen Bai , bpf@vger.kernel.org, linux-kselftest@vger.kernel.org, Yonghong Song , Jonathan Corbet , "David S. Miller" , Jakub Kicinski , Jesper Dangaard Brouer , Joanne Koong , Yafang Shao , Kui-Feng Lee , Anton Protopopov , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, netdev@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH v4] bpf: Replace bpf_lpm_trie_key 0-length array with flexible array Message-ID: <202402211347.2AF2EC4621@keescook> References: <20240220185421.it.949-kees@kernel.org> Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Wed, Feb 21, 2024 at 05:39:55PM +0100, Daniel Borkmann wrote: > The build in BPF CI is still broken, did you try to build selftests? Okay, I give up. How is a mortal supposed to build these? If I try to follow what I see in https://github.com/libbpf/ci/blob/main/build-selftests/build_selftests.sh I just get more and more kinds of errors: In file included from progs/cb_refs.c:5: progs/../bpf_testmod/bpf_testmod_kfunc.h:29:8: error: redefinition of 'prog_test_pass1' 29 | struct prog_test_pass1 { | ^ /srv/code/tools/testing/selftests/bpf/tools/include/vmlinux.h:106850:8: note: previous definition is here 106850 | struct prog_test_pass1 { | ^ Messing around with deleting vmlinux.h seems to get me further, but later: /srv/code/tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c: In function 'bpf_testmod_ops_is_valid_access': /srv/code/tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c:535:16: error: implicit declaration of function 'bpf_tracing_btf_ctx_access' [-Werror=implicit-function-declaration] 535 | return bpf_tracing_btf_ctx_access(off, size, type, prog, info); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ and then I'm stuck. It looks like the build isn't actually using KBUILD_OUTPUT for finding includes. If I try to add -I flags to the Makefile I just drown in new errors. -- Kees Cook