Received: by 2002:a05:7412:d384:b0:fc:a2b0:25d7 with SMTP id bq4csp10175rdb; Wed, 21 Feb 2024 14:01:25 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU7yGVHF8VQKg8qAhzSPmvrlC6dO1LIUKByybVI8PlB0GNFgUA29eJekoEMqoUPGm6C1Zg5/lkQwzUnplmDdrI0n/4l2pjr+iY4WiC71g== X-Google-Smtp-Source: AGHT+IEaUsuO59FcVSrZ6kqIEz7knhoUT0ceaTK3csJxfMpk6uKbRI6GGx7t5dx5f8JE/eff5TeN X-Received: by 2002:a67:bc02:0:b0:470:51c8:1992 with SMTP id t2-20020a67bc02000000b0047051c81992mr9978909vsn.15.1708552885064; Wed, 21 Feb 2024 14:01:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708552885; cv=pass; d=google.com; s=arc-20160816; b=KZM/ffNtJ7XZ0XivEhI0rxd1VF1+P7BbXCqj7frrBEpoXjpWPRlUbEUs1dSbZGgNgU 4kYW11iDoQ/sw0v5ZeWonJmwyJUnkFWLcP03eVRM5otuAVFD+0UWYBqdi4nD2G9ya66C Uelr8XH5nbT15KwtnY7P0LI4wUKaaJNlwx7x/pWa3uKfHftUhR0zORRAnOpgurl3Ja1S 60rzdGjtukAAyDQTSNJ1YWAy5/ffFaVropycvMl5OYFMbX+/48nNi+eIo50mcJL3Wxgv hrvGtfScW6n99wADjMUNnwKnqfxk6ZybI2sHXs7IvJCJhmD/rF+vJuMMq6oVyEv6NL3A qh1g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=k+6LHH2NPUzYokJHyaMeg6P0BHjKGeB4TbkarefmniY=; fh=5tnmpeJxLaEjLL+QZ7XRHmnvdGFK98i0XEN1ZlsfJFU=; b=eaPbzHA4O4Hmhh+IZjCBpeEFFcpsa/S/xxPDAr5sdO7gostKcmDsD2Nez4G5WIWyg+ Q/OpIbpZgnzEjFx4dAZIAK61/wh1ZxXG3X7Pd3K/0yfquB8gLjmYwAGswM6oiZ67AwFM euXODUR/uVdr5rCH8Aj2sTTHJZMnQIOIcdtYSyTsjUopZga0Jw0IxGwR7OSxz7ky7Kxq uE3ffptdEDBOLoJsSyQhqrX/PsTmYtNfGmt2+GXOQB4tngc9wXxIySJq0ofiTTWmYQ0n 9dKWOWzzRNDShg2C9P/Bq6DEQdzRwNDQ896OPF6CfKXvtk78yTNKlyf9XLH3EoyiTZd+ E+8Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=bpj48WmF; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-75582-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75582-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id dc27-20020a056102559b00b0046d33a12933si1772445vsb.594.2024.02.21.14.01.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 14:01:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75582-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=bpj48WmF; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-75582-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75582-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id C070B1C20EA4 for ; Wed, 21 Feb 2024 22:01:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9BF63128807; Wed, 21 Feb 2024 22:01:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="bpj48WmF" Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) (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 77A9B127B63 for ; Wed, 21 Feb 2024 22:01:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708552873; cv=none; b=EZ0c9HNZ00lyqpiut4bnYrGFeHsQyGDiVAMacKv3WR9fEmOkBnyQ0ZCVDxTx58QQk1W1z7p7DrdAVOtaTHzEHiU20VxtkSAGZDESifiuMyrPnp3X0AOrwaqMvSNPzWHaw4V07iFbwnyfwVm8AhS0rRqpZ9d+E0EB7v4XfOpGhPM= 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.176 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 Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-1dbd32cff0bso35464305ad.0 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=v2yOfF0NxwJSxh1G0O+gK9VXSEsqsM/LBjawEhrLykL6hpnMi1hXUYljbwtTRx5Che AEVqg5Xep20+/tvTv8Y/0TRWNN/C0PR9noeyE7Eyd6ueCz91+SuFFYo91qoUSTu+c8h6 21I67614wHVm6gvLrk7ypxoVKirbElkFU88WZdYyqKpGspfRbIFNymWKPgXTC/BxhzBu QXcyWXberwFZhep7h19P5ytn5kUQUT8SIqnc+PdMLAkkN7C9tmDckYR9TFOGVlRtDChK aAL6JIENfmg65aO0a43ojAR309fKdGn/wCrjCanB9Gke66YUmfAosKiMmjd+lSmushgw LKTw== X-Forwarded-Encrypted: i=1; AJvYcCVJFDQ+qGp0+DAs9sw97zDBElcQXVCIMogo4qVVjcdzvGj09QsdV30X0BgZrEH+7XimWthl7sGvyFvZODRCzs5emdUOs/ftm+9hgiXR X-Gm-Message-State: AOJu0YxTzd6XbxK/lw5FdFOXXP23wn8v5DzG7uib6SBfqVKnx5fE0I+C Oj6/rgWeSE6hCsx91LMSeUQVDq8WrDn0Zp3zgxmbTB3e95XA9J9n1VS5B5131A== 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-kernel@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